@total_onion/onion-library 2.0.127 → 2.0.129

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/components/block-post-type-filter-grid-v3/group_64690c62487bc.json +270 -92
  2. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/buy-now-widget.vue +5 -5
  3. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/global-image-widget.vue +1 -1
  4. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-author-widget.vue +1 -1
  5. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-category-widget.vue +1 -1
  6. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-component.vue +2 -59
  7. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-headline-widget.vue +1 -1
  8. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-image-widget.vue +5 -5
  9. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-description.vue +2 -1
  10. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-info-subtitle.vue +2 -1
  11. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-link-widget.vue +3 -3
  12. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-publish-widget.vue +1 -1
  13. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/post-title-widget.vue +1 -1
  14. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/ptfg-utils.vue +10 -10
  15. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/shopify-add-to-cart.vue +6 -12
  16. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/spacer-widget.vue +1 -1
  17. package/package.json +1 -1
  18. package/public/jsAssets.mjs +1 -0
  19. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-category.vue +0 -40
  20. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/cocktail-tasting-notes.vue +0 -15
  21. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/drink-tastes.vue +0 -26
  22. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/featured-post-component.vue +0 -62
  23. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-email-widget.vue +0 -20
  24. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-name-widget.vue +0 -15
  25. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-questionaire-widget.vue +0 -17
  26. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/person-rating-widget.vue +0 -25
  27. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-abv.vue +0 -18
  28. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-age-statement.vue +0 -17
  29. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-bazaarvoice.vue +0 -15
  30. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-brand.vue +0 -16
  31. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-cask-type.vue +0 -16
  32. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-country.vue +0 -14
  33. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-description.vue +0 -15
  34. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-name.vue +0 -18
  35. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-details-price.vue +0 -15
  36. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-finish.vue +0 -15
  37. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-history.vue +0 -16
  38. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-link.vue +0 -15
  39. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-logo-widget.vue +0 -22
  40. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-name.vue +0 -17
  41. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-nose.vue +0 -16
  42. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-price.vue +0 -15
  43. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-slug.vue +0 -14
  44. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-taste.vue +0 -16
  45. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/product-whisky-type.vue +0 -25
  46. package/components/block-post-type-filter-grid-v3/post-type-filter-grid-v3/social-media-item.vue +0 -58
@@ -37,15 +37,14 @@
37
37
  "id": ""
38
38
  },
39
39
  "choices": {
40
- "__page": "Page",
41
- "__cocktail": "Cocktail",
42
- "__drink": "Drink",
43
- "__product": "Product",
44
- "__post": "Post",
45
- "__media": "Media",
46
- "__person": "Person"
47
- },
48
- "default_value": "__product",
40
+ "page": "Page",
41
+ "cocktail": "Cocktail",
42
+ "drink": "Drink",
43
+ "product": "Product",
44
+ "post": "Post",
45
+ "media": "Media"
46
+ },
47
+ "default_value": "post",
49
48
  "return_format": "value",
50
49
  "multiple": 0,
51
50
  "max": "",
@@ -599,6 +598,52 @@
599
598
  "acfe_clone_modal_close": 0,
600
599
  "acfe_clone_modal_button": "",
601
600
  "acfe_clone_modal_size": "large"
