@wix/himalaya-cli 0.1807.0 → 0.1809.0

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 (25) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +62 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +124 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +12 -0
  4. package/dist/cli.mjs +13 -1
  5. package/package.json +2 -2
  6. package/templates/brandy/README.md +83 -14
  7. package/templates/brandy/config.ts +42 -34
  8. package/templates/brandy/dev/index.ts +240 -21
  9. package/templates/brandy/dev/member-screens.ts +2302 -0
  10. package/templates/brandy/himalaya.content.json +3 -0
  11. package/templates/brandy/himalaya.template.json +1 -1
  12. package/templates/brandy/provisioning.json +4 -1
  13. package/templates/brandy/provisioning.member.example.json +69 -7
  14. package/templates/brandy/tier5-src/_shared/exclusive-writes.ts +66 -0
  15. package/templates/brandy/tier5-src/_shared/header-badges.ts +113 -0
  16. package/templates/brandy/tier5-src/_shared/himi-store-saved.ts +57 -0
  17. package/templates/brandy/tier5-src/_shared/iap-presentation.ts +207 -0
  18. package/templates/brandy/tier5-src/_shared/restaurant-ordering.ts +201 -0
  19. package/templates/brandy/tier5-src/_shared/source-badges.ts +72 -0
  20. package/templates/brandy/tier5-src/himi-branded-lite-cart/index.ts +703 -0
  21. package/templates/brandy/tier5-src/himi-branded-lite-header-badges/index.ts +70 -0
  22. package/templates/brandy/tier5-src/himi-branded-lite-member-cart/flag.ts +3 -0
  23. package/templates/brandy/tier5-src/himi-branded-lite-member-cart/index.ts +6 -0
  24. package/templates/brandy/tier5-src/perks/index.ts +75 -0
  25. package/templates/brandy/tokens.json +5 -0
@@ -16524,3 +16524,2305 @@ export const MEMBER_SEED: Record<string, unknown> = {
16524
16524
  }
16525
16525
  }
16526
16526
  };
