(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-a1e3d6be"],{"14a2":function(t,e,i){"use strict";i("14d9");var s=i("e6fd"),a=i("7aae"),n=i("ce4b"),r=i("59d0"),c=i("636e"),o=i("2544");c={name:"VizardMobileUpgradationWindow",components:{VizardConfirmUpdatePlan:i("f30f").a},mixins:[c.a,o.a],data(){return{referral:"",coupon:!1,isYearDiscount:r.a.isYearDiscount,yearDiscountPercentage:r.a.yearDiscountPercentage,isContactUsShown:!1,pricingType:"yearly",pricing:[r.a.details[1],r.a.details[2]],contactUsTitle:"Feature not available for your plan",contactUsText:"You currently do not have access to this feature. To enable it, you'll need to reach out to us to upgrade your plan.",priceLoading:!0,isRequest:!1,priceTimer:null,sellPrice:{month:{starter:{sellPrice:0,tagPrice:0},pro:{sellPrice:0,tagPrice:0}},year:{starter:{sellPrice:0,tagPrice:0},pro:{sellPrice:0,tagPrice:0}}},monthlyButtonWidth:1.53,yearlyButtonWidth:1.5}},props:{openPage:{type:String,default:""},title:{type:String,default:"Upgrade your plan"},prompt:{type:String,default:"Upgrade your plan to get more upload minutes and access to all features."}},methods:{getYearButtonWidth(){return 1.8},getMonthlyButtonWidth(){return 1.23},updateTestPriceType(t,e){this.pricing[t].testPriceValue=e,this.setPricing()},initSellPrice(t){this.updateSellPrice(t),this.updatePricing()},openPricing(){this.$router.push({name:"pricing"})},changePricingType(){"monthly"===this.pricingType?this.pricingType="yearly":"yearly"===this.pricingType&&(this.pricingType="monthly"),this.setPricing()},close(){this.$emit("close")}},mounted(){this.initRewardful(),this.$store.state.userSubscribeInfo.privilegeType===s.a.PRIVILEGE_TYPE_TEAM||this.$store.state.userSubscribeInfo.privilegeType===s.a.PRIVILEGE_TYPE_CUSTOM?("maxVideoLength"===this.openPage?(this.contactUsTitle="Need more project minutes?",this.contactUsText="You have reached your project minute limit for this month. Contact sales to upgrade your plan and request for more usage minutes."):(this.contactUsTitle="Feature not available for your plan",this.contactUsText="You currently do not have access to this feature. To enable it, you'll need to reach out to us to upgrade your plan."),this.isContactUsShown=!0):(Object(a.recordPopupTiming)(s.a.SERVE_SAVE_WINDOW_TYPE_UPGRADE),this.isContactUsShown=!1),0===this.$store.state.subscriptionList.length?this.getSubscriptionList():this.initSellPrice(this.$store.state.subscriptionList),this.isDiscount()&&(this.pricingType="monthly"),""!==this.openPage&&null!==this.openPage&&n.a.collect(n.a.upgrade_popup,{entry:this.openPage,title:this.title,prompt:this.prompt}),this.$nextTick(()=>{let t=document.getElementsByTagName("html")[0].style.fontSize;t=Number(t.slice(0,-2)),this.monthlyButtonWidth=this.$refs.monthlyButton.clientWidth/t})},beforeDestroy(){clearInterval(this.priceTimer)}},i("56ba"),o=i("2877"),i=Object(o.a)(c,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bg"},[i("div",{staticClass:"close",on:{click:t.close}},[i("iconpark-icon",{attrs:{name:"close"}})],1),i("div",{staticClass:"upgrade-window"},[i("div",{staticClass:"upgrade-scroll"},[i("div",{staticClass:"upgrade-content"},[i("p",{staticClass:"title"},[t._v(t._s(t.title))]),i("p",{staticClass:"second-title"},[t._v(t._s(t.prompt))]),i("div",{staticClass:"pricing-select",on:{click:t.changePricingType}},[i("div",{staticClass:"button-area"},[i("div",{staticClass:"pricing-switch-button",class:{"left-button":"monthly"===t.pricingType,"right-button":"yearly"===t.pricingType},style:{width:"yearly"===t.pricingType?t.getYearButtonWidth()+"rem":t.getMonthlyButtonWidth()+"rem",left:"yearly"===t.pricingType?t.getMonthlyButtonWidth()+"rem":"0rem"}}),i("button",{class:{"active-button":"monthly"===t.pricingType},style:{width:t.getMonthlyButtonWidth()+"rem"}},[t._v(" Monthly ")]),i("button",{class:{"active-button":"yearly"===t.pricingType},style:{width:t.getYearButtonWidth()+"rem"}},[t._v(" Yearly "),t.$store.state.priceTestUser?t._e():[t._v("(up to 64% off)")]],2)])]),i("div",{staticClass:"upgrade-price"},t._l(t.pricing,(function(e,s){return i("div",{key:s,class:{"pricing-div":!0,"high-line":0===s}},[0===s?i("div",{staticClass:"popular"},[t._v("Popular")]):t._e(),0!==s||t.$store.state.priceTestUser?t._e():i("div",{staticClass:"popular"},[i("span",[t._v("Limited Time Offer")])]),i("div",{staticClass:"padding"},[i("h2",[t._v(t._s(e.title))]),e.second?i("h3",[t._v(t._s(e.second))]):t._e(),e.second2?i("h3",{staticClass:"custom-h3"},[t._v(t._s(e.second2))]):t._e(),t.isDisplayDiscount("tag",s)&&t.getDiscountPercentage(s)?i("p",{staticClass:"discount"},[t._v(" "+t._s(t.getDiscountPercentage(s)))]):t._e(),e.pricing?i("div",{class:{"pricing-detail":!0}},[t.priceLoading?i("div",{staticClass:"price-loading project-loading"}):t._e(),i("div",{staticClass:"price-num"},[i("p",{staticClass:"price notranslate"},[t._v("$"),i("span",{staticClass:"price-span"},[t._v(t._s(e.pricing.displayPrice))])]),i("div",{staticClass:"price-validity-area"},[t.$store.state.priceTestUser?t.isShowTestPriceDiscount(s,"win")?i("div",{staticClass:"test-price-discount"},[t._v(" save "+t._s(t.getTestPricePercentage(s,e.testPriceValue))+" ")]):t._e():[0===s?i("div",{staticClass:"test-price-discount"},["monthly"===t.pricingType?[t._v("33% OFF")]:[t._v("64% OFF")]],2):t._e(),1===s&&"yearly"===t.pricingType?i("div",{staticClass:"test-price-discount"},[t._v(" 47% OFF ")]):t._e()],i("p",{staticClass:"validity"},[t.$store.state.priceTestUser||0!==s?t._e():i("span",{staticClass:"tag-price"},[t._v("$"+t._s(e.pricing.tagPrice))]),t._v(t._s(e.pricing.time)+" ")])],2)]),i("p",{class:{"year-sum-price notranslate":!0}},[t._v(" "+t._s(e.seat)),"yearly"===t.pricingType?i("span",[t._v(", $"+t._s(parseInt(12*e.pricing.sellPrice*e.seatNum))+" "+t._s(e.pricing.sumPrice))]):t._e(),"yearly"!==t.pricingType&&1<e.seatNum?i("span",[t._v(", starting from $"+t._s(parseInt(e.pricing.sellPrice*e.seatNum)))]):t._e()])]):t._e(),i("button",{class:{"style-no-allow-button":!t.getAllowState(e)&&"border"!==e.button.type,"purple-border-button":"border"===e.button.type,"cancel-button purple-button":"grey"===e.button.type},on:{click:function(i){return t.subscribeClick(e,"mobileUpgradeWin")}}},[t._v(" "+t._s(t.changeButtonText(e.button.text,e))+" ")])]),i("ul",{staticClass:"padding list"},[i("li",[t.$store.state.priceTestUser&&0===s?i("div",{staticClass:"line-upload-time"},[i("div",{staticClass:"line-upload-time-icon flex-center"},[i("iconpark-icon",{attrs:{name:"upload-cloud-01"}})],1),i("div",{staticClass:"subscription-select"},t._l(e.testPrice,(function(a,n){return i("div",{key:n,class:{active:e.testPriceValue===a.value},on:{click:function(e){return t.updateTestPriceType(s,a.value)}}},[t._v(" "+t._s(a.label)+" ")])})),0),i("span",[t._v("upload minutes/mo")])]):i("div",{staticClass:"line-upload-time"},[i("div",{staticClass:"line-upload-time-icon flex-center"},[i("iconpark-icon",{attrs:{name:e.includes[0].icon}})],1),t._v(t._s(e.includes[0].text)+" ")])])]),i("div",{staticClass:"border-line"}),i("div",{staticClass:"intro-ul"},[i("div",{staticClass:"des-title"},[t._v(" "+t._s(e.desTitle)+" ")]),i("ul",{staticClass:"pricing-ul"},[t._l(e.desIntro,(function(e,s){return[i("li",{key:s},[i("div",{staticClass:"line-upload-time"},[i("div",{staticClass:"line-upload-time-icon flex-center"},[i("iconpark-icon",{attrs:{name:e.icon}})],1),t._v(t._s(e.text)+" ")])])]}))],2)])])})),0),i("p",{staticClass:"custom-plan-line"},[t._v(" Need custom plan? "),i("span",{on:{click:function(e){return t.subscribeClick("custom","mobileUpgradeWin")}}},[t._v("Contact us")])]),i("router-link",{staticClass:"see-all-feature",attrs:{to:{name:"pricing"}}},[i("iconpark-icon",{attrs:{name:"ThinLeft"}}),t._v("See all features ")],1)],1)])]),t.isConfirmUpdatePlanShown?i("vizard-confirm-update-plan",{attrs:{switchPlan:t.switchPlan},on:{switchPlanSuccess:function(e){return t.close()},customerPortal:t.confirmCustomerPortal,close:t.closeConfirmUpdatePlan}}):t._e()],1)}),[],!1,null,"3dcc9618",null);e.a=i.exports},"56ba":function(t,e,i){"use strict";i("f464")},f464:function(t,e,i){}}]);