import{o as e}from"./chunk-mlkTr37E.js";import{t}from"./_plugin-vue2_normalizer-BHc2Ljhs.js";import{t as n}from"./query-string-RcCSSKcJ.js";import{n as r,t as i}from"./pricing-D36Q873C.js";import{t as a}from"./moment-BencVxx-.js";var o=e(a()),s=t({name:`UpgradePlan`,data(){return{contactLinks:[{label:`Facebook`,url:`https://www.facebook.com/autoshopee.com.vn`},{label:`Zalo`,url:`https://zalo.me/2141564390855067259`}],hotlines:[`0904.628.850`,`0907.298.768`]}},computed:{featureName(){return this.$route.query.feature?this.$route.query.feature:this.$t(`FEATURE_NAME_DEFAULT`)},requirePlan(){return this.$route.query.plan?this.$route.query.plan:`Vip`},titleText(){return this.$t(`FEATURE_REQUIRE_PAID_PLAN`,{name:this.featureName})},descriptionText(){return this.$t(`ALERT_REQUIRED_PLAN_VIP`,{price:r})},durationText(){return this.$t(`UPGRADE_PLAN_DURATION_VALUE`,{day:30})},expiredAtText(){return(0,o.default)().add(30,`days`).format(`DD/MM/YYYY`)},buttonText(){return this.$t(`FEATURE_REQUIRE_PAID_PLAN_UPGRADE_BTN`,{price:r})},promotionButtonText(){return this.$t(`UPGRADE_PLAN_PROMOTION_BTN`)},qrImageUrl(){return n.stringifyUrl({url:`https://img.vietqr.io/image/970436-1063675203-compact2.jpg`,query:{accountName:`Công ty cổ phần tập đoàn MediaSoft`,addInfo:`${this.getUsername} ExtensionVip`,amount:12e4}})}},methods:{openPayment(){let e=i(this.getUsername,`extension-vip`);this.openExternalUrl(e)},openPromotionPayment(){let e=i(this.getUsername,`a5d`);this.openExternalUrl(e)}}},function(){var e=this,t=e._self._c;return t(`div`,[t(`Row`,[t(`Col`,{attrs:{span:e.isUsePopup?22:10,offset:e.isUsePopup?1:7}},[t(`Card`,{attrs:{"dis-hover":``,padding:e.isUsePopup?12:16}},[t(`div`,{staticClass:`text-center`,class:{"upgrade-plan--popup":e.isUsePopup}},[t(`h2`,{class:e.isUsePopup?`mb-5`:`mb-10`},[e._v(e._s(e.titleText))]),t(`p`,{class:e.isUsePopup?`mb-10`:`mb-20`},[e._v(e._s(e.descriptionText))]),t(`div`,{class:[`upgrade-plan__info`,e.isUsePopup?`mb-10`:`mb-20`]},[t(`Tag`,{attrs:{color:`blue`}},[e._v(e._s(e.getUsername))]),t(`Tag`,{attrs:{color:`red`}},[e._v(e._s(e.requirePlan))]),t(`Tag`,{attrs:{color:`gold`}},[e._v(e._s(e.durationText))]),t(`Tag`,{attrs:{color:`green`}},[e._v(e._s(e.expiredAtText))])],1),t(`img`,{class:[`upgrade-plan__qr`,e.isUsePopup?`mb-10`:`mb-20`],attrs:{src:e.qrImageUrl,alt:e.$t(`UPGRADE_PLAN_QR_ALT`)}}),t(`div`,{staticClass:`upgrade-plan__actions`},[t(`Button`,{attrs:{type:`error`,long:!e.isUsePopup},on:{click:e.openPayment}},[e._v(` `+e._s(e.buttonText)+` `)]),t(`Button`,{class:e.isUsePopup?``:`mt-10`,attrs:{long:!e.isUsePopup},on:{click:e.openPromotionPayment}},[e._v(` `+e._s(e.promotionButtonText)+` `)])],1),t(`div`,{class:[`upgrade-plan__contact`,e.isUsePopup?`mt-10`:`mt-20`]},[t(`p`,{staticClass:`mb-5`},[e._v(` `+e._s(e.$t(`UPGRADE_PLAN_CONTACT_ZALO`))+` `)]),t(`div`,{staticClass:`upgrade-plan__contact-links`},[e._l(e.contactLinks,function(n){return t(`a`,{key:n.label,attrs:{href:n.url,target:`_blank`}},[e._v(` `+e._s(n.label)+` `)])}),e._l(e.hotlines,function(n){return t(`span`,{key:n},[e._v(` `+e._s(n)+` `)])})],2)])])])],1)],1)],1)},[],!1,null,`29780f7e`,null,null).exports;export{s as default};