@hulkapps/app-manager-vue 2.0.5 → 2.0.8

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.
@@ -23023,6 +23023,15 @@ var script$O = {
23023
23023
  console.error(error);
23024
23024
  });
23025
23025
  this.staticContent = data.banners;
23026
+ Object.keys(this.staticContent).map(key => {
23027
+ if (this.staticContent[key].length) {
23028
+ Object.keys(this.staticContent[key]).map(index => {
23029
+ if (this.staticContent[key][index].length) {
23030
+ this.staticContent[key][index] = this.staticContent[key][index][Math.floor(Math.random() * this.staticContent[key][index].length)];
23031
+ }
23032
+ });
23033
+ }
23034
+ });
23026
23035
  }
23027
23036
 
23028
23037
  };
@@ -23065,7 +23074,7 @@ var __vue_staticRenderFns__$M = [];
23065
23074
  const __vue_inject_styles__$O = undefined;
23066
23075
  /* scoped */
23067
23076
 
23068
- const __vue_scope_id__$O = "data-v-567642a6";
23077
+ const __vue_scope_id__$O = "data-v-5bb9ba8a";
23069
23078
  /* module identifier */
23070
23079
 
23071
23080
  const __vue_module_identifier__$O = undefined;
@@ -41902,10 +41911,6 @@ var script$1 = {
41902
41911
  }
41903
41912
  }
41904
41913
 
41905
- if (plans.length === 0) {
41906
- this.selectedPlan = 'annually';
41907
- }
41908
-
41909
41914
  return plans;
41910
41915
  },
41911
41916
 
@@ -41918,10 +41923,6 @@ var script$1 = {
41918
41923
  }
41919
41924
  }
41920
41925
 
41921
- if (plans.length === 0) {
41922
- this.selectedPlan = 'monthly';
41923
- }
41924
-
41925
41926
  return plans;
41926
41927
  }
41927
41928
 
@@ -41951,6 +41952,7 @@ var script$1 = {
41951
41952
  let lastSlideClassName = '.slide-' + last;
41952
41953
  element = document.querySelector(lastSlideClassName);
41953
41954
  element.classList.add('last-slide');
41955
+ document.querySelector('.VueCarousel-navigation-button.VueCarousel-navigation-prev').style.left = -document.querySelector('.Polaris-ResourceList__ResourceListWrapper.features').offsetWidth + 'px';
41954
41956
  },
41955
41957
 
41956
41958
  activePlanStyle(plan) {
@@ -41988,7 +41990,7 @@ var script$1 = {
41988
41990
 
41989
41991
  calculateDiscountedPrice(plan) {
41990
41992
  if (plan.discount_type === 'percentage') {
41991
- return plan.price - plan.price / plan.discount;
41993
+ return plan.price - plan.price * plan.discount / 100;
41992
41994
  } else if (plan.discount_type === 'amount') {
41993
41995
  return plan.price - plan.discount;
41994
41996
  }
@@ -42035,7 +42037,7 @@ var script$1 = {
42035
42037
  element = document.querySelector('.slide-3');
42036
42038
  element.classList.add('last-slide');
42037
42039
  document.querySelector('.VueCarousel-navigation-button.VueCarousel-navigation-prev').style.left = -document.querySelector('.Polaris-ResourceList__ResourceListWrapper.features').offsetWidth + 'px';
42038
- }, 500);
42040
+ }, 400);
42039
42041
  },
42040
42042
 
