Files
vuefilemanager/public/chunks/oasis/upgrade-plan.js
T
2021-05-19 13:35:56 +00:00

1 line
19 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[48],{"2Sb1":function(t,a,e){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:e("CjXH").h}},n=(e("JOXf"),e("KHd+")),r=Object(n.a)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-header"},[t.canBack?e("div",{staticClass:"go-back",on:{click:function(a){return t.$router.back()}}},[e("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),e("div",{staticClass:"content"},[e("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"9fd0a424",null);a.a=r.exports},"3eeM":function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".page-header[data-v-9fd0a424]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-9fd0a424]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-9fd0a424]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-9fd0a424]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-9fd0a424]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-9fd0a424]{display:none}}@media (prefers-color-scheme:dark){.page-header[data-v-9fd0a424]{background:#141414}.page-header .title[data-v-9fd0a424]{color:#bec6cf}.page-header .icon path[data-v-9fd0a424]{fill:#00bc7e}}",""])},"6KZ8":function(t,a,e){var i=e("ElKT");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},"8L90":function(t,a,e){var i=e("SH2k");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},D62o:function(t,a,e){"use strict";var i=e("xCqy"),n=e("CjXH"),r={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:n.h,MenuIcon:n.P},methods:{showMobileNavigation:function(){i.a.$emit("mobile-menu:show","user-navigation")},goBack:function(){this.$router.back()}}},d=(e("R6Y3"),e("KHd+")),o=Object(d.a)(r,(function(){var t=this.$createElement,a=this._self._c||t;return a("header",{staticClass:"mobile-header"},[a("div",{staticClass:"go-back",on:{click:this.goBack}},[a("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),this._v(" "),a("div",{staticClass:"location-name"},[this._v(this._s(this.title))]),this._v(" "),a("div",{staticClass:"mobile-menu",on:{click:this.showMobileNavigation}},[a("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"699fe34a",null);a.a=o.exports},ElKT:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".plan[data-v-1057f6d0]{text-align:center;flex:0 0 33%;padding:0 25px;margin-bottom:45px}.plan .plan-wrapper[data-v-1057f6d0]{box-shadow:0 7px 20px 5px rgba(26,36,55,.03);padding:25px;border-radius:8px;transition:all .3s ease}.plan .plan-wrapper[data-v-1057f6d0]:hover{transform:translateY(-20px) scale(1.05);box-shadow:0 15px 25px 5px rgba(26,36,55,.08)}.plan .plan-header .icon circle[data-v-1057f6d0],.plan .plan-header .icon line[data-v-1057f6d0],.plan .plan-header .icon path[data-v-1057f6d0],.plan .plan-header .icon polyline[data-v-1057f6d0],.plan .plan-header .icon rect[data-v-1057f6d0]{color:inherit}.plan .plan-header .title[data-v-1057f6d0]{font-size:1.375em;font-weight:800}.plan .plan-header .description[data-v-1057f6d0]{font-size:.875em;font-weight:600}.plan .plan-features[data-v-1057f6d0]{margin:65px 0}.plan .plan-features .storage-size[data-v-1057f6d0]{font-size:3em;font-weight:900;line-height:1.1}.plan .plan-features .storage-description[data-v-1057f6d0]{display:block;font-size:.9375em;font-weight:800}.plan .plan-footer .sign-in-button[data-v-1057f6d0]{width:100%;text-align:center}.plan .plan-footer .price[data-v-1057f6d0]{font-size:1.125em;display:block;margin-bottom:20px}.plan .plan-footer .price .vat-disclaimer[data-v-1057f6d0]{font-size:.6875em;color:#1b2539;display:block;font-weight:300;opacity:.45;margin-top:5px}.plans-wrapper[data-v-1057f6d0]{display:flex;flex-wrap:wrap;margin:0 -25px;justify-content:center}@media only screen and (max-width:960px){.plans-wrapper[data-v-1057f6d0]{display:block;margin:0}}@media (prefers-color-scheme:dark){.plan .plan-wrapper[data-v-1057f6d0]{background:#1e2024}.plan .plan-header .title[data-v-1057f6d0]{color:#bec6cf}.plan .plan-header .description[data-v-1057f6d0]{color:#7d858c}.plan .plan-features .storage-description[data-v-1057f6d0],.plan .plan-features .storage-size[data-v-1057f6d0]{color:#bec6cf}.plan .plan-footer .sign-in-button[data-v-1057f6d0]{background:rgba(0,188,126,.1)}.plan .plan-footer .sign-in-button[data-v-1057f6d0] .content{color:#00bc7e}.plan .plan-footer .price .vat-disclaimer[data-v-1057f6d0]{color:#bec6cf}}",""])},JOXf:function(t,a,e){"use strict";e("nr4+")},LQrs:function(t,a,e){"use strict";e("8L90")},R6Y3:function(t,a,e){"use strict";e("Xm12")},SH2k:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".form[data-v-1b44db26]{max-width:700px}.form.inline-form[data-v-1b44db26]{display:flex;position:relative;justify-content:center;margin:0 auto}.form.inline-form .input-wrapper[data-v-1b44db26]{position:relative}.form.inline-form .input-wrapper .error-message[data-v-1b44db26]{position:absolute;left:0;bottom:-25px}.form.block-form .wrapper-inline[data-v-1b44db26]{display:flex;margin:0 -15px}.form.block-form .wrapper-inline .block-wrapper[data-v-1b44db26]{width:100%;padding:0 15px}.form.block-form .block-wrapper[data-v-1b44db26]{margin-bottom:22px}.form.block-form .block-wrapper label[data-v-1b44db26]{font-size:.875em;color:rgba(27,37,57,.8);font-weight:700;display:block;margin-bottom:7px;text-align:left}.form.block-form .block-wrapper[data-v-1b44db26]:last-child{margin-bottom:0}.form.block-form .button[data-v-1b44db26]{margin-top:50px}.form .inline-wrapper[data-v-1b44db26]{display:flex;align-items:center;justify-content:space-between}.form .inline-wrapper .switch-label .input-help[data-v-1b44db26]{padding-top:0}.form .inline-wrapper .switch-label .input-label[data-v-1b44db26]{font-weight:700;color:#1b2539;font-size:1em;margin-bottom:5px}.form .input-help[data-v-1b44db26]{font-size:.75em;color:rgba(27,37,57,.7);line-height:1.35;padding-top:10px;display:block}.single-line-form[data-v-1b44db26]{display:flex}.single-line-form .submit-button[data-v-1b44db26]{margin-left:20px}.error-message[data-v-1b44db26]{font-size:.875em;color:#fd397a;padding-top:5px;display:block;text-align:left}textarea[data-v-1b44db26]{width:100%}input[type=date][data-v-1b44db26],input[type=email][data-v-1b44db26],input[type=number][data-v-1b44db26],input[type=password][data-v-1b44db26],input[type=text][data-v-1b44db26],textarea[data-v-1b44db26]{border:1px solid transparent;transition:all .15s ease;font-size:1em;border-radius:8px;padding:13px 20px;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-weight:700;outline:0;width:100%;box-shadow:0 1px 5px rgba(0,0,0,.12);background:#fff}input[type=date].is-error[data-v-1b44db26],input[type=email].is-error[data-v-1b44db26],input[type=number].is-error[data-v-1b44db26],input[type=password].is-error[data-v-1b44db26],input[type=text].is-error[data-v-1b44db26],textarea.is-error[data-v-1b44db26]{border-color:#fd397a}input[type=date][data-v-1b44db26]::-moz-placeholder,input[type=email][data-v-1b44db26]::-moz-placeholder,input[type=number][data-v-1b44db26]::-moz-placeholder,input[type=password][data-v-1b44db26]::-moz-placeholder,input[type=text][data-v-1b44db26]::-moz-placeholder,textarea[data-v-1b44db26]::-moz-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=date][data-v-1b44db26]:-ms-input-placeholder,input[type=email][data-v-1b44db26]:-ms-input-placeholder,input[type=number][data-v-1b44db26]:-ms-input-placeholder,input[type=password][data-v-1b44db26]:-ms-input-placeholder,input[type=text][data-v-1b44db26]:-ms-input-placeholder,textarea[data-v-1b44db26]:-ms-input-placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=date][data-v-1b44db26]::placeholder,input[type=email][data-v-1b44db26]::placeholder,input[type=number][data-v-1b44db26]::placeholder,input[type=password][data-v-1b44db26]::placeholder,input[type=text][data-v-1b44db26]::placeholder,textarea[data-v-1b44db26]::placeholder{color:rgba(27,37,57,.5);font-size:.9375em}input[type=date][disabled][data-v-1b44db26],input[type=email][disabled][data-v-1b44db26],input[type=number][disabled][data-v-1b44db26],input[type=password][disabled][data-v-1b44db26],input[type=text][disabled][data-v-1b44db26],textarea[disabled][data-v-1b44db26]{background:#fff;color:rgba(27,37,57,.8);-webkit-text-fill-color:rgba(27,37,57,.8);opacity:1;cursor:not-allowed}input[type=color][data-v-1b44db26]{width:38px!important;height:40px;border:none;outline:none;background:none;min-width:0!important}.additional-link[data-v-1b44db26]{font-size:1em;margin-top:50px;display:block}.additional-link a[data-v-1b44db26],.additional-link b[data-v-1b44db26]{cursor:pointer}.additional-link a[data-v-1b44db26]:hover,.additional-link b[data-v-1b44db26]:hover{text-decoration:underline}@media only screen and (max-width:1024px){.form[data-v-1b44db26]{max-width:100%}}@media only screen and (max-width:960px){.form .button[data-v-1b44db26]{margin-top:20px;width:100%;margin-left:0;margin-right:0}.form input[data-v-1b44db26],.form textarea[data-v-1b44db26]{width:100%;min-width:100%}.form.block-form .block-wrapper[data-v-1b44db26]{display:block}.form.block-form .block-wrapper label[data-v-1b44db26]{width:100%;padding-right:0;display:block;margin-bottom:7px;text-align:left!important;font-size:.875em;padding-top:0}.form.block-form .button[data-v-1b44db26]{margin-top:25px;margin-left:0;margin-right:0}.form.inline-form[data-v-1b44db26]{display:block}.form.inline-form .input-wrapper .error-message[data-v-1b44db26]{position:relative;bottom:0}.form .button[data-v-1b44db26]{padding:14px 32px}.single-line-form[data-v-1b44db26]{display:block}.single-line-form .submit-button[data-v-1b44db26]{margin-left:0;margin-top:20px;width:100%}input[type=date][data-v-1b44db26],input[type=email][data-v-1b44db26],input[type=number][data-v-1b44db26],input[type=password][data-v-1b44db26],input[type=text][data-v-1b44db26],textarea[data-v-1b44db26]{padding:14px 20px}}@media only screen and (max-width:690px){.form.block-form .wrapper-inline[data-v-1b44db26]{display:block;margin-bottom:32px}}@media (prefers-color-scheme:dark){.form .input-help[data-v-1b44db26]{color:#7d858c}.form.block-form .block-wrapper label[data-v-1b44db26],.form .inline-wrapper .switch-label .input-label[data-v-1b44db26]{color:#bec6cf}input[type=date][data-v-1b44db26],input[type=email][data-v-1b44db26],input[type=number][data-v-1b44db26],input[type=password][data-v-1b44db26],input[type=text][data-v-1b44db26],textarea[data-v-1b44db26]{border-color:#1e2024;background:#1e2024;color:#bec6cf}input[type=date][data-v-1b44db26]::-moz-placeholder,input[type=email][data-v-1b44db26]::-moz-placeholder,input[type=number][data-v-1b44db26]::-moz-placeholder,input[type=password][data-v-1b44db26]::-moz-placeholder,input[type=text][data-v-1b44db26]::-moz-placeholder,textarea[data-v-1b44db26]::-moz-placeholder{color:#7d858c}input[type=date][data-v-1b44db26]:-ms-input-placeholder,input[type=email][data-v-1b44db26]:-ms-input-placeholder,input[type=number][data-v-1b44db26]:-ms-input-placeholder,input[type=password][data-v-1b44db26]:-ms-input-placeholder,input[type=text][data-v-1b44db26]:-ms-input-placeholder,textarea[data-v-1b44db26]:-ms-input-placeholder{color:#7d858c}input[type=date][data-v-1b44db26]::placeholder,input[type=email][data-v-1b44db26]::placeholder,input[type=number][data-v-1b44db26]::placeholder,input[type=password][data-v-1b44db26]::placeholder,input[type=text][data-v-1b44db26]::placeholder,textarea[data-v-1b44db26]::placeholder{color:#7d858c}input[type=date][disabled][data-v-1b44db26],input[type=email][disabled][data-v-1b44db26],input[type=number][disabled][data-v-1b44db26],input[type=password][disabled][data-v-1b44db26],input[type=text][disabled][data-v-1b44db26],textarea[disabled][data-v-1b44db26]{background:#1e2024;color:rgba(125,133,140,.8);-webkit-text-fill-color:rgba(125,133,140,.8)}.popup-wrapper input[type=date][data-v-1b44db26],.popup-wrapper input[type=email][data-v-1b44db26],.popup-wrapper input[type=number][data-v-1b44db26],.popup-wrapper input[type=password][data-v-1b44db26],.popup-wrapper input[type=text][data-v-1b44db26],.popup-wrapper textarea[data-v-1b44db26]{background:#25272c}}.plan-title[data-v-1b44db26]{text-align:center;max-width:600px;margin:0 auto 80px}.plan-title circle[data-v-1b44db26],.plan-title line[data-v-1b44db26],.plan-title path[data-v-1b44db26],.plan-title polyline[data-v-1b44db26],.plan-title rect[data-v-1b44db26]{color:inherit}.plan-title h1[data-v-1b44db26]{font-size:2.375em;font-weight:800;margin-bottom:5px}.plan-title h2[data-v-1b44db26]{font-size:1.25em;font-weight:500}@media (prefers-color-scheme:dark){.plan-title h1[data-v-1b44db26]{color:#bec6cf}.plan-title h2[data-v-1b44db26]{color:#7d858c}}",""])},Xm12:function(t,a,e){var i=e("q8nf");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},gGGj:function(t,a,e){"use strict";e.r(a);var i=e("wz3J"),n=e("D62o"),r=e("2Sb1"),d=e("zTYo"),o=e("CjXH"),p=(e("vDqi"),e("L2JU"));function l(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,i)}return e}function s(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var b={name:"UpgradePlan",components:{PlanPricingTables:i.a,MobileHeader:n.a,PageHeader:r.a,CloudIcon:o.l,Spinner:d.a},computed:function(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?l(Object(e),!0).forEach((function(a){s(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}({},Object(p.b)(["user"])),data:function(){return{isLoading:!0}},methods:{onLoadPricingTables:function(t){this.isLoading=t},onSelectTable:function(t){this.$store.commit("STORE_REQUESTED_PLAN",t)}},beforeMount:function(){var t=document.createElement("script");t.setAttribute("src","https://js.stripe.com/v3/"),document.head.appendChild(t)},mounted:function(){this.$store.dispatch("getAppData")}},c=(e("LQrs"),e("KHd+")),u=Object(c.a)(b,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"single-page"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.isLoading,expression:"! isLoading"}],staticClass:"large-width center-page",attrs:{id:"page-content"}},[e("MobileHeader",{attrs:{title:t.$router.currentRoute.meta.title}}),t._v(" "),e("div",{staticClass:"content-page"},[e("div",{staticClass:"plan-title"},[e("cloud-icon",{staticClass:"title-icon text-theme",attrs:{size:"42"}}),t._v(" "),e("h1",[t._v(t._s(t.$t("page_pricing_tables.title")))]),t._v(" "),e("h2",[t._v(t._s(t.$t("page_pricing_tables.description")))])],1),t._v(" "),t.user?e("PlanPricingTables",{attrs:{"custom-route":"FinishPayment"},on:{load:t.onLoadPricingTables,"selected-plan":t.onSelectTable}}):t._e()],1)],1),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()])}),[],!1,null,"1b44db26",null);a.default=u.exports},mUdl:function(t,a,e){"use strict";e("6KZ8")},"nr4+":function(t,a,e){var i=e("3eeM");"string"==typeof i&&(i=[[t.i,i,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};e("aET+")(i,n);i.locals&&(t.exports=i.locals)},q8nf:function(t,a,e){(t.exports=e("I1BE")(!1)).push([t.i,".mobile-header[data-v-699fe34a]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-699fe34a]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-699fe34a]{text-align:left}.mobile-header .location-name[data-v-699fe34a]{line-height:1;text-align:center;width:100%;vertical-align:middle;font-size:.9375em;color:#1b2539;font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.mobile-header .mobile-menu[data-v-699fe34a]{text-align:right}.mobile-header .icon[data-v-699fe34a]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-699fe34a]{display:flex;margin-bottom:15px}}@media (prefers-color-scheme:dark){.mobile-header[data-v-699fe34a]{background:#141414}.mobile-header .location-name[data-v-699fe34a]{color:#bec6cf}}",""])},wz3J:function(t,a,e){"use strict";var i=e("Nv84"),n=e("CjXH"),r=e("L2JU"),d=e("vDqi"),o=e.n(d);function p(t,a){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),e.push.apply(e,i)}return e}function l(t,a,e){return a in t?Object.defineProperty(t,a,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[a]=e,t}var s={name:"PlanPricingTables",components:{HardDriveIcon:n.G,ButtonBase:i.a},props:["customRoute"],data:function(){return{plans:void 0}},computed:function(t){for(var a=1;a<arguments.length;a++){var e=null!=arguments[a]?arguments[a]:{};a%2?p(Object(e),!0).forEach((function(a){l(t,a,e[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(e,a))}))}return t}({},Object(r.b)(["user"])),methods:{selectPlan:function(t){this.$emit("selected-plan",t);var a=this.customRoute?this.customRoute:"UpgradeBilling";this.$router.push({name:a})}},created:function(){var t=this;o.a.get("/api/pricing").then((function(a){t.plans=a.data.filter((function(a){return a.data.attributes.capacity>t.user.data.attributes.storage_capacity})),t.$emit("load",!1)}))}},b=(e("mUdl"),e("KHd+")),c=Object(b.a)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.plans?e("div",{staticClass:"plans-wrapper"},t._l(t.plans,(function(a,i){return e("article",{key:i,staticClass:"plan"},[e("div",{staticClass:"plan-wrapper"},[e("header",{staticClass:"plan-header"},[e("div",{staticClass:"icon"},[e("hard-drive-icon",{staticClass:"text-theme",attrs:{size:"26"}})],1),t._v(" "),e("h1",{staticClass:"title"},[t._v(t._s(a.data.attributes.name))]),t._v(" "),e("h2",{staticClass:"description"},[t._v(t._s(a.data.attributes.description))])]),t._v(" "),e("section",{staticClass:"plan-features"},[e("b",{staticClass:"storage-size"},[t._v(t._s(a.data.attributes.capacity_formatted))]),t._v(" "),e("span",{staticClass:"storage-description"},[t._v(t._s(t.$t("page_pricing_tables.storage_capacity")))])]),t._v(" "),e("footer",{staticClass:"plan-footer"},[e("b",{staticClass:"price text-theme"},[t._v("\n "+t._s(a.data.attributes.price)+"/"+t._s(t.$t("global.monthly_ac"))+"\n "),a.data.attributes.tax_rates.length>0?e("small",{staticClass:"vat-disclaimer"},[t._v(t._s(t.$t("page_pricing_tables.vat_excluded")))]):t._e()]),t._v(" "),e("ButtonBase",{staticClass:"sign-in-button",attrs:{type:"submit","button-style":"secondary"},nativeOn:{click:function(e){return t.selectPlan(a)}}},[t._v("\n "+t._s(t.$t("global.get_it"))+"\n ")])],1)])])})),0):t._e()}),[],!1,null,"1057f6d0",null);a.a=c.exports}}]);