@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.
@@ -41648,7 +41648,7 @@ var script$2 = {
41648
41648
  PSkeletonDisplayText,
41649
41649
  PEmptyState
41650
41650
  },
41651
- props: ['shop_domain', 'host'],
41651
+ props: ['shop_domain', 'host', 'discount_code'],
41652
41652
 
41653
41653
  data() {
41654
41654
  return {
@@ -41836,12 +41836,17 @@ var script$2 = {
41836
41836
  async getPlanUrl(plan) {
41837
41837
  let shopName = this.shop.name;
41838
41838
  let host = this.host;
41839
+ let discount_code = this.discount_code;
41839
41840
  let queryString = `shop=${shopName}`;
41840
41841
 
41841
41842
  if (host != null) {
41842
41843
  queryString += `&host=${host}`;
41843
41844
  }
41844
41845
 
41846
+ if (discount_code != null) {
41847
+ queryString += `&discount_code=${discount_code}`;
41848
+ }
41849
+
41845
41850
  const response = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plan/process/${plan.id}?${queryString}`).catch(error => {
41846
41851
  console.error(error);
41847
41852
  });
@@ -41909,12 +41914,18 @@ var script$2 = {
41909
41914
  },
41910
41915
 
41911
41916
  async fetchPlans() {
41917
+ let params = {
41918
+ 'shop_domain': this.shop_domain
41919
+ };
41920
+
41921
+ if (this.discount_code !== null) {
41922
+ params['discount_code'] = this.discount_code;
41923
+ }
41924
+
41912
41925
  let {
41913
41926
  data
41914
41927
  } = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plans`, {
41915
- params: {
41916
- 'shop_domain': this.shop_domain
41917
- }
41928
+ params: params
41918
41929
  }).catch(error => {
41919
41930
  console.error(error);
41920
41931
  });
@@ -42003,518 +42014,12 @@ var __vue_render__$2 = function () {
42003
42014
 
42004
42015
  var _c = _vm._self._c || _h;
42005
42016
 
42006
- return _vm.planLoading ? _c('PSkeletonPage', {
42007
- attrs: {
42008
- "title": _vm.translateMe('Plans'),
42009
- "fullWidth": false,
42010
- "primaryAction": "",
42011
- "secondaryActions": 2,
42012
- "breadcrumbs": false
42013
- }
42014
- }, [_c('PLayout', [_c('PLayoutSection', {
42015
- attrs: {
42016
- "oneThird": ""
42017
- }
42018
- }, [_c('PCard', {
42019
- attrs: {
42020
- "sectioned": ""
42021
- }
42022
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
42023
- attrs: {
42024
- "size": "small"
42025
- }
42026
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
42027
- attrs: {
42028
- "oneThird": ""
42029
- }
42030
- }, [_c('PCard', {
42031
- attrs: {
42032
- "sectioned": ""
42033
- }
42034
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
42035
- attrs: {
42036
- "size": "small"
42037
- }
42038
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
42039
- attrs: {
42040
- "oneThird": ""
42041
- }
42042
- }, [_c('PCard', {
42043
- attrs: {
42044
- "sectioned": ""
42045
- }
42046
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
42047
- attrs: {
42048
- "size": "small"
42049
- }
42050
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1)], 1), _vm._v(" "), _c('PLayout', {
42051
- staticStyle: {
42052
- "margin-top": "20px"
42053
- }
42054
- }, [_c('PLayoutSection', [_c('PCard', {
42055
- attrs: {
42056
- "sectioned": ""
42057
- }
42058
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
42059
- attrs: {
42060
- "sectioned": ""
42061
- }
42062
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
42063
- attrs: {
42064
- "sectioned": ""
42065
- }
42066
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
42067
- attrs: {
42068
- "sectioned": ""
42069
- }
42070
- }, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
42017
+ return _c('PEmptyState', {
42071
42018
  attrs: {
42072
42019
  "heading": _vm.translateMe('No Plans'),
42073
42020
  "image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
42074
42021
  }
42075
- }) : _c('PPage', {
42076
- staticClass: "app-manager-plan-page custom-title",
42077
- attrs: {
42078
- "title": _vm.translateMe('Plans'),
42079
- "subtitle": _vm.subtitleContent
42080
- }
42081
- }, [_c('PStack', {
42082
- attrs: {
42083
- "slot": "primaryAction"
42084
- },
42085
- slot: "primaryAction"
42086
- }, [_c('PStackItem', {
42087
- staticStyle: {
42088
- "margin-top": "20px"
42089
- }
42090
- }, [_c('PButtonGroup', {
42091
- staticClass: "btn-group",
42092
- attrs: {
42093
- "segmented": ""
42094
- }
42095
- }, [_vm.monthlyPlan.length && _vm.yearlyPlan.length ? _c('PButton', {
42096
- class: _vm.selectedPlan === 'monthly' ? 'plan-active-tab' : '',
42097
- style: _vm.selectedPlan === 'monthly' ? _vm.monthlySelectedStyle : _vm.monthlyStyle,
42098
- on: {
42099
- "click": function ($event) {
42100
- return _vm.selectPlan('monthly');
42101
- }
42102
- }
42103
- }, [_c('p', {
42104
- staticStyle: {
42105
- "font-size": "17px",
42106
- "font-weight": "500"
42107
- },
42108
- attrs: {
42109
- "slot": "default"
42110
- },
42111
- slot: "default"
42112
- }, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
42113
- class: _vm.selectedPlan === 'annually' ? 'plan-active-tab' : '',
42114
- style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
42115
- attrs: {
42116
- "primary": _vm.selectedPlan === 'annually'
42117
- },
42118
- on: {
42119
- "click": function ($event) {
42120
- return _vm.selectPlan('annually');
42121
- }
42122
- }
42123
- }, [_c('YearlyPlanPromotion')], 1) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c('hr', {
42124
- staticStyle: {
42125
- "width": "100%",
42126
- "margin-right": "auto",
42127
- "margin-left": "auto",
42128
- "margin-bottom": "20px"
42129
- }
42130
- }), _vm._v(" "), _c('PLayout', {
42131
- staticClass: "custom-plan"
42132
- }, [_c('PLayoutSection', [[[_c('PDataTable', {
42133
- staticClass: "plan-table"
42134
- }, [_c('template', {
42135
- slot: "head"
42136
- }, [_vm.selectedPlan === 'monthly' ? _c('PDataTableRow', {
42137
- staticStyle: {
42138
- "box-shadow": "none!important"
42139
- }
42140
- }, [_c('PDataTableCol', {
42141
- staticClass: "plan-heading",
42142
- staticStyle: {
42143
- "opacity": "0",
42144
- "visibility": "hidden",
42145
- "border": "0 !important"
42146
- }
42147
- }, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.monthlyPlan, function (plan, key) {
42148
- return [_c('PDataTableCol', {
42149
- class: {
42150
- 'first-column': key === 0,
42151
- 'plan-heading': true,
42152
- 'last-column': key + 1 === _vm.monthlyPlan.length
42153
- },
42154
- style: _vm.activePlanStyle(plan)
42155
- }, [plan.name !== 'Free' ? _c('b', {
42156
- staticStyle: {
42157
- "font-size": "16px"
42158
- }
42159
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42160
- staticStyle: {
42161
- "display": "flex",
42162
- "margin-top": "10px"
42163
- }
42164
- }, [_c('PHeading', {
42165
- staticStyle: {
42166
- "font-size": "25px",
42167
- "font-weight": "700"
42168
- }
42169
- }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42170
- staticStyle: {
42171
- "display": "flex",
42172
- "margin-top": "10px"
42173
- }
42174
- }, [_c('PHeading', {
42175
- staticStyle: {
42176
- "font-size": "25px",
42177
- "font-weight": "700"
42178
- }
42179
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
42180
- staticStyle: {
42181
- "margin-top": "5px",
42182
- "font-size": "17px"
42183
- }
42184
- }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
42185
- staticStyle: {
42186
- "display": "flex",
42187
- "margin-top": "7px"
42188
- }
42189
- }, [_c('PHeading', {
42190
- staticStyle: {
42191
- "font-size": "18px",
42192
- "font-weight": "500",
42193
- "text-decoration": "line-through"
42194
- }
42195
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42196
- staticStyle: {
42197
- "margin-top": "3px",
42198
- "font-size": "14px"
42199
- }
42200
- }, [_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', {
42201
- staticStyle: {
42202
- "display": "flex",
42203
- "margin-top": "10px"
42204
- }
42205
- }, [_c('PHeading', {
42206
- staticStyle: {
42207
- "font-size": "25px",
42208
- "font-weight": "700"
42209
- }
42210
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
42211
- staticStyle: {
42212
- "margin-top": "5px",
42213
- "font-size": "17px"
42214
- }
42215
- }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
42216
- staticStyle: {
42217
- "display": "flex",
42218
- "margin-top": "7px"
42219
- }
42220
- }, [_c('PHeading', {
42221
- staticStyle: {
42222
- "font-size": "18px",
42223
- "font-weight": "500",
42224
- "text-decoration": "line-through"
42225
- }
42226
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42227
- staticStyle: {
42228
- "margin-top": "3px",
42229
- "font-size": "14px"
42230
- }
42231
- }, [_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', {
42232
- staticStyle: {
42233
- "display": "flex",
42234
- "margin-top": "10px"
42235
- }
42236
- }, [_c('PHeading', {
42237
- staticStyle: {
42238
- "font-size": "25px",
42239
- "font-weight": "700"
42240
- }
42241
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
42242
- staticStyle: {
42243
- "margin-top": "5px",
42244
- "font-size": "17px"
42245
- }
42246
- }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1), _vm._v(" "), _c('p', {
42247
- staticStyle: {
42248
- "display": "flex",
42249
- "margin-top": "7px"
42250
- }
42251
- }, [_c('PHeading', {
42252
- staticStyle: {
42253
- "font-size": "18px",
42254
- "font-weight": "500",
42255
- "text-decoration": "line-through"
42256
- }
42257
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42258
- staticStyle: {
42259
- "margin-top": "3px",
42260
- "font-size": "14px"
42261
- }
42262
- }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)]) : _c('div', [_c('p', {
42263
- staticStyle: {
42264
- "display": "flex",
42265
- "margin-top": "10px"
42266
- }
42267
- }, [_c('PHeading', {
42268
- staticStyle: {
42269
- "font-size": "25px",
42270
- "font-weight": "700"
42271
- }
42272
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42273
- staticStyle: {
42274
- "margin-top": "5px",
42275
- "font-size": "17px"
42276
- }
42277
- }, [_vm._v("/" + _vm._s(_vm.translateMe("mo")))])], 1)])])];
42278
- })], 2) : _c('PDataTableRow', [_c('PDataTableCol', {
42279
- staticClass: "plan-heading",
42280
- staticStyle: {
42281
- "opacity": "0",
42282
- "visibility": "hidden",
42283
- "border": "0 !important"
42284
- }
42285
- }, [_c('b', [_vm._v(_vm._s(_vm.translateMe('features')))])]), _vm._v(" "), _vm._l(_vm.yearlyPlan, function (plan, key) {
42286
- return [_c('PDataTableCol', {
42287
- class: {
42288
- 'first-column': key === 0,
42289
- 'plan-heading': true,
42290
- 'last-column': key + 1 === _vm.yearlyPlan.length
42291
- },
42292
- style: _vm.activePlanStyle(plan)
42293
- }, [plan.name !== 'Free' ? _c('b', {
42294
- staticStyle: {
42295
- "font-size": "16px"
42296
- }
42297
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), plan.price === 0 ? _c('div', [_c('p', {
42298
- staticStyle: {
42299
- "display": "flex",
42300
- "margin-top": "10px"
42301
- }
42302
- }, [_c('PHeading', {
42303
- staticStyle: {
42304
- "font-size": "25px",
42305
- "font-weight": "700"
42306
- }
42307
- }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('p', {
42308
- staticStyle: {
42309
- "display": "flex",
42310
- "margin-top": "10px"
42311
- }
42312
- }, [_c('PHeading', {
42313
- staticStyle: {
42314
- "font-size": "25px",
42315
- "font-weight": "700"
42316
- }
42317
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
42318
- staticStyle: {
42319
- "margin-top": "5px",
42320
- "font-size": "17px"
42321
- }
42322
- }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
42323
- staticStyle: {
42324
- "display": "flex",
42325
- "margin-top": "7px"
42326
- }
42327
- }, [_c('PHeading', {
42328
- staticStyle: {
42329
- "font-size": "18px",
42330
- "font-weight": "500",
42331
- "text-decoration": "line-through"
42332
- }
42333
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42334
- staticStyle: {
42335
- "margin-top": "3px",
42336
- "font-size": "14px"
42337
- }
42338
- }, [_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', {
42339
- staticStyle: {
42340
- "display": "flex",
42341
- "margin-top": "10px"
42342
- }
42343
- }, [_c('PHeading', {
42344
- staticStyle: {
42345
- "font-size": "25px",
42346
- "font-weight": "700"
42347
- }
42348
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
42349
- staticStyle: {
42350
- "margin-top": "5px",
42351
- "font-size": "17px"
42352
- }
42353
- }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
42354
- staticStyle: {
42355
- "display": "flex",
42356
- "margin-top": "7px"
42357
- }
42358
- }, [_c('PHeading', {
42359
- staticStyle: {
42360
- "font-size": "18px",
42361
- "font-weight": "500",
42362
- "text-decoration": "line-through"
42363
- }
42364
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42365
- staticStyle: {
42366
- "margin-top": "3px",
42367
- "font-size": "14px"
42368
- }
42369
- }, [_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', {
42370
- staticStyle: {
42371
- "display": "flex",
42372
- "margin-top": "10px"
42373
- }
42374
- }, [_c('PHeading', {
42375
- staticStyle: {
42376
- "font-size": "25px",
42377
- "font-weight": "700"
42378
- }
42379
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
42380
- staticStyle: {
42381
- "margin-top": "5px",
42382
- "font-size": "17px"
42383
- }
42384
- }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1), _vm._v(" "), _c('p', {
42385
- staticStyle: {
42386
- "display": "flex",
42387
- "margin-top": "7px"
42388
- }
42389
- }, [_c('PHeading', {
42390
- staticStyle: {
42391
- "font-size": "18px",
42392
- "font-weight": "500",
42393
- "text-decoration": "line-through"
42394
- }
42395
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42396
- staticStyle: {
42397
- "margin-top": "3px",
42398
- "font-size": "14px"
42399
- }
42400
- }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)]) : _c('div', [_c('p', {
42401
- staticStyle: {
42402
- "display": "flex",
42403
- "margin-top": "10px"
42404
- }
42405
- }, [_c('PHeading', {
42406
- staticStyle: {
42407
- "font-size": "25px",
42408
- "font-weight": "700"
42409
- }
42410
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
42411
- staticStyle: {
42412
- "margin-top": "5px",
42413
- "font-size": "17px"
42414
- }
42415
- }, [_vm._v("/" + _vm._s(_vm.translateMe("year")))])], 1)])])];
42416
- })], 2)], 1), _vm._v(" "), _c('template', {
42417
- slot: "body"
42418
- }, [_vm._l(_vm.featuresByGroup, function (featureGroup, groupKey) {
42419
- return [groupKey !== 'null' ? _c('PDataTableRow', {
42420
- staticClass: "app-manager-group-row"
42421
- }, [_c('PDataTableCol', {
42422
- staticClass: "app-manager-group-cell",
42423
- attrs: {
42424
- "colspan": _vm.selectedPlan === 'monthly' ? _vm.monthlyPlan.length + 1 : _vm.yearlyPlan.length + 1
42425
- }
42426
- }, [_vm._v(_vm._s(_vm.translateMe(groupKey)))])], 1) : _vm._e(), _vm._v(" "), _vm._l(featureGroup, function (feature, rIndex) {
42427
- return _c('PDataTableRow', {
42428
- key: "row-" + (rIndex + groupKey)
42429
- }, [_c('PDataTableCol', {
42430
- class: "feature__type__" + feature.value_type + " feature__class"
42431
- }, [_vm._v(_vm._s(_vm.translateMe(feature.name)))]), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
42432
- return _c('PDataTableCol', {
42433
- key: "cell-" + cIndex + "-row-" + rIndex,
42434
- class: "feature__type__" + feature.value_type,
42435
- style: _vm.activePlanStyle(plan)
42436
- }, [plan.features ? [feature.value_type === 'boolean' ? [plan.features[feature.uuid] ? _c('PIcon', {
42437
- attrs: {
42438
- "color": "success",
42439
- "source": "TickMinor"
42440
- }
42441
- }) : _c('PIcon', {
42442
- attrs: {
42443
- "color": "subdued",
42444
- "source": "MinusMinor"
42445
- }
42446
- })] : [plan.features[feature.uuid] ? _c('span', [_vm._v(_vm._s(_vm.translateMe(_vm.format(plan.features[feature.uuid]))))]) : _c('PIcon', {
42447
- attrs: {
42448
- "color": "subdued",
42449
- "source": "MinusMinor"
42450
- }
42451
- })]] : [_c('PIcon', {
42452
- attrs: {
42453
- "color": "subdued",
42454
- "source": "MinusMinor"
42455
- }
42456
- })]], 2);
42457
- })], 2);
42458
- })];
42459
- }), _vm._v(" "), _vm.plans.length ? _c('PDataTableRow', {
42460
- staticClass: "row-alignment"
42461
- }, [_c('PDataTableCol'), _vm._v(" "), _vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, cIndex) {
42462
- return _c('PDataTableCol', {
42463
- key: "cell-" + cIndex + "-row-plan",
42464
- staticStyle: {
42465
- "max-width": "0"
42466
- }
42467
- }, [_vm.isCurrentPlan(plan) ? _c('PButton', {
42468
- attrs: {
42469
- "disabled": _vm.isCurrentPlan(plan),
42470
- "full-width": "",
42471
- "pressed": _vm.isCurrentPlan(plan)
42472
- }
42473
- }, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
42474
- class: _vm.planChooseButtonClass(plan),
42475
- attrs: {
42476
- "full-width": "",
42477
- "primary": _vm.isPlanButtonColor(plan)
42478
- },
42479
- on: {
42480
- "click": function ($event) {
42481
- plan ? _vm.getPlanUrl(plan) : 'javascript:void';
42482
- }
42483
- }
42484
- }, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
42485
- attrs: {
42486
- "disabled": true,
42487
- "full-width": "",
42488
- "pressed": true
42489
- }
42490
- }, [_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', {
42491
- staticClass: "footer-note-container"
42492
- }, [plan.store_base_plan && !plan.shopify_plans.includes(_vm.shop.shopify_plan) && !_vm.isCurrentPlan(plan) && !_vm.isSamePlanInOtherInterval(plan) ? _c('PTextStyle', {
42493
- staticClass: "text-break"
42494
- }, [_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);
42495
- })], 2) : _vm._e()], 2)], 2)]], _vm._v(" "), _vm.onboard ? _c('PStack', {
42496
- staticClass: "choose-plan-btn",
42497
- attrs: {
42498
- "alignment": "center",
42499
- "distribution": "center",
42500
- "vertical": ""
42501
- }
42502
- }, [_c('PStackItem', {
42503
- attrs: {
42504
- "fill": ""
42505
- }
42506
- }, [_c('PButton', {
42507
- attrs: {
42508
- "plain": ""
42509
- },
42510
- on: {
42511
- "click": _vm.activePlan
42512
- }
42513
- }, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners', {
42514
- on: {
42515
- "handlePlanBannerClose": _vm.handlePlanBannerClose
42516
- }
42517
- })], 2)], 1)], 1);
42022
+ });
42518
42023
  };
42519
42024
 
42520
42025
  var __vue_staticRenderFns__$2 = [];
@@ -42522,7 +42027,7 @@ var __vue_staticRenderFns__$2 = [];
42522
42027
 
42523
42028
  const __vue_inject_styles__$2 = function (inject) {
42524
42029
  if (!inject) return;
42525
- inject("data-v-2583b84c_0", {
42030
+ inject("data-v-9a387b72_0", {
42526
42031
  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}",
42527
42032
  map: undefined,
42528
42033
  media: undefined
@@ -42587,7 +42092,7 @@ var script$1 = {
42587
42092
  PSkeletonPage,
42588
42093
  PEmptyState
42589
42094
  },
42590
- props: ['shop_domain', 'host'],
42095
+ props: ['shop_domain', 'host', 'discount_code'],
42591
42096
 
42592
42097
  data() {
42593
42098
  return {
@@ -42789,12 +42294,17 @@ var script$1 = {
42789
42294
  async getPlanUrl(plan) {
42790
42295
  let shopName = this.shop.name;
42791
42296
  let host = this.host;
42297
+ let discount_code = this.discount_code;
42792
42298
  let queryString = `shop=${shopName}`;
42793
42299
 
42794
42300
  if (host != null) {
42795
42301
  queryString += `&host=${host}`;
42796
42302
  }
42797
42303
 
42304
+ if (discount_code != null) {
42305
+ queryString += `&discount_code=${discount_code}`;
42306
+ }
42307
+
42798
42308
  const response = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plan/process/${plan.id}?${queryString}`).catch(error => {
42799
42309
  console.error(error);
42800
42310
  });
@@ -42921,12 +42431,18 @@ var script$1 = {
42921
42431
  },
42922
42432
 
42923
42433
  async fetchPlans() {
42434
+ let params = {
42435
+ 'shop_domain': this.shop_domain
42436
+ };
42437
+
42438
+ if (this.discount_code !== null) {
42439
+ params['discount_code'] = this.discount_code;
42440
+ }
42441
+
42924
42442
  let {
42925
42443
  data
42926
42444
  } = await axios.get(`${this.app_manager_config.baseUrl}/api/app-manager/plans`, {
42927
- params: {
42928
- 'shop_domain': this.shop_domain
42929
- }
42445
+ params: params
42930
42446
  }).catch(error => {
42931
42447
  console.error(error);
42932
42448
  });
@@ -43075,395 +42591,12 @@ var __vue_render__$1 = function () {
43075
42591
 
43076
42592
  var _c = _vm._self._c || _h;
43077
42593
 
43078
- return _vm.planLoading ? _c('PSkeletonPage', {
43079
- attrs: {
43080
- "title": _vm.translateMe('Plans'),
43081
- "fullWidth": false,
43082
- "primaryAction": "",
43083
- "secondaryActions": 2,
43084
- "breadcrumbs": false
43085
- }
43086
- }, [_c('PLayout', [_c('PLayoutSection', {
43087
- attrs: {
43088
- "oneThird": ""
43089
- }
43090
- }, [_c('PCard', {
43091
- attrs: {
43092
- "sectioned": ""
43093
- }
43094
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
43095
- attrs: {
43096
- "size": "small"
43097
- }
43098
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
43099
- attrs: {
43100
- "oneThird": ""
43101
- }
43102
- }, [_c('PCard', {
43103
- attrs: {
43104
- "sectioned": ""
43105
- }
43106
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
43107
- attrs: {
43108
- "size": "small"
43109
- }
43110
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1), _vm._v(" "), _c('PLayoutSection', {
43111
- attrs: {
43112
- "oneThird": ""
43113
- }
43114
- }, [_c('PCard', {
43115
- attrs: {
43116
- "sectioned": ""
43117
- }
43118
- }, [_c('PTextContainer', [_c('PSkeletonDisplayText', {
43119
- attrs: {
43120
- "size": "small"
43121
- }
43122
- }), _vm._v(" "), _c('PSkeletonBodyText')], 1)], 1)], 1)], 1), _vm._v(" "), _c('PLayout', {
43123
- staticStyle: {
43124
- "margin-top": "20px"
43125
- }
43126
- }, [_c('PLayoutSection', [_c('PCard', {
43127
- attrs: {
43128
- "sectioned": ""
43129
- }
43130
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
43131
- attrs: {
43132
- "sectioned": ""
43133
- }
43134
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
43135
- attrs: {
43136
- "sectioned": ""
43137
- }
43138
- }, [_c('PSkeletonBodyText')], 1), _vm._v(" "), _c('PCard', {
43139
- attrs: {
43140
- "sectioned": ""
43141
- }
43142
- }, [_c('PSkeletonBodyText')], 1)], 1)], 1)], 1) : !this.planLoading && this.plans.length === 0 ? _c('PEmptyState', {
42594
+ return _c('PEmptyState', {
43143
42595
  attrs: {
43144
42596
  "heading": _vm.translateMe('No Plans'),
43145
42597
  "image": "https://cdn.shopify.com/s/files/1/0262/4071/2726/files/emptystate-files.png"
43146
42598
  }
43147
- }) : _c('PPage', {
43148
- staticClass: "app-manager-plan-page-slider custom-title",
43149
- attrs: {
43150
- "title": _vm.translateMe('Plans'),
43151
- "subtitle": _vm.subtitleContent
43152
- }
43153
- }, [_c('PStack', {
43154
- attrs: {
43155
- "slot": "primaryAction"
43156
- },
43157
- slot: "primaryAction"
43158
- }, [_c('PStackItem', {
43159
- staticStyle: {
43160
- "margin-top": "20px"
43161
- }
43162
- }, [_c('PButtonGroup', {
43163
- staticClass: "btn-group",
43164
- attrs: {
43165
- "segmented": ""
43166
- }
43167
- }, [_vm.monthlyPlan.length && _vm.yearlyPlan.length ? _c('PButton', {
43168
- class: _vm.selectedPlan === 'monthly' ? 'plan-active-tab' : '',
43169
- style: _vm.selectedPlan === 'monthly' ? _vm.monthlySelectedStyle : _vm.monthlyStyle,
43170
- on: {
43171
- "click": function ($event) {
43172
- return _vm.selectPlan('monthly');
43173
- }
43174
- }
43175
- }, [_c('p', {
43176
- staticStyle: {
43177
- "font-size": "17px",
43178
- "font-weight": "500"
43179
- },
43180
- attrs: {
43181
- "slot": "default"
43182
- },
43183
- slot: "default"
43184
- }, [_vm._v(_vm._s(_vm.translateMe('Monthly')))])]) : _vm._e(), _vm._v(" "), _vm.yearlyPlan.length && _vm.monthlyPlan.length ? _c('PButton', {
43185
- class: _vm.selectedPlan === 'annually' ? 'plan-active-tab' : '',
43186
- style: _vm.selectedPlan === 'annually' ? _vm.yearlySelectedStyle : _vm.yearlyStyle,
43187
- attrs: {
43188
- "primary": _vm.selectedPlan === 'annually'
43189
- },
43190
- on: {
43191
- "click": function ($event) {
43192
- return _vm.selectPlan('annually');
43193
- }
43194
- }
43195
- }, [_c('YearlyPlanPromotion')], 1) : _vm._e()], 1)], 1)], 1), _vm._v(" "), _c('hr', {
43196
- staticStyle: {
43197
- "width": "100%",
43198
- "margin-right": "auto",
43199
- "margin-left": "auto",
43200
- "margin-bottom": "20px"
43201
- }
43202
- }), _vm._v(" "), _c('PLayout', {
43203
- staticClass: "custom-plan"
43204
- }, [_c('PLayoutSection', {
43205
- staticStyle: {
43206
- "display": "flex",
43207
- "border-radius": "20px"
43208
- }
43209
- }, [[[_c('div', {
43210
- staticClass: "Polaris-ResourceList__ResourceListWrapper features",
43211
- staticStyle: {
43212
- "width": "30%"
43213
- }
43214
- }, [_c('div', {
43215
- staticClass: "plan__price"
43216
- }), _vm._v(" "), _c('ul', {
43217
- staticClass: "Polaris-ResourceList"
43218
- }, _vm._l(_vm.features, function (feature, key) {
43219
- return _c('li', {
43220
- key: key,
43221
- staticClass: "Polaris-ResourceList__ItemWrapper pro_title",
43222
- class: feature.value_type + "__type__" + feature.slug + " feature__type__" + feature.value_type + " feature__class"
43223
- }, [_c('div', {
43224
- staticClass: "Polaris-ResourceList-Item__Container"
43225
- }, [_c('div', {
43226
- staticClass: "Polaris-ResourceList-Item__Content"
43227
- }, [_c('h1', {
43228
- staticClass: "for-price-per-month"
43229
- }, [_c('span', [_vm._v(_vm._s(_vm.translateMe(feature.name)))])])])])]);
43230
- }), 0)])], _vm._v(" "), _c('carousel', {
43231
- staticStyle: {
43232
- "width": "70%"
43233
- },
43234
- attrs: {
43235
- "per-page": _vm.perPage,
43236
- "mouseDrag": false,
43237
- "navigation-enabled": true,
43238
- "paginationEnabled": false,
43239
- "navigateTo": [this.currentSlide, true]
43240
- },
43241
- on: {
43242
- "transition-start": function ($event) {
43243
- return _vm.handleNavigationClick($event);
43244
- }
43245
- }
43246
- }, [_vm._l(_vm.selectedPlan === 'monthly' ? _vm.monthlyPlan : _vm.yearlyPlan, function (plan, key) {
43247
- return _c('slide', {
43248
- key: "slide-" + key,
43249
- class: "slide-" + key,
43250
- attrs: {
43251
- "id": key
43252
- }
43253
- }, [_c('div', {
43254
- staticClass: "plan__price",
43255
- style: _vm.activePlanStyle(plan)
43256
- }, [plan.price === 0 ? _c('div', [plan.name !== 'Free' ? _c('b', {
43257
- staticStyle: {
43258
- "font-size": "16px"
43259
- }
43260
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]) : _vm._e(), _vm._v(" "), _c('p', {
43261
- staticStyle: {
43262
- "display": "flex",
43263
- "margin-top": "10px"
43264
- }
43265
- }, [_c('PHeading', {
43266
- staticStyle: {
43267
- "font-size": "25px",
43268
- "font-weight": "700"
43269
- }
43270
- }, [_vm._v(_vm._s(_vm.translateMe('Free')))])], 1)]) : plan.discount && plan.discount > 0 && !_vm.isCurrentPlan(plan) ? _c('div', [_c('b', {
43271
- staticStyle: {
43272
- "font-size": "16px"
43273
- }
43274
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43275
- staticStyle: {
43276
- "display": "flex",
43277
- "margin-top": "10px"
43278
- }
43279
- }, [_c('PHeading', {
43280
- staticStyle: {
43281
- "font-size": "25px",
43282
- "font-weight": "700"
43283
- }
43284
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculateDiscountedPrice(plan)).toFixed(2)))]), _vm._v(" "), _c('b', {
43285
- staticStyle: {
43286
- "margin-top": "5px",
43287
- "font-size": "17px"
43288
- }
43289
- }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
43290
- staticStyle: {
43291
- "display": "flex",
43292
- "margin-top": "7px"
43293
- }
43294
- }, [_c('PHeading', {
43295
- staticStyle: {
43296
- "font-size": "18px",
43297
- "font-weight": "500",
43298
- "text-decoration": "line-through"
43299
- }
43300
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
43301
- staticStyle: {
43302
- "margin-top": "3px",
43303
- "font-size": "14px"
43304
- }
43305
- }, [_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', {
43306
- staticStyle: {
43307
- "font-size": "16px"
43308
- }
43309
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43310
- staticStyle: {
43311
- "display": "flex",
43312
- "margin-top": "10px"
43313
- }
43314
- }, [_c('PHeading', {
43315
- staticStyle: {
43316
- "font-size": "25px",
43317
- "font-weight": "700"
43318
- }
43319
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
43320
- staticStyle: {
43321
- "margin-top": "5px",
43322
- "font-size": "17px"
43323
- }
43324
- }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
43325
- staticStyle: {
43326
- "display": "flex",
43327
- "margin-top": "7px"
43328
- }
43329
- }, [_c('PHeading', {
43330
- staticStyle: {
43331
- "font-size": "18px",
43332
- "font-weight": "500",
43333
- "text-decoration": "line-through"
43334
- }
43335
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
43336
- staticStyle: {
43337
- "margin-top": "3px",
43338
- "font-size": "14px"
43339
- }
43340
- }, [_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', {
43341
- staticStyle: {
43342
- "font-size": "16px"
43343
- }
43344
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43345
- staticStyle: {
43346
- "display": "flex",
43347
- "margin-top": "10px"
43348
- }
43349
- }, [_c('PHeading', {
43350
- staticStyle: {
43351
- "font-size": "25px",
43352
- "font-weight": "700"
43353
- }
43354
- }, [_vm._v("$" + _vm._s(parseFloat(_vm.calculatePromotionalDiscountedPrice(plan, _vm.promotional_discount)).toFixed(2)))]), _vm._v(" "), _c('b', {
43355
- staticStyle: {
43356
- "margin-top": "5px",
43357
- "font-size": "17px"
43358
- }
43359
- }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1), _vm._v(" "), _c('p', {
43360
- staticStyle: {
43361
- "display": "flex",
43362
- "margin-top": "7px"
43363
- }
43364
- }, [_c('PHeading', {
43365
- staticStyle: {
43366
- "font-size": "18px",
43367
- "font-weight": "500",
43368
- "text-decoration": "line-through"
43369
- }
43370
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
43371
- staticStyle: {
43372
- "margin-top": "3px",
43373
- "font-size": "14px"
43374
- }
43375
- }, [_vm._v("/" + _vm._s(_vm.translateMe(_vm.selectedPlan === 'monthly' ? "mo" : "year")))])], 1)]) : _c('div', [_c('b', {
43376
- staticStyle: {
43377
- "font-size": "16px"
43378
- }
43379
- }, [_vm._v(_vm._s(_vm.translateMe(plan.name)))]), _vm._v(" "), _c('p', {
43380
- staticStyle: {
43381
- "display": "flex",
43382
- "margin-top": "10px"
43383
- }
43384
- }, [_c('PHeading', {
43385
- staticStyle: {
43386
- "font-size": "25px",
43387
- "font-weight": "700"
43388
- }
43389
- }, [_vm._v("$" + _vm._s(parseFloat(plan.price).toFixed(2)))]), _vm._v(" "), _c('b', {
43390
- staticStyle: {
43391
- "margin-top": "5px",
43392
- "font-size": "17px"
43393
- }
43394
- }, [_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) {
43395
- return _c('li', {
43396
- key: key,
43397
- class: feature.value_type + "__type__" + feature.slug + " feature__list feature__type__" + feature.value_type,
43398
- style: _vm.activePlanStyle(plan)
43399
- }, [_c('div', [plan.features && plan.features[feature.uuid] ? [plan.features[feature.uuid].value_type === 'boolean' ? [parseInt(plan.features[feature.uuid].value) === 1 ? _c('PIcon', {
43400
- attrs: {
43401
- "color": "success",
43402
- "source": "TickMinor"
43403
- }
43404
- }) : _c('PIcon', {
43405
- attrs: {
43406
- "color": "subdued",
43407
- "source": "MinusMinor"
43408
- }
43409
- })] : [plan.features[feature.uuid].value ? _c('span', [_vm._v(_vm._s(_vm.format(plan.features[feature.uuid])))]) : _c('PIcon', {
43410
- attrs: {
43411
- "color": "subdued",
43412
- "source": "MinusMinor"
43413
- }
43414
- })]] : [_c('PIcon', {
43415
- attrs: {
43416
- "color": "subdued",
43417
- "source": "MinusMinor"
43418
- }
43419
- })]], 2)]);
43420
- }), _vm._v(" "), _c('li', [_vm.isCurrentPlan(plan) ? _c('PButton', {
43421
- attrs: {
43422
- "disabled": _vm.isCurrentPlan(plan),
43423
- "full-width": "",
43424
- "pressed": _vm.isCurrentPlan(plan)
43425
- }
43426
- }, [_vm._v("\n " + _vm._s(_vm.translateMe('Current Plan')) + "\n ")]) : !plan.store_base_plan || plan.shopify_plans.includes(_vm.shop.shopify_plan) ? _c('PButton', {
43427
- class: _vm.planChooseButtonClass(plan),
43428
- attrs: {
43429
- "full-width": "",
43430
- "primary": _vm.isPlanButtonColor(plan)
43431
- },
43432
- on: {
43433
- "click": function ($event) {
43434
- plan ? _vm.getPlanUrl(plan) : 'javascript:void';
43435
- }
43436
- }
43437
- }, [_vm._v("\n " + _vm._s(_vm.translateMe('Choose Plan')) + "\n ")]) : _c('PButton', {
43438
- attrs: {
43439
- "disabled": true,
43440
- "full-width": "",
43441
- "pressed": true
43442
- }
43443
- }, [_vm._v("\n " + _vm._s(_vm.translateMe('Not applicable')) + "\n ")])], 1)], 2)])]);
43444
- })], 2)]], 2)], 1), _vm._v(" "), _vm.onboard ? _c('PStack', {
43445
- staticClass: "choose-plan-btn",
43446
- attrs: {
43447
- "alignment": "center",
43448
- "distribution": "center",
43449
- "vertical": ""
43450
- }
43451
- }, [_c('PStackItem', {
43452
- attrs: {
43453
- "fill": ""
43454
- }
43455
- }, [_c('PButton', {
43456
- attrs: {
43457
- "plain": ""
43458
- },
43459
- on: {
43460
- "click": _vm.activePlan
43461
- }
43462
- }, [_vm._v(_vm._s(_vm.translateMe('I will choose the plan later')))])], 1)], 1) : _vm._e(), _vm._v(" "), _c('PlanBanners', {
43463
- on: {
43464
- "handlePlanBannerClose": _vm.handlePlanBannerClose
43465
- }
43466
- })], 1);
42599
+ });
43467
42600
  };
43468
42601
 
43469
42602
  var __vue_staticRenderFns__$1 = [];
@@ -43471,7 +42604,7 @@ var __vue_staticRenderFns__$1 = [];
43471
42604
 
43472
42605
  const __vue_inject_styles__$1 = function (inject) {
43473
42606
  if (!inject) return;
43474
- inject("data-v-50592085_0", {
42607
+ inject("data-v-ab978d9c_0", {
43475
42608
  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}",
43476
42609
  map: undefined,
43477
42610
  media: undefined
@@ -43521,6 +42654,10 @@ var script = {
43521
42654
  type: String,
43522
42655
  default: null
43523
42656
  },
42657
+ discount_code: {
42658
+ type: String,
42659
+ default: null
42660
+ },
43524
42661
  translations: {
43525
42662
  type: Object,
43526
42663
 
@@ -43572,7 +42709,8 @@ var __vue_render__ = function () {
43572
42709
  return _vm.group_plan ? _c('AppManagerGroupPlan', {
43573
42710
  attrs: {
43574
42711
  "shop_domain": _vm.shop_domain,
43575
- "host": _vm.host
42712
+ "host": _vm.host,
42713
+ "discount_code": _vm.discount_code
43576
42714
  },
43577
42715
  on: {
43578
42716
  "handlePlanSelect": _vm.handlePlanSelect,
@@ -43581,7 +42719,8 @@ var __vue_render__ = function () {
43581
42719
  }) : _c('AppManagerSliderPlan', {
43582
42720
  attrs: {
43583
42721
  "shop_domain": _vm.shop_domain,
43584
- "host": _vm.host
42722
+ "host": _vm.host,
42723
+ "discount_code": _vm.discount_code
43585
42724
  },
43586
42725
  on: {
43587
42726
  "handlePlanSelect": _vm.handlePlanSelect,
@@ -43596,7 +42735,7 @@ var __vue_staticRenderFns__ = [];
43596
42735
  const __vue_inject_styles__ = undefined;
43597
42736
  /* scoped */
43598
42737
 
43599
- const __vue_scope_id__ = "data-v-07f64e4e";
42738
+ const __vue_scope_id__ = "data-v-47c1608c";
43600
42739
  /* module identifier */
43601
42740
 
43602
42741
  const __vue_module_identifier__ = undefined;