<form class="modal-form modal-form--reserve-in-store js-modal-form" action="8f6ce88d42dd6b994dd53f53149d089a">
    <div class="modal-form__items modal-form__items--1-cols">
        <div class="modal-form__item-group modal-form__item-group--product">
            <div class="card js-card card--reserve-in-store">
                <div class="card__inner">
                    <a class="card__link js-card-url" href="#202-02" data-202-02-url="#202-02" data-B202-2M-url="#B202-2M" data-H202-10-url="#H202-10" data-H202-2M-url="#H202-2M" data-H202-70-url="#H202-70" data-HT202-71-url="#HT202-71" data-H202-2M-2-url="#H202-2M-2" data-H202-70-2-url="#H202-70-2"
                        data-HT202-71-2-url="#HT202-71-2" data-202-02-stock="true" data-B202-2M-stock="true" data-H202-10-stock="true" data-H202-2M-stock="true" data-H202-70-stock="true" data-HT202-71-stock="true" data-H202-2M-2-stock="true" data-H202-70-2-stock="true"
                        data-HT202-71-2-stock="true">
      <img class="card__image js-card-image" data-angle="front"
             src="https://mauijim.scene7.com/is/image/mauijim/202-02_front?$config1800$&amp;wid&#x3D;340" data-variant="202-02"
             data-202-02-front="https://mauijim.scene7.com/is/image/mauijim/202-02_front?$config1800$&amp;wid&#x3D;340" data-202-02-angle="https://mauijim.scene7.com/is/image/mauijim/202-02_quarter?$config1800$&amp;wid&#x3D;340" data-202-02-side="https://mauijim.scene7.com/is/image/mauijim/202-02_side?$config1800$&amp;wid&#x3D;340"
                      
             data-B202-2M-front="https://mauijim.scene7.com/is/image/mauijim/B202-2M_front?$config1800$&amp;wid&#x3D;340" data-B202-2M-angle="https://mauijim.scene7.com/is/image/mauijim/B202-2M_quarter?$config1800$&amp;wid&#x3D;340" data-B202-2M-side="https://mauijim.scene7.com/is/image/mauijim/B202-2M_side?$config1800$&amp;wid&#x3D;340"
                      
             data-H202-10-front="https://mauijim.scene7.com/is/image/mauijim/H202-10_front?$config1800$&amp;wid&#x3D;340" data-H202-10-angle="https://mauijim.scene7.com/is/image/mauijim/H202-10_quarter?$config1800$&amp;wid&#x3D;340" data-H202-10-side="https://mauijim.scene7.com/is/image/mauijim/H202-10_side?$config1800$&amp;wid&#x3D;340"
                      
             data-H202-2M-front="https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$&amp;wid&#x3D;340" data-H202-2M-angle="https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$&amp;wid&#x3D;340" data-H202-2M-side="https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$&amp;wid&#x3D;340"
                      
             data-H202-70-front="https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$&amp;wid&#x3D;340" data-H202-70-angle="https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$&amp;wid&#x3D;340" data-H202-70-side="https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$&amp;wid&#x3D;340"
                      
             data-HT202-71-front="https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$&amp;wid&#x3D;340" data-HT202-71-angle="https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$&amp;wid&#x3D;340" data-HT202-71-side="https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$&amp;wid&#x3D;340"
                      
             data-H202-2M-2-front="https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$&amp;wid&#x3D;340" data-H202-2M-2-angle="https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$&amp;wid&#x3D;340" data-H202-2M-2-side="https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$&amp;wid&#x3D;340"
                      
             data-H202-70-2-front="https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$&amp;wid&#x3D;340" data-H202-70-2-angle="https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$&amp;wid&#x3D;340" data-H202-70-2-side="https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$&amp;wid&#x3D;340"
                      
             data-HT202-71-2-front="https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$&amp;wid&#x3D;340" data-HT202-71-2-angle="https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$&amp;wid&#x3D;340" data-HT202-71-2-side="https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$&amp;wid&#x3D;340"
          >
      <h5 class="card__title">PEAHI</h5>
      <span class="card__price js-card-price" data-202-02-price="$149.00" data-B202-2M-price="$189.00" data-H202-10-price="$229.00" data-H202-2M-price="$229.00" data-H202-70-price="$229.00" data-HT202-71-price="$229.00" data-H202-2M-2-price="$229.00" data-H202-70-2-price="$229.00" data-HT202-71-2-price="$229.00">
        $149.00
      </span>
      <span class="card__back-link"><svg class="icon icon--arrow-left">
  <use xlink:href="/assets/icons/icons.svg#arrow-left"></use>
</svg>
 Back</span>
      <span class="card__variant-name js-card-variant-name" data-202-02-variant-name="Gloss Black" data-B202-2M-variant-name="Matte Black" data-H202-10-variant-name="Dark Tortoise" data-H202-2M-variant-name="Matte Black" data-H202-70-variant-name="Redfish" data-HT202-71-variant-name="MahiMahi" data-H202-2M-2-variant-name="Matte Black" data-H202-70-2-variant-name="Redfish" data-HT202-71-2-variant-name="MahiMahi">
        Gloss Black
      </span>
      <svg class="icon icon--arrow-right">
  <use xlink:href="/assets/icons/icons.svg#arrow-right"></use>
</svg>

    </a>
                    <div class="card__variants-wrapper">
                        <ul class="card__variants js-card-variants">
                            <li class="card__variant js-card-variant js-card-variant--active" data-id="202-02">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#000;" type="button">Gloss Black</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="B202-2M">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#000;" type="button">Matte Black</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="H202-10">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#303032;background-image:url(https://mauijim.scene7.com/is/image/mauijim/10);" type="button">Dark Tortoise</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="H202-2M">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#000;" type="button">Matte Black</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="H202-70">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#7d4a07;" type="button">Redfish</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="HT202-71">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#218b16;" type="button">MahiMahi</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="H202-2M-2">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#000;" type="button">Matte Black</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="H202-70-2">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#7d4a07;" type="button">Redfish</button>
                            </li>
                            <li class="card__variant js-card-variant" data-id="HT202-71-2">
                                <button class="card__variant-button js-card-variant-button" style="background-color:#218b16;" type="button">MahiMahi</button>
                            </li>
                        </ul>
                        <div class="card__variants-controls js-card-variants-controls">
                            <button class="card__variants-control card__variants-control--prev" type="button">
          <span class="u-visually-hidden">Previous</span>
          <svg class="icon icon--arrow-left">
  <use xlink:href="/assets/icons/icons.svg#arrow-left"></use>
</svg>

        </button>
                            <button class="card__variants-control card__variants-control--next" type="button">
          <span class="u-visually-hidden">Next</span>
          <svg class="icon icon--arrow-right">
  <use xlink:href="/assets/icons/icons.svg#arrow-right"></use>
</svg>

        </button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
        <div class="modal-form__item-group modal-form__item-group--views">
            <div class="views-wrapper js-views-wrapper views-wrapper--default modal-form--views" id="modal-form--views">
                <div class="view js-view js-view--active view--active js-view--default modal-form--search" id="modal-form--search">
                    <div class="form-item form-item--zip-geolocate zip-geolocate js-zip-geolocate">

                        <input value="" class="input zip-geolocate__input js-input-zip-geolocate" type="text" placeholder="Zip code" id="form-example-zip-geolocate" />
                        <button class="button button--primary zip-geolocate--zip zip-geolocate__button" type="button">
    <svg class="icon icon--search">
  <use xlink:href="/assets/icons/icons.svg#search"></use>
