@hulkapps/app-manager-vue 2.3.3 → 2.3.5

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/README.md CHANGED
@@ -25,8 +25,8 @@ Vue.use(AppManager);
25
25
  ```vue
26
26
  <Banners type="header" />
27
27
  <Banners type="footer" />
28
- <AppManagerPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" />
29
- <AppManagerSliderPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" />
28
+ <AppManagerPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" :translations="translations"/>
29
+ <AppManagerSliderPlan @handlePlanSelect="handlePlanSelectListener" :shop_domain="shop_domain" :translations="translations"/>
30
30
  ```
31
31
  The AppManagerPlan component requires a Shop Domain
32
32
 
@@ -40,7 +40,7 @@ The AppManagerPlan component requires a Shop Domain
40
40
 
41
41
  <div id="app" class="app-manager">
42
42
  <Banners type="header" />
43
- <app-manager-plan shop_domain="<%= @store.shopify_domain %>" />
43
+ <app-manager-plan translations="<%= @store.translations %>" shop_domain="<%= @store.shopify_domain %>" />
44
44
  </div>
45
45
 
46
46
  <script>
@@ -22993,6 +22993,10 @@ var script$R = {
22993
22993
  base_url: {
22994
22994
  type: String,
22995
22995
  default: null
22996
+ },
22997
+ translations: {
22998
+ type: Object,
22999
+ default: {}
22996
23000
  }
22997
23001
  },
22998
23002
 
@@ -23024,6 +23028,10 @@ var script$R = {
23024
23028
  var compareDate = new Date(published_on_obj[2] + '/' + published_on_obj[0] + '/' + published_on_obj[1]);
23025
23029
  var isShow = now.getTime() >= compareDate.getTime();
23026
23030
  return isShow;
23031
+ },
23032
+
23033
+ translateMe(message) {
23034
+ return this.$translations.hasOwnProperty(message) ? this.$translations[message] : message;
23027
23035
  }
23028
23036
 
23029
23037
  },
@@ -23047,6 +23055,8 @@ var script$R = {
23047
23055
  },
23048
23056
 
23049
23057
  created() {
23058
+ Vue.prototype.$translations = Object.keys(this.translations).length > 0 ? this.translations : {};
23059
+
23050
23060
  if (this.base_url != null) {
23051
23061
  let config = {
23052
23062
  baseUrl: this.base_url
@@ -23074,7 +23084,7 @@ var __vue_render__$P = function () {
23074
23084
  attrs: {
23075
23085
  "id": "static-content-header-" + key,
23076
23086
  "status": header.status,
23077
- "title": header.title
23087
+ "title": _vm.translateMe(header.title)
23078
23088
  },
23079
23089
  on: {
23080
23090
  "dismiss": function () {
@@ -23083,7 +23093,7 @@ var __vue_render__$P = function () {
23083
23093
  }
23084
23094
  }, [_c('span', {
23085
23095
  domProps: {
23086
- "innerHTML": _vm._s(header.content)
23096
+ "innerHTML": _vm._s(_vm.translateMe(header.content))
23087
23097
  }
23088
23098
  })]) : _vm._e();
23089
23099
  }), 1) : _vm._e();
@@ -23095,7 +23105,7 @@ var __vue_staticRenderFns__$P = [];
23095
23105
  const __vue_inject_styles__$R = undefined;
23096
23106
  /* scoped */
23097
23107
 
23098
- const __vue_scope_id__$R = "data-v-d8ccb5a2";
23108
+ const __vue_scope_id__$R = "data-v-49ba32ba";
23099
23109
  /* module identifier */
23100
23110
 
23101
23111
  const __vue_module_identifier__$R = undefined;
@@ -23134,6 +23144,12 @@ var script$Q = {
23134
23144
  return this.staticContent['plans'];
23135
23145
  }
23136
23146
 
23147
+ },
23148
+ methods: {
23149
+ translateMe(message) {
23150
+ return this.$translations.hasOwnProperty(message) ? this.$translations[message] : message;
23151
+ }
23152
+
23137
23153
  },
23138
23154
 
23139
23155
  async mounted() {
@@ -23184,11 +23200,11 @@ var __vue_render__$O = function () {
23184
23200
  }
23185
23201
  }, [_c('div', {
23186
23202
  domProps: {
23187
- "innerHTML": _vm._s(staticContent.content)
23203
+ "innerHTML": _vm._s(_vm.translateMe(staticContent.content))
23188
23204
  }
23189
23205
  })]) : _c('div', {
23190
23206
  domProps: {
23191
- "innerHTML": _vm._s(staticContent.content)
23207
+ "innerHTML": _vm._s(_vm.translateMe(staticContent.content))
23192
23208
  }
23193
23209
  })], 1);
23194
23210
  }), 0) : _vm._e();
@@ -23200,7 +23216,7 @@ var __vue_staticRenderFns__$O = [];
23200
23216
  const __vue_inject_styles__$Q = undefined;
23201
23217
  /* scoped */
23202
23218
 
23203
- const __vue_scope_id__$Q = "data-v-ac88498c";
23219
+ const __vue_scope_id__$Q = "data-v-3cd406fa";
23204
23220
  /* module identifier */
