@wix/himalaya-cli 0.1656.0 → 0.1658.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.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/checkout.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +2 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-pricing-plans.mjs +10 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{3912fa5f6ddb60106c630fb5e48edbf12ebfd57c616d8b7aee0d32088cd3bbdf.bin → c04dd5fc5ad48e6b19678d4313159302e9a513ada94bfe515d8dfd5a54d46f5d.bin} +1 -1
- package/dist/browser-plane/sw.js +5 -5
- package/dist/cli.mjs +92 -60
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/getting-started.md +4 -1
- package/guides/himi-skill.md +4 -1
- package/guides/index.json +12 -0
- package/guides/recipe-auth.md +120 -0
- package/guides/recipe-checkout.md +108 -0
- package/guides/sdk-reference.json +21 -3
- package/guides/skill.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +2151 -2596
- package/templates/beauty-salon/l10n/en.json +208 -180
- package/templates/beauty-salon/l10n/he.json +300 -138
- package/templates/beauty-salon/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/beauty-salon/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/beauty-salon/tokens.json +17 -1
- package/templates/branded-lite/dev/index.ts +2272 -2685
- package/templates/branded-lite/l10n/en.json +225 -52
- package/templates/branded-lite/l10n/he.json +305 -39
- package/templates/branded-lite/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/branded-lite/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/branded-lite/tokens.json +5 -1
- package/templates/community-club/l10n/en.json +6 -1
- package/templates/community-club/l10n/he.json +23 -2
- package/templates/community-club/tokens.json +17 -1
- package/templates/events-meetups/l10n/en.json +6 -1
- package/templates/events-meetups/l10n/he.json +23 -2
- package/templates/events-meetups/tokens.json +17 -1
- package/templates/gym-fitness/dev/index.ts +2149 -2594
- package/templates/gym-fitness/l10n/en.json +215 -77
- package/templates/gym-fitness/l10n/he.json +300 -59
- package/templates/gym-fitness/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/gym-fitness/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/gym-fitness/tokens.json +17 -1
- package/templates/nonprofit-cause/dev/index.ts +2163 -2608
- package/templates/nonprofit-cause/l10n/en.json +216 -38
- package/templates/nonprofit-cause/l10n/he.json +300 -30
- package/templates/nonprofit-cause/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/nonprofit-cause/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/nonprofit-cause/tokens.json +17 -1
- package/templates/podcast-creator/dev/index.ts +2147 -2592
- package/templates/podcast-creator/l10n/en.json +216 -38
- package/templates/podcast-creator/l10n/he.json +300 -30
- package/templates/podcast-creator/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/podcast-creator/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/podcast-creator/tokens.json +17 -1
- package/templates/portfolio-creative/l10n/en.json +15 -8
- package/templates/portfolio-creative/l10n/he.json +28 -6
- package/templates/portfolio-creative/tokens.json +17 -1
- package/templates/restaurant/l10n/en.json +14 -7
- package/templates/restaurant/l10n/he.json +28 -6
- package/templates/restaurant/tokens.json +17 -1
- package/templates/retail-store/l10n/en.json +15 -8
- package/templates/retail-store/l10n/he.json +28 -6
- package/templates/retail-store/tokens.json +17 -1
- package/templates/yoga-studio/dev/index.ts +2204 -2649
- package/templates/yoga-studio/l10n/en.json +216 -43
- package/templates/yoga-studio/l10n/he.json +300 -30
- package/templates/yoga-studio/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +101 -31
- package/templates/yoga-studio/tier5-src/wix-spaces-my-subscriptions/index.ts +72 -70
- package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +129 -31
- package/templates/yoga-studio/tokens.json +17 -1
- package/templates/beauty-salon/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/branded-lite/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/gym-fitness/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/nonprofit-cause/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/podcast-creator/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
- package/templates/yoga-studio/tier5-src/wix-spaces-plan-detail/index.ts +0 -63
|
@@ -46,11 +46,6 @@
|
|
|
46
46
|
"key": "program.enrolCta",
|
|
47
47
|
"translation": "הרשמה"
|
|
48
48
|
},
|
|
49
|
-
"h_075a188de01e": {
|
|
50
|
-
"source": "My Subscriptions",
|
|
51
|
-
"key": "mySubscriptions.title",
|
|
52
|
-
"translation": "המנויים שלי"
|
|
53
|
-
},
|
|
54
49
|
"h_085f317f41a0": {
|
|
55
50
|
"source": "Update the app to change your password.",
|
|
56
51
|
"key": "accountSettings.passwordUpgradeRequired",
|
|
@@ -76,11 +71,6 @@
|
|
|
76
71
|
"translation": "שיתוף",
|
|
77
72
|
"key": "blogPost.shareCta"
|
|
78
73
|
},
|
|
79
|
-
"h_09cb227b060e": {
|
|
80
|
-
"source": "Loading plans...",
|
|
81
|
-
"key": "plans.loadingText",
|
|
82
|
-
"translation": "טוען תוכניות..."
|
|
83
|
-
},
|
|
84
74
|
"h_0a3c313dce38": {
|
|
85
75
|
"source": "Sending reset link…",
|
|
86
76
|
"key": "accountSettings.passwordResetSending",
|
|
@@ -561,11 +551,6 @@
|
|
|
561
551
|
"key": "agenda.viewCourseCta",
|
|
562
552
|
"translation": "הצגת הקורס"
|
|
563
553
|
},
|
|
564
|
-
"h_8fde48f31aff": {
|
|
565
|
-
"source": "Subscription",
|
|
566
|
-
"key": "subscriptionDetail.chromeTitle",
|
|
567
|
-
"translation": "מנוי"
|
|
568
|
-
},
|
|
569
554
|
"h_9092d98ced48": {
|
|
570
555
|
"source": "Add to Calendar",
|
|
571
556
|
"key": "agenda.addToCalendarCta",
|
|
@@ -749,7 +734,8 @@
|
|
|
749
734
|
"h_badd385121c5": {
|
|
750
735
|
"source": "View details",
|
|
751
736
|
"translation": "צפייה בפרטים",
|
|
752
|
-
"key": "collection.viewDetails"
|
|
737
|
+
"key": "collection.viewDetails",
|
|
738
|
+
"keyOrigin": "string-table"
|
|
753
739
|
},
|
|
754
740
|
"h_bbfa773e5a63": {
|
|
755
741
|
"source": "Close",
|
|
@@ -981,11 +967,6 @@
|
|
|
981
967
|
"translation": "שמירה",
|
|
982
968
|
"key": "collection.save"
|
|
983
969
|
},
|
|
984
|
-
"h_f014740803c5": {
|
|
985
|
-
"source": "Plan details",
|
|
986
|
-
"key": "planDetail.chromeTitle",
|
|
987
|
-
"translation": "פרטי התוכנית"
|
|
988
|
-
},
|
|
989
970
|
"h_f32d5a3b17e6": {
|
|
990
971
|
"source": "Support",
|
|
991
972
|
"key": "appInfo.supportLink",
|
|
@@ -1011,6 +992,11 @@
|
|
|
1011
992
|
"translation": "הזמנה",
|
|
1012
993
|
"key": "tab.book"
|
|
1013
994
|
},
|
|
995
|
+
"h_f840ac65b3e5": {
|
|
996
|
+
"source": "Canceled",
|
|
997
|
+
"translation": "בוטל",
|
|
998
|
+
"key": "subscriptionDetail.status.CANCELED"
|
|
999
|
+
},
|
|
1014
1000
|
"h_f8ee0f6d49b3": {
|
|
1015
1001
|
"source": "Loading your summary…",
|
|
1016
1002
|
"key": "placeSummary.loading",
|
|
@@ -1036,6 +1022,11 @@
|
|
|
1036
1022
|
"translation": "קהילה",
|
|
1037
1023
|
"key": "drawer.section.community"
|
|
1038
1024
|
},
|
|
1025
|
+
"h_a733b809d2f1": {
|
|
1026
|
+
"source": "Active",
|
|
1027
|
+
"key": "mySubscriptions.active",
|
|
1028
|
+
"translation": "פעיל"
|
|
1029
|
+
},
|
|
1039
1030
|
"h_947849cd96b2": {
|
|
1040
1031
|
"source": "No image available",
|
|
1041
1032
|
"key": "collection.noImage",
|
|
@@ -1224,6 +1215,141 @@
|
|
|
1224
1215
|
"key": "blog.categoriesLabel",
|
|
1225
1216
|
"translation": "קטגוריות פוסטים"
|
|
1226
1217
|
},
|
|
1218
|
+
"h_a689a999a5e6": {
|
|
1219
|
+
"source": "Expired",
|
|
1220
|
+
"key": "mySubscriptions.expired",
|
|
1221
|
+
"translation": "פג תוקף"
|
|
1222
|
+
},
|
|
1223
|
+
"h_0febe76e354b": {
|
|
1224
|
+
"source": "You do not have access to this subscription.",
|
|
1225
|
+
"key": "subscriptionDetail.accessDenied",
|
|
1226
|
+
"translation": "אין לך גישה למנוי הזה."
|
|
1227
|
+
},
|
|
1228
|
+
"h_168ec872ecc7": {
|
|
1229
|
+
"source": "Plan price",
|
|
1230
|
+
"key": "planDetail.planPrice",
|
|
1231
|
+
"translation": "מחיר התוכנית"
|
|
1232
|
+
},
|
|
1233
|
+
"h_3fdb5e335327": {
|
|
1234
|
+
"source": "More Details",
|
|
1235
|
+
"key": "mySubscriptions.moreDetails",
|
|
1236
|
+
"translation": "פרטים נוספים"
|
|
1237
|
+
},
|
|
1238
|
+
"h_5697fd85adbd": {
|
|
1239
|
+
"source": "Subscriptions",
|
|
1240
|
+
"key": "mySubscriptions.title",
|
|
1241
|
+
"translation": "מנויים"
|
|
1242
|
+
},
|
|
1243
|
+
"h_6d7f058cd1f9": {
|
|
1244
|
+
"source": "Cancel subscription",
|
|
1245
|
+
"key": "subscriptionDetail.cancel",
|
|
1246
|
+
"translation": "ביטול המנוי"
|
|
1247
|
+
},
|
|
1248
|
+
"h_8048c6e22689": {
|
|
1249
|
+
"source": "Keep subscription",
|
|
1250
|
+
"key": "subscriptionDetail.keep",
|
|
1251
|
+
"translation": "השארת המנוי"
|
|
1252
|
+
},
|
|
1253
|
+
"h_8cfbc985903e": {
|
|
1254
|
+
"source": "Next payment date",
|
|
1255
|
+
"key": "subscriptionDetail.cancelNextPayment",
|
|
1256
|
+
"translation": "מועד התשלום הבא"
|
|
1257
|
+
},
|
|
1258
|
+
"h_90977a5334eb": {
|
|
1259
|
+
"source": "Confirm cancellation",
|
|
1260
|
+
"key": "subscriptionDetail.confirmCancel",
|
|
1261
|
+
"translation": "אישור הביטול"
|
|
1262
|
+
},
|
|
1263
|
+
"h_92d0286da122": {
|
|
1264
|
+
"source": "Terms and conditions",
|
|
1265
|
+
"key": "planDetail.terms",
|
|
1266
|
+
"translation": "תנאים והגבלות"
|
|
1267
|
+
},
|
|
1268
|
+
"h_9e6d2be10412": {
|
|
1269
|
+
"source": "Pricing Plan",
|
|
1270
|
+
"key": "mySubscriptions.type",
|
|
1271
|
+
"translation": "תוכנית תמחור"
|
|
1272
|
+
},
|
|
1273
|
+
"h_a1ba61405311": {
|
|
1274
|
+
"source": "SUBSCRIPTION DETAILS",
|
|
1275
|
+
"key": "subscriptionDetail.sectionTitle",
|
|
1276
|
+
"translation": "פרטי המנוי"
|
|
1277
|
+
},
|
|
1278
|
+
"h_ac3cff89b598": {
|
|
1279
|
+
"source": "Check back later.",
|
|
1280
|
+
"key": "plans.emptyBody",
|
|
1281
|
+
"translation": "בדקו שוב מאוחר יותר."
|
|
1282
|
+
},
|
|
1283
|
+
"h_b1b85d6dca11": {
|
|
1284
|
+
"source": "Cancel subscription?",
|
|
1285
|
+
"key": "subscriptionDetail.cancelTitle",
|
|
1286
|
+
"translation": "לבטל את המנוי?"
|
|
1287
|
+
},
|
|
1288
|
+
"h_b52174d6f8ee": {
|
|
1289
|
+
"source": "Sign in to see your subscriptions.",
|
|
1290
|
+
"key": "mySubscriptions.guestBody",
|
|
1291
|
+
"translation": "התחברו כדי לראות את המנויים שלכם."
|
|
1292
|
+
},
|
|
1293
|
+
"h_b5cd0764d53b": {
|
|
1294
|
+
"source": "The final price, including taxes, is determined at checkout.",
|
|
1295
|
+
"key": "planDetail.taxNote",
|
|
1296
|
+
"translation": "המחיר הסופי, כולל מיסים, נקבע בעת התשלום."
|
|
1297
|
+
},
|
|
1298
|
+
"h_be063c39a40c": {
|
|
1299
|
+
"source": "View plan benefits",
|
|
1300
|
+
"key": "plans.viewBenefits",
|
|
1301
|
+
"translation": "הצגת הטבות התוכנית"
|
|
1302
|
+
},
|
|
1303
|
+
"h_e3b82040565b": {
|
|
1304
|
+
"source": "Now",
|
|
1305
|
+
"key": "subscriptionDetail.cancelNow",
|
|
1306
|
+
"translation": "עכשיו"
|
|
1307
|
+
},
|
|
1308
|
+
"h_e5a3dc6c4148": {
|
|
1309
|
+
"source": "No plans available",
|
|
1310
|
+
"key": "plans.emptyTitle",
|
|
1311
|
+
"translation": "אין תוכניות זמינות"
|
|
1312
|
+
},
|
|
1313
|
+
"h_e61470df7f9a": {
|
|
1314
|
+
"source": "Browse plans",
|
|
1315
|
+
"key": "mySubscriptions.browsePlans",
|
|
1316
|
+
"translation": "עיון בתוכניות"
|
|
1317
|
+
},
|
|
1318
|
+
"h_26f0f757637b": {
|
|
1319
|
+
"source": "No expired subscriptions",
|
|
1320
|
+
"key": "mySubscriptions.expiredEmpty",
|
|
1321
|
+
"translation": "אין מנויים שפג תוקפם"
|
|
1322
|
+
},
|
|
1323
|
+
"h_2d237a1790e7": {
|
|
1324
|
+
"source": "No active subscriptions",
|
|
1325
|
+
"key": "mySubscriptions.activeEmpty",
|
|
1326
|
+
"translation": "אין מנויים פעילים"
|
|
1327
|
+
},
|
|
1328
|
+
"h_3a59df4808b7": {
|
|
1329
|
+
"source": "Subscriptions are unavailable for this account.",
|
|
1330
|
+
"key": "mySubscriptions.accessDenied",
|
|
1331
|
+
"translation": "המנויים אינם זמינים לחשבון הזה."
|
|
1332
|
+
},
|
|
1333
|
+
"h_87855219fc0e": {
|
|
1334
|
+
"source": "Cancellation requested, but the latest status could not be loaded. Refresh the details.",
|
|
1335
|
+
"key": "subscriptionDetail.cancelRefreshFailed",
|
|
1336
|
+
"translation": "בקשת הביטול נשלחה, אך לא ניתן לטעון את המצב העדכני. רעננו את הפרטים."
|
|
1337
|
+
},
|
|
1338
|
+
"h_c4ec5bbde22f": {
|
|
1339
|
+
"source": "This subscription cannot be canceled from this account. Contact the business for help.",
|
|
1340
|
+
"key": "subscriptionDetail.cancelDenied",
|
|
1341
|
+
"translation": "לא ניתן לבטל את המנוי מהחשבון הזה. פנו לעסק לקבלת עזרה."
|
|
1342
|
+
},
|
|
1343
|
+
"h_f5871873a63a": {
|
|
1344
|
+
"source": "Cancellation failed. Try again.",
|
|
1345
|
+
"key": "subscriptionDetail.cancelFailed",
|
|
1346
|
+
"translation": "ביטול המנוי נכשל. נסו שוב."
|
|
1347
|
+
},
|
|
1348
|
+
"h_c72863dbd9e1": {
|
|
1349
|
+
"source": "Hide plan benefits",
|
|
1350
|
+
"key": "plans.hideBenefits",
|
|
1351
|
+
"translation": "הסתרת הטבות התוכנית"
|
|
1352
|
+
},
|
|
1227
1353
|
"h_03e89418ffdf": {
|
|
1228
1354
|
"source": "Your Home",
|
|
1229
1355
|
"translation": "הבית שלך"
|
|
@@ -1354,7 +1480,7 @@
|
|
|
1354
1480
|
},
|
|
1355
1481
|
"h_09fef5d8d9a3": {
|
|
1356
1482
|
"source": "Failed",
|
|
1357
|
-
"translation": "
|
|
1483
|
+
"translation": "נכשל"
|
|
1358
1484
|
},
|
|
1359
1485
|
"h_7c08f81c17ab": {
|
|
1360
1486
|
"source": "Access paused",
|
|
@@ -1492,6 +1618,10 @@
|
|
|
1492
1618
|
"source": "Booking Closed",
|
|
1493
1619
|
"translation": "ההרשמה נסגרה"
|
|
1494
1620
|
},
|
|
1621
|
+
"h_8fde48f31aff": {
|
|
1622
|
+
"source": "Subscription",
|
|
1623
|
+
"translation": "מנוי"
|
|
1624
|
+
},
|
|
1495
1625
|
"h_93c54b09342d": {
|
|
1496
1626
|
"source": "This service isn't available for online booking. Contact us to book it.",
|
|
1497
1627
|
"translation": "לא ניתן לקבוע תור לשירות הזה באינטרנט. לקביעת תור יש ליצור איתנו קשר."
|
|
@@ -1649,10 +1779,6 @@
|
|
|
1649
1779
|
"source": "New Post",
|
|
1650
1780
|
"translation": "פוסט חדש"
|
|
1651
1781
|
},
|
|
1652
|
-
"h_f840ac65b3e5": {
|
|
1653
|
-
"source": "Canceled",
|
|
1654
|
-
"translation": "בוטל"
|
|
1655
|
-
},
|
|
1656
1782
|
"h_f85039fd8e49": {
|
|
1657
1783
|
"source": "Confirm new password",
|
|
1658
1784
|
"translation": "אישור הסיסמה החדשה"
|
|
@@ -1965,10 +2091,6 @@
|
|
|
1965
2091
|
"source": "Sign in to see your bookings",
|
|
1966
2092
|
"translation": "יש להתחבר כדי לראות את ההרשמות שלך"
|
|
1967
2093
|
},
|
|
1968
|
-
"h_a733b809d2f1": {
|
|
1969
|
-
"source": "Active",
|
|
1970
|
-
"translation": "פעיל"
|
|
1971
|
-
},
|
|
1972
2094
|
"h_7a7938b5bc22": {
|
|
1973
2095
|
"source": "+{count} more",
|
|
1974
2096
|
"translation": "+ עוד {count}"
|
|
@@ -3400,6 +3522,154 @@
|
|
|
3400
3522
|
"h_cf11de0bfced": {
|
|
3401
3523
|
"source": "Available time",
|
|
3402
3524
|
"translation": "זמן פנוי"
|
|
3525
|
+
},
|
|
3526
|
+
"h_c8214d35a16e": {
|
|
3527
|
+
"source": "Valid until",
|
|
3528
|
+
"translation": "בתוקף עד"
|
|
3529
|
+
},
|
|
3530
|
+
"h_513a2ae3716f": {
|
|
3531
|
+
"source": "Subscriptions could not be loaded.",
|
|
3532
|
+
"translation": "לא ניתן לטעון את המנויים."
|
|
3533
|
+
},
|
|
3534
|
+
"h_071cd4f24599": {
|
|
3535
|
+
"source": "Unlimited duration",
|
|
3536
|
+
"translation": "ללא הגבלת זמן"
|
|
3537
|
+
},
|
|
3538
|
+
"h_7527b5f3de8b": {
|
|
3539
|
+
"source": "Until canceled",
|
|
3540
|
+
"translation": "עד לביטול"
|
|
3541
|
+
},
|
|
3542
|
+
"h_3f28deaf6308": {
|
|
3543
|
+
"source": "Valid for {count} {unit}",
|
|
3544
|
+
"translation": "בתוקף למשך {count} {unit}"
|
|
3545
|
+
},
|
|
3546
|
+
"h_d8fdaaf936d1": {
|
|
3547
|
+
"source": "Current period ends",
|
|
3548
|
+
"translation": "סיום התקופה הנוכחית"
|
|
3549
|
+
},
|
|
3550
|
+
"h_89d10cd6c1e1": {
|
|
3551
|
+
"source": "End date",
|
|
3552
|
+
"translation": "תאריך סיום"
|
|
3553
|
+
},
|
|
3554
|
+
"h_b3b67b1ec371": {
|
|
3555
|
+
"source": "Expired on",
|
|
3556
|
+
"translation": "התוקף פג בתאריך"
|
|
3557
|
+
},
|
|
3558
|
+
"h_d00c682cdd14": {
|
|
3559
|
+
"source": "Your subscription ends on {date}.",
|
|
3560
|
+
"translation": "המנוי שלך יסתיים בתאריך {date}."
|
|
3561
|
+
},
|
|
3562
|
+
"h_d19252fd8086": {
|
|
3563
|
+
"source": "Request cancellation at the next payment date, {date}?",
|
|
3564
|
+
"translation": "לבקש ביטול במועד התשלום הבא, {date}?"
|
|
3565
|
+
},
|
|
3566
|
+
"h_cc0e4eda9f22": {
|
|
3567
|
+
"source": "Request cancellation now? Your access can end immediately.",
|
|
3568
|
+
"translation": "לבקש ביטול עכשיו? הגישה שלך עשויה להסתיים מיד."
|
|
3569
|
+
},
|
|
3570
|
+
"h_d60aef23d316": {
|
|
3571
|
+
"source": "Open a subscription from My Subscriptions.",
|
|
3572
|
+
"translation": "פתחו מנוי מתוך המנויים שלי."
|
|
3573
|
+
},
|
|
3574
|
+
"h_ecd7f5c76e70": {
|
|
3575
|
+
"source": "This subscription could not be loaded.",
|
|
3576
|
+
"translation": "לא ניתן לטעון את המנוי."
|
|
3577
|
+
},
|
|
3578
|
+
"h_c8763e04f1f2": {
|
|
3579
|
+
"source": "Your subscription changed. Review the details before canceling.",
|
|
3580
|
+
"translation": "המנוי שלך השתנה. בדקו את הפרטים לפני הביטול."
|
|
3581
|
+
},
|
|
3582
|
+
"h_4fc3530ad6c9": {
|
|
3583
|
+
"source": "Cancellation requested. Refresh to see the latest status.",
|
|
3584
|
+
"translation": "בקשת הביטול נשלחה. רעננו כדי לראות את המצב העדכני."
|
|
3585
|
+
},
|
|
3586
|
+
"h_a2620cbc10f5": {
|
|
3587
|
+
"source": "day",
|
|
3588
|
+
"translation": "יום"
|
|
3589
|
+
},
|
|
3590
|
+
"h_5548ae4f34cb": {
|
|
3591
|
+
"source": "days",
|
|
3592
|
+
"translation": "ימים"
|
|
3593
|
+
},
|
|
3594
|
+
"h_c0ee32d825d6": {
|
|
3595
|
+
"source": "week",
|
|
3596
|
+
"translation": "שבוע"
|
|
3597
|
+
},
|
|
3598
|
+
"h_0af64388b588": {
|
|
3599
|
+
"source": "weeks",
|
|
3600
|
+
"translation": "שבועות"
|
|
3601
|
+
},
|
|
3602
|
+
"h_021710fa7866": {
|
|
3603
|
+
"source": "month",
|
|
3604
|
+
"translation": "חודש"
|
|
3605
|
+
},
|
|
3606
|
+
"h_f1494311e45e": {
|
|
3607
|
+
"source": "months",
|
|
3608
|
+
"translation": "חודשים"
|
|
3609
|
+
},
|
|
3610
|
+
"h_4ff0b1538469": {
|
|
3611
|
+
"source": "year",
|
|
3612
|
+
"translation": "שנה"
|
|
3613
|
+
},
|
|
3614
|
+
"h_e21ee77d5009": {
|
|
3615
|
+
"source": "years",
|
|
3616
|
+
"translation": "שנים"
|
|
3617
|
+
},
|
|
3618
|
+
"h_96f608c16cef": {
|
|
3619
|
+
"source": "Pending",
|
|
3620
|
+
"translation": "ממתין"
|
|
3621
|
+
},
|
|
3622
|
+
"h_c7dfb6f1d9c5": {
|
|
3623
|
+
"source": "Paused",
|
|
3624
|
+
"translation": "מושהה"
|
|
3625
|
+
},
|
|
3626
|
+
"h_3a8de059a4c1": {
|
|
3627
|
+
"source": "Pending payment",
|
|
3628
|
+
"translation": "ממתין לתשלום"
|
|
3629
|
+
},
|
|
3630
|
+
"h_c3e839df6084": {
|
|
3631
|
+
"source": "Online",
|
|
3632
|
+
"translation": "מקוון"
|
|
3633
|
+
},
|
|
3634
|
+
"h_e01fa717bacc": {
|
|
3635
|
+
"source": "Offline",
|
|
3636
|
+
"translation": "לא מקוון"
|
|
3637
|
+
},
|
|
3638
|
+
"h_8d10c693b773": {
|
|
3639
|
+
"source": "External",
|
|
3640
|
+
"translation": "חיצוני"
|
|
3641
|
+
},
|
|
3642
|
+
"h_50cc12f69e8f": {
|
|
3643
|
+
"source": "Unpaid",
|
|
3644
|
+
"translation": "לא שולם"
|
|
3645
|
+
},
|
|
3646
|
+
"h_67c4d0506a44": {
|
|
3647
|
+
"source": "Not applicable",
|
|
3648
|
+
"translation": "לא רלוונטי"
|
|
3649
|
+
},
|
|
3650
|
+
"h_a40d89b298e7": {
|
|
3651
|
+
"source": "Purchase date",
|
|
3652
|
+
"translation": "תאריך רכישה"
|
|
3653
|
+
},
|
|
3654
|
+
"h_ff99f5b5f794": {
|
|
3655
|
+
"source": "Start date",
|
|
3656
|
+
"translation": "תאריך התחלה"
|
|
3657
|
+
},
|
|
3658
|
+
"h_0e55fb3b04e2": {
|
|
3659
|
+
"source": "Payment method",
|
|
3660
|
+
"translation": "אמצעי תשלום"
|
|
3661
|
+
},
|
|
3662
|
+
"h_6c0477b0ed78": {
|
|
3663
|
+
"source": "Last payment status",
|
|
3664
|
+
"translation": "מצב התשלום האחרון"
|
|
3665
|
+
},
|
|
3666
|
+
"h_7939a8affae6": {
|
|
3667
|
+
"source": "Scheduled end",
|
|
3668
|
+
"translation": "מועד סיום מתוכנן"
|
|
3669
|
+
},
|
|
3670
|
+
"h_760205a2fb62": {
|
|
3671
|
+
"source": "One-time payment",
|
|
3672
|
+
"translation": "תשלום חד-פעמי"
|
|
3403
3673
|
}
|
|
3404
3674
|
}
|
|
3405
3675
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { WixPlanOrder, WixPlanPricing } from "@himalaya/wix-pricing-plans";
|
|
2
|
+
import { copyParam, copyTemplate } from "./himi-copy.js";
|
|
3
|
+
import { formatCurrency, formatDateMedium } from "./engine-intl.js";
|
|
4
|
+
|
|
5
|
+
export function planDuration(pricing?: WixPlanPricing): string {
|
|
6
|
+
if (pricing?.singlePaymentUnlimited) return copyParam("plans.unlimited", "Unlimited duration");
|
|
7
|
+
const cycle = pricing?.subscription;
|
|
8
|
+
if (cycle && !cycle.cycleCount) return copyParam("plans.untilCanceled", "Until canceled");
|
|
9
|
+
const duration = cycle?.cycleDuration ?? pricing?.singlePaymentForDuration;
|
|
10
|
+
const count = (duration?.count ?? 0) * (cycle ? cycle.cycleCount ?? 0 : 1);
|
|
11
|
+
const unit = duration?.unit?.toLowerCase().replace(/s$/, "");
|
|
12
|
+
if (!count || !unit) return "";
|
|
13
|
+
const units: Record<string, [string, string]> = { day: ["day", "days"], week: ["week", "weeks"], month: ["month", "months"], year: ["year", "years"] };
|
|
14
|
+
const pair = units[unit];
|
|
15
|
+
if (!pair) return "";
|
|
16
|
+
return copyTemplate("plans.validFor", "Valid for {count} {unit}", { count, unit: copyParam(`plans.${unit}.${count === 1 ? "one" : "other"}`, pair[count === 1 ? 0 : 1]) });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export function orderDate(value?: string): string {
|
|
20
|
+
return value && Number.isFinite(Date.parse(value)) ? formatDateMedium(new Date(value)) : "";
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The purchased order owns its price; today's plan is never a price fallback. */
|
|
24
|
+
export function orderPrice(order: WixPlanOrder): string {
|
|
25
|
+
const cycle = order.currentCycle?.index ?? 1;
|
|
26
|
+
const span = order.pricing?.prices?.find(({ duration }) => {
|
|
27
|
+
const from = duration?.cycleFrom ?? 1;
|
|
28
|
+
return cycle >= from && (!duration?.numberOfCycles || cycle < from + duration.numberOfCycles);
|
|
29
|
+
});
|
|
30
|
+
const currency = order.priceDetails?.currency ?? order.pricing?.currency ?? span?.price?.currency;
|
|
31
|
+
return purchasedMoney(span?.price?.total, span?.price?.currency) || span?.price?.formattedTotal
|
|
32
|
+
|| purchasedMoney(order.priceDetails?.total, order.priceDetails?.currency)
|
|
33
|
+
|| purchasedMoney(order.pricing?.total, order.pricing?.currency)
|
|
34
|
+
|| purchasedMoney(order.priceDetails?.planPrice, currency)
|
|
35
|
+
|| purchasedMoney(order.planPrice, currency);
|
|
36
|
+
}
|
|
37
|
+
function purchasedMoney(value?: string, currency?: string): string {
|
|
38
|
+
return value !== undefined && value !== "" && Number.isFinite(Number(value)) && currency
|
|
39
|
+
? formatCurrency(Number(value), currency) : "";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function orderStatus(order: WixPlanOrder): string {
|
|
43
|
+
const status = order.status ?? "";
|
|
44
|
+
const labels: Record<string, string> = { ACTIVE: "Active", PENDING: "Pending", PAUSED: "Paused", CANCELED: "Canceled", ENDED: "Expired", DRAFT: "Pending payment" };
|
|
45
|
+
return copyParam(`subscriptionDetail.status.${status}`, labels[status] ?? "Status unavailable");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function orderFacts(order: WixPlanOrder): Array<{ id: string; label: string; value: string; positive: boolean; notPositive: boolean }> {
|
|
49
|
+
const payment: Record<string, string> = { ONLINE: "Online", OFFLINE: "Offline", EXTERNAL: "External" };
|
|
50
|
+
const statuses: Record<string, string> = { PAID: "Paid", UNPAID: "Unpaid", FAILED: "Failed", PENDING: "Pending", REFUNDED: "Refunded", NOT_APPLICABLE: "Not applicable" };
|
|
51
|
+
const pairs: Array<[string, string, string]> = [
|
|
52
|
+
["purchaseDate", "Purchase date", orderDate(order.createdDate)],
|
|
53
|
+
["startDate", "Start date", orderDate(order.startDate)],
|
|
54
|
+
["endDate", "End date", orderDate(order.earliestEndDate ?? order.endDate)],
|
|
55
|
+
["paymentMethod", "Payment method", payment[order.type ?? ""] ? copyParam(`subscriptionDetail.payment.${order.type}`, payment[order.type!]) : ""],
|
|
56
|
+
["lastPaymentStatus", "Last payment status", statuses[order.lastPaymentStatus ?? ""] ? copyParam(`subscriptionDetail.paymentStatus.${order.lastPaymentStatus}`, statuses[order.lastPaymentStatus!]) : ""],
|
|
57
|
+
];
|
|
58
|
+
if (order.autoRenewCanceled || order.cancellation?.effectiveAt === "NEXT_PAYMENT_DATE") {
|
|
59
|
+
pairs.push(["scheduledEnd", "Scheduled end", orderDate(order.earliestEndDate ?? order.endDate ?? order.currentCycle?.endedDate)]);
|
|
60
|
+
} else if (order.status === "ACTIVE" && (order.pricing?.subscription ?? order.priceDetails?.subscription) && order.currentCycle?.endedDate) {
|
|
61
|
+
pairs.push(["periodEnd", "Current period ends", orderDate(order.currentCycle.endedDate)]);
|
|
62
|
+
}
|
|
63
|
+
return pairs.filter(([, , value]) => Boolean(value)).map(([id, label, value]) => ({ id, label: copyParam(`subscriptionDetail.${id}`, label), value, positive: id === "lastPaymentStatus" && order.lastPaymentStatus === "PAID", notPositive: id !== "lastPaymentStatus" || order.lastPaymentStatus !== "PAID" }));
|
|
64
|
+
}
|