601
+ },
602
+ {
603
+ "key": "field_691256f524189",
604
+ "label": "Style",
605
+ "name": "",
606
+ "aria-label": "",
607
+ "type": "tab",
608
+ "instructions": "",
609
+ "required": 0,
610
+ "conditional_logic": 0,
611
+ "wrapper": {
612
+ "width": "",
613
+ "class": "",
614
+ "id": ""
615
+ },
616
+ "placement": "top",
617
+ "endpoint": 0,
618
+ "no_preference": 0,
619
+ "selected": 0
620
+ },
621
+ {
622
+ "key": "field_691256fc2418a",
623
+ "label": "Text Editor Settingsfields",
624
+ "name": "text_editor_settings_fields",
625
+ "aria-label": "",
626
+ "type": "clone",
627
+ "instructions": "",
628
+ "required": 0,
629
+ "conditional_logic": 0,
630
+ "wrapper": {
631
+ "width": "",
632
+ "class": "",
633
+ "id": ""
634
+ },
635
+ "clone": [
636
+ "group_687a4e2334e37"
637
+ ],
638
+ "display": "seamless",
639
+ "layout": "block",
640
+ "prefix_label": 0,
641
+ "prefix_name": 0,
642
+ "acfe_seamless_style": 0,
643
+ "acfe_clone_modal": 0,
644
+ "acfe_clone_modal_close": 0,
645
+ "acfe_clone_modal_button": "",
646
+ "acfe_clone_modal_size": "large"
602
647
  }
603
648
  ],
604
649
  "min": "",
@@ -815,6 +860,161 @@
815
860
  "acfe_flexible_category": false,
816
861
  "acfe_layout_col": "auto",
817
862
  "acfe_layout_allowed_col": false
863
+ },
864
+ "layout_691251abeb753": {
865
+ "key": "layout_691251abeb753",
866
+ "name": "spacer",
867
+ "label": "Spacer",
868
+ "display": "block",
869
+ "sub_fields": [
870
+ {
871
+ "key": "field_691251abeb755",
872
+ "label": "Grid Layout",
873
+ "name": "",
874
+ "aria-label": "",
875
+ "type": "tab",
876
+ "instructions": "",
877
+ "required": 0,
878
+ "conditional_logic": 0,
879
+ "wrapper": {
880
+ "width": "",
881
+ "class": "",
882
+ "id": ""
883
+ },
884
+ "placement": "top",
885
+ "endpoint": 0,
886
+ "no_preference": 0,
887
+ "selected": 0
888
+ },
889
+ {
890
+ "key": "field_691251abeb756",
891
+ "label": "Grid layout fields",
892
+ "name": "grid_layout_fields",
893
+ "aria-label": "",
894
+ "type": "clone",
895
+ "instructions": "",
896
+ "required": 0,
897
+ "conditional_logic": 0,
898
+ "wrapper": {
899
+ "width": "",
900
+ "class": "",
901
+ "id": ""
902
+ },
903
+ "clone": [
904
+ "group_68822860bda9f"
905
+ ],
906
+ "display": "seamless",
907
+ "layout": "block",
908
+ "prefix_label": 0,
909
+ "prefix_name": 0,
910
+ "acfe_seamless_style": 0,
911
+ "acfe_clone_modal": 0,
912
+ "acfe_clone_modal_close": 0,
913
+ "acfe_clone_modal_button": "",
914
+ "acfe_clone_modal_size": "large"
915
+ },
916
+ {
917
+ "key": "field_691251b9eb757",
918
+ "label": "Settings",
919
+ "name": "",
920
+ "aria-label": "",
921
+ "type": "tab",
922
+ "instructions": "",
923
+ "required": 0,
924
+ "conditional_logic": 0,
925
+ "wrapper": {
926
+ "width": "",
927
+ "class": "",
928
+ "id": ""
929
+ },
930
+ "placement": "top",
931
+ "endpoint": 0,
932
+ "no_preference": 0,
933
+ "selected": 0
934
+ },
935
+ {
936
+ "key": "field_691251c9eb758",
937
+ "label": "Size desktop",
938
+ "name": "size_desktop",
939
+ "aria-label": "",
940
+ "type": "number",
941
+ "instructions": "",
942
+ "required": 0,
943
+ "conditional_logic": 0,
944
+ "wrapper": {
945
+ "width": "",
946
+ "class": "",
947
+ "id": ""
948
+ },
949
+ "default_value": "0.25",
950
+ "min": "",
951
+ "max": "",
952
+ "allow_in_bindings": 0,
953
+ "placeholder": "",
954
+ "step": "0.125",
955
+ "prepend": "",
956
+ "append": ""
957
+ },
958
+ {
959
+ "key": "field_691251f0eb759",
960
+ "label": "Size portrait",
961
+ "name": "size_portrait",
962
+ "aria-label": "",
963
+ "type": "number",
964
+ "instructions": "",
965
+ "required": 0,
966
+ "conditional_logic": 0,
967
+ "wrapper": {
968
+ "width": "",
969
+ "class": "",
970
+ "id": ""
971
+ },
972
+ "default_value": "0.25",
973
+ "min": "",
974
+ "max": "",
975
+ "allow_in_bindings": 0,
976
+ "placeholder": "",
977
+ "step": "0.125",
978
+ "prepend": "",
979
+ "append": ""
980
+ },
981
+ {
982
+ "key": "field_691251f5eb75a",
983
+ "label": "Size mobile",
984
+ "name": "size_mobile",
985
+ "aria-label": "",
986
+ "type": "number",
987
+ "instructions": "",
988
+ "required": 0,
989
+ "conditional_logic": 0,
990
+ "wrapper": {
991
+ "width": "",
992
+ "class": "",
993
+ "id": ""
994
+ },
995
+ "default_value": "0.25",
996
+ "min": "",
997
+ "max": "",
998
+ "allow_in_bindings": 0,
999
+ "placeholder": "",
1000
+ "step": "0.125",
1001
+ "prepend": "",
1002
+ "append": ""
1003
+ }
1004
+ ],
1005
+ "min": "",
1006
+ "max": "",
1007
+ "acfe_flexible_render_template": false,
1008
+ "acfe_flexible_render_style": false,
1009
+ "acfe_flexible_render_script": false,
1010
+ "acfe_flexible_thumbnail": false,
1011
+ "acfe_flexible_settings": false,
1012
+ "acfe_flexible_settings_size": "medium",
1013
+ "acfe_layout_locations": [],
1014
+ "acfe_flexible_modal_edit_size": false,
1015
+ "acfe_flexible_category": false,
1016
+ "acfe_layout_col": "auto",
1017
+ "acfe_layout_allowed_col": false
818
1018
  }
