@gem-sdk/components 19.0.0-staging.52 → 19.0.0-staging.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var a=require("@gem-sdk/core");exports.default=({setting:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var a=require("@gem-sdk/core");exports.default=({setting:e,advanced:t})=>{let{widgetType:l,align:s}=e??{};return a.template`
|
|
2
2
|
<div
|
|
3
|
-
class="${
|
|
3
|
+
class="${t?.cssClass} gp-appstle-loyalty [&_*]:gp-max-w-none"
|
|
4
4
|
style="${{...a.makeStyleResponsive("ta",s)}}"
|
|
5
5
|
>
|
|
6
6
|
{% assign widget = '${l}' %}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
{% when "points_display_on_product" %}
|
|
11
11
|
<div class="appstle-loyalty-acquire-points-block" data-appstle-loyalty="APPSTLE_LOYALTY_ACQUIRE_POINTS" id="appstle-loyalty-acquire-points-block"></div>
|
|
12
12
|
{% when "points_display_on_collections" %}
|
|
13
|
-
<div class="
|
|
13
|
+
<div class="appstle_loyalty_stand_alone_selector" data-product-id="{{product.id}}" data-product-handle="{{product.handle}}" data-variant-id="{{ product.selected_or_first_available_variant.id }}" data-product-data="{{product | json | escape}}"></div>
|
|
14
14
|
{% endcase %}
|
|
15
15
|
</div>
|
|
16
16
|
`};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{makeStyleResponsive as a,template as t}from"@gem-sdk/core";let l=({setting:l,advanced:
|
|
1
|
+
import{makeStyleResponsive as a,template as t}from"@gem-sdk/core";let l=({setting:l,advanced:e})=>{let{widgetType:d,align:s}=l??{};return t`
|
|
2
2
|
<div
|
|
3
|
-
class="${
|
|
3
|
+
class="${e?.cssClass} gp-appstle-loyalty [&_*]:gp-max-w-none"
|
|
4
4
|
style="${{...a("ta",s)}}"
|
|
5
5
|
>
|
|
6
|
-
{% assign widget = '${
|
|
6
|
+
{% assign widget = '${d}' %}
|
|
7
7
|
{% case widget %}
|
|
8
8
|
{% when "loyalty_dedicated_page" %}
|
|
9
9
|
<div class="appstleLoyaltyPage" data-appstle-loyalty="APPSTLE_LOYALTY_PAGE" id="appstleLoyaltyPage"></div>
|
|
10
10
|
{% when "points_display_on_product" %}
|
|
11
11
|
<div class="appstle-loyalty-acquire-points-block" data-appstle-loyalty="APPSTLE_LOYALTY_ACQUIRE_POINTS" id="appstle-loyalty-acquire-points-block"></div>
|
|
12
12
|
{% when "points_display_on_collections" %}
|
|
13
|
-
<div class="
|
|
13
|
+
<div class="appstle_loyalty_stand_alone_selector" data-product-id="{{product.id}}" data-product-handle="{{product.handle}}" data-variant-id="{{ product.selected_or_first_available_variant.id }}" data-product-data="{{product | json | escape}}"></div>
|
|
14
14
|
{% endcase %}
|
|
15
15
|
</div>
|
|
16
16
|
`};export{l as default};
|