16527
+
16528
+ /** The native cart and its checkout, for SIGNED-IN MEMBERS only (`himi_cart`). dev/index.ts serves it only when
16529
+ * provisioning.json places it as a native page with `requiresAuth: true` beside a `wix` binding; signed out it
16530
+ * shows a sign-in gate. A visitor keeps your website's own cart: a visitor's native cart would be a second cart. */
16531
+ export const MEMBER_CART_SCREENS: Record<string, unknown> = {
16532
+ "himi_cart": {
16533
+ "screenId": "himi_cart",
16534
+ "renderer": "sdui_intent",
16535
+ "title": "",
16536
+ "schemaVersion": 1,
16537
+ "cacheControl": {
16538
+ "maxAge": 0,
16539
+ "staleWhileRevalidate": 0
16540
+ },
16541
+ "payload": {
16542
+ "id": "himi_cart.root",
16543
+ "body": {
16544
+ "package": "himalaya",
16545
+ "type": "VStack",
16546
+ "props": {
16547
+ "spacing": 16,
16548
+ "alignment": "leading",
16549
+ "children": [
16550
+ {
16551
+ "id": "himi_cart.title",
16552
+ "body": {
16553
+ "package": "himalaya",
16554
+ "type": "Text",
16555
+ "props": {
16556
+ "text": "Shopping cart",
16557
+ "style": "pageTitle"
16558
+ }
16559
+ }
16560
+ },
16561
+ {
16562
+ "id": "himi_cart.error",
16563
+ "body": {
16564
+ "package": "himalaya",
16565
+ "type": "VStack",
16566
+ "props": {
16567
+ "spacing": 8,
16568
+ "alignment": "leading",
16569
+ "children": [
16570
+ {
16571
+ "id": "",
16572
+ "body": {
16573
+ "package": "himalaya",
16574
+ "type": "Text",
16575
+ "props": {
16576
+ "text": "You are offline",
16577
+ "style": "bodyEmphasis"
16578
+ }
16579
+ },
16580
+ "modifiers": {
16581
+ "hiddenPath": "$service:himiStoreCart.noOfflineError"
16582
+ }
16583
+ },
16584
+ {
16585
+ "id": "",
16586
+ "body": {
16587
+ "package": "himalaya",
16588
+ "type": "Text",
16589
+ "props": {
16590
+ "text": "Your cart could not be loaded.",
16591
+ "style": "bodyEmphasis"
16592
+ }
16593
+ },
16594
+ "modifiers": {
16595
+ "hiddenPath": "$service:himiStoreCart.noServerError"
16596
+ }
16597
+ },
16598
+ {
16599
+ "id": "",
16600
+ "body": {
16601
+ "package": "himalaya",
16602
+ "type": "Text",
16603
+ "props": {
16604
+ "text": "Try again without leaving the app.",
16605
+ "style": "footnote",
16606
+ "color": "textSecondary"
16607
+ }
16608
+ }
16609
+ },
16610
+ {
16611
+ "id": "himi_cart.retry",
16612
+ "body": {
16613
+ "package": "himalaya",
16614
+ "type": "Button",
16615
+ "props": {
16616
+ "title": "Try again",
16617
+ "style": "secondary",
16618
+ "action": {
16619
+ "actionId": "tier5.himiStoreCart.load"
16620
+ }
16621
+ }
16622
+ }
16623
+ }
16624
+ ]
16625
+ }
16626
+ },
16627
+ "modifiers": {
16628
+ "background": {
16629
+ "token": "surfaceElevated"
16630
+ },
16631
+ "border": {
16632
+ "width": 1,
16633
+ "color": {
16634
+ "token": "border"
16635
+ }
16636
+ },
16637
+ "cornerRadius": 4,
16638
+ "padding": {
16639
+ "leading": 16,
16640
+ "trailing": 16,
16641
+ "top": 16,
16642
+ "bottom": 16
16643
+ },
16644
+ "hiddenPath": "$service:himiStoreCart.notErrored"
16645
+ }
16646
+ },
16647
+ {
16648
+ "id": "himi_cart.list",
16649
+ "body": {
16650
+ "package": "himalaya",
16651
+ "type": "Grid",
16652
+ "props": {
16653
+ "columns": 1,
16654
+ "spacing": 0,
16655
+ "itemsPath": "$service:himiStoreCart.items",
16656
+ "items": [
16657
+ {
16658
+ "id": "himi_cart.row",
16659
+ "body": {
16660
+ "package": "himalaya",
16661
+ "type": "VStack",
16662
+ "props": {
16663
+ "spacing": 0,
16664
+ "alignment": "leading",
16665
+ "children": [
16666
+ {
16667
+ "id": "himi_cart.row_content",
16668
+ "body": {
16669
+ "package": "himalaya",
16670
+ "type": "HStack",
16671
+ "props": {
16672
+ "spacing": 12,
16673
+ "alignment": "leading",
16674
+ "children": [
16675
+ {
16676
+ "id": "himi_cart.thumbnail",
16677
+ "body": {
16678
+ "package": "himalaya",
16679
+ "type": "Image",
16680
+ "props": {
16681
+ "url": "$item.image",
16682
+ "width": 112,
16683
+ "height": 144,
16684
+ "contentMode": "fill",
16685
+ "shape": "rect",
16686
+ "contentDescription": "$item.name"
16687
+ }
16688
+ },
16689
+ "modifiers": {
16690
+ "onTap": {
16691
+ "actionId": "himi.open",
16692
+ "params": {
16693
+ "screenId": "himi_product",
16694
+ "id": "$item.catalogItemId"
16695
+ }
16696
+ },
16697
+ "hiddenPath": "$item.noImage"
16698
+ }
16699
+ },
16700
+ {
16701
+ "id": "",
16702
+ "body": {
16703
+ "package": "himalaya",
16704
+ "type": "ZStack",
16705
+ "props": {
16706
+ "alignment": "center",
16707
+ "children": [
16708
+ {
16709
+ "id": "",
16710
+ "body": {
16711
+ "package": "himalaya",
16712
+ "type": "Text",
16713
+ "props": {
16714
+ "text": "$item.initial",
16715
+ "style": "title2",
16716
+ "color": "textOnAccent"
16717
+ }
16718
+ }
16719
+ }
16720
+ ]
16721
+ }
16722
+ },
16723
+ "modifiers": {
16724
+ "width": 112,
16725
+ "height": 144,
16726
+ "background": {
16727
+ "token": "accentPrimary"
16728
+ },
16729
+ "onTap": {
16730
+ "actionId": "himi.open",
16731
+ "params": {
16732
+ "screenId": "himi_product",
16733
+ "id": "$item.catalogItemId"
16734
+ }
16735
+ },
16736
+ "accessibilityLabel": "$item.name",
16737
+ "hiddenPath": "$item.hasImage"
16738
+ }
16739
+ },
16740
+ {
16741
+ "id": "himi_cart.details",
16742
+ "body": {
16743
+ "package": "himalaya",
16744
+ "type": "VStack",
16745
+ "props": {
16746
+ "spacing": 2,
16747
+ "alignment": "leading",
16748
+ "children": [
16749
+ {
16750
+ "id": "himi_cart.name_price",
16751
+ "body": {
16752
+ "package": "himalaya",
16753
+ "type": "HStack",
16754
+ "props": {
16755
+ "spacing": 6,
16756
+ "alignment": "leading",
16757
+ "children": [
16758
+ {
16759
+ "id": "himi_cart.product_title",
16760
+ "body": {
16761
+ "package": "himalaya",
16762
+ "type": "Text",
16763
+ "props": {
16764
+ "text": "$item.name",
16765
+ "style": "bodyEmphasis",
16766
+ "color": "textPrimary",
16767
+ "maxLines": 2
16768
+ }
16769
+ },
16770
+ "modifiers": {
16771
+ "weight": 1
16772
+ }
16773
+ },
16774
+ {
16775
+ "id": "himi_cart.product_price",
16776
+ "body": {
16777
+ "package": "himalaya",
16778
+ "type": "Text",
16779
+ "props": {
16780
+ "text": "$item.total",
16781
+ "style": "bodyEmphasis",
16782
+ "color": "textPrimary",
16783
+ "maxLines": 1,
16784
+ "collapseWhenEmpty": true
16785
+ }
16786
+ }
16787
+ }
16788
+ ]
16789
+ }
16790
+ }
16791
+ },
16792
+ {
16793
+ "id": "",
16794
+ "body": {
16795
+ "package": "himalaya",
16796
+ "type": "Text",
16797
+ "props": {
16798
+ "text": "$item.option1",
16799
+ "style": "body",
16800
+ "color": "textSecondary",
16801
+ "maxLines": 1,
16802
+ "collapseWhenEmpty": true
16803
+ }
16804
+ }
16805
+ },
16806
+ {
16807
+ "id": "",
16808
+ "body": {
16809
+ "package": "himalaya",
16810
+ "type": "Text",
16811
+ "props": {
16812
+ "text": "$item.option2",
16813
+ "style": "body",
16814
+ "color": "textSecondary",
16815
+ "maxLines": 1,
16816
+ "collapseWhenEmpty": true
16817
+ }
16818
+ }
16819
+ },
16820
+ {
16821
+ "id": "",
16822
+ "body": {
16823
+ "package": "himalaya",
16824
+ "type": "Text",
16825
+ "props": {
16826
+ "text": "$item.option3",
16827
+ "style": "body",
16828
+ "color": "textSecondary",
16829
+ "maxLines": 1,
16830
+ "collapseWhenEmpty": true
16831
+ }
16832
+ }
16833
+ },
16834
+ {
16835
+ "id": "",
16836
+ "body": {
16837
+ "package": "himalaya",
16838
+ "type": "Text",
16839
+ "props": {
16840
+ "text": "$item.inStockMessage",
16841
+ "style": "body",
16842
+ "color": "success"
16843
+ }
16844
+ },
16845
+ "modifiers": {
16846
+ "hiddenPath": "$item.noInStockMessage"
16847
+ }
16848
+ },
16849
+ {
16850
+ "id": "",
16851
+ "body": {
16852
+ "package": "himalaya",
16853
+ "type": "Text",
16854
+ "props": {
16855
+ "text": "$item.stockMessage",
16856
+ "style": "body",
16857
+ "color": "danger"
16858
+ }
16859
+ },
16860
+ "modifiers": {
16861
+ "hiddenPath": "$item.noStockMessage"
16862
+ }
16863
+ },
16864
+ {
16865
+ "id": "",
16866
+ "body": {
16867
+ "package": "himalaya",
16868
+ "type": "Spacer",
16869
+ "props": {}
16870
+ }
16871
+ },
16872
+ {
16873
+ "id": "himi_cart.actions",
16874
+ "body": {
16875
+ "package": "himalaya",
16876
+ "type": "HStack",
16877
+ "props": {
16878
+ "spacing": 0,
16879
+ "alignment": "center",
16880
+ "children": [
16881
+ {
16882
+ "id": "himi_cart.qty_minus",
16883
+ "body": {
16884
+ "package": "himalaya",
16885
+ "type": "Button",
16886
+ "props": {
16887
+ "title": "Decrease quantity",
16888
+ "action": {
16889
+ "actionId": "tier5.himiStoreCart.decrement",
16890
+ "params": {
16891
+ "id": "$item.id"
16892
+ }
16893
+ },
16894
+ "style": "tertiary",
16895
+ "iconOnly": true,
16896
+ "leadingIcon": "minus",
16897
+ "cornerRadius": 22,
16898
+ "minHeight": 44,
16899
+ "disabledPath": "$service:himiStoreCart.writeBusy",
16900
+ "size": "sm"
16901
+ }
16902
+ },
16903
+ "modifiers": {
16904
+ "width": 44,
16905
+ "height": 44,
16906
+ "accessibilityLabel": "Decrease quantity",
16907
+ "accessibilityRole": "button",
16908
+ "haptic": "light"
16909
+ }
16910
+ },
16911
+ {
16912
+ "id": "himi_cart.qty_value",
16913
+ "body": {
16914
+ "package": "himalaya",
16915
+ "type": "Text",
16916
+ "props": {
16917
+ "text": "$item.quantityLabel",
16918
+ "style": "body",
16919
+ "textAlign": "center"
16920
+ }
16921
+ },
16922
+ "modifiers": {
16923
+ "width": 32
16924
+ }
16925
+ },
16926
+ {
16927
+ "id": "himi_cart.qty_plus",
16928
+ "body": {
16929
+ "package": "himalaya",
16930
+ "type": "Button",
16931
+ "props": {
16932
+ "title": "Increase quantity",
16933
+ "action": {
16934
+ "actionId": "tier5.himiStoreCart.increment",
16935
+ "params": {
16936
+ "id": "$item.id"
16937
+ }
16938
+ },
16939
+ "style": "tertiary",
16940
+ "iconOnly": true,
16941
+ "leadingIcon": "plus",
16942
+ "cornerRadius": 22,
16943
+ "minHeight": 44,
16944
+ "disabledPath": "$service:himiStoreCart.writeBusy",
16945
+ "size": "sm"
16946
+ }
16947
+ },
16948
+ "modifiers": {
16949
+ "width": 44,
16950
+ "height": 44,
16951
+ "accessibilityLabel": "Increase quantity",
16952
+ "accessibilityRole": "button",
16953
+ "haptic": "light"
16954
+ }
16955
+ },
16956
+ {
16957
+ "id": "",
16958
+ "body": {
16959
+ "package": "himalaya",
16960
+ "type": "Spacer",
16961
+ "props": {}
16962
+ }
16963
+ },
16964
+ {
16965
+ "id": "himi_cart.save_filled",
16966
+ "body": {
16967
+ "package": "himalaya",
16968
+ "type": "Button",
16969
+ "props": {
16970
+ "title": "Remove from wishlist",
16971
+ "action": {
16972
+ "actionId": "tier5.himiStoreCart.save",
16973
+ "params": {
16974
+ "id": "$item.id"
16975
+ }
16976
+ },
16977
+ "style": "tertiary",
16978
+ "iconOnly": true,
16979
+ "leadingIcon": "heart_fill",
16980
+ "cornerRadius": 22,
16981
+ "minHeight": 44,
16982
+ "disabledPath": "$service:himiStoreCart.writeBusy",
16983
+ "size": "sm"
16984
+ }
16985
+ },
16986
+ "modifiers": {
16987
+ "width": 44,
16988
+ "height": 44,
16989
+ "accessibilityLabel": "Remove from wishlist",
16990
+ "accessibilityRole": "button",
16991
+ "haptic": "light",
16992
+ "hiddenPath": "$item.notSaved"
16993
+ }
16994
+ },
16995
+ {
16996
+ "id": "himi_cart.save",
16997
+ "body": {
16998
+ "package": "himalaya",
16999
+ "type": "Button",
17000
+ "props": {
17001
+ "title": "Add to wishlist",
17002
+ "action": {
17003
+ "actionId": "tier5.himiStoreCart.save",
17004
+ "params": {
17005
+ "id": "$item.id"
17006
+ }
17007
+ },
17008
+ "style": "tertiary",
17009
+ "iconOnly": true,
17010
+ "leadingIcon": "heart",
17011
+ "cornerRadius": 22,
17012
+ "minHeight": 44,
17013
+ "disabledPath": "$service:himiStoreCart.writeBusy",
17014
+ "size": "sm"
17015
+ }
17016
+ },
17017
+ "modifiers": {
17018
+ "width": 44,
17019
+ "height": 44,
17020
+ "accessibilityLabel": "Add to wishlist",
17021
+ "accessibilityRole": "button",
17022
+ "haptic": "light",
17023
+ "hiddenPath": "$item.saved"
17024
+ }
17025
+ },
17026
+ {
17027
+ "id": "himi_cart.remove",
17028
+ "body": {
17029
+ "package": "himalaya",
17030
+ "type": "Button",
17031
+ "props": {
17032
+ "title": "Remove from cart",
17033
+ "action": {
17034
+ "actionId": "tier5.himiStoreCart.remove",
17035
+ "params": {
17036
+ "id": "$item.id"
17037
+ }
17038
+ },
17039
+ "style": "tertiary",
17040
+ "iconOnly": true,
17041
+ "leadingIcon": "trash",
17042
+ "cornerRadius": 22,
17043
+ "minHeight": 44,
17044
+ "disabledPath": "$service:himiStoreCart.writeBusy",
17045
+ "size": "sm"
17046
+ }
17047
+ },
17048
+ "modifiers": {
17049
+ "width": 44,
17050
+ "height": 44,
17051
+ "accessibilityLabel": "Remove from cart",
17052
+ "accessibilityRole": "button",
17053
+ "haptic": "light"
17054
+ }
17055
+ }
17056
+ ]
17057
+ }
17058
+ }
17059
+ }
17060
+ ]
17061
+ }
17062
+ },
17063
+ "modifiers": {
17064
+ "weight": 1
17065
+ }
17066
+ }
17067
+ ]
17068
+ }
17069
+ },
17070
+ "modifiers": {
17071
+ "fillMaxWidth": true,
17072
+ "padding": {
17073
+ "top": 20,
17074
+ "bottom": 20
17075
+ }
17076
+ }
17077
+ },
17078
+ {
17079
+ "id": "",
17080
+ "body": {
17081
+ "package": "himalaya",
17082
+ "type": "Divider",
17083
+ "props": {}
17084
+ }
17085
+ }
17086
+ ]
17087
+ }
17088
+ },
17089
+ "modifiers": {
17090
+ "theme": {
17091
+ "typography": {
17092
+ "body": {
17093
+ "size": 14,
17094
+ "weight": 400,
17095
+ "line": 1.4285714285714286,
17096
+ "letterSpacing": 0
17097
+ },
17098
+ "bodyEmphasis": {
17099
+ "size": 14,
17100
+ "weight": 700,
17101
+ "line": 1.4285714285714286,
17102
+ "letterSpacing": 0
17103
+ }
17104
+ }
17105
+ }
17106
+ }
17107
+ }
17108
+ ]
17109
+ }
17110
+ },
17111
+ "modifiers": {
17112
+ "hiddenPath": "$service:himiStoreCart.hideContent"
17113
+ }
17114
+ },
17115
+ {
17116
+ "id": "himi_cart.hint",
17117
+ "body": {
17118
+ "package": "himalaya",
17119
+ "type": "Banner",
17120
+ "props": {
17121
+ "title": "$service:himiStoreCart.checkoutHint",
17122
+ "severity": "warning"
17123
+ }
17124
+ },
17125
+ "modifiers": {
17126
+ "hiddenPath": "$service:himiStoreCart.noCheckoutHint"
17127
+ }
17128
+ },
17129
+ {
17130
+ "id": "himi_cart.empty",
17131
+ "body": {
17132
+ "package": "himalaya",
17133
+ "type": "VStack",
17134
+ "props": {
17135
+ "spacing": 12,
17136
+ "alignment": "center",
17137
+ "children": [
17138
+ {
17139
+ "id": "",
17140
+ "body": {
17141
+ "package": "himalaya",
17142
+ "type": "Icon",
17143
+ "props": {
17144
+ "name": "cart",
17145
+ "size": 28,
17146
+ "tint": "textTertiary"
17147
+ }
17148
+ },
17149
+ "modifiers": {
17150
+ "accessibilityRole": "decorative"
17151
+ }
17152
+ },
17153
+ {
17154
+ "id": "",
17155
+ "body": {
17156
+ "package": "himalaya",
17157
+ "type": "Text",
17158
+ "props": {
17159
+ "text": "$service:himiStoreCart.emptyText",
17160
+ "style": "title3",
17161
+ "color": "textPrimary",
17162
+ "collapseWhenEmpty": true
17163
+ }
17164
+ }
17165
+ },
17166
+ {
17167
+ "id": "",
17168
+ "body": {
17169
+ "package": "himalaya",
17170
+ "type": "Text",
17171
+ "props": {
17172
+ "text": "Your items will appear here when you add them.",
17173
+ "style": "footnote",
17174
+ "color": "textSecondary"
17175
+ }
17176
+ }
17177
+ },
17178
+ {
17179
+ "id": "himi_cart.browse",
17180
+ "body": {
17181
+ "package": "himalaya",
17182
+ "type": "Button",
17183
+ "props": {
17184
+ "title": "Browse products",
17185
+ "style": "secondary",
17186
+ "action": {
17187
+ "actionId": "himi.open",
17188
+ "params": {
17189
+ "screenId": "himi_shop"
17190
+ }
17191
+ }
17192
+ }
17193
+ }
17194
+ }
17195
+ ]
17196
+ }
17197
+ },
17198
+ "modifiers": {
17199
+ "hiddenPath": "$service:himiStoreCart.noEmpty"
17200
+ }
17201
+ },
17202
+ {
17203
+ "id": "himi_cart.member_gate",
17204
+ "body": {
17205
+ "package": "himalaya",
17206
+ "type": "VStack",
17207
+ "props": {
17208
+ "spacing": 10,
17209
+ "alignment": "center",
17210
+ "children": [
17211
+ {
17212
+ "id": "",
17213
+ "body": {
17214
+ "package": "himalaya",
17215
+ "type": "Icon",
17216
+ "props": {
17217
+ "name": "person",
17218
+ "size": 28,
17219
+ "tint": "accentPrimary"
17220
+ }
17221
+ },
17222
+ "modifiers": {
17223
+ "accessibilityRole": "decorative"
17224
+ }
17225
+ },
17226
+ {
17227
+ "id": "himi_cart.member_gate_title",
17228
+ "body": {
17229
+ "package": "himalaya",
17230
+ "type": "Text",
17231
+ "props": {
17232
+ "text": "Sign in to see your cart",
17233
+ "style": "bodyEmphasis"
17234
+ }
17235
+ }
17236
+ },
17237
+ {
17238
+ "id": "",
17239
+ "body": {
17240
+ "package": "himalaya",
17241
+ "type": "Text",
17242
+ "props": {
17243
+ "text": "Your cart is the same one you use on the website once you sign in.",
17244
+ "style": "footnote",
17245
+ "color": "textSecondary"
17246
+ }
17247
+ }
17248
+ },
17249
+ {
17250
+ "id": "himi_cart.member_gate_signin",
17251
+ "body": {
17252
+ "package": "himalaya",
17253
+ "type": "Button",
17254
+ "props": {
17255
+ "title": "Sign in",
17256
+ "style": "primary",
17257
+ "fullWidth": true,
17258
+ "action": {
17259
+ "actionId": "himi.open",
17260
+ "params": {
17261
+ "screenId": "himi_sign_in",
17262
+ "mode": "signin",
17263
+ "intent": "cart",
17264
+ "returnScreenId": "himi_cart"
17265
+ }
17266
+ }
17267
+ }
17268
+ }
17269
+ }
17270
+ ]
17271
+ }
17272
+ },
17273
+ "modifiers": {
17274
+ "background": {
17275
+ "token": "surfaceElevated"
17276
+ },
17277
+ "border": {
17278
+ "width": 1,
17279
+ "color": {
17280
+ "token": "border"
17281
+ }
17282
+ },
17283
+ "cornerRadius": 16,
17284
+ "padding": {
17285
+ "leading": 16,
17286
+ "trailing": 16,
17287
+ "top": 20,
17288
+ "bottom": 20
17289
+ },
17290
+ "fillMaxWidth": true,
17291
+ "hiddenPath": "$service:himiStoreCart.noSignIn"
17292
+ }
17293
+ },
17294
+ {
17295
+ "id": "himi_cart.order_placed",
17296
+ "body": {
17297
+ "package": "himalaya",
17298
+ "type": "Snackbar",
17299
+ "props": {
17300
+ "message": "Order placed. Thanks!",
17301
+ "severity": "success",
17302
+ "durationMs": 3000
17303
+ }
17304
+ },
17305
+ "modifiers": {
17306
+ "hiddenPath": "$service:himiStoreCart.noPaidToast"
17307
+ }
17308
+ }
17309
+ ]
17310
+ }
17311
+ },
17312
+ "modifiers": {
17313
+ "background": {
17314
+ "token": "surfacePrimary"
17315
+ },
17316
+ "padding": {
17317
+ "leading": 16,
17318
+ "trailing": 16,
17319
+ "top": 18,
17320
+ "bottom": 28
17321
+ },
17322
+ "onAppear": {
17323
+ "actionId": "tier5.himiStoreCart.load",
17324
+ "params": {
17325
+ "memberOnly": "1",
17326
+ "returnUrl": "himalaya-__HIMI_APP_SLUG__://screen/himi_cart"
17327
+ }
17328
+ }
17329
+ }
17330
+ },
17331
+ "logicBundle": {
17332
+ "url": "http://localhost:8190/v1/bundles/himi-branded-lite-member-cart?integrity=",
17333
+ "integrity": "",
17334
+ "contentType": "application/javascript+ts-bundle",
17335
+ "declaredCapabilities": [
17336
+ "wix_api",
17337
+ "wix_cashier",
17338
+ "open_url",
17339
+ "local_database",
17340
+ "wix_platform",
17341
+ "iap",
17342
+ "app_info"
17343
+ ],
17344
+ "minBinaryVersion": "0.1.0",
17345
+ "bundleVersion": "0.0.1"
17346
+ },
17347
+ "stickyFooter": {
17348
+ "id": "himi_cart.footer",
17349
+ "body": {
17350
+ "package": "himalaya",
17351
+ "type": "VStack",
17352
+ "props": {
17353
+ "spacing": 0,
17354
+ "alignment": "leading",
17355
+ "children": [
17356
+ {
17357
+ "id": "himi_cart.footer_divider",
17358
+ "body": {
17359
+ "package": "himalaya",
17360
+ "type": "Divider",
17361
+ "props": {}
17362
+ }
17363
+ },
17364
+ {
17365
+ "id": "himi_cart.footer_content",
17366
+ "body": {
17367
+ "package": "himalaya",
17368
+ "type": "VStack",
17369
+ "props": {
17370
+ "spacing": 10,
17371
+ "alignment": "leading",
17372
+ "children": [
17373
+ {
17374
+ "id": "",
17375
+ "body": {
17376
+ "package": "himalaya",
17377
+ "type": "HStack",
17378
+ "props": {
17379
+ "spacing": 8,
17380
+ "children": [
17381
+ {
17382
+ "id": "himi_cart.promo",
17383
+ "body": {
17384
+ "package": "himalaya",
17385
+ "type": "TextField",
17386
+ "props": {
17387
+ "placeholder": "Promo code",
17388
+ "valuePath": "$service:himiStoreCart.promoCode",
17389
+ "onChange": {
17390
+ "actionId": "tier5.himiStoreCart.setPromo"
17391
+ },
17392
+ "onSubmit": {
17393
+ "actionId": "tier5.himiStoreCart.applyPromo"
17394
+ },
17395
+ "autoCapitalization": "characters",
17396
+ "suggestions": "off",
17397
+ "submitLabel": "done",
17398
+ "clearButton": true,
17399
+ "maxLength": 100,
17400
+ "borderless": true
17401
+ }
17402
+ },
17403
+ "modifiers": {
17404
+ "weight": 1,
17405
+ "height": 44,
17406
+ "border": {
17407
+ "width": 1,
17408
+ "color": {
17409
+ "token": "border"
17410
+ }
17411
+ },
17412
+ "padding": {
17413
+ "leading": 12,
17414
+ "trailing": 12
17415
+ },
17416
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
17417
+ }
17418
+ },
17419
+ {
17420
+ "id": "himi_cart.apply_promo",
17421
+ "body": {
17422
+ "package": "himalaya",
17423
+ "type": "Button",
17424
+ "props": {
17425
+ "title": "Apply",
17426
+ "style": "secondary",
17427
+ "fullWidth": false,
17428
+ "action": {
17429
+ "actionId": "tier5.himiStoreCart.applyPromo"
17430
+ },
17431
+ "disabledPath": "$service:himiStoreCart.writeBusy"
17432
+ }
17433
+ },
17434
+ "modifiers": {
17435
+ "height": 44,
17436
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
17437
+ }
17438
+ },
17439
+ {
17440
+ "id": "",
17441
+ "body": {
17442
+ "package": "himalaya",
17443
+ "type": "HStack",
17444
+ "props": {
17445
+ "spacing": 8,
17446
+ "children": [
17447
+ {
17448
+ "id": "",
17449
+ "body": {
17450
+ "package": "himalaya",
17451
+ "type": "Text",
17452
+ "props": {
17453
+ "text": "$service:himiStoreCart.appliedLabel",
17454
+ "style": "footnote",
17455
+ "color": "textPrimary"
17456
+ }
17457
+ }
17458
+ },
17459
+ {
17460
+ "id": "",
17461
+ "body": {
17462
+ "package": "himalaya",
17463
+ "type": "Spacer",
17464
+ "props": {}
17465
+ }
17466
+ },
17467
+ {
17468
+ "id": "himi_cart.remove_promo",
17469
+ "body": {
17470
+ "package": "himalaya",
17471
+ "type": "Button",
17472
+ "props": {
17473
+ "title": "Remove promo code",
17474
+ "action": {
17475
+ "actionId": "tier5.himiStoreCart.removePromo"
17476
+ },
17477
+ "style": "tertiary",
17478
+ "iconOnly": true,
17479
+ "leadingIcon": "close",
17480
+ "cornerRadius": 22,
17481
+ "minHeight": 44,
17482
+ "disabledPath": "$service:himiStoreCart.writeBusy"
17483
+ }
17484
+ },
17485
+ "modifiers": {
17486
+ "width": 44,
17487
+ "height": 44,
17488
+ "accessibilityLabel": "Remove promo code",
17489
+ "accessibilityRole": "button"
17490
+ }
17491
+ }
17492
+ ]
17493
+ }
17494
+ },
17495
+ "modifiers": {
17496
+ "hiddenPath": "$service:himiStoreCart.noCoupon"
17497
+ }
17498
+ }
17499
+ ]
17500
+ }
17501
+ }
17502
+ },
17503
+ {
17504
+ "id": "himi_cart.promo_error",
17505
+ "body": {
17506
+ "package": "himalaya",
17507
+ "type": "Text",
17508
+ "props": {
17509
+ "text": "$service:himiStoreCart.promoError",
17510
+ "style": "footnote",
17511
+ "color": "danger"
17512
+ }
17513
+ },
17514
+ "modifiers": {
17515
+ "hiddenPath": "$service:himiStoreCart.noPromoError"
17516
+ }
17517
+ },
17518
+ {
17519
+ "id": "",
17520
+ "body": {
17521
+ "package": "himalaya",
17522
+ "type": "HStack",
17523
+ "props": {
17524
+ "spacing": 8,
17525
+ "children": [
17526
+ {
17527
+ "id": "",
17528
+ "body": {
17529
+ "package": "himalaya",
17530
+ "type": "Text",
17531
+ "props": {
17532
+ "text": "Discount",
17533
+ "style": "body",
17534
+ "color": "textPrimary"
17535
+ }
17536
+ }
17537
+ },
17538
+ {
17539
+ "id": "",
17540
+ "body": {
17541
+ "package": "himalaya",
17542
+ "type": "Spacer",
17543
+ "props": {}
17544
+ }
17545
+ },
17546
+ {
17547
+ "id": "",
17548
+ "body": {
17549
+ "package": "himalaya",
17550
+ "type": "Text",
17551
+ "props": {
17552
+ "text": "$service:himiStoreCart.discount",
17553
+ "style": "body",
17554
+ "color": "success"
17555
+ }
17556
+ }
17557
+ }
17558
+ ]
17559
+ }
17560
+ },
17561
+ "modifiers": {
17562
+ "hiddenPath": "$service:himiStoreCart.noDiscount"
17563
+ }
17564
+ },
17565
+ {
17566
+ "id": "himi_cart.subtotal",
17567
+ "body": {
17568
+ "package": "himalaya",
17569
+ "type": "HStack",
17570
+ "props": {
17571
+ "spacing": 8,
17572
+ "children": [
17573
+ {
17574
+ "id": "",
17575
+ "body": {
17576
+ "package": "himalaya",
17577
+ "type": "Text",
17578
+ "props": {
17579
+ "text": "$service:himiStoreCart.subtotalLabel",
17580
+ "style": "bodyEmphasis"
17581
+ }
17582
+ }
17583
+ },
17584
+ {
17585
+ "id": "",
17586
+ "body": {
17587
+ "package": "himalaya",
17588
+ "type": "Spacer",
17589
+ "props": {}
17590
+ }
17591
+ },
17592
+ {
17593
+ "id": "",
17594
+ "body": {
17595
+ "package": "himalaya",
17596
+ "type": "Text",
17597
+ "props": {
17598
+ "text": "$service:himiStoreCart.subtotal",
17599
+ "style": "bodyEmphasis"
17600
+ }
17601
+ }
17602
+ }
17603
+ ]
17604
+ }
17605
+ },
17606
+ "modifiers": {
17607
+ "padding": {
17608
+ "top": 8
17609
+ }
17610
+ }
17611
+ },
17612
+ {
17613
+ "id": "himi_cart.checkout_note",
17614
+ "body": {
17615
+ "package": "himalaya",
17616
+ "type": "Text",
17617
+ "props": {
17618
+ "text": "Taxes and shipping are calculated at checkout.",
17619
+ "style": "footnote",
17620
+ "color": "textSecondary"
17621
+ }
17622
+ },
17623
+ "modifiers": {
17624
+ "padding": {
17625
+ "bottom": 8
17626
+ },
17627
+ "theme": {
17628
+ "typography": {
17629
+ "footnote": {
17630
+ "size": 14,
17631
+ "weight": 400,
17632
+ "line": 1.4285714285714286,
17633
+ "letterSpacing": 0
17634
+ }
17635
+ }
17636
+ }
17637
+ }
17638
+ },
17639
+ {
17640
+ "id": "himi_cart.checkout",
17641
+ "body": {
17642
+ "package": "himalaya",
17643
+ "type": "Button",
17644
+ "props": {
17645
+ "title": "Checkout",
17646
+ "style": "primary",
17647
+ "fullWidth": true,
17648
+ "disabledPath": "$service:himiStoreCart.writeBusy",
17649
+ "action": {
17650
+ "actionId": "tier5.himiStoreCart.checkout"
17651
+ }
17652
+ }
17653
+ }
17654
+ }
17655
+ ]
17656
+ }
17657
+ },
17658
+ "modifiers": {
17659
+ "background": {
17660
+ "token": "surfacePrimary"
17661
+ },
17662
+ "padding": {
17663
+ "leading": 20,
17664
+ "trailing": 20,
17665
+ "top": 12,
17666
+ "bottom": 12
17667
+ }
17668
+ }
17669
+ }
17670
+ ]
17671
+ }
17672
+ },
17673
+ "modifiers": {
17674
+ "hiddenPath": "$service:himiStoreCart.noItems"
17675
+ }
17676
+ }
17677
+ }
17678
+ };
17679
+
17680
+ /** The cart's first-run copy. */
17681
+ export const MEMBER_CART_SEED: Record<string, unknown> = {
17682
+ "himi_cart": {
17683
+ "screenId": "himi_cart",
17684
+ "renderer": "sdui_intent",
17685
+ "title": "",
17686
+ "schemaVersion": 1,
17687
+ "cacheControl": {
17688
+ "maxAge": 0,
17689
+ "staleWhileRevalidate": 0
17690
+ },
17691
+ "payload": {
17692
+ "id": "himi_cart.root",
17693
+ "body": {
17694
+ "package": "himalaya",
17695
+ "type": "VStack",
17696
+ "props": {
17697
+ "spacing": 16,
17698
+ "alignment": "leading",
17699
+ "children": [
17700
+ {
17701
+ "id": "himi_cart.title",
17702
+ "body": {
17703
+ "package": "himalaya",
17704
+ "type": "Text",
17705
+ "props": {
17706
+ "text": "Shopping cart",
17707
+ "style": "pageTitle"
17708
+ }
17709
+ }
17710
+ },
17711
+ {
17712
+ "id": "himi_cart.error",
17713
+ "body": {
17714
+ "package": "himalaya",
17715
+ "type": "VStack",
17716
+ "props": {
17717
+ "spacing": 8,
17718
+ "alignment": "leading",
17719
+ "children": [
17720
+ {
17721
+ "id": "",
17722
+ "body": {
17723
+ "package": "himalaya",
17724
+ "type": "Text",
17725
+ "props": {
17726
+ "text": "You are offline",
17727
+ "style": "bodyEmphasis"
17728
+ }
17729
+ },
17730
+ "modifiers": {
17731
+ "hiddenPath": "$service:himiStoreCart.noOfflineError"
17732
+ }
17733
+ },
17734
+ {
17735
+ "id": "",
17736
+ "body": {
17737
+ "package": "himalaya",
17738
+ "type": "Text",
17739
+ "props": {
17740
+ "text": "Your cart could not be loaded.",
17741
+ "style": "bodyEmphasis"
17742
+ }
17743
+ },
17744
+ "modifiers": {
17745
+ "hiddenPath": "$service:himiStoreCart.noServerError"
17746
+ }
17747
+ },
17748
+ {
17749
+ "id": "",
17750
+ "body": {
17751
+ "package": "himalaya",
17752
+ "type": "Text",
17753
+ "props": {
17754
+ "text": "Try again without leaving the app.",
17755
+ "style": "footnote",
17756
+ "color": "textSecondary"
17757
+ }
17758
+ }
17759
+ },
17760
+ {
17761
+ "id": "himi_cart.retry",
17762
+ "body": {
17763
+ "package": "himalaya",
17764
+ "type": "Button",
17765
+ "props": {
17766
+ "title": "Try again",
17767
+ "style": "secondary",
17768
+ "action": {
17769
+ "actionId": "tier5.himiStoreCart.load"
17770
+ }
17771
+ }
17772
+ }
17773
+ }
17774
+ ]
17775
+ }
17776
+ },
17777
+ "modifiers": {
17778
+ "background": {
17779
+ "token": "surfaceElevated"
17780
+ },
17781
+ "border": {
17782
+ "width": 1,
17783
+ "color": {
17784
+ "token": "border"
17785
+ }
17786
+ },
17787
+ "cornerRadius": 4,
17788
+ "padding": {
17789
+ "leading": 16,
17790
+ "trailing": 16,
17791
+ "top": 16,
17792
+ "bottom": 16
17793
+ },
17794
+ "hiddenPath": "$service:himiStoreCart.notErrored"
17795
+ }
17796
+ },
17797
+ {
17798
+ "id": "himi_cart.list",
17799
+ "body": {
17800
+ "package": "himalaya",
17801
+ "type": "Grid",
17802
+ "props": {
17803
+ "columns": 1,
17804
+ "spacing": 0,
17805
+ "itemsPath": "$service:himiStoreCart.items",
17806
+ "items": [
17807
+ {
17808
+ "id": "himi_cart.row",
17809
+ "body": {
17810
+ "package": "himalaya",
17811
+ "type": "VStack",
17812
+ "props": {
17813
+ "spacing": 0,
17814
+ "alignment": "leading",
17815
+ "children": [
17816
+ {
17817
+ "id": "himi_cart.row_content",
17818
+ "body": {
17819
+ "package": "himalaya",
17820
+ "type": "HStack",
17821
+ "props": {
17822
+ "spacing": 12,
17823
+ "alignment": "leading",
17824
+ "children": [
17825
+ {
17826
+ "id": "himi_cart.thumbnail",
17827
+ "body": {
17828
+ "package": "himalaya",
17829
+ "type": "Image",
17830
+ "props": {
17831
+ "url": "$item.image",
17832
+ "width": 112,
17833
+ "height": 144,
17834
+ "contentMode": "fill",
17835
+ "shape": "rect",
17836
+ "contentDescription": "$item.name"
17837
+ }
17838
+ },
17839
+ "modifiers": {
17840
+ "onTap": {
17841
+ "actionId": "himi.open",
17842
+ "params": {
17843
+ "screenId": "himi_product",
17844
+ "id": "$item.catalogItemId"
17845
+ }
17846
+ },
17847
+ "hiddenPath": "$item.noImage"
17848
+ }
17849
+ },
17850
+ {
17851
+ "id": "",
17852
+ "body": {
17853
+ "package": "himalaya",
17854
+ "type": "ZStack",
17855
+ "props": {
17856
+ "alignment": "center",
17857
+ "children": [
17858
+ {
17859
+ "id": "",
17860
+ "body": {
17861
+ "package": "himalaya",
17862
+ "type": "Text",
17863
+ "props": {
17864
+ "text": "$item.initial",
17865
+ "style": "title2",
17866
+ "color": "textOnAccent"
17867
+ }
17868
+ }
17869
+ }
17870
+ ]
17871
+ }
17872
+ },
17873
+ "modifiers": {
17874
+ "width": 112,
17875
+ "height": 144,
17876
+ "background": {
17877
+ "token": "accentPrimary"
17878
+ },
17879
+ "onTap": {
17880
+ "actionId": "himi.open",
17881
+ "params": {
17882
+ "screenId": "himi_product",
17883
+ "id": "$item.catalogItemId"
17884
+ }
17885
+ },
17886
+ "accessibilityLabel": "$item.name",
17887
+ "hiddenPath": "$item.hasImage"
17888
+ }
17889
+ },
17890
+ {
17891
+ "id": "himi_cart.details",
17892
+ "body": {
17893
+ "package": "himalaya",
17894
+ "type": "VStack",
17895
+ "props": {
17896
+ "spacing": 2,
17897
+ "alignment": "leading",
17898
+ "children": [
17899
+ {
17900
+ "id": "himi_cart.name_price",
17901
+ "body": {
17902
+ "package": "himalaya",
17903
+ "type": "HStack",
17904
+ "props": {
17905
+ "spacing": 6,
17906
+ "alignment": "leading",
17907
+ "children": [
17908
+ {
17909
+ "id": "himi_cart.product_title",
17910
+ "body": {
17911
+ "package": "himalaya",
17912
+ "type": "Text",
17913
+ "props": {
17914
+ "text": "$item.name",
17915
+ "style": "bodyEmphasis",
17916
+ "color": "textPrimary",
17917
+ "maxLines": 2
17918
+ }
17919
+ },
17920
+ "modifiers": {
17921
+ "weight": 1
17922
+ }
17923
+ },
17924
+ {
17925
+ "id": "himi_cart.product_price",
17926
+ "body": {
17927
+ "package": "himalaya",
17928
+ "type": "Text",
17929
+ "props": {
17930
+ "text": "$item.total",
17931
+ "style": "bodyEmphasis",
17932
+ "color": "textPrimary",
17933
+ "maxLines": 1,
17934
+ "collapseWhenEmpty": true
17935
+ }
17936
+ }
17937
+ }
17938
+ ]
17939
+ }
17940
+ }
17941
+ },
17942
+ {
17943
+ "id": "",
17944
+ "body": {
17945
+ "package": "himalaya",
17946
+ "type": "Text",
17947
+ "props": {
17948
+ "text": "$item.option1",
17949
+ "style": "body",
17950
+ "color": "textSecondary",
17951
+ "maxLines": 1,
17952
+ "collapseWhenEmpty": true
17953
+ }
17954
+ }
17955
+ },
17956
+ {
17957
+ "id": "",
17958
+ "body": {
17959
+ "package": "himalaya",
17960
+ "type": "Text",
17961
+ "props": {
17962
+ "text": "$item.option2",
17963
+ "style": "body",
17964
+ "color": "textSecondary",
17965
+ "maxLines": 1,
17966
+ "collapseWhenEmpty": true
17967
+ }
17968
+ }
17969
+ },
17970
+ {
17971
+ "id": "",
17972
+ "body": {
17973
+ "package": "himalaya",
17974
+ "type": "Text",
17975
+ "props": {
17976
+ "text": "$item.option3",
17977
+ "style": "body",
17978
+ "color": "textSecondary",
17979
+ "maxLines": 1,
17980
+ "collapseWhenEmpty": true
17981
+ }
17982
+ }
17983
+ },
17984
+ {
17985
+ "id": "",
17986
+ "body": {
17987
+ "package": "himalaya",
17988
+ "type": "Text",
17989
+ "props": {
17990
+ "text": "$item.inStockMessage",
17991
+ "style": "body",
17992
+ "color": "success"
17993
+ }
17994
+ },
17995
+ "modifiers": {
17996
+ "hiddenPath": "$item.noInStockMessage"
17997
+ }
17998
+ },
17999
+ {
18000
+ "id": "",
18001
+ "body": {
18002
+ "package": "himalaya",
18003
+ "type": "Text",
18004
+ "props": {
18005
+ "text": "$item.stockMessage",
18006
+ "style": "body",
18007
+ "color": "danger"
18008
+ }
18009
+ },
18010
+ "modifiers": {
18011
+ "hiddenPath": "$item.noStockMessage"
18012
+ }
18013
+ },
18014
+ {
18015
+ "id": "",
18016
+ "body": {
18017
+ "package": "himalaya",
18018
+ "type": "Spacer",
18019
+ "props": {}
18020
+ }
18021
+ },
18022
+ {
18023
+ "id": "himi_cart.actions",
18024
+ "body": {
18025
+ "package": "himalaya",
18026
+ "type": "HStack",
18027
+ "props": {
18028
+ "spacing": 0,
18029
+ "alignment": "center",
18030
+ "children": [
18031
+ {
18032
+ "id": "himi_cart.qty_minus",
18033
+ "body": {
18034
+ "package": "himalaya",
18035
+ "type": "Button",
18036
+ "props": {
18037
+ "title": "Decrease quantity",
18038
+ "action": {
18039
+ "actionId": "tier5.himiStoreCart.decrement",
18040
+ "params": {
18041
+ "id": "$item.id"
18042
+ }
18043
+ },
18044
+ "style": "tertiary",
18045
+ "iconOnly": true,
18046
+ "leadingIcon": "minus",
18047
+ "cornerRadius": 22,
18048
+ "minHeight": 44,
18049
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18050
+ "size": "sm"
18051
+ }
18052
+ },
18053
+ "modifiers": {
18054
+ "width": 44,
18055
+ "height": 44,
18056
+ "accessibilityLabel": "Decrease quantity",
18057
+ "accessibilityRole": "button",
18058
+ "haptic": "light"
18059
+ }
18060
+ },
18061
+ {
18062
+ "id": "himi_cart.qty_value",
18063
+ "body": {
18064
+ "package": "himalaya",
18065
+ "type": "Text",
18066
+ "props": {
18067
+ "text": "$item.quantityLabel",
18068
+ "style": "body",
18069
+ "textAlign": "center"
18070
+ }
18071
+ },
18072
+ "modifiers": {
18073
+ "width": 32
18074
+ }
18075
+ },
18076
+ {
18077
+ "id": "himi_cart.qty_plus",
18078
+ "body": {
18079
+ "package": "himalaya",
18080
+ "type": "Button",
18081
+ "props": {
18082
+ "title": "Increase quantity",
18083
+ "action": {
18084
+ "actionId": "tier5.himiStoreCart.increment",
18085
+ "params": {
18086
+ "id": "$item.id"
18087
+ }
18088
+ },
18089
+ "style": "tertiary",
18090
+ "iconOnly": true,
18091
+ "leadingIcon": "plus",
18092
+ "cornerRadius": 22,
18093
+ "minHeight": 44,
18094
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18095
+ "size": "sm"
18096
+ }
18097
+ },
18098
+ "modifiers": {
18099
+ "width": 44,
18100
+ "height": 44,
18101
+ "accessibilityLabel": "Increase quantity",
18102
+ "accessibilityRole": "button",
18103
+ "haptic": "light"
18104
+ }
18105
+ },
18106
+ {
18107
+ "id": "",
18108
+ "body": {
18109
+ "package": "himalaya",
18110
+ "type": "Spacer",
18111
+ "props": {}
18112
+ }
18113
+ },
18114
+ {
18115
+ "id": "himi_cart.save_filled",
18116
+ "body": {
18117
+ "package": "himalaya",
18118
+ "type": "Button",
18119
+ "props": {
18120
+ "title": "Remove from wishlist",
18121
+ "action": {
18122
+ "actionId": "tier5.himiStoreCart.save",
18123
+ "params": {
18124
+ "id": "$item.id"
18125
+ }
18126
+ },
18127
+ "style": "tertiary",
18128
+ "iconOnly": true,
18129
+ "leadingIcon": "heart_fill",
18130
+ "cornerRadius": 22,
18131
+ "minHeight": 44,
18132
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18133
+ "size": "sm"
18134
+ }
18135
+ },
18136
+ "modifiers": {
18137
+ "width": 44,
18138
+ "height": 44,
18139
+ "accessibilityLabel": "Remove from wishlist",
18140
+ "accessibilityRole": "button",
18141
+ "haptic": "light",
18142
+ "hiddenPath": "$item.notSaved"
18143
+ }
18144
+ },
18145
+ {
18146
+ "id": "himi_cart.save",
18147
+ "body": {
18148
+ "package": "himalaya",
18149
+ "type": "Button",
18150
+ "props": {
18151
+ "title": "Add to wishlist",
18152
+ "action": {
18153
+ "actionId": "tier5.himiStoreCart.save",
18154
+ "params": {
18155
+ "id": "$item.id"
18156
+ }
18157
+ },
18158
+ "style": "tertiary",
18159
+ "iconOnly": true,
18160
+ "leadingIcon": "heart",
18161
+ "cornerRadius": 22,
18162
+ "minHeight": 44,
18163
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18164
+ "size": "sm"
18165
+ }
18166
+ },
18167
+ "modifiers": {
18168
+ "width": 44,
18169
+ "height": 44,
18170
+ "accessibilityLabel": "Add to wishlist",
18171
+ "accessibilityRole": "button",
18172
+ "haptic": "light",
18173
+ "hiddenPath": "$item.saved"
18174
+ }
18175
+ },
18176
+ {
18177
+ "id": "himi_cart.remove",
18178
+ "body": {
18179
+ "package": "himalaya",
18180
+ "type": "Button",
18181
+ "props": {
18182
+ "title": "Remove from cart",
18183
+ "action": {
18184
+ "actionId": "tier5.himiStoreCart.remove",
18185
+ "params": {
18186
+ "id": "$item.id"
18187
+ }
18188
+ },
18189
+ "style": "tertiary",
18190
+ "iconOnly": true,
18191
+ "leadingIcon": "trash",
18192
+ "cornerRadius": 22,
18193
+ "minHeight": 44,
18194
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18195
+ "size": "sm"
18196
+ }
18197
+ },
18198
+ "modifiers": {
18199
+ "width": 44,
18200
+ "height": 44,
18201
+ "accessibilityLabel": "Remove from cart",
18202
+ "accessibilityRole": "button",
18203
+ "haptic": "light"
18204
+ }
18205
+ }
18206
+ ]
18207
+ }
18208
+ }
18209
+ }
18210
+ ]
18211
+ }
18212
+ },
18213
+ "modifiers": {
18214
+ "weight": 1
18215
+ }
18216
+ }
18217
+ ]
18218
+ }
18219
+ },
18220
+ "modifiers": {
18221
+ "fillMaxWidth": true,
18222
+ "padding": {
18223
+ "top": 20,
18224
+ "bottom": 20
18225
+ }
18226
+ }
18227
+ },
18228
+ {
18229
+ "id": "",
18230
+ "body": {
18231
+ "package": "himalaya",
18232
+ "type": "Divider",
18233
+ "props": {}
18234
+ }
18235
+ }
18236
+ ]
18237
+ }
18238
+ },
18239
+ "modifiers": {
18240
+ "theme": {
18241
+ "typography": {
18242
+ "body": {
18243
+ "size": 14,
18244
+ "weight": 400,
18245
+ "line": 1.4285714285714286,
18246
+ "letterSpacing": 0
18247
+ },
18248
+ "bodyEmphasis": {
18249
+ "size": 14,
18250
+ "weight": 700,
18251
+ "line": 1.4285714285714286,
18252
+ "letterSpacing": 0
18253
+ }
18254
+ }
18255
+ }
18256
+ }
18257
+ }
18258
+ ]
18259
+ }
18260
+ },
18261
+ "modifiers": {
18262
+ "hiddenPath": "$service:himiStoreCart.hideContent"
18263
+ }
18264
+ },
18265
+ {
18266
+ "id": "himi_cart.hint",
18267
+ "body": {
18268
+ "package": "himalaya",
18269
+ "type": "Banner",
18270
+ "props": {
18271
+ "title": "$service:himiStoreCart.checkoutHint",
18272
+ "severity": "warning"
18273
+ }
18274
+ },
18275
+ "modifiers": {
18276
+ "hiddenPath": "$service:himiStoreCart.noCheckoutHint"
18277
+ }
18278
+ },
18279
+ {
18280
+ "id": "himi_cart.empty",
18281
+ "body": {
18282
+ "package": "himalaya",
18283
+ "type": "VStack",
18284
+ "props": {
18285
+ "spacing": 12,
18286
+ "alignment": "center",
18287
+ "children": [
18288
+ {
18289
+ "id": "",
18290
+ "body": {
18291
+ "package": "himalaya",
18292
+ "type": "Icon",
18293
+ "props": {
18294
+ "name": "cart",
18295
+ "size": 28,
18296
+ "tint": "textTertiary"
18297
+ }
18298
+ },
18299
+ "modifiers": {
18300
+ "accessibilityRole": "decorative"
18301
+ }
18302
+ },
18303
+ {
18304
+ "id": "",
18305
+ "body": {
18306
+ "package": "himalaya",
18307
+ "type": "Text",
18308
+ "props": {
18309
+ "text": "$service:himiStoreCart.emptyText",
18310
+ "style": "title3",
18311
+ "color": "textPrimary",
18312
+ "collapseWhenEmpty": true
18313
+ }
18314
+ }
18315
+ },
18316
+ {
18317
+ "id": "",
18318
+ "body": {
18319
+ "package": "himalaya",
18320
+ "type": "Text",
18321
+ "props": {
18322
+ "text": "Your items will appear here when you add them.",
18323
+ "style": "footnote",
18324
+ "color": "textSecondary"
18325
+ }
18326
+ }
18327
+ },
18328
+ {
18329
+ "id": "himi_cart.browse",
18330
+ "body": {
18331
+ "package": "himalaya",
18332
+ "type": "Button",
18333
+ "props": {
18334
+ "title": "Browse products",
18335
+ "style": "secondary",
18336
+ "action": {
18337
+ "actionId": "himi.open",
18338
+ "params": {
18339
+ "screenId": "himi_shop"
18340
+ }
18341
+ }
18342
+ }
18343
+ }
18344
+ }
18345
+ ]
18346
+ }
18347
+ },
18348
+ "modifiers": {
18349
+ "hiddenPath": "$service:himiStoreCart.noEmpty"
18350
+ }
18351
+ },
18352
+ {
18353
+ "id": "himi_cart.member_gate",
18354
+ "body": {
18355
+ "package": "himalaya",
18356
+ "type": "VStack",
18357
+ "props": {
18358
+ "spacing": 10,
18359
+ "alignment": "center",
18360
+ "children": [
18361
+ {
18362
+ "id": "",
18363
+ "body": {
18364
+ "package": "himalaya",
18365
+ "type": "Icon",
18366
+ "props": {
18367
+ "name": "person",
18368
+ "size": 28,
18369
+ "tint": "accentPrimary"
18370
+ }
18371
+ },
18372
+ "modifiers": {
18373
+ "accessibilityRole": "decorative"
18374
+ }
18375
+ },
18376
+ {
18377
+ "id": "himi_cart.member_gate_title",
18378
+ "body": {
18379
+ "package": "himalaya",
18380
+ "type": "Text",
18381
+ "props": {
18382
+ "text": "Sign in to see your cart",
18383
+ "style": "bodyEmphasis"
18384
+ }
18385
+ }
18386
+ },
18387
+ {
18388
+ "id": "",
18389
+ "body": {
18390
+ "package": "himalaya",
18391
+ "type": "Text",
18392
+ "props": {
18393
+ "text": "Your cart is the same one you use on the website once you sign in.",
18394
+ "style": "footnote",
18395
+ "color": "textSecondary"
18396
+ }
18397
+ }
18398
+ },
18399
+ {
18400
+ "id": "himi_cart.member_gate_signin",
18401
+ "body": {
18402
+ "package": "himalaya",
18403
+ "type": "Button",
18404
+ "props": {
18405
+ "title": "Sign in",
18406
+ "style": "primary",
18407
+ "fullWidth": true,
18408
+ "action": {
18409
+ "actionId": "himi.open",
18410
+ "params": {
18411
+ "screenId": "himi_sign_in",
18412
+ "mode": "signin",
18413
+ "intent": "cart",
18414
+ "returnScreenId": "himi_cart"
18415
+ }
18416
+ }
18417
+ }
18418
+ }
18419
+ }
18420
+ ]
18421
+ }
18422
+ },
18423
+ "modifiers": {
18424
+ "background": {
18425
+ "token": "surfaceElevated"
18426
+ },
18427
+ "border": {
18428
+ "width": 1,
18429
+ "color": {
18430
+ "token": "border"
18431
+ }
18432
+ },
18433
+ "cornerRadius": 16,
18434
+ "padding": {
18435
+ "leading": 16,
18436
+ "trailing": 16,
18437
+ "top": 20,
18438
+ "bottom": 20
18439
+ },
18440
+ "fillMaxWidth": true,
18441
+ "hiddenPath": "$service:himiStoreCart.noSignIn"
18442
+ }
18443
+ },
18444
+ {
18445
+ "id": "himi_cart.order_placed",
18446
+ "body": {
18447
+ "package": "himalaya",
18448
+ "type": "Snackbar",
18449
+ "props": {
18450
+ "message": "Order placed. Thanks!",
18451
+ "severity": "success",
18452
+ "durationMs": 3000
18453
+ }
18454
+ },
18455
+ "modifiers": {
18456
+ "hiddenPath": "$service:himiStoreCart.noPaidToast"
18457
+ }
18458
+ }
18459
+ ]
18460
+ }
18461
+ },
18462
+ "modifiers": {
18463
+ "background": {
18464
+ "token": "surfacePrimary"
18465
+ },
18466
+ "padding": {
18467
+ "leading": 16,
18468
+ "trailing": 16,
18469
+ "top": 18,
18470
+ "bottom": 28
18471
+ },
18472
+ "onAppear": {
18473
+ "actionId": "tier5.himiStoreCart.load",
18474
+ "params": {
18475
+ "memberOnly": "1",
18476
+ "returnUrl": "himalaya-__HIMI_APP_SLUG__://screen/himi_cart"
18477
+ }
18478
+ }
18479
+ }
18480
+ },
18481
+ "logicBundle": {
18482
+ "url": "/v1/bundles/himi-branded-lite-member-cart?integrity=",
18483
+ "integrity": "",
18484
+ "contentType": "application/javascript+ts-bundle",
18485
+ "declaredCapabilities": [
18486
+ "wix_api",
18487
+ "wix_cashier",
18488
+ "open_url",
18489
+ "local_database",
18490
+ "wix_platform",
18491
+ "iap",
18492
+ "app_info"
18493
+ ],
18494
+ "minBinaryVersion": "0.1.0",
18495
+ "bundleVersion": "0.0.1"
18496
+ },
18497
+ "stickyFooter": {
18498
+ "id": "himi_cart.footer",
18499
+ "body": {
18500
+ "package": "himalaya",
18501
+ "type": "VStack",
18502
+ "props": {
18503
+ "spacing": 0,
18504
+ "alignment": "leading",
18505
+ "children": [
18506
+ {
18507
+ "id": "himi_cart.footer_divider",
18508
+ "body": {
18509
+ "package": "himalaya",
18510
+ "type": "Divider",
18511
+ "props": {}
18512
+ }
18513
+ },
18514
+ {
18515
+ "id": "himi_cart.footer_content",
18516
+ "body": {
18517
+ "package": "himalaya",
18518
+ "type": "VStack",
18519
+ "props": {
18520
+ "spacing": 10,
18521
+ "alignment": "leading",
18522
+ "children": [
18523
+ {
18524
+ "id": "",
18525
+ "body": {
18526
+ "package": "himalaya",
18527
+ "type": "HStack",
18528
+ "props": {
18529
+ "spacing": 8,
18530
+ "children": [
18531
+ {
18532
+ "id": "himi_cart.promo",
18533
+ "body": {
18534
+ "package": "himalaya",
18535
+ "type": "TextField",
18536
+ "props": {
18537
+ "placeholder": "Promo code",
18538
+ "valuePath": "$service:himiStoreCart.promoCode",
18539
+ "onChange": {
18540
+ "actionId": "tier5.himiStoreCart.setPromo"
18541
+ },
18542
+ "onSubmit": {
18543
+ "actionId": "tier5.himiStoreCart.applyPromo"
18544
+ },
18545
+ "autoCapitalization": "characters",
18546
+ "suggestions": "off",
18547
+ "submitLabel": "done",
18548
+ "clearButton": true,
18549
+ "maxLength": 100,
18550
+ "borderless": true
18551
+ }
18552
+ },
18553
+ "modifiers": {
18554
+ "weight": 1,
18555
+ "height": 44,
18556
+ "border": {
18557
+ "width": 1,
18558
+ "color": {
18559
+ "token": "border"
18560
+ }
18561
+ },
18562
+ "padding": {
18563
+ "leading": 12,
18564
+ "trailing": 12
18565
+ },
18566
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
18567
+ }
18568
+ },
18569
+ {
18570
+ "id": "himi_cart.apply_promo",
18571
+ "body": {
18572
+ "package": "himalaya",
18573
+ "type": "Button",
18574
+ "props": {
18575
+ "title": "Apply",
18576
+ "style": "secondary",
18577
+ "fullWidth": false,
18578
+ "action": {
18579
+ "actionId": "tier5.himiStoreCart.applyPromo"
18580
+ },
18581
+ "disabledPath": "$service:himiStoreCart.writeBusy"
18582
+ }
18583
+ },
18584
+ "modifiers": {
18585
+ "height": 44,
18586
+ "hiddenPath": "$service:himiStoreCart.hasCoupon"
18587
+ }
18588
+ },
18589
+ {
18590
+ "id": "",
18591
+ "body": {
18592
+ "package": "himalaya",
18593
+ "type": "HStack",
18594
+ "props": {
18595
+ "spacing": 8,
18596
+ "children": [
18597
+ {
18598
+ "id": "",
18599
+ "body": {
18600
+ "package": "himalaya",
18601
+ "type": "Text",
18602
+ "props": {
18603
+ "text": "$service:himiStoreCart.appliedLabel",
18604
+ "style": "footnote",
18605
+ "color": "textPrimary"
18606
+ }
18607
+ }
18608
+ },
18609
+ {
18610
+ "id": "",
18611
+ "body": {
18612
+ "package": "himalaya",
18613
+ "type": "Spacer",
18614
+ "props": {}
18615
+ }
18616
+ },
18617
+ {
18618
+ "id": "himi_cart.remove_promo",
18619
+ "body": {
18620
+ "package": "himalaya",
18621
+ "type": "Button",
18622
+ "props": {
18623
+ "title": "Remove promo code",
18624
+ "action": {
18625
+ "actionId": "tier5.himiStoreCart.removePromo"
18626
+ },
18627
+ "style": "tertiary",
18628
+ "iconOnly": true,
18629
+ "leadingIcon": "close",
18630
+ "cornerRadius": 22,
18631
+ "minHeight": 44,
18632
+ "disabledPath": "$service:himiStoreCart.writeBusy"
18633
+ }
18634
+ },
18635
+ "modifiers": {
18636
+ "width": 44,
18637
+ "height": 44,
18638
+ "accessibilityLabel": "Remove promo code",
18639
+ "accessibilityRole": "button"
18640
+ }
18641
+ }
18642
+ ]
18643
+ }
18644
+ },
18645
+ "modifiers": {
18646
+ "hiddenPath": "$service:himiStoreCart.noCoupon"
18647
+ }
18648
+ }
18649
+ ]
18650
+ }
18651
+ }
18652
+ },
18653
+ {
18654
+ "id": "himi_cart.promo_error",
18655
+ "body": {
18656
+ "package": "himalaya",
18657
+ "type": "Text",
18658
+ "props": {
18659
+ "text": "$service:himiStoreCart.promoError",
18660
+ "style": "footnote",
18661
+ "color": "danger"
18662
+ }
18663
+ },
18664
+ "modifiers": {
18665
+ "hiddenPath": "$service:himiStoreCart.noPromoError"
18666
+ }
18667
+ },
18668
+ {
18669
+ "id": "",
18670
+ "body": {
18671
+ "package": "himalaya",
18672
+ "type": "HStack",
18673
+ "props": {
18674
+ "spacing": 8,
18675
+ "children": [
18676
+ {
18677
+ "id": "",
18678
+ "body": {
18679
+ "package": "himalaya",
18680
+ "type": "Text",
18681
+ "props": {
18682
+ "text": "Discount",
18683
+ "style": "body",
18684
+ "color": "textPrimary"
18685
+ }
18686
+ }
18687
+ },
18688
+ {
18689
+ "id": "",
18690
+ "body": {
18691
+ "package": "himalaya",
18692
+ "type": "Spacer",
18693
+ "props": {}
18694
+ }
18695
+ },
18696
+ {
18697
+ "id": "",
18698
+ "body": {
18699
+ "package": "himalaya",
18700
+ "type": "Text",
18701
+ "props": {
18702
+ "text": "$service:himiStoreCart.discount",
18703
+ "style": "body",
18704
+ "color": "success"
18705
+ }
18706
+ }
18707
+ }
18708
+ ]
18709
+ }
18710
+ },
18711
+ "modifiers": {
18712
+ "hiddenPath": "$service:himiStoreCart.noDiscount"
18713
+ }
18714
+ },
18715
+ {
18716
+ "id": "himi_cart.subtotal",
18717
+ "body": {
18718
+ "package": "himalaya",
18719
+ "type": "HStack",
18720
+ "props": {
18721
+ "spacing": 8,
18722
+ "children": [
18723
+ {
18724
+ "id": "",
18725
+ "body": {
18726
+ "package": "himalaya",
18727
+ "type": "Text",
18728
+ "props": {
18729
+ "text": "$service:himiStoreCart.subtotalLabel",
18730
+ "style": "bodyEmphasis"
18731
+ }
18732
+ }
18733
+ },
18734
+ {
18735
+ "id": "",
18736
+ "body": {
18737
+ "package": "himalaya",
18738
+ "type": "Spacer",
18739
+ "props": {}
18740
+ }
18741
+ },
18742
+ {
18743
+ "id": "",
18744
+ "body": {
18745
+ "package": "himalaya",
18746
+ "type": "Text",
18747
+ "props": {
18748
+ "text": "$service:himiStoreCart.subtotal",
18749
+ "style": "bodyEmphasis"
18750
+ }
18751
+ }
18752
+ }
18753
+ ]
18754
+ }
18755
+ },
18756
+ "modifiers": {
18757
+ "padding": {
18758
+ "top": 8
18759
+ }
18760
+ }
18761
+ },
18762
+ {
18763
+ "id": "himi_cart.checkout_note",
18764
+ "body": {
18765
+ "package": "himalaya",
18766
+ "type": "Text",
18767
+ "props": {
18768
+ "text": "Taxes and shipping are calculated at checkout.",
18769
+ "style": "footnote",
18770
+ "color": "textSecondary"
18771
+ }
18772
+ },
18773
+ "modifiers": {
18774
+ "padding": {
18775
+ "bottom": 8
18776
+ },
18777
+ "theme": {
18778
+ "typography": {
18779
+ "footnote": {
18780
+ "size": 14,
18781
+ "weight": 400,
18782
+ "line": 1.4285714285714286,
18783
+ "letterSpacing": 0
18784
+ }
18785
+ }
18786
+ }
18787
+ }
18788
+ },
18789
+ {
18790
+ "id": "himi_cart.checkout",
18791
+ "body": {
18792
+ "package": "himalaya",
18793
+ "type": "Button",
18794
+ "props": {
18795
+ "title": "Checkout",
18796
+ "style": "primary",
18797
+ "fullWidth": true,
18798
+ "disabledPath": "$service:himiStoreCart.writeBusy",
18799
+ "action": {
18800
+ "actionId": "tier5.himiStoreCart.checkout"
18801
+ }
18802
+ }
18803
+ }
18804
+ }
18805
+ ]
18806
+ }
18807
+ },
18808
+ "modifiers": {
18809
+ "background": {
18810
+ "token": "surfacePrimary"
18811
+ },
18812
+ "padding": {
18813
+ "leading": 20,
18814
+ "trailing": 20,
18815
+ "top": 12,
18816
+ "bottom": 12
18817
+ }
18818
+ }
18819
+ }
18820
+ ]
18821
+ }
18822
+ },
18823
+ "modifiers": {
18824
+ "hiddenPath": "$service:himiStoreCart.noItems"
18825
+ }
18826
+ }
18827
+ }
18828
+ };