42041
42043
  headerClasses(firstColumn) {
@@ -42083,13 +42085,17 @@ var script$1 = {
42083
42085
  },
42084
42086
 
42085
42087
  created() {
42086
- setTimeout(function () {
42088
+ let initializeSliderComponent = setInterval(() => {
42087
42089
  let element = document.querySelector('.slide-0');
42088
- element.classList.add('first-slide');
42089
- element = document.querySelector('.slide-3');
42090
- element.classList.add('last-slide');
42091
- document.querySelector('.VueCarousel-navigation-button.VueCarousel-navigation-prev').style.left = -document.querySelector('.Polaris-ResourceList__ResourceListWrapper.features').offsetWidth + 'px';
42092
- }, 500);
42090
+
42091
+ if (element) {
42092
+ element.classList.add('first-slide');
42093
+ element = document.querySelector('.slide-3');
42094
+ element.classList.add('last-slide');
42095
+ document.querySelector('.VueCarousel-navigation-button.VueCarousel-navigation-prev').style.left = -document.querySelector('.Polaris-ResourceList__ResourceListWrapper.features').offsetWidth + 'px';
42096
+ clearInterval(initializeSliderComponent);
42097
+ }
42098
+ }, 100);
42093
42099
  }
42094
42100
 
42095
42101
  };
@@ -42230,7 +42236,7 @@ var __vue_render__$1 = function () {
42230
42236
  "margin-top": "5px",
42231
42237
  "font-size": "17px"
42232
42238
  }
42233
- }, [_vm._v("/" + _vm._s("mo"))])], 1), _vm._v(" "), _c('p', {
42239
+ }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1), _vm._v(" "), _c('p', {
42234
42240
  staticStyle: {
42235
42241
  "display": "flex",
42236
42242
  "margin-top": "7px"
@@ -42246,7 +42252,7 @@ var __vue_render__$1 = function () {
42246
42252
  "margin-top": "3px",
42247
42253
  "font-size": "14px"
42248
42254
  }
42249
- }, [_vm._v("/" + _vm._s("mo"))])], 1)]) : _c('div', [_c('p', {
42255
+ }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)]) : _c('div', [_c('p', {
42250
42256
  staticStyle: {
42251
42257
  "display": "flex",
42252
42258
  "margin-top": "10px"
@@ -42261,12 +42267,12 @@ var __vue_render__$1 = function () {
42261
42267
  "margin-top": "5px",
42262
42268
  "font-size": "17px"
42263
42269
  }
42264
- }, [_vm._v("/" + _vm._s("mo"))])], 1)])]), _vm._v(" "), _c('div', [plan.features ? _c('ul', [_vm._l(_vm.features, function (feature, key) {
42270
+ }, [_vm._v("/" + _vm._s(_vm.selectedPlan === 'monthly' ? "mo" : "year"))])], 1)])]), _vm._v(" "), _c('div', [_c('ul', [_vm._l(_vm.features, function (feature, key) {
42265
42271
  return _c('li', {
42266
42272
  key: key,
42267
42273
  class: _vm.activePlanClass(plan),
42268
42274
  style: _vm.activePlanStyle(plan)
42269
- }, [_c('div', [plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
42275
+ }, [_c('div', [plan.features && plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
42270
42276
  attrs: {
42271
42277
  "color": "success",
42272
42278
  "source": "TickMinor"
@@ -42309,8 +42315,26 @@ var __vue_render__$1 = function () {
42309
42315
  "full-width": "",
42310
42316
  "pressed": true
42311
42317
  }
42312
- }, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")])], 1)], 2) : _vm._e()])]);
42313
- })], 2)]], 2)], 1)], 1);
42318
+ }, [_vm._v("\n " + _vm._s('Not applicable') + "\n ")])], 1)], 2)])]);
42319
+ })], 2)]], 2), _vm._v(" "), _c('PlanBanners')], 1), _vm._v(" "), _vm.onboard && !_vm.shop.has_plan ? _c('PStack', {
42320
+ staticClass: "choose-plan-btn",
42321
+ attrs: {
42322
+ "alignment": "center",
42323
+ "distribution": "center",
42324
+ "vertical": ""
42325
+ }
42326
+ }, [_c('PStackItem', {
42327
+ attrs: {
42328
+ "fill": ""
42329
+ }
42330
+ }, [_c('PButton', {
42331
+ attrs: {
42332
+ "plain": ""
42333
+ },
42334
+ on: {
42335
+ "click": _vm.activePlan
42336
+ }
42337
+ }, [_vm._v(_vm._s('I will choose the plan later'))])], 1)], 1) : _vm._e()], 1);
42314
42338
  };