23205
23221
 
23206
23222
  const __vue_module_identifier__$Q = undefined;
@@ -23238,6 +23254,12 @@ var script$P = {
23238
23254
  return this.staticContent['yearlyPlanPromotions'];
23239
23255
  }
23240
23256
 
23257
+ },
23258
+ methods: {
23259
+ translateMe(message) {
23260
+ return this.$translations.hasOwnProperty(message) ? this.$translations[message] : message;
23261
+ }
23262
+
23241
23263
  },
23242
23264
 
23243
23265
  async mounted() {
@@ -23290,7 +23312,7 @@ var __vue_render__$N = function () {
23290
23312
  "slot": "default"
23291
23313
  },
23292
23314
  slot: "default"
23293
- }, [_vm._v(_vm._s('Annually'))])]);
23315
+ }, [_vm._v(_vm._s(_vm.translateMe('Annually')))])]);
23294
23316
  };
23295
23317
 
23296
23318
  var __vue_staticRenderFns__$N = [];
@@ -23299,7 +23321,7 @@ var __vue_staticRenderFns__$N = [];
23299
23321
  const __vue_inject_styles__$P = undefined;
23300
23322
  /* scoped */
23301
23323
 
23302
- const __vue_scope_id__$P = "data-v-6baa003e";
23324
+ const __vue_scope_id__$P = "data-v-5ec6f95c";
23303
23325
  /* module identifier */
23304
23326
 
23305
23327
  const __vue_module_identifier__$P = undefined;
@@ -41663,10 +41685,10 @@ var script$2 = {
41663
41685
  },
41664
41686
 