</svg>

    <span class="zip-geolocate__submit-label zip-geolocate__submit-label--large">Find Stores</span>
  </button>
                        <button class="button button--plain-text zip-geolocate--reset zip-geolocate__button" type="reset">
    <svg class="icon icon--close-large">
  <use xlink:href="/assets/icons/icons.svg#close-large"></use>
</svg>

    <span class="zip-geolocate__submit-label zip-geolocate__submit-label--large u-visually-hidden">Clear</span>
  </button>
                    </div>

                    <div class="views-wrapper js-views-wrapper views-wrapper--default modal-form--search-views" id="modal-form--search-views">
                        <div class="view js-view js-view--active view--active js-view--default modal-form--search-view search-views--start" id="modal-form--search-views--start">
                            <p class="paragraph reserve-in-store__search-message">Type your Zip code to find stores and see product availability.</p>

                            <img src="/assets/images/mauijim-brand-logo.png" alt="" class="image reserve-in-store__search-image">

                        </div>
                        <div class="view js-view view--hidden modal-form__item-group--error modal-form--search-view search-views--no-results" id="modal-form--search-views--no-results">
                            <img src="/assets/images/mauijim-brand-mark-grey-small.png" alt="" class="image reserve-in-store__error-image">

                            <p class="paragraph reserve-in-store__kaumaha">Kaumaha!</p>

                            <p class="paragraph reserve-in-store__no-results-message">Unfortunately this style is not available to reserve online in your area.</p>

                        </div>
                        <div class="view js-view view--hidden modal-form__item-group--error modal-form--search-view search-views--error" id="modal-form--search-views--error">
                            <img src="/assets/images/mauijim-brand-mark-grey-small.png" alt="" class="image reserve-in-store__error-image">

                            <p class="paragraph reserve-in-store__kaumaha">Kaumaha!</p>

                            <p class="paragraph reserve-in-store__error">Something went wrong, please try again later.</p>

                            <button class="button button--outlined reserve-in-store__continue-shopping" type="button">Continue Shopping</button>

                        </div>
                        <div class="view js-view view--hidden modal-form--search-view search-views--store-results" id="modal-form--search-views--store-results">
                            <div class="zip-geolocate__results reserve-in-store--store-results">
                                <p class="paragraph reserve-in-store__results-found">
                                    <span class="reserve-in-store__results-found--results"></span> results for ZIP code <span class="reserve-in-store__results-found--zip"></span>
                                </p>
                            </div>

                            <p class="paragraph reserve-in-store__availability-update">Product availability daily updated.</p>

                        </div>
                    </div>

                </div>
                <div class="view js-view view--hidden modal-form--form" id="modal-form--form">
                    <div class="modal-form__item-group--store-info" id="store-info">
                        <div class="zip-geolocate__results">
                            <div class="zip-geolocate__result">
                                <span class="zip-geolocate-result__back-link">
      <svg class="icon icon--arrow-left">
  <use xlink:href="/assets/icons/icons.svg#arrow-left"></use>
</svg>

      Back
    </span>
                                <div class="zip-geolocate-result__summary zip-geolocate-result__details">
                                    <span class="zip-geolocate-result__name"></span>
                                    <span class="zip-geolocate-result__distance"></span>
                                </div>
                                <span class="zip-geolocate-result__address zip-geolocate-result__details"></span>
                                <span class="zip-geolocate-result__type zip-geolocate-result__details">Prescription Retailer</span>
                                <a href="#" class="zip-geolocate-result__details-link">
      <svg class="icon icon--arrow-right">
  <use xlink:href="/assets/icons/icons.svg#arrow-right"></use>
</svg>

    </a>
                                <div class="zip-geolocate__actions">
                                </div>
                            </div>
                        </div>

                        <button class="button button--outlined reserve-in-store--change-store-button" type="button">Change Store</button>

                    </div>
                    <div class="modal-form__item-group--contact-info" id="contact-info">
                        <div class="block block--store-info-contact">
                            <h3 class="block__heading">Your contact information</h3>
                            <div class="block__contents">
                                <p class="paragraph">Please wait for the confirmation email. Email will be sent within 24h.</p>

                            </div>
                        </div>

                    </div>
                    <div class="modal-form__item-group--contact-info-form" id="contact-info-form">
                        <div class="form-item form-item--text form-item--reserve-first-name form-item--required">
                            <label for="reserve-first-name" class="label label--text label--required">First Name</label>
                            <input type="text" id="reserve-first-name" name="reserve-first-name" class="input input--text">
                        </div>

                        <div class="form-item form-item--text form-item--reserve-last-name form-item--required">
                            <label for="reserve-last-name" class="label label--text label--required">Last Name</label>
                            <input type="text" id="reserve-last-name" name="reserve-last-name" class="input input--text">
                        </div>

                        <div class="form-item form-item--text form-item--reserve-phone-number form-item--required">
                            <label for="reserve-phone-number" class="label label--text label--required">Phone number</label>
                            <input type="text" id="reserve-phone-number" name="reserve-phone-number" class="input input--text">
                        </div>

                        <div class="form-item form-item--email form-item--reserve-email-address form-item--required">
                            <label for="reserve-email-address" class="label label--email label--required">Email address</label>
                            <input type="email" id="reserve-email-address" name="reserve-email-address" class="input input--email">
                        </div>

                        <div class="form-item form-item--checkbox">
                            <input type="checkbox" id="reserve-receive-updates" name="reserve-receive-updates" class="checkbox checkbox--default" checked="true">
                            <label for="reserve-receive-updates">
    I want to receive email updates and information.
    
  </label>
                        </div>

                    </div>
                    <div class="modal-form__actions js-modal-form-actions">
                        <div class="modal-form__action">
                            <button class="button button--primary reserve-variation--button" formnovalidate type="button">Reserve</button>

                        </div>
                    </div>
                    <div class="modal-form__item-group--reservation-info" id="reservation-info">
                        <p class="paragraph paragraph--store-info-reservation"><strong>Please Note:</strong> You can reserve 5 items daily. After we confirm an item is available, we hold it until the store closes the next day.</p>

                    </div>
                </div>
                <div class="view js-view view--hidden modal-form--form modal-form__item-group--error" id="modal-form--error">
                    <img src="/assets/images/mauijim-brand-mark-grey-small.png" alt="" class="image reserve-in-store__error-image">

                    <p class="paragraph reserve-in-store__kaumaha">Kaumaha!</p>

                    <p class="paragraph reserve-in-store__error">Something went wrong, please try again later or contact the Customer Service at 888-666-5905</p>

                    <p class="paragraph reserve-in-store__add-to-cart"><a href="#">Add this product to cart</a></p>

                    <button class="button button--outlined reserve-in-store__continue-shopping" type="button">Continue Shopping</button>

                </div>
                <div class="view js-view view--hidden modal-form--confirmation" id="modal-form--confirmation">
                    <div class="modal-form__item-group--request-received">
                        <div class="block block--request-received">
                            <h3 class="block__heading reserve-in-store--request-received--customer-name">Thanks {{reserve--first-name}} {{reserve--last-name}}!</h3>
                            <div class="block__contents">
                                <p class="paragraph paragraph--request-received">Your request is received.</p>

                            </div>
                        </div>

                        <div class="block block--request-store-confirmation">
                            <h3 class="block__heading">Almost Done!</h3>
                            <div class="block__contents">
                                <div class="icon-step icon-step--we-contact-you">
                                    <svg class="icon icon--clock">
  <use xlink:href="/assets/icons/icons.svg#clock"></use>
</svg>

                                    <span class="icon-step__details"><strong>We'll contact you within 24h</strong> to confirm that your item is ready.</span>
                                </div>

                                <div class="icon-step icon-step--check-your-email">
                                    <svg class="icon icon--action-mail">
  <use xlink:href="/assets/icons/icons.svg#action-mail"></use>
