1new Vue({el:"#stm-pricing-plan",data:{payment_loading:!1,pricing_plan_id:null,payment_method:null,payment_data:null,my_plans_url:null,message:!1,loading:!1,errors:!1,name:'',email:'',},computed:{validate_name(){return this.name!==''},validate_email(){const re=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return re.test(String(this.email).toLowerCase())}},created(){if(typeof stm_payment_data!="undefined"){this.payment_data=stm_payment_data;this.pricing_plan_id=stm_payment_data.pricing_plan_id;if(typeof stm_payment_data.my_plans_url!="undefined") 2this.my_plans_url=stm_payment_data.my_plans_url} 3if(typeof current_user!="undefined"){this.name=current_user.display_name 4this.email=current_user.user_email}},methods:{buy:function(){this.errors=!1;this.message=!1;if(this.name!==''&&this.email!=='') 5ulisting_pricing_plan_payment_buy(this);},sendRequest(){var vm=this;var payment_data=ulisting_pricing_plan_payment_send_request(this);payment_data=payment_data||{pricing_plan_id:vm.pricing_plan_id,payment_method:'free'};payment_data.name=this.name 6payment_data.email=this.email 7vm.payment_loading=!0;vm.$http.post("pricing-plan/payment",payment_data).then(response=>{if(response.body.errors) 8vm.errors=response.body.errors;if(response.body.message) 9vm.message=response.body.message;vm.payment_loading=!1;ulisting_pricing_plan_payment_success(vm,response.body) 10if(payment_data.payment_method==='free'){if(response.body.success){window.location.replace(this.my_plans_url+'?action=created&id='+response.body.user_plan_id) 11return}}})},change(){}},watch:{payment_method:function(value){ulisting_pricing_plan_payment_selectd(this)}}}) 12;
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.