819
1019
  },
820
1020
  "min": "",
@@ -929,15 +1129,10 @@
929
1129
  "class": "",
930
1130
  "id": ""
931
1131
  },
932
- "wpml_cf_preferences": 3,
933
1132
  "choices": {
934
- "__1": "Layout 1",
935
- "__2": "Layout 2",
936
- "__3": "Layout 3",
937
- "__4": "Layout 4",
938
- "__5": "Layout 5"
1133
+ "1": "1"
939
1134
  },
940
- "default_value": "__1",
1135
+ "default_value": 1,
941
1136
  "return_format": "value",
942
1137
  "multiple": 0,
943
1138
  "max": "",
@@ -946,12 +1141,13 @@
946
1141
  "prepend": "",
947
1142
  "append": "",
948
1143
  "allow_null": 0,
1144
+ "allow_in_bindings": 1,
949
1145
  "ui": 1,
950
1146
  "ajax": 1,
951
1147
  "placeholder": "",
952
- "min": "",
953
1148
  "create_options": 0,
954
- "save_options": 0
1149
+ "save_options": 0,
1150
+ "min": ""
955
1151
  },
956
1152
  {
957
1153
  "key": "field_6762aaace9a5c",
@@ -1252,13 +1448,12 @@
1252
1448
  "class": "",
1253
1449
  "id": ""
1254
1450
  },
1255
- "wpml_cf_preferences": 3,
1256
1451
  "choices": {
1257
- "__default": "Default",
1258
- "__menu-order": "Menu order",
1259
- "__postorder": "Post order"
1452
+ "default": "Default",
1453
+ "menu-order": "Menu order",
1454
+ "postorder": "Post order"
1260
1455
  },
