Initial commit: plantilla base PHP para webs Acai CMS

This commit is contained in:
Jordan
2026-02-21 21:13:57 +00:00
commit ed811be892
322 changed files with 62738 additions and 0 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,139 @@
(function(self){'use strict';if(self.fetch){return}
var support={searchParams:'URLSearchParams' in self,iterable:'Symbol' in self&&'iterator' in Symbol,blob:'FileReader' in self&&'Blob' in self&&(function(){try{new Blob()
return!0}catch(e){return!1}})(),formData:'FormData' in self,arrayBuffer:'ArrayBuffer' in self}
if(support.arrayBuffer){var viewClasses=['[object Int8Array]','[object Uint8Array]','[object Uint8ClampedArray]','[object Int16Array]','[object Uint16Array]','[object Int32Array]','[object Uint32Array]','[object Float32Array]','[object Float64Array]']
var isDataView=function(obj){return obj&&DataView.prototype.isPrototypeOf(obj)}
var isArrayBufferView=ArrayBuffer.isView||function(obj){return obj&&viewClasses.indexOf(Object.prototype.toString.call(obj))>-1}}
function normalizeName(name){if(typeof name!=='string'){name=String(name)}
if(/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(name)){throw new TypeError('Invalid character in header field name')}
return name.toLowerCase()}
function normalizeValue(value){if(typeof value!=='string'){value=String(value)}
return value}
function iteratorFor(items){var iterator={next:function(){var value=items.shift()
return{done:value===undefined,value:value}}}
if(support.iterable){iterator[Symbol.iterator]=function(){return iterator}}
return iterator}
function Headers(headers){this.map={}
if(headers instanceof Headers){headers.forEach(function(value,name){this.append(name,value)},this)}else if(Array.isArray(headers)){headers.forEach(function(header){this.append(header[0],header[1])},this)}else if(headers){Object.getOwnPropertyNames(headers).forEach(function(name){this.append(name,headers[name])},this)}}
Headers.prototype.append=function(name,value){name=normalizeName(name)
value=normalizeValue(value)
var oldValue=this.map[name]
this.map[name]=oldValue?oldValue+','+value:value}
Headers.prototype['delete']=function(name){delete this.map[normalizeName(name)]}
Headers.prototype.get=function(name){name=normalizeName(name)
return this.has(name)?this.map[name]:null}
Headers.prototype.has=function(name){return this.map.hasOwnProperty(normalizeName(name))}
Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=normalizeValue(value)}
Headers.prototype.forEach=function(callback,thisArg){for(var name in this.map){if(this.map.hasOwnProperty(name)){callback.call(thisArg,this.map[name],name,this)}}}
Headers.prototype.keys=function(){var items=[]
this.forEach(function(value,name){items.push(name)})
return iteratorFor(items)}
Headers.prototype.values=function(){var items=[]
this.forEach(function(value){items.push(value)})
return iteratorFor(items)}
Headers.prototype.entries=function(){var items=[]
this.forEach(function(value,name){items.push([name,value])})
return iteratorFor(items)}
if(support.iterable){Headers.prototype[Symbol.iterator]=Headers.prototype.entries}
function consumed(body){if(body.bodyUsed){return Promise.reject(new TypeError('Already read'))}
body.bodyUsed=!0}
function fileReaderReady(reader){return new Promise(function(resolve,reject){reader.onload=function(){resolve(reader.result)}
reader.onerror=function(){reject(reader.error)}})}
function readBlobAsArrayBuffer(blob){var reader=new FileReader()
var promise=fileReaderReady(reader)
reader.readAsArrayBuffer(blob)
return promise}
function readBlobAsText(blob){var reader=new FileReader()
var promise=fileReaderReady(reader)
reader.readAsText(blob)
return promise}
function readArrayBufferAsText(buf){var view=new Uint8Array(buf)
var chars=new Array(view.length)
for(var i=0;i<view.length;i++){chars[i]=String.fromCharCode(view[i])}
return chars.join('')}
function bufferClone(buf){if(buf.slice){return buf.slice(0)}else{var view=new Uint8Array(buf.byteLength)
view.set(new Uint8Array(buf))
return view.buffer}}
function Body(){this.bodyUsed=!1
this._initBody=function(body){this._bodyInit=body
if(!body){this._bodyText=''}else if(typeof body==='string'){this._bodyText=body}else if(support.blob&&Blob.prototype.isPrototypeOf(body)){this._bodyBlob=body}else if(support.formData&&FormData.prototype.isPrototypeOf(body)){this._bodyFormData=body}else if(support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)){this._bodyText=body.toString()}else if(support.arrayBuffer&&support.blob&&isDataView(body)){this._bodyArrayBuffer=bufferClone(body.buffer)
this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(support.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(body)||isArrayBufferView(body))){this._bodyArrayBuffer=bufferClone(body)}else{throw new Error('unsupported BodyInit type')}
if(!this.headers.get('content-type')){if(typeof body==='string'){this.headers.set('content-type','text/plain;charset=UTF-8')}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set('content-type',this._bodyBlob.type)}else if(support.searchParams&&URLSearchParams.prototype.isPrototypeOf(body)){this.headers.set('content-type','application/x-www-form-urlencoded;charset=UTF-8')}}}
if(support.blob){this.blob=function(){var rejected=consumed(this)
if(rejected){return rejected}
if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error('could not read FormData body as blob')}else{return Promise.resolve(new Blob([this._bodyText]))}}
this.arrayBuffer=function(){if(this._bodyArrayBuffer){return consumed(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(readBlobAsArrayBuffer)}}}
this.text=function(){var rejected=consumed(this)
if(rejected){return rejected}
if(this._bodyBlob){return readBlobAsText(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error('could not read FormData body as text')}else{return Promise.resolve(this._bodyText)}}
if(support.formData){this.formData=function(){return this.text().then(decode)}}
this.json=function(){return this.text().then(JSON.parse)}
return this}
var methods=['DELETE','GET','HEAD','OPTIONS','POST','PUT']
function normalizeMethod(method){var upcased=method.toUpperCase()
return(methods.indexOf(upcased)>-1)?upcased:method}
function Request(input,options){options=options||{}
var body=options.body
if(input instanceof Request){if(input.bodyUsed){throw new TypeError('Already read')}
this.url=input.url
this.credentials=input.credentials
if(!options.headers){this.headers=new Headers(input.headers)}
this.method=input.method
this.mode=input.mode
if(!body&&input._bodyInit!=null){body=input._bodyInit
input.bodyUsed=!0}}else{this.url=String(input)}
this.credentials=options.credentials||this.credentials||'omit'
if(options.headers||!this.headers){this.headers=new Headers(options.headers)}
this.method=normalizeMethod(options.method||this.method||'GET')
this.mode=options.mode||this.mode||null
this.referrer=null
if((this.method==='GET'||this.method==='HEAD')&&body){throw new TypeError('Body not allowed for GET or HEAD requests')}
this._initBody(body)}
Request.prototype.clone=function(){return new Request(this,{body:this._bodyInit})}
function decode(body){var form=new FormData()
body.trim().split('&').forEach(function(bytes){if(bytes){var split=bytes.split('=')
var name=split.shift().replace(/\+/g,' ')
var value=split.join('=').replace(/\+/g,' ')
form.append(decodeURIComponent(name),decodeURIComponent(value))}})
return form}
function parseHeaders(rawHeaders){var headers=new Headers()
var preProcessedHeaders=rawHeaders.replace(/\r?\n[\t ]+/g,' ')
preProcessedHeaders.split(/\r?\n/).forEach(function(line){var parts=line.split(':')
var key=parts.shift().trim()
if(key){var value=parts.join(':').trim()
headers.append(key,value)}})
return headers}
Body.call(Request.prototype)
function Response(bodyInit,options){if(!options){options={}}
this.type='default'
this.status=options.status===undefined?200:options.status
this.ok=this.status>=200&&this.status<300
this.statusText='statusText' in options?options.statusText:'OK'
this.headers=new Headers(options.headers)
this.url=options.url||''
this._initBody(bodyInit)}
Body.call(Response.prototype)
Response.prototype.clone=function(){return new Response(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Headers(this.headers),url:this.url})}
Response.error=function(){var response=new Response(null,{status:0,statusText:''})
response.type='error'
return response}
var redirectStatuses=[301,302,303,307,308]
Response.redirect=function(url,status){if(redirectStatuses.indexOf(status)===-1){throw new RangeError('Invalid status code')}
return new Response(null,{status:status,headers:{location:url}})}
self.Headers=Headers
self.Request=Request
self.Response=Response
self.fetch=function(input,init){return new Promise(function(resolve,reject){var request=new Request(input,init)
var xhr=new XMLHttpRequest()
xhr.onload=function(){var options={status:xhr.status,statusText:xhr.statusText,headers:parseHeaders(xhr.getAllResponseHeaders()||'')}
options.url='responseURL' in xhr?xhr.responseURL:options.headers.get('X-Request-URL')
var body='response' in xhr?xhr.response:xhr.responseText
resolve(new Response(body,options))}
xhr.onerror=function(){reject(new TypeError('Network request failed'))}
xhr.ontimeout=function(){reject(new TypeError('Network request failed'))}
xhr.open(request.method,request.url,!0)
if(request.credentials==='include'){xhr.withCredentials=!0}else if(request.credentials==='omit'){xhr.withCredentials=!1}
if('responseType' in xhr&&support.blob){xhr.responseType='blob'}
request.headers.forEach(function(value,name){xhr.setRequestHeader(name,value)})
xhr.send(typeof request._bodyInit==='undefined'?null:request._bodyInit)})}
self.fetch.polyfill=!0})(typeof self!=='undefined'?self:this)

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,37 @@
(function umd(root,factory){if(typeof module==='object'&&typeof exports==='object')
module.exports=factory()
else if(typeof define==='function'&&define.amd)
define([],factory)
else root.httpVueLoader=factory()})(this,function factory(){'use strict';var scopeIndex=0;StyleContext.prototype={withBase:function(callback){var tmpBaseElt;if(this.component.baseURI){tmpBaseElt=document.createElement('base');tmpBaseElt.href=this.component.baseURI;var headElt=this.component.getHead();headElt.insertBefore(tmpBaseElt,headElt.firstChild)}
callback.call(this);if(tmpBaseElt)
this.component.getHead().removeChild(tmpBaseElt)},scopeStyles:function(styleElt,scopeName){function process(){var sheet=styleElt.sheet;var rules=sheet.cssRules;for(var i=0;i<rules.length;++i){var rule=rules[i];if(rule.type!==1)
continue;var scopedSelectors=[];rule.selectorText.split(/\s*,\s*/).forEach(function(sel){scopedSelectors.push(scopeName+' '+sel);var segments=sel.match(/([^ :]+)(.+)?/);scopedSelectors.push(segments[1]+scopeName+(segments[2]||''))});var scopedRule=scopedSelectors.join(',')+rule.cssText.substr(rule.selectorText.length);sheet.deleteRule(i);sheet.insertRule(scopedRule,i)}}
try{process()}catch(ex){if(ex instanceof DOMException&&ex.code===DOMException.INVALID_ACCESS_ERR){styleElt.sheet.disabled=!0;styleElt.addEventListener('load',function onStyleLoaded(){styleElt.removeEventListener('load',onStyleLoaded);setTimeout(function(){process();styleElt.sheet.disabled=!1})});return}
throw ex}},compile:function(){var hasTemplate=this.template!==null;var scoped=this.elt.hasAttribute('scoped');if(scoped){if(!hasTemplate)
return;this.elt.removeAttribute('scoped')}
this.withBase(function(){this.component.getHead().appendChild(this.elt)});if(scoped)
this.scopeStyles(this.elt,'['+this.component.getScopeId()+']');return Promise.resolve()},getContent:function(){return this.elt.textContent},setContent:function(content){this.withBase(function(){this.elt.textContent=content})}};function StyleContext(component,elt){this.component=component;this.elt=elt}
ScriptContext.prototype={getContent:function(){return this.elt.textContent},setContent:function(content){this.elt.textContent=content},compile:function(module){var childModuleRequire=function(childURL){return httpVueLoader.require(resolveURL(this.component.baseURI,childURL))}.bind(this);var childLoader=function(childURL,childName){return httpVueLoader(resolveURL(this.component.baseURI,childURL),childName)}.bind(this);try{Function('exports','require','httpVueLoader','module',this.getContent()).call(this.module.exports,this.module.exports,childModuleRequire,childLoader,this.module)}catch(ex){if(!('lineNumber' in ex)){return Promise.reject(ex)}
var vueFileData=responseText.replace(/\r?\n/g,'\n');var lineNumber=vueFileData.substr(0,vueFileData.indexOf(script)).split('\n').length+ex.lineNumber-1;throw new(ex.constructor)(ex.message,url,lineNumber)}
return Promise.resolve(this.module.exports).then(httpVueLoader.scriptExportsHandler.bind(this)).then(function(exports){this.module.exports=exports}.bind(this))}};function ScriptContext(component,elt){this.component=component;this.elt=elt;this.module={exports:{}}}
TemplateContext.prototype={getContent:function(){return this.elt.innerHTML},setContent:function(content){this.elt.innerHTML=content},getRootElt:function(){var tplElt=this.elt.content||this.elt;if('firstElementChild' in tplElt)
return tplElt.firstElementChild;for(tplElt=tplElt.firstChild;tplElt!==null;tplElt=tplElt.nextSibling)
if(tplElt.nodeType===Node.ELEMENT_NODE)
return tplElt;return null},compile:function(){return Promise.resolve()}};function TemplateContext(component,elt){this.component=component;this.elt=elt}
Component.prototype={getHead:function(){return document.head||document.getElementsByTagName('head')[0]},getScopeId:function(){if(this._scopeId===''){this._scopeId='data-s-'+(scopeIndex++).toString(36);this.template.getRootElt().setAttribute(this._scopeId,'')}
return this._scopeId},load:function(componentURL){return httpVueLoader.httpRequest(componentURL).then(function(responseText){this.baseURI=componentURL.substr(0,componentURL.lastIndexOf('/')+1);var doc=document.implementation.createHTMLDocument('');doc.body.innerHTML=(this.baseURI?'<base href="'+this.baseURI+'">':'')+responseText;for(var it=doc.body.firstChild;it;it=it.nextSibling){switch(it.nodeName){case 'TEMPLATE':this.template=new TemplateContext(this,it);break;case 'SCRIPT':this.script=new ScriptContext(this,it);break;case 'STYLE':this.styles.push(new StyleContext(this,it));break}}
return this}.bind(this))},_normalizeSection:function(eltCx){var p;if(eltCx===null||!eltCx.elt.hasAttribute('src')){p=Promise.resolve(null)}else{p=httpVueLoader.httpRequest(eltCx.elt.getAttribute('src')).then(function(content){eltCx.elt.removeAttribute('src');return content})}
return p.then(function(content){if(eltCx!==null&&eltCx.elt.hasAttribute('lang')){var lang=eltCx.elt.getAttribute('lang');eltCx.elt.removeAttribute('lang');return httpVueLoader.langProcessor[lang.toLowerCase()].call(this,content===null?eltCx.getContent():content)}
return content}.bind(this)).then(function(content){if(content!==null)
eltCx.setContent(content)})},normalize:function(){return Promise.all(Array.prototype.concat(this._normalizeSection(this.template),this._normalizeSection(this.script),this.styles.map(this._normalizeSection))).then(function(){return this}.bind(this))},compile:function(){return Promise.all(Array.prototype.concat(this.template&&this.template.compile(),this.script&&this.script.compile(),this.styles.map(function(style){return style.compile()}))).then(function(){return this}.bind(this))}};function Component(name){this.name=name;this.template=null;this.script=null;this.styles=[];this._scopeId=''}
function identity(value){return value}
function parseComponentURL(url){var comp=url.match(/(.*?)([^/]+?)\/?(\.vue)?(\?.*|#.*|$)/);return{name:comp[2],url:comp[1]+comp[2]+(comp[3]===undefined?'/index.vue':comp[3])+comp[4]}}
function resolveURL(baseURL,url){if(url.substr(0,2)==='./'||url.substr(0,3)==='../'){return baseURL+url}
return url}
httpVueLoader.load=function(url,name){return function(){return new Component(name).load(url).then(function(component){return component.normalize()}).then(function(component){return component.compile()}).then(function(component){var exports=component.script!==null?component.script.module.exports:{};if(component.template!==null)
exports.template=component.template.getContent();if(exports.name===undefined)
if(component.name!==undefined)
exports.name=component.name;exports._baseURI=component.baseURI;return exports})}};httpVueLoader.register=function(Vue,url){var comp=parseComponentURL(url);Vue.component(comp.name,httpVueLoader.load(comp.url))};httpVueLoader.install=function(Vue){Vue.mixin({beforeCreate:function(){var components=this.$options.components;for(var componentName in components){if(typeof(components[componentName])==='string'&&components[componentName].substr(0,4)==='url:'){var comp=parseComponentURL(components[componentName].substr(4));var componentURL=('_baseURI' in this.$options)?resolveURL(this.$options._baseURI,comp.url):comp.url;if(isNaN(componentName))
components[componentName]=httpVueLoader.load(componentURL,componentName);else components[componentName]=Vue.component(comp.name,httpVueLoader.load(componentURL,comp.name))}}}})};httpVueLoader.require=function(moduleName){return window[moduleName]};httpVueLoader.httpRequest=function(url){return new Promise(function(resolve,reject){var xhr=new XMLHttpRequest();xhr.open('GET',url);xhr.responseType='text';xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status>=200&&xhr.status<300)
resolve(xhr.responseText);else reject(xhr.status)}};xhr.send(null)})};httpVueLoader.langProcessor={html:identity,js:identity,css:identity};httpVueLoader.scriptExportsHandler=identity;function httpVueLoader(url,name){var comp=parseComponentURL(url);return httpVueLoader.load(comp.url,name)}
return httpVueLoader})

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
new WOW().init();$('[data-rel="swipebox"]').swipebox()

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,9 @@
var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],window_width=w.innerWidth||e.clientWidth||g.clientWidth,window_height=w.innerHeight||e.clientHeight||g.clientHeight;var navbar_toggle=document.querySelector('.navbar-toggle');var navbar=document.querySelector('.navbar-wrapper');var navbar_items=navbar.querySelector('.nav');var scroll=0.0;var navbarHeight=navbar.offsetHeight;const OFFSET_TOP=30.0;window.addEventListener('scroll',function(){scroll=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;toggle_nav_style()});window.addEventListener('resize',function(){window_width=w.innerWidth||e.clientWidth||g.clientWidth;window_height=w.innerHeight||e.clientHeight||g.clientHeight;toggle_nav_style()});toggle_nav_style(!0);window.dispatchEvent(new Event('scroll'));window.dispatchEvent(new Event('resize'));function toggle_nav_style(force){if(scroll>=OFFSET_TOP||window_width<1024){nav_alt(force)}else{nav_normal(force)}}
function nav_normal(force){if(!navbar.classList.contains('bg-white')&&!force)return!1;navbar.classList.remove('bg-white');navbar.classList.remove('shadow-md')}
function nav_alt(force){if(navbar.classList.contains('bg-white')&&!force)return!1;navbar.classList.add('bg-white');navbar.classList.add('shadow-md')}
function scrollIt(destination,duration=200,easing='linear',callback){const easings={linear(t){return t},easeInQuad(t){return t*t},easeOutQuad(t){return t*(2-t)},easeInOutQuad(t){return t<0.5?2*t*t:-1+(4-2*t)*t},easeInCubic(t){return t*t*t},easeOutCubic(t){return(--t)*t*t+1},easeInOutCubic(t){return t<0.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart(t){return t*t*t*t},easeOutQuart(t){return 1-(--t)*t*t*t},easeInOutQuart(t){return t<0.5?8*t*t*t*t:1-8*(--t)*t*t*t},easeInQuint(t){return t*t*t*t*t},easeOutQuint(t){return 1+(--t)*t*t*t*t},easeInOutQuint(t){return t<0.5?16*t*t*t*t*t:1+16*(--t)*t*t*t*t}};const start=window.pageYOffset;const startTime='now' in window.performance?performance.now():new Date().getTime();const documentHeight=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);const windowHeight=window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName('body')[0].clientHeight;const destinationOffset=typeof destination==='number'?destination:destination.offsetTop-navbarHeight;const destinationOffsetToScroll=Math.round(documentHeight-destinationOffset<windowHeight?documentHeight-windowHeight:destinationOffset);if('requestAnimationFrame' in window===!1){window.scrollTo(0,destinationOffsetToScroll);if(callback){callback()}
return}
function scroll(){const now='now' in window.performance?performance.now():new Date().getTime();const time=Math.min(1,((now-startTime)/duration));const timeFunction=easings[easing](time);window.scrollTo(0,Math.ceil((timeFunction*(destinationOffsetToScroll-start))+start));if(window.pageYOffset===destinationOffsetToScroll){if(callback){callback()}
return}
requestAnimationFrame(scroll)}
scroll()}

