window.componentes = window.componentes || {}; const PageWebAboutUs = { template: ` {{page.name}} `, data() { return { data:null, page: {"id":"web_about_us","owner":null,"type":"web","name":"About Us","description":null,"structure":{"home":[{"component":"web_app_products_data_list"}],"view":[{"component":"web_games_view"},{"bind":{"_game":"this.$root.url.param"},"component":"web_packages_list"},{"component":"recharge_total"},[{"component":"web_payment_methods"},{"component":"web_recharge_new"}]],"create":[{"component":"admin_app_tags_new"}],"update":[{"component":"admin_app_tags_update"}]},"template":{"main_title":"{{page.name}}"},"custom_template":null,"variables":null,"props":null,"watch":null,"method":null,"created":null,"mounted":null,"created_at":"2025-11-19 23:58:51"}, render: {"home":[{"component":"web_app_products_data_list"}],"view":[{"component":"web_games_view"},{"bind":{"_game":"this.$root.url.param"},"component":"web_packages_list"},{"component":"recharge_total"},[{"component":"web_payment_methods"},{"component":"web_recharge_new"}]],"create":[{"component":"admin_app_tags_new"}],"update":[{"component":"admin_app_tags_update"}]}, helpers:{ loading:false }, received_values:{}, ...{} }; }, props: { page: { type: String, default: "list" }, special: { type: String, default: null }, extra: { type: Array, default: () => [] }, allow: { type: Array, default: () => [] }, attrs: { type: Object, default: () => {} }, inline:{ type: Boolean, default: false }, binds: { type: Object, default: () => {} }, ...{} }, watch:{ '$root.url.hash': { handler(newValue, oldValue) { this.received_values = {} }, immediate: true, // Ejecutar inmediatamente deep: false // Usar true si es un objeto/array }, ...{} }, computed:{ render_header(){ let header = [] if (this.render.length>0) { this.render.forEach((field)=>{ if (field.active==='true' || field.active===true) { header.push({... { align:'start', key: field.name, sortable: true, title: field.label, } }); } }) } else { if(this.data && this.data.length>0){ header = Object.keys(this.data[0]).map(key => ({ align:'start', key: key, sortable: true, title: key.charAt(0).toUpperCase() + key.slice(1), })); } } header.push({... { align:'end', key: 'render_table_actions', sortable: false, title: '...', } }) return header }, }, methods: { ReceiveValue(field,val){ this.received_values[field] = val }, goBack(){ window.history.go(-1) }, }, created(){ }, mounted(){ } }; window.componentes.PageWebAboutUs = PageWebAboutUs; const PageWebHome = { template: ` Buscar por Modelo {{product.name}} Buscar por Marca {{product.name}} `, data() { return { data:null, page: {"id":"web_home","owner":null,"type":"web","name":"Home","description":"Best place for recharge your games","structure":{"home":[{"component":"hero_section"}],"view":[{"component":"web_games_view"},{"bind":{"_game":"this.$root.url.param"},"component":"web_packages_list"},{"component":"recharge_total"},[{"component":"web_payment_methods"},{"component":"web_recharge_new"}]],"create":[{"component":"admin_app_tags_new"}],"update":[{"component":"admin_app_tags_update"}]},"template":{"main_title":null},"custom_template":"\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Buscar por Modelo\r\n \r\n \r\n \r\n \r\n \r\n {{product.name}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Buscar por Marca\r\n \r\n \r\n \r\n \r\n \r\n {{product.name}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n","variables":"{\r\n product_models:[],\r\n product_brands:[]\r\n}","props":null,"watch":null,"method":"async getModels(){\r\n const promise = await apiAppProductModels.getAll()\r\n if(promise.data.error==false){\r\n this.product_models = promise.data.data\r\n }\r\n},\r\nasync getBrands(){\r\n const promise = await apiAppProductBrands.getAll()\r\n if(promise.data.error==false){\r\n this.product_brands = promise.data.data\r\n }\r\n}","created":"","mounted":"this.getModels()\r\nthis.getBrands()","created_at":"2025-11-25 19:58:51"}, render: {"home":[{"component":"hero_section"}],"view":[{"component":"web_games_view"},{"bind":{"_game":"this.$root.url.param"},"component":"web_packages_list"},{"component":"recharge_total"},[{"component":"web_payment_methods"},{"component":"web_recharge_new"}]],"create":[{"component":"admin_app_tags_new"}],"update":[{"component":"admin_app_tags_update"}]}, helpers:{ loading:false }, received_values:{}, ...{ product_models:[], product_brands:[] } }; }, props: { page: { type: String, default: "list" }, special: { type: String, default: null }, extra: { type: Array, default: () => [] }, allow: { type: Array, default: () => [] }, attrs: { type: Object, default: () => {} }, inline:{ type: Boolean, default: false }, binds: { type: Object, default: () => {} }, ...{} }, watch:{ '$root.url.hash': { handler(newValue, oldValue) { this.received_values = {} }, immediate: true, // Ejecutar inmediatamente deep: false // Usar true si es un objeto/array }, ...{} }, computed:{ render_header(){ let header = [] if (this.render.length>0) { this.render.forEach((field)=>{ if (field.active==='true' || field.active===true) { header.push({... { align:'start', key: field.name, sortable: true, title: field.label, } }); } }) } else { if(this.data && this.data.length>0){ header = Object.keys(this.data[0]).map(key => ({ align:'start', key: key, sortable: true, title: key.charAt(0).toUpperCase() + key.slice(1), })); } } header.push({... { align:'end', key: 'render_table_actions', sortable: false, title: '...', } }) return header }, }, methods: { ReceiveValue(field,val){ this.received_values[field] = val }, goBack(){ window.history.go(-1) }, async getModels(){ const promise = await apiAppProductModels.getAll() if(promise.data.error==false){ this.product_models = promise.data.data } }, async getBrands(){ const promise = await apiAppProductBrands.getAll() if(promise.data.error==false){ this.product_brands = promise.data.data } } }, created(){ }, mounted(){ this.getModels() this.getBrands() } }; window.componentes.PageWebHome = PageWebHome;