1261
- "default_value": "__default",
1456
+ "default_value": "default",
1262
1457
  "return_format": "value",
1263
1458
  "multiple": 0,
1264
1459
  "max": "",
@@ -1267,12 +1462,13 @@
1267
1462
  "prepend": "",
1268
1463
  "append": "",
1269
1464
  "allow_null": 0,
1465
+ "allow_in_bindings": 1,
1270
1466
  "ui": 1,
1271
1467
  "ajax": 1,
1272
1468
  "placeholder": "",
1273
- "min": "",
1274
1469
  "create_options": 0,
1275
- "save_options": 0
1470
+ "save_options": 0,
1471
+ "min": ""
1276
1472
  },
1277
1473
  {
1278
1474
  "key": "field_652ad198acb03",
@@ -2967,31 +3163,28 @@
2967
3163
  "class": "",
2968
3164
  "id": ""
2969
3165
  },
2970
- "wpml_cf_preferences": 3,
2971
- "user_roles": [
2972
- "administrator"
2973
- ],
2974
3166
  "choices": {
2975
- "__none": "None",
2976
- "__colour-palette": "Colour palette",
2977
- "__post-colour": "Post colour primary",
2978
- "__post-colour-secondary": "Post colour secondary"
3167
+ "none": "None",
3168
+ "colour-palette": "Colour palette",
3169
+ "post-colour": "Post colour primary",
3170
+ "post-colour-secondary": "Post colour secondary"
2979
3171
  },
2980
- "default_value": "__none",
3172
+ "default_value": "none",
2981
3173
  "return_format": "value",
2982
3174
  "multiple": 0,
2983
3175
  "max": "",
2984
3176
  "prepend": "",
2985
3177
  "append": "",
2986
3178
  "allow_null": 0,
3179
+ "allow_in_bindings": 1,
2987
3180
  "ui": 0,
2988
3181
  "ajax": 0,
2989
3182
  "placeholder": "",
3183
+ "create_options": 0,
3184
+ "save_options": 0,
2990
3185
  "allow_custom": 0,
2991
3186
  "search_placeholder": "",
2992
- "min": "",
2993
- "create_options": 0,
2994
- "save_options": 0
3187
+ "min": ""
2995
3188
  },
2996
3189
  {
2997
3190
  "key": "field_651163bbd2bde",
@@ -3195,31 +3388,28 @@
3195
3388
  "class": "",
3196
3389
  "id": ""
3197
3390
  },
3198
- "wpml_cf_preferences": 3,
3199
- "user_roles": [
3200
- "administrator"
3201
- ],
3202
3391
  "choices": {
3203
- "__flex-start": "Top",
3204
- "__center": "Center",
3205
- "__flex-end": "Bottom",
3206
- "__stretch": "Stretch"
3392
+ "flex-start": "Top",
3393
+ "center": "Center",
3394
+ "flex-end": "Bottom",
3395
+ "stretch": "Stretch"
3207
3396
  },
3208
- "default_value": "__flex-start",
3397
+ "default_value": "flex-start",
3209
3398
  "return_format": "value",
3210
3399
  "multiple": 0,
3211
3400
  "max": "",
3212
3401
  "prepend": "",
3213
3402
  "append": "",
3214
3403
  "allow_null": 0,
3404
+ "allow_in_bindings": 1,
3215
3405
  "ui": 0,
3216
3406
  "ajax": 0,
3217
3407
  "placeholder": "",
3408
+ "create_options": 0,
3409
+ "save_options": 0,
3218
3410
  "allow_custom": 0,
3219
3411
  "search_placeholder": "",
3220
- "min": "",
3221
- "create_options": 0,
3222
- "save_options": 0
3412
+ "min": ""
3223
3413
  },
3224
3414
  {
3225
3415
  "key": "field_64eb8a98c094b",
@@ -3235,30 +3425,27 @@
3235
3425
  "class": "",
3236
3426
  "id": ""
3237
3427
  },
