PageSourceSearch

https://networkingmachine.surge.sh/js/payments.8c9d3f6f.js

js networkingmachine.surge.sh collected 2026-10-03 14:56:26 UTC 4,864 bytes, 1 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["payments"],{"3d35":function(t,e,n){},"3e1a":function(t,e,n){t.exports=n.p+"img/session.3b9da74c.png"},"55a1":function(t,e,n){t.exports=n.p+"img/calendar.b5f5b789.jpg"},"7e6e":function(t,e,n){"use strict";var r=n("3d35"),a=n.n(r);a.a},d843:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"payments"},[n("div",{staticClass:"payments__options"},[n("section",{staticClass:"card"},[t._m(0),n("v-btn",{attrs:{color:"indigo lighten-2",loading:t.checked},on:{click:function(e){return t.checkout(!1)}}},[t._v("Proceed ")])],1),n("section",{staticClass:"card"},[t._m(1),n("v-btn",{attrs:{color:"indigo lighten-2",loading:t.checked1},on:{click:function(e){return t.checkout(!0)}}},[t._v("Proceed ")])],1)]),n("div",{staticClass:"payments__table"},[n("v-data-table",{staticClass:"elevation-1",attrs:{headers:t.headers,items:t.payments,"items-per-page":10,loading:t.loading,"loading-text":"Loading payments..."}})],1)])},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product"},[r("img",{attrs:{src:n("3e1a"),alt:"Pay a session"}}),r("div",{staticClass:"description"},[r("h3",[t._v("Pay a session")]),r("h5",[t._v("$2.00")])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"product"},[r("img",{attrs:{src:n("55a1"),alt:"Pay a session"}}),r("div",{staticClass:"description"},[r("h3",[t._v("Monthly subscription")]),r("h5",[t._v("$5.00")])])])}],i="https://js.stripe.com/v3",s=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",c=function(){for(var t=document.querySelectorAll('script[src^="'.concat(i,'"]')),e=0;e<t.length;e++){var n=t[e];if(s.test(n.src))return n}return null},l=function(t){var e=t&&!t.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(i).concat(e);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},u=function(t,e){t&&t._registerWrapper&&t._registerWrapper({name:"stripe-js",version:"1.11.0",startTime:e})},d=null,p=function(t){return null!==d||(d=new Promise((function(e,n){if("undefined"!==typeof window)if(window.Stripe&&t&&console.warn(o),window.Stripe)e(window.Stripe);else try{var r=c();r&&t?console.warn(o):r||(r=l(t)),r.addEventListener("load",(function(){window.Stripe?e(window.Stripe):n(new Error("Stripe.js not available"))})),r.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(a){return void n(a)}else e(null)}))),d},h=function(t,e,n){if(null===t)return null;var r=t.apply(void 0,e);return u(r,n),r},v=Promise.resolve().then((function(){return p(null)})),m=!1;v["catch"]((function(t){m||console.warn(t)}));var f=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];m=!0;var r=Date.now();return v.then((function(t){return h(t,e,r)}))},y=n("2b0e"),g=n("35a5"),w=function(){function t(){this.PRICE_ID="price_1HtdU9D0Z0o5Re4D4bKrZREP"}return t.prototype.getPayments=function(){return y["a"].http.get(g["a"].host+"/api/payments").then((function(t){var e=t.body;return e}))},t.prototype.createPaymentSession=function(t){void 0===t&&(t=!1);var e=t?{priceId:this.PRICE_ID}:{};return y["a"].http.post(g["a"].host+"/api/payments/create-session",e).then((function(t){var e=t.body;return e}))},t.prototype.getPaymentDate=function(t){var e=new Date(1e3*t);return e.getDate()+"-"+e.getMonth()+"-"+e.getFullYear()+" "+e.getHours()+":"+e.getMinutes()},t}(),b=new w,_=(n("0032"),{name:"Payments",data:()=>({payments:[],loading:!0,checked:!1,checked1:!1,stripe:null,headers:[{text:"Amount",align:"center",value:"amount"},{text:"Currency",align:"center",value:"currency"},{text:"Date",align:"center",value:"created"},{text:"Description",align:"center",value:"description"},{text:"Status",align:"center",value:"status"}]}),async beforeCreate(){try{const{payments:t}=await b.getPayments();if(!t)return;t.forEach(t=>t.created=b.getPaymentDate(t.created)),this.payments=t}catch(t){console.log(t),this.$toast.error("Error retrieving your payments")}finally{this.loading=!1}},async created(){this.stripe=await f(g["a"].STRIPE.API_KEY)},methods:{async checkout(t){try{t?this.checked1=!0:this.checked=!0;const{id:e}=await b.createPaymentSession(t),n=await this.stripe.redirectToCheckout({sessionId:e});n.error.message&&this.$toast.error("Error saving your data")}catch(e){this.$toast.error("Error performing the checkout")}finally{t?this.checked1=!1:this.checked=!1}
1}}}),P=_,E=(n("7e6e"),n("2877")),k=Object(E["a"])(P,r,a,!1,null,"1c8b1b1a",null);e["default"]=k.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.