Files
ploi-core/public/js/14.js
2020-11-12 13:34:27 +01:00

1 line
27 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[14],{0:function(t,e,r){"use strict";function n(t,e,r,n,a,i,o,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},119:function(t,e,r){"use strict";r.r(e);var n=r(96),a=r.n(n),i=r(53),o=r(1),s=r(6),l=r(7),c=r(8),u=r(9),d=r(10),f=r(2),p=r(11),h=r(12),v=r(4),_=r(5),m=r(3),b=r(33),g=r(29),y=r(30),w=r(0),x=Object(w.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-arrow-up",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z"}})])}),[],!1,null,null,null).exports,C=Object(w.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{staticClass:"bi bi-arrow-down",attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"}})])}),[],!1,null,null,null).exports,T=r(75),E=r(32),B=r(34),L=r(13),S=r(31),j=r(14),$=r(20),k=r(22),O=r(23),z=r(24),A=r(25),I=r(21),H=r(19),F=r(26);function D(t,e,r,n,a,i,o){try{var s=t[i](o),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,a)}var N={metaInfo:function(){return{title:"".concat(this.__("Billing"))}},layout:m.a,components:{TopBar:i.default,Container:o.a,Content:s.a,Page:l.a,PageHeader:c.a,PageHeaderTitle:u.a,PageBody:d.a,Button:f.a,List:p.a,ListItem:h.a,StatusBubble:v.a,NotificationBadge:_.a,IconBox:b.a,IconGlobe:g.a,IconStorage:y.a,IconArrowDown:C,IconArrowUp:x,IconClose:T.a,Modal:E.a,ModalContainer:B.a,FormInput:L.a,FormTextarea:S.a,FormActions:j.a,Table:$.a,TableHead:k.a,TableHeader:O.a,TableRow:z.a,TableBody:A.a,TableData:I.a},props:{packages:Array,subscription:[Object,null],public_key:String,data_client_secret:String,card:Object,filters:Object},data:function(){return{sending:!1,clientSecret:this.data_client_secret,stripe:null,cardElement:null,cardHolderName:this.$page.props.auth.user.name,currentCardLastFour:this.card.last_four,currentCardBrand:this.card.brand,coupon:"",invoices:[],breadcrumbs:[{title:this.$page.props.settings.name,to:"/"},{title:this.__("Billing"),to:this.route("profile.billing.index")}]}},mounted:function(){var t=Stripe(this.public_key);this.stripe=t;var e=t.elements().create("card");e.mount("#card-element"),this.cardElement=e,this.getInvoices()},watch:{sending:function(t){t?this.cardElement.update({disabled:!0}):this.cardElement.update({disabled:!1})}},methods:{useNotification:H.a,useConfirmDelete:F.a,updateBilling:function(){var t,e=this;return(t=a.a.mark((function t(){var r,n,i,o;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.sending=!0,t.next=3,e.stripe.confirmCardSetup(e.clientSecret,{payment_method:{card:e.cardElement,billing_details:{name:e.cardHolderName}}});case 3:r=t.sent,n=r.setupIntent,(i=r.error)?(e.sending=!1,e.useNotification({variant:"danger",title:e.__("Error"),message:i.message})):(o=n.payment_method,e.$inertia.post(e.route("profile.billing.update.card"),{payment_method:o,billing_details:e.billingDetails},{onStart:function(){return e.sending=!0},onFinish:function(){return e.sending=!1}}));case 7:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){D(i,n,a,o,s,"next",t)}function s(t){D(i,n,a,o,s,"throw",t)}o(void 0)}))})()},updatePlan:function(t){var e=this;this.$inertia.post(this.route("profile.billing.update.plan"),{plan:t,coupon:this.coupon},{onStart:function(){return e.sending=!0},onFinish:function(){return e.sending=!1}})},confirmCancel:function(){var t=this;Object(F.a)({title:this.__("Are you sure?"),message:this.__("Your subscription will be put to an end. An expire date will be send to you when your plan expires."),onConfirm:function(){return t.cancel()}})},cancel:function(){var t=this;this.$inertia.delete(this.route("profile.billing.cancel.plan"),{onStart:function(){return t.sending=!0},onFinish:function(){return t.sending=!1}})},getInvoices:function(){var t=this;window.axios.get(this.route("profile.billing.invoices")).then((function(e){return t.invoices=e.data}))},requestFilterUrl:function(t){this.$inertia.visit(route("profile.billing.index",t),{only:["filters","packages"]})}}},M=Object(w.a)(N,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Page",[r("TopBar",{attrs:{breadcrumbs:t.breadcrumbs}}),t._v(" "),r("Content",[r("Container",[r("PageBody",[r("div",{staticClass:"grid grid-cols-1 md:grid-cols-5 gap-8"},[r("div",{staticClass:"md:col-span-2 space-y-4"},[r("h2",{staticClass:"text-lg text-medium-emphasis"},[t._v(t._s(t.__("Card information")))]),t._v(" "),r("form",{staticClass:"space-y-4",on:{submit:function(e){return e.preventDefault(),t.updateBilling(e)}}},[t.currentCardLastFour?r("p",[t._v("\n ···· ···· ····  "+t._s(t.currentCardLastFour)+" ("+t._s(t.currentCardBrand)+")\n ")]):t._e(),t._v(" "),r("form-input",{attrs:{errors:t.$page.props.errors.card_holder_name,disabled:t.sending,id:"card-holder-name",label:t.__("Card holder name")},model:{value:t.cardHolderName,callback:function(e){t.cardHolderName=e},expression:"cardHolderName"}}),t._v(" "),r("div",{staticClass:"w-full pb-4"},[r("label",{staticClass:"form-label",attrs:{for:"card-element"}},[t._v(t._s(t.__("Card details")))]),t._v(" "),r("div",{staticClass:"form-input",attrs:{id:"card-element"}})]),t._v(" "),r("Button",{staticClass:"btn-green",attrs:{"data-secret":t.clientSecret,id:"card-button",loading:t.sending,type:"submit"}},[t._v("\n "+t._s(t.__("Save"))+"\n ")]),t._v(" "),t.subscription?r("Button",{attrs:{loading:t.sending,variant:"danger",type:"button"},on:{click:t.confirmCancel}},[t._v("\n "+t._s(t.__("Cancel"))+"\n ")]):t._e()],1)]),t._v(" "),r("div",{staticClass:"md:col-span-3 space-y-8"},[r("h2",{staticClass:"text-lg text-medium-emphasis"},[t._v(t._s(t.__("Available packages")))]),t._v(" "),r("form-input",{staticClass:"pb-4",attrs:{errors:t.$page.props.errors.coupon,disabled:t.sending,placeholder:t.__("Enter a coupon code if you have one, before subscribing"),label:t.__("Coupon")},model:{value:t.coupon,callback:function(e){t.coupon=e},expression:"coupon"}}),t._v(" "),r("Table",{attrs:{caption:"Package list overview"}},[r("TableHead",[r("TableRow",[r("TableHeader",[r("a",{staticClass:"text-primary flex items-center space-x-2",attrs:{href:"javascript:void(0);","data-balloon-blunt":"","aria-label":t.__("Sort by name"),"data-balloon-pos":"up"},on:{click:function(e){return t.requestFilterUrl({sortBy:{name:"asc"===t.filters.sort.name?"desc":"asc"}})}}},[r("span",[t._v(t._s(t.__("Name")))]),t._v(" "),"asc"===t.filters.sort.name?r("IconArrowUp"):t._e(),t._v(" "),"desc"===t.filters.sort.name?r("IconArrowDown"):t._e()],1)]),t._v(" "),r("TableHeader",[r("a",{staticClass:"text-primary flex items-center space-x-2",attrs:{href:"javascript:void(0);","data-balloon-blunt":"","aria-label":t.__("Sort by maximum sites"),"data-balloon-pos":"up"},on:{click:function(e){return t.requestFilterUrl({sortBy:{sites:"asc"===t.filters.sort.sites?"desc":"asc"}})}}},[r("span",[t._v(t._s(t.__("Max sites")))]),t._v(" "),"asc"===t.filters.sort.sites?r("IconArrowUp"):t._e(),t._v(" "),"desc"===t.filters.sort.sites?r("IconArrowDown"):t._e()],1)]),t._v(" "),r("TableHeader",[r("a",{staticClass:"text-primary flex items-center space-x-2",attrs:{href:"javascript:void(0);","data-balloon-blunt":"","aria-label":t.__("Sort by maximum servers"),"data-balloon-pos":"up"},on:{click:function(e){return t.requestFilterUrl({sortBy:{servers:"asc"===t.filters.sort.servers?"desc":"asc"}})}}},[r("span",[t._v(t._s(t.__("Max servers")))]),t._v(" "),"asc"===t.filters.sort.servers?r("IconArrowUp"):t._e(),t._v(" "),"desc"===t.filters.sort.servers?r("IconArrowDown"):t._e()],1)]),t._v(" "),r("TableHeader",[r("a",{staticClass:"text-primary flex items-center space-x-2",attrs:{href:"javascript:void(0);","data-balloon-blunt":"","aria-label":t.__("Sort by price"),"data-balloon-pos":"up"},on:{click:function(e){return t.requestFilterUrl({sortBy:{price:"asc"===t.filters.sort.price?"desc":"asc"}})}}},[r("span",[t._v(t._s(t.__("Monthly price")))]),t._v(" "),"asc"===t.filters.sort.price?r("IconArrowUp"):t._e(),t._v(" "),"desc"===t.filters.sort.price?r("IconArrowDown"):t._e()],1)]),t._v(" "),r("TableHeader",[r("inertia-link",{attrs:{href:t.route("profile.billing.index"),"data-balloon-blunt":"","aria-label":t.__("Clear sorting"),"data-balloon-pos":"up"}},[r("IconClose")],1)],1)],1)],1),t._v(" "),r("TableBody",t._l(t.packages,(function(e){return r("TableRow",{key:e.id},[r("TableData",[t._v(t._s(e.name))]),t._v(" "),r("TableData",[t._v(t._s(0===e.maximum_sites?"Unlimited":e.maximum_sites))]),t._v(" "),r("TableData",[t._v(t._s(0===e.maximum_servers?"Unlimited":e.maximum_servers))]),t._v(" "),r("TableData",[t._v(t._s(e.price_monthly))]),t._v(" "),r("TableData",{staticClass:"text-right"},[r("Button",{attrs:{size:"sm",disabled:t.sending||t.subscription&&e.plan_id===t.subscription.stripe_plan},on:{click:function(r){return t.updatePlan(e.id)}}},[t._v("\n "+t._s(t.__("Subscribe"))+"\n ")])],1)],1)})),1)],1)],1),t._v(" "),r("div",{staticClass:"md:col-span-5 space-y-8 border-t border-low-emphasis"},[t.invoices.length?r("h2",{staticClass:"mt-5 text-lg text-medium-emphasis"},[t._v(t._s(t.__("Invoices")))]):t._e(),t._v(" "),t.invoices.length?r("Table",{attrs:{caption:"Invoice list overview"}},[r("TableHead",[r("TableRow",[r("TableHeader",[t._v(t._s(t.__("Number")))]),t._v(" "),r("TableHeader",[t._v(t._s(t.__("Status")))]),t._v(" "),r("TableHeader",[t._v(t._s(t.__("Total")))]),t._v(" "),r("TableHeader",[t._v(t._s(t.__("Date")))]),t._v(" "),r("TableHeader")],1)],1),t._v(" "),r("TableBody",t._l(t.invoices,(function(e){return r("TableRow",{key:e.id},[r("TableData",[t._v(t._s(e.number))]),t._v(" "),r("TableData",[t._v(t._s(e.status))]),t._v(" "),r("TableData",[t._v(t._s(e.total))]),t._v(" "),r("TableData",[t._v(t._s(e.created))]),t._v(" "),r("TableData",[r("a",{staticClass:"text-primary",attrs:{href:t.route("profile.billing.invoices.pdf",e.id)}},[t._v("Download")])])],1)})),1)],1):t._e()],1)])])],1)],1)],1)}),[],!1,null,null,null);e.default=M.exports},20:function(t,e,r){"use strict";var n={props:{caption:{type:String,required:!0}}},a=r(0),i=Object(a.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("table",{staticClass:"w-full text-left table-auto text-small"},[e("caption",{staticClass:"sr-only"},[this._v(this._s(this.caption))]),this._v(" "),this._t("default")],2)}),[],!1,null,null,null);e.a=i.exports},21:function(t,e,r){"use strict";var n={props:{border:{type:Boolean,default:!0}}},a=r(0),i=Object(a.a)(n,(function(){var t=this.$createElement;return(this._self._c||t)("td",{staticClass:"py-2",class:{"border-t border-low-emphasis":this.border}},[this._t("default")],2)}),[],!1,null,null,null);e.a=i.exports},22:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("thead",[this._t("default")],2)}),[],!1,null,null,null);e.a=a.exports},23:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("th",{staticClass:"pb-2"},[this._t("default")],2)}),[],!1,null,null,null);e.a=a.exports},24:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("tr",[this._t("default")],2)}),[],!1,null,null,null);e.a=a.exports},25:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("tbody",[this._t("default")],2)}),[],!1,null,null,null);e.a=a.exports},26:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r(62);function a(t){var e=t.title,r=t.message,a=t.onConfirm;return n.a.dispatch("confirmDelete/open",{title:e,message:r,onConfirm:function(){a(),n.a.dispatch("confirmDelete/close")}})}},267:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",o=n.toStringTag||"@@toStringTag";function s(t,e,r,n){var a=e&&e.prototype instanceof u?e:u,i=Object.create(a.prototype),o=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(a,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw i;return T()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=g(o,r);if(s){if(s===c)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function u(){}function d(){}function f(){}var p={};p[a]=function(){return this};var h=Object.getPrototypeOf,v=h&&h(h(C([])));v&&v!==e&&r.call(v,a)&&(p=v);var _=f.prototype=u.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function b(t,e){var n;this._invoke=function(a,i){function o(){return new e((function(n,o){!function n(a,i,o,s){var c=l(t[a],t,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(d).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(c.arg)}(a,i,n,o)}))}return n=n?n.then(o,o):o()}}function g(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,g(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,c;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=_.constructor=f,f.constructor=d,f[o]=d.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o in t||(t[o]="GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},m(b.prototype),b.prototype[i]=function(){return this},t.AsyncIterator=b,t.async=function(e,r,n,a,i){void 0===i&&(i=Promise);var o=new b(s(e,r,n,a),i);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},m(_),_[o]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var i=a;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;w(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},29:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M1.018 7.5h2.49c.037-1.07.189-2.087.437-3.008a9.124 9.124 0 0 1-1.565-.667A6.964 6.964 0 0 0 1.018 7.5zM3.05 3.049c.362.184.763.349 1.198.49.142-.384.304-.744.481-1.078a6.7 6.7 0 0 1 .597-.933A7.01 7.01 0 0 0 3.051 3.05zM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm-.5 1.077c-.67.204-1.335.82-1.887 1.855-.143.268-.276.56-.395.872.705.157 1.473.257 2.282.287V1.077zm0 4.014c-.91-.03-1.783-.145-2.591-.332a12.344 12.344 0 0 0-.4 2.741H7.5V5.091zm1 2.409V5.091c.91-.03 1.783-.145 2.591-.332.223.827.364 1.754.4 2.741H8.5zm-1 1H4.51c.035.987.176 1.914.399 2.741A13.596 13.596 0 0 1 7.5 10.91V8.5zm1 2.409V8.5h2.99a12.343 12.343 0 0 1-.399 2.741A13.596 13.596 0 0 0 8.5 10.91zm-1 1c-.81.03-1.577.13-2.282.287.12.312.252.604.395.872.552 1.035 1.218 1.65 1.887 1.855V11.91zm-2.173 2.563a6.695 6.695 0 0 1-.597-.933 8.857 8.857 0 0 1-.481-1.078 8.356 8.356 0 0 0-1.198.49 7.01 7.01 0 0 0 2.276 1.52zM2.38 12.175c.47-.258.995-.482 1.565-.667A13.36 13.36 0 0 1 3.508 8.5h-2.49a6.964 6.964 0 0 0 1.362 3.675zm8.293 2.297a7.01 7.01 0 0 0 2.275-1.521 8.353 8.353 0 0 0-1.197-.49 8.859 8.859 0 0 1-.481 1.078 6.688 6.688 0 0 1-.597.933zm.11-2.276A12.63 12.63 0 0 0 8.5 11.91v3.014c.67-.204 1.335-.82 1.887-1.855.143-.268.276-.56.395-.872zm1.272-.688c.57.185 1.095.409 1.565.667A6.964 6.964 0 0 0 14.982 8.5h-2.49a13.355 13.355 0 0 1-.437 3.008zm.437-4.008h2.49a6.963 6.963 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008zm-.74-3.96a8.854 8.854 0 0 0-.482-1.079 6.692 6.692 0 0 0-.597-.933c.857.355 1.63.875 2.275 1.521a8.368 8.368 0 0 1-1.197.49zm-.97.264c-.705.157-1.473.257-2.282.287V1.077c.67.204 1.335.82 1.887 1.855.143.268.276.56.395.872z"}})])}),[],!1,null,null,null);e.a=a.exports},30:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M14 9H2a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1zM2 8a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2H2z"}}),this._v(" "),e("path",{attrs:{d:"M5 10.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm-2 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M4.094 4a.5.5 0 0 0-.44.26l-2.47 4.532A1.5 1.5 0 0 0 1 9.51v.99H0v-.99c0-.418.105-.83.305-1.197l2.472-4.531A1.5 1.5 0 0 1 4.094 3h7.812a1.5 1.5 0 0 1 1.317.782l2.472 4.53c.2.368.305.78.305 1.198v.99h-1v-.99a1.5 1.5 0 0 0-.183-.718L12.345 4.26a.5.5 0 0 0-.439-.26H4.094z"}})])}),[],!1,null,null,null);e.a=a.exports},31:function(t,e,r){"use strict";var n=r(65),a=r(64),i=r(66),o={props:{id:{type:String,required:!1},label:{type:String,required:!0},required:{type:Boolean,default:function(){return!1}},errors:{type:Array},placeholder:{type:String},value:{required:!1,default:""},rows:{default:3,required:!1}},components:{FormGroup:n.a,Label:a.a,ErrorText:i.a},data:function(){return{defaultClasses:"w-full border-medium-emphasis text-body max-w-lg px-2 border rounded bg-surface-1 focus:outline-none focus:border-primary"}},methods:{updateValue:function(t){this.$emit("input",t)}}},s=r(0),l=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("FormGroup",[r("Label",{attrs:{errors:t.errors,forId:t.id}},[t._v(t._s(t.label))]),t._v(" "),r("textarea",{class:[t.defaultClasses],attrs:{id:t.id,required:t.required,rows:t.rows,placeholder:t.placeholder},domProps:{value:t.value},on:{input:function(e){return t.updateValue(e.target.value)}}}),t._v(" "),t.errors?r("ErrorText",[t._v(t._s(t.errors[0]))]):t._e()],1)}),[],!1,null,null,null);e.a=l.exports},32:function(t,e,r){"use strict";var n=r(75),a=r(14),i=r(18),o={components:{IconClose:n.a,FormActions:a.a,Form:i.a}},s=r(0),l=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("aside",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.$emit("close")},expression:"() => $emit('close')"}],staticClass:"relative w-full h-full max-w-lg p-8 rounded shadow-2xl pointer-events-auto bg-overlay bf-blur"},[r("button",{staticClass:"absolute top-0 right-0 flex items-center justify-center w-12 h-12",on:{click:function(e){return t.$emit("close")}}},[r("IconClose",{staticClass:"w-8 h-8 text-low-emphasis"})],1),t._v(" "),r("Form",{on:{submit:function(e){return t.$emit("submit")}}},[r("div",[r("h2",{staticClass:"font-medium text-title"},[t._t("title")],2),t._v(" "),r("p",{staticClass:"text-medium-emphasis"},[t._t("subtitle")],2)]),t._v(" "),t._t("form"),t._v(" "),r("FormActions",[t._t("form-actions")],2)],2)],1)}),[],!1,null,null,null);e.a=l.exports},33:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5l2.404.961L10.404 2l-2.218-.887zm3.564 1.426L5.596 5 8 5.961 14.154 3.5l-2.404-.961zm3.25 1.7l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923l6.5 2.6zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464L7.443.184z"}})])}),[],!1,null,null,null);e.a=a.exports},34:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"fixed inset-0 z-50 flex flex-col items-end w-full h-screen p-6 pointer-events-none"},[e("Transition",{attrs:{"enter-active-class":"transition ease-out transform duration-slow","enter-class":"scale-95 translate-x-full","enter-to-class":"scale-100 translate-x-0","leave-active-class":"transition ease-out transform duration-slow","leave-class":"scale-95 translate-x-0","leave-to-class":"scale-95 translate-x-full"}},[this._t("default")],2)],1)}),[],!1,null,null,null);e.a=a.exports},53:function(t,e,r){"use strict";r.r(e);var n=r(39),a=r(40),i=r(41),o=r(42),s={components:{TopBar:n.a,Breadcrumbs:a.a,TabBar:i.a,TopBarTabBarContainer:o.a},props:{breadcrumbs:Array},data:function(){return{tabBars:[{title:this.__("Profile"),to:this.route("profile.index"),active:this.route().current("profile.index")},{title:this.__("Security"),to:this.route("profile.security.index"),active:this.route().current("profile.security.index")},{title:this.__("Settings"),to:this.route("profile.settings.index"),active:this.route().current("profile.settings.index")},this.$page.props.settings.billing?{title:this.__("Billing"),to:this.route("profile.billing.index"),active:this.route().current("profile.billing.index")}:null]}}},l=r(0),c=Object(l.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("TopBar",{scopedSlots:t._u([{key:"breadcrumbs",fn:function(){return[r("Breadcrumbs",{attrs:{items:t.breadcrumbs}})]},proxy:!0},{key:"tab-bar",fn:function(){return[r("TopBarTabBarContainer",[r("TabBar",{attrs:{items:t.tabBars}})],1)]},proxy:!0}])})}),[],!1,null,null,null);e.default=c.exports},75:function(t,e,r){"use strict";var n=r(0),a=Object(n.a)({},(function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"}}),this._v(" "),e("path",{attrs:{"fill-rule":"evenodd",d:"M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"}})])}),[],!1,null,null,null);e.a=a.exports},96:function(t,e,r){t.exports=r(267)}}]);