</svg>

                                    <span class="icon-step__details"><strong>Check your email</strong> {{reserve--email-address}} for further instructions.</span>
                                </div>

                                <div class="icon-step icon-step--after-confirmation">
                                    <svg class="icon icon--store">
  <use xlink:href="/assets/icons/icons.svg#store"></use>
</svg>

                                    <span class="icon-step__details"><strong>After the confirmation email,</strong> go to the store within the next two days.</span>
                                </div>

                            </div>
                        </div>

                        <div class="block block--request-store-details">
                            <h3 class="block__heading">Store Details:</h3>
                            <div class="block__contents">
                                <div class="zip-geolocate__results">
                                    <div class="zip-geolocate__result">
                                        <div class="zip-geolocate-result__summary zip-geolocate-result__details">
                                            <span class="zip-geolocate-result__name"></span>
                                            <span class="zip-geolocate-result__distance"></span>
                                        </div>
                                        <span class="zip-geolocate-result__address zip-geolocate-result__details"></span>
                                        <span class="zip-geolocate-result__type zip-geolocate-result__details">Prescription Retailer</span>
                                        <div class="zip-geolocate__actions">
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>

                        <img src="/assets/images/mauijim-brand-logo.png" alt="" class="image reserved-product__image">

                        <button class="button button--primary reserved-product__continue-shopping" type="button">Continue Shopping</button>

                        <p class="paragraph paragraph--store-info-reservation"><strong>Please Note:</strong> You can reserve 5 items daily. After we confirm an item is available, we hold it until the store closes the next day.</p>

                    </div>
                </div>
            </div>

        </div>
    </div>