41665
41687
  headings() {
41666
- let headings = ['Plans & Features'];
41688
+ let headings = [this.translateMe('Plans & Features')];
41667
41689
  this.plans.forEach(plan => {
41668
41690
  let heading = plan.name;
41669
- if (plan.price > 0) heading += ` ($${plan.price}/mo)`;
41691
+ if (plan.price > 0) heading += ` ($${plan.price}/` + this.translateMe('mo') + ')';
41670
41692
  headings.push(heading);
41671
41693
  });
41672
41694
  return headings;
@@ -41698,6 +41720,10 @@ var script$2 = {
41698
41720
 
41699
41721
  },
41700
41722
  methods: {
41723
+ translateMe(message) {
41724
+ return this.$translations.hasOwnProperty(message) ? this.$translations[message] : message;
41725
+ },
41726
+
41701
41727
  activePlanStyle(plan) {
41702
41728
  return [plan.shopify_plans.includes(this.shop.shopify_plan) || !plan.store_base_plan ? {
41703
41729
  backgroundColor: '#f0f8f5',
@@ -41718,17 +41744,17 @@ var script$2 = {
41718
41744
  if (feature.format === 'percentage') {
41719
41745
  return `${feature.value}%`;
41720
41746
  } else if (feature.format === 'count') {
41721
- return feature.value < 0 ? `Unlimited` : feature.value;
41747
+ return feature.value < 0 ? this.translateMe(`Unlimited`) : feature.value;
41722
41748
  } else return feature.value;
41723
41749
  } else if ((feature === null || feature === void 0 ? void 0 : feature.value_type) === 'array') {
41724
41750
  let values = JSON.parse(feature.value);
41725
41751
  let that = this;
41726
41752
  values = values.map(function (value) {
41727
- return that.featureValues[feature.feature_id][value];
41753
+ return that.translateMe(that.featureValues[feature.feature_id][value]);
41728
41754
  });
41729
41755
  return values.join(', ');
41730
41756
  } else if ((feature === null || feature === void 0 ? void 0 : feature.value_type) === 'string') {
41731
- return feature.value.replace('"', '').replace('"', '');
41757
+ return this.translateMe(feature.value.replace('"', '').replace('"', ''));
41732
41758
  }
41733
41759
  },
41734
41760
 
@@ -41855,7 +41881,7 @@ var script$2 = {
41855
41881
  this.plans = (_this$plans = this.plans) === null || _this$plans === void 0 ? void 0 : _this$plans.sort((planA, planB) => parseFloat(planA.price) - parseFloat(planB.price));
41856
41882
 
41857
41883
  if (this.plans[0].store_base_plan) {
41858
- this.subtitleContent = 'App plans are based on your existing shopify plan';
41884
+ this.subtitleContent = this.translateMe('App plans are based on your existing shopify plan');
41859
41885
  }
41860
41886
 
41861
41887
  this.plan = data.plan;
@@ -41928,7 +41954,7 @@ var __vue_render__$2 = function () {
41928
41954
 
41929
41955
  return _vm.planLoading ? _c('PSkeletonPage', {
41930
41956
  attrs: {
41931
- "title": "Plans",
41957
+ "title": _vm.translateMe('Plans'),
41932
41958
  "fullWidth": false,
41933
41959
  "primaryAction": "",
41934
41960
  "secondaryActions": 2,
@@ -41992,13 +42018,13 @@ var __vue_render__$2 = function () {
41992
42018
  }
41993
42019
  }, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
41994
42020
  attrs: {
41995
- "heading": "No Plans",
42021
+ "heading": _vm.translateMe('No Plans'),
41996
42022
  "image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
41997
42023
  }
41998
42024
  }) : _c('PPage', {
41999
42025
  staticClass: "app-manager-plan-page custom-title",
42000
42026
  attrs: {
42001
- "title": "Plans",
42027
+ "title": _vm.translateMe('Plans'),
42002
42028
  "subtitle": _vm.subtitleContent
42003
42029
  }
42004
42030
  }, [_c('PStack', {
@@ -42031,7 +42057,7 @@ var __vue_render__$2 = function () {
42031
42057
  "slot": "default"
42032
42058
  },
42033
42059
  slot: "default"
42034
- }, [_vm._v(_vm._s('Monthly'))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
42060
+ }, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
42035
42061
  style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
42036
42062
  attrs: {
42037
42063
  "primary": _vm.selectedPlan === 'annually'
@@ -42065,7 +42091,7 @@ var __vue_render__$2 = function () {
42065
42091
  "visibility": "hidden",
42066
42092
  "border": "0 !important"
42067
42093
  }
42068
- }, [_c('b', [_vm._v(_vm._s('features'))])]), _vm._v(" "), _vm._l(_vm.monthlyPlan, function (plan, key) {
42094
+ }, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.monthlyPlan, function (plan, key) {
42069
42095
  return [_c('PDataTableCol', {
42070
42096
  class: {
42071
42097
  'first-column': key === 0,
@@ -42077,7 +42103,7 @@ var __vue_render__$2 = function () {
42077
42103
  staticStyle: {
42078
42104
  "font-size": "16px"
42079
42105
  }
42080
- }, [_vm._v(_vm._s(plan.name))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42106
+ }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42081
42107
  staticStyle: {
42082
42108
  "display": "flex",
42083
42109
  "margin-top": "10px"
@@ -42087,7 +42113,7 @@ var __vue_render__$2 = function () {
42087
42113
  "font-size": "25px",
42088
42114
  "font-weight": "700"
42089
42115
  }
42090
- }, [_vm._v("Free")])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42116
+ }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42091
42117
  staticStyle: {
42092
42118
  "display": "flex",
42093
42119
  "margin-top": "10px"
@@ -42102,7 +42128,7 @@ var __vue_render__$2 = function () {
42102
42128
  "margin-top": "5px",
42103
42129
  "font-size": "17px"
42104
42130
  }
42105
- }, [_vm._v("/" + _vm._s("mo"))])], 1), _vm._v(" "), _c('p', {
42131
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
42106
42132
  staticStyle: {
42107
42133
  "display": "flex",
42108
42134
  "margin-top": "7px"
@@ -42118,7 +42144,7 @@ var __vue_render__$2 = function () {
42118
42144
  "margin-top": "3px",
42119
42145
  "font-size": "14px"
42120
42146
  }
42121
- }, [_vm._v("/" + _vm._s("mo"))])], 1)]) : _c('div', [_c('p', {
42147
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)]) : _c('div', [_c('p', {
42122
42148
  staticStyle: {
42123
42149
  "display": "flex",
42124
42150
  "margin-top": "10px"
@@ -42133,7 +42159,7 @@ var __vue_render__$2 = function () {
42133
42159
  "margin-top": "5px",
42134
42160
  "font-size": "17px"
42135
42161
  }
42136
- }, [_vm._v("/" + _vm._s("mo"))])], 1)])])];
42162
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)])])];
42137
42163
  })], 2) : _c('PDataTableRow', [_c('PDataTableCol', {
42138
42164
  staticClass: "plan-heading",
42139
42165
  staticStyle: {
@@ -42141,7 +42167,7 @@ var __vue_render__$2 = function () {
42141
42167
  "visibility": "hidden",
42142
42168
  "border": "0 !important"
42143
42169
  }
42144
- }, [_c('b', [_vm._v(_vm._s('features'))])]), _vm._v(" "), _vm._l(_vm.yearlyPlan, function (plan, key) {
42170
+ }, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.yearlyPlan, function (plan, key) {
42145
42171
  return [_c('PDataTableCol', {
42146
42172
  class: {
42147
42173
  'first-column': key === 0,
@@ -42153,7 +42179,7 @@ var __vue_render__$2 = function () {
42153
42179
  staticStyle: {
42154
42180
  "font-size": "16px"
42155
42181
  }
42156
- }, [_vm._v(_vm._s(plan.name))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42182
+ }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42157
42183
  staticStyle: {
42158
42184
  "display": "flex",
42159
42185
  "margin-top": "10px"
@@ -42163,7 +42189,7 @@ var __vue_render__$2 = function () {
42163
42189
  "font-size": "25px",
42164
42190
  "font-weight": "700"
42165
42191
  }
42166
- }, [_vm._v("Free")])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42192
+ }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42167
42193
  staticStyle: {
42168
42194
  "display": "flex",
42169
42195
  "margin-top": "10px"
@@ -42178,7 +42204,7 @@ var __vue_render__$2 = function () {
42178
42204
  "margin-top": "5px",
42179
42205
  "font-size": "17px"
42180
42206
  }
42181
- }, [_vm._v("/" + _vm._s("year"))])], 1), _vm._v(" "), _c('p', {
42207
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
42182
42208
  staticStyle: {
42183
42209
  "display": "flex",
42184
42210
  "margin-top": "7px"
@@ -42194,7 +42220,7 @@ var __vue_render__$2 = function () {
42194
42220
  "margin-top": "3px",
42195
42221
  "font-size": "14px"
42196
42222
  }
42197
- }, [_vm._v("/" + _vm._s("year"))])], 1)]) : _c('div', [_c('p', {
42223
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)]) : _c('div', [_c('p', {
42198
42224
  staticStyle: {
42199
42225
  "display": "flex",
42200
42226
  "margin-top": "10px"
@@ -42209,7 +42235,7 @@ var __vue_render__$2 = function () {
42209
42235
  "margin-top": "5px",
42210
42236
  "font-size": "17px"
42211
42237
  }
42212
- }, [_vm._v("/" + _vm._s("year"))])], 1)])])];
42238
+ }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)])])];
42213
42239
  })], 2)], 1), _vm._v(" "), _c('template', {
42214
42240
  slot: "body"
42215
42241
  }, [_vm._l(_vm.featuresByGroup, function (featureGroup, groupKey) {
@@ -42220,12 +42246,12 @@ var __vue_render__$2 = function () {
42220
42246
  attrs: {
42221
42247
  "colspan": _vm.selectedPlan === 'monthly' ? _vm.monthlyPlan.length + 1 : _vm.yearlyPlan.length + 1
42222
42248
  }
42223
- }, [_vm._v(_vm._s(groupKey))])], 1) : _vm._e(), _vm._v(" "), _vm._l(featureGroup, function (feature, rIndex) {
42249
+ }, [_vm._v(_vm._s(_vm.translateMe(groupKey)))])], 1) : _vm._e(), _vm._v(" "), _vm._l(featureGroup, function (feature, rIndex) {
42224
42250
  return _c('PDataTableRow', {
42225
42251
  key: "row-" + (rIndex + groupKey)
42226
42252
  }, [_c('PDataTableCol', {
42227
42253
  class: "feature__type__" + feature.value_type + " feature__class"
42228
- }, [_vm._v(_vm._s(feature.name))]), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
42254
+ }, [_vm._v(_vm._s(_vm.translateMe(feature.name)))]), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
42229
42255
  return _c('PDataTableCol', {
42230
42256
  key: "cell-" + cIndex + "-row-" + rIndex,
42231
42257
  class: "feature__type__" + feature.value_type,
@@ -42240,7 +42266,7 @@ var __vue_render__$2 = function () {
42240
42266
  "color": "subdued",
42241
42267
  "source": "MinusMinor"
42242
42268
  }
42243
- })] : [plan.features[feature.uuid] ? _c('span', [_vm._v(_vm._s(_vm.format(plan.features[feature.uuid])))]) : _c('PIcon', {
42269
+ })] : [plan.features[feature.uuid] ? _c('span', [_vm._v(_vm._s(_vm.translateMe(_vm.format(plan.features[feature.uuid]))))]) : _c('PIcon', {
42244
42270
  attrs: {
42245
42271
  "color": "subdued",
42246
42272
  "source": "MinusMinor"
@@ -42267,7 +42293,7 @@ var __vue_render__$2 = function () {
42267
42293
  "full-width": "",
42268
42294
  "pressed": _vm.isCurrentPlan(plan)
42269
42295
  }
42270
- }, [_vm._v("\n " + _vm._s('Current Plan') + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
42296
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
42271
42297
  class: _vm.planChooseButtonClass(plan),
42272
42298
  attrs: {
42273
42299
  "full-width": "",
@@ -42278,17 +42304,17 @@ var __vue_render__$2 = function () {
42278
42304
  plan ? _vm.getPlanUrl(plan) : 'javascript:void';
42279
42305
  }
42280
42306
  }
42281
- }, [_vm._v("\n " + _vm._s('Choose Plan') + "\n ")]) : _c('PButton', {
42307
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
42282
42308
  attrs: {
42283
42309
  "disabled": true,
42284
42310
  "full-width": "",
42285
42311
  "pressed": true
42286
42312
  }
42287
- }, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")]), _vm._v(" "), plan.store_base_plan && _vm.shop.plan && plan.shopify_plans.includes(_vm.shop.shopify_plan) && !_vm.isCurrentPlan(plan) ? _c('PTextContainer', {
42313
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Not applicable')) + "\n ")]), _vm._v(" "), plan.store_base_plan && _vm.shop.plan && plan.shopify_plans.includes(_vm.shop.shopify_plan) && !_vm.isCurrentPlan(plan) ? _c('PTextContainer', {
42288
42314
  staticClass: "footer-note-container"
42289
42315
  }, [plan.store_base_plan && !plan.shopify_plans.includes(_vm.shop.shopify_plan) && !_vm.isCurrentPlan(plan) && !_vm.isSamePlanInOtherInterval(plan) ? _c('PTextStyle', {
42290
42316
  staticClass: "text-break"
42291
- }, [_vm._v("Note: On account of your recent Shopify plan upgrade, you should consider upgrading your current app plan")]) : _vm._e()], 1) : _vm._e()], 1);
42317
+ }, [_vm._v(_vm._s(_vm.translateMe('Note: On account of your recent Shopify plan upgrade, you should consider upgrading your current app plan')))]) : _vm._e()], 1) : _vm._e()], 1);
42292
42318
  })], 2) : _vm._e()], 2)], 2)]], _vm._v(" "), _vm.onboard ? _c('PStack', {
42293
42319
  staticClass: "choose-plan-btn",
42294
42320
  attrs: {
@@ -42307,7 +42333,7 @@ var __vue_render__$2 = function () {
42307
42333
  on: {
42308
42334
  "click": _vm.activePlan
42309
42335
  }
42310
- }, [_vm._v(_vm._s('I will choose the plan later'))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners')], 2)], 1)], 1);
42336
+ }, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners')], 2)], 1)], 1);
42311
42337
  };
42312
42338
 
42313
42339
  var __vue_staticRenderFns__$2 = [];
@@ -42315,7 +42341,7 @@ var __vue_staticRenderFns__$2 = [];
42315
42341
 
42316
42342
  const __vue_inject_styles__$2 = function (inject) {
42317
42343
  if (!inject) return;
42318
- inject("data-v-b297faf0_0", {
42344
+ inject("data-v-13e88eae_0", {
42319
42345
  source: "@import url(https://fonts.googleapis.com/css2?family=Satisfy&display=swap);.app-manager .app-manager-plan-page .plan-table td:last-child>[data-v-5a078dbb],.app-manager .app-manager-plan-page .plan-table td:last-child>[data-v-7d902277]{float:none}.app-manager .app-manager-plan-page .active{background:#f0f8f5}.app-manager .app-manager-plan-page .plan-table td:last-child>[data-v-0d1b0d63]{float:none}.app-manager .app-manager-plan-page .plan-table td{border:.01px solid #ececee!important;border-collapse:collapse!important}.app-manager .app-manager-plan-page .plan-table .Polaris-DataTable__ScrollContainer{border-radius:12px;overflow:visible}.app-manager .app-manager-plan-page .plan-table table{border-collapse:collapse!important}.app-manager .app-manager-plan-page .custom-plan table{border-collapse:collapse!important}.app-manager .app-manager-plan-page .custom-plan table thead .first-column{border-radius:12px 0 0 0;border-top:0!important;border-left:0!important}.app-manager .app-manager-plan-page .custom-plan table thead .plan-heading.last-column{text-align:left!important;border-radius:0 12px 0 0;border-top:0!important}.app-manager .app-manager-plan-page .custom-plan table thead .plan-heading{background-color:#fff;box-shadow:rgba(23,24,24,.05) 1px 0 8px,rgba(0,0,0,.15) 0 0 2px}.app-manager .app-manager-plan-page .custom-plan table tbody tr:first-child{background-color:#fff;box-shadow:0 0 5px rgba(23,24,24,.05),0 1px 2px rgba(0,0,0,.15);border-radius:12px 0 0 0;overflow:hidden}.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:first-child:last-child){background-color:#fff;overflow:hidden}.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:first-child:last-child){background-color:#fff;box-shadow:0 0 5px rgba(23,24,24,.05),0 1px 2px rgba(0,0,0,.15);overflow:hidden}.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:nth-last-child(2)){background-color:#fff;overflow:hidden}.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:nth-last-child(2)){border-bottom:0}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child{border-bottom:0;background-color:transparent!important;box-shadow:none!important}.app-manager .app-manager-plan-page .custom-plan table tbody tr:not(:last-child){pointer-events:none}.app-manager .app-manager-plan-page .custom-plan table thead tr td{pointer-events:none}.app-manager .app-manager-plan-page .custom-plan table tbody tr:first-child td:first-child{overflow:hidden;border-radius:12px 0 0 0}.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2){overflow:hidden;border-bottom-right-radius:12px;border-bottom-left-radius:12px}.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:first-child{overflow:hidden;border-bottom:0!important;border-radius:0 0 0 12px}.app-manager .app-manager-plan-page .custom-plan table tbody tr:nth-last-child(2) td:last-child{overflow:hidden;border-radius:0 0 12px}.app-manager .app-manager-plan-page .custom-plan table tbody tr td:first-child{border-left:0!important;border-top:0!important;padding-left:20px}.app-manager .app-manager-plan-page .custom-plan table tbody tr td:last-child{border-right:0!important;border-bottom:0!important;text-align:center!important}.app-manager .app-manager-plan-page .custom-plan table thead tr td:last-child{border-right:0!important;border-bottom:0!important;text-align:center!important}.app-manager .app-manager-plan-page .custom-plan table tbody td:not(:first-child){text-align:center!important}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:last-child{background:0 0;border-radius:0 0 12px 0}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td{border:0!important;background:0 0}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:hover{border:0!important;background:0 0}.app-manager .app-manager-plan-page .custom-plan tbody tr:last-child td.Polaris-DataTable__Cell--verticalAlignTop{background:0 0!important}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child{background:0 0;opacity:1}.app-manager .app-manager-plan-page .custom-plan table tbody tr:last-child td:first-child{visibility:hidden}.app-manager .app-manager-plan-page .plan-heading{padding-top:30px}.app-manager .app-manager-plan-page .custom-plan .Polaris-Layout__Section{max-width:calc(100% - 2rem)!important}.app-manager .app-manager-plan-page .later-link{text-align:center;clear:both;padding-top:15px}.app-manager .app-manager-plan-page .plan-badge ul{text-align:center;padding-top:2rem;border-top:.1rem solid #e1e3e5}.app-manager .app-manager-plan-page .plan-badge ul li{list-style:none;display:inline-block;padding-right:25px}.app-manager .app-manager-plan-page .plan-badge ul li img{max-width:133px}.app-manager .app-manager-plan-page .btn-group .Polaris-ButtonGroup__Item{margin-left:0!important;z-index:unset!important}.app-manager .app-manager-plan-page.custom-title .Polaris-HorizontalDivider{background-color:#e2e3e4}.app-manager .app-manager-plan-page .Polaris-Page__Content hr{border:1px solid #e2e3e4}.app-manager .app-manager-plan-page .app-manager-group-row{background:0 0!important;padding:16px 16px 16px 20px!important}.app-manager .app-manager-plan-page .feature__type__array{vertical-align:middle!important;word-spacing:999px;white-space:pre-line!important}.app-manager .app-manager-plan-page .Polaris-DataTable__Table{table-layout:fixed!important}.app-manager .app-manager-plan-page td{vertical-align:middle!important}.app-manager .app-manager-plan-page td.feature__class{word-wrap:break-word!important;white-space:normal!important}.app-manager .app-manager-plan-page .light-green-cell{background-color:#f0f8f5;color:#257f60}.app-manager .app-manager-plan-page .plan-heading b{overflow-wrap:break-word;word-wrap:break-word;white-space:initial}.app-manager .app-manager-plan-page .custom-choose-button:hover{background:#006e52;border-color:transparent;color:#fff}",
42320
42346
  map: undefined,
42321
42347
  media: undefined
@@ -42447,7 +42473,7 @@ var script$1 = {
42447
42473
  },
42448
42474
 
42449
42475
  headings() {
42450
- let headings = ['Plans & Features'];
42476
+ let headings = [this.translateMe('Plans & Features')];
42451
42477
  this.plans.forEach(plan => {
42452
42478
  let heading = plan.name;
42453
42479
  if (plan.price > 0) heading += ` ($${plan.price}/mo)`;
@@ -42482,6 +42508,10 @@ var script$1 = {
42482
42508
 
42483
42509
  },
42484
42510
  methods: {
42511
+ translateMe(message) {
42512
+ return this.$translations.hasOwnProperty(message) ? this.$translations[message] : message;
42513
+ },
42514
+
42485
42515
  handleNavigationClick($event) {
42486
42516
  const activeSlideIds = [];
42487
42517
  let activeSlides = document.getElementsByClassName('VueCarousel-slide-active');
@@ -42536,17 +42566,17 @@ var script$1 = {
42536
42566
  if (feature.format === 'percentage') {
42537
42567
  return `${feature.value}%`;
42538
42568
  } else if (feature.format === 'count') {
42539
- return feature.value < 0 ? `Unlimited` : feature.value;
42540
- } else return feature.value;
42569
+ return feature.value < 0 ? this.translateMe(`Unlimited`) : feature.value;
42570
+ } else return this.translateMe(feature.value);
42541
42571
  } else if ((feature === null || feature === void 0 ? void 0 : feature.value_type) === 'array') {
42542
42572
  let values = JSON.parse(feature.value);
42543
42573
  let that = this;
42544
42574
  values = values.map(function (value) {
42545
- return that.featureValues[feature.feature_id][value];
42575
+ return that.translateMe(that.featureValues[feature.feature_id][value]);
42546
42576
  });
42547
42577
  return values.join(', ');
42548
42578
  } else if ((feature === null || feature === void 0 ? void 0 : feature.value_type) === 'string') {
42549
- return feature.value.replace('"', '').replace('"', '');
42579
+ return this.translateMe(feature.value.replace('"', '').replace('"', ''));
42550
42580
  }
42551
42581
  },
42552
42582
 
@@ -42710,7 +42740,7 @@ var script$1 = {
42710
42740
  this.plans = (_this$plans = this.plans) === null || _this$plans === void 0 ? void 0 : _this$plans.sort((planA, planB) => parseFloat(planA.price) - parseFloat(planB.price));
42711
42741
 
42712
42742
  if (this.plans[0].store_base_plan) {
42713
- this.subtitleContent = 'App plans are based on your existing shopify plan';
42743
+ this.subtitleContent = this.translateMe('App plans are based on your existing shopify plan');
42714
42744
  }
42715
42745
 
42716
42746
  this.plan = data.plan;
@@ -42843,7 +42873,7 @@ var __vue_render__$1 = function () {
42843
42873
 
42844
42874
  return _vm.planLoading ? _c('PSkeletonPage', {
42845
42875
  attrs: {
42846
- "title": "Plans",
42876
+ "title": _vm.translateMe('Plans'),
42847
42877
  "fullWidth": false,
42848
42878
  "primaryAction": "",
42849
42879
  "secondaryActions": 2,
@@ -42907,13 +42937,13 @@ var __vue_render__$1 = function () {
42907
42937
  }
42908
42938
  }, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
42909
42939
  attrs: {
42910
- "heading": "No Plans",
42940
+ "heading": _vm.translateMe('No Plans'),
42911
42941
  "image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
42912
42942
  }
42913
42943
  }) : _c('PPage', {
42914
42944
  staticClass: "app-manager-plan-page-slider custom-title",
42915
42945
  attrs: {
42916
- "title": "Plans",
42946
+ "title": _vm.translateMe('Plans'),
42917
42947
  "subtitle": _vm.subtitleContent
42918
42948
  }
42919
42949
  }, [_c('PStack', {
@@ -42946,7 +42976,7 @@ var __vue_render__$1 = function () {
42946
42976
  "slot": "default"
42947
42977
  },
42948
42978
  slot: "default"
42949
- }, [_vm._v(_vm._s('Monthly'))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
42979
+ }, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
42950
42980
  style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
42951
42981
  attrs: {
42952
42982
  "primary": _vm.selectedPlan === 'annually'
@@ -42990,7 +43020,7 @@ var __vue_render__$1 = function () {
42990
43020
  staticClass: "Polaris-ResourceList-Item__Content"
42991
43021
  }, [_c('h1', {
42992
43022
  staticClass: "for-price-per-month"
42993
- }, [_c('span', [_vm._v(_vm._s(feature.name))])])])])]);
43023
+ }, [_c('span', [_vm._v(_vm._s(_vm.translateMe(feature.name)))])])])])]);
42994
43024
  }), 0)])], _vm._v(" "), _c('carousel', {
42995
43025
  staticStyle: {
42996
43026
  "width": "70%"
@@ -43021,7 +43051,7 @@ var __vue_render__$1 = function () {
43021
43051
  staticStyle: {
43022
43052
  "font-size": "16px"
43023
43053
  }
43024
- }, [_vm._v(_vm._s(plan.name))]) : _vm._e(), _vm._v(" "), _c('p', {
43054
+ }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), _c('p', {
43025
43055
  staticStyle: {
43026
43056
  "display": "flex",
43027
43057
  "margin-top": "10px"
@@ -43031,11 +43061,11 @@ var __vue_render__$1 = function () {
43031
43061
  "font-size": "25px",
43032
43062
  "font-weight": "700"
43033
43063
  }
43034
- }, [_vm._v("Free")])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
43064
+ }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
43035
43065
  staticStyle: {
43036
43066
  "font-size": "16px"
43037
43067
  }
43038
- }, [_vm._v(_vm._s(plan.name))]), _vm._v(" "), _c('p', {
43068
+ }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43039
43069
  staticStyle: {
43040
43070
  "display": "flex",
43041
43071
  "margin-top": "10px"
@@ -43050,7 +43080,7 @@ var __vue_render__$1 = function () {
43050
43080
  "margin-top": "5px",
43051
43081
  "font-size": "17px"
43052
43082
  }
43053
- }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1), _vm._v(" "), _c('p', {
43083
+ }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
43054
43084
  staticStyle: {
43055
43085
  "display": "flex",
43056
43086
  "margin-top": "7px"
@@ -43066,11 +43096,11 @@ var __vue_render__$1 = function () {
43066
43096
  "margin-top": "3px",
43067
43097
  "font-size": "14px"
43068
43098
  }
43069
- }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)]) : _c('div', [_c('b', {
43099
+ }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)]) : _c('div', [_c('b', {
43070
43100
  staticStyle: {
43071
43101
  "font-size": "16px"
43072
43102
  }
43073
- }, [_vm._v(_vm._s(plan.name))]), _vm._v(" "), _c('p', {
43103
+ }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43074
43104
  staticStyle: {
43075
43105
  "display": "flex",
43076
43106
  "margin-top": "10px"
@@ -43085,7 +43115,7 @@ var __vue_render__$1 = function () {
43085
43115
  "margin-top": "5px",
43086
43116
  "font-size": "17px"
43087
43117
  }
43088
- }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)])]), _vm._v(" "), _c('div', [_c('ul', [_vm._l(_vm.features, function (feature, key) {
43118
+ }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)])]), _vm._v(" "), _c('div', [_c('ul', [_vm._l(_vm.features, function (feature, key) {
43089
43119
  return _c('li', {
43090
43120
  key: key,
43091
43121
  class: feature.value_type + "__type__" + feature.slug + " feature__list feature__type__" + feature.value_type,
@@ -43117,7 +43147,7 @@ var __vue_render__$1 = function () {
43117
43147
  "full-width": "",
43118
43148
  "pressed": _vm.isCurrentPlan(plan)
43119
43149
  }
43120
- }, [_vm._v("\n " + _vm._s('Current Plan') + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
43150
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
43121
43151
  class: _vm.planChooseButtonClass(plan),
43122
43152
  attrs: {
43123
43153
  "full-width": "",
@@ -43128,13 +43158,13 @@ var __vue_render__$1 = function () {
43128
43158
  plan ? _vm.getPlanUrl(plan) : 'javascript:void';
43129
43159
  }
43130
43160
  }
43131
- }, [_vm._v("\n " + _vm._s('Choose Plan') + "\n ")]) : _c('PButton', {
43161
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
43132
43162
  attrs: {
43133
43163
  "disabled": true,
43134
43164
  "full-width": "",
43135
43165
  "pressed": true
43136
43166
  }
43137
- }, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")])], 1)], 2)])]);
43167
+ }, [_vm._v("\n " + _vm._s(_vm.translateMe('Not applicable')) + "\n ")])], 1)], 2)])]);
43138
43168
  })], 2)]], 2)], 1), _vm._v(" "), _vm.onboard ? _c('PStack', {
43139
43169
  staticClass: "choose-plan-btn",
43140
43170
  attrs: {
@@ -43153,7 +43183,7 @@ var __vue_render__$1 = function () {
43153
43183
  on: {
43154
43184
  "click": _vm.activePlan
43155
43185
  }
43156
- }, [_vm._v(_vm._s('I will choose the plan later'))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners')], 1);
43186
+ }, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners')], 1);
43157
43187
  };
43158
43188
 
43159
43189
  var __vue_staticRenderFns__$1 = [];
@@ -43161,7 +43191,7 @@ var __vue_staticRenderFns__$1 = [];
43161
43191
 
43162
43192
  const __vue_inject_styles__$1 = function (inject) {
43163
43193
  if (!inject) return;
43164
- inject("data-v-dd2e95cc_0", {
43194
+ inject("data-v-1207c1e9_0", {
43165
43195
  source: "@import url(https://fonts.googleapis.com/css2?family=Satisfy&display=swap);.app-manager .app-manager-plan-page-slider ul{list-style:none;margin:0;padding:0}.app-manager .app-manager-plan-page-slider .Polaris-Layout__Section .VueCarousel-slide li,.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li,.app-manager .app-manager-plan-page-slider .plan__price{padding:16px 16px 16px 20px}.app-manager .app-manager-plan-page-slider .Polaris-Layout.custom-plan .VueCarousel .plan__price,.app-manager .app-manager-plan-page-slider .Polaris-Layout__Section .VueCarousel-slide li:not(:last-child),.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li{border-top:1px solid #ddd;border-right:1px solid #ddd;background:#fff}.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li{border-right:none;border-left:1px solid #ddd}.app-manager .app-manager-plan-page-slider .Polaris-Layout__Section .VueCarousel-slide li:nth-last-child(2),.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom:1px solid #ddd}.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li:first-child{border-top-left-radius:12px}.app-manager .app-manager-plan-page-slider .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom-left-radius:12px}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.first-slide ul li:not(:last-child){border-left:1px solid #ddd}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.first-slide .plan__price{border-left:1px solid #ddd;box-shadow:none;border-top-left-radius:12px;overflow:hidden}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.last-slide ul li:nth-last-child(2){border-bottom-right-radius:12px}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.last-slide .plan__price{border-right:1px solid #ddd;box-shadow:none;border-top-right-radius:12px;overflow:hidden}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.last-slide{border-top-right-radius:12px}.app-manager .app-manager-plan-page-slider .VueCarousel-inner .VueCarousel-slide.first-slide{border-top-left-radius:12px}.app-manager .app-manager-plan-page-slider .VueCarousel .VueCarousel-inner li{text-align:center}.app-manager .app-manager-plan-page-slider .VueCarousel-navigation-button{color:#257f60}.app-manager .app-manager-plan-page-slider .btn-group .Polaris-ButtonGroup__Item{margin-left:0!important;z-index:unset!important}.app-manager .app-manager-plan-page-slider .feature__list,.app-manager .app-manager-plan-page-slider .feature__type__array{display:flex;align-items:center;word-spacing:999px;justify-content:center}.app-manager .app-manager-plan-page-slider .feature__type__array.feature__class{justify-content:left}.app-manager .app-manager-plan-page-slider .plan-heading b{overflow-wrap:break-word;word-wrap:break-word;white-space:initial}.app-manager .app-manager-plan-page-slider .custom-choose-button:hover{background:#006e52;border-color:transparent;color:#fff}",
43166
43196
  map: undefined,
43167
43197
  media: undefined
@@ -43210,6 +43240,10 @@ var script = {
43210
43240
  host: {
43211
43241
  type: String,
43212
43242
  default: null
43243
+ },
43244
+ translations: {
43245
+ type: Object,
43246
+ default: {}
43213
43247
  }
43214
43248
  },
43215
43249
  methods: {
@@ -43221,6 +43255,8 @@ var script = {
43221
43255
  },
43222
43256
 
43223
43257
  created() {
43258
+ Vue.prototype.$translations = Object.keys(this.translations).length > 0 ? this.translations : {};
43259
+
43224
43260
  if (this.base_url != null) {
43225
43261
  let config = {
43226
43262
  baseUrl: this.base_url
@@ -43267,7 +43303,7 @@ var __vue_staticRenderFns__ = [];
43267
43303
  const __vue_inject_styles__ = undefined;
43268
43304
  /* scoped */
43269
43305
 
43270
- const __vue_scope_id__ = "data-v-3b703eee";
43306
+ const __vue_scope_id__ = "data-v-269d58ce";
43271
43307
  /* module identifier */
43272
43308
 
43273
43309
  const __vue_module_identifier__ = undefined;