1
template/estandar/js/minified/rrssb.min.js vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
template/estandar/js/minified/wow.min.js vendored Executable file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
class Api{static send(request_method="POST",url,header,body={},callback,server=Api.server,type){url=server+url;var xhr=new XMLHttpRequest();xhr.addEventListener("readystatechange",function(){if(this.readyState===4){try{callback(JSON.parse(this.responseText))}catch(error){callback(this.responseText)}}});xhr.open(request_method,url);for(const key in Api.defaultHeader){xhr.setRequestHeader(key,Api.defaultHeader[key])}
if(header){for(const key in header){xhr.setRequestHeader(key,header[key])}}
xhr.send(JSON.stringify(body))}
static suscribeStripeMarketeina(selection){return new Promise((resolve,reject)=>{if(!Api.token){reject(new Error("No hay token"));return!1}
Api.send("POST","/api/pay/",{Authorization:"Bearer "+Api.token},{method:"POST",action:"suscribeMarketeina",selection:selection},response=>{if(!response.success){if(JSON.parse(response).code==403){alert("Acceso a la aplicacion denegado, esto puede ocurrir por inactividad, vuelva a loguearse");localStorage.removeItem("COCOOKIE");localStorage.removeItem("COCOUSERNUM");window.location.reload()}}
resolve(response)})})}}
Api.user=null;Api.usernum=null;Api.token=null;Api.server="https://ws.cocosolution.com";Api.defaultHeader={"Content-type":"application/json"}