@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
|
@@ -266,11 +266,6 @@
|
|
|
266
266
|
"key": "portfolioProject.backCta",
|
|
267
267
|
"translation": "חזרה לפרויקטים"
|
|
268
268
|
},
|
|
269
|
-
"h_075a188de01e": {
|
|
270
|
-
"source": "My Subscriptions",
|
|
271
|
-
"key": "mySubscriptions.title",
|
|
272
|
-
"translation": "המנויים שלי"
|
|
273
|
-
},
|
|
274
269
|
"h_0843353460c6": {
|
|
275
270
|
"source": "My invoices",
|
|
276
271
|
"key": "account.invoicesLink",
|
|
@@ -306,11 +301,6 @@
|
|
|
306
301
|
"translation": "שיתוף",
|
|
307
302
|
"key": "blogPost.shareCta"
|
|
308
303
|
},
|
|
309
|
-
"h_09cb227b060e": {
|
|
310
|
-
"source": "Loading plans...",
|
|
311
|
-
"key": "plans.loadingText",
|
|
312
|
-
"translation": "טוען תוכניות..."
|
|
313
|
-
},
|
|
314
304
|
"h_0a3c313dce38": {
|
|
315
305
|
"source": "Sending reset link…",
|
|
316
306
|
"key": "accountSettings.passwordResetSending",
|
|
@@ -391,11 +381,6 @@
|
|
|
391
381
|
"key": "faq.emptyBody",
|
|
392
382
|
"translation": "עדיין לא פורסמו שאלות."
|
|
393
383
|
},
|
|
394
|
-
"h_12fae6c7c13d": {
|
|
395
|
-
"source": "Compare plans and choose the one that suits you.",
|
|
396
|
-
"key": "plans.subtitle",
|
|
397
|
-
"translation": "אפשר להשוות בין התוכניות ולבחור את המתאימה לך."
|
|
398
|
-
},
|
|
399
384
|
"h_13c95a1bb260": {
|
|
400
385
|
"source": "Login info",
|
|
401
386
|
"key": "accountSettings.loginInfo",
|
|
@@ -1551,11 +1536,6 @@
|
|
|
1551
1536
|
"key": "agenda.viewCourseCta",
|
|
1552
1537
|
"translation": "הצגת הקורס"
|
|
1553
1538
|
},
|
|
1554
|
-
"h_8fde48f31aff": {
|
|
1555
|
-
"source": "Subscription",
|
|
1556
|
-
"key": "subscriptionDetail.chromeTitle",
|
|
1557
|
-
"translation": "מנוי"
|
|
1558
|
-
},
|
|
1559
1539
|
"h_906c19b64116": {
|
|
1560
1540
|
"source": "View my orders on the site",
|
|
1561
1541
|
"key": "orders.onSiteCta",
|
|
@@ -1989,7 +1969,8 @@
|
|
|
1989
1969
|
"h_badd385121c5": {
|
|
1990
1970
|
"source": "View details",
|
|
1991
1971
|
"translation": "צפייה בפרטים",
|
|
1992
|
-
"key": "collection.viewDetails"
|
|
1972
|
+
"key": "collection.viewDetails",
|
|
1973
|
+
"keyOrigin": "string-table"
|
|
1993
1974
|
},
|
|
1994
1975
|
"h_bafb6ef29689": {
|
|
1995
1976
|
"source": "Podcast",
|
|
@@ -2561,11 +2542,6 @@
|
|
|
2561
2542
|
"key": "coupons.unavailableBody",
|
|
2562
2543
|
"translation": "לא ניתן לטעון את ההטבות של האתר הזה."
|
|
2563
2544
|
},
|
|
2564
|
-
"h_f014740803c5": {
|
|
2565
|
-
"source": "Plan details",
|
|
2566
|
-
"key": "planDetail.chromeTitle",
|
|
2567
|
-
"translation": "פרטי התוכנית"
|
|
2568
|
-
},
|
|
2569
2545
|
"h_f059883d1410": {
|
|
2570
2546
|
"source": "Review not found",
|
|
2571
2547
|
"key": "review.notFoundTitle",
|
|
@@ -2631,6 +2607,11 @@
|
|
|
2631
2607
|
"key": "photoAlbum.notFoundBody",
|
|
2632
2608
|
"translation": "האלבום הזה כבר לא זמין."
|
|
2633
2609
|
},
|
|
2610
|
+
"h_f840ac65b3e5": {
|
|
2611
|
+
"source": "Canceled",
|
|
2612
|
+
"translation": "בוטל",
|
|
2613
|
+
"key": "subscriptionDetail.status.CANCELED"
|
|
2614
|
+
},
|
|
2634
2615
|
"h_f8893b912459": {
|
|
2635
2616
|
"source": "Add to cart",
|
|
2636
2617
|
"key": "product.addToCart",
|
|
@@ -2762,6 +2743,11 @@
|
|
|
2762
2743
|
"translation": "תיבת הודעות",
|
|
2763
2744
|
"key": "tab.inbox"
|
|
2764
2745
|
},
|
|
2746
|
+
"h_a733b809d2f1": {
|
|
2747
|
+
"source": "Active",
|
|
2748
|
+
"key": "mySubscriptions.active",
|
|
2749
|
+
"translation": "פעיל"
|
|
2750
|
+
},
|
|
2765
2751
|
"h_35f8f37b92ae": {
|
|
2766
2752
|
"source": "Invoices",
|
|
2767
2753
|
"translation": "חשבוניות",
|
|
@@ -3169,6 +3155,146 @@
|
|
|
3169
3155
|
"translation": "אין אוספים שתואמים לחיפוש.",
|
|
3170
3156
|
"key": "cms.searchEmptyText"
|
|
3171
3157
|
},
|
|
3158
|
+
"h_a689a999a5e6": {
|
|
3159
|
+
"source": "Expired",
|
|
3160
|
+
"key": "mySubscriptions.expired",
|
|
3161
|
+
"translation": "פג תוקף"
|
|
3162
|
+
},
|
|
3163
|
+
"h_0febe76e354b": {
|
|
3164
|
+
"source": "You do not have access to this subscription.",
|
|
3165
|
+
"key": "subscriptionDetail.accessDenied",
|
|
3166
|
+
"translation": "אין לך גישה למנוי הזה."
|
|
3167
|
+
},
|
|
3168
|
+
"h_168ec872ecc7": {
|
|
3169
|
+
"source": "Plan price",
|
|
3170
|
+
"key": "planDetail.planPrice",
|
|
3171
|
+
"translation": "מחיר התוכנית"
|
|
3172
|
+
},
|
|
3173
|
+
"h_3fdb5e335327": {
|
|
3174
|
+
"source": "More Details",
|
|
3175
|
+
"key": "mySubscriptions.moreDetails",
|
|
3176
|
+
"translation": "פרטים נוספים"
|
|
3177
|
+
},
|
|
3178
|
+
"h_5697fd85adbd": {
|
|
3179
|
+
"source": "Subscriptions",
|
|
3180
|
+
"key": "mySubscriptions.title",
|
|
3181
|
+
"translation": "מנויים"
|
|
3182
|
+
},
|
|
3183
|
+
"h_6d7f058cd1f9": {
|
|
3184
|
+
"source": "Cancel subscription",
|
|
3185
|
+
"key": "subscriptionDetail.cancel",
|
|
3186
|
+
"translation": "ביטול המנוי"
|
|
3187
|
+
},
|
|
3188
|
+
"h_6dcd151222c0": {
|
|
3189
|
+
"source": "Send Message",
|
|
3190
|
+
"key": "planDetail.message",
|
|
3191
|
+
"translation": "שליחת הודעה"
|
|
3192
|
+
},
|
|
3193
|
+
"h_8048c6e22689": {
|
|
3194
|
+
"source": "Keep subscription",
|
|
3195
|
+
"key": "subscriptionDetail.keep",
|
|
3196
|
+
"translation": "השארת המנוי"
|
|
3197
|
+
},
|
|
3198
|
+
"h_8cfbc985903e": {
|
|
3199
|
+
"source": "Next payment date",
|
|
3200
|
+
"key": "subscriptionDetail.cancelNextPayment",
|
|
3201
|
+
"translation": "מועד התשלום הבא"
|
|
3202
|
+
},
|
|
3203
|
+
"h_90977a5334eb": {
|
|
3204
|
+
"source": "Confirm cancellation",
|
|
3205
|
+
"key": "subscriptionDetail.confirmCancel",
|
|
3206
|
+
"translation": "אישור הביטול"
|
|
3207
|
+
},
|
|
3208
|
+
"h_92d0286da122": {
|
|
3209
|
+
"source": "Terms and conditions",
|
|
3210
|
+
"key": "planDetail.terms",
|
|
3211
|
+
"translation": "תנאים והגבלות"
|
|
3212
|
+
},
|
|
3213
|
+
"h_9e6d2be10412": {
|
|
3214
|
+
"source": "Pricing Plan",
|
|
3215
|
+
"key": "mySubscriptions.type",
|
|
3216
|
+
"translation": "תוכנית תמחור"
|
|
3217
|
+
},
|
|
3218
|
+
"h_a1ba61405311": {
|
|
3219
|
+
"source": "SUBSCRIPTION DETAILS",
|
|
3220
|
+
"key": "subscriptionDetail.sectionTitle",
|
|
3221
|
+
"translation": "פרטי המנוי"
|
|
3222
|
+
},
|
|
3223
|
+
"h_ac3cff89b598": {
|
|
3224
|
+
"source": "Check back later.",
|
|
3225
|
+
"key": "plans.emptyBody",
|
|
3226
|
+
"translation": "בדקו שוב מאוחר יותר."
|
|
3227
|
+
},
|
|
3228
|
+
"h_b1b85d6dca11": {
|
|
3229
|
+
"source": "Cancel subscription?",
|
|
3230
|
+
"key": "subscriptionDetail.cancelTitle",
|
|
3231
|
+
"translation": "לבטל את המנוי?"
|
|
3232
|
+
},
|
|
3233
|
+
"h_b52174d6f8ee": {
|
|
3234
|
+
"source": "Sign in to see your subscriptions.",
|
|
3235
|
+
"key": "mySubscriptions.guestBody",
|
|
3236
|
+
"translation": "התחברו כדי לראות את המנויים שלכם."
|
|
3237
|
+
},
|
|
3238
|
+
"h_b5cd0764d53b": {
|
|
3239
|
+
"source": "The final price, including taxes, is determined at checkout.",
|
|
3240
|
+
"key": "planDetail.taxNote",
|
|
3241
|
+
"translation": "המחיר הסופי, כולל מיסים, נקבע בעת התשלום."
|
|
3242
|
+
},
|
|
3243
|
+
"h_be063c39a40c": {
|
|
3244
|
+
"source": "View plan benefits",
|
|
3245
|
+
"key": "plans.viewBenefits",
|
|
3246
|
+
"translation": "הצגת הטבות התוכנית"
|
|
3247
|
+
},
|
|
3248
|
+
"h_e3b82040565b": {
|
|
3249
|
+
"source": "Now",
|
|
3250
|
+
"key": "subscriptionDetail.cancelNow",
|
|
3251
|
+
"translation": "עכשיו"
|
|
3252
|
+
},
|
|
3253
|
+
"h_e5a3dc6c4148": {
|
|
3254
|
+
"source": "No plans available",
|
|
3255
|
+
"key": "plans.emptyTitle",
|
|
3256
|
+
"translation": "אין תוכניות זמינות"
|
|
3257
|
+
},
|
|
3258
|
+
"h_e61470df7f9a": {
|
|
3259
|
+
"source": "Browse plans",
|
|
3260
|
+
"key": "mySubscriptions.browsePlans",
|
|
3261
|
+
"translation": "עיון בתוכניות"
|
|
3262
|
+
},
|
|
3263
|
+
"h_26f0f757637b": {
|
|
3264
|
+
"source": "No expired subscriptions",
|
|
3265
|
+
"key": "mySubscriptions.expiredEmpty",
|
|
3266
|
+
"translation": "אין מנויים שפג תוקפם"
|
|
3267
|
+
},
|
|
3268
|
+
"h_2d237a1790e7": {
|
|
3269
|
+
"source": "No active subscriptions",
|
|
3270
|
+
"key": "mySubscriptions.activeEmpty",
|
|
3271
|
+
"translation": "אין מנויים פעילים"
|
|
3272
|
+
},
|
|
3273
|
+
"h_3a59df4808b7": {
|
|
3274
|
+
"source": "Subscriptions are unavailable for this account.",
|
|
3275
|
+
"key": "mySubscriptions.accessDenied",
|
|
3276
|
+
"translation": "המנויים אינם זמינים לחשבון הזה."
|
|
3277
|
+
},
|
|
3278
|
+
"h_87855219fc0e": {
|
|
3279
|
+
"source": "Cancellation requested, but the latest status could not be loaded. Refresh the details.",
|
|
3280
|
+
"key": "subscriptionDetail.cancelRefreshFailed",
|
|
3281
|
+
"translation": "בקשת הביטול נשלחה, אך לא ניתן לטעון את המצב העדכני. רעננו את הפרטים."
|
|
3282
|
+
},
|
|
3283
|
+
"h_c4ec5bbde22f": {
|
|
3284
|
+
"source": "This subscription cannot be canceled from this account. Contact the business for help.",
|
|
3285
|
+
"key": "subscriptionDetail.cancelDenied",
|
|
3286
|
+
"translation": "לא ניתן לבטל את המנוי מהחשבון הזה. פנו לעסק לקבלת עזרה."
|
|
3287
|
+
},
|
|
3288
|
+
"h_f5871873a63a": {
|
|
3289
|
+
"source": "Cancellation failed. Try again.",
|
|
3290
|
+
"key": "subscriptionDetail.cancelFailed",
|
|
3291
|
+
"translation": "ביטול המנוי נכשל. נסו שוב."
|
|
3292
|
+
},
|
|
3293
|
+
"h_c72863dbd9e1": {
|
|
3294
|
+
"source": "Hide plan benefits",
|
|
3295
|
+
"key": "plans.hideBenefits",
|
|
3296
|
+
"translation": "הסתרת הטבות התוכנית"
|
|
3297
|
+
},
|
|
3172
3298
|
"h_03e89418ffdf": {
|
|
3173
3299
|
"source": "Your Home",
|
|
3174
3300
|
"translation": "הבית שלך"
|
|
@@ -3363,7 +3489,7 @@
|
|
|
3363
3489
|
},
|
|
3364
3490
|
"h_09fef5d8d9a3": {
|
|
3365
3491
|
"source": "Failed",
|
|
3366
|
-
"translation": "
|
|
3492
|
+
"translation": "נכשל"
|
|
3367
3493
|
},
|
|
3368
3494
|
"h_7c08f81c17ab": {
|
|
3369
3495
|
"source": "Access paused",
|
|
@@ -3565,6 +3691,10 @@
|
|
|
3565
3691
|
"source": "Booking Closed",
|
|
3566
3692
|
"translation": "ההרשמה נסגרה"
|
|
3567
3693
|
},
|
|
3694
|
+
"h_8fde48f31aff": {
|
|
3695
|
+
"source": "Subscription",
|
|
3696
|
+
"translation": "מנוי"
|
|
3697
|
+
},
|
|
3568
3698
|
"h_93c54b09342d": {
|
|
3569
3699
|
"source": "This service isn't available for online booking. Contact us to book it.",
|
|
3570
3700
|
"translation": "לא ניתן לקבוע תור לשירות הזה באינטרנט. לקביעת תור יש ליצור איתנו קשר."
|
|
@@ -3798,10 +3928,6 @@
|
|
|
3798
3928
|
"source": "New Post",
|
|
3799
3929
|
"translation": "פוסט חדש"
|
|
3800
3930
|
},
|
|
3801
|
-
"h_f840ac65b3e5": {
|
|
3802
|
-
"source": "Canceled",
|
|
3803
|
-
"translation": "בוטל"
|
|
3804
|
-
},
|
|
3805
3931
|
"h_f85039fd8e49": {
|
|
3806
3932
|
"source": "Confirm new password",
|
|
3807
3933
|
"translation": "אישור הסיסמה החדשה"
|
|
@@ -4202,10 +4328,6 @@
|
|
|
4202
4328
|
"source": "Sign in to see your bookings",
|
|
4203
4329
|
"translation": "יש להתחבר כדי לראות את ההרשמות שלך"
|
|
4204
4330
|
},
|
|
4205
|
-
"h_a733b809d2f1": {
|
|
4206
|
-
"source": "Active",
|
|
4207
|
-
"translation": "פעיל"
|
|
4208
|
-
},
|
|
4209
4331
|
"h_7a7938b5bc22": {
|
|
4210
4332
|
"source": "+{count} more",
|
|
4211
4333
|
"translation": "+ עוד {count}"
|
|
@@ -5884,10 +6006,6 @@
|
|
|
5884
6006
|
"source": "ends {date}",
|
|
5885
6007
|
"translation": "מסתיים ב-{date}"
|
|
5886
6008
|
},
|
|
5887
|
-
"h_a689a999a5e6": {
|
|
5888
|
-
"source": "Expired",
|
|
5889
|
-
"translation": "פג תוקף"
|
|
5890
|
-
},
|
|
5891
6009
|
"h_fc11a5207f42": {
|
|
5892
6010
|
"source": "Code: {code}",
|
|
5893
6011
|
"translation": "קוד: {code}"
|
|
@@ -6847,6 +6965,154 @@
|
|
|
6847
6965
|
"h_cf11de0bfced": {
|
|
6848
6966
|
"source": "Available time",
|
|
6849
6967
|
"translation": "זמן פנוי"
|
|
6968
|
+
},
|
|
6969
|
+
"h_c8214d35a16e": {
|
|
6970
|
+
"source": "Valid until",
|
|
6971
|
+
"translation": "בתוקף עד"
|
|
6972
|
+
},
|
|
6973
|
+
"h_513a2ae3716f": {
|
|
6974
|
+
"source": "Subscriptions could not be loaded.",
|
|
6975
|
+
"translation": "לא ניתן לטעון את המנויים."
|
|
6976
|
+
},
|
|
6977
|
+
"h_071cd4f24599": {
|
|
6978
|
+
"source": "Unlimited duration",
|
|
6979
|
+
"translation": "ללא הגבלת זמן"
|
|
6980
|
+
},
|
|
6981
|
+
"h_7527b5f3de8b": {
|
|
6982
|
+
"source": "Until canceled",
|
|
6983
|
+
"translation": "עד לביטול"
|
|
6984
|
+
},
|
|
6985
|
+
"h_3f28deaf6308": {
|
|
6986
|
+
"source": "Valid for {count} {unit}",
|
|
6987
|
+
"translation": "בתוקף למשך {count} {unit}"
|
|
6988
|
+
},
|
|
6989
|
+
"h_d8fdaaf936d1": {
|
|
6990
|
+
"source": "Current period ends",
|
|
6991
|
+
"translation": "סיום התקופה הנוכחית"
|
|
6992
|
+
},
|
|
6993
|
+
"h_89d10cd6c1e1": {
|
|
6994
|
+
"source": "End date",
|
|
6995
|
+
"translation": "תאריך סיום"
|
|
6996
|
+
},
|
|
6997
|
+
"h_b3b67b1ec371": {
|
|
6998
|
+
"source": "Expired on",
|
|
6999
|
+
"translation": "התוקף פג בתאריך"
|
|
7000
|
+
},
|
|
7001
|
+
"h_d00c682cdd14": {
|
|
7002
|
+
"source": "Your subscription ends on {date}.",
|
|
7003
|
+
"translation": "המנוי שלך יסתיים בתאריך {date}."
|
|
7004
|
+
},
|
|
7005
|
+
"h_d19252fd8086": {
|
|
7006
|
+
"source": "Request cancellation at the next payment date, {date}?",
|
|
7007
|
+
"translation": "לבקש ביטול במועד התשלום הבא, {date}?"
|
|
7008
|
+
},
|
|
7009
|
+
"h_cc0e4eda9f22": {
|
|
7010
|
+
"source": "Request cancellation now? Your access can end immediately.",
|
|
7011
|
+
"translation": "לבקש ביטול עכשיו? הגישה שלך עשויה להסתיים מיד."
|
|
7012
|
+
},
|
|
7013
|
+
"h_d60aef23d316": {
|
|
7014
|
+
"source": "Open a subscription from My Subscriptions.",
|
|
7015
|
+
"translation": "פתחו מנוי מתוך המנויים שלי."
|
|
7016
|
+
},
|
|
7017
|
+
"h_ecd7f5c76e70": {
|
|
7018
|
+
"source": "This subscription could not be loaded.",
|
|
7019
|
+
"translation": "לא ניתן לטעון את המנוי."
|
|
7020
|
+
},
|
|
7021
|
+
"h_c8763e04f1f2": {
|
|
7022
|
+
"source": "Your subscription changed. Review the details before canceling.",
|
|
7023
|
+
"translation": "המנוי שלך השתנה. בדקו את הפרטים לפני הביטול."
|
|
7024
|
+
},
|
|
7025
|
+
"h_4fc3530ad6c9": {
|
|
7026
|
+
"source": "Cancellation requested. Refresh to see the latest status.",
|
|
7027
|
+
"translation": "בקשת הביטול נשלחה. רעננו כדי לראות את המצב העדכני."
|
|
7028
|
+
},
|
|
7029
|
+
"h_a2620cbc10f5": {
|
|
7030
|
+
"source": "day",
|
|
7031
|
+
"translation": "יום"
|
|
7032
|
+
},
|
|
7033
|
+
"h_5548ae4f34cb": {
|
|
7034
|
+
"source": "days",
|
|
7035
|
+
"translation": "ימים"
|
|
7036
|
+
},
|
|
7037
|
+
"h_c0ee32d825d6": {
|
|
7038
|
+
"source": "week",
|
|
7039
|
+
"translation": "שבוע"
|
|
7040
|
+
},
|
|
7041
|
+
"h_0af64388b588": {
|
|
7042
|
+
"source": "weeks",
|
|
7043
|
+
"translation": "שבועות"
|
|
7044
|
+
},
|
|
7045
|
+
"h_021710fa7866": {
|
|
7046
|
+
"source": "month",
|
|
7047
|
+
"translation": "חודש"
|
|
7048
|
+
},
|
|
7049
|
+
"h_f1494311e45e": {
|
|
7050
|
+
"source": "months",
|
|
7051
|
+
"translation": "חודשים"
|
|
7052
|
+
},
|
|
7053
|
+
"h_4ff0b1538469": {
|
|
7054
|
+
"source": "year",
|
|
7055
|
+
"translation": "שנה"
|
|
7056
|
+
},
|
|
7057
|
+
"h_e21ee77d5009": {
|
|
7058
|
+
"source": "years",
|
|
7059
|
+
"translation": "שנים"
|
|
7060
|
+
},
|
|
7061
|
+
"h_96f608c16cef": {
|
|
7062
|
+
"source": "Pending",
|
|
7063
|
+
"translation": "ממתין"
|
|
7064
|
+
},
|
|
7065
|
+
"h_c7dfb6f1d9c5": {
|
|
7066
|
+
"source": "Paused",
|
|
7067
|
+
"translation": "מושהה"
|
|
7068
|
+
},
|
|
7069
|
+
"h_3a8de059a4c1": {
|
|
7070
|
+
"source": "Pending payment",
|
|
7071
|
+
"translation": "ממתין לתשלום"
|
|
7072
|
+
},
|
|
7073
|
+
"h_c3e839df6084": {
|
|
7074
|
+
"source": "Online",
|
|
7075
|
+
"translation": "מקוון"
|
|
7076
|
+
},
|
|
7077
|
+
"h_e01fa717bacc": {
|
|
7078
|
+
"source": "Offline",
|
|
7079
|
+
"translation": "לא מקוון"
|
|
7080
|
+
},
|
|
7081
|
+
"h_8d10c693b773": {
|
|
7082
|
+
"source": "External",
|
|
7083
|
+
"translation": "חיצוני"
|
|
7084
|
+
},
|
|
7085
|
+
"h_50cc12f69e8f": {
|
|
7086
|
+
"source": "Unpaid",
|
|
7087
|
+
"translation": "לא שולם"
|
|
7088
|
+
},
|
|
7089
|
+
"h_67c4d0506a44": {
|
|
7090
|
+
"source": "Not applicable",
|
|
7091
|
+
"translation": "לא רלוונטי"
|
|
7092
|
+
},
|
|
7093
|
+
"h_a40d89b298e7": {
|
|
7094
|
+
"source": "Purchase date",
|
|
7095
|
+
"translation": "תאריך רכישה"
|
|
7096
|
+
},
|
|
7097
|
+
"h_ff99f5b5f794": {
|
|
7098
|
+
"source": "Start date",
|
|
7099
|
+
"translation": "תאריך התחלה"
|
|
7100
|
+
},
|
|
7101
|
+
"h_0e55fb3b04e2": {
|
|
7102
|
+
"source": "Payment method",
|
|
7103
|
+
"translation": "אמצעי תשלום"
|
|
7104
|
+
},
|
|
7105
|
+
"h_6c0477b0ed78": {
|
|
7106
|
+
"source": "Last payment status",
|
|
7107
|
+
"translation": "מצב התשלום האחרון"
|
|
7108
|
+
},
|
|
7109
|
+
"h_7939a8affae6": {
|
|
7110
|
+
"source": "Scheduled end",
|
|
7111
|
+
"translation": "מועד סיום מתוכנן"
|
|
7112
|
+
},
|
|
7113
|
+
"h_760205a2fb62": {
|
|
7114
|
+
"source": "One-time payment",
|
|
7115
|
+
"translation": "תשלום חד-פעמי"
|
|
6850
7116
|
}
|
|
6851
7117
|
}
|
|
6852
7118
|
}
|
|
@@ -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
|
+
}
|