3238
- "wpml_cf_preferences": 3,
3239
- "user_roles": [
3240
- "administrator"
3241
- ],
3242
3428
  "choices": {
3243
- "__auto": "Auto",
3244
- "__1fr": "1fr",
3245
- "__max-content": "Max content"
3429
+ "auto": "Auto",
3430
+ "1fr": "1fr",
3431
+ "max-content": "Max content"
3246
3432
  },
3247
- "default_value": "__auto",
3433
+ "default_value": "auto",
3248
3434
  "return_format": "value",
3249
3435
  "multiple": 0,
3250
3436
  "max": "",
3251
3437
  "prepend": "",
3252
3438
  "append": "",
3253
3439
  "allow_null": 0,
3440
+ "allow_in_bindings": 1,
3254
3441
  "ui": 0,
3255
3442
  "ajax": 0,
3256
3443
  "placeholder": "",
3444
+ "create_options": 0,
3445
+ "save_options": 0,
3257
3446
  "allow_custom": 0,
3258
3447
  "search_placeholder": "",
3259
- "min": "",
3260
- "create_options": 0,
3261
- "save_options": 0
3448
+ "min": ""
3262
3449
  },
3263
3450
  {
3264
3451
  "key": "field_651a989d3476c",
@@ -3305,16 +3492,12 @@
3305
3492
  "class": "",
3306
3493
  "id": ""
3307
3494
  },
3308
- "wpml_cf_preferences": 3,
3309
- "user_roles": [
3310
- "administrator"
3311
- ],
3312
3495
  "choices": {
3313
- "__auto": "Auto",
3314
- "__1fr": "1fr",
3315
- "__max-content": "Max content"
3496
+ "auto": "Auto",
3497
+ "1fr": "1fr",
3498
+ "max-content": "Max content"
3316
3499
  },
3317
- "default_value": "__auto",
3500
+ "default_value": "auto",
3318
3501
  "return_format": "value",
3319
3502
  "multiple": 0,
3320
3503
  "max": "",
@@ -3323,12 +3506,13 @@
3323
3506
  "prepend": "",
3324
3507
  "append": "",
3325
3508
  "allow_null": 0,
3509
+ "allow_in_bindings": 1,
3326
3510
  "ui": 1,
3327
3511
  "ajax": 1,
3328
3512
  "placeholder": "",
3329
- "min": "",
3330
3513
  "create_options": 0,
3331
- "save_options": 0
3514
+ "save_options": 0,
3515
+ "min": ""
3332
3516
  },
3333
3517
  {
3334
3518
  "key": "field_651a98cb3476d",
@@ -3475,16 +3659,12 @@
3475
3659
  "class": "",
3476
3660
  "id": ""
3477
3661
  },
3478
- "wpml_cf_preferences": 3,
3479
- "user_roles": [
3480
- "administrator"
3481
- ],
3482
3662
  "choices": {
3483
- "__colour-palette": "Colour palette",
3484
- "__post-colour": "Post colour",
3485
- "__post-colour-secondary": "Secondary post colour"
3663
+ "colour-palette": "Colour palette",
3664
+ "post-colour": "Post colour",
3665
+ "post-colour-secondary": "Secondary post colour"
3486
3666
  },
3487
- "default_value": "__none",
3667
+ "default_value": "none",
3488
3668
  "return_format": "value",
3489
3669
  "multiple": 0,
3490
3670
  "max": "",
@@ -3493,12 +3673,13 @@
3493
3673
  "prepend": "",
3494
3674
  "append": "",
3495
3675
  "allow_null": 0,
3676
+ "allow_in_bindings": 1,
3496
3677
  "ui": 1,
3497
3678
  "ajax": 1,
3498
3679
  "placeholder": "",
3499
- "min": "",
3500
3680
  "create_options": 0,
3501
- "save_options": 0
3681
+ "save_options": 0,
3682
+ "min": ""
3502
3683
  },