42315
42339
 
42316
42340
  var __vue_staticRenderFns__$1 = [];
@@ -42318,7 +42342,7 @@ var __vue_staticRenderFns__$1 = [];
42318
42342
 
42319
42343
  const __vue_inject_styles__$1 = function (inject) {
42320
42344
  if (!inject) return;
42321
- inject("data-v-c63f9d9e_0", {
42345
+ inject("data-v-9f706e68_0", {
42322
42346
  source: "@import url(https://fonts.googleapis.com/css2?family=Satisfy&display=swap);.app-manager .app-manager-plan-page ul{list-style:none;margin:0;padding:0}.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li,.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li,.app-manager .app-manager-plan-page .plan__price{padding:16px 16px 16px 20px}.app-manager .app-manager-plan-page .Polaris-Layout.custom-plan .VueCarousel .plan__price,.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li:not(:last-child),.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li{border-top:1px solid #ddd;border-right:1px solid #ddd;background:#fff}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li{border-right:none;border-left:1px solid #ddd}.app-manager .app-manager-plan-page .plan__price{min-height:121px}.app-manager .app-manager-plan-page .Polaris-Layout__Section .VueCarousel-slide li:nth-last-child(2),.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom:1px solid #ddd}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:first-child{border-top-left-radius:12px}.app-manager .app-manager-plan-page .Polaris-ResourceList__ResourceListWrapper.features li:last-child{border-bottom-left-radius:12px}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.first-slide ul li:not(:last-child){border-left:1px solid #ddd}.app-manager .app-manager-plan-page .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 .VueCarousel-inner .VueCarousel-slide.last-slide ul li:nth-last-child(2){border-bottom-right-radius:12px}.app-manager .app-manager-plan-page .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 .VueCarousel-inner .VueCarousel-slide.last-slide{border-top-right-radius:12px}.app-manager .app-manager-plan-page .VueCarousel-inner .VueCarousel-slide.first-slide{border-top-left-radius:12px}.app-manager .app-manager-plan-page .VueCarousel .VueCarousel-inner li{text-align:center}.app-manager .app-manager-plan-page .VueCarousel-navigation-button{color:#257f60}",
42323
42347
  map: undefined,
42324
42348
  media: undefined
@@ -42374,15 +42398,15 @@ var __vue_render__ = function () {
42374
42398
 
42375
42399
  var _c = _vm._self._c || _h;
42376
42400
 
42377
- return _vm.group_plan ? _c('AppManagerGroupPlan', {
42401
+ return _vm.group_plan ? _c('AppManagerGroupPlan', _vm._g({
42378
42402
  attrs: {
42379
42403
  "shop_domain": _vm.shop_domain
42380
42404
  }
42381
- }) : _c('AppManagerSliderPlan', {
42405
+ }, _vm.$listeners)) : _c('AppManagerSliderPlan', _vm._g({
42382
42406
  attrs: {
42383
42407
  "shop_domain": _vm.shop_domain
42384
42408
  }
42385
- });
42409
+ }, _vm.$listeners));
42386
42410
  };
42387
42411
 
42388
42412
  var __vue_staticRenderFns__ = [];
@@ -42391,7 +42415,7 @@ var __vue_staticRenderFns__ = [];
42391
42415
  const __vue_inject_styles__ = undefined;
42392
42416
  /* scoped */
42393
42417
 
42394
- const __vue_scope_id__ = "data-v-814861e8";
42418
+ const __vue_scope_id__ = "data-v-592e37e8";
42395
42419
  /* module identifier */
42396
42420
 
42397
42421
  const __vue_module_identifier__ = undefined;