@hulkapps/app-manager-vue 2.4.4 → 2.4.6
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/app-manager-vue.esm.js +45 -906
- package/dist/app-manager-vue.min.js +4 -4
- package/dist/app-manager-vue.ssr.js +64 -925
- package/dist/hulkapps-app-manager.css +1 -1
- package/dist/hulkapps-app-manager.min.css +1 -1
- package/package.json +1 -1
- package/src/components/Plans/AppManagerGroupPlan.vue +53 -43
- package/src/components/Plans/AppManagerPlan.vue +6 -2
- package/src/components/Plans/AppManagerSliderPlan.vue +53 -43
|
@@ -40075,7 +40075,7 @@ var PSkeletonPage = __vue_component__$4;var script$2 = {
|
|
|
40075
40075
|
PSkeletonDisplayText: PSkeletonDisplayText,
|
|
40076
40076
|
PEmptyState: PEmptyState
|
|
40077
40077
|
},
|
|
40078
|
-
props: ['shop_domain', 'host'],
|
|
40078
|
+
props: ['shop_domain', 'host', 'discount_code'],
|
|
40079
40079
|
data: function data() {
|
|
40080
40080
|
return {
|
|
40081
40081
|
plan: {},
|
|
@@ -40251,25 +40251,30 @@ var PSkeletonPage = __vue_component__$4;var script$2 = {
|
|
|
40251
40251
|
var _this2 = this;
|
|
40252
40252
|
|
|
40253
40253
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
40254
|
-
var shopName, host, queryString, response, redirectUrl;
|
|
40254
|
+
var shopName, host, discount_code, queryString, response, redirectUrl;
|
|
40255
40255
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
40256
40256
|
while (1) {
|
|
40257
40257
|
switch (_context.prev = _context.next) {
|
|
40258
40258
|
case 0:
|
|
40259
40259
|
shopName = _this2.shop.name;
|
|
40260
40260
|
host = _this2.host;
|
|
40261
|
+
discount_code = _this2.discount_code;
|
|
40261
40262
|
queryString = "shop=".concat(shopName);
|
|
40262
40263
|
|
|
40263
40264
|
if (host != null) {
|
|
40264
40265
|
queryString += "&host=".concat(host);
|
|
40265
40266
|
}
|
|
40266
40267
|
|
|
40267
|
-
|
|
40268
|
+
if (discount_code != null) {
|
|
40269
|
+
queryString += "&discount_code=".concat(discount_code);
|
|
40270
|
+
}
|
|
40271
|
+
|
|
40272
|
+
_context.next = 8;
|
|
40268
40273
|
return axios.get("".concat(_this2.app_manager_config.baseUrl, "/api/app-manager/plan/process/").concat(plan.id, "?").concat(queryString)).catch(function (error) {
|
|
40269
40274
|
console.error(error);
|
|
40270
40275
|
});
|
|
40271
40276
|
|
|
40272
|
-
case
|
|
40277
|
+
case 8:
|
|
40273
40278
|
response = _context.sent;
|
|
40274
40279
|
|
|
40275
40280
|
if (response.data.plan_type === 'free_plan') {
|
|
@@ -40284,7 +40289,7 @@ var PSkeletonPage = __vue_component__$4;var script$2 = {
|
|
|
40284
40289
|
}
|
|
40285
40290
|
}
|
|
40286
40291
|
|
|
40287
|
-
case
|
|
40292
|
+
case 10:
|
|
40288
40293
|
case "end":
|
|
40289
40294
|
return _context.stop();
|
|
40290
40295
|
}
|
|
@@ -40420,22 +40425,28 @@ var PSkeletonPage = __vue_component__$4;var script$2 = {
|
|
|
40420
40425
|
var _this7 = this;
|
|
40421
40426
|
|
|
40422
40427
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
40423
|
-
var _yield$axios$get$catc2, data, _this7$plans, _this7$plan;
|
|
40428
|
+
var params, _yield$axios$get$catc2, data, _this7$plans, _this7$plan;
|
|
40424
40429
|
|
|
40425
40430
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
40426
40431
|
while (1) {
|
|
40427
40432
|
switch (_context6.prev = _context6.next) {
|
|
40428
40433
|
case 0:
|
|
40429
|
-
|
|
40434
|
+
params = {
|
|
40435
|
+
'shop_domain': _this7.shop_domain
|
|
40436
|
+
};
|
|
40437
|
+
|
|
40438
|
+
if (_this7.discount_code !== null) {
|
|
40439
|
+
params['discount_code'] = _this7.discount_code;
|
|
40440
|
+
}
|
|
40441
|
+
|
|
40442
|
+
_context6.next = 4;
|
|
40430
40443
|
return axios.get("".concat(_this7.app_manager_config.baseUrl, "/api/app-manager/plans"), {
|
|
40431
|
-
params:
|
|
40432
|
-
'shop_domain': _this7.shop_domain
|
|
40433
|
-
}
|
|
40444
|
+
params: params
|
|
40434
40445
|
}).catch(function (error) {
|
|
40435
40446
|
console.error(error);
|
|
40436
40447
|
});
|
|
40437
40448
|
|
|
40438
|
-
case
|
|
40449
|
+
case 4:
|
|
40439
40450
|
_yield$axios$get$catc2 = _context6.sent;
|
|
40440
40451
|
data = _yield$axios$get$catc2.data;
|
|
40441
40452
|
|
|
@@ -40463,7 +40474,7 @@ var PSkeletonPage = __vue_component__$4;var script$2 = {
|
|
|
40463
40474
|
_this7.promotional_discount = data.promotional_discount !== undefined ? data.promotional_discount : [];
|
|
40464
40475
|
}
|
|
40465
40476
|
|
|
40466
|
-
case
|
|
40477
|
+
case 7:
|
|
40467
40478
|
case "end":
|
|
40468
40479
|
return _context6.stop();
|
|
40469
40480
|
}
|
|
@@ -40545,518 +40556,12 @@ var __vue_render__$2 = function __vue_render__() {
|
|
|
40545
40556
|
|
|
40546
40557
|
var _c = _vm._self._c || _h;
|
|
40547
40558
|
|
|
40548
|
-
return
|
|
40549
|
-
attrs: {
|
|
40550
|
-
"title": _vm.translateMe('Plans'),
|
|
40551
|
-
"fullWidth": false,
|
|
40552
|
-
"primaryAction": "",
|
|
40553
|
-
"secondaryActions": 2,
|
|
40554
|
-
"breadcrumbs": false
|
|
40555
|
-
}
|
|
40556
|
-
}, [_c('PLayout', [_c('PLayoutSection', {
|
|
40557
|
-
attrs: {
|
|
40558
|
-
"oneThird": ""
|
|
40559
|
-
}
|
|
40560
|
-
}, [_c('PCard', {
|
|
40561
|
-
attrs: {
|
|
40562
|
-
"sectioned": ""
|
|
40563
|
-
}
|
|
40564
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
40565
|
-
attrs: {
|
|
40566
|
-
"size": "small"
|
|
40567
|
-
}
|
|
40568
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
|
|
40569
|
-
attrs: {
|
|
40570
|
-
"oneThird": ""
|
|
40571
|
-
}
|
|
40572
|
-
}, [_c('PCard', {
|
|
40573
|
-
attrs: {
|
|
40574
|
-
"sectioned": ""
|
|
40575
|
-
}
|
|
40576
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
40577
|
-
attrs: {
|
|
40578
|
-
"size": "small"
|
|
40579
|
-
}
|
|
40580
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
|
|
40581
|
-
attrs: {
|
|
40582
|
-
"oneThird": ""
|
|
40583
|
-
}
|
|
40584
|
-
}, [_c('PCard', {
|
|
40585
|
-
attrs: {
|
|
40586
|
-
"sectioned": ""
|
|
40587
|
-
}
|
|
40588
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
40589
|
-
attrs: {
|
|
40590
|
-
"size": "small"
|
|
40591
|
-
}
|
|
40592
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1)], 1), _vm._v(" "), _c('PLayout', {
|
|
40593
|
-
staticStyle: {
|
|
40594
|
-
"margin-top": "20px"
|
|
40595
|
-
}
|
|
40596
|
-
}, [_c('PLayoutSection', [_c('PCard', {
|
|
40597
|
-
attrs: {
|
|
40598
|
-
"sectioned": ""
|
|
40599
|
-
}
|
|
40600
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
40601
|
-
attrs: {
|
|
40602
|
-
"sectioned": ""
|
|
40603
|
-
}
|
|
40604
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
40605
|
-
attrs: {
|
|
40606
|
-
"sectioned": ""
|
|
40607
|
-
}
|
|
40608
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
40609
|
-
attrs: {
|
|
40610
|
-
"sectioned": ""
|
|
40611
|
-
}
|
|
40612
|
-
}, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
|
|
40559
|
+
return _c('PEmptyState', {
|
|
40613
40560
|
attrs: {
|
|
40614
40561
|
"heading": _vm.translateMe('No Plans'),
|
|
40615
40562
|
"image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
|
|
40616
40563
|
}
|
|
40617
|
-
})
|
|
40618
|
-
staticClass: "app-manager-plan-page custom-title",
|
|
40619
|
-
attrs: {
|
|
40620
|
-
"title": _vm.translateMe('Plans'),
|
|
40621
|
-
"subtitle": _vm.subtitleContent
|
|
40622
|
-
}
|
|
40623
|
-
}, [_c('PStack', {
|
|
40624
|
-
attrs: {
|
|
40625
|
-
"slot": "primaryAction"
|
|
40626
|
-
},
|
|
40627
|
-
slot: "primaryAction"
|
|
40628
|
-
}, [_c('PStackItem', {
|
|
40629
|
-
staticStyle: {
|
|
40630
|
-
"margin-top": "20px"
|
|
40631
|
-
}
|
|
40632
|
-
}, [_c('PButtonGroup', {
|
|
40633
|
-
staticClass: "btn-group",
|
|
40634
|
-
attrs: {
|
|
40635
|
-
"segmented": ""
|
|
40636
|
-
}
|
|
40637
|
-
}, [_vm.monthlyPlan.length && _vm.yearlyPlan.length ? _c('PButton', {
|
|
40638
|
-
class: _vm.selectedPlan === 'monthly' ? 'plan-active-tab' : '',
|
|
40639
|
-
style: _vm.selectedPlan === 'monthly' ? _vm.monthlySelectedStyle : _vm.monthlyStyle,
|
|
40640
|
-
on: {
|
|
40641
|
-
"click": function click($event) {
|
|
40642
|
-
return _vm.selectPlan('monthly');
|
|
40643
|
-
}
|
|
40644
|
-
}
|
|
40645
|
-
}, [_c('p', {
|
|
40646
|
-
staticStyle: {
|
|
40647
|
-
"font-size": "17px",
|
|
40648
|
-
"font-weight": "500"
|
|
40649
|
-
},
|
|
40650
|
-
attrs: {
|
|
40651
|
-
"slot": "default"
|
|
40652
|
-
},
|
|
40653
|
-
slot: "default"
|
|
40654
|
-
}, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
|
|
40655
|
-
class: _vm.selectedPlan === 'annually' ? 'plan-active-tab' : '',
|
|
40656
|
-
style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
|
|
40657
|
-
attrs: {
|
|
40658
|
-
"primary": _vm.selectedPlan === 'annually'
|
|
40659
|
-
},
|
|
40660
|
-
on: {
|
|
40661
|
-
"click": function click($event) {
|
|
40662
|
-
return _vm.selectPlan('annually');
|
|
40663
|
-
}
|
|
40664
|
-
}
|
|
40665
|
-
}, [_c('YearlyPlanPromotion')], 1) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c('hr', {
|
|
40666
|
-
staticStyle: {
|
|
40667
|
-
"width": "100%",
|
|
40668
|
-
"margin-right": "auto",
|
|
40669
|
-
"margin-left": "auto",
|
|
40670
|
-
"margin-bottom": "20px"
|
|
40671
|
-
}
|
|
40672
|
-
}), _vm._v(" "), _c('PLayout', {
|
|
40673
|
-
staticClass: "custom-plan"
|
|
40674
|
-
}, [_c('PLayoutSection', [[[_c('PDataTable', {
|
|
40675
|
-
staticClass: "plan-table"
|
|
40676
|
-
}, [_c('template', {
|
|
40677
|
-
slot: "head"
|
|
40678
|
-
}, [_vm.selectedPlan === 'monthly' ? _c('PDataTableRow', {
|
|
40679
|
-
staticStyle: {
|
|
40680
|
-
"box-shadow": "none!important"
|
|
40681
|
-
}
|
|
40682
|
-
}, [_c('PDataTableCol', {
|
|
40683
|
-
staticClass: "plan-heading",
|
|
40684
|
-
staticStyle: {
|
|
40685
|
-
"opacity": "0",
|
|
40686
|
-
"visibility": "hidden",
|
|
40687
|
-
"border": "0 !important"
|
|
40688
|
-
}
|
|
40689
|
-
}, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.monthlyPlan, function (plan, key) {
|
|
40690
|
-
return [_c('PDataTableCol', {
|
|
40691
|
-
class: {
|
|
40692
|
-
'first-column': key === 0,
|
|
40693
|
-
'plan-heading': true,
|
|
40694
|
-
'last-column': key + 1 === _vm.monthlyPlan.length
|
|
40695
|
-
},
|
|
40696
|
-
style: _vm.activePlanStyle(plan)
|
|
40697
|
-
}, [plan.name !== 'Free' ? _c('b', {
|
|
40698
|
-
staticStyle: {
|
|
40699
|
-
"font-size": "16px"
|
|
40700
|
-
}
|
|
40701
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
|
|
40702
|
-
staticStyle: {
|
|
40703
|
-
"display": "flex",
|
|
40704
|
-
"margin-top": "10px"
|
|
40705
|
-
}
|
|
40706
|
-
}, [_c('PHeading', {
|
|
40707
|
-
staticStyle: {
|
|
40708
|
-
"font-size": "25px",
|
|
40709
|
-
"font-weight": "700"
|
|
40710
|
-
}
|
|
40711
|
-
}, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40712
|
-
staticStyle: {
|
|
40713
|
-
"display": "flex",
|
|
40714
|
-
"margin-top": "10px"
|
|
40715
|
-
}
|
|
40716
|
-
}, [_c('PHeading', {
|
|
40717
|
-
staticStyle: {
|
|
40718
|
-
"font-size": "25px",
|
|
40719
|
-
"font-weight": "700"
|
|
40720
|
-
}
|
|
40721
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40722
|
-
staticStyle: {
|
|
40723
|
-
"margin-top": "5px",
|
|
40724
|
-
"font-size": "17px"
|
|
40725
|
-
}
|
|
40726
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
|
|
40727
|
-
staticStyle: {
|
|
40728
|
-
"display": "flex",
|
|
40729
|
-
"margin-top": "7px"
|
|
40730
|
-
}
|
|
40731
|
-
}, [_c('PHeading', {
|
|
40732
|
-
staticStyle: {
|
|
40733
|
-
"font-size": "18px",
|
|
40734
|
-
"font-weight": "500",
|
|
40735
|
-
"text-decoration": "line-through"
|
|
40736
|
-
}
|
|
40737
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40738
|
-
staticStyle: {
|
|
40739
|
-
"margin-top": "3px",
|
|
40740
|
-
"font-size": "14px"
|
|
40741
|
-
}
|
|
40742
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length > 0 && _vm.promotional_discount.plan_relation.includes(plan.id) && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40743
|
-
staticStyle: {
|
|
40744
|
-
"display": "flex",
|
|
40745
|
-
"margin-top": "10px"
|
|
40746
|
-
}
|
|
40747
|
-
}, [_c('PHeading', {
|
|
40748
|
-
staticStyle: {
|
|
40749
|
-
"font-size": "25px",
|
|
40750
|
-
"font-weight": "700"
|
|
40751
|
-
}
|
|
40752
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40753
|
-
staticStyle: {
|
|
40754
|
-
"margin-top": "5px",
|
|
40755
|
-
"font-size": "17px"
|
|
40756
|
-
}
|
|
40757
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
|
|
40758
|
-
staticStyle: {
|
|
40759
|
-
"display": "flex",
|
|
40760
|
-
"margin-top": "7px"
|
|
40761
|
-
}
|
|
40762
|
-
}, [_c('PHeading', {
|
|
40763
|
-
staticStyle: {
|
|
40764
|
-
"font-size": "18px",
|
|
40765
|
-
"font-weight": "500",
|
|
40766
|
-
"text-decoration": "line-through"
|
|
40767
|
-
}
|
|
40768
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40769
|
-
staticStyle: {
|
|
40770
|
-
"margin-top": "3px",
|
|
40771
|
-
"font-size": "14px"
|
|
40772
|
-
}
|
|
40773
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length === 0 && _vm.promotional_discount.value > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40774
|
-
staticStyle: {
|
|
40775
|
-
"display": "flex",
|
|
40776
|
-
"margin-top": "10px"
|
|
40777
|
-
}
|
|
40778
|
-
}, [_c('PHeading', {
|
|
40779
|
-
staticStyle: {
|
|
40780
|
-
"font-size": "25px",
|
|
40781
|
-
"font-weight": "700"
|
|
40782
|
-
}
|
|
40783
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40784
|
-
staticStyle: {
|
|
40785
|
-
"margin-top": "5px",
|
|
40786
|
-
"font-size": "17px"
|
|
40787
|
-
}
|
|
40788
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
|
|
40789
|
-
staticStyle: {
|
|
40790
|
-
"display": "flex",
|
|
40791
|
-
"margin-top": "7px"
|
|
40792
|
-
}
|
|
40793
|
-
}, [_c('PHeading', {
|
|
40794
|
-
staticStyle: {
|
|
40795
|
-
"font-size": "18px",
|
|
40796
|
-
"font-weight": "500",
|
|
40797
|
-
"text-decoration": "line-through"
|
|
40798
|
-
}
|
|
40799
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40800
|
-
staticStyle: {
|
|
40801
|
-
"margin-top": "3px",
|
|
40802
|
-
"font-size": "14px"
|
|
40803
|
-
}
|
|
40804
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)]) : _c('div', [_c('p', {
|
|
40805
|
-
staticStyle: {
|
|
40806
|
-
"display": "flex",
|
|
40807
|
-
"margin-top": "10px"
|
|
40808
|
-
}
|
|
40809
|
-
}, [_c('PHeading', {
|
|
40810
|
-
staticStyle: {
|
|
40811
|
-
"font-size": "25px",
|
|
40812
|
-
"font-weight": "700"
|
|
40813
|
-
}
|
|
40814
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40815
|
-
staticStyle: {
|
|
40816
|
-
"margin-top": "5px",
|
|
40817
|
-
"font-size": "17px"
|
|
40818
|
-
}
|
|
40819
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)])])];
|
|
40820
|
-
})], 2) : _c('PDataTableRow', [_c('PDataTableCol', {
|
|
40821
|
-
staticClass: "plan-heading",
|
|
40822
|
-
staticStyle: {
|
|
40823
|
-
"opacity": "0",
|
|
40824
|
-
"visibility": "hidden",
|
|
40825
|
-
"border": "0 !important"
|
|
40826
|
-
}
|
|
40827
|
-
}, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.yearlyPlan, function (plan, key) {
|
|
40828
|
-
return [_c('PDataTableCol', {
|
|
40829
|
-
class: {
|
|
40830
|
-
'first-column': key === 0,
|
|
40831
|
-
'plan-heading': true,
|
|
40832
|
-
'last-column': key + 1 === _vm.yearlyPlan.length
|
|
40833
|
-
},
|
|
40834
|
-
style: _vm.activePlanStyle(plan)
|
|
40835
|
-
}, [plan.name !== 'Free' ? _c('b', {
|
|
40836
|
-
staticStyle: {
|
|
40837
|
-
"font-size": "16px"
|
|
40838
|
-
}
|
|
40839
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
|
|
40840
|
-
staticStyle: {
|
|
40841
|
-
"display": "flex",
|
|
40842
|
-
"margin-top": "10px"
|
|
40843
|
-
}
|
|
40844
|
-
}, [_c('PHeading', {
|
|
40845
|
-
staticStyle: {
|
|
40846
|
-
"font-size": "25px",
|
|
40847
|
-
"font-weight": "700"
|
|
40848
|
-
}
|
|
40849
|
-
}, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40850
|
-
staticStyle: {
|
|
40851
|
-
"display": "flex",
|
|
40852
|
-
"margin-top": "10px"
|
|
40853
|
-
}
|
|
40854
|
-
}, [_c('PHeading', {
|
|
40855
|
-
staticStyle: {
|
|
40856
|
-
"font-size": "25px",
|
|
40857
|
-
"font-weight": "700"
|
|
40858
|
-
}
|
|
40859
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40860
|
-
staticStyle: {
|
|
40861
|
-
"margin-top": "5px",
|
|
40862
|
-
"font-size": "17px"
|
|
40863
|
-
}
|
|
40864
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
|
|
40865
|
-
staticStyle: {
|
|
40866
|
-
"display": "flex",
|
|
40867
|
-
"margin-top": "7px"
|
|
40868
|
-
}
|
|
40869
|
-
}, [_c('PHeading', {
|
|
40870
|
-
staticStyle: {
|
|
40871
|
-
"font-size": "18px",
|
|
40872
|
-
"font-weight": "500",
|
|
40873
|
-
"text-decoration": "line-through"
|
|
40874
|
-
}
|
|
40875
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40876
|
-
staticStyle: {
|
|
40877
|
-
"margin-top": "3px",
|
|
40878
|
-
"font-size": "14px"
|
|
40879
|
-
}
|
|
40880
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length > 0 && _vm.promotional_discount.plan_relation.includes(plan.id) && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40881
|
-
staticStyle: {
|
|
40882
|
-
"display": "flex",
|
|
40883
|
-
"margin-top": "10px"
|
|
40884
|
-
}
|
|
40885
|
-
}, [_c('PHeading', {
|
|
40886
|
-
staticStyle: {
|
|
40887
|
-
"font-size": "25px",
|
|
40888
|
-
"font-weight": "700"
|
|
40889
|
-
}
|
|
40890
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40891
|
-
staticStyle: {
|
|
40892
|
-
"margin-top": "5px",
|
|
40893
|
-
"font-size": "17px"
|
|
40894
|
-
}
|
|
40895
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
|
|
40896
|
-
staticStyle: {
|
|
40897
|
-
"display": "flex",
|
|
40898
|
-
"margin-top": "7px"
|
|
40899
|
-
}
|
|
40900
|
-
}, [_c('PHeading', {
|
|
40901
|
-
staticStyle: {
|
|
40902
|
-
"font-size": "18px",
|
|
40903
|
-
"font-weight": "500",
|
|
40904
|
-
"text-decoration": "line-through"
|
|
40905
|
-
}
|
|
40906
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40907
|
-
staticStyle: {
|
|
40908
|
-
"margin-top": "3px",
|
|
40909
|
-
"font-size": "14px"
|
|
40910
|
-
}
|
|
40911
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length === 0 && _vm.promotional_discount.value > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
|
|
40912
|
-
staticStyle: {
|
|
40913
|
-
"display": "flex",
|
|
40914
|
-
"margin-top": "10px"
|
|
40915
|
-
}
|
|
40916
|
-
}, [_c('PHeading', {
|
|
40917
|
-
staticStyle: {
|
|
40918
|
-
"font-size": "25px",
|
|
40919
|
-
"font-weight": "700"
|
|
40920
|
-
}
|
|
40921
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40922
|
-
staticStyle: {
|
|
40923
|
-
"margin-top": "5px",
|
|
40924
|
-
"font-size": "17px"
|
|
40925
|
-
}
|
|
40926
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
|
|
40927
|
-
staticStyle: {
|
|
40928
|
-
"display": "flex",
|
|
40929
|
-
"margin-top": "7px"
|
|
40930
|
-
}
|
|
40931
|
-
}, [_c('PHeading', {
|
|
40932
|
-
staticStyle: {
|
|
40933
|
-
"font-size": "18px",
|
|
40934
|
-
"font-weight": "500",
|
|
40935
|
-
"text-decoration": "line-through"
|
|
40936
|
-
}
|
|
40937
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40938
|
-
staticStyle: {
|
|
40939
|
-
"margin-top": "3px",
|
|
40940
|
-
"font-size": "14px"
|
|
40941
|
-
}
|
|
40942
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)]) : _c('div', [_c('p', {
|
|
40943
|
-
staticStyle: {
|
|
40944
|
-
"display": "flex",
|
|
40945
|
-
"margin-top": "10px"
|
|
40946
|
-
}
|
|
40947
|
-
}, [_c('PHeading', {
|
|
40948
|
-
staticStyle: {
|
|
40949
|
-
"font-size": "25px",
|
|
40950
|
-
"font-weight": "700"
|
|
40951
|
-
}
|
|
40952
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
40953
|
-
staticStyle: {
|
|
40954
|
-
"margin-top": "5px",
|
|
40955
|
-
"font-size": "17px"
|
|
40956
|
-
}
|
|
40957
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)])])];
|
|
40958
|
-
})], 2)], 1), _vm._v(" "), _c('template', {
|
|
40959
|
-
slot: "body"
|
|
40960
|
-
}, [_vm._l(_vm.featuresByGroup, function (featureGroup, groupKey) {
|
|
40961
|
-
return [groupKey !== 'null' ? _c('PDataTableRow', {
|
|
40962
|
-
staticClass: "app-manager-group-row"
|
|
40963
|
-
}, [_c('PDataTableCol', {
|
|
40964
|
-
staticClass: "app-manager-group-cell",
|
|
40965
|
-
attrs: {
|
|
40966
|
-
"colspan": _vm.selectedPlan === 'monthly' ? _vm.monthlyPlan.length + 1 : _vm.yearlyPlan.length + 1
|
|
40967
|
-
}
|
|
40968
|
-
}, [_vm._v(_vm._s(_vm.translateMe(groupKey)))])], 1) : _vm._e(), _vm._v(" "), _vm._l(featureGroup, function (feature, rIndex) {
|
|
40969
|
-
return _c('PDataTableRow', {
|
|
40970
|
-
key: "row-" + (rIndex + groupKey)
|
|
40971
|
-
}, [_c('PDataTableCol', {
|
|
40972
|
-
class: "feature__type__" + feature.value_type + " feature__class"
|
|
40973
|
-
}, [_vm._v(_vm._s(_vm.translateMe(feature.name)))]), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
|
|
40974
|
-
return _c('PDataTableCol', {
|
|
40975
|
-
key: "cell-" + cIndex + "-row-" + rIndex,
|
|
40976
|
-
class: "feature__type__" + feature.value_type,
|
|
40977
|
-
style: _vm.activePlanStyle(plan)
|
|
40978
|
-
}, [plan.features ? [feature.value_type === 'boolean' ? [plan.features[feature.uuid] ? _c('PIcon', {
|
|
40979
|
-
attrs: {
|
|
40980
|
-
"color": "success",
|
|
40981
|
-
"source": "TickMinor"
|
|
40982
|
-
}
|
|
40983
|
-
}) : _c('PIcon', {
|
|
40984
|
-
attrs: {
|
|
40985
|
-
"color": "subdued",
|
|
40986
|
-
"source": "MinusMinor"
|
|
40987
|
-
}
|
|
40988
|
-
})] : [plan.features[feature.uuid] ? _c('span', [_vm._v(_vm._s(_vm.translateMe(_vm.format(plan.features[feature.uuid]))))]) : _c('PIcon', {
|
|
40989
|
-
attrs: {
|
|
40990
|
-
"color": "subdued",
|
|
40991
|
-
"source": "MinusMinor"
|
|
40992
|
-
}
|
|
40993
|
-
})]] : [_c('PIcon', {
|
|
40994
|
-
attrs: {
|
|
40995
|
-
"color": "subdued",
|
|
40996
|
-
"source": "MinusMinor"
|
|
40997
|
-
}
|
|
40998
|
-
})]], 2);
|
|
40999
|
-
})], 2);
|
|
41000
|
-
})];
|
|
41001
|
-
}), _vm._v(" "), _vm.plans.length ? _c('PDataTableRow', {
|
|
41002
|
-
staticClass: "row-alignment"
|
|
41003
|
-
}, [_c('PDataTableCol'), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
|
|
41004
|
-
return _c('PDataTableCol', {
|
|
41005
|
-
key: "cell-" + cIndex + "-row-plan",
|
|
41006
|
-
staticStyle: {
|
|
41007
|
-
"max-width": "0"
|
|
41008
|
-
}
|
|
41009
|
-
}, [_vm.isCurrentPlan(plan) ? _c('PButton', {
|
|
41010
|
-
attrs: {
|
|
41011
|
-
"disabled": _vm.isCurrentPlan(plan),
|
|
41012
|
-
"full-width": "",
|
|
41013
|
-
"pressed": _vm.isCurrentPlan(plan)
|
|
41014
|
-
}
|
|
41015
|
-
}, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
|
|
41016
|
-
class: _vm.planChooseButtonClass(plan),
|
|
41017
|
-
attrs: {
|
|
41018
|
-
"full-width": "",
|
|
41019
|
-
"primary": _vm.isPlanButtonColor(plan)
|
|
41020
|
-
},
|
|
41021
|
-
on: {
|
|
41022
|
-
"click": function click($event) {
|
|
41023
|
-
plan ? _vm.getPlanUrl(plan) : 'javascript:void';
|
|
41024
|
-
}
|
|
41025
|
-
}
|
|
41026
|
-
}, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
|
|
41027
|
-
attrs: {
|
|
41028
|
-
"disabled": true,
|
|
41029
|
-
"full-width": "",
|
|
41030
|
-
"pressed": true
|
|
41031
|
-
}
|
|
41032
|
-
}, [_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', {
|
|
41033
|
-
staticClass: "footer-note-container"
|
|
41034
|
-
}, [plan.store_base_plan && !plan.shopify_plans.includes(_vm.shop.shopify_plan) && !_vm.isCurrentPlan(plan) && !_vm.isSamePlanInOtherInterval(plan) ? _c('PTextStyle', {
|
|
41035
|
-
staticClass: "text-break"
|
|
41036
|
-
}, [_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);
|
|
41037
|
-
})], 2) : _vm._e()], 2)], 2)]], _vm._v(" "), _vm.onboard ? _c('PStack', {
|
|
41038
|
-
staticClass: "choose-plan-btn",
|
|
41039
|
-
attrs: {
|
|
41040
|
-
"alignment": "center",
|
|
41041
|
-
"distribution": "center",
|
|
41042
|
-
"vertical": ""
|
|
41043
|
-
}
|
|
41044
|
-
}, [_c('PStackItem', {
|
|
41045
|
-
attrs: {
|
|
41046
|
-
"fill": ""
|
|
41047
|
-
}
|
|
41048
|
-
}, [_c('PButton', {
|
|
41049
|
-
attrs: {
|
|
41050
|
-
"plain": ""
|
|
41051
|
-
},
|
|
41052
|
-
on: {
|
|
41053
|
-
"click": _vm.activePlan
|
|
41054
|
-
}
|
|
41055
|
-
}, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners', {
|
|
41056
|
-
on: {
|
|
41057
|
-
"handlePlanBannerClose": _vm.handlePlanBannerClose
|
|
41058
|
-
}
|
|
41059
|
-
})], 2)], 1)], 1);
|
|
40564
|
+
});
|
|
41060
40565
|
};
|
|
41061
40566
|
|
|
41062
40567
|
var __vue_staticRenderFns__$2 = [];
|
|
@@ -41064,7 +40569,7 @@ var __vue_staticRenderFns__$2 = [];
|
|
|
41064
40569
|
|
|
41065
40570
|
var __vue_inject_styles__$2 = function __vue_inject_styles__(inject) {
|
|
41066
40571
|
if (!inject) return;
|
|
41067
|
-
inject("data-v-
|
|
40572
|
+
inject("data-v-9a387b72_0", {
|
|
41068
40573
|
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}",
|
|
41069
40574
|
map: undefined,
|
|
41070
40575
|
media: undefined
|
|
@@ -41076,7 +40581,7 @@ var __vue_inject_styles__$2 = function __vue_inject_styles__(inject) {
|
|
|
41076
40581
|
var __vue_scope_id__$2 = undefined;
|
|
41077
40582
|
/* module identifier */
|
|
41078
40583
|
|
|
41079
|
-
var __vue_module_identifier__$2 = "data-v-
|
|
40584
|
+
var __vue_module_identifier__$2 = "data-v-9a387b72";
|
|
41080
40585
|
/* functional template */
|
|
41081
40586
|
|
|
41082
40587
|
var __vue_is_functional_template__$2 = false;
|
|
@@ -41122,7 +40627,7 @@ var AppManagerGroupPlan = __vue_component__$3;var vueCarousel_min = createCommon
|
|
|
41122
40627
|
PSkeletonPage: PSkeletonPage,
|
|
41123
40628
|
PEmptyState: PEmptyState
|
|
41124
40629
|
},
|
|
41125
|
-
props: ['shop_domain', 'host'],
|
|
40630
|
+
props: ['shop_domain', 'host', 'discount_code'],
|
|
41126
40631
|
data: function data() {
|
|
41127
40632
|
return {
|
|
41128
40633
|
slideLength: 0,
|
|
@@ -41310,25 +40815,30 @@ var AppManagerGroupPlan = __vue_component__$3;var vueCarousel_min = createCommon
|
|
|
41310
40815
|
var _this = this;
|
|
41311
40816
|
|
|
41312
40817
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
41313
|
-
var shopName, host, queryString, response, redirectUrl;
|
|
40818
|
+
var shopName, host, discount_code, queryString, response, redirectUrl;
|
|
41314
40819
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
41315
40820
|
while (1) {
|
|
41316
40821
|
switch (_context.prev = _context.next) {
|
|
41317
40822
|
case 0:
|
|
41318
40823
|
shopName = _this.shop.name;
|
|
41319
40824
|
host = _this.host;
|
|
40825
|
+
discount_code = _this.discount_code;
|
|
41320
40826
|
queryString = "shop=".concat(shopName);
|
|
41321
40827
|
|
|
41322
40828
|
if (host != null) {
|
|
41323
40829
|
queryString += "&host=".concat(host);
|
|
41324
40830
|
}
|
|
41325
40831
|
|
|
41326
|
-
|
|
40832
|
+
if (discount_code != null) {
|
|
40833
|
+
queryString += "&discount_code=".concat(discount_code);
|
|
40834
|
+
}
|
|
40835
|
+
|
|
40836
|
+
_context.next = 8;
|
|
41327
40837
|
return axios.get("".concat(_this.app_manager_config.baseUrl, "/api/app-manager/plan/process/").concat(plan.id, "?").concat(queryString)).catch(function (error) {
|
|
41328
40838
|
console.error(error);
|
|
41329
40839
|
});
|
|
41330
40840
|
|
|
41331
|
-
case
|
|
40841
|
+
case 8:
|
|
41332
40842
|
response = _context.sent;
|
|
41333
40843
|
|
|
41334
40844
|
if (response.data.plan_type === 'free_plan') {
|
|
@@ -41343,7 +40853,7 @@ var AppManagerGroupPlan = __vue_component__$3;var vueCarousel_min = createCommon
|
|
|
41343
40853
|
}
|
|
41344
40854
|
}
|
|
41345
40855
|
|
|
41346
|
-
case
|
|
40856
|
+
case 10:
|
|
41347
40857
|
case "end":
|
|
41348
40858
|
return _context.stop();
|
|
41349
40859
|
}
|
|
@@ -41538,22 +41048,28 @@ var AppManagerGroupPlan = __vue_component__$3;var vueCarousel_min = createCommon
|
|
|
41538
41048
|
var _this6 = this;
|
|
41539
41049
|
|
|
41540
41050
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
41541
|
-
var _yield$axios$get$catc2, data, _this6$plans, _this6$plan;
|
|
41051
|
+
var params, _yield$axios$get$catc2, data, _this6$plans, _this6$plan;
|
|
41542
41052
|
|
|
41543
41053
|
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
41544
41054
|
while (1) {
|
|
41545
41055
|
switch (_context6.prev = _context6.next) {
|
|
41546
41056
|
case 0:
|
|
41547
|
-
|
|
41057
|
+
params = {
|
|
41058
|
+
'shop_domain': _this6.shop_domain
|
|
41059
|
+
};
|
|
41060
|
+
|
|
41061
|
+
if (_this6.discount_code !== null) {
|
|
41062
|
+
params['discount_code'] = _this6.discount_code;
|
|
41063
|
+
}
|
|
41064
|
+
|
|
41065
|
+
_context6.next = 4;
|
|
41548
41066
|
return axios.get("".concat(_this6.app_manager_config.baseUrl, "/api/app-manager/plans"), {
|
|
41549
|
-
params:
|
|
41550
|
-
'shop_domain': _this6.shop_domain
|
|
41551
|
-
}
|
|
41067
|
+
params: params
|
|
41552
41068
|
}).catch(function (error) {
|
|
41553
41069
|
console.error(error);
|
|
41554
41070
|
});
|
|
41555
41071
|
|
|
41556
|
-
case
|
|
41072
|
+
case 4:
|
|
41557
41073
|
_yield$axios$get$catc2 = _context6.sent;
|
|
41558
41074
|
data = _yield$axios$get$catc2.data;
|
|
41559
41075
|
|
|
@@ -41581,7 +41097,7 @@ var AppManagerGroupPlan = __vue_component__$3;var vueCarousel_min = createCommon
|
|
|
41581
41097
|
_this6.promotional_discount = data.promotional_discount !== undefined ? data.promotional_discount : [];
|
|
41582
41098
|
}
|
|
41583
41099
|
|
|
41584
|
-
case
|
|
41100
|
+
case 7:
|
|
41585
41101
|
case "end":
|
|
41586
41102
|
return _context6.stop();
|
|
41587
41103
|
}
|
|
@@ -41723,395 +41239,12 @@ var __vue_render__$1 = function __vue_render__() {
|
|
|
41723
41239
|
|
|
41724
41240
|
var _c = _vm._self._c || _h;
|
|
41725
41241
|
|
|
41726
|
-
return
|
|
41727
|
-
attrs: {
|
|
41728
|
-
"title": _vm.translateMe('Plans'),
|
|
41729
|
-
"fullWidth": false,
|
|
41730
|
-
"primaryAction": "",
|
|
41731
|
-
"secondaryActions": 2,
|
|
41732
|
-
"breadcrumbs": false
|
|
41733
|
-
}
|
|
41734
|
-
}, [_c('PLayout', [_c('PLayoutSection', {
|
|
41735
|
-
attrs: {
|
|
41736
|
-
"oneThird": ""
|
|
41737
|
-
}
|
|
41738
|
-
}, [_c('PCard', {
|
|
41739
|
-
attrs: {
|
|
41740
|
-
"sectioned": ""
|
|
41741
|
-
}
|
|
41742
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
41743
|
-
attrs: {
|
|
41744
|
-
"size": "small"
|
|
41745
|
-
}
|
|
41746
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
|
|
41747
|
-
attrs: {
|
|
41748
|
-
"oneThird": ""
|
|
41749
|
-
}
|
|
41750
|
-
}, [_c('PCard', {
|
|
41751
|
-
attrs: {
|
|
41752
|
-
"sectioned": ""
|
|
41753
|
-
}
|
|
41754
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
41755
|
-
attrs: {
|
|
41756
|
-
"size": "small"
|
|
41757
|
-
}
|
|
41758
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
|
|
41759
|
-
attrs: {
|
|
41760
|
-
"oneThird": ""
|
|
41761
|
-
}
|
|
41762
|
-
}, [_c('PCard', {
|
|
41763
|
-
attrs: {
|
|
41764
|
-
"sectioned": ""
|
|
41765
|
-
}
|
|
41766
|
-
}, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
|
|
41767
|
-
attrs: {
|
|
41768
|
-
"size": "small"
|
|
41769
|
-
}
|
|
41770
|
-
}), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1)], 1), _vm._v(" "), _c('PLayout', {
|
|
41771
|
-
staticStyle: {
|
|
41772
|
-
"margin-top": "20px"
|
|
41773
|
-
}
|
|
41774
|
-
}, [_c('PLayoutSection', [_c('PCard', {
|
|
41775
|
-
attrs: {
|
|
41776
|
-
"sectioned": ""
|
|
41777
|
-
}
|
|
41778
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
41779
|
-
attrs: {
|
|
41780
|
-
"sectioned": ""
|
|
41781
|
-
}
|
|
41782
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
41783
|
-
attrs: {
|
|
41784
|
-
"sectioned": ""
|
|
41785
|
-
}
|
|
41786
|
-
}, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
|
|
41787
|
-
attrs: {
|
|
41788
|
-
"sectioned": ""
|
|
41789
|
-
}
|
|
41790
|
-
}, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
|
|
41242
|
+
return _c('PEmptyState', {
|
|
41791
41243
|
attrs: {
|
|
41792
41244
|
"heading": _vm.translateMe('No Plans'),
|
|
41793
41245
|
"image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
|
|
41794
41246
|
}
|
|
41795
|
-
})
|
|
41796
|
-
staticClass: "app-manager-plan-page-slider custom-title",
|
|
41797
|
-
attrs: {
|
|
41798
|
-
"title": _vm.translateMe('Plans'),
|
|
41799
|
-
"subtitle": _vm.subtitleContent
|
|
41800
|
-
}
|
|
41801
|
-
}, [_c('PStack', {
|
|
41802
|
-
attrs: {
|
|
41803
|
-
"slot": "primaryAction"
|
|
41804
|
-
},
|
|
41805
|
-
slot: "primaryAction"
|
|
41806
|
-
}, [_c('PStackItem', {
|
|
41807
|
-
staticStyle: {
|
|
41808
|
-
"margin-top": "20px"
|
|
41809
|
-
}
|
|
41810
|
-
}, [_c('PButtonGroup', {
|
|
41811
|
-
staticClass: "btn-group",
|
|
41812
|
-
attrs: {
|
|
41813
|
-
"segmented": ""
|
|
41814
|
-
}
|
|
41815
|
-
}, [_vm.monthlyPlan.length && _vm.yearlyPlan.length ? _c('PButton', {
|
|
41816
|
-
class: _vm.selectedPlan === 'monthly' ? 'plan-active-tab' : '',
|
|
41817
|
-
style: _vm.selectedPlan === 'monthly' ? _vm.monthlySelectedStyle : _vm.monthlyStyle,
|
|
41818
|
-
on: {
|
|
41819
|
-
"click": function click($event) {
|
|
41820
|
-
return _vm.selectPlan('monthly');
|
|
41821
|
-
}
|
|
41822
|
-
}
|
|
41823
|
-
}, [_c('p', {
|
|
41824
|
-
staticStyle: {
|
|
41825
|
-
"font-size": "17px",
|
|
41826
|
-
"font-weight": "500"
|
|
41827
|
-
},
|
|
41828
|
-
attrs: {
|
|
41829
|
-
"slot": "default"
|
|
41830
|
-
},
|
|
41831
|
-
slot: "default"
|
|
41832
|
-
}, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
|
|
41833
|
-
class: _vm.selectedPlan === 'annually' ? 'plan-active-tab' : '',
|
|
41834
|
-
style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
|
|
41835
|
-
attrs: {
|
|
41836
|
-
"primary": _vm.selectedPlan === 'annually'
|
|
41837
|
-
},
|
|
41838
|
-
on: {
|
|
41839
|
-
"click": function click($event) {
|
|
41840
|
-
return _vm.selectPlan('annually');
|
|
41841
|
-
}
|
|
41842
|
-
}
|
|
41843
|
-
}, [_c('YearlyPlanPromotion')], 1) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c('hr', {
|
|
41844
|
-
staticStyle: {
|
|
41845
|
-
"width": "100%",
|
|
41846
|
-
"margin-right": "auto",
|
|
41847
|
-
"margin-left": "auto",
|
|
41848
|
-
"margin-bottom": "20px"
|
|
41849
|
-
}
|
|
41850
|
-
}), _vm._v(" "), _c('PLayout', {
|
|
41851
|
-
staticClass: "custom-plan"
|
|
41852
|
-
}, [_c('PLayoutSection', {
|
|
41853
|
-
staticStyle: {
|
|
41854
|
-
"display": "flex",
|
|
41855
|
-
"border-radius": "20px"
|
|
41856
|
-
}
|
|
41857
|
-
}, [[[_c('div', {
|
|
41858
|
-
staticClass: "Polaris-ResourceList__ResourceListWrapper features",
|
|
41859
|
-
staticStyle: {
|
|
41860
|
-
"width": "30%"
|
|
41861
|
-
}
|
|
41862
|
-
}, [_c('div', {
|
|
41863
|
-
staticClass: "plan__price"
|
|
41864
|
-
}), _vm._v(" "), _c('ul', {
|
|
41865
|
-
staticClass: "Polaris-ResourceList"
|
|
41866
|
-
}, _vm._l(_vm.features, function (feature, key) {
|
|
41867
|
-
return _c('li', {
|
|
41868
|
-
key: key,
|
|
41869
|
-
staticClass: "Polaris-ResourceList__ItemWrapper pro_title",
|
|
41870
|
-
class: feature.value_type + "__type__" + feature.slug + " feature__type__" + feature.value_type + " feature__class"
|
|
41871
|
-
}, [_c('div', {
|
|
41872
|
-
staticClass: "Polaris-ResourceList-Item__Container"
|
|
41873
|
-
}, [_c('div', {
|
|
41874
|
-
staticClass: "Polaris-ResourceList-Item__Content"
|
|
41875
|
-
}, [_c('h1', {
|
|
41876
|
-
staticClass: "for-price-per-month"
|
|
41877
|
-
}, [_c('span', [_vm._v(_vm._s(_vm.translateMe(feature.name)))])])])])]);
|
|
41878
|
-
}), 0)])], _vm._v(" "), _c('carousel', {
|
|
41879
|
-
staticStyle: {
|
|
41880
|
-
"width": "70%"
|
|
41881
|
-
},
|
|
41882
|
-
attrs: {
|
|
41883
|
-
"per-page": _vm.perPage,
|
|
41884
|
-
"mouseDrag": false,
|
|
41885
|
-
"navigation-enabled": true,
|
|
41886
|
-
"paginationEnabled": false,
|
|
41887
|
-
"navigateTo": [this.currentSlide, true]
|
|
41888
|
-
},
|
|
41889
|
-
on: {
|
|
41890
|
-
"transition-start": function transitionStart($event) {
|
|
41891
|
-
return _vm.handleNavigationClick($event);
|
|
41892
|
-
}
|
|
41893
|
-
}
|
|
41894
|
-
}, [_vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, key) {
|
|
41895
|
-
return _c('slide', {
|
|
41896
|
-
key: "slide-" + key,
|
|
41897
|
-
class: "slide-" + key,
|
|
41898
|
-
attrs: {
|
|
41899
|
-
"id": key
|
|
41900
|
-
}
|
|
41901
|
-
}, [_c('div', {
|
|
41902
|
-
staticClass: "plan__price",
|
|
41903
|
-
style: _vm.activePlanStyle(plan)
|
|
41904
|
-
}, [plan.price === 0 ? _c('div', [plan.name !== 'Free' ? _c('b', {
|
|
41905
|
-
staticStyle: {
|
|
41906
|
-
"font-size": "16px"
|
|
41907
|
-
}
|
|
41908
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), _c('p', {
|
|
41909
|
-
staticStyle: {
|
|
41910
|
-
"display": "flex",
|
|
41911
|
-
"margin-top": "10px"
|
|
41912
|
-
}
|
|
41913
|
-
}, [_c('PHeading', {
|
|
41914
|
-
staticStyle: {
|
|
41915
|
-
"font-size": "25px",
|
|
41916
|
-
"font-weight": "700"
|
|
41917
|
-
}
|
|
41918
|
-
}, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
|
|
41919
|
-
staticStyle: {
|
|
41920
|
-
"font-size": "16px"
|
|
41921
|
-
}
|
|
41922
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
|
|
41923
|
-
staticStyle: {
|
|
41924
|
-
"display": "flex",
|
|
41925
|
-
"margin-top": "10px"
|
|
41926
|
-
}
|
|
41927
|
-
}, [_c('PHeading', {
|
|
41928
|
-
staticStyle: {
|
|
41929
|
-
"font-size": "25px",
|
|
41930
|
-
"font-weight": "700"
|
|
41931
|
-
}
|
|
41932
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
41933
|
-
staticStyle: {
|
|
41934
|
-
"margin-top": "5px",
|
|
41935
|
-
"font-size": "17px"
|
|
41936
|
-
}
|
|
41937
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
|
|
41938
|
-
staticStyle: {
|
|
41939
|
-
"display": "flex",
|
|
41940
|
-
"margin-top": "7px"
|
|
41941
|
-
}
|
|
41942
|
-
}, [_c('PHeading', {
|
|
41943
|
-
staticStyle: {
|
|
41944
|
-
"font-size": "18px",
|
|
41945
|
-
"font-weight": "500",
|
|
41946
|
-
"text-decoration": "line-through"
|
|
41947
|
-
}
|
|
41948
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
41949
|
-
staticStyle: {
|
|
41950
|
-
"margin-top": "3px",
|
|
41951
|
-
"font-size": "14px"
|
|
41952
|
-
}
|
|
41953
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length > 0 && _vm.promotional_discount.plan_relation.includes(plan.id) && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
|
|
41954
|
-
staticStyle: {
|
|
41955
|
-
"font-size": "16px"
|
|
41956
|
-
}
|
|
41957
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
|
|
41958
|
-
staticStyle: {
|
|
41959
|
-
"display": "flex",
|
|
41960
|
-
"margin-top": "10px"
|
|
41961
|
-
}
|
|
41962
|
-
}, [_c('PHeading', {
|
|
41963
|
-
staticStyle: {
|
|
41964
|
-
"font-size": "25px",
|
|
41965
|
-
"font-weight": "700"
|
|
41966
|
-
}
|
|
41967
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
41968
|
-
staticStyle: {
|
|
41969
|
-
"margin-top": "5px",
|
|
41970
|
-
"font-size": "17px"
|
|
41971
|
-
}
|
|
41972
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
|
|
41973
|
-
staticStyle: {
|
|
41974
|
-
"display": "flex",
|
|
41975
|
-
"margin-top": "7px"
|
|
41976
|
-
}
|
|
41977
|
-
}, [_c('PHeading', {
|
|
41978
|
-
staticStyle: {
|
|
41979
|
-
"font-size": "18px",
|
|
41980
|
-
"font-weight": "500",
|
|
41981
|
-
"text-decoration": "line-through"
|
|
41982
|
-
}
|
|
41983
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
41984
|
-
staticStyle: {
|
|
41985
|
-
"margin-top": "3px",
|
|
41986
|
-
"font-size": "14px"
|
|
41987
|
-
}
|
|
41988
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)]) : _vm.promotional_discount && _vm.promotional_discount.length !== 0 && !_vm.promotional_discount.errors && _vm.promotional_discount.plan_relation.length === 0 && _vm.promotional_discount.value > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
|
|
41989
|
-
staticStyle: {
|
|
41990
|
-
"font-size": "16px"
|
|
41991
|
-
}
|
|
41992
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
|
|
41993
|
-
staticStyle: {
|
|
41994
|
-
"display": "flex",
|
|
41995
|
-
"margin-top": "10px"
|
|
41996
|
-
}
|
|
41997
|
-
}, [_c('PHeading', {
|
|
41998
|
-
staticStyle: {
|
|
41999
|
-
"font-size": "25px",
|
|
42000
|
-
"font-weight": "700"
|
|
42001
|
-
}
|
|
42002
|
-
}, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
42003
|
-
staticStyle: {
|
|
42004
|
-
"margin-top": "5px",
|
|
42005
|
-
"font-size": "17px"
|
|
42006
|
-
}
|
|
42007
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
|
|
42008
|
-
staticStyle: {
|
|
42009
|
-
"display": "flex",
|
|
42010
|
-
"margin-top": "7px"
|
|
42011
|
-
}
|
|
42012
|
-
}, [_c('PHeading', {
|
|
42013
|
-
staticStyle: {
|
|
42014
|
-
"font-size": "18px",
|
|
42015
|
-
"font-weight": "500",
|
|
42016
|
-
"text-decoration": "line-through"
|
|
42017
|
-
}
|
|
42018
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
42019
|
-
staticStyle: {
|
|
42020
|
-
"margin-top": "3px",
|
|
42021
|
-
"font-size": "14px"
|
|
42022
|
-
}
|
|
42023
|
-
}, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)]) : _c('div', [_c('b', {
|
|
42024
|
-
staticStyle: {
|
|
42025
|
-
"font-size": "16px"
|
|
42026
|
-
}
|
|
42027
|
-
}, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
|
|
42028
|
-
staticStyle: {
|
|
42029
|
-
"display": "flex",
|
|
42030
|
-
"margin-top": "10px"
|
|
42031
|
-
}
|
|
42032
|
-
}, [_c('PHeading', {
|
|
42033
|
-
staticStyle: {
|
|
42034
|
-
"font-size": "25px",
|
|
42035
|
-
"font-weight": "700"
|
|
42036
|
-
}
|
|
42037
|
-
}, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
|
|
42038
|
-
staticStyle: {
|
|
42039
|
-
"margin-top": "5px",
|
|
42040
|
-
"font-size": "17px"
|
|
42041
|
-
}
|
|
42042
|
-
}, [_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) {
|
|
42043
|
-
return _c('li', {
|
|
42044
|
-
key: key,
|
|
42045
|
-
class: feature.value_type + "__type__" + feature.slug + " feature__list feature__type__" + feature.value_type,
|
|
42046
|
-
style: _vm.activePlanStyle(plan)
|
|
42047
|
-
}, [_c('div', [plan.features && plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
|
|
42048
|
-
attrs: {
|
|
42049
|
-
"color": "success",
|
|
42050
|
-
"source": "TickMinor"
|
|
42051
|
-
}
|
|
42052
|
-
}) : _c('PIcon', {
|
|
42053
|
-
attrs: {
|
|
42054
|
-
"color": "subdued",
|
|
42055
|
-
"source": "MinusMinor"
|
|
42056
|
-
}
|
|
42057
|
-
})] : [plan.features[feature.uuid].value ? _c('span', [_vm._v(_vm._s(_vm.format(plan.features[feature.uuid])))]) : _c('PIcon', {
|
|
42058
|
-
attrs: {
|
|
42059
|
-
"color": "subdued",
|
|
42060
|
-
"source": "MinusMinor"
|
|
42061
|
-
}
|
|
42062
|
-
})]] : [_c('PIcon', {
|
|
42063
|
-
attrs: {
|
|
42064
|
-
"color": "subdued",
|
|
42065
|
-
"source": "MinusMinor"
|
|
42066
|
-
}
|
|
42067
|
-
})]], 2)]);
|
|
42068
|
-
}), _vm._v(" "), _c('li', [_vm.isCurrentPlan(plan) ? _c('PButton', {
|
|
42069
|
-
attrs: {
|
|
42070
|
-
"disabled": _vm.isCurrentPlan(plan),
|
|
42071
|
-
"full-width": "",
|
|
42072
|
-
"pressed": _vm.isCurrentPlan(plan)
|
|
42073
|
-
}
|
|
42074
|
-
}, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
|
|
42075
|
-
class: _vm.planChooseButtonClass(plan),
|
|
42076
|
-
attrs: {
|
|
42077
|
-
"full-width": "",
|
|
42078
|
-
"primary": _vm.isPlanButtonColor(plan)
|
|
42079
|
-
},
|
|
42080
|
-
on: {
|
|
42081
|
-
"click": function click($event) {
|
|
42082
|
-
plan ? _vm.getPlanUrl(plan) : 'javascript:void';
|
|
42083
|
-
}
|
|
42084
|
-
}
|
|
42085
|
-
}, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
|
|
42086
|
-
attrs: {
|
|
42087
|
-
"disabled": true,
|
|
42088
|
-
"full-width": "",
|
|
42089
|
-
"pressed": true
|
|
42090
|
-
}
|
|
42091
|
-
}, [_vm._v("\n " + _vm._s(_vm.translateMe('Not applicable')) + "\n ")])], 1)], 2)])]);
|
|
42092
|
-
})], 2)]], 2)], 1), _vm._v(" "), _vm.onboard ? _c('PStack', {
|
|
42093
|
-
staticClass: "choose-plan-btn",
|
|
42094
|
-
attrs: {
|
|
42095
|
-
"alignment": "center",
|
|
42096
|
-
"distribution": "center",
|
|
42097
|
-
"vertical": ""
|
|
42098
|
-
}
|
|
42099
|
-
}, [_c('PStackItem', {
|
|
42100
|
-
attrs: {
|
|
42101
|
-
"fill": ""
|
|
42102
|
-
}
|
|
42103
|
-
}, [_c('PButton', {
|
|
42104
|
-
attrs: {
|
|
42105
|
-
"plain": ""
|
|
42106
|
-
},
|
|
42107
|
-
on: {
|
|
42108
|
-
"click": _vm.activePlan
|
|
42109
|
-
}
|
|
42110
|
-
}, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners', {
|
|
42111
|
-
on: {
|
|
42112
|
-
"handlePlanBannerClose": _vm.handlePlanBannerClose
|
|
42113
|
-
}
|
|
42114
|
-
})], 1);
|
|
41247
|
+
});
|
|
42115
41248
|
};
|
|
42116
41249
|
|
|
42117
41250
|
var __vue_staticRenderFns__$1 = [];
|
|
@@ -42119,7 +41252,7 @@ var __vue_staticRenderFns__$1 = [];
|
|
|
42119
41252
|
|
|
42120
41253
|
var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
42121
41254
|
if (!inject) return;
|
|
42122
|
-
inject("data-v-
|
|
41255
|
+
inject("data-v-ab978d9c_0", {
|
|
42123
41256
|
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}",
|
|
42124
41257
|
map: undefined,
|
|
42125
41258
|
media: undefined
|
|
@@ -42131,7 +41264,7 @@ var __vue_inject_styles__$1 = function __vue_inject_styles__(inject) {
|
|
|
42131
41264
|
var __vue_scope_id__$1 = undefined;
|
|
42132
41265
|
/* module identifier */
|
|
42133
41266
|
|
|
42134
|
-
var __vue_module_identifier__$1 = "data-v-
|
|
41267
|
+
var __vue_module_identifier__$1 = "data-v-ab978d9c";
|
|
42135
41268
|
/* functional template */
|
|
42136
41269
|
|
|
42137
41270
|
var __vue_is_functional_template__$1 = false;
|
|
@@ -42165,6 +41298,10 @@ var script = {
|
|
|
42165
41298
|
type: String,
|
|
42166
41299
|
default: null
|
|
42167
41300
|
},
|
|
41301
|
+
discount_code: {
|
|
41302
|
+
type: String,
|
|
41303
|
+
default: null
|
|
41304
|
+
},
|
|
42168
41305
|
translations: {
|
|
42169
41306
|
type: Object,
|
|
42170
41307
|
default: function _default() {
|
|
@@ -42208,7 +41345,8 @@ var __vue_render__ = function __vue_render__() {
|
|
|
42208
41345
|
return _vm.group_plan ? _c('AppManagerGroupPlan', {
|
|
42209
41346
|
attrs: {
|
|
42210
41347
|
"shop_domain": _vm.shop_domain,
|
|
42211
|
-
"host": _vm.host
|
|
41348
|
+
"host": _vm.host,
|
|
41349
|
+
"discount_code": _vm.discount_code
|
|
42212
41350
|
},
|
|
42213
41351
|
on: {
|
|
42214
41352
|
"handlePlanSelect": _vm.handlePlanSelect,
|
|
@@ -42217,7 +41355,8 @@ var __vue_render__ = function __vue_render__() {
|
|
|
42217
41355
|
}) : _c('AppManagerSliderPlan', {
|
|
42218
41356
|
attrs: {
|
|
42219
41357
|
"shop_domain": _vm.shop_domain,
|
|
42220
|
-
"host": _vm.host
|
|
41358
|
+
"host": _vm.host,
|
|
41359
|
+
"discount_code": _vm.discount_code
|
|
42221
41360
|
},
|
|
42222
41361
|
on: {
|
|
42223
41362
|
"handlePlanSelect": _vm.handlePlanSelect,
|
|
@@ -42232,10 +41371,10 @@ var __vue_staticRenderFns__ = [];
|
|
|
42232
41371
|
var __vue_inject_styles__ = undefined;
|
|
42233
41372
|
/* scoped */
|
|
42234
41373
|
|
|
42235
|
-
var __vue_scope_id__ = "data-v-
|
|
41374
|
+
var __vue_scope_id__ = "data-v-47c1608c";
|
|
42236
41375
|
/* module identifier */
|
|
42237
41376
|
|
|
42238
|
-
var __vue_module_identifier__ = "data-v-
|
|
41377
|
+
var __vue_module_identifier__ = "data-v-47c1608c";
|
|
42239
41378
|
/* functional template */
|
|
42240
41379
|
|
|
42241
41380
|
var __vue_is_functional_template__ = false;
|