3503
3684
  {
3504
3685
  "key": "field_64ea83f40a9ea",
@@ -3568,19 +3749,15 @@
3568
3749
  "class": "",
3569
3750
  "id": ""
3570
3751
  },
3571
- "wpml_cf_preferences": 3,
3572
- "user_roles": [
3573
- "administrator"
3574
- ],
3575
3752
  "choices": {
3576
- "__top": "Top",
3577
- "__right": "Right",
3578
- "__bottom": "Bottom",
3579
- "__left": "Left",
3753
+ "top": "Top",
3754
+ "right": "Right",
3755
+ "bottom": "Bottom",
3756
+ "left": "Left",
3580
3757
  "__vertical": "Vertical",
3581
3758
  "__horizontal": "Horizontal"
3582
3759
  },
3583
- "default_value": "__bottom",
3760
+ "default_value": "bottom",
3584
3761
  "return_format": "value",
3585
3762
  "multiple": 0,
3586
3763
  "max": "",
@@ -3589,12 +3766,13 @@
3589
3766
  "prepend": "",
3590
3767
  "append": "",
3591
3768
  "allow_null": 0,
3769
+ "allow_in_bindings": 1,
3592
3770
  "ui": 1,
3593
3771
  "ajax": 1,
3594
3772
  "placeholder": "",
3595
- "min": "",
3596
3773
  "create_options": 0,
3597
- "save_options": 0
3774
+ "save_options": 0,
3775
+ "min": ""
3598
3776
  },
3599
3777
  {
3600
3778
  "key": "field_64ea83ec0a9e9",
@@ -4036,5 +4214,5 @@
4036
4214
  "acfe_display_title": "",
4037
4215
  "acfe_meta": "",
4038
4216
  "acfe_note": "",
4039
- "modified": 1762792712
4217
+ "modified": 1762809631
4040
4218
  }