</form>
<form class="modal-form modal-form--{{#if modifier}}{{modifier}}{{else}}{{_self.name}}{{/if}} js-modal-form{{#if noReset}} js-modal-form-no-reset{{/if}}" {{#if action}}action="{{action}}"{{/if}}>
  {{#if formItemGroups}}
  <div class="modal-form__items{{#if columns}} modal-form__items--{{columns}}-cols{{/if}}">
    {{#each formItemGroups}}
    <div class="modal-form__item-group{{#if groupVariant}} modal-form__item-group--{{groupVariant}}{{/if}}">
      {{#each formItems}}
      {{render (dynamicComponent component) this}}
      {{/each}}
    </div>
    {{/each}}
  </div>
  {{/if}}
  {{#if actions}}
  <div class="modal-form__actions js-modal-form-actions">
    {{#each actions}}
    <div class="modal-form__action">
      {{render (dynamicVariant 'buttons' type) this merge=true}}
    </div>
    {{/each}}
  </div>
  {{/if}}
</form>
{
  "action": "8f6ce88d42dd6b994dd53f53149d089a",
  "modifier": "reserve-in-store",
  "columns": "1",
  "formItemGroups": [
    {
      "groupVariant": "product",
      "formItems": [
        {
          "component": "card--reserve-in-store",
          "classes": [
            "card--reserve-in-store"
          ],
          "reserveInStore": true,
          "name": "PEAHI",
          "mauijim": null,
          "excludeStatus": true,
          "variants": [
            {
              "id": "202-02",
              "name": "Gloss Black",
              "color": "#000",
              "orderMonth": "12",
              "orderYear": "2017",
              "locationCategory": "Online Retailer",
              "purchaseLocation": "Dicks.com",
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/202-02_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/202-02_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/202-02_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": true,
              "price": "$149.00",
              "salePrice": "$229.00",
              "url": "#202-02",
              "status": "New",
              "stock": "In Stock",
              "lens": "Neutral Grey",
              "lensId": "neutralgrey",
              "lensFull": "Neutral Grey - Highest light reduction for rich color and contrast.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "202-02",
                "inactive": null,
                "material": "superthin"
              }
            },
            {
              "id": "B202-2M",
              "name": "Matte Black",
              "color": "#000",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/B202-2M_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$189.00",
              "salePrice": "$219.00",
              "url": "#B202-2M",
              "status": null,
              "stock": "In Stock",
              "lens": "Blue Hawaii",
              "lensId": "bluehawaii",
              "lensFull": "Blue Hawaii - Blue mirror coating provides a stylish new look.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "B202-2M",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "H202-10",
              "name": "Dark Tortoise",
              "color": "#303032",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/H202-10_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-10_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/H202-10_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": "https://mauijim.scene7.com/is/image/mauijim/10",
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#H202-10",
              "status": null,
              "stock": "In Stock",
              "lens": "HCL® Bronze",
              "lensId": "hclbronze",
              "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "H202-10",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "H202-2M",
              "name": "Matte Black",
              "color": "#000",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#H202-2M",
              "status": "New",
              "stock": "In Stock",
              "lens": "HCL® Bronze",
              "lensId": "hclbronze",
              "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "H202-2M",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "H202-70",
              "name": "Redfish",
              "color": "#7d4a07",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#H202-70",
              "status": null,
              "stock": "In Stock",
              "lens": "HCL® Bronze",
              "lensId": "hclbronze",
              "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "H202-70",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "HT202-71",
              "name": "MahiMahi",
              "color": "#218b16",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#HT202-71",
              "status": "New",
              "stock": "In Stock",
              "lens": "Maui HT™",
              "lensId": "mauiht",
              "lensFull": "Maui HT™ - Highest usable light transmission for incredible depth perception.",
              "lensMaterial": "MauiPure",
              "lensMaterialFull": "MauiPure - The lightest weight choice for long days in the sun.",
              "lensDetailData": {
                "product": "HT202-71",
                "inactive": true,
                "material": "mauipure"
              }
            },
            {
              "id": "H202-2M-2",
              "name": "Matte Black",
              "color": "#000",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/H202-2M_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#H202-2M-2",
              "status": null,
              "stock": "Out of Stock",
              "lens": "HCL® Bronze",
              "lensId": "hclbronze",
              "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "H202-2M-2",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "H202-70-2",
              "name": "Redfish",
              "color": "#7d4a07",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/H202-70_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/H202-70_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/H202-70_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#H202-70-2",
              "status": null,
              "stock": "In Stock",
              "lens": "HCL® Bronze",
              "lensId": "hclbronze",
              "lensFull": "HCL® Bronze - Versatile in changing conditions with a warm tint.",
              "lensMaterial": "SuperThin Glass",
              "lensMaterialFull": "SuperThin Glass - Perfect when clarity is your highest priority.",
              "lensDetailData": {
                "product": "H202-70-2",
                "inactive": true,
                "material": "superthin"
              }
            },
            {
              "id": "HT202-71-2",
              "name": "MahiMahi",
              "color": "#218b16",
              "orderMonth": null,
              "orderYear": null,
              "locationCategory": null,
              "purchaseLocation": null,
              "images": {
                "front": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_front?$config1800$",
                "angle": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_quarter?$config1800$",
                "side": "https://mauijim.scene7.com/is/image/mauijim/HT202-71_side?$config1800$"
              },
              "swatch": "https://sprint.design.mauijim.dev.idibgroup.com/assets/images/pattern-placeholder.png",
              "swatchImage": null,
              "active": null,
              "price": "$229.00",
              "salePrice": null,
              "url": "#HT202-71-2",
              "status": null,
              "stock": "In Stock",
              "lens": "Maui HT™",
              "lensId": "mauiht",
              "lensFull": "Maui HT™ - Highest usable light transmission for incredible depth perception.",
              "lensMaterial": "MauiPure",
              "lensMaterialFull": "MauiPure - The lightest weight choice for long days in the sun.",
              "lensDetailData": {
                "product": "HT202-71-2",
                "inactive": true,
                "material": "mauipure"
              }
            }
          ]
        }
      ]
    },
    {
      "groupVariant": "views",
      "formItems": [
        {
          "component": "views",
          "id": "modal-form--views",
          "classes": [
            "modal-form--views"
          ],
          "views": [
            {
              "id": "modal-form--search",
              "classes": [
                "modal-form--search"
              ],
              "active": true,
              "default": true,
              "children": [
                {
                  "component": "input--zip-geolocate",
                  "id": "form-example-zip-geolocate",
                  "name": "zip-geolocate",
                  "submit": "Find stores",
                  "placeholder": "Zip code",
                  "value": null,
                  "actions": [
                    {
                      "modifier": "primary",
                      "name": "zip",
                      "type": "button",
                      "buttonLabels": [
                        {
                          "size": "large",
                          "text": "Find Stores",
                          "icon": "search"
                        }
                      ]
                    },
                    {
                      "modifier": "plain-text",
                      "name": "reset",
                      "type": "reset",
                      "classes": [
                        "js-zip-geolocate"
                      ],
                      "buttonLabels": [
                        {
                          "icon": "close-large",
                          "size": "large",
                          "text": "Clear",
                          "classes": [
                            "u-visually-hidden"
                          ]
                        }
                      ]
                    }
                  ]
                },
                {
                  "component": "views",
                  "id": "modal-form--search-views",
                  "classes": [
                    "modal-form--search-views"
                  ],
                  "views": [
                    {
                      "id": "modal-form--search-views--start",
                      "active": true,
                      "default": true,
                      "classes": [
                        "modal-form--search-view",
                        "search-views--start"
                      ],
                      "children": [
                        {
                          "component": "paragraph",
                          "value": "Type your Zip code to find stores and see product availability.",
                          "classes": [
                            "reserve-in-store__search-message"
                          ]
                        },
                        {
                          "component": "image",
                          "src": "/assets/images/mauijim-brand-logo.png",
                          "classes": [
                            "reserve-in-store__search-image"
                          ]
                        }
                      ]
                    },
                    {
                      "id": "modal-form--search-views--no-results",
                      "classes": [
                        "modal-form__item-group--error",
                        "modal-form--search-view",
                        "search-views--no-results"
                      ],
                      "children": [
                        {
                          "component": "image",
                          "src": "/assets/images/mauijim-brand-mark-grey-small.png",
                          "classes": [
                            "reserve-in-store__error-image"
                          ]
                        },
                        {
                          "component": "paragraph",
                          "classes": [
                            "reserve-in-store__kaumaha"
                          ],
                          "value": "Kaumaha!"
                        },
                        {
                          "component": "paragraph",
                          "classes": [
                            "reserve-in-store__no-results-message"
                          ],
                          "value": "Unfortunately this style is not available to reserve online in your area."
                        }
                      ]
                    },
                    {
                      "id": "modal-form--search-views--error",
                      "classes": [
                        "modal-form__item-group--error",
                        "modal-form--search-view",
                        "search-views--error"
                      ],
                      "children": [
                        {
                          "component": "image",
                          "src": "/assets/images/mauijim-brand-mark-grey-small.png",
                          "classes": [
                            "reserve-in-store__error-image"
                          ]
                        },
                        {
                          "component": "paragraph",
                          "classes": [
                            "reserve-in-store__kaumaha"
                          ],
                          "value": "Kaumaha!"
                        },
                        {
                          "component": "paragraph",
                          "classes": [
                            "reserve-in-store__error"
                          ],
                          "value": "Something went wrong, please try again later."
                        },
                        {
                          "component": "buttons",
                          "modifier": "outlined",
                          "buttonType": "button",
                          "name": "continue-shopping",
                          "buttonValue": "Continue Shopping",
                          "classes": [
                            "reserve-in-store__continue-shopping"
                          ]
                        }
                      ]
                    },
                    {
                      "id": "modal-form--search-views--store-results",
                      "classes": [
                        "modal-form--search-view",
                        "search-views--store-results"
                      ],
                      "children": [
                        {
                          "component": "zip-geolocate-result",
                          "resultsFound": true,
                          "stores": [],
                          "classes": [
                            "reserve-in-store--store-results"
                          ]
                        },
                        {
                          "component": "paragraph",
                          "classes": [
                            "reserve-in-store__availability-update"
                          ],
                          "value": "Product availability daily updated."
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "id": "modal-form--form",
              "classes": [
                "modal-form--form"
              ],
              "children": [
                {
                  "component": "form-item-group",
                  "id": "store-info",
                  "prefix": "modal",
                  "groupVariant": "store-info",
                  "formItems": [
                    {
                      "component": "zip-geolocate-result",
                      "stores": [
                        {
                          "detailsLink": true,
                          "url": "#",
                          "name": null,
                          "address": null,
                          "type": "Prescription Retailer",
                          "distance": null,
                          "actions": []
                        }
                      ]
                    },
                    {
                      "component": "buttons",
                      "modifier": "outlined",
                      "buttonType": "button",
                      "name": "change-store",
                      "buttonValue": "Change Store",
                      "classes": [
                        "reserve-in-store--change-store-button"
                      ]
                    }
                  ]
                },
                {
                  "component": "form-item-group",
                  "id": "contact-info",
                  "prefix": "modal",
                  "groupVariant": "contact-info",
                  "formItems": [
                    {
                      "component": "block",
                      "heading": "Your contact information",
                      "level": 3,
                      "modifier": "store-info-contact",
                      "items": [
                        {
                          "component": "paragraph",
                          "classes": true,
                          "value": "Please wait for the confirmation email. Email will be sent within 24h."
                        }
                      ]
                    }
                  ]
                },
                {
                  "component": "form-item-group",
                  "id": "contact-info-form",
                  "prefix": "modal",
                  "groupVariant": "contact-info-form",
                  "formItems": [
                    {
                      "id": "reserve-first-name",
                      "name": "reserve-first-name",
                      "type": "text",
                      "component": "input",
                      "label": "First Name",
                      "required": true
                    },
                    {
                      "id": "reserve-last-name",
                      "name": "reserve-last-name",
                      "type": "text",
                      "component": "input",
                      "label": "Last Name",
                      "required": true
                    },
                    {
                      "id": "reserve-phone-number",
                      "name": "reserve-phone-number",
                      "type": "text",
                      "component": "input",
                      "label": "Phone number",
                      "required": true
                    },
                    {
                      "id": "reserve-email-address",
                      "name": "reserve-email-address",
                      "type": "email",
                      "component": "input",
                      "label": "Email address",
                      "required": true
                    },
                    {
                      "id": "reserve-receive-updates",
                      "name": "reserve-receive-updates",
                      "component": "checkbox",
                      "modifier": "default",
                      "label": "I want to receive email updates and information.",
                      "checked": true
                    }
                  ]
                },
                {
                  "component": "form-actions",
                  "modifier": "modal",
                  "actions": [
                    {
                      "type": "primary",
                      "buttonValue": "Reserve",
                      "buttonType": "button",
                      "noValidate": true,
                      "classes": [
                        "reserve-variation--button"
                      ]
                    }
                  ]
                },
                {
                  "component": "form-item-group",
                  "id": "reservation-info",
                  "prefix": "modal",
                  "groupVariant": "reservation-info",
                  "formItems": [
                    {
                      "component": "paragraph",
                      "classes": [
                        "paragraph--store-info-reservation"
                      ],
                      "value": "<strong>Please Note:</strong> You can reserve 5 items daily. After we confirm an item is available, we hold it until the store closes the next day."
                    }
                  ]
                }
              ]
            },
            {
              "id": "modal-form--error",
              "classes": [
                "modal-form--form",
                "modal-form__item-group--error"
              ],
              "children": [
                {
                  "component": "image",
                  "src": "/assets/images/mauijim-brand-mark-grey-small.png",
                  "classes": [
                    "reserve-in-store__error-image"
                  ]
                },
                {
                  "component": "paragraph",
                  "classes": [
                    "reserve-in-store__kaumaha"
                  ],
                  "value": "Kaumaha!"
                },
                {
                  "component": "paragraph",
                  "classes": [
                    "reserve-in-store__error"
                  ],
                  "value": "Something went wrong, please try again later or contact the Customer Service at 888-666-5905"
                },
                {
                  "component": "paragraph",
                  "classes": [
                    "reserve-in-store__add-to-cart"
                  ],
                  "value": "<a href=\"#\">Add this product to cart</a>"
                },
                {
                  "component": "buttons",
                  "modifier": "outlined",
                  "buttonType": "button",
                  "name": "continue-shopping",
                  "buttonValue": "Continue Shopping",
                  "classes": [
                    "reserve-in-store__continue-shopping"
                  ]
                }
              ]
            },
            {
              "id": "modal-form--confirmation",
              "classes": [
                "modal-form--confirmation"
              ],
              "children": [
                {
                  "component": "form-item-group",
                  "prefix": "modal",
                  "groupVariant": "request-received",
                  "formItems": [
                    {
                      "component": "block",
                      "heading_classes": [
                        "reserve-in-store--request-received--customer-name"
                      ],
                      "heading": "Thanks {{reserve--first-name}} {{reserve--last-name}}!",
                      "level": 3,
                      "modifier": "request-received",
                      "items": [
                        {
                          "component": "paragraph",
                          "classes": [
                            "paragraph--request-received"
                          ],
                          "value": "Your request is received."
                        }
                      ]
                    },
                    {
                      "component": "block",
                      "heading": "Almost Done!",
                      "level": 3,
                      "modifier": "request-store-confirmation",
                      "items": [
                        {
                          "component": "icon-step",
                          "icon": "clock",
                          "details": "<strong>We'll contact you within 24h</strong> to confirm that your item is ready.",
                          "modifier": "we-contact-you"
                        },
                        {
                          "component": "icon-step",
                          "icon": "action-mail",
                          "details": "<strong>Check your email</strong> {{reserve--email-address}} for further instructions.",
                          "modifier": "check-your-email"
                        },
                        {
                          "component": "icon-step",
                          "icon": "store",
                          "details": "<strong>After the confirmation email,</strong> go to the store within the next two days.",
                          "modifier": "after-confirmation"
                        }
                      ]
                    },
                    {
                      "component": "block",
                      "heading": "Store Details:",
                      "level": 3,
                      "modifier": "request-store-details",
                      "items": [
                        {
                          "component": "zip-geolocate-result",
                          "stores": [
                            {
                              "detailsLink": null,
                              "url": "#",
                              "name": null,
                              "address": null,
                              "type": "Prescription Retailer",
                              "distance": null,
                              "actions": []
                            }
                          ]
                        }
                      ]
                    },
                    {
                      "component": "image",
                      "src": "/assets/images/mauijim-brand-logo.png",
                      "classes": [
                        "reserved-product__image"
                      ]
                    },
                    {
                      "component": "buttons",
                      "modifier": "primary",
                      "buttonType": "button",
                      "buttonValue": "Continue Shopping",
                      "classes": [
                        "reserved-product__continue-shopping"
                      ]
                    },
                    {
                      "component": "paragraph",
                      "classes": [
                        "paragraph--store-info-reservation"
                      ],
                      "value": "<strong>Please Note:</strong> You can reserve 5 items daily. After we confirm an item is available, we hold it until the store closes the next day."
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
  • Content:
    .modal-form {
      .label {
        margin-bottom: 4px;
      }
    }
    
    .modal-form__item-group {
      clear: both;
    
      .form-item--zip-geolocate {
        margin: 0 $gutter-width-half;
        padding-bottom: 5px;
        border-bottom-style: none;
    
        @include breakpoint($breakpoint-xl) {
          margin: 0 0 0 $gutter-width-half;
          padding-bottom: 11px;
        }
      }
    
      .modal-form--search-views {
        overflow-x: hidden;
    
        @include breakpoint($breakpoint-xl) {
          margin: 4px 0 0 10px;
        }
      }
    
    
    
      .search-views--start {
        padding-top: 55px;
    
        @include breakpoint($breakpoint-xl) {
          padding-top: 60px;
        }
      }
    
      .search-views--no-results,
      .search-views--error {
        padding-top: 32px;
    
        @include breakpoint($breakpoint-xl) {
          padding-top: 37px;
        }
      }
    
      .search-views--store-results {
        @include breakpoint($breakpoint-md) {
          height: calc(100vh - 125px);
        }
    
        @include breakpoint($breakpoint-xl) {
          height: 595px;
          margin: 0 0 0 -10px;
        }
    
        .zip-geolocate__results {
          padding-bottom: 20px;
    
          @include breakpoint($breakpoint-md) {
            padding-bottom: 100px;
          }
    
          @include breakpoint($breakpoint-xl) {
            height: 570px;
            padding-bottom: 0;
            overflow-y: auto;
          }
        }
      }
    
      .modal-form--search-view {
        @include breakpoint($breakpoint-xl) {
          border-top: 1px solid $color-light;
        }
      }
    }
    
    .modal-form__items--3-cols {
      @include clearfix;
    
      .form-item {
        margin-right: 0;
        margin-left: 0;
      }
    
      @include breakpoint($breakpoint-md) {
        .form-item {
          @include span(6);
    
          &:nth-of-type(odd) {
            clear: left;
          }
        }
      }
    
      @include breakpoint($breakpoint-xl) {
        .form-item {
          @include span(4);
    
          &:nth-of-type(odd) {
            clear: none;
          }
    
          &:nth-of-type(3n+1) {
            clear: left;
          }
        }
    
        .form-item--checkout-phone-number {
          margin-right: auto;
          margin-left: auto;
          float: none;
          clear: both;
        }
      }
    }
    
    .modal-form__actions {
      @include clearfix;
      margin-top: 10px;
    }
    
    .modal-form__action {
      .button {
        max-width: 100%;
      }
    
      @include breakpoint($breakpoint-sm-only) {
        .button {
          margin-bottom: 10px;
        }
      }
    
      @include breakpoint($breakpoint-md) {
        @include span(6);
    
        &:nth-of-type(odd) {
          text-align: right;
        }
      }
    
    }
    
    .modal-form--repair-options {
      font-size: 1.4rem;
      line-height: 1.7rem;
    
      .paragraph {
        letter-spacing: 0;
        line-height: 2.3rem;
      }
    
      @include breakpoint($breakpoint-md) {
        .modal-form__action {
          width: 100%;
          margin-bottom: 20px;
          float: none;
          text-align: left;
        }
      }
    
      @include breakpoint($breakpoint-xl) {
        font-size: 1.9rem;
        line-height: 2.3rem;
    
        .modal-form__action {
          font-size: 1.4rem;
    
          .button {
            width: 300px;
          }
        }
      }
    }
    
    .modal-form--style-number-help {
      font-size: 1.4rem;
      line-height: 1.7rem;
    
      .paragraph {
        margin: 20px 0;
      }
    
      .image {
        display: block;
        margin: 0 auto;
      }
    
      .modal-form__actions {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
      }
    
      .modal-form__action {
        width: 100%;
      }
    
      @include breakpoint($breakpoint-md) {
        min-height: 510px;
    
        .paragraph {
          margin-top: 15px;
        }
    
        .modal-form__actions {
          bottom: 70px;
        }
    
        .modal-form__action {
          text-align: center;
        }
      }
    
      @include breakpoint($breakpoint-xl) {
        font-size: 2.4rem;
        line-height: 1;
    
        .paragraph {
          margin-top: 10px;
          text-align: center;
        }
      }
    }
    
    // Reserve in Store modal form.
    
    // Modal forms.
    .modal-form--reserve-in-store,
    .modal-form--reserve-in-store-confirmation {
      position: relative;
      max-height: calc(100vh - 50px);
      overflow-x: hidden;
      overflow-y: auto;
    
      @include breakpoint($breakpoint-md) {
        height: 100%;
        overflow-y: hidden;
      }
    
      @include breakpoint($breakpoint-xl) {
        max-width: 860px;
        max-height: none;
        margin: 0 auto;
      }
    
      .modal-form__items {
        @include breakpoint($breakpoint-md) {
          @include clearfix;
          position: fixed;
          top: 60px;
          width: 100%;
          padding: 0 10px 0 0;
        }
    
        @include breakpoint($breakpoint-xl) {
          position: relative;
          top: auto;
          height: 680px;
          padding: 0 60px;
        }
      }
    
      .modal-form__item-group {
        float: none;
    
        &:nth-child(2) {
          padding: 10px 0 0;
          box-sizing: border-box;
        }
    
        @include breakpoint($breakpoint-md) {
          width: calc(100% - 226px);
          height: calc(100vh - 70px);
          margin: 0;
          float: right;
          clear: none;
    
          &:first-child {
            position: absolute;
            width: 226px;
            margin: 0;
            padding: 0;
            float: left;
            border-right: 1px solid $color-light;
            overflow: hidden;
          }
    
          &:nth-child(2) {
            padding: 0;
          }
        }
    
        @include breakpoint($breakpoint-xl) {
          width: calc(100% - 330px);
          height: 640px;
          overflow: hidden;
    
          &:first-child {
            width: 320px;
            padding-right: 10px;
          }
        }
      }
    
      .modal-form__actions {
        position: relative;
        margin: 0 $gutter-width-half;
    
        @include breakpoint($breakpoint-xl) {
          margin: 0;
        }
      }
    
      .modal-form__action {
        width: 100%;
        margin-bottom: $gutter-width-half;
        padding: 0;
        text-align: center;
    
        @include breakpoint($breakpoint-md) {
          text-align: left;
        }
    
        .button--primary {
          @include breakpoint($breakpoint-md) {
            margin-bottom: 10px;
          }
        }
      }
    
      .paragraph {
        a {
          transition: color $transition-standard;
          color: $color-primary;
          text-decoration: none;
    
          &:hover {
            color: $color-primary-hover;
          }
        }
      }
    
      .modal-form--form {
        overflow-y: auto;
        overflow-x: hidden;
    
        .modal-form__actions {
          margin: 0;
        }
    
        .modal-form__action {
          .button--primary {
            @include breakpoint($breakpoint-xl) {
              right: 10px;
            }
          }
        }
    
        @include breakpoint($breakpoint-md) {
          height: calc(100vh - 80px);
          margin: 0 $gutter-width-half;
        }
    
        @include breakpoint($breakpoint-xl) {
          height: 640px;
        }
      }
    
      .modal-form--error {
        padding-top: 60px;
    
        @include breakpoint($breakpoint-md) {
          padding-top: 103px;
        }
      }
    
      .modal-form--confirmation {
        padding: 0 10px 10px;
        overflow-y: auto;
        overflow-x: hidden;
    
        .button--primary {
          margin: 0 auto 10px;
          padding: 0 $gutter-width;
    
          @include breakpoint($breakpoint-md) {
            margin-bottom: 55px;
          }
    
          @include breakpoint($breakpoint-xl) {
            margin-bottom: 30px;
          }
        }
      }
    }
    
    .modal-form--reserve-in-store-confirmation {
      .modal-form__actions {
        margin-top: 30px;
    
        @include breakpoint($breakpoint-md) {
          position: relative;
          width: calc(100% - 280px);
          margin-top: 0;
          float: right;
        }
    
        @include breakpoint($breakpoint-xl) {
          width: calc(100% - 460px);
          margin-right: 60px;
          margin-left: 20px;
        }
      }
    
      .modal-form__action {
        @include breakpoint($breakpoint-md) {
          float: none;
        }
      }
    }
    
    #reservation-info {
      @include breakpoint($breakpoint-sm-only) {
        padding: 0 $gutter-width-half;
      }
    }
    
    // Modal form item groups.
    .modal-form__item-group--product,
    .modal-form__item-group--reserved-product {
      .card__inner {
        @include breakpoint($breakpoint-md) {
          padding: 0;
        }
      }
    
      .card__image {
        margin-top: 0;
      }
    }
    
    .modal-form__item-group--views {
      .zip-geolocate__results {
        overflow: hidden;
    
        @include breakpoint($breakpoint-md) {
          overflow-y: auto;
        }
      }
    }
    
    .modal-form--views {
      @include breakpoint($breakpoint-sm-only) {
        padding-bottom: 100px;
      }
    
      @include breakpoint($breakpoint-md) {
        overflow-y: auto;
      }
    }
    
    .modal-form__item-group--search {
      padding: 0 $gutter-width-half;
    
      @include breakpoint($breakpoint-md) {
        padding: 0;
      }
    }
    
    .modal-form__item-group--store-results {
      padding: 0 $gutter-width-half;
    
      @include breakpoint($breakpoint-md) {
        padding: 0;
      }
    
      .zip-geolocate__results {
        margin-top: 10px;
    
        @include breakpoint($breakpoint-md) {
          max-height: 545px;
          overflow-y: scroll;
        }
      }
    
      .zip-geolocate__result {
        margin-right: -10px;
        margin-left: -10px;
    
        @include breakpoint($breakpoint-md) {
          margin-right: 0;
          margin-left: 0;
        }
      }
    
      .form-item--zip-geolocate {
        margin-bottom: 0;
        border-bottom-style: none;
      }
    
      .block__heading {
        margin: 0;
        float: left;
    
        &:after {
          padding-right: .333em;
          content: ': ';
        }
      }
    }
    
    .modal-form__item-group--store-info {
      padding: 0 $gutter-width-half;
    
      @include breakpoint($breakpoint-md) {
        position: relative;
        padding: 0 0 50px;
        border-bottom: 1px solid $color-light;
      }
    
      @include breakpoint($breakpoint-xl) {
        display: flex;
        justify-content: space-between;
        padding-bottom: 50px;
      }
    
      .zip-geolocate__results {
        margin-bottom: 15px;
      }
    
      .zip-geolocate__result {
        position: relative;
        padding: 15px 0;
        border-bottom: 1px solid $color-light;
        border-top-style: none;
    
        @include breakpoint($breakpoint-sm-only) {
          padding-right: $gutter-width * 2;
        }
    
        @include breakpoint($breakpoint-md) {
          margin: 0;
          padding: 0;
          border-bottom-style: none;
        }
      }
    
      .zip-geolocate-result__name {
        color: $color-dark;
    
        @include breakpoint($breakpoint-xl) {
          margin-bottom: $gutter-width-half;
          font-size: 1.9rem;
          line-height: 2.3rem;
        }
      }
    
      .zip-geolocate-result__address {
        @include breakpoint($breakpoint-xl) {
          font-size: 1.2rem;
          line-height: 1.8rem;
        }
      }
    
      .zip-geolocate-result__distance {
        display: none;
      }
    
      .button--outlined {
        display: none;
        font-weight: $font-weight-bold;
        letter-spacing: 2px;
        text-transform: uppercase;
    
        @include breakpoint($breakpoint-sm-only) {
          padding: 0;
          border-style: none;
          color: $color-primary;
        }
    
        @include breakpoint($breakpoint-md) {
          display: block;
          position: absolute;
          bottom: $gutter-width;
          left: 0;
          height: 30px;
          padding: 0 $gutter-width-half;
          line-height: 30px;
        }
      }
    
      .table {
        display: none;
    
        @include breakpoint($breakpoint-sm-only) {
          .table__toggle-control {
            pointer-events: none;
    
            .icon {
              display: none;
            }
          }
    
          &.table[data-collapsible='1'] tr {
            display: table-row;
          }
        }
    
        @include breakpoint($breakpoint-md) {
          display: block;
          min-width: unset;
          max-width: 15em;
          margin: 0 0 25px;
        }
    
        @include breakpoint($breakpoint-xl) {
          min-width: 200px;
          margin: 0;
        }
    
        caption {
          @include breakpoint($breakpoint-xl) {
            margin-top: 3px;
          }
        }
    
        .icon {
          position: relative;
          left: -5px;
        }
    
        td,
        th {
          @include breakpoint($breakpoint-md) {
            font-size: 1.2rem;
            line-height: 1.8rem;
          }
        }
    
        th {
          padding-right: 5px;
        }
      }
    }
    
    .modal-form__item-group--contact-info {
      @include breakpoint($breakpoint-sm-only) {
        padding-right: $gutter-width-half;
        padding-left: $gutter-width-half;
      }
    }
    
    .modal-form__item-group--contact-info-form {
      margin-bottom: $gutter-width-half;
      padding: 0 $gutter-width-half;
    
      @include breakpoint($breakpoint-md) {
        margin-bottom: 0;
        padding: 0;
      }
    
      @include breakpoint($breakpoint-xl) {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-top: 20px;
      }
    
      .form-item {
        margin: 0 0 10px;
    
        @include breakpoint($breakpoint-xl) {
          flex-grow: 1;
          width: calc(50% - 20px);
          margin: 0 0 13px;
    
          &:nth-child(even) {
            margin-left: 20px;
          }
        }
      }
    }
    
    .modal-form__item-group--reserved-product {
      @include breakpoint($breakpoint-sm-only) {
        position: relative;
      }
    
      .card__inner {
        box-shadow: none;
    
        @include breakpoint($breakpoint-sm-only) {
          margin-top: 110px;
          padding-top: 0;
          padding-bottom: 15px;
        }
      }
    
      .card--confirmed-style {
        @include breakpoint($breakpoint-sm-only) {
          border-bottom: 1px solid $color-light;
        }
      }
    }
    
    .modal-form__item-group--request-received {
      display: flex;
      flex-direction: column;
    
      @include breakpoint($breakpoint-md) {
        .block--request-received {
          order: 1;
        }
    
        .block--request-store-confirmation {
          order: 3;
        }
    
        .block--request-store-details {
          order: 2;
        }
    
        .reserved-product__image {
          order: 4;
        }
    
        .reserved-product__continue-shopping {
          order: 5;
        }
    
        .paragraph--store-info-reservation {
          order: 6;
        }
      }
    
      .paragraph--store-info-reservation {
        @include breakpoint($breakpoint-sm-only) {
          display: none;
        }
      }
    
      .modal-form__actions {
        margin-top: 30px;
      }
    }
    
    .modal-form__item-group--error {
      text-align: center;
    
      .reserve-in-store__kaumaha,
      .reserve-in-store__error,
      .reserve-in-store__no-results-message {
        width: 100%;
        max-width: 300px;
        color: $color-dark;
        font-size: 1.4rem;
        line-height: 1.7rem;
    
        @include breakpoint($breakpoint-md) {
          max-width: 355px;
        }
    
        @include breakpoint($breakpoint-xl) {
          max-width: 440px;
          font-size: 1.9rem;
          line-height: 2.3rem;
        }
      }
    
      .reserve-in-store__kaumaha {
        margin: 20px auto;
        font-weight: bold;
      }
    
      .reserve-in-store__error {
        margin: 0 auto 60px;
      }
    
      &.modal-form--error {
        .reserve-in-store__error {
          margin: 0 auto 20px;
        }
      }
    
      .reserve-in-store__no-results-message {
        margin: 0 auto;
      }
    
      .reserve-in-store__error-image {
        height: 60px;
        margin: 0 auto;
      }
    
      .reserve-in-store__add-to-cart {
        margin-bottom: 60px;
      }
    }
    
    // Blocks.
    .block--store-info-contact {
      padding-top: 20px;
    
      .block__heading {
        margin: 0 0 12px;
        color: $color-dark;
        font-size: 1.6rem;
        font-weight: $font-weight-bold;
        letter-spacing: 1px;
        line-height: 1.9rem;
        text-align: left;
    
        @include breakpoint($breakpoint-md) {
          font-size: 1.4rem;
          line-height: 2.0rem;
        }
    
        @include breakpoint($breakpoint-xl) {
          font-size: 2.4rem;
          line-height: 2.8rem;
        }
      }
    
      .paragraph {
        margin-bottom: 20px;
        font-size: 1.4rem;
        line-height: 2.0rem;
        text-align: left;
    
        &:first-child {
          margin-top: 0;
        }
      }
    }
    
    .block--request-received {
      position: absolute;
      top: 0;
      right: 0;
      left: 0;
      margin-top: 20px;
      margin-bottom: 0;
      padding: 0;
    
      @include breakpoint($breakpoint-md) {
        position: relative;
        margin-top: 0;
        margin-bottom: 30px;
      }
    
      .block__heading {
        margin: 0 0 10px;
        font-size: 1.6rem;
        font-weight: bold;
        letter-spacing: 1px;
        line-height: 1.9rem;
        text-align: center;
    
        @include breakpoint($breakpoint-md) {
          text-align: left;
        }
    
        @include breakpoint($breakpoint-xl) {
          font-size: 2.4rem;
          line-height: 2.8rem;
        }
      }
    }
    
    .block--request-store-details {
      margin-bottom: 25px;
    
      @include breakpoint($breakpoint-md) {
        margin-bottom: 0;
      }
    
      .block__heading {
        margin: 0 auto $gutter-width-half;
        font-size: 1.4rem;
        font-weight: bold;
        letter-spacing: 1px;
        line-height: 2.0rem;
      }
    
      .zip-geolocate-result__type,
      .zip-geolocate-result__distance {
        display: none;
      }
    
      .zip-geolocate__result {
        padding: 0;
        border-top-style: none;
      }
    
      .zip-geolocate-result__name {
        margin-bottom: 0;
        font-weight: $font-weight-normal;
        text-transform: uppercase;
    
        @include breakpoint($breakpoint-md) {
          font-size: 1.9rem;
          line-height: 2.3rem;
        }
      }
    
      .zip-geolocate-result__type {
        display: block;
        margin-top: 10px;
      }
    }
    
    .block--request-store-confirmation {
      margin-top: 0;
      margin-bottom: 50px;
    
      @include breakpoint($breakpoint-md) {
        margin-top: 20px;
        margin-bottom: 10px;
      }
    
      .block__heading {
        margin-top: 10px;
        font-size: 2.0rem;
        font-weight: bold;
        letter-spacing: 1px;
        line-height: 2.4rem;
        text-align: center;
        text-transform: uppercase;
    
        @include breakpoint($breakpoint-md) {
          margin-bottom: 10px;
          font-size: 1.4rem;
          line-height: 2.0rem;
          text-align: left;
          text-transform: none;
        }
      }
    
      .icon-step {
        @include breakpoint($breakpoint-md) {
          margin-bottom: 15px;
        }
      }
    }
    
    // Paragraphs.
    .paragraph--request-received {
      margin: 0 auto;
      font-size: 1.4rem;
      letter-spacing: 1px;
      line-height: 2.0rem;
      text-align: center;
    
      @include breakpoint($breakpoint-md) {
        text-align: left;
      }
    }
    
    .paragraph--store-info-reservation {
      margin: 0;
      font-size: 1.2rem;
      line-height: 1.8rem;
      text-align: left;
    }
    
    .reserve-in-store__search-message {
      width: 100%;
      max-width: 300px;
      margin: 0 auto 60px;
      color: $color-dark;
      font-size: 1.4rem;
      line-height: 1.7rem;
      text-align: center;
    
      & + .reserve-in-store__search-message {
        color: $color-medium-dark;
      }
    
      @include breakpoint($breakpoint-md) {
        max-width: 355px;
      }
    
      @include breakpoint($breakpoint-xl) {
        max-width: 440px;
        font-size: 1.9rem;
        line-height: 2.3rem;
      }
    }
    
    .reserve-in-store__not-available-message {
      margin: 50px 0 45px;
      font-size: 1.4rem;
      line-height: 2.0rem;
      text-align: center;
    
      @include breakpoint($breakpoint-md) {
        margin: 35px 0 50px;
      }
    
      @include breakpoint($breakpoint-xl) {
        font-size: 1.4rem;
        line-height: 2.0rem;
      }
    }
    
    .reserve-in-store__available-locations {
      margin-bottom: 25px;
      color: $color-medium-dark;
      font-size: 1.2rem;
      line-height: 1.5rem;
      text-align: center;
    
      @include breakpoint($breakpoint-xl) {
        font-size: 1.4rem;
        line-height: 2.0rem;
      }
    }
    
    .reserve-in-store__availability-update {
      display: none;
      position: absolute;
      margin: 17px $gutter-width-half 12px;
      background: $color-white;
      color: $color-darkest;
      font-size: 12px;
      line-height: 18px;
      text-align: left;
    
      @include breakpoint($breakpoint-xl) {
        display: block;
      }
    }
    
    .reserve-in-store__results-found {
      position: relative;
      margin: 7px 10px 16px;
      background: $color-white;
      color: $color-medium-dark;
      font-size: 1.4rem;
      letter-spacing: 1px;
      line-height: 2rem;
      text-align: center;
    }
    
    // Etc.
    .reserve-in-store__search-image {
      display: block;
      width: 91px;
      margin: 0 auto;
    
      @include breakpoint($breakpoint-md) {
        width: 163px;
      }
    }
    
    .reserve-in-store__no-results-image,
    .reserve-in-store__not-available-image {
      display: block;
      height: 60px;
      margin: 0 auto;
    }
    
    .reserved-product__image {
      display: block;
      width: 91px;
      margin: 0 auto 25px;
    
      @include breakpoint($breakpoint-md) {
        margin-bottom: 55px;
      }
    
      @include breakpoint($breakpoint-xl) {
        margin-bottom: 30px;
      }
    }
    
    .modal-form--product-variant-selector {
      .radio--image ~ label {
        border: 2px solid transparent;
      }
    
      .radio--image:checked ~ label {
        border-color: $color-primary;
    
        // Resets the default in radio.scss.
        .radio__image {
          border-color: transparent;
        }
      }
    }
    
    #contact-info-form {
      .form-item--error {
        .input {
          margin-bottom: 0;
        }
      }
    
      .input-error {
        margin-top: 5px;
      }
    }
    
  • URL: /components/raw/modal-form/modal-form.scss
  • Filesystem Path: src/components/01-elements/forms/modal-form/modal-form.scss
  • Size: 19.3 KB
  • Content:
    (function (window) {
      'use strict';
    
      function handleSelectClick(e) {
        componentEvents.emitEvent('open-modal', [{
          id: 'product-variant-selector'
        }]);
    
        e.preventDefault();
      }
    
      function handleModalFormSubmit(e) {
        e.preventDefault();
    
        const select = document.querySelector('.js-select-pdp-variant-modal');
        const elements = e.target.elements;
        let newVariantId = null;
    
        componentEvents.emitEvent('close-modal', [{
          id: 'product-variant-selector',
          formReset: false
        }]);
    
        for (let i = 0; i < elements.length; i++) {
          if (elements[i].checked == true) {
            newVariantId = elements[i].value;
          }
        }
    
        // Update the select list that triggers the modal open.
        if (select) {
          select.value = newVariantId;
          triggerNativeEvent(select, 'change');
        }
    
        // Simulate the necessary pieces normally handled within product-detail.js
        // when switching variants.
        if (newVariantId) {
          const detailVariant = document.querySelector('.js-product-detail-variant--active');
          const carouselImages = document.querySelectorAll('.js-product-detail-carousel-image');
          const productInformation = document.querySelectorAll(`[data-product-id]`);
          const variantInformation = document.querySelectorAll(`[data-product-id="${newVariantId}"]`);
    
          // Assumes there is only 1 variant in the actual product-detail component.
          if (detailVariant) {
            detailVariant.setAttribute('data-id', newVariantId);
            window.componentEvents.emitEvent('active-product-variant');
          }
    
          // Update the carousel images to show the new variant.
          for (let i = 0; i < carouselImages.length; i++) {
            carouselImages[i].setAttribute('src', carouselImages[i].getAttribute('data-' + newVariantId));
          }
    
          for (let i = 0; i < productInformation.length; i++) {
            productInformation[i].classList.add('js-hidden');
          }
          for (let i = 0; i < variantInformation.length; i++) {
            variantInformation[i].classList.remove('js-hidden');
          }
        }
      }
    
      function init() {
        const select = document.querySelector('.js-select-pdp-variant-modal');
        const modalForm = document.querySelector('.js-modal-form.modal-form--product-variant-selector');
    
        if (select && !select.classList.contains('js-component-init-pdp')) {
          select.addEventListener('mousedown', handleSelectClick);
          select.classList.add('js-component-init-pdp');
        }
    
        if (modalForm && !modalForm.classList.contains('js-component-init')) {
          modalForm.addEventListener('submit', handleModalFormSubmit);
          modalForm.classList.add('js-component-init');
        }
      }
    
      // Allow application JS to reinitialize any instances added with Ajax, etc.
      if (typeof componentEvents !== 'undefined') {
        componentEvents.on('component-init', init);
      }
    
      init();
    
    })(this);
    
  • URL: /components/raw/modal-form/product-variant-selector-form.js
  • Filesystem Path: src/components/01-elements/forms/modal-form/product-variant-selector-form.js
  • Size: 2.9 KB
  • Content:
    (function (window) {
      'use strict';
    
      const confirmationNames = document.querySelector('.reserve-in-store--request-received--customer-name');
      const confirmationEmail = document.querySelector('.icon-step--check-your-email .icon-step__details');
      const modalForm = document.querySelector('.js-modal-form.modal-form--reserve-in-store');
    
      function init() {
        if (modalForm && !modalForm.classList.contains('js-component-init')) {
          if(confirmationNames) {
            confirmationNames.setAttribute('data-content', btoa(confirmationNames.innerHTML));
          }
    
          if(confirmationEmail) {
            confirmationEmail.setAttribute('data-content', btoa(confirmationEmail.innerHTML));
          }
    
          modalForm.classList.add('js-component-init');
        }
      }
    
      // Allow application JS to reinitialize any instances added with Ajax, etc.
      if (typeof componentEvents !== 'undefined') {
        componentEvents.on('component-init', init);
      }
    
      init();
    
    })(this);
    
  • URL: /components/raw/modal-form/reserve-in-store-form.js
  • Filesystem Path: src/components/01-elements/forms/modal-form/reserve-in-store-form.js
  • Size: 958 Bytes

There are no notes for this item.