@@ -31,7 +31,7 @@ if (productEANs !== '') {
31
31
  :style="`--post-colour: ${postColour}; --post-text-colour-style: ${postTextColourStyle}; ${gridLayoutString}`">
32
32
  <a href="#"
33
33
  :class="`${blockClassname}__cta cmpl-cta-style-${ctaStyle} ${blockClassname}__cta-animation-style-${ctaAnimationStyle} ctb`"
34
- v-if="element.buy_now_text && post.post_data.buy_now_option_select.slice(2) == 'ctb'" data-ctbuy
34
+ v-if="element.buy_now_text && post.post_data.buy_now_option_select.replace('__', '') == 'ctb'" data-ctbuy
35
35
  :data-ctbuy-variant="click2buyPimId">
36
36
  <span :class="`${blockClassname}__cta-span`">{{ element.buy_now_text }}</span>
37
37
  <span :class="`${blockClassname}__cta-icon`" v-if="element.enable_cta_icon">
@@ -40,7 +40,7 @@ if (productEANs !== '') {
40
40
  </a>
41
41
  <a href="#"
42
42
  :class="`dloc-link ${blockClassname}__cta cmpl-cta-style-${ctaStyle} ${blockClassname}__cta-animation-style-${ctaAnimationStyle} wtb`"
43
- v-if="element.buy_now_text && post.post_data.buy_now_option_select.slice(2) == 'wtb'" data-ctbuy
43
+ v-if="element.buy_now_text && post.post_data.buy_now_option_select.replace('__', '') == 'wtb'" data-ctbuy
44
44
  :data-filter="debrainId" data-action="where-to-buy">
45
45
  <span :class="`${blockClassname}__cta-span`">{{ element.buy_now_text }}</span>
46
46
  <span :class="`${blockClassname}__cta-icon`" v-if="element.enable_cta_icon">
@@ -49,19 +49,19 @@ if (productEANs !== '') {
49
49
  </a>
50
50
  <a :href="directLinkURL[0]"
51
51
  :class="`${blockClassname}__cta cmpl-cta-style-${ctaStyle} ${blockClassname}__cta-animation-style-${ctaAnimationStyle} link`"
52
- v-if="element.buy_now_text && post.post_data.buy_now_option_select.slice(2) == 'link'"
52
+ v-if="element.buy_now_text && post.post_data.buy_now_option_select.replace('__', '') == 'link'"
53
53
  :target="(directLinkURL[2] !== '' ? directLinkURL[2] : '_blank')">
54
54
  <span :class="`${blockClassname}__cta-span`">{{ element.buy_now_text }}</span>
55
55
  <span :class="`${blockClassname}__cta-icon`" v-if="element.enable_cta_icon">
56
56
  <img :class="`${blockClassname}__icon-image style-svg`" :src="ctaIcons.cta_link_icon">
57
57
  </span>
58
58
  </a>
59
- <wtb-button v-if="post.post_data.buy_now_option_select.slice(2) == 'wtb-v2' && productDebrainSkuId"
59
+ <wtb-button v-if="post.post_data.buy_now_option_select.replace('__', '') == 'wtb-v2' && productDebrainSkuId"
60
60
  :sku="productDebrainSkuId"></wtb-button>
61
61
  <a href="#" :data-mm-wtbid="`${mikmakDrawerWidgetID}`" :data-mm-ids="`${totalProductEANs}`"
62
62
  :data-mm-default-id="`${productEANs}`"
63
63
  :class="`${blockClassname}__cta cmpl-cta-style-${ctaStyle} ${blockClassname}__cta-animation-style-${ctaAnimationStyle} mikmak-buy-now`"
64
- v-if="element.buy_now_text && post.post_data.buy_now_option_select.slice(2) == 'mikmak'"
64
+ v-if="element.buy_now_text && post.post_data.buy_now_option_select.replace('__', '') == 'mikmak'"
65
65
  :data-filter="debrainId">
66
66
  <span :class="`${blockClassname}__cta-span`">{{ element.buy_now_text }}</span>
67
67
  <span :class="`${blockClassname}__cta-icon`" v-if="element.enable_cta_icon">
@@ -3,7 +3,7 @@ import { gridLayoutElement } from "./ptfg-utils.vue";
3
3
 
4
4
  const props = defineProps(["post", "element", "fields", "globalImages"]);
5
5
  const blockClassname = "post-type-filter-grid-v3";
6
- const imageSelect = props.element.image_select?.slice(2);
6
+ const imageSelect = props.element.image_select?.replace('__', '');
7
7
  let globalImage = '';
8
8
  if (props.globalImages[imageSelect]) {
9
9
  globalImage = props.globalImages[imageSelect]['global_image'];
@@ -8,7 +8,7 @@ const textEditorStylesString = textEditorStyles(props);
8
8
 
9
9
  </script>
10
10
  <template>
11
- <p :class="`${blockClassname}__post-author ${blockClassname}__info-item ${element.text_style?.typography_style.slice(2)}`"
11
+ <p :class="`${blockClassname}__post-author ${blockClassname}__info-item ${element.text_style?.typography_style.replace('__', '')}`"
12
12
  :style="`${gridLayoutString} ${textEditorStylesString}`">
13
13
  {{ post.author_display_name }}
14
14
  </p>
@@ -13,7 +13,7 @@ const textEditorStylesString = textEditorStyles(props);
13
13
  :style="`${gridLayoutString} ${textEditorStylesString}`">
14
14
  <template v-for="(category, index) in props.post.categories" :key="index">
15
15
  <p v-if="category.taxonomy != 'translation_priority'" v-html="category.name"
16
- :class="`${blockClassname}__post-category--item ${element.text_style?.typography_style.slice(2)}`">
16
+ :class="`${blockClassname}__post-category--item ${element.text_style?.typography_style.replace('__', '')}`">
17
17
  </p>
18
18
  </template>
19
19
  </div>