qcobjectsnewapp 2.5.6-ts → 2.5.8-ts
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/VERSION +1 -1
- package/package.json +3 -3
- package/public/js/config.js +4 -4
- package/public/js/config.js.map +3 -3
- package/public/js/customWidgets.js +4 -4
- package/public/js/customWidgets.js.map +3 -3
- package/public/js/init.js +36 -56
- package/public/js/init.js.map +4 -4
- package/public/js/packages/com.qcobjects.installer.js +31 -51
- package/public/js/packages/com.qcobjects.installer.js.map +4 -4
- package/public/js/packages/com.qcobjects.services.github.js +17 -17
- package/public/js/packages/com.qcobjects.services.github.js.map +3 -3
- package/public/js/packages/com.qcobjects.services.newapp.js +4 -4
- package/public/js/packages/com.qcobjects.services.newapp.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.components.js +8 -8
- package/public/js/packages/org.quickcorp.custom.components.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.controllers.js +32 -52
- package/public/js/packages/org.quickcorp.custom.controllers.js.map +4 -4
- package/public/js/packages/org.quickcorp.custom.effects.js +4 -4
- package/public/js/packages/org.quickcorp.custom.effects.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.js +36 -56
- package/public/js/packages/org.quickcorp.custom.js.map +4 -4
- package/public/js/packages/org.quickcorp.custom.models.js +4 -4
- package/public/js/packages/org.quickcorp.custom.models.js.map +3 -3
- package/public/js/packages/org.quickcorp.custom.views.js +4 -4
- package/public/js/packages/org.quickcorp.custom.views.js.map +3 -3
- package/CNAME +0 -1
|
@@ -1,44 +1,24 @@
|
|
|
1
|
-
"use script";"use strict";var global=(()=>{var _i=Object.defineProperty;var Wc=(e,a,t)=>a in e?_i(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var h=(e,a)=>_i(e,"name",{value:a,configurable:!0}),nt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(a,t)=>(typeof require<"u"?require:a)[t]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Ve=(e,a)=>()=>{try{return a||e((a={exports:{}}).exports,a),a.exports}catch(t){throw a=0,t}};var r=(e,a,t)=>Wc(e,typeof a!="symbol"?a+"":a,t);var yt=Ve((Ql,Yt)=>{"use strict";var Qc=Object.create,Xo=Object.defineProperty,Kc=Object.getOwnPropertyDescriptor,is=Object.getOwnPropertyNames,Vc=Object.getPrototypeOf,Jc=Object.prototype.hasOwnProperty,O=h((e,a)=>Xo(e,"name",{value:a,configurable:!0}),"__name"),$=h((e,a)=>h(function(){return e&&(a=(0,e[is(e)[0]])(e=0)),a},"__init"),"__esm"),zc=h((e,a)=>h(function(){return a||(0,e[is(e)[0]])((a={exports:{}}).exports,a),a.exports},"__require"),"__commonJS"),Ei=h((e,a)=>{for(var t in a)Xo(e,t,{get:a[t],enumerable:!0})},"__export"),Si=h((e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of is(a))!Jc.call(e,o)&&o!==t&&Xo(e,o,{get:h(()=>a[o],"get"),enumerable:!(n=Kc(a,o))||n.enumerable});return e},"__copyProps"),as=h((e,a,t)=>(t=e!=null?Qc(Vc(e)):{},Si(a||!e||!e.__esModule?Xo(t,"default",{value:e,enumerable:!0}):t,e)),"__toESM"),Yc=h(e=>Si(Xo({},"__esModule",{value:!0}),e),"__toCommonJS"),wo,Zo=$({"src/is_raw_class.ts"(){"use strict";wo=O(e=>!!(typeof e=="function"&&e.toString().startsWith("class")),"__is_raw_class__")}}),vo,er=$({"src/ObjectName.ts"(){"use strict";vo=O(e=>{let a="";return typeof e=="function"&&Object.hasOwn(e,"name")&&e.name!==""?a=e.name:typeof e<"u"&&typeof e.constructor=="function"&&e.constructor.name!==""?a=e.constructor.name:typeof e<"u"&&typeof e.constructor=="object"&&(a=e.constructor.toString().replace(/\[(.*?)\]/g,"$1").split(" ").slice(1).join("")),a},"ObjectName")}}),$e,it=$({"src/getType.ts"(){"use strict";Zo(),er(),$e=O(h(function(a){let t="";switch(!0){case(typeof a=="object"&&!!a.constructor&&!!a.constructor.name&&a.constructor.name!==""):t=a.constructor.name;break;case(typeof a=="function"&&!!a.name):t=a.name;break;case(wo(a)&&!!a.name):t=a.name;break;case(!!a&&!!a.__classType&&a.__classType!==""):t=a.__classType;break;case(!!a&&!!a.__definition&&!!a.__definition.__classType&&a.__definition.__classType!==""):t=a.__definition.__classType;break;default:t=vo(a);break}return t},"__getType__2"),"__getType__")}}),tr,Nr=$({"src/make_global.ts"(){"use strict";Re(),tr=O(e=>{e&&e.name&&(typeof J<"u"&&typeof e<"u"&&J!==null&&!Object.hasOwn(J,e.name)?ho(e.name,e):typeof global<"u"?global[e.name]=e:typeof globalThis<"u"&&(globalThis[e.name]=e))},"__make_global__")}}),Ae,Te,Go,Kt,Bo,Ni,Xr,ts,ns,os,Pi,gr,mt=$({"src/PrimaryCollections.ts"(){"use strict";it(),Nr(),Ae={},Te={},Go=[],Kt=[],Bo=O(function(e,a){let t=$e(e),n=e.name||t;return n.toLowerCase()==="function"&&(n=t),typeof e.__definition>"u"&&(e.__definition={}),e.__definition.__classType=t,typeof a<"u"&&(e.__definition.__namespace=a),Ae[n]=e,tr(e),Ae[n]},"__register_class__"),Ni=O(e=>Ae[e],"get_QC_CLASS"),Xr=O(function(e){let a=[];for(let t of Object.keys(e))typeof e[t]<"u"&&typeof e[t]!="function"&&Object.hasOwn(e[t],"length")&&e[t].length>0&&(a.push(t),a=a.concat(Xr(e[t])));return a},"_get_packages_names"),ts=O(()=>Xr(Te),"getPackagesNamesList"),ns=O(()=>[...ts()].map(e=>{let a=Te[e],t;return a&&(t={packageName:e,classesList:a.filter(function(){return!0})}),t}).filter(function(e){return typeof e<"u"}),"getPackagesList"),os=O(()=>{let e=[];return[...ns()].forEach(function(a){return e=e.concat(a.classesList.map(t=>({packageName:a.packageName,className:`${a.packageName}.${$e(t)}`,classFactory:t}))),a}),e},"getClassesList"),Pi=O(()=>[...os()].map(e=>e.className),"getClassesNamesList"),gr=O((e,a)=>{Te[e]=a},"set_QC_PACKAGE")}}),Q,It=$({"src/Export.ts"(){"use strict";Nr(),Q=O(function(e){return tr(e)},"Export"),Q.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"}}});async function Ai(e){C.debug(`Importing ${e}...`);function a(t){return C.debug(`Validating if ${t} is a package name...`),!t.startsWith(".")&&!t.startsWith("/")&&!t.includes("/")}h(a,"isPackage"),O(a,"isPackage");try{return!/\.[^/\\]+$/.test(e)&&!a(e)&&(C.debug(`${e} does not have an extension and is not a package. Adding js extension.`),e+=".js"),await import(e)}catch(t){C.warn(`Failed to load module: ${t}`)}}h(Ai,"_import_");var Xc=$({"src/_import_.ts"(){"use strict";ee(),O(Ai,"_import_")}}),Zr,k,cs,mi,Pt,Pr,pe=$({"src/platform.ts"(){"use strict";Xc(),ee(),Zr=typeof window<"u"&&"Deno"in window,k=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!Zr,cs=typeof Yt<"u",mi=O(e=>{},"deno_require"),Pt=O(e=>Zr?mi(e):(a=>{let t;try{(async()=>{t=await Ai(a)})().then(n=>{t=n&&n.default||n}).catch(n=>{C.warn(`An error ocurred: ${n}`)})}catch(n){C.debug(`An error ocurred importing module. ${n}`),t={export:{}}}return t})(e),"_require_"),Pr=(function(){return typeof cordova<"u"})()}}),yr,C,ee=$({"src/Logger.ts"(){"use strict";var e;It(),pe(),yr=(e=class{constructor(){r(this,"debugEnabled",!0);r(this,"infoEnabled",!0);r(this,"warnEnabled",!0)}debug(t){this.debugEnabled&&console.log("\x1B[35m%s\x1B[0m",`[DEBUG][${performance.now().toLocaleString()}] ${t}`)}info(t){let n;this.infoEnabled&&(k?n="\x1B[103m%s\x1B[0m":n="\x1B[33m%s\x1B[0m",console.info(n,`[INFO][${performance.now().toLocaleString()}] ${t}`))}warn(t){this.warnEnabled&&console.warn("\x1B[31m%s\x1B[0m",`[WARN][${performance.now().toLocaleString()}] ${t}`)}},h(e,"Logger"),O(e,"Logger"),e),C=new yr,Q(C)}}),_t,Tt,bt=$({"src/Cast.ts"(){"use strict";ee(),_t=O(function(e,a){for(let t in e)if(typeof e[t]<"u")try{a[t]=e[t]}catch(n){C.debug(`An error ocurred: ${n}.`),C.warn(`Unable to cast ${(typeof e).toString()}.${typeof t.toString()} to ${(typeof a).toString()}.${typeof t.toString()}`)}return a},"_Cast"),Tt=O(function(e,a,t=!0){for(let n in e)if(typeof e[n]<"u"&&typeof e[n]!="function")try{a[n]=e[n]}catch(o){t||C.debug(`An error ocurred: ${o}.`)}else if(typeof e[n]=="function")try{a[n]=e[n].bind(a)}catch(o){C.warn(o)}return a},"_CastProps")}}),De,bi,yi,at=$({"src/DOMCreateElement.ts"(){"use strict";pe(),De=O(function(e,a,t){let n;return k?n=yi(e,a,t):n={},n},"_DOMCreateElement"),bi=O((e,{props:a,children:t})=>e({props:a,children:t}),"ComplexTypeCall"),yi=O((e,a,t)=>{if(typeof e!="string")return bi(e,{props:a,children:t});let n=document.createElement(e);return a&&Object.entries(a).forEach(([o,s])=>{typeof s=="string"||typeof s=="number"?n.setAttribute(o,s.toString()):typeof s=="function"&&o.toLowerCase().startsWith("on")&&n.addEventListener(o.slice(2).toLowerCase(),s.bind(n))}),Array.isArray(t)?t.filter(o=>o instanceof Node).forEach(o=>{n.appendChild(o)}):t instanceof Node?n.appendChild(t):typeof t=="string"&&(n.innerHTML=t),n},"_DOMCreateComplexElement")}}),Nt,ls,ds=$({"src/IncrementInstanceID.ts"(){"use strict";Nt=0,ls=O(()=>{Nt=typeof Nt>"u"||Nt===null?0:Nt+1},"IncrementInstanceID")}}),oe,rt,jt=$({"src/introspection.ts"(){"use strict";oe=O(e=>{let a=typeof e.prototype<"u"?e.prototype.toString:function(){return""};typeof e.prototype<"u"&&(e.prototype.toString=function(){let t=["__qcobjects__","__qcobjects_sdk__","__loaded__","ComplexStorageCache","css","append","attachIn","debug","info","warn","QC_Append","set","get","done","componentDone","_new_","__new__","Class","ClassFactory","New","Export","Package","Import","subelements","componentLoader","buildComponents","Controller","View","VO","Service","serviceLoader","JSONService","ConfigService","SourceJS","SourceCSS","ArrayList","ArrayCollection","Effect","Timer","sum","avg","table","max","min","range","matrix","matrix2d","matrix3d","unique","uniqueId","shortCode","NamespaceRef"],n;return t.includes(this.name)?n=this.name+"{ [QCObjects native code] }":n=a.call(this),n})},"_protected_code_"),oe(Function),rt=O(function(e){let a=[];for(let t in e)(typeof e[t]).toLowerCase()==="function"&&a.push(e[t]);return a},"_methods_")}}),re,ge=$({"src/Package.ts"(){"use strict";Zo(),mt(),re=O((e,a=[])=>{if(Object.hasOwn(Te,e)&&typeof Te[e]<"u"&&typeof Te[e]!="string"&&Object.hasOwn(Te[e],"length")&&Te[e].length>0&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Bo(t,e)}),gr(e,Te[e].concat(a));else if(typeof a<"u"&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Bo(t,e)}),gr(e,a);else if(wo(a))typeof a.__definition>"u"&&(a.__definition={}),a.__definition.__namespace=e,a.__namespace=e,Bo(a,e),gr(e,[a]);else throw new Error(`An error ocurred. It was not possible to add classes to ${e}.`);return Object.hasOwn(Te,e)?Te[e]:[]},"Package")}}),me,Ee=$({"src/InheritClass.ts"(){"use strict";var e;ee(),ds(),bt(),at(),it(),jt(),rr(),pe(),mt(),ge(),me=(e=class{constructor(t){r(this,"__definition");r(this,"_body");r(this,"childs");r(this,"__instanceID");r(this,"__namespace");typeof t<"u"&&typeof t.__definition<"u"&&(this.__definition={...t.__definition});let n=this;if(typeof t<"u"&&t!==null&&Object.keys(t).filter(function(o){return isNaN(o)&&!["__instanceID","__classType","__definition"].includes(o)}).forEach(function(o){typeof n[o]=="function"?n[o]=t[o].bind(n):n[o]=t[o]}),ls(),n.__instanceID||Object.defineProperty(n,"__instanceID",{value:Nt,writable:!1}),typeof n.__definition<"u"&&Object.keys(n.__definition).filter(function(o){return isNaN(o)&&!["name","__instanceID","__classType","__definition"].includes(o)}).forEach(function(o){typeof n.__definition[o]=="function"?n[o]=n.__definition[o].bind(n):n[o]=n.__definition[o]}),rt(Ae[n.__classType]).map(function(o){return n[o.name]=o.bind(n),o}),rt(n.__definition).map(function(o){return n[o.name]=o.bind(n),o}),n.body)if(typeof n.__definition>"u"||!Object.hasOwn(n.__definition,"body")||typeof n.__definition.body>"u")try{k?n.body=De(n.__definition.__classType):n.body={}}catch(o){C.debug(`An error ocurred: ${o}.`),n.body={}}else Object.hasOwn(n.__definition,"body")&&(n.body=n.__definition.body);try{if(n.__new__.call(n,t),typeof n=="object"&&Object.hasOwn(n,"_new_")&&typeof n._new_.isCalled>"u")try{n._new_(t),n._new_.isCalled=!0}catch(o){C.warn(`${n.__classType}._new_() failed with error: ${o}`)}}catch(o){C.warn(o)}}get body(){return this._body}set body(t){this._body=t}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(t){let n=O(function(i){return Object.hasOwn(i,"__classType")?i.__classType:$e.call(t,i)},"__classType"),o=O(i=>typeof i<"u"&&typeof i.__proto__<"u"&&i.__proto__!==null?(n(i)!==""?[n(i)]:[]).concat(o(i.__proto__)):[],"__hierarchy__proto__");(typeof t>"u"||t===null)&&(t=this);let s=[];return s.push(n(t)),s=s.concat(o(t.__proto__)),s}__new__(t){Tt(t,this)}_new_(t){}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}getParentClass(){return this.constructor.getParentClass()}static getClass(){return Object.getPrototypeOf(this.constructor)}getClass(){return this.constructor.getClass()}css(t){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(C.debug("body style"),this.body&&(this.body.style=_t(t,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let t=this;return this.constructor.hierarchy(t)}append(t){let n=t||this.body;if(C.debug("append: start"),ht(n,"Component")&&(C.debug("append: child is a Component"),C.debug(`appending the body of ${n.name}`)),typeof this.body<"u")if(C.debug("append element"),arguments.length>0){if(C.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(n);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(n);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(n)}else k&&(C.debug("append to body"),document.body.append(n))}attachIn(t){if(k){let n=document.subelements(t);for(let o=0,s=n.length;o<s;o++)n[o].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},h(e,"InheritClass"),O(e,"InheritClass"),e),re("com.qcobjects",[me])}}),fn,nr,or=$({"src/isQCObjects.ts"(){"use strict";Ee(),fn=O(function(e){return!!(typeof e=="object"&&Object.hasOwn(e,"__classType")&&e.__instanceID&&Object.hasOwn(e,"__definition")&&typeof e.__definition<"u")||e instanceof me},"isQCObjects_Object"),nr=O(function(e){return!!(typeof e=="function"&&!e.__instanceID&&e.__definition&&typeof e.__definition<"u"&&e.__definition.__classType)||e.prototype instanceof me},"isQCObjects_Class")}}),ht,rr=$({"src/is_a.ts"(){"use strict";it(),or(),er(),ht=O((e,a)=>!!(typeof e<"u"&&e!==null&&((nr(e)||fn(e))&&e.hierarchy().includes(a)||$e(e)===a||vo(e)===a||typeof e===a)),"is_a")}}),Ti,Zc=$({"src/is_forbidden_name.ts"(){"use strict";Ti=O(e=>["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID","function","Function"].indexOf(e)!==-1,"__is__forbidden_name__")}}),Ar,us=$({"src/LegacyCopy.ts"(){"use strict";Zo(),Ar=O(function(e,a){var n;let t;switch(!0){case typeof e=="string":t=e;break;case typeof e=="number":t=e;break;case typeof e=="object":t=[{...Object.keys(e).filter(o=>!a?.includes(o))}].map(o=>({[o]:e[o]})).reduce((o,s)=>Object.assign(o,s));break;case typeof e=="function":t=e.bind({});break;case wo(e):t=(n=class extends e{},h(n,"_value_"),O(n,"_value_"),n);break;default:break}return t},"_LegacyCopy")}}),Jt,Tr=$({"src/Class.ts"(){"use strict";mt(),bt(),at(),it(),ds(),jt(),rr(),Zc(),us(),ee(),pe(),Re(),Jt=O((e,a,t)=>{var i,c;let n={},o,s;switch(!0){case(!e&&!a&&!t):return class{};case(!!e&&!a&&!t):o=(i=class{},h(i,"type"),O(i,"type"),i),s={};break;case(!!e&&!a&&!!t):o=(c=class{},h(c,"type"),O(c,"type"),c),s=t;break;case(!!e&&!!a&&!!t):o=a,s=t;break;default:return class{}}if(typeof e!="string")throw new Error("Class name must be a string");if(typeof o!="function")throw new Error("Class type must be a function or class");if(Ti(e))throw new Error(`${e} is not an allowed word in the name of a class`);return typeof o.__definition=="object"&&o.__definition&&Object.keys(o.__definition).length!==0&&(s.__definition=Object.assign(Ar(o.__definition,["name"]),o)),n[o.name]=o,typeof s>"u"||s===null?s={}:s={...s},typeof s.__instanceID<"u"&&delete s.__instanceID,Ae[e]=class extends n[o.name]{constructor(_){super(_||{});r(this,"__instanceID");r(this,"__namespace");r(this,"__definition",{...s});r(this,"childs");r(this,"_body");let d=this;if(ls(),d.__instanceID||Object.defineProperty(d,"__instanceID",{value:Nt,writable:!1}),typeof d.__definition<"u"&&Object.keys(d.__definition).filter(function(f){return isNaN(f)&&!["name","__instanceID","__classType","__definition"].includes(f)}).forEach(function(f){typeof d.__definition[f]=="function"?d[f]=d.__definition[f].bind(d):d[f]=d.__definition[f]}),rt(Ae[d.__classType]).map(function(f){return d[f.name]=f.bind(d),f}),rt(d.__definition).map(function(f){return d[f.name]=f.bind(d),f}),d.body)if(typeof d.__definition>"u"||!Object.hasOwn(d.__definition,"body")||typeof d.__definition.body>"u")try{k?d.body=De(d.__definition.__classType):d.body={}}catch(f){C.debug(`An error ocurred: ${f}.`),d.body={}}else Object.hasOwn(d.__definition,"body")&&(d.body=d.__definition.body);try{if(typeof d.__new__=="function"?d.__new__.call(d,_):typeof super.__new__=="function"&&(d.__new__=super.__new__.bind(d),d.__new__.call(d,_)),typeof d=="object"&&Object.hasOwn(d,"_new_")&&typeof d._new_.isCalled>"u")try{d._new_(_),d._new_.isCalled=!0}catch(f){C.warn(`${d.__classType}._new_() failed with error: ${f}`)}}catch(f){C.warn(f)}}get body(){return this._body}set body(_){this._body=_}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(_){let d=O(function(m){return Object.hasOwn(m,"__classType")?m.__classType:$e.call(_,m)},"__classType"),f=O(m=>typeof m<"u"&&typeof m.__proto__<"u"&&m.__proto__!==null?(d(m)!==""?[d(m)]:[]).concat(f(m.__proto__)):[],"__hierarchy__proto__");(typeof _>"u"||_===null)&&(_=this);let p=[];return p.push(d(_)),p=p.concat(f(_.__proto__)),p}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}__new__(_){Tt(_,this)}_new_(_){}getClass(){return Object.getPrototypeOf(this.constructor)}css(_){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(C.debug("body style"),this.body&&(this.body.style=_t(_,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let _=this;return this.getClass()?.hierarchy(_)}append(_){let d=_||this.body;if(C.debug("append: start"),ht(d,"Component")&&(C.debug("append: child is a Component"),C.debug(`appending the body of ${d.name}`)),typeof this.body<"u")if(C.debug("append element"),arguments.length>0){if(C.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(d);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(d);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(d)}else k&&(C.debug("append to body"),document.body.append(d))}attachIn(_){if(k){let d=document.subelements(_);for(let f=0,p=d.length;f<p;f++)d[f].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},Ae[e]=Tt(s,Ae[e]),Ae[e].__definition=s,Ae[e].__definition.__classType=e,J[e]=Ae[e],Ae[e]},"Class"),typeof Jt.prototype<"u"&&(Jt.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),le,Je=$({"src/ClassFactory.ts"(){"use strict";Zo(),mt(),le=O(e=>{let a;if(typeof e>"u"||e===null)throw Error("You need to pass a parameter {className}");if(e!==null&&e.indexOf(".")!==-1){let t=e.split(".").slice(0,e.split(".").length-1).join("."),n=e.split(".").slice(-1).join(""),s=(Te[t]||[]).filter(i=>wo(i)).reverse();if(s.length>0)a=s[0];else throw Error(`Class ${n} not found. Found classes: ${JSON.stringify(s)} in package ${t}`)}else if(e!==null){if(a=Ni(e),typeof a>"u")throw new Error(`${e} is undefined.`)}else throw Error(`className is null. Unable to retrieve the class factory.
|
|
1
|
+
"use script";"use strict";var global=(()=>{var qr=Object.defineProperty;var Ui=(o,s,t)=>s in o?qr(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var l=(o,s)=>qr(o,"name",{value:s,configurable:!0}),Dn=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(s,t)=>(typeof require<"u"?require:s)[t]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var ae=(o,s)=>()=>{try{return s||o((s={exports:{}}).exports,s),s.exports}catch(t){throw s=0,t}};var r=(o,s,t)=>Ui(o,typeof s!="symbol"?s+"":s,t);var T=ae((Na,Qe)=>{"use strict";var Wi=Object.create,zn=Object.defineProperty,Vi=Object.getOwnPropertyDescriptor,Bo=Object.getOwnPropertyNames,zi=Object.getPrototypeOf,Ji=Object.prototype.hasOwnProperty,f=l((o,s)=>zn(o,"name",{value:s,configurable:!0}),"__name"),v=l((o,s)=>l(function(){return o&&(s=(0,o[Bo(o)[0]])(o=0)),s},"__init"),"__esm"),Qi=l((o,s)=>l(function(){return s||(0,o[Bo(o)[0]])((s={exports:{}}).exports,s),s.exports},"__require"),"__commonJS"),Wr=l((o,s)=>{for(var t in s)zn(o,t,{get:s[t],enumerable:!0})},"__export"),Vr=l((o,s,t,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of Bo(s))!Ji.call(o,n)&&n!==t&&zn(o,n,{get:l(()=>s[n],"get"),enumerable:!(e=Vi(s,n))||e.enumerable});return o},"__copyProps"),Zi=l((o,s,t)=>(t=o!=null?Wi(zi(o)):{},Vr(s||!o||!o.__esModule?zn(t,"default",{value:o,enumerable:!0}):t,o)),"__toESM"),Ki=l(o=>Vr(zn({},"__esModule",{value:!0}),o),"__toCommonJS"),mn,Jn=v({"src/is_raw_class.ts"(){"use strict";mn=f(o=>!!(typeof o=="function"&&o.toString().startsWith("class")),"__is_raw_class__")}}),bn,Qn=v({"src/ObjectName.ts"(){"use strict";bn=f(o=>{let s="";return typeof o=="function"&&Object.hasOwn(o,"name")&&o.name!==""?s=o.name:typeof o<"u"&&typeof o.constructor=="function"&&o.constructor.name!==""?s=o.constructor.name:typeof o<"u"&&typeof o.constructor=="object"&&(s=o.constructor.toString().replace(/\[(.*?)\]/g,"$1").split(" ").slice(1).join("")),s},"ObjectName")}}),ne,he=v({"src/getType.ts"(){"use strict";Jn(),Qn(),ne=f(l(function(s){let t="";switch(!0){case(typeof s=="object"&&!!s.constructor&&!!s.constructor.name&&s.constructor.name!==""):t=s.constructor.name;break;case(typeof s=="function"&&!!s.name):t=s.name;break;case(mn(s)&&!!s.name):t=s.name;break;case(!!s&&!!s.__classType&&s.__classType!==""):t=s.__classType;break;case(!!s&&!!s.__definition&&!!s.__definition.__classType&&s.__definition.__classType!==""):t=s.__definition.__classType;break;default:t=bn(s);break}return t},"__getType__2"),"__getType__")}}),Zn,mo=v({"src/make_global.ts"(){"use strict";ee(),Zn=f(o=>{o&&o.name&&(typeof I<"u"&&typeof o<"u"&&I!==null&&!Object.hasOwn(I,o.name)?No(o.name,o):typeof global<"u"?global[o.name]=o:typeof globalThis<"u"&&(globalThis[o.name]=o))},"__make_global__")}}),Q,Z,Ln,We,jn,zr,Lo,qo,$o,Fo,Jr,oo,ve=v({"src/PrimaryCollections.ts"(){"use strict";he(),mo(),Q={},Z={},Ln=[],We=[],jn=f(function(o,s){let t=ne(o),e=o.name||t;return e.toLowerCase()==="function"&&(e=t),typeof o.__definition>"u"&&(o.__definition={}),o.__definition.__classType=t,typeof s<"u"&&(o.__definition.__namespace=s),Q[e]=o,Zn(o),Q[e]},"__register_class__"),zr=f(o=>Q[o],"get_QC_CLASS"),Lo=f(function(o){let s=[];for(let t of Object.keys(o))typeof o[t]<"u"&&typeof o[t]!="function"&&Object.hasOwn(o[t],"length")&&o[t].length>0&&(s.push(t),s=s.concat(Lo(o[t])));return s},"_get_packages_names"),qo=f(()=>Lo(Z),"getPackagesNamesList"),$o=f(()=>[...qo()].map(o=>{let s=Z[o],t;return s&&(t={packageName:o,classesList:s.filter(function(){return!0})}),t}).filter(function(o){return typeof o<"u"}),"getPackagesList"),Fo=f(()=>{let o=[];return[...$o()].forEach(function(s){return o=o.concat(s.classesList.map(t=>({packageName:s.packageName,className:`${s.packageName}.${ne(t)}`,classFactory:t}))),s}),o},"getClassesList"),Jr=f(()=>[...Fo()].map(o=>o.className),"getClassesNamesList"),oo=f((o,s)=>{Z[o]=s},"set_QC_PACKAGE")}}),S,Me=v({"src/Export.ts"(){"use strict";mo(),S=f(function(o){return Zn(o)},"Export"),S.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"}}});async function Qr(o){u.debug(`Importing ${o}...`);function s(t){return u.debug(`Validating if ${t} is a package name...`),!t.startsWith(".")&&!t.startsWith("/")&&!t.includes("/")}l(s,"isPackage"),f(s,"isPackage");try{return!/\.[^/\\]+$/.test(o)&&!s(o)&&(u.debug(`${o} does not have an extension and is not a package. Adding js extension.`),o+=".js"),await import(o)}catch(t){u.warn(`Failed to load module: ${t}`)}}l(Qr,"_import_");var Xi=v({"src/_import_.ts"(){"use strict";R(),f(Qr,"_import_")}}),jo,y,Uo,$r,Te,bo,$=v({"src/platform.ts"(){"use strict";Xi(),R(),jo=typeof window<"u"&&"Deno"in window,y=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!jo,Uo=typeof Qe<"u",$r=f(o=>{},"deno_require"),Te=f(o=>jo?$r(o):(s=>{let t;try{(async()=>{t=await Qr(s)})().then(e=>{t=e&&e.default||e}).catch(e=>{u.warn(`An error ocurred: ${e}`)})}catch(e){u.debug(`An error ocurred importing module. ${e}`),t={export:{}}}return t})(o),"_require_"),bo=(function(){return typeof cordova<"u"})()}}),co,u,R=v({"src/Logger.ts"(){"use strict";var o;Me(),$(),co=(o=class{constructor(){r(this,"debugEnabled",!0);r(this,"infoEnabled",!0);r(this,"warnEnabled",!0);r(this,"errorEnabled",!0)}debug(t){this.debugEnabled&&console.log("\x1B[35m%s\x1B[0m",`[DEBUG][${performance.now().toLocaleString()}] ${t}`)}info(t){let e;this.infoEnabled&&(y?e="\x1B[103m%s\x1B[0m":e="\x1B[33m%s\x1B[0m",console.info(e,`[INFO][${performance.now().toLocaleString()}] ${t}`))}warn(t){this.warnEnabled&&console.warn("\x1B[31m%s\x1B[0m",`[WARN][${performance.now().toLocaleString()}] ${t}`)}error(t){this.errorEnabled&&console.error("\x1B[31m%s\x1B[0m",`[ERROR][${performance.now().toLocaleString()}] ${t}`)}},l(o,"Logger"),f(o,"Logger"),o),u=new co,S(u)}}),Ce,Pe,Oe=v({"src/Cast.ts"(){"use strict";R(),Ce=f(function(o,s){for(let t in o)if(typeof o[t]<"u")try{s[t]=o[t]}catch(e){u.debug(`An error ocurred: ${e}.`),u.warn(`Unable to cast ${(typeof o).toString()}.${typeof t.toString()} to ${(typeof s).toString()}.${typeof t.toString()}`)}return s},"_Cast"),Pe=f(function(o,s,t=!0){for(let e in o)if(typeof o[e]<"u"&&typeof o[e]!="function")try{s[e]=o[e]}catch(n){t||u.debug(`An error ocurred: ${n}.`)}else if(typeof o[e]=="function")try{s[e]=o[e].bind(s)}catch(n){u.warn(n)}return s},"_CastProps")}}),Y,Fr,Gr,ge=v({"src/DOMCreateElement.ts"(){"use strict";$(),Y=f(function(o,s,t){let e;return y?e=Gr(o,s,t):e={},e},"_DOMCreateElement"),Fr=f((o,{props:s,children:t})=>o({props:s,children:t}),"ComplexTypeCall"),Gr=f((o,s,t)=>{if(typeof o!="string")return Fr(o,{props:s,children:t});let e=document.createElement(o);return s&&Object.entries(s).forEach(([n,a])=>{typeof a=="string"||typeof a=="number"?e.setAttribute(n,a.toString()):typeof a=="function"&&n.toLowerCase().startsWith("on")&&e.addEventListener(n.slice(2).toLowerCase(),a.bind(e))}),Array.isArray(t)?t.filter((n=>n instanceof Node)).forEach(n=>{e.appendChild(n)}):t instanceof Node?e.appendChild(t):typeof t=="string"&&(e.innerHTML=t),e},"_DOMCreateComplexElement")}}),Ie,Wo,Vo=v({"src/IncrementInstanceID.ts"(){"use strict";Ie=0,Wo=f(()=>{Ie=typeof Ie>"u"||Ie===null?0:Ie+1},"IncrementInstanceID")}}),k,pe,Re=v({"src/introspection.ts"(){"use strict";k=f(o=>{let s=typeof o.prototype<"u"?o.prototype.toString:(function(){return""});typeof o.prototype<"u"&&(o.prototype.toString=function(){let t=["__qcobjects__","__qcobjects_sdk__","__loaded__","ComplexStorageCache","css","append","attachIn","debug","info","warn","QC_Append","set","get","done","componentDone","_new_","__new__","Class","ClassFactory","New","Export","Package","Import","subelements","componentLoader","buildComponents","Controller","View","VO","Service","serviceLoader","JSONService","ConfigService","SourceJS","SourceCSS","ArrayList","ArrayCollection","Effect","Timer","sum","avg","table","max","min","range","matrix","matrix2d","matrix3d","unique","uniqueId","shortCode","NamespaceRef"],e;return t.includes(this.name)?e=this.name+"{ [QCObjects native code] }":e=s.call(this),e})},"_protected_code_"),k(Function),pe=f(function(o){let s=[];for(let t in o)(typeof o[t]).toLowerCase()==="function"&&s.push(o[t]);return s},"_methods_")}}),D,F=v({"src/Package.ts"(){"use strict";Jn(),ve(),D=f((o,s=[])=>{if(Object.hasOwn(Z,o)&&typeof Z[o]<"u"&&typeof Z[o]!="string"&&Object.hasOwn(Z[o],"length")&&Z[o].length>0&&typeof s<"u"&&Object.hasOwn(s,"length")&&s.length>0)s.forEach(t=>{jn(t,o)}),oo(o,Z[o].concat(s));else if(typeof s<"u"&&typeof s<"u"&&Object.hasOwn(s,"length")&&s.length>0)s.forEach(t=>{jn(t,o)}),oo(o,s);else if(mn(s))typeof s.__definition>"u"&&(s.__definition={}),s.__definition.__namespace=o,s.__namespace=o,jn(s,o),oo(o,[s]);else throw new Error(`An error ocurred. It was not possible to add classes to ${o}.`);return Object.hasOwn(Z,o)?Z[o]:[]},"Package")}}),H,W=v({"src/InheritClass.ts"(){"use strict";var o;R(),Vo(),Oe(),ge(),he(),Re(),Yn(),$(),ve(),F(),H=(o=class{constructor(t){r(this,"__definition");r(this,"_body");r(this,"childs");r(this,"__instanceID");r(this,"__namespace");typeof t<"u"&&typeof t.__definition<"u"&&(this.__definition={...t.__definition});let e=this;if(typeof t<"u"&&t!==null&&Object.keys(t).filter(function(n){return isNaN(n)&&!["__instanceID","__classType","__definition"].includes(n)}).forEach(function(n){typeof e[n]=="function"?e[n]=t[n].bind(e):e[n]=t[n]}),Wo(),e.__instanceID||Object.defineProperty(e,"__instanceID",{value:Ie,writable:!1}),typeof e.__definition<"u"&&Object.keys(e.__definition).filter(function(n){return isNaN(n)&&!["name","__instanceID","__classType","__definition"].includes(n)}).forEach(function(n){typeof e.__definition[n]=="function"?e[n]=e.__definition[n].bind(e):e[n]=e.__definition[n]}),pe(Q[e.__classType]).map(function(n){return e[n.name]=n.bind(e),n}),pe(e.__definition).map(function(n){return e[n.name]=n.bind(e),n}),e.body)if(typeof e.__definition>"u"||!Object.hasOwn(e.__definition,"body")||typeof e.__definition.body>"u")try{y?e.body=Y(e.__definition.__classType):e.body={}}catch(n){u.debug(`An error ocurred: ${n}.`),e.body={}}else Object.hasOwn(e.__definition,"body")&&(e.body=e.__definition.body);try{if(e.__new__.call(e,t),typeof e=="object"&&Object.hasOwn(e,"_new_")&&typeof e._new_.isCalled>"u")try{e._new_(t),e._new_.isCalled=!0}catch(n){u.warn(`${e.__classType}._new_() failed with error: ${n}`)}}catch(n){u.warn(n)}}get body(){return this._body}set body(t){this._body=t}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(t){let e=f(function(i){return Object.hasOwn(i,"__classType")?i.__classType:ne.call(t,i)},"__classType"),n=f(i=>typeof i<"u"&&typeof i.__proto__<"u"&&i.__proto__!==null?(e(i)!==""?[e(i)]:[]).concat(n(i.__proto__)):[],"__hierarchy__proto__");(typeof t>"u"||t===null)&&(t=this);let a=[];return a.push(e(t)),a=a.concat(n(t.__proto__)),a}__new__(t){Pe(t,this)}_new_(t){}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}getParentClass(){return this.constructor.getParentClass()}static getClass(){return Object.getPrototypeOf(this.constructor)}getClass(){return this.constructor.getClass()}css(t){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(u.debug("body style"),this.body&&(this.body.style=Ce(t,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let t=this;return this.constructor.hierarchy(t)}append(t){let e=t||this.body;if(u.debug("append: start"),we(e,"Component")&&(u.debug("append: child is a Component"),u.debug(`appending the body of ${e.name}`)),typeof this.body<"u")if(u.debug("append element"),arguments.length>0){if(u.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(e);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(e);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(e)}else y&&(u.debug("append to body"),document.body.append(e))}attachIn(t){if(y){let e=document.subelements(t);for(let n=0,a=e.length;n<a;n++)e[n].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},l(o,"InheritClass"),f(o,"InheritClass"),o),D("com.qcobjects",[H])}}),dt,Kn,Xn=v({"src/isQCObjects.ts"(){"use strict";W(),dt=f(function(o){return!!(typeof o=="object"&&Object.hasOwn(o,"__classType")&&o.__instanceID&&Object.hasOwn(o,"__definition")&&typeof o.__definition<"u")||o instanceof H},"isQCObjects_Object"),Kn=f(function(o){return!!(typeof o=="function"&&!o.__instanceID&&o.__definition&&typeof o.__definition<"u"&&o.__definition.__classType)||o.prototype instanceof H},"isQCObjects_Class")}}),we,Yn=v({"src/is_a.ts"(){"use strict";he(),Xn(),Qn(),we=f((o,s)=>!!(typeof o<"u"&&o!==null&&((Kn(o)||dt(o))&&o.hierarchy().includes(s)||ne(o)===s||bn(o)===s||typeof o===s)),"is_a")}}),Zr,Yi=v({"src/is_forbidden_name.ts"(){"use strict";Zr=f(o=>["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID","function","Function"].indexOf(o)!==-1,"__is__forbidden_name__")}}),_o,zo=v({"src/LegacyCopy.ts"(){"use strict";Jn(),_o=f(function(o,s){var e;let t;switch(!0){case typeof o=="string":t=o;break;case typeof o=="number":t=o;break;case typeof o=="object":t=[{...Object.keys(o).filter(n=>!s?.includes(n))}].map(n=>({[n]:o[n]})).reduce((n,a)=>Object.assign(n,a));break;case typeof o=="function":t=o.bind({});break;case mn(o):t=(e=class extends o{},l(e,"_value_"),f(e,"_value_"),e);break;default:break}return t},"_LegacyCopy")}}),ze,yo=v({"src/Class.ts"(){"use strict";ve(),Oe(),ge(),he(),Vo(),Re(),Yn(),Yi(),zo(),R(),$(),ee(),ze=f((o,s,t)=>{var i,c;let e={},n,a;switch(!0){case(!o&&!s&&!t):return class{};case(!!o&&!s&&!t):n=(i=class{},l(i,"type"),f(i,"type"),i),a={};break;case(!!o&&!s&&!!t):n=(c=class{},l(c,"type"),f(c,"type"),c),a=t;break;case(!!o&&!!s&&!!t):n=s,a=t;break;default:return class{}}if(typeof o!="string")throw new Error("Class name must be a string");if(typeof n!="function")throw new Error("Class type must be a function or class");if(Zr(o))throw new Error(`${o} is not an allowed word in the name of a class`);return typeof n.__definition=="object"&&n.__definition&&Object.keys(n.__definition).length!==0&&(a.__definition=Object.assign(_o(n.__definition,["name"]),n)),e[n.name]=n,typeof a>"u"||a===null?a={}:a={...a},typeof a.__instanceID<"u"&&delete a.__instanceID,Q[o]=class extends e[n.name]{constructor(g){super(g||{});r(this,"__instanceID");r(this,"__namespace");r(this,"__definition",{...a});r(this,"childs");r(this,"_body");let p=this;if(Wo(),p.__instanceID||Object.defineProperty(p,"__instanceID",{value:Ie,writable:!1}),typeof p.__definition<"u"&&Object.keys(p.__definition).filter(function(h){return isNaN(h)&&!["name","__instanceID","__classType","__definition"].includes(h)}).forEach(function(h){typeof p.__definition[h]=="function"?p[h]=p.__definition[h].bind(p):p[h]=p.__definition[h]}),pe(Q[p.__classType]).map(function(h){return p[h.name]=h.bind(p),h}),pe(p.__definition).map(function(h){return p[h.name]=h.bind(p),h}),p.body)if(typeof p.__definition>"u"||!Object.hasOwn(p.__definition,"body")||typeof p.__definition.body>"u")try{y?p.body=Y(p.__definition.__classType):p.body={}}catch(h){u.debug(`An error ocurred: ${h}.`),p.body={}}else Object.hasOwn(p.__definition,"body")&&(p.body=p.__definition.body);try{if(typeof p.__new__=="function"?p.__new__.call(p,g):typeof super.__new__=="function"&&(p.__new__=super.__new__.bind(p),p.__new__.call(p,g)),typeof p=="object"&&Object.hasOwn(p,"_new_")&&typeof p._new_.isCalled>"u")try{p._new_(g),p._new_.isCalled=!0}catch(h){u.warn(`${p.__classType}._new_() failed with error: ${h}`)}}catch(h){u.warn(h)}}get body(){return this._body}set body(g){this._body=g}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(g){let p=f(function(b){return Object.hasOwn(b,"__classType")?b.__classType:ne.call(g,b)},"__classType"),h=f(b=>typeof b<"u"&&typeof b.__proto__<"u"&&b.__proto__!==null?(p(b)!==""?[p(b)]:[]).concat(h(b.__proto__)):[],"__hierarchy__proto__");(typeof g>"u"||g===null)&&(g=this);let m=[];return m.push(p(g)),m=m.concat(h(g.__proto__)),m}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}__new__(g){Pe(g,this)}_new_(g){}getClass(){return Object.getPrototypeOf(this.constructor)}css(g){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(u.debug("body style"),this.body&&(this.body.style=Ce(g,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let g=this;return this.getClass()?.hierarchy(g)}append(g){let p=g||this.body;if(u.debug("append: start"),we(p,"Component")&&(u.debug("append: child is a Component"),u.debug(`appending the body of ${p.name}`)),typeof this.body<"u")if(u.debug("append element"),arguments.length>0){if(u.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(p);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(p);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(p)}else y&&(u.debug("append to body"),document.body.append(p))}attachIn(g){if(y){let p=document.subelements(g);for(let h=0,m=p.length;h<m;h++)p[h].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},Q[o]=Pe(a,Q[o]),Q[o].__definition=a,Q[o].__definition.__classType=o,I[o]=Q[o],Q[o]},"Class"),typeof ze.prototype<"u"&&(ze.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),j,ce=v({"src/ClassFactory.ts"(){"use strict";Jn(),ve(),j=f(o=>{let s;if(typeof o>"u"||o===null)throw Error("You need to pass a parameter {className}");if(o!==null&&o.indexOf(".")!==-1){let t=o.split(".").slice(0,o.split(".").length-1).join("."),e=o.split(".").slice(-1).join(""),a=(Z[t]||[]).filter(i=>mn(i)).reverse();if(a.length>0)s=a[0];else throw Error(`Class ${e} not found. Found classes: ${JSON.stringify(a)} in package ${t}`)}else if(o!==null){if(s=zr(o),typeof s>"u")throw new Error(`${o} is undefined.`)}else throw Error(`className is null. Unable to retrieve the class factory.
|
|
2
2
|
Not found in:
|
|
3
|
-
${Object.keys(
|
|
4
|
-
`)}`);return a},"ClassFactory")}}),Wo,ps=$({"src/Base64.ts"(){"use strict";var e;Wo=(e=class{static encode(t){let n="",o,s,i,c,l,_,d,f=0;for(t=e._utf8_encode(t);f<t.length;)o=t.charCodeAt(f++),s=t.charCodeAt(f++),i=t.charCodeAt(f++),c=o>>2,l=(o&3)<<4|s>>4,_=(s&15)<<2|i>>6,d=i&63,isNaN(s)?_=d=64:isNaN(i)&&(d=64),n=n+this._keyStr.charAt(c)+this._keyStr.charAt(l)+this._keyStr.charAt(_)+this._keyStr.charAt(d);return n}static decode(t){let n="",o,s,i,c,l,_,d,f=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");f<t.length;)c=this._keyStr.indexOf(t.charAt(f++)),l=this._keyStr.indexOf(t.charAt(f++)),_=this._keyStr.indexOf(t.charAt(f++)),d=this._keyStr.indexOf(t.charAt(f++)),o=c<<2|l>>4,s=(l&15)<<4|_>>2,i=(_&3)<<6|d,n=n+String.fromCharCode(o),_!==64&&(n=n+String.fromCharCode(s)),d!==64&&(n=n+String.fromCharCode(i));return n=e._utf8_decode(n),n}static _utf8_encode(t){t=t.replace(/rn/g,"n");let n="";for(let o=0;o<t.length;o++){let s=t.charCodeAt(o);s<128?n+=String.fromCharCode(s):s>127&&s<2048?(n+=String.fromCharCode(s>>6|192),n+=String.fromCharCode(s&63|128)):(n+=String.fromCharCode(s>>12|224),n+=String.fromCharCode(s>>6&63|128),n+=String.fromCharCode(s&63|128))}return n}static _utf8_decode(t){let n="",o=0,s=0,i=0,c;for(;o<t.length;)s=t.charCodeAt(o),s<128?(n+=String.fromCharCode(s),o++):s>191&&s<224?(i=t.charCodeAt(o+1),n+=String.fromCharCode((s&31)<<6|i&63),o+=2):(i=t.charCodeAt(o+1),c=t.charCodeAt(o+2),n+=String.fromCharCode((s&15)<<12|(i&63)<<6|c&63),o+=3);return n}},h(e,"_Base64"),O(e,"Base64"),r(e,"_keyStr","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),e)}}),es,st,Ii,Mt=$({"src/basePath.ts"(){"use strict";pe(),es=as(nt("node:process")),st=(function(){let e="";if(k){let a=document.baseURI.split("?")[0].split("/");a.pop(),e=a.join("/")+"/"}else typeof es.default<"u"?e=`${es.default.cwd()}/`:e="";return e})(),Ii=O(e=>{st=e},"setBasePath")}}),Z,ct=$({"src/DataStringify.ts"(){"use strict";us(),Z=O(e=>JSON.stringify(e,O(function(){let t=new WeakSet,n=0;return function(o,s){if(typeof s=="object"&&s!==null){if(t.has(s))return n+=1,n<=3?Ar(s):null;t.add(s)}return s}},"getCircularReplacer")()),"_DataStringify")}}),Oo,sr=$({"src/domain.ts"(){"use strict";Oo=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),Ie,Lt=$({"src/New.ts"(){"use strict";Ie=O(function(e,a={}){return a=arguments.length>1?a:{},typeof e>"u"?new Object:new e(a)},"New"),Ie.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"}}}),_o,fs=$({"src/secretKey.ts"(){"use strict";pe(),_o=k?location.host:"secret"}}),ot,ji,rs,Ir=$({"src/Crypt.ts"(){"use strict";var e;ps(),ct(),Ee(),ge(),fs(),ot=(e=class extends me{constructor(){super(...arguments);r(this,"string","");r(this,"key","");r(this,"last_string","");r(this,"last_key","");r(this,"construct",!1)}encrypt(n,o){throw new Error("Method not implemented.")}decrypt(n,o){throw new Error("Method not implemented.")}_new_(n){let o=n.string,s=Object.hasOwn(n,"key")?n.key:"";this.__new__(n),s=s===""?this.__instanceID.toString():s,this.last_key=s,this.last_string=o,this.construct=!0}_encrypt(){let n=this.string,o=this.key,s="",i,c;for(let l=0;l<n.length;l++)i=n.substr(l,1),c=o.substr(l%o.length-1,1),i=String.fromCharCode(i.charCodeAt(0)+c.charCodeAt(0)),s+=i;return this.last_string=Wo.encode(s),this.last_string}_decrypt(){let n=this.string,o=this.key,s="",i,c;n=Wo.decode(n);for(let l=0;l<n.length;l++)i=n.substr(l,1),c=o.substr(l%o.length-1,1),i=String.fromCharCode(i.charCodeAt(0)-c.charCodeAt(0)),s+=i;return this.last_string=s,this.last_string}static encrypt(n,o){return new e({string:n,key:o!==""?o:"12345678ABC"})._encrypt()}static decrypt(n,o){return new e({string:n,key:o!==""?o:"12345678ABC"})._decrypt()}},h(e,"__Crypt"),O(e,"_Crypt"),e),ji=O(function(a){return ot.encrypt(Z(a),_o)},"_CryptObject"),rs=O(function(a){return a===""?{}:JSON.parse(ot.decrypt(a,_o))},"_DecryptObject"),re("com.qcobjects",[ot])}}),St,el=$({"src/ConfigSettings.ts"(){"use strict";var e;Mt(),Ee(),ge(),St=(e=class extends me{constructor(){super(...arguments);r(this,"_CONFIG",{relativeImportPath:"",remoteImportsPath:"",remoteSDKPath:"https://sdk.qcobjects.dev/",asynchronousImportsLoad:!1,removePackageScriptAfterLoading:!0,componentsBasePath:"",delayForReady:0,preserveComponentBodyTag:!1,useConfigService:!1,routingWay:"hash",useSDK:!0,useLocalSDK:!1,basePath:st});r(this,"_CONFIG_ENC","")}set(n,o){this._CONFIG[n]=o}get(n,o){return this._CONFIG[n]||o}static get instance(){return typeof e._instance>"u"&&(e._instance=new e),e._instance}},h(e,"_ConfigSettings"),O(e,"ConfigSettings"),r(e,"_instance"),e),re("com.qcobjects",[St])}}),H,ze=$({"src/CONFIG.ts"(){"use strict";var e;Mt(),bt(),Ir(),ct(),ee(),Eo(),fs(),ge(),Ee(),el(),H=(e=class extends me{get _CONFIG_ENC(){return St.instance._CONFIG_ENC}get _CONFIG(){return St.instance._CONFIG}set(t,n){C.debug(`CONFIG.set ${t}: ${n}`),t==="basePath"&&Ii(n);let o;try{o=(function(s){s._CONFIG_ENC===null&&(s._CONFIG_ENC=ot.encrypt(Z({}),_o));let i=s._CONFIG_ENC.valueOf(),c=s._CONFIG?.valueOf();return Tt(c,rs(i))})(St.instance)}catch(s){o={},console.error(s),C.debug("failed to encrypt config")}o[t]=n,St.instance._CONFIG_ENC=ji(o),St.instance.set(t,n)}get(t,n){let o;try{let i=(function(c){c._CONFIG_ENC===null&&(c._CONFIG_ENC=ot.encrypt(Z({}),_o));let l=c._CONFIG_ENC.valueOf(),_=c._CONFIG.valueOf();return Tt(_,rs(l))})(St.instance);typeof i[t]<"u"&&(o=i[t])}catch(i){console.error(i),C.debug("Something wrong when trying to get CONFIG values"),C.debug("No config value for: "+t),o=n}let s=gt.processObject(o);return o===null&&s===null?null:s||n}static get instance(){return typeof e._instance>"u"&&(e._instance=new e),e._instance}static set(t,n){e.instance.set(t,n)}static get(t,n){return e.instance.get(t,n)}},h(e,"_CONFIG"),O(e,"CONFIG"),r(e,"_instance"),e),re("com.qcobjects",[H])}}),go,gt,Eo=$({"src/Processor.ts"(){"use strict";var e;ze(),Ee(),Lt(),Re(),ge(),go=(e=class extends me{constructor({component:n,processors:o}){super({component:n});r(this,"processors",{config(n,o){return H.get(o,"")},ENV(n,o){return typeof process<"u"?process.env[o]:""},global(n,o){return typeof J<"u"?J[o]:""}});r(this,"component");typeof o<"u"&&(this.processors=Object.assign(o,e.instance.processors))}static get instance(){return typeof e._instance>"u"&&(e._instance=new e({component:null})),e._instance}static setProcessor(n){typeof n=="function"&&n.name!==""&&(e.instance.processors[n.name]=n)}setProcessor(n){typeof n=="function"&&n.name!==""&&(this.processors[n.name]=n)}static getProcessor(n){return e.instance.processors[n]}static getProcessorNames(){return Object.keys(e.instance.processors)}execute(n,o,s){let i=typeof n<"u"&&n!==null?n.processorHandler:this;return i?.processors[o].bind(i).apply(i,[n,s?.split(",")])}static process(n,o=null){return e.instance.process(n,o)}process(n,o=null){let s=o!==null?o.processorHandler:Ie(e,{component:null});return typeof n=="string"&&Object.keys(s.processors).map(i=>[...n.matchAll(new RegExp("\\$"+i+"\\((.*)\\).*","g"))].map(function(c){let l=`$${i}(${c[1]})`;return n=n.replace(l,s.execute.bind(s).call(s,o,i,c[1])),c})),n}static processObject(n,o){return n==null?n:e.instance.processObject(n,o)}processObject(n,o=null){if(n==null)return n;let s=o===null?this:o.processorHandler;return typeof s>"u"&&(s=new e({component:o})),typeof n=="object"?Object.keys(n).map(i=>(typeof n[i]=="object"&&!Object.hasOwn(n[i],"call")?n[i]=s?.processObject.bind(s)(n[i],o):typeof n[i]=="string"&&(n[i]=s?.process.bind(s)(n[i],o)),i)):typeof n=="string"&&(n=s.process.bind(s)(n,o)),n}},h(e,"_Processor"),O(e,"Processor"),r(e,"_instance"),e),gt=go.instance,re("com.qcobjects",[go])}}),Mi,Li,ss,tl=$({"src/routings.ts"(){"use strict";Mi=O((e,a)=>{let t=e.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...a.matchAll(new RegExp(t,"g"))][0].groups}},"__routing_params__"),Li=O(function(e,a){return e.filter(function(t){let n=t.path.replace(/{(.*?)}/g,"(?<$1>.*)");return new RegExp(n,"g").test(a)}).reverse()},"__valid_routings__"),ss=O((e,a)=>e.includes(a),"__valid_routing_way__")}});function mo(e,a){let n=class n{constructor(s,i=[]){r(this,"func");r(this,"args");this.func=s,this.args=i}dispatch(){this.func.apply(this,...a,this)}};h(n,"AsyncCallback"),O(n,"AsyncCallback");let t=n;return hr.push(new t(e,a)),t}h(mo,"asyncLoad");var hr,gs,jr=$({"src/asyncLoad.ts"(){"use strict";It(),pe(),Re(),hr=[],O(mo,"asyncLoad"),gs=O(()=>{k?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&hr.map(function(e){e.dispatch.call(e)})}):typeof J.global<"u"&&hr.map(function(e){e.dispatch.call(e)})},"_fireAsyncLoad"),Q(mo)}}),bo,Mr=$({"src/ComplexStorageCache.ts"(){"use strict";var e;ps(),ct(),ee(),bo=(e=class{constructor(t){let n,o,s=t.index;if(typeof s<"u"){n=t.load,o=t.alternate;let i=this.getID(s),c=localStorage.getItem(i);if(this.isEmpty(c)){let l=n.call(null,{cachedObjectID:i,cachedResponse:c,cache:this});this.save(s,l),C.debug("RESPONSE OF {{cachedObjectID}} CACHED".replace("{{cachedObjectID}}",i))}else o.call(null,{cachedObjectID:i,cachedResponse:c,cache:this}),C.debug("RESPONSE OF {{cachedObjectID}} IS ALREADY CACHED ".replace("{{cachedObjectID}}",i))}else throw new Error("ComplexStorageCache: index is undefined");return this}getItem(t){let n=localStorage.getItem(t);return this.isEmpty(n)?null:JSON.parse(n)}setItem(t,n){localStorage.setItem(t,Z(n))}isEmpty(t){let n=!1;switch(!0){case typeof t>"u":case(typeof t=="string"&&t===""):case(typeof t=="string"&&t==="undefined"):case(typeof t=="number"&&t===0):case t===null:n=!0;break;default:n=!1}return n}getID(t){let n;return typeof t<"u"&&(n="cachedObject_"+Wo.encode(Z(t).replace(/\{|\}|,/g,"_"))),n}save(t,n){let o=this.getID(t);C.debug("CACHING THE RESPONSE OF {{cachedObjectID}} ".replace("{{cachedObjectID}}",o)),this.setItem(o,n)}getCached(t){let n=this.getID(t);return this.getItem(n)}clear(){Object.keys(localStorage).filter(function(t){return t.startsWith("cachedObject_")}).map(function(t){return localStorage.removeItem(t),t})}},h(e,"ComplexStorageCache"),O(e,"ComplexStorageCache"),e)}}),ir,Lr=$({"src/serviceLoader.ts"(){"use strict";jr(),Mr(),ct(),ee(),pe(),Re(),ir=O(function(e,a=!1){let t=O(function(c){var l=new Promise(function(_,d){C.debug("LOADING SERVICE DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",Z(c.data)).replace("{{URL}}",c.url));let f=new XMLHttpRequest;f.withCredentials=c.withCredentials,f.open(c.method,c.url,!0);for(let g in c.headers)try{typeof c.headers[g]!="function"&&f.setRequestHeader(g,c.headers[g])}catch(y){C.debug("Something went wrong when assign the header "+g),C.debug(`An error ocurred: ${y}`)}f.onload=function(){if(f.status===200){let y=f.responseText;if(C.debug("Data received {{DATA}}".replace("{{DATA}}",Z(y))),C.debug("CREATING SERVICE {{NAME}}".replace("{{NAME}}",c.name)),c.template=y,c.cached&&typeof u<"u"&&u.save(c.name,c.template),typeof c.done=="function"){var g={request:f,service:c};c.done.call(c,g),_.call(l,g)}}else if(typeof c.fail=="function"){var g={request:f,service:c};c.fail.call(c,g),d.call(l,g)}};let m=O(function(){C.debug("SENDING THE NORMAL REQUEST ");try{f.send(Z(c.data))}catch(g){C.debug("SOMETHING WRONG WITH REQUEST "),C.debug(`An error ocurred: ${g}`),d.call(l,{request:f,service:c})}},"_directLoad");if(c.cached){var u=new bo({index:c.data,load(){m.call(this)},alternate(g){if(c.method==="GET"){if(c.template=g.cache.getCached(c.name),typeof c.done=="function"){let y={request:f,service:c};c.done.call(c,y),_.call(l,y)}}else m()}});J.lastCache=u}else m();return f});return l},"_serviceLoaderInBrowser"),n=O(function(c){var l=new Promise(function(_,d){if(typeof URL>"u"){global.URL=Pt("url").URL;let g=global.URL}let f=new URL(c.url);var p;c.useHTTP2=Object.hasOwn(c,"useHTTP2")&&c.useHTTP2;let m=O(function(g){C.debug("LOADING SERVICE DATA (non-browser) {{DATA}} FROM {{URL}}".replace("{{DATA}}",Z(c.data)).replace("{{URL}}",c.url));let y,v={http2Client:u,request:g,service:c,responseHeaders:null};if(typeof c.data=="object"&&c.data!==null&&c.useHTTP2)try{C.debug("Sending data...");let E=new Buffer(Z(c.data));g.write(E)}catch(E){C.debug("It was not possible to send any data"),C.debug(`An error ocurred: ${E}`)}y="",g.on("response",E=>{C.debug("receiving response..."),v.responseHeaders=E,y=""}),g.on("data",E=>{C.debug("receiving data..."),y+=""+E.toString(),c.template=y}),c.useHTTP2&&g.resume(),g.on("end",()=>{C.debug("ending call..."),c.template=y,Object.hasOwn(c,"useHTTP2")&&c.useHTTP2?u.destroy():g.destroy(),c.done.call(c,v),_.call(l,v)}),c.useHTTP2&&g.end()},"captureEvents");try{let g;if(c.useHTTP2){C.debug("using http2");var u=Pt("http2").connect(f.origin);g=Object.assign({":method":c.method,":path":f.pathname},c.options),g=Object.assign(g,c.headers),p=u.request(g),p.setEncoding("utf8"),m(p)}else if(f.protocol==="http:"){let v=Pt("http").request;g=Object.assign({url:c.url,headers:c.headers},c.options),p=v(c.url),m(p)}else if(f.protocol==="https:"){let y=Pt("https");g=Object.assign({hostname:f.hostname,port:f.port,path:f.pathname,method:c.method,headers:c.headers},c.options),y.request(g,function(E){m(E)}).end()}else{let y="Protocol not supported: "+f.protocol;throw C.debug(y),new Error(y)}}catch(g){C.debug(g),c.fail.call(c,g),d.call(l,g)}}).catch(_=>{C.debug(`Something happened when trying to call the service: ${c.name}. Error: ${_}`),c.fail.call(c,_)});return l},"_serviceLoaderInNode"),o=O(function(c){var l=new Promise(function(_){C.debug(`Calling mockup service ${c.name} ...`);let d={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.mockup=="function"?c.mockup.call(c,d):c.done.call(c,d),_.call(l,d)});return l},"_serviceLoaderMockup"),s=O(function(c){var l=new Promise(function(_){C.debug(`Calling local service ${c.name} ...`);let d={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.local=="function"?c.local.call(c,d):c.done.call(c,d),_.call(l,d)});return l},"_serviceLoaderLocal"),i;switch(e.kind){case"rest":k?typeof a<"u"&&a?i=mo(t,[e,a]):i=t(e):i=n(e);break;case"mockup":i=o(e);break;case"local":i=s(e);break;default:C.debug(`The value of the kind property of the service ${e.name} is not valid`),i=Promise.resolve();break}return i},"serviceLoader")}}),Dr,hs=$({"src/tag_filter.ts"(){"use strict";Dr="quick-component:not([loaded]),component:not([loaded])"}}),Qo,_s=$({"src/componentLoader.ts"(){"use strict";jr(),Mr(),ct(),ee(),pe(),Re(),Qo=O(function(e,a){let t,n=O(function(i){return t=new Promise(function(c,l){let _=i.__promise__;if((Object.hasOwn(i,"container")&&typeof i.container<"u"&&i.container!==null?i.container:i.body)!==null){let u=O(function(y){y.feedComponent();let v={request:p,component:y};c.call(_,v)},"_feedComponent_");C.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",Z(i.data)).replace("{{URL}}",i.url));let g=O(function(){let y=f?0:200;if(p.status===y){let v=p.responseText;C.debug("Data received {{DATA}}".replace("{{DATA}}",Z(v))),C.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=v,i.cached&&typeof m<"u"&&m.save(i.name,i.template),u(i)}else{let v={request:p,component:i};l.call(_,v)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")u(i);else{var f=!!i.url.startsWith("file:"),p=new XMLHttpRequest;if(f)"fetch"in J&&(C.debug("I can use fetch..."),C.debug("It is a file to be loaded, so I will try to use fetch"),fetch(i.url).then(v=>{C.debug("I got a response from fetch, so I'll feed the component"),v.text().then(E=>{i.template=E,u(i)}).catch(E=>{throw new Error(`An error ocurred: ${E}`)})}).catch(v=>{throw new Error(`An error ocurred: ${v}`)}));else try{C.debug("Calling the url of component in async mode."),p.open(i.method,i.url,!0)}catch(v){C.debug(`An error ocurred: ${v}.`),C.debug("Last try has failed... The component cannot be loaded.")}!Pr&&!f&&p.setRequestHeader("Content-Type","text/html"),f||(p.onload=g);let y=O(function(v){v=!(typeof v>"u"||!v),C.debug("SENDING THE NORMAL REQUEST "),v?"fetch"in J||(C.debug("I have to try to load the file using xhr... "),p.send(null),p.status===XMLHttpRequest.DONE&&g()):(C.debug("Trying to send the data to the component... "),p.send(Z(i.data)))},"_directLoad");if(i.cached&&!f){C.debug("USING CACHE FOR COMPONENT: "+i.name);var m=new bo({index:i.cacheIndex,load(){y.call(this,f)},alternate(v){i.method==="GET"?(i.template=v.cache.getCached(i.cacheIndex),u.call(this,i)):y.call(this,f)}});J.lastCache=m}else C.debug("NOT USING CACHE FOR COMPONENT: "+i.name),y(f)}}else C.debug("CONTAINER DOESNT EXIST")}),t.then(function(c){return i.__done__().then(function(){let l;return typeof i.done=="function"&&(l=i.done.call(i,c)),Promise.resolve(l)})},function(c){return typeof i.fail=="function"&&i.fail.call(i,c).catch(l=>{throw new Error(`${l}`)}),Promise.reject(new Error("An error ocurred"))}).catch(function(c){throw C.debug("Something wrong loading the component"),new Error(`An error ocurred: ${c}`)}),t},"_componentLoaderInBrowser"),o=O(function(i){return t=new Promise(function(c,l){let _=t,d=O(function(m){m.feedComponent().catch(g=>{throw new Error(`An error ocurred trying to feed the component: ${m.name}. Error: ${g}`)});let u={request:null,component:m};c.call(_,u)},"_feedComponent_");C.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",Z(i.data)).replace("{{URL}}",i.url));let f=O(function(m,u){if(m){let g={request:null,component:i};l.call(_,g)}else{let g=u.toString();C.debug("Data received {{DATA}}".replace("{{DATA}}",Z(g))),C.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=g,i.cached&&typeof p<"u"&&p.save(i.name,i.template),d(i)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")d(i);else{C.debug("Loading the component as a local file in server...");let m=O(function(){let{readFile:u}=nt("node:fs");C.debug("SENDING THE NORMAL REQUEST "),u(i.url,f)},"_directLoad");if(i.cached){C.debug("USING CACHE FOR COMPONENT: "+i.name);var p=new bo({index:i.cacheIndex,load(){m()},alternate(u){i.method==="GET"?(i.template=u.cache.getCached(i.cacheIndex),d.call(this,i)):m.call(this)}});J.lastCache=p}else C.debug("NOT USING CACHE FOR COMPONENT: "+i.name),m()}}),t.then(function(c){return i.__done__().then(function(){let l;return typeof i.done=="function"&&(l=i.done.call(i,c)),Promise.resolve(l)})},function(c){return typeof i.fail=="function"&&i.fail.call(i,c).catch(l=>{throw new Error(`An error ocurred: ${l}`)}),Promise.reject(new Error("An error ocurred."))}).catch(function(c){C.debug(`Something wrong loading the component: ${c}`)}),t},"_componentLoaderInNode"),s;return k?typeof a<"u"&&a?s=mo(n,[e,a]):s=n(e):s=o(e),s},"componentLoader")}}),zt,ms=$({"src/Component.ts"(){"use strict";var e;ps(),Mt(),bt(),Je(),Rr(),ct(),sr(),at(),it(),Ee(),jt(),rr(),or(),ee(),Lt(),ge(),pe(),Eo(),tl(),Re(),ze(),Lr(),hs(),_s(),zt=(e=class extends me{constructor({__parent__:n,templateURI:o="",template:s,tplsource:i="default",tplextension:c,url:l="",name:_="",method:d="GET",data:f={},reload:p=!1,shadowed:m=!1,cached:u=!0,enableServiceClass:g,assignRoutingParams:y=!0,_body:v=De("div"),__promise__:E=null,__shadowRoot:A,body:q,shadowRoot:G,splashScreenComponent:U,controller:j,view:N}){if(arguments.length<1)throw Error("No arguments in component. You must at least give one argument.");super({__parent__:n,templateURI:o,template:s,tplsource:i,tplextension:c,url:l,name:_,method:d,data:f,reload:p,shadowed:m,cached:u,enableServiceClass:g,assignRoutingParams:y,_body:v,__promise__:E,__shadowRoot:A,body:q,shadowRoot:G,splashScreenComponent:U,controller:j,view:N});r(this,"name");r(this,"templateURI");r(this,"url");r(this,"tplsource");r(this,"tplextension");r(this,"template");r(this,"validRoutingWays",["pathname","hash","search"]);r(this,"basePath",st);r(this,"domain",Oo);r(this,"templateHandler","DefaultTemplateHandler");r(this,"processorHandler");r(this,"routingWay",null);r(this,"routingNodes",[]);r(this,"routings",[]);r(this,"routingPath","");r(this,"routingPaths",[]);r(this,"_componentHelpers",[]);r(this,"subcomponents",[]);r(this,"splashScreenComponent");r(this,"controller");r(this,"routingController");r(this,"view");r(this,"effect");r(this,"effectClass");r(this,"method","GET");r(this,"cached",!0);r(this,"__promise__",null);r(this,"data");r(this,"__namespace");r(this,"_parsedAssignmentText");r(this,"__shadowRoot");r(this,"_serviceClassName",null);r(this,"enableServiceClass",!0);r(this,"serviceInstance");r(this,"serviceData");r(this,"shadowed",!1);r(this,"container");r(this,"innerHTML");r(this,"reload");r(this,"assignRoutingParams",!0);r(this,"responseTo");let I=this;typeof _<"u"&&(I.name=_),typeof I.name>"u"&&typeof _>"u"&&C.warn("A name is not defined for "+$e(I)),I.routingWay=H.get("routingWay"),I.processorHandler=new go({component:I}),I.data=typeof I.data>"u"||I.data===null?{}:I.data,I.data=Object.assign(I.data,I.dataAttributes),I.createServiceInstance().then(()=>{typeof I.__new__=="function"&&I.__new__(I),I._generateRoutingPaths(I.body).then(function(){I._reroute_().then(function(){return I.rebuild().then(function(){C.info(`Component._new_ The component ${I.name} was built successfully!`)}).catch(function(B){C.warn(`Component._new_ Something went wrong building the component ${I.name}`),console.error(`Component._new_ Something went wrong building the component ${I.name}`,B)})}).catch(B=>{throw Error(`Unexpected error ${B}`)})}).catch(B=>{throw Error(`Unexpected error ${B}`)})}).catch(B=>{throw Error(`Unexpected error. ${B}`)})}set cacheIndex(n){C.debug("[cacheIndex] This property is readonly")}get cacheIndex(){let n=this,o=Z(n.routingPath);return Wo.encode(n.name+o)}set parsedAssignmentText(n){C.debug("[parsedAssignmentText] This property is readonly")}get parsedAssignmentText(){let n=this;if(n._parsedAssignmentText=n.parseTemplate(n.template),typeof n._parsedAssignmentText>"u")throw Error(`[Component][${this.name}][parsedAssignmentText] Could not generate content!`);return n._parsedAssignmentText}set shadowRoot(n){let o=this;typeof o.__shadowRoot>"u"?o.__shadowRoot=n:C.debug("[shadowRoot] This property can only be assigned once!")}get shadowRoot(){return this.__shadowRoot}set routingSelected(n){C.debug("[routingSelected] This is a read-only property of the component")}get routingSelected(){let n=this;return Li(n.routings,n.routingPath)}set routingParams(n){C.debug("[routingParams] This is a read-only property of the component")}get routingParams(){let n=this;return[{}].concat(n.routingSelected.map(function(o){return Mi(o,n.routingPath)})).reduce(function(o,s){return Object.assign(o,s)})}set serviceClassName(n){this._serviceClassName=n}get serviceClassName(){let n="";return k?n=this.body.getAttribute("serviceClass")!==null?this.body.getAttribute("serviceClass"):this._serviceClassName:n=this._serviceClassName,n}get responseToData(){let n=!1;return k?n=this.body.getAttribute("response-to")==="data"||this.responseTo==="data":n=this.responseTo==="data",n}get responseToTemplate(){let n=!1;return k?n=this.body.getAttribute("response-to")==="template"||this.responseTo==="template":n=this.responseTo==="template",n}createServiceInstance(){let n=this,o=this.data,s,i=n.getClass().__definition,c=n.serviceClassName;return new Promise(function(l,_){let d=n.enableServiceClass,f=n.responseToData,p=n.responseToTemplate;if(d&&c!==null&&(s=le(c)),!f&&i&&Object.hasOwn(i,"responseTo")?f=i.responseTo==="data":!f&&Object.hasOwn(le("Component"),"responseTo")&&(f=le("Component").responseTo==="data"),!p&&i&&Object.hasOwn(i,"responseTo")?p=i.responseTo==="template":!p&&Object.hasOwn(le("Component"),"responseTo")&&(p=le("Component").responseTo==="template"),typeof s<"u"&&typeof d<"u"&&d===!0&&(f||p)){C.info("Loading service "+c);let m=Ie(s,{data:o});ir(m)?.then(function({service:u}){let g;typeof u.JSONresponse<"u"&&u.JSONresponse!==null?g=u.JSONresponse:g=u.template,f&&(typeof o=="object"&&typeof g=="object"?o=Object.assign(o,g):o=g,n.data=o),n.serviceInstance=m,n.serviceData=o,p&&(n.template=g),l(g)},function(u){C.debug(`Service loading rejected for ${c} in ${n.name}`),_(u)}).catch(function(u){throw C.debug("Something went wroing while trying to load the service "+c),Error(`Error loading ${c} for ${n.name}. Detail: ${u}`)})}else l(null)})}_bindroute_(){let n=this;n._bindroute_.loaded?C.debug(`Routes already bound to popstate events for ${n.name}`):(k&&n.hostElements("a").map(function(o){return o.oldclick=o.onclick,o.onclick=function(s){let i=!0;J.global.get("routingPaths")||J.global.set("routingPaths",[]);let c=H.get("routingWay"),l=s.target[c];return J.global.get("routingPaths").includes(l)&&s.target[c]!==location[c]&&s.target.href!==document.location.href?(C.debug("A ROUTING WAS FOUND: "+l),window.history.pushState({href:s.target.href},s?.target?.href,s.target.href),e.route().catch(_=>{throw Error(`Unexpected error: ${_}`)}),i=!1):C.debug("NO ROUTING FOUND FOR: "+l),typeof s.target.oldclick<"u"&&typeof s.target.oldclick=="function"&&s.target.oldclick.call(s.target,s),i},null}),n._bindroute_.loaded=!0)}done(n){return new Promise(s=>{if(typeof n<"u"){let{request:i,component:c}=n;s({request:i,component:c})}else s({request:void 0,component:void 0})})}createControllerInstance(){let n;if(k){if(typeof this.body>"u")throw new Error("The component has no body");var o=this.body.getAttribute("controllerClass");o||(o="Controller"),n=le(o),typeof n<"u"&&(this.controller=Ie(n,{component:this}))}return new Promise((s,i)=>{if(k&&typeof n<"u"&&typeof this.controller<"u"){if(typeof this.controller.done=="function")try{this.controller.done.call(this.controller)}catch(c){throw Error(c)}else C.debug(`${o} does not have a done() method.`),i(new Error(`${o} does not have a done() method.`));typeof this.controller.createRoutingController=="function"?this.controller.createRoutingController.call(this.controller):C.debug(`${o} does not have a createRoutingController() method.`)}s({component:this,controller:this.controller})})}createEffectInstance(){let n=this;return new Promise(function(o){if(k){let s=n.body?.getAttribute("effectClass"),i=n.body?.getAttribute("apply-effect-to");i=i!==null?i:"load",s!==null&&i==="observe"?n.applyObserveTransitionEffect(s):s!==null&&i==="load"&&n.applyTransitionEffect(s)}o({component:n,effect:n.effect})})}createViewInstance(){let n=this;return new Promise(function(o){let s=k?n.body.getAttribute("viewClass"):null;if(s!==null){let i=le(s);typeof i<"u"&&(n.view=Ie(i,{component:n}),Object.hasOwn(n.view,"done")&&typeof n.view?.done=="function"&&n.view?.done.call(n.view))}o({component:n,view:n.view})})}__done__(){let n=this,o=O(function(){if(typeof n>"u")throw new Error("componentDone() has lost its context");if(typeof n.body>"u")throw new Error("The component has no body");(async()=>{await n.createViewInstance(),await n.createControllerInstance(),await n.createEffectInstance()})().catch(s=>{throw new Error(`Unknown error ${s}.`)}),C.debug(`Trying to run component helpers for ${n.name}...`);try{n.runComponentHelpers(),C.debug(`Component helpers for ${n.name} executed.`)}catch(s){throw C.debug(`Component helpers for ${n.name} could not be executed.`),Error(s)}n.subcomponents=n.__buildSubComponents__(),n._bindroute_(),k&&n.body.setAttribute("loaded","true")},"componentDone");return new Promise(function(s,i){try{s(o.call(n))}catch(c){i(new Error(c))}})}hostElements(n){let o=this,s=[];return k&&(s=o.shadowed&&typeof o.shadowRoot<"u"?o.shadowRoot.subelements(n):o.body.subelements(n)),s}get subtags(){let n=this,o=Dr;return n.hostElements(o)}get bodyAttributes(){let o=this.body;return k?[...o.getAttributeNames()].map(s=>({[s]:o.getAttribute(s)})).reduce((s,i)=>Object.assign(s,i)):{}}get dataAttributes(){let o=this.body;return k?[{}].concat([...o.getAttributeNames()].filter(s=>s.startsWith("data-")).map(s=>({[s.split("-")[1]]:o.getAttribute(s)}))).reduce((s,i)=>Object.assign(s,i)):{}}__buildSubComponents__(n=!1){let o=this,s=o.subtags;return n||(s=s.filter(i=>i.getAttribute("loaded")!=="true")),(typeof o<"u"||o.subcomponents.length<1)&&(o.subcomponents=Cr(s,o)),o.subcomponents}fail(n){return new Promise((s,i)=>{if(typeof n<"u"){let{error:c,component:l}=n;s({error:c,component:l})}else i(new Error(" Unknown error."))})}set(n,o){this[n]=o}get(n,o){return this[n]||o}feedComponent(){let n=this;C.debug(`[Component][${this.name}][feedComponent] start feeding component...`);let o=O(function(c){if(typeof c.container>"u"&&typeof c.body>"u"){C.warn("COMPONENT {{NAME}} has an undefined container and body".replace("{{NAME}}",c.name));return}let l=typeof c.container>"u"||c.container===null?c.body:c.container,_=c.parsedAssignmentText;if(c.innerHTML=_,c.shadowed){C.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",c.name)),C.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let d=De("div");l.subelements("[slot]").map(p=>(p.parentElement===l&&d.appendChild(p),p)),C.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let f=De("div");f.classList.add("shadowHost");try{c.shadowRoot=f.attachShadow({mode:"open"})}catch(p){C.debug(`An error ocurred: ${p}.`);try{C.debug("Shadowed COMPONENT {{NAME}} is repeated".replace("{{NAME}}",c.name)),c.shadowRoot=f.shadowRoot}catch(m){C.debug(`An error ocurred: ${m}.`),C.warn("Shadowed COMPONENT {{NAME}} is not allowed on this browser".replace("{{NAME}}",c.name))}}if(typeof c.shadowRoot<"u"&&c.shadowRoot!==null){c.reload?(C.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),f!==null&&f.shadowRoot!==null&&(f.shadowRoot.innerHTML=c.innerHTML)):(d.innerHTML=c.parseTemplate(d.innerHTML),C.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),f!==null&&f.shadowRoot!==null&&(f.shadowRoot.innerHTML+=c.innerHTML)),C.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),f.innerHTML+=d.innerHTML,C.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",c.name));let p=l.querySelector(".shadowHost");typeof p<"u"&&p!==null?(C.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",c.name)),c.shadowRoot!==null&&f.shadowRoot!==null&&(c.shadowRoot.innerHTML=f.shadowRoot.innerHTML)):l.appendChild(f)}else C.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",c.name))}else c.reload?(C.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),l.innerHTML=c.innerHTML):l&&c?(C.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),l.innerHTML+=c.innerHTML):C.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",c.name))},"_feedComponent_InBrowser"),s=O(function(c){let l=c.parsedAssignmentText;c.innerHTML=l},"_feedComponent_InNode"),i;return ht(n,"Component")?new Promise((c,l)=>{if(k)try{i=o(n),c(i)}catch(_){l(new Error(_))}else try{i=s(n),c(i)}catch(_){l(new Error(_))}}):(C.warn("Trying to feed a non component object"),Promise.reject(new Error(`Trying to feed a non component object ${typeof n}`)))}rebuild(){let n=this;var o=new Promise(function(s,i){if((typeof n>"u"||n===null)&&i(new Error("Component is undefined")),fn(n)&&ht(n,"Component"))switch(!0){case n.get("tplsource")==="none":C.debug("Component "+n.name+" has specified template-source=none, so no template load was done");var c={request:void 0,component:n};n.__done__().then(function(){typeof n.done=="function"&&n.done.call(n,c).catch(l=>{C.debug(`It was an error while calling done() in ${n.name}: ${l}`)}),s.call(o,c)},function(){i.call(o,c)});break;case n.get("tplsource")==="inline":C.debug("Component "+n.name+" has specified template-source=inline, so it is assumed that template is already declared"),(async l=>{await l.feedComponent.bind(l)()})(n).catch(l=>{C.debug(`It was not possible to feed the component ${n.name}: ${l}`)});var c={request:void 0,component:n};n.__done__().then(async()=>{typeof n.done=="function"&&await n.done(c),s.call(o,c)},function(){i.call(o,c)});break;case(n.get("tplsource")==="default"&&n.get("templateURI")!==""):n.set("url",n.get("basePath")+n.get("templateURI")),Qo(n,!1)?.then(function(l){s.call(o,l)},function(l){i.call(o,l)});break;case(n.get("tplsource")==="external"&&n.get("templateURI")!==""):n.set("url",n.get("templateURI")),Qo(n,!1).then(function(l){s.call(o,l)},function(l){i.call(o,l)});break;case(n.get("tplsource")==="default"&&n.get("templateURI","")===""):C.debug(`Component ${n.name} template-source is ${n.get("tplsource")} and no templateURI is present`),i.call(o,`Component ${n.name} template-source is ${n.get("tplsource")} and no templateURI is present`);break;default:C.debug("Component "+n.name+" will not be rebuilt because no templateURI is present"),i.call(o,{request:null,component:n});break}});return o}Cast(n){let o=rt(n).map(s=>s.name.replace(/bound /g,"")).map(s=>({[s]:n[s].bind(this)})).reduce((s,i)=>Object.assign(s,i),{});return _t(this,o)}route(){return this.constructor.route()}static route(){let n=this,o,s=!!(fn(n)&&ht(n,"Component")),i=O(function(c){let l=[],_=c.filter(function(d){return typeof d<"u"}).map(function(d){if(typeof d.name<"u")l.push(d.name);else throw new Error($e(d)+" does not have a name");return new Promise(function(f,p){typeof d<"u"&&d._reroute_?d._reroute_().then(function(){d.reload=!0,d.rebuild().then(()=>{f()}).catch(m=>{C.debug(`Error ${m}`)})}).then(function(){if(Object.hasOwn(d,"subcomponents")&&typeof d.subcomponents<"u"&&d.subcomponents.length>0)return C.debug("LOOKING FOR ROUTINGS IN SUBCOMPONENTS FOR: "+d.name),i.call(d,d.subcomponents);C.debug("No subcomponents to look for routings in: "+d.name),d.subtags.length>0&&(d.subcomponents=d.__buildSubComponents__(!0)),f()}).catch(m=>{C.debug(`Error: ${m}`)}):typeof d<"u"&&p(new Error("Component "+d.name+" is not an instance of Component"))})});return Promise.all(_).then(function(){C.debug("ROUTING COMPLETED FOR "+l.join(", "))}).catch(function(d){C.warn("ROUTING FAILED FOR "+l.join(", ")+": "+d)})},"__route__");if(s||Vo)s&&C.debug("loading routings for instance "+n.name),o=i.call(n,s?n.subcomponents:Vo);else throw C.debug("An undetermined result expected if load routings. So will not be loaded this time."),Error("There is no valid instance and no components stack available to apply rountings");return o}fullscreen(){if(k){let n=this.body;n.requestFullscreen?n.requestFullscreen().catch(o=>{throw new Error(`An error ocurred when requesting fullscreen: ${o}`)}):n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen():n.msRequestFullscreen&&n.msRequestFullscreen()}}closefullscreen(){k&&(document.exitFullscreen?document.exitFullscreen().catch(n=>{throw new Error(`An error ocurred when trying to exit fullscrenn ${n}.`)}):document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}_generateRoutingPaths(n){let o=this;return new Promise(function(s){k&&ss(o.validRoutingWays,o.routingWay||"")&&typeof n<"u"&&(o.innerHTML=n?.innerHTML,o.routingNodes=n?.subelements("routing"),o.routings=[],o.routingNodes.map(i=>{let c=i.getAttributeNames(),l={};return c.map((_,d)=>(l[c[d]]=i.getAttribute(c[d]),_)),o.routings.push(l),o.routingPaths||(o.routingPaths=[]),o.routingPaths.includes(l.path)||o.routingPaths.push(l.path),J.global.get("routingPaths")||J.global.set("routingPaths",[]),J.global.get("routingPaths").includes(l.path)||J.global.get("routingPaths").push(l.path),i})),s()})}parseTemplate(n){let o=this,s,i=n;if(Object.hasOwn(o,"templateHandler")){let c=o.templateHandler;C.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${c} ...`);let l=le(c),_=Ie(l,{component:o,template:i});_.component=o;let d=o.data;if(Object.hasOwn(o,"assignRoutingParams")&&o.assignRoutingParams)try{d=Object.assign(d,o.routingParams)}catch(f){C.debug(`An error ocurred: ${f}.`),C.debug("[parseTemplate] it was not possible to assign the routing params to the template")}s=_.assign(d)}else C.debug(`[Component][${this.name}][parseTemplate] No value for templateHandler. Using raw content...`),s=i;return s}_reroute_(){let n=this;return new Promise(function(o){k&&ss(n.validRoutingWays,n.routingWay||"")&&(n.routingPath=location[n.routingWay],n.routingSelected.map(s=>{let i=Ko({COMPONENTS_BASE_PATH:H.get("componentsBasePath"),COMPONENT_NAME:s.name.toString(),TPLEXTENSION:Object.hasOwn(s,"tplextension")?s.tplextension||"":n.tplextension,TPL_SOURCE:"default"});return n.templateURI=i,s}),n.routingSelected.length>0&&(n.template="",typeof n.body<"u"&&n.body!==null&&(n.body.innerHTML=""))),o(n)})}lazyLoadImages(){if(k){let o=this.componentRoot;if(typeof o<"u"&&o!==null){let s=[...o.subelements("img[lazy-src]")],i=O(function(c){c.setAttribute("src",c.getAttribute("lazy-src")?.toString()),c.onload=()=>{c.removeAttribute("lazy-src")}},"_lazyLoadImages");if("IntersectionObserver"in window){let c=new IntersectionObserver((l,_)=>{l.forEach(d=>{d.isIntersecting&&(i(d.target),_.unobserve(d.target))})});s.map(function(l){return c.observe(l)})}else s.map(i)}}return null}applyTransitionEffect(n){let o=le(n);if(typeof o>"u")throw Error(`${n} not found.`);typeof o<"u"&&ht(o,"TransitionEffect")?(this.effect=Ie(o,{component:this}),this.effect?.apply(this.effect?.defaultParams)):C.debug(`${n} is ${$e(o)} but is not a TransitionEffect`)}applyObserveTransitionEffect(n){if(k){let o=this,s=o.componentRoot,i=O(function(){o.applyTransitionEffect(n)},"_applyEffect_");"IntersectionObserver"in window?new IntersectionObserver((l,_)=>{l.forEach(d=>{d.isIntersecting&&(i(),_.unobserve(d.target))})}).observe(s):i()}}get componentRoot(){return this.shadowed?this.shadowRoot:this.body}scrollIntoHash(){if(k){let n=this;document.location.hash!==""&&(n.componentRoot?.subelements(document.location.hash)).map(s=>(typeof s.scrollIntoView=="function"&&s.scrollIntoView(H.get("scrollIntoHash",{behavior:"auto",block:"top",inline:"top"})),s))}}i18n_translate(){if(k&&H.get("use_i18n")){let n=this,o=n.componentRoot,s=H.get("lang","en"),i=navigator.language.slice(0,2),c=J.global.get("i18n");s!==i&&typeof c=="object"&&Object.hasOwn(c,"messages")&&O(()=>new Promise(function(_){let d=c.messages.filter(function(f){return Object.hasOwn(f,s)&&Object.hasOwn(f,i)});(o?.subelements("ul,li,h1,h2,h3,a,b,p,input,textarea,summary,details,option,component")).map(f=>(d.map(function(p){let m=f.innerHTML;return m=m?.replace(new RegExp(`${p[s]}`,"g"),p[i]),f.innerHTML=m,null}),f)),_()}),"callback_i18n").call(n).then(function(){C.debug("i18n loaded for component: "+n.name)}).catch(_=>{throw new Error(`An error ocurred when parsing i18n: ${_}.`)})}}addComponentHelper(n){this._componentHelpers.push(n)}runComponentHelpers(){if(k){let n=this,o=[];o.push(n.i18n_translate.bind(n)),o.push(n.scrollIntoHash.bind(n)),o.push(n.lazyLoadImages.bind(n)),o=o.concat(n._componentHelpers),o.map(s=>(C.debug(`Executing ${s.name} as component helper for ${n.name}...`),s(),s))}}},h(e,"_Component"),O(e,"Component"),r(e,"shadowed",!1),r(e,"cached",!0),r(e,"subcomponents"),r(e,"responseTo"),e),re("com.qcobjects",[zt]),rt(le("Component")).map(a=>(oe(a),a))}}),Ko,Ci,Cr,Di,Rr=$({"src/ComponentFactory.ts"(){"use strict";Tr(),Je(),ms(),ze(),at(),it(),ee(),Lt(),ge(),pe(),hs(),Ko=O(({TPL_SOURCE:e,COMPONENTS_BASE_PATH:a,COMPONENT_NAME:t,TPLEXTENSION:n})=>e==="default"?`${a}${t}.${n}`:"","ComponentURI"),Ci=O((e,a)=>{let t=e.getAttribute("shadowed")===null,n=e.getAttribute("template-source")===null,o=e.getAttribute("shadowed")==="true",s=e.getAttribute("cached")===null,i=e.getAttribute("cached")==="true",c=typeof H.get("tplextension")<"u"?H.get("tplextension"):"html";c=e.getAttribute("tplextension")!==null?e.getAttribute("tplextension"):c;let l=e.getAttribute("name"),_=e.getAttribute("componentClass")!==null?e.getAttribute("componentClass"):"Component",d=H.get("preserveComponentBodyTag")?l!==null?"com.qcobjects.components."+l+".ComponentBody":"com.qcobjects.components.ComponentBody":_;l=l!==null?l:le(d)&&typeof le(d).name<"u"?le(d).name:"";let f=le(d),p=d!=="Component"&&typeof f<"u"&&typeof f.tplsource=="string"&&f.tplsource!=="",m=n&&p?f.tplsource:n?"default":e.getAttribute("template-source");C.debug(`template source for ${l} is ${m} `),C.debug(`type for ${l} is ${$e(f)} `);let u=Ko({COMPONENTS_BASE_PATH:H.get("componentsBasePath"),COMPONENT_NAME:l,TPLEXTENSION:c,TPL_SOURCE:m});return H.get("preserveComponentBodyTag")&&re(l!==""?"com.qcobjects.components."+l:"com.qcobjects.components",[Jt("ComponentBody",zt,{name:l,tplsource:m,tplextension:c,reload:!0})]),O(function(){let v=t?f&&f.shadowed||zt.shadowed:o,E={__parent__:a,name:l,cached:s?zt.cached:i,shadowed:v,tplextension:c,body:H.get("preserveComponentBodyTag")?De("componentBody"):e,templateURI:u,tplsource:m};(typeof l>"u"||l===""||l===null)&&delete E.name,u===""&&delete E.templateURI;let A=Ie(f,E);return H.get("preserveComponentBodyTag")&&typeof A<"u"&&e.append(A.body),A},"__create_component_instance_")()},"_buildComponentFromElement_"),Cr=O((e,a)=>{let t=[];return k?t=e.map(function(n){return Ci(n,a)}):C.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),t},"_buildComponentsFromElements_"),Di=O(e=>{let a=Dr,t=e.subelements(a);return Cr(t,null)},"buildComponents")}}),_r,mr,wr,Ri=$({"src/Service.ts"(){"use strict";var e,a,t;Mt(),Ir(),sr(),Ee(),ee(),ge(),fs(),ze(),_r=(e=class extends me{constructor(){super(...arguments);r(this,"options");r(this,"withCredentials");r(this,"useHTTP2");r(this,"name");r(this,"responseHeaders");r(this,"kind","rest");r(this,"domain",Oo);r(this,"basePath",st);r(this,"url","");r(this,"method","GET");r(this,"data",{});r(this,"reload",!1);r(this,"cached",!1);r(this,"headers");r(this,"template")}mockup({request:s,service:i}){throw new Error("Method not implemented.")}local({request:s,service:i}){throw new Error("Method not implemented.")}done({request:s,service:i}){throw new Error("Method not implemented.")}fail(...s){throw new Error("Method not implemented.")}set(s,i){this[s]=i}get(s,i){return this[s]||i}},h(e,"Service"),O(e,"Service"),e),mr=(a=class extends _r{constructor(){super(...arguments);r(this,"method","GET");r(this,"cached",!1);r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse")}done(s){C.debug("***** RECEIVED RESPONSE:"),C.debug(s.service.template),this.JSONresponse=JSON.parse(s.service.template)}},h(a,"JSONService"),O(a,"JSONService"),a),wr=(t=class extends mr{constructor(){super();r(this,"method","GET");r(this,"cached",!1);r(this,"configFileName","config.json");r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse");this.set("url",`${this.get("basePath")}${this.get("configFileName")}`)}configLoaded(){throw Error("Method not implemented.")}done(s){if(C.debug("***** CONFIG LOADED:"),C.debug(s.service.template),this.JSONresponse=JSON.parse(s.service.template),Object.hasOwn(this.JSONresponse,"__encoded__")){let c=ot.decrypt(this.JSONresponse?.__encoded__,_o);this.JSONresponse=JSON.parse(c)}let i=this.JSONresponse;Object.keys(i).map(c=>(H.set(c,i[c]),c)),this.configLoaded().catch(c=>{throw new Error(`An error ocurred: ${c}`)})}fail(){this.configLoaded().catch(s=>{throw new Error(`An error ocurred: ${s}`)})}},h(t,"ConfigService"),O(t,"ConfigService"),t),re("com.qcobjects.api",[_r]),re("com.qcobjects.api.services",[mr]),re("com.qcobjects.api.config",[wr])}}),yo,bs=$({"src/globalSettings.ts"(){"use strict";var e;ze(),Ee(),ee(),ge(),pe(),Lr(),Re(),Ri(),yo=(e=class extends me{constructor(){super(...arguments);r(this,"_GLOBAL",{});r(this,"_logger",new yr)}static __start__(){return e.instance.__start__()}static get instance(){return typeof e._instance>"u"&&(e._instance=new e),e._instance}get logger(){return this._logger}set logger(n){this._logger=n}set(n,o){this._GLOBAL[n]=o}get(n,o){let s;return typeof this._GLOBAL[n]<"u"?s=this._GLOBAL[n]:typeof o<"u"&&(s=o),s}__start__(){let n=O(function(){let s;return k?s=new Promise(function(i,c){"serviceWorker"in navigator&&typeof H.get("serviceWorkerURI")<"u"&&(H.set("serviceWorkerScope",H.get("serviceWorkerScope")?H.get("serviceWorkerScope"):"/"),navigator.serviceWorker.register(H.get("serviceWorkerURI"),{scope:H.get("serviceWorkerScope")}).then(function(l){C.debug("Service Worker Registered"),i.call(s,l)},function(l){C.debug("Error registering Service Worker"),c.call(s,l)}),navigator.serviceWorker.ready.then(function(l){C.debug("Service Worker Ready"),i.call(s,l)},function(l){C.debug("Error loading Service Worker"),c.call(s,l)}))}):s=Promise.resolve(),s},"__load__serviceWorker"),o=O(function(){return new Promise(s=>{if(k){C.debug("Starting to building components");try{ys()}catch(i){throw Error(`Something went wrong trying to start components tree: ${i.message}`)}C.debug("Initializing the service worker"),n.call(J).catch(function(i){C.debug(`error loading the service worker ${i}`)})}s()})},"_buildComponents");return new Promise(s=>{C.debug("Starting to load the config settings..."),H.get("useConfigService",!1)?(C.debug("Loading settings using local configuration file..."),Cs(new wr),Ho.configLoaded=o,ir(Ho)?.then(i=>{s(i)})?.catch(i=>{throw new Error(`An error ocurred while trying to load ${Ho.url}: ${i}`)})):(C.debug("Starting to load the components..."),o.call(this).then(()=>{s({})}).catch(i=>{throw new Error(`An error ocurred while trying to build the components stack. ${i}`)}))})}},h(e,"_GlobalSettings"),O(e,"GlobalSettings"),r(e,"_instance"),e),re("com.qcobjects",[yo])}}),ki={};Ei(ki,{_top:h(()=>J,"_top"),buildComponentsStack:h(()=>ys,"buildComponentsStack"),componentsStack:h(()=>Vo,"componentsStack"),configService:h(()=>Ho,"configService"),get:h(()=>ws,"get"),resetTop:h(()=>vr,"resetTop"),set:h(()=>ho,"set"),setConfigService:h(()=>Cs,"setConfigService")});var J,Vo,vr,ys,Ho,Cs,ho,ws,wi,Re=$({"src/top.ts"(){"use strict";Rr(),bt(),bs(),Tr(),Je(),It(),pe(),mt(),ee(),J=typeof Yt<"u"&&typeof Yt.exports<"u"&&Yt.exports||typeof global<"u"&&global||typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof self<"u"&&self!==null&&self||void 0,J.lastCache=void 0,Vo=[],vr=O(()=>{let e=yo.instance;J=Tt(e,J,!0)},"resetTop"),ys=O(()=>{Vo=Di(document)},"buildComponentsStack"),Cs=O(e=>{J.global.configService=e,Ho=e},"setConfigService"),ho=O((e,a)=>{J[e]=a},"set"),ws=O((e,a)=>J[e]||a,"get"),vr(),wi=O(function(e){Object.hasOwn(e,"PackagesList")||Object.defineProperty(e,"PackagesList",{set:O(a=>{C.debug("PackagesList is readonly")},"set"),get:O(()=>ns(),"get")}),Object.hasOwn(e,"PackagesNameList")||Object.defineProperty(e,"PackagesNameList",{set:O(a=>{C.debug("PackagesNameList is readonly")},"set"),get:O(()=>ts(),"get")}),Object.hasOwn(e,"ClassesList")||Object.defineProperty(e,"ClassesList",{set:O(a=>{C.debug("ClassesList is readonly")},"set"),get:O(()=>os(),"get")}),Object.hasOwn(e,"ClassesNameList")||Object.defineProperty(e,"ClassesNameList",{set(a){C.debug("ClassesNameList is readonly")},get:O(()=>Pi(),"get")})},"_define_props"),k&&(Jt("GLOBAL",Ae.global),Q(le("GLOBAL"))),k&&typeof window<"u"?ho("global",window):k&&typeof globalThis<"u"&&ho("global",globalThis),wi(J)}}),po,vs,qi=$({"src/captureFalseTouch.ts"(){"use strict";if(ee(),pe(),po=!1,vs=O(()=>po?{passive:!0}:!1,"captureFalseTouch"),k)try{let e=Object.defineProperty({},"passive",{get(){return po=!0,po}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(e){C.debug(`An error ocurred: ${e}.`),po=!1}else po=!1}}),Jo,Os=$({"src/range.ts"(){"use strict";jt(),Jo=O((e,a=0,t=1)=>((a===0||typeof a>"u")&&(a=e,e=0),Array.from({length:(a-e)/t+1},function(n,o){return e+o*t})),"range"),oe(Jo)}}),Es,Fi=$({"src/defaultProcessors.ts"(){"use strict";ee(),Eo(),Re(),Os(),Es=O(()=>{(function(e){let a=O((i,c,l)=>{if(typeof i>"u"||i===null)throw Error(`mapper.${c}.${l} does not have a component instance or it is null.`);let _=e.global.get(l),d=i.get(l),f=i.data[l],p=typeof f<"u"?f:typeof d<"u"?d:_,m="";return typeof p<"u"&&typeof p.map<"u"?m=p.map(function(u){let g=[...Object.keys(u)].map(y=>` data-${y}="${typeof u[y]<"u"&&u[y]!==null?u[y].toString():""}"`).join("");return`<quick-component name="${c}" ${g} ></quick-component>`}).join(""):C.debug(`${c}.${l} does not have a map property`),m},"mapper");gt.setProcessor(a);let t=O(function(i,c,l){let _=`
|
|
3
|
+
${Object.keys(Q).join(`
|
|
4
|
+
`)}`);return s},"ClassFactory")}}),Fn,Jo=v({"src/Base64.ts"(){"use strict";var o;Fn=(o=class{static encode(t){let e="",n,a,i,c,d,g,p,h=0;for(t=o._utf8_encode(t);h<t.length;)n=t.charCodeAt(h++),a=t.charCodeAt(h++),i=t.charCodeAt(h++),c=n>>2,d=(n&3)<<4|a>>4,g=(a&15)<<2|i>>6,p=i&63,isNaN(a)?g=p=64:isNaN(i)&&(p=64),e=e+this._keyStr.charAt(c)+this._keyStr.charAt(d)+this._keyStr.charAt(g)+this._keyStr.charAt(p);return e}static decode(t){let e="",n,a,i,c,d,g,p,h=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");h<t.length;)c=this._keyStr.indexOf(t.charAt(h++)),d=this._keyStr.indexOf(t.charAt(h++)),g=this._keyStr.indexOf(t.charAt(h++)),p=this._keyStr.indexOf(t.charAt(h++)),n=c<<2|d>>4,a=(d&15)<<4|g>>2,i=(g&3)<<6|p,e=e+String.fromCharCode(n),g!==64&&(e=e+String.fromCharCode(a)),p!==64&&(e=e+String.fromCharCode(i));return e=o._utf8_decode(e),e}static _utf8_encode(t){t=t.replace(/rn/g,"n");let e="";for(let n=0;n<t.length;n++){let a=t.charCodeAt(n);a<128?e+=String.fromCharCode(a):a>127&&a<2048?(e+=String.fromCharCode(a>>6|192),e+=String.fromCharCode(a&63|128)):(e+=String.fromCharCode(a>>12|224),e+=String.fromCharCode(a>>6&63|128),e+=String.fromCharCode(a&63|128))}return e}static _utf8_decode(t){let e="",n=0,a=0,i=0,c;for(;n<t.length;)a=t.charCodeAt(n),a<128?(e+=String.fromCharCode(a),n++):a>191&&a<224?(i=t.charCodeAt(n+1),e+=String.fromCharCode((a&31)<<6|i&63),n+=2):(i=t.charCodeAt(n+1),c=t.charCodeAt(n+2),e+=String.fromCharCode((a&15)<<12|(i&63)<<6|c&63),n+=3);return e}},l(o,"_Base64"),f(o,"Base64"),r(o,"_keyStr","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),o)}}),fe,Kr,ke=v({"src/basePath.ts"(){"use strict";$(),fe=(function(){let o="";if(y){let s=document.baseURI.split("?")[0].split("/");s.pop(),o=s.join("/")+"/"}else try{let s=Dn("node:process");typeof s<"u"?o=`${s.cwd()}/`:o=""}catch{o=""}return o})(),Kr=f(o=>{fe=o},"setBasePath")}}),M,me=v({"src/DataStringify.ts"(){"use strict";zo(),M=f(o=>JSON.stringify(o,f(function(){let t=new WeakSet,e=0;return function(n,a){if(typeof a=="object"&&a!==null){if(t.has(a))return e+=1,e<=3?_o(a):null;t.add(a)}return a}},"getCircularReplacer")()),"_DataStringify")}}),_n,eo=v({"src/domain.ts"(){"use strict";_n=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),K,De=v({"src/New.ts"(){"use strict";K=f(function(o,s={}){return s=arguments.length>1?s:{},typeof o>"u"?new Object:new o(s)},"New"),K.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"}}}),un,Qo=v({"src/secretKey.ts"(){"use strict";$(),un=y?location.host:"secret"}}),ue,Xr,Go,wo=v({"src/Crypt.ts"(){"use strict";var o;Jo(),me(),W(),F(),Qo(),ue=(o=class extends H{constructor(){super(...arguments);r(this,"string","");r(this,"key","");r(this,"last_string","");r(this,"last_key","");r(this,"construct",!1)}encrypt(e,n){throw new Error("Method not implemented.")}decrypt(e,n){throw new Error("Method not implemented.")}_new_(e){let n=e.string,a=Object.hasOwn(e,"key")?e.key:"";this.__new__(e),a=a===""?this.__instanceID.toString():a,this.last_key=a,this.last_string=n,this.construct=!0}_encrypt(){let e=this.string,n=this.key,a="",i,c;for(let d=0;d<e.length;d++)i=e.substr(d,1),c=n.substr(d%n.length-1,1),i=String.fromCharCode(i.charCodeAt(0)+c.charCodeAt(0)),a+=i;return this.last_string=Fn.encode(a),this.last_string}_decrypt(){let e=this.string,n=this.key,a="",i,c;e=Fn.decode(e);for(let d=0;d<e.length;d++)i=e.substr(d,1),c=n.substr(d%n.length-1,1),i=String.fromCharCode(i.charCodeAt(0)-c.charCodeAt(0)),a+=i;return this.last_string=a,this.last_string}static encrypt(e,n){return new o({string:e,key:n!==""?n:"12345678ABC"})._encrypt()}static decrypt(e,n){return new o({string:e,key:n!==""?n:"12345678ABC"})._decrypt()}},l(o,"__Crypt"),f(o,"_Crypt"),o),Xr=f(function(s){return ue.encrypt(M(s),un)},"_CryptObject"),Go=f(function(s){return s===""?{}:JSON.parse(ue.decrypt(s,un))},"_DecryptObject"),D("com.qcobjects",[ue])}}),xe,ea=v({"src/ConfigSettings.ts"(){"use strict";var o;ke(),W(),F(),xe=(o=class extends H{constructor(){super(...arguments);r(this,"_CONFIG",{relativeImportPath:"",remoteImportsPath:"",remoteSDKPath:"https://sdk.qcobjects.dev/",asynchronousImportsLoad:!1,removePackageScriptAfterLoading:!0,componentsBasePath:"",delayForReady:0,preserveComponentBodyTag:!1,useConfigService:!1,routingWay:"hash",useSDK:!0,useLocalSDK:!1,basePath:fe});r(this,"_CONFIG_ENC","")}set(e,n){this._CONFIG[e]=n}get(e,n){return this._CONFIG[e]||n}static get instance(){return typeof o._instance>"u"&&(o._instance=new o),o._instance}},l(o,"_ConfigSettings"),f(o,"ConfigSettings"),r(o,"_instance"),o),D("com.qcobjects",[xe])}}),O,le=v({"src/CONFIG.ts"(){"use strict";var o;ke(),Oe(),wo(),me(),R(),yn(),Qo(),F(),W(),ea(),O=(o=class extends H{get _CONFIG_ENC(){return xe.instance._CONFIG_ENC}get _CONFIG(){return xe.instance._CONFIG}set(t,e){u.debug(`CONFIG.set ${t}: ${e}`),t==="basePath"&&Kr(e);let n;try{n=(function(a){a._CONFIG_ENC===null&&(a._CONFIG_ENC=ue.encrypt(M({}),un));let i=a._CONFIG_ENC.valueOf(),c=a._CONFIG?.valueOf();return Pe(c,Go(i))})(xe.instance)}catch(a){n={},console.error(a),u.debug("failed to encrypt config")}n[t]=e,xe.instance._CONFIG_ENC=Xr(n),xe.instance.set(t,e)}get(t,e){let n;try{let i=(function(c){c._CONFIG_ENC===null&&(c._CONFIG_ENC=ue.encrypt(M({}),un));let d=c._CONFIG_ENC.valueOf(),g=c._CONFIG.valueOf();return Pe(g,Go(d))})(xe.instance);typeof i[t]<"u"&&(n=i[t])}catch(i){console.error(i),u.debug("Something wrong when trying to get CONFIG values"),u.debug("No config value for: "+t),n=e}let a=ye.processObject(n);return n===null&&a===null?null:a||e}static get instance(){return typeof o._instance>"u"&&(o._instance=new o),o._instance}static set(t,e){o.instance.set(t,e)}static get(t,e){return o.instance.get(t,e)}},l(o,"_CONFIG"),f(o,"CONFIG"),r(o,"_instance"),o),D("com.qcobjects",[O])}}),dn,ye,yn=v({"src/Processor.ts"(){"use strict";var o;le(),W(),De(),ee(),F(),dn=(o=class extends H{constructor({component:e,processors:n}){super({component:e});r(this,"processors",{config(e,n){return O.get(n,"")},ENV(e,n){return typeof process<"u"?process.env[n]:""},global(e,n){return typeof I<"u"?I[n]:""}});r(this,"component");typeof n<"u"&&(this.processors=Object.assign(n,o.instance.processors))}static get instance(){return typeof o._instance>"u"&&(o._instance=new o({component:null})),o._instance}static setProcessor(e){typeof e=="function"&&e.name!==""&&(o.instance.processors[e.name]=e)}setProcessor(e){typeof e=="function"&&e.name!==""&&(this.processors[e.name]=e)}static getProcessor(e){return o.instance.processors[e]}static getProcessorNames(){return Object.keys(o.instance.processors)}execute(e,n,a){let i=typeof e<"u"&&e!==null?e.processorHandler:this;return i?.processors[n].bind(i).apply(i,[e,a?.split(",")])}static process(e,n=null){return o.instance.process(e,n)}process(e,n=null){let a=n!==null?n.processorHandler:K(o,{component:null});return typeof e=="string"&&Object.keys(a.processors).map(i=>[...e.matchAll(new RegExp("\\$"+i+"\\((.*)\\).*","g"))].map(function(c){let d=`$${i}(${c[1]})`;return e=e.replace(d,a.execute.bind(a).call(a,n,i,c[1])),c})),e}static processObject(e,n){return e==null?e:o.instance.processObject(e,n)}processObject(e,n=null){if(e==null)return e;let a=n===null?this:n.processorHandler;return typeof a>"u"&&(a=new o({component:n})),typeof e=="object"?Object.keys(e).map(i=>(typeof e[i]=="object"&&!Object.hasOwn(e[i],"call")?e[i]=a?.processObject.bind(a)(e[i],n):typeof e[i]=="string"&&(e[i]=a?.process.bind(a)(e[i],n)),i)):typeof e=="string"&&(e=a.process.bind(a)(e,n)),e}},l(o,"_Processor"),f(o,"Processor"),r(o,"_instance"),o),ye=dn.instance,D("com.qcobjects",[dn])}}),Yr,es,Ho,ta=v({"src/routings.ts"(){"use strict";Yr=f((o,s)=>{let t=o.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...s.matchAll(new RegExp(t,"g"))][0].groups}},"__routing_params__"),es=f(function(o,s){return o.filter(function(t){let e=t.path.replace(/{(.*?)}/g,"(?<$1>.*)");return new RegExp(e,"g").test(s)}).reverse()},"__valid_routings__"),Ho=f((o,s)=>o.includes(s),"__valid_routing_way__")}});function pn(o,s){let e=class e{constructor(a,i=[]){r(this,"func");r(this,"args");this.func=a,this.args=i}dispatch(){this.func.apply(this,...s,this)}};l(e,"AsyncCallback"),f(e,"AsyncCallback");let t=e;return ro.push(new t(o,s)),t}l(pn,"asyncLoad");var ro,Zo,Co=v({"src/asyncLoad.ts"(){"use strict";Me(),$(),ee(),ro=[],f(pn,"asyncLoad"),Zo=f(()=>{y?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&ro.map(function(o){o.dispatch.call(o)})}):typeof I.global<"u"&&ro.map(function(o){o.dispatch.call(o)})},"_fireAsyncLoad"),S(pn)}}),fn,vo=v({"src/ComplexStorageCache.ts"(){"use strict";var o;Jo(),me(),R(),fn=(o=class{constructor(t){let e,n,a=t.index;if(typeof a<"u"){e=t.load,n=t.alternate;let i=this.getID(a),c=localStorage.getItem(i);if(this.isEmpty(c)){let d=e.call(null,{cachedObjectID:i,cachedResponse:c,cache:this});this.save(a,d),u.debug("RESPONSE OF {{cachedObjectID}} CACHED".replace("{{cachedObjectID}}",i))}else n.call(null,{cachedObjectID:i,cachedResponse:c,cache:this}),u.debug("RESPONSE OF {{cachedObjectID}} IS ALREADY CACHED ".replace("{{cachedObjectID}}",i))}else throw new Error("ComplexStorageCache: index is undefined");return this}getItem(t){let e=localStorage.getItem(t);return this.isEmpty(e)?null:JSON.parse(e)}setItem(t,e){localStorage.setItem(t,M(e))}isEmpty(t){let e=!1;switch(!0){case typeof t>"u":case(typeof t=="string"&&t===""):case(typeof t=="string"&&t==="undefined"):case(typeof t=="number"&&t===0):case t===null:e=!0;break;default:e=!1}return e}getID(t){let e;return typeof t<"u"&&(e="cachedObject_"+Fn.encode(M(t).replace(/\{|\}|,/g,"_"))),e}save(t,e){let n=this.getID(t);u.debug("CACHING THE RESPONSE OF {{cachedObjectID}} ".replace("{{cachedObjectID}}",n)),this.setItem(n,e)}getCached(t){let e=this.getID(t);return this.getItem(e)}clear(){Object.keys(localStorage).filter(function(t){return t.startsWith("cachedObject_")}).map(function(t){return localStorage.removeItem(t),t})}},l(o,"ComplexStorageCache"),f(o,"ComplexStorageCache"),o)}}),to,Oo=v({"src/serviceLoader.ts"(){"use strict";Co(),vo(),me(),R(),$(),ee(),to=f(function(o,s=!1){let t=f(function(c){var d=new Promise(function(g,p){u.debug("LOADING SERVICE DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",M(c.data)).replace("{{URL}}",c.url));let h=new XMLHttpRequest;h.withCredentials=c.withCredentials,h.open(c.method,c.url,!0);for(let _ in c.headers)try{typeof c.headers[_]!="function"&&h.setRequestHeader(_,c.headers[_])}catch(E){u.debug("Something went wrong when assign the header "+_),u.debug(`An error ocurred: ${E}`)}h.onload=function(){if(h.status===200){let E=h.responseText;if(u.debug("Data received {{DATA}}".replace("{{DATA}}",M(E))),u.debug("CREATING SERVICE {{NAME}}".replace("{{NAME}}",c.name)),c.template=E,c.cached&&typeof C<"u"&&C.save(c.name,c.template),typeof c.done=="function"){var _={request:h,service:c};c.done.call(c,_),g.call(d,_)}}else if(typeof c.fail=="function"){var _={request:h,service:c};c.fail.call(c,_),p.call(d,_)}};let b=f(function(){u.debug("SENDING THE NORMAL REQUEST ");try{h.send(M(c.data))}catch(_){u.debug("SOMETHING WRONG WITH REQUEST "),u.debug(`An error ocurred: ${_}`),p.call(d,{request:h,service:c})}},"_directLoad");if(c.cached){var C=new fn({index:c.data,load(){b.call(this)},alternate(_){if(c.method==="GET"){if(c.template=_.cache.getCached(c.name),typeof c.done=="function"){let E={request:h,service:c};c.done.call(c,E),g.call(d,E)}}else b()}});I.lastCache=C}else b();return h});return d},"_serviceLoaderInBrowser"),e=f(function(c){var d=new Promise(function(g,p){if(typeof URL>"u"){global.URL=Te("url").URL;let _=global.URL}let h=new URL(c.url);var m;c.useHTTP2=Object.hasOwn(c,"useHTTP2")&&c.useHTTP2;let b=f(function(_){u.debug("LOADING SERVICE DATA (non-browser) {{DATA}} FROM {{URL}}".replace("{{DATA}}",M(c.data)).replace("{{URL}}",c.url));let E,x={http2Client:C,request:_,service:c,responseHeaders:null};if(typeof c.data=="object"&&c.data!==null&&c.useHTTP2)try{u.debug("Sending data...");let U=new Buffer(M(c.data));_.write(U)}catch(U){u.debug("It was not possible to send any data"),u.debug(`An error ocurred: ${U}`)}E="",_.on("response",U=>{u.debug("receiving response..."),x.responseHeaders=U,E=""}),_.on("data",U=>{u.debug("receiving data..."),E+=""+U.toString(),c.template=E}),c.useHTTP2&&_.resume(),_.on("end",()=>{u.debug("ending call..."),c.template=E,Object.hasOwn(c,"useHTTP2")&&c.useHTTP2?C.destroy():_.destroy(),c.done.call(c,x),g.call(d,x)}),c.useHTTP2&&_.end()},"captureEvents");try{let _;if(c.useHTTP2){u.debug("using http2");var C=Te("http2").connect(h.origin);_=Object.assign({":method":c.method,":path":h.pathname},c.options),_=Object.assign(_,c.headers),m=C.request(_),m.setEncoding("utf8"),b(m)}else if(h.protocol==="http:"){let x=Te("http").request;_=Object.assign({url:c.url,headers:c.headers},c.options),m=x(c.url),b(m)}else if(h.protocol==="https:"){let E=Te("https");_=Object.assign({hostname:h.hostname,port:h.port,path:h.pathname,method:c.method,headers:c.headers},c.options),E.request(_,function(U){b(U)}).end()}else{let E="Protocol not supported: "+h.protocol;throw u.debug(E),new Error(E)}}catch(_){u.debug(_),c.fail.call(c,_),p.call(d,_)}}).catch(g=>{u.debug(`Something happened when trying to call the service: ${c.name}. Error: ${g}`),c.fail.call(c,g)});return d},"_serviceLoaderInNode"),n=f(function(c){var d=new Promise(function(g){u.debug(`Calling mockup service ${c.name} ...`);let p={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.mockup=="function"?c.mockup.call(c,p):c.done.call(c,p),g.call(d,p)});return d},"_serviceLoaderMockup"),a=f(function(c){var d=new Promise(function(g){u.debug(`Calling local service ${c.name} ...`);let p={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.local=="function"?c.local.call(c,p):c.done.call(c,p),g.call(d,p)});return d},"_serviceLoaderLocal"),i;switch(o.kind){case"rest":y?typeof s<"u"&&s?i=pn(t,[o,s]):i=t(o):i=e(o);break;case"mockup":i=n(o);break;case"local":i=a(o);break;default:u.debug(`The value of the kind property of the service ${o.name} is not valid`),i=Promise.resolve();break}return i},"serviceLoader")}}),Eo,Ko=v({"src/tag_filter.ts"(){"use strict";Eo="quick-component:not([loaded]),component:not([loaded])"}}),Gn,Xo=v({"src/componentLoader.ts"(){"use strict";Co(),vo(),me(),R(),$(),ee(),Gn=f(function(o,s){let t,e=f(function(i){return t=new Promise(function(c,d){let g=i.__promise__;if((Object.hasOwn(i,"container")&&typeof i.container<"u"&&i.container!==null?i.container:i.body)!==null){let C=f(function(E){E.feedComponent();let x={request:m,component:E};c.call(g,x)},"_feedComponent_");u.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",M(i.data)).replace("{{URL}}",i.url));let _=f(function(){let E=h?0:200;if(m.status===E){let x=m.responseText;u.debug("Data received {{DATA}}".replace("{{DATA}}",M(x))),u.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=x,i.cached&&typeof b<"u"&&b.save(i.name,i.template),C(i)}else{let x={request:m,component:i};d.call(g,x)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")C(i);else{var h=!!i.url.startsWith("file:"),m=new XMLHttpRequest;if(h)"fetch"in I&&(u.debug("I can use fetch..."),u.debug("It is a file to be loaded, so I will try to use fetch"),fetch(i.url).then(x=>{u.debug("I got a response from fetch, so I'll feed the component"),x.text().then(U=>{i.template=U,C(i)}).catch(U=>{throw new Error(`An error ocurred: ${U}`)})}).catch(x=>{throw new Error(`An error ocurred: ${x}`)}));else try{u.debug("Calling the url of component in async mode."),m.open(i.method,i.url,!0)}catch(x){u.debug(`An error ocurred: ${x}.`),u.debug("Last try has failed... The component cannot be loaded.")}!bo&&!h&&m.setRequestHeader("Content-Type","text/html"),h||(m.onload=_);let E=f(function(x){x=!(typeof x>"u"||!x),u.debug("SENDING THE NORMAL REQUEST "),x?"fetch"in I||(u.debug("I have to try to load the file using xhr... "),m.send(null),m.status===XMLHttpRequest.DONE&&_()):(u.debug("Trying to send the data to the component... "),m.send(M(i.data)))},"_directLoad");if(i.cached&&!h){u.debug("USING CACHE FOR COMPONENT: "+i.name);var b=new fn({index:i.cacheIndex,load(){E.call(this,h)},alternate(x){i.method==="GET"?(i.template=x.cache.getCached(i.cacheIndex),C.call(this,i)):E.call(this,h)}});I.lastCache=b}else u.debug("NOT USING CACHE FOR COMPONENT: "+i.name),E(h)}}else u.debug("CONTAINER DOESNT EXIST")}),t.then(function(c){return i.__done__().then(function(){let d;return typeof i.done=="function"&&(d=i.done.call(i,c)),Promise.resolve(d)})},function(c){return typeof i.fail=="function"&&i.fail.call(i,c).catch(d=>{throw new Error(`${d}`)}),Promise.reject(new Error("An error ocurred"))}).catch(function(c){throw u.debug("Something wrong loading the component"),new Error(`An error ocurred: ${c}`)}),t},"_componentLoaderInBrowser"),n=f(function(i){return t=new Promise(function(c,d){let g=t,p=f(function(b){b.feedComponent().catch(_=>{throw new Error(`An error ocurred trying to feed the component: ${b.name}. Error: ${_}`)});let C={request:null,component:b};c.call(g,C)},"_feedComponent_");u.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",M(i.data)).replace("{{URL}}",i.url));let h=f(function(b,C){if(b){let _={request:null,component:i};d.call(g,_)}else{let _=C.toString();u.debug("Data received {{DATA}}".replace("{{DATA}}",M(_))),u.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=_,i.cached&&typeof m<"u"&&m.save(i.name,i.template),p(i)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")p(i);else{u.debug("Loading the component as a local file in server...");let b=f(function(){let{readFile:C}=Dn("node:fs");u.debug("SENDING THE NORMAL REQUEST "),C(i.url,h)},"_directLoad");if(i.cached){u.debug("USING CACHE FOR COMPONENT: "+i.name);var m=new fn({index:i.cacheIndex,load(){b()},alternate(C){i.method==="GET"?(i.template=C.cache.getCached(i.cacheIndex),p.call(this,i)):b.call(this)}});I.lastCache=m}else u.debug("NOT USING CACHE FOR COMPONENT: "+i.name),b()}}),t.then(function(c){return i.__done__().then(function(){let d;return typeof i.done=="function"&&(d=i.done.call(i,c)),Promise.resolve(d)})},function(c){return typeof i.fail=="function"&&i.fail.call(i,c).catch(d=>{throw new Error(`An error ocurred: ${d}`)}),Promise.reject(new Error("An error ocurred."))}).catch(function(c){u.debug(`Something wrong loading the component: ${c}`)}),t},"_componentLoaderInNode"),a;return y?typeof s<"u"&&s?a=pn(e,[o,s]):a=e(o):a=n(o),a},"componentLoader")}}),Je,Yo=v({"src/Component.ts"(){"use strict";var o;Jo(),ke(),Oe(),ce(),So(),me(),eo(),ge(),he(),W(),Re(),Yn(),Xn(),R(),De(),F(),$(),yn(),ta(),ee(),le(),Oo(),Ko(),Xo(),Je=(o=class extends H{constructor({__parent__:e,templateURI:n="",template:a,tplsource:i="default",tplextension:c,url:d="",name:g="",method:p="GET",data:h={},reload:m=!1,shadowed:b=!1,cached:C=!0,enableServiceClass:_,assignRoutingParams:E=!0,_body:x=Y("div"),__promise__:U=null,__shadowRoot:kn,body:$i,shadowRoot:Fi,splashScreenComponent:Gi,controller:Hi,view:Bi}){if(arguments.length<1)throw Error("No arguments in component. You must at least give one argument.");super({__parent__:e,templateURI:n,template:a,tplsource:i,tplextension:c,url:d,name:g,method:p,data:h,reload:m,shadowed:b,cached:C,enableServiceClass:_,assignRoutingParams:E,_body:x,__promise__:U,__shadowRoot:kn,body:$i,shadowRoot:Fi,splashScreenComponent:Gi,controller:Hi,view:Bi});r(this,"name");r(this,"templateURI");r(this,"url");r(this,"tplsource");r(this,"tplextension");r(this,"template");r(this,"validRoutingWays",["pathname","hash","search"]);r(this,"basePath",fe);r(this,"domain",_n);r(this,"templateHandler","DefaultTemplateHandler");r(this,"processorHandler");r(this,"routingWay",null);r(this,"routingNodes",[]);r(this,"routings",[]);r(this,"routingPath","");r(this,"routingPaths",[]);r(this,"_componentHelpers",[]);r(this,"subcomponents",[]);r(this,"splashScreenComponent");r(this,"controller");r(this,"routingController");r(this,"view");r(this,"effect");r(this,"effectClass");r(this,"method","GET");r(this,"cached",!0);r(this,"__promise__",null);r(this,"data");r(this,"__namespace");r(this,"_parsedAssignmentText");r(this,"__shadowRoot");r(this,"_serviceClassName",null);r(this,"enableServiceClass",!0);r(this,"serviceInstance");r(this,"serviceData");r(this,"shadowed",!1);r(this,"container");r(this,"innerHTML");r(this,"reload");r(this,"assignRoutingParams",!0);r(this,"responseTo");let q=this;typeof g<"u"&&(q.name=g),typeof q.name>"u"&&typeof g>"u"&&u.warn("A name is not defined for "+ne(q)),q.routingWay=O.get("routingWay"),q.processorHandler=new dn({component:q}),q.data=typeof q.data>"u"||q.data===null?{}:q.data,q.data=Object.assign(q.data,q.dataAttributes),q.createServiceInstance().then(()=>{typeof q.__new__=="function"&&q.__new__(q),q._generateRoutingPaths(q.body).then(function(){q._reroute_().then(function(){return q.rebuild().then(function(){u.info(`Component._new_ The component ${q.name} was built successfully!`)}).catch(function(Ue){u.warn(`Component._new_ Something went wrong building the component ${q.name}`),console.error(`Component._new_ Something went wrong building the component ${q.name}`,Ue)})}).catch(Ue=>{throw Error(`Unexpected error ${Ue}`)})}).catch(Ue=>{throw Error(`Unexpected error ${Ue}`)})}).catch(Ue=>{throw Error(`Unexpected error. ${Ue}`)})}set cacheIndex(e){u.debug("[cacheIndex] This property is readonly")}get cacheIndex(){let e=this,n=M(e.routingPath);return Fn.encode(e.name+n)}set parsedAssignmentText(e){u.debug("[parsedAssignmentText] This property is readonly")}get parsedAssignmentText(){let e=this;if(e._parsedAssignmentText=e.parseTemplate(e.template),typeof e._parsedAssignmentText>"u")throw Error(`[Component][${this.name}][parsedAssignmentText] Could not generate content!`);return e._parsedAssignmentText}set shadowRoot(e){let n=this;typeof n.__shadowRoot>"u"?n.__shadowRoot=e:u.debug("[shadowRoot] This property can only be assigned once!")}get shadowRoot(){return this.__shadowRoot}set routingSelected(e){u.debug("[routingSelected] This is a read-only property of the component")}get routingSelected(){let e=this;return es(e.routings,e.routingPath)}set routingParams(e){u.debug("[routingParams] This is a read-only property of the component")}get routingParams(){let e=this;return[{}].concat(e.routingSelected.map(function(n){return Yr(n,e.routingPath)})).reduce(function(n,a){return Object.assign(n,a)})}set serviceClassName(e){this._serviceClassName=e}get serviceClassName(){let e="";return y?e=this.body.getAttribute("serviceClass")!==null?this.body.getAttribute("serviceClass"):this._serviceClassName:e=this._serviceClassName,e}get responseToData(){let e=!1;return y?e=this.body.getAttribute("response-to")==="data"||this.responseTo==="data":e=this.responseTo==="data",e}get responseToTemplate(){let e=!1;return y?e=this.body.getAttribute("response-to")==="template"||this.responseTo==="template":e=this.responseTo==="template",e}createServiceInstance(){let e=this,n=this.data,a,i=e.getClass().__definition,c=e.serviceClassName;return new Promise(function(d,g){let p=e.enableServiceClass,h=e.responseToData,m=e.responseToTemplate;if(p&&c!==null&&(a=j(c)),!h&&i&&Object.hasOwn(i,"responseTo")?h=i.responseTo==="data":!h&&Object.hasOwn(j("Component"),"responseTo")&&(h=j("Component").responseTo==="data"),!m&&i&&Object.hasOwn(i,"responseTo")?m=i.responseTo==="template":!m&&Object.hasOwn(j("Component"),"responseTo")&&(m=j("Component").responseTo==="template"),typeof a<"u"&&typeof p<"u"&&p===!0&&(h||m)){u.info("Loading service "+c);let b=K(a,{data:n});to(b)?.then(function({service:C}){let _;typeof C.JSONresponse<"u"&&C.JSONresponse!==null?_=C.JSONresponse:_=C.template,h&&(typeof n=="object"&&typeof _=="object"?n=Object.assign(n,_):n=_,e.data=n),e.serviceInstance=b,e.serviceData=n,m&&(e.template=_),d(_)},function(C){u.debug(`Service loading rejected for ${c} in ${e.name}`),g(C)}).catch(function(C){throw u.debug("Something went wroing while trying to load the service "+c),Error(`Error loading ${c} for ${e.name}. Detail: ${C}`)})}else d(null)})}_bindroute_(){let e=this;e._bindroute_.loaded?u.debug(`Routes already bound to popstate events for ${e.name}`):(y&&e.hostElements("a").map(function(n){return n.oldclick=n.onclick,n.onclick=function(a){let i=!0;I.global.get("routingPaths")||I.global.set("routingPaths",[]);let c=O.get("routingWay"),d=a.target[c];return I.global.get("routingPaths").includes(d)&&a.target[c]!==location[c]&&a.target.href!==document.location.href?(u.debug("A ROUTING WAS FOUND: "+d),window.history.pushState({href:a.target.href},a?.target?.href,a.target.href),o.route().catch(g=>{throw Error(`Unexpected error: ${g}`)}),i=!1):u.debug("NO ROUTING FOUND FOR: "+d),typeof a.target.oldclick<"u"&&typeof a.target.oldclick=="function"&&a.target.oldclick.call(a.target,a),i},null}),e._bindroute_.loaded=!0)}done(e){return new Promise(a=>{if(typeof e<"u"){let{request:i,component:c}=e;a({request:i,component:c})}else a({request:void 0,component:void 0})})}createControllerInstance(){let e;if(y){if(typeof this.body>"u")throw new Error("The component has no body");var n=this.body.getAttribute("controllerClass");n||(n="Controller"),e=j(n),typeof e<"u"&&(this.controller=K(e,{component:this}))}return new Promise((a,i)=>{if(y&&typeof e<"u"&&typeof this.controller<"u"){if(typeof this.controller.done=="function")try{this.controller.done.call(this.controller)}catch(c){throw Error(c)}else u.debug(`${n} does not have a done() method.`),i(new Error(`${n} does not have a done() method.`));typeof this.controller.createRoutingController=="function"?this.controller.createRoutingController.call(this.controller):u.debug(`${n} does not have a createRoutingController() method.`)}a({component:this,controller:this.controller})})}createEffectInstance(){let e=this;return new Promise(function(n){if(y){let a=e.body?.getAttribute("effectClass"),i=e.body?.getAttribute("apply-effect-to");i=i!==null?i:"load",a!==null&&i==="observe"?e.applyObserveTransitionEffect(a):a!==null&&i==="load"&&e.applyTransitionEffect(a)}n({component:e,effect:e.effect})})}createViewInstance(){let e=this;return new Promise(function(n){let a=y?e.body.getAttribute("viewClass"):null;if(a!==null){let i=j(a);typeof i<"u"&&(e.view=K(i,{component:e}),Object.hasOwn(e.view,"done")&&typeof e.view?.done=="function"&&e.view?.done.call(e.view))}n({component:e,view:e.view})})}__done__(){let e=this,n=f(function(){if(typeof e>"u")throw new Error("componentDone() has lost its context");if(typeof e.body>"u")throw new Error("The component has no body");(async()=>{await e.createViewInstance(),await e.createControllerInstance(),await e.createEffectInstance()})().catch(a=>{throw new Error(`Unknown error ${a}.`)}),u.debug(`Trying to run component helpers for ${e.name}...`);try{e.runComponentHelpers(),u.debug(`Component helpers for ${e.name} executed.`)}catch(a){throw u.debug(`Component helpers for ${e.name} could not be executed.`),Error(a)}e.subcomponents=e.__buildSubComponents__(),e._bindroute_(),y&&e.body.setAttribute("loaded","true")},"componentDone");return new Promise(function(a,i){try{a(n.call(e))}catch(c){i(new Error(c))}})}hostElements(e){let n=this,a=[];return y&&(a=n.shadowed&&typeof n.shadowRoot<"u"?n.shadowRoot.subelements(e):n.body.subelements(e)),a}get subtags(){let e=this,n=Eo;return e.hostElements(n)}get bodyAttributes(){let n=this.body;return y?[...n.getAttributeNames()].map(a=>({[a]:n.getAttribute(a)})).reduce((a,i)=>Object.assign(a,i)):{}}get dataAttributes(){let n=this.body;return y?[{}].concat([...n.getAttributeNames()].filter(a=>a.startsWith("data-")).map(a=>({[a.split("-")[1]]:n.getAttribute(a)}))).reduce((a,i)=>Object.assign(a,i)):{}}__buildSubComponents__(e=!1){let n=this,a=n.subtags;return e||(a=a.filter(i=>i.getAttribute("loaded")!=="true")),(typeof n<"u"||n.subcomponents.length<1)&&(n.subcomponents=lo(a,n)),n.subcomponents}fail(e){return new Promise((a,i)=>{if(typeof e<"u"){let{error:c,component:d}=e;a({error:c,component:d})}else i(new Error(" Unknown error."))})}set(e,n){this[e]=n}get(e,n){return this[e]||n}feedComponent(){let e=this;u.debug(`[Component][${this.name}][feedComponent] start feeding component...`);let n=f(function(c){if(typeof c.container>"u"&&typeof c.body>"u"){u.warn("COMPONENT {{NAME}} has an undefined container and body".replace("{{NAME}}",c.name));return}let d=typeof c.container>"u"||c.container===null?c.body:c.container,g=c.parsedAssignmentText;if(c.innerHTML=g,c.shadowed){u.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",c.name)),u.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let p=Y("div");d.subelements("[slot]").map(m=>(m.parentElement===d&&p.appendChild(m),m)),u.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let h=Y("div");h.classList.add("shadowHost");try{c.shadowRoot=h.attachShadow({mode:"open"})}catch(m){u.debug(`An error ocurred: ${m}.`);try{u.debug("Shadowed COMPONENT {{NAME}} is repeated".replace("{{NAME}}",c.name)),c.shadowRoot=h.shadowRoot}catch(b){u.debug(`An error ocurred: ${b}.`),u.warn("Shadowed COMPONENT {{NAME}} is not allowed on this browser".replace("{{NAME}}",c.name))}}if(typeof c.shadowRoot<"u"&&c.shadowRoot!==null){c.reload?(u.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),h!==null&&h.shadowRoot!==null&&(h.shadowRoot.innerHTML=c.innerHTML)):(p.innerHTML=c.parseTemplate(p.innerHTML),u.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),h!==null&&h.shadowRoot!==null&&(h.shadowRoot.innerHTML+=c.innerHTML)),u.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),h.innerHTML+=p.innerHTML,u.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",c.name));let m=d.querySelector(".shadowHost");typeof m<"u"&&m!==null?(u.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",c.name)),c.shadowRoot!==null&&h.shadowRoot!==null&&(c.shadowRoot.innerHTML=h.shadowRoot.innerHTML)):d.appendChild(h)}else u.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",c.name))}else c.reload?(u.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),d.innerHTML=c.innerHTML):d&&c?(u.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),d.innerHTML+=c.innerHTML):u.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",c.name))},"_feedComponent_InBrowser"),a=f(function(c){let d=c.parsedAssignmentText;c.innerHTML=d},"_feedComponent_InNode"),i;return we(e,"Component")?new Promise((c,d)=>{if(y)try{i=n(e),c(i)}catch(g){d(new Error(g))}else try{i=a(e),c(i)}catch(g){d(new Error(g))}}):(u.warn("Trying to feed a non component object"),Promise.reject(new Error(`Trying to feed a non component object ${typeof e}`)))}rebuild(){let e=this;var n=new Promise(function(a,i){if((typeof e>"u"||e===null)&&i(new Error("Component is undefined")),dt(e)&&we(e,"Component"))switch(!0){case e.get("tplsource")==="none":u.debug("Component "+e.name+" has specified template-source=none, so no template load was done");var c={request:void 0,component:e};e.__done__().then(function(){typeof e.done=="function"&&e.done.call(e,c).catch(d=>{u.debug(`It was an error while calling done() in ${e.name}: ${d}`)}),a.call(n,c)},function(){i.call(n,c)});break;case e.get("tplsource")==="inline":u.debug("Component "+e.name+" has specified template-source=inline, so it is assumed that template is already declared"),(async d=>{await d.feedComponent.bind(d)()})(e).catch(d=>{u.debug(`It was not possible to feed the component ${e.name}: ${d}`)});var c={request:void 0,component:e};e.__done__().then(async()=>{typeof e.done=="function"&&await e.done(c),a.call(n,c)},function(){i.call(n,c)});break;case(e.get("tplsource")==="default"&&e.get("templateURI")!==""):e.set("url",e.get("basePath")+e.get("templateURI")),Gn(e,!1)?.then(function(d){a.call(n,d)},function(d){i.call(n,d)});break;case(e.get("tplsource")==="external"&&e.get("templateURI")!==""):e.set("url",e.get("templateURI")),Gn(e,!1).then(function(d){a.call(n,d)},function(d){i.call(n,d)});break;case(e.get("tplsource")==="default"&&e.get("templateURI","")===""):u.debug(`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`),i.call(n,`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`);break;default:u.debug("Component "+e.name+" will not be rebuilt because no templateURI is present"),i.call(n,{request:null,component:e});break}});return n}Cast(e){let n=pe(e).map(a=>a.name.replace(/bound /g,"")).map(a=>({[a]:e[a].bind(this)})).reduce((a,i)=>Object.assign(a,i),{});return Ce(this,n)}route(){return this.constructor.route()}static route(){let e=this,n,a=!!(dt(e)&&we(e,"Component")),i=f(function(c){let d=[],g=c.filter(function(p){return typeof p<"u"}).map(function(p){if(typeof p.name<"u")d.push(p.name);else throw new Error(ne(p)+" does not have a name");return new Promise(function(h,m){typeof p<"u"&&p._reroute_?p._reroute_().then(function(){p.reload=!0,p.rebuild().then(()=>{h()}).catch(b=>{u.debug(`Error ${b}`)})}).then(function(){if(Object.hasOwn(p,"subcomponents")&&typeof p.subcomponents<"u"&&p.subcomponents.length>0)return u.debug("LOOKING FOR ROUTINGS IN SUBCOMPONENTS FOR: "+p.name),i.call(p,p.subcomponents);u.debug("No subcomponents to look for routings in: "+p.name),p.subtags.length>0&&(p.subcomponents=p.__buildSubComponents__(!0)),h()}).catch(b=>{u.debug(`Error: ${b}`)}):typeof p<"u"&&m(new Error("Component "+p.name+" is not an instance of Component"))})});return Promise.all(g).then(function(){u.debug("ROUTING COMPLETED FOR "+d.join(", "))}).catch(function(p){u.warn("ROUTING FAILED FOR "+d.join(", ")+": "+p)})},"__route__");if(a||Bn)a&&u.debug("loading routings for instance "+e.name),n=i.call(e,a?e.subcomponents:Bn);else throw u.debug("An undetermined result expected if load routings. So will not be loaded this time."),Error("There is no valid instance and no components stack available to apply rountings");return n}fullscreen(){if(y){let e=this.body;e.requestFullscreen?e.requestFullscreen().catch(n=>{throw new Error(`An error ocurred when requesting fullscreen: ${n}`)}):e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}closefullscreen(){y&&(document.exitFullscreen?document.exitFullscreen().catch(e=>{throw new Error(`An error ocurred when trying to exit fullscrenn ${e}.`)}):document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}_generateRoutingPaths(e){let n=this;return new Promise(function(a){y&&Ho(n.validRoutingWays,n.routingWay||"")&&typeof e<"u"&&(n.innerHTML=e?.innerHTML,n.routingNodes=e?.subelements("routing"),n.routings=[],n.routingNodes.map(i=>{let c=i.getAttributeNames(),d={};return c.map((g,p)=>(d[c[p]]=i.getAttribute(c[p]),g)),n.routings.push(d),n.routingPaths||(n.routingPaths=[]),n.routingPaths.includes(d.path)||n.routingPaths.push(d.path),I.global.get("routingPaths")||I.global.set("routingPaths",[]),I.global.get("routingPaths").includes(d.path)||I.global.get("routingPaths").push(d.path),i})),a()})}parseTemplate(e){let n=this,a,i=e;if(Object.hasOwn(n,"templateHandler")){let c=n.templateHandler;u.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${c} ...`);let d=j(c),g=K(d,{component:n,template:i});g.component=n;let p=n.data;if(Object.hasOwn(n,"assignRoutingParams")&&n.assignRoutingParams)try{p=Object.assign(p,n.routingParams)}catch(h){u.debug(`An error ocurred: ${h}.`),u.debug("[parseTemplate] it was not possible to assign the routing params to the template")}a=g.assign(p)}else u.debug(`[Component][${this.name}][parseTemplate] No value for templateHandler. Using raw content...`),a=i;return a}_reroute_(){let e=this;return new Promise(function(n){y&&Ho(e.validRoutingWays,e.routingWay||"")&&(e.routingPath=location[e.routingWay],e.routingSelected.map(a=>{let i=Hn({COMPONENTS_BASE_PATH:O.get("componentsBasePath"),COMPONENT_NAME:a.name.toString(),TPLEXTENSION:Object.hasOwn(a,"tplextension")?a.tplextension||"":e.tplextension,TPL_SOURCE:"default"});return e.templateURI=i,a}),e.routingSelected.length>0&&(e.template="",typeof e.body<"u"&&e.body!==null&&(e.body.innerHTML=""))),n(e)})}lazyLoadImages(){if(y){let n=this.componentRoot;if(typeof n<"u"&&n!==null){let a=[...n.subelements("img[lazy-src]")],i=f(function(c){c.setAttribute("src",c.getAttribute("lazy-src")?.toString()),c.onload=()=>{c.removeAttribute("lazy-src")}},"_lazyLoadImages");if("IntersectionObserver"in window){let c=new IntersectionObserver((d,g)=>{d.forEach(p=>{p.isIntersecting&&(i(p.target),g.unobserve(p.target))})});a.map(function(d){return c.observe(d)})}else a.map(i)}}return null}applyTransitionEffect(e){let n=j(e);if(typeof n>"u")throw Error(`${e} not found.`);typeof n<"u"&&we(n,"TransitionEffect")?(this.effect=K(n,{component:this}),this.effect?.apply(this.effect?.defaultParams)):u.debug(`${e} is ${ne(n)} but is not a TransitionEffect`)}applyObserveTransitionEffect(e){if(y){let n=this,a=n.componentRoot,i=f(function(){n.applyTransitionEffect(e)},"_applyEffect_");"IntersectionObserver"in window?new IntersectionObserver((d,g)=>{d.forEach(p=>{p.isIntersecting&&(i(),g.unobserve(p.target))})}).observe(a):i()}}get componentRoot(){return this.shadowed?this.shadowRoot:this.body}scrollIntoHash(){if(y){let e=this;document.location.hash!==""&&(e.componentRoot?.subelements(document.location.hash)).map(a=>(typeof a.scrollIntoView=="function"&&a.scrollIntoView(O.get("scrollIntoHash",{behavior:"auto",block:"top",inline:"top"})),a))}}i18n_translate(){if(y&&O.get("use_i18n")){let e=this,n=e.componentRoot,a=O.get("lang","en"),i=navigator.language.slice(0,2),c=I.global.get("i18n");a!==i&&typeof c=="object"&&Object.hasOwn(c,"messages")&&f(()=>new Promise(function(g){let p=c.messages.filter(function(h){return Object.hasOwn(h,a)&&Object.hasOwn(h,i)});(n?.subelements("ul,li,h1,h2,h3,a,b,p,input,textarea,summary,details,option,component")).map(h=>(p.map(function(m){let b=h.innerHTML;return b=b?.replace(new RegExp(`${m[a]}`,"g"),m[i]),h.innerHTML=b,null}),h)),g()}),"callback_i18n").call(e).then(function(){u.debug("i18n loaded for component: "+e.name)}).catch(g=>{throw new Error(`An error ocurred when parsing i18n: ${g}.`)})}}addComponentHelper(e){this._componentHelpers.push(e)}runComponentHelpers(){if(y){let e=this,n=[];n.push(e.i18n_translate.bind(e)),n.push(e.scrollIntoHash.bind(e)),n.push(e.lazyLoadImages.bind(e)),n=n.concat(e._componentHelpers),n.map(a=>(u.debug(`Executing ${a.name} as component helper for ${e.name}...`),a(),a))}}},l(o,"_Component"),f(o,"Component"),r(o,"shadowed",!1),r(o,"cached",!0),r(o,"subcomponents"),r(o,"responseTo"),o),D("com.qcobjects",[Je]),pe(j("Component")).map(s=>(k(s),s))}}),Hn,Hr,lo,ts,So=v({"src/ComponentFactory.ts"(){"use strict";yo(),ce(),Yo(),le(),ge(),he(),R(),De(),F(),$(),Ko(),Hn=f(({TPL_SOURCE:o,COMPONENTS_BASE_PATH:s,COMPONENT_NAME:t,TPLEXTENSION:e})=>o==="default"?`${s}${t}.${e}`:"","ComponentURI"),Hr=f((o,s)=>{let t=o.getAttribute("shadowed")===null,e=o.getAttribute("template-source")===null,n=o.getAttribute("shadowed")==="true",a=o.getAttribute("cached")===null,i=o.getAttribute("cached")==="true",c=typeof O.get("tplextension")<"u"?O.get("tplextension"):"html";c=o.getAttribute("tplextension")!==null?o.getAttribute("tplextension"):c;let d=o.getAttribute("name"),g=o.getAttribute("componentClass")!==null?o.getAttribute("componentClass"):"Component",p=O.get("preserveComponentBodyTag")?d!==null?"com.qcobjects.components."+d+".ComponentBody":"com.qcobjects.components.ComponentBody":g;d=d!==null?d:j(p)&&typeof j(p).name<"u"?j(p).name:"";let h=j(p),m=p!=="Component"&&typeof h<"u"&&typeof h.tplsource=="string"&&h.tplsource!=="",b=e&&m?h.tplsource:e?"default":o.getAttribute("template-source");u.debug(`template source for ${d} is ${b} `),u.debug(`type for ${d} is ${ne(h)} `);let C=Hn({COMPONENTS_BASE_PATH:O.get("componentsBasePath"),COMPONENT_NAME:d,TPLEXTENSION:c,TPL_SOURCE:b});return O.get("preserveComponentBodyTag")&&D(d!==""?"com.qcobjects.components."+d:"com.qcobjects.components",[ze("ComponentBody",Je,{name:d,tplsource:b,tplextension:c,reload:!0})]),f(function(){let x=t?h&&h.shadowed||Je.shadowed:n,U={__parent__:s,name:d,cached:a?Je.cached:i,shadowed:x,tplextension:c,body:O.get("preserveComponentBodyTag")?Y("componentBody"):o,templateURI:C,tplsource:b};(typeof d>"u"||d===""||d===null)&&delete U.name,C===""&&delete U.templateURI;let kn=K(h,U);return O.get("preserveComponentBodyTag")&&typeof kn<"u"&&o.append(kn.body),kn},"__create_component_instance_")()},"_buildComponentFromElement_"),lo=f((o,s)=>{let t=[];return y?t=o.map(function(e){return Hr(e,s)}):u.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),t},"_buildComponentsFromElements_"),ts=f(o=>{let s=Eo,t=o.subelements(s);return lo(t,null)},"buildComponents")}}),so,io,uo,ns=v({"src/Service.ts"(){"use strict";var o,s,t;ke(),wo(),eo(),W(),R(),F(),Qo(),le(),so=(o=class extends H{constructor(){super(...arguments);r(this,"options");r(this,"withCredentials");r(this,"useHTTP2");r(this,"name");r(this,"responseHeaders");r(this,"kind","rest");r(this,"domain",_n);r(this,"basePath",fe);r(this,"url","");r(this,"method","GET");r(this,"data",{});r(this,"reload",!1);r(this,"cached",!1);r(this,"headers");r(this,"template")}mockup({request:a,service:i}){throw new Error("Method not implemented.")}local({request:a,service:i}){throw new Error("Method not implemented.")}done({request:a,service:i}){throw new Error("Method not implemented.")}fail(...a){throw new Error("Method not implemented.")}set(a,i){this[a]=i}get(a,i){return this[a]||i}},l(o,"Service"),f(o,"Service"),o),io=(s=class extends so{constructor(){super(...arguments);r(this,"method","GET");r(this,"cached",!1);r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse")}done(a){u.debug("***** RECEIVED RESPONSE:"),u.debug(a.service.template),this.JSONresponse=JSON.parse(a.service.template)}},l(s,"JSONService"),f(s,"JSONService"),s),uo=(t=class extends io{constructor(){super();r(this,"method","GET");r(this,"cached",!1);r(this,"configFileName","config.json");r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse");this.set("url",`${this.get("basePath")}${this.get("configFileName")}`)}configLoaded(){throw Error("Method not implemented.")}done(a){if(u.debug("***** CONFIG LOADED:"),u.debug(a.service.template),this.JSONresponse=JSON.parse(a.service.template),Object.hasOwn(this.JSONresponse,"__encoded__")){let c=ue.decrypt(this.JSONresponse?.__encoded__,un);this.JSONresponse=JSON.parse(c)}let i=this.JSONresponse;Object.keys(i).map(c=>(O.set(c,i[c]),c)),this.configLoaded().catch(c=>{throw new Error(`An error ocurred: ${c}`)})}fail(){this.configLoaded().catch(a=>{throw new Error(`An error ocurred: ${a}`)})}},l(t,"ConfigService"),f(t,"ConfigService"),t),D("com.qcobjects.api",[so]),D("com.qcobjects.api.services",[io]),D("com.qcobjects.api.config",[uo])}}),hn,er=v({"src/globalSettings.ts"(){"use strict";var o;le(),W(),R(),F(),$(),Oo(),ee(),ns(),hn=(o=class extends H{constructor(){super(...arguments);r(this,"_GLOBAL",{});r(this,"_logger",new co)}static __start__(){return o.instance.__start__()}static get instance(){return typeof o._instance>"u"&&(o._instance=new o),o._instance}get logger(){return this._logger}set logger(e){this._logger=e}set(e,n){this._GLOBAL[e]=n}get(e,n){let a;return typeof this._GLOBAL[e]<"u"?a=this._GLOBAL[e]:typeof n<"u"&&(a=n),a}__start__(){let e=f(function(){let a;return y?a=new Promise(function(i,c){"serviceWorker"in navigator&&typeof O.get("serviceWorkerURI")<"u"&&(O.set("serviceWorkerScope",O.get("serviceWorkerScope")?O.get("serviceWorkerScope"):"/"),navigator.serviceWorker.register(O.get("serviceWorkerURI"),{scope:O.get("serviceWorkerScope")}).then(function(d){u.debug("Service Worker Registered"),i.call(a,d)},function(d){u.debug("Error registering Service Worker"),c.call(a,d)}),navigator.serviceWorker.ready.then(function(d){u.debug("Service Worker Ready"),i.call(a,d)},function(d){u.debug("Error loading Service Worker"),c.call(a,d)}))}):a=Promise.resolve(),a},"__load__serviceWorker"),n=f(function(){return new Promise(a=>{if(y){u.debug("Starting to building components");try{tr()}catch(i){throw Error(`Something went wrong trying to start components tree: ${i.message}`)}u.debug("Initializing the service worker"),e.call(I).catch(function(i){u.debug(`error loading the service worker ${i}`)})}a()})},"_buildComponents");return new Promise(a=>{u.debug("Starting to load the config settings..."),O.get("useConfigService",!1)?(u.debug("Loading settings using local configuration file..."),nr(new uo),qn.configLoaded=n,to(qn)?.then(i=>{a(i)})?.catch(i=>{throw new Error(`An error ocurred while trying to load ${qn.url}: ${i}`)})):(u.debug("Starting to load the components..."),n.call(this).then(()=>{a({})}).catch(i=>{throw new Error(`An error ocurred while trying to build the components stack. ${i}`)}))})}},l(o,"_GlobalSettings"),f(o,"GlobalSettings"),r(o,"_instance"),o),D("com.qcobjects",[hn])}}),os={};Wr(os,{_top:l(()=>I,"_top"),buildComponentsStack:l(()=>tr,"buildComponentsStack"),componentsStack:l(()=>Bn,"componentsStack"),configService:l(()=>qn,"configService"),get:l(()=>or,"get"),resetTop:l(()=>po,"resetTop"),set:l(()=>No,"set"),setConfigService:l(()=>nr,"setConfigService")});var I,Bn,po,tr,qn,nr,No,or,Br,ee=v({"src/top.ts"(){"use strict";So(),Oe(),er(),yo(),ce(),Me(),$(),ve(),R(),I=typeof Qe<"u"&&typeof Qe.exports<"u"&&Qe.exports||typeof global<"u"&&global||typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof self<"u"&&self!==null&&self||void 0,I.lastCache=void 0,Bn=[],po=f(()=>{let o=hn.instance;I=Pe(o,I,!0)},"resetTop"),tr=f(()=>{Bn=ts(document)},"buildComponentsStack"),nr=f(o=>{I.global.configService=o,qn=o},"setConfigService"),No=f((o,s)=>{I[o]=s},"set"),or=f((o,s)=>I[o]||s,"get"),po(),Br=f(function(o){Object.hasOwn(o,"PackagesList")||Object.defineProperty(o,"PackagesList",{set:f(s=>{u.debug("PackagesList is readonly")},"set"),get:f(()=>$o(),"get")}),Object.hasOwn(o,"PackagesNameList")||Object.defineProperty(o,"PackagesNameList",{set:f(s=>{u.debug("PackagesNameList is readonly")},"set"),get:f(()=>qo(),"get")}),Object.hasOwn(o,"ClassesList")||Object.defineProperty(o,"ClassesList",{set:f(s=>{u.debug("ClassesList is readonly")},"set"),get:f(()=>Fo(),"get")}),Object.hasOwn(o,"ClassesNameList")||Object.defineProperty(o,"ClassesNameList",{set(s){u.debug("ClassesNameList is readonly")},get:f(()=>Jr(),"get")})},"_define_props"),y&&(ze("GLOBAL",Q.global),S(j("GLOBAL"))),y&&typeof window<"u"?Object.defineProperty(I,"global",{writable:!0,configurable:!0,enumerable:!0,value:window}):y&&typeof globalThis<"u"&&Object.defineProperty(I,"global",{writable:!0,configurable:!0,enumerable:!0,value:globalThis}),Br(I)}}),cn,rr,rs=v({"src/captureFalseTouch.ts"(){"use strict";if(R(),$(),cn=!1,rr=f(()=>cn?{passive:!0}:!1,"captureFalseTouch"),y)try{let o=Object.defineProperty({},"passive",{get(){return cn=!0,cn}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(o){u.debug(`An error ocurred: ${o}.`),cn=!1}else cn=!1}}),Un,sr=v({"src/range.ts"(){"use strict";Re(),Un=f((o,s=0,t=1)=>((s===0||typeof s>"u")&&(s=o,o=0),Array.from({length:(s-o)/t+1},function(e,n){return o+n*t})),"range"),k(Un)}}),ir,ss=v({"src/defaultProcessors.ts"(){"use strict";R(),yn(),ee(),sr(),ir=f(()=>{(function(o){let s=f((i,c,d)=>{if(typeof i>"u"||i===null)throw Error(`mapper.${c}.${d} does not have a component instance or it is null.`);let g=o.global.get(d),p=i.get(d),h=i.data[d],m=typeof h<"u"?h:typeof p<"u"?p:g,b="";return typeof m<"u"&&typeof m.map<"u"?b=m.map(function(C){let _=[...Object.keys(C)].map(E=>` data-${E}="${typeof C[E]<"u"&&C[E]!==null?C[E].toString():""}"`).join("");return`<quick-component name="${c}" ${_} ></quick-component>`}).join(""):u.debug(`${c}.${d} does not have a map property`),b},"mapper");ye.setProcessor(s);let t=f(function(i,c,d){let g=`
|
|
5
5
|
/* CSS Document for Mobile Imports */
|
|
6
|
-
@import url("${
|
|
7
|
-
@import url("${
|
|
8
|
-
@import url("${
|
|
9
|
-
@import url("${
|
|
10
|
-
@import url("${
|
|
11
|
-
@import url("${
|
|
12
|
-
@import url("${
|
|
13
|
-
`,
|
|
14
|
-
@import url("${
|
|
15
|
-
@import url("${
|
|
16
|
-
@import url("${
|
|
17
|
-
@import url("${
|
|
18
|
-
@import url("${
|
|
19
|
-
@import url("${
|
|
20
|
-
`,portrait:_};return Object.hasOwn(f,c)?f[c]:""},"layout");gt.setProcessor(t);let n=O((i,c,l,..._)=>{let d=[..._].map(function(p){return{[p.split("=")[0]]:p.split("=")[1]}}).reduce(function(p,m){return Object.assign(p,m)}),f=[...Object.keys(d)].map(function(p){return`${p}=${d[p]}`}).join(" ");return`<component name="${c}" componentClass="${l}" ${f}></component>`},"component");gt.setProcessor(n);let o=O((i,c,l,..._)=>{let d=[..._].map(function(p){return{[p.split("=")[0]]:p.split("=")[1]}}).reduce(function(p,m){return Object.assign(p,m)}),f=[...Object.keys(d)].map(function(p){return`${p}=${d[p]}`}).join(" ");return`<quick-component name="${c}" componentClass="${l}" ${f}></quick-component>`},"quick_component");gt.setProcessor(o);let s=O((i,c,l)=>Jo(c).map(function(_){return l.replace("{{index}}",_.toString())}).join(""),"repeat");gt.setProcessor(s)})(J)},"setDefaultProcessors")}}),vi,Co,Ss=$({"src/findPackageNodePath.ts"(){"use strict";ze(),It(),ee(),pe(),vi=as(nt("node:fs")),Co=O(function(e){let a=null;if(!k)try{let t=[`${H.get("projectPath")}${H.get("relativeImportPath")}`,`${H.get("basePath")}${H.get("relativeImportPath")}`,`${H.get("projectPath")}`,`${H.get("basePath")}`,`${H.get("relativeImportPath")}`,`${process.cwd()}${H.get("relativeImportPath")}`,`${process.cwd()}/node_modules/`+e,`${process.cwd()}/node_modules`,`${process.cwd()}`,"node_modules","./",""].concat(Yt.paths);t=t.filter(n=>vi.default.existsSync(n+"/"+e)),t.length>0?(a=t[0],C.info(e+" is Installed.")):(a="",C.info(`${e} is not in a standard path.`))}catch(t){console.log(t)}return a},"findPackageNodePath"),Q(Co)}}),zo,Ns=$({"src/Import.ts"(){"use strict";Mt(),ze(),ct(),at(),Ss(),ee(),pe(),mt(),zo=O(function(e,a,t){t!==void 0&&C.debug(`[Import] Setting external=${t.toString()} resource to import: ${e}`),t?C.debug(`[Import] Registering external resource to import: ${e}`):C.debug(`[Import] Registering local resource to import: ${e}`);let n;return k?(n=new Promise(function(o,s){let i=O(function(){let l=!1,_=0;for(let d in Te)_++;return _<Go.length?l=!1:l=!0,l},"allPackagesImported"),c=O(function(l){Go.push(a),i()&&Go.map(_=>Kt.push(_)),k&&H.get("removePackageScriptAfterLoading")&&l.target.remove(),o.call(n,{_imported_:l.target,_package_name_:e})},"readyImported");if(!Object.hasOwn(Te,e)){let l=De("script");l.type=H.get("sourceType","text/javascript"),l.async=!!H.get("asynchronousImportsLoad"),l.onreadystatechange=function(){l.readyState==="complete"&&c(l)},l.onload=c,l.onerror=function(_){C.debug(`An error ocurred: ${_}.`),s.call(n,{_imported_:l,_package_name_:e})},l.src=t?H.get("remoteImportsPath")+e+".js":st+H.get("relativeImportPath")+e+".js",document.getElementsByTagName("head")[0].appendChild(l)}}),n.catch(function(){C.debug("Import: Error loading a package ")})):n=new Promise(function(o,s){try{let i=Co(e),c="";if(i!==null)c=i+"/"+e;else{let l=Co(e+".js");l!==null?c=l+"/"+e+".js":c=st+H.get("relativeImportPath")+e}try{o.call(n,{_imported_:Pt(`${c}`),_package_name_:e})}catch(l){s.call(n,{_imported_:null,_package_name_:e,error:l})}}catch(i){s.call(n,{_imported_:null,_package_name_:e,error:i})}}).catch(function(o){C.debug("Something happened when importing "+e),console.warn(o)}),n.catch(function(o){C.warn(Z(o))}),n},"Import"),zo.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),Ne,Ps=$({"src/mathFunctions.ts"(){"use strict";Ne=O(function(e){return isNaN(e)?new Number(0):new Number(e)},"__to_number")}}),As,$i=$({"src/NamespaceRef.ts"(){"use strict";or(),ge(),As=O(function(e){let t=(re(e)||[]).filter(n=>nr(n)).map(n=>({[n.__definition.__classType]:n})).reduce((n,o)=>Object.assign(n,o));return e.split(".").map(n=>({[n]:t})).reverse().reduce((n,o)=>(o[Object.keys(o).join(".")]=n,o))},"NamespaceRef")}}),Vt,Ts,Uo,xi=$({"src/Ready.ts"(){"use strict";ze(),pe(),mt(),Re(),Vt=O(e=>{k?Kt.push(e.bind(window)):typeof global<"u"&&Kt.push(e.bind(global))},"Ready"),Ts=Vt,Uo=O(e=>{let a=O(()=>{Kt.map(function(t,n){typeof t=="function"&&(t(),Kt.splice(n,1))})},"_execReady");H.get("delayForReady")>0?k?setTimeout(a.bind(window),H.get("delayForReady")):typeof global<"u"&&setTimeout(a.bind(global),H.get("delayForReady")):a.call(J)},"_Ready")}}),Or,Gi,Bi=$({"src/ArrayCollection.ts"(){"use strict";var e,a;Je(),ee(),Lt(),Ps(),Or=(e=class extends Array{constructor(){super(...arguments);r(this,"prototype")}unique(){return this.filter(function(o,s,i){return i.indexOf(o)===s})}table(){console.table(this)}sum(){return this.reduce((o,s)=>Ne(o)+Ne(s),0)}avg(){return this.length<1?0:this.reduce((o,s)=>(Ne(o)+Ne(s))/2)}min(){return this.reduce((o,s)=>Ne(o)<=Ne(s)?o:s,1/0)}max(){return this.reduce((o,s)=>Ne(o)>=Ne(s)?o:s,0)}sortBy(o,s){let i=s?function(c,l){return l[o]<c[o]?1:-1}:function(c,l){return l[o]>c[o]?1:-1};return this.sort(i)}matrix(o,s){return Array.from({length:o},O(()=>s,"x_func"))}matrix2d(o,s){let i=O(function(){return s},"y_func");return Array.from({length:o},O(function(){return Array.from({length:o},i)},"x_func"))}matrix3d(o,s){let i=O(function(){return Array.from({length:o},function(){return s})},"y_func");return Array.from({length:o},O(function(){return Array.from({length:o},i)},"x_func"))}},h(e,"ArrayList"),O(e,"ArrayList"),e),Gi=(a=class{constructor(){r(this,"source",Ie(Or,[]))}changed(n,o){C.debug("VALUE CHANGED"),C.debug(n),C.debug(o)}push(n){let o=this;return C.debug("VALUE ADDED"),C.debug(n),o.source.push(n)}pop(){let n=this;return C.debug("VALUE POPPED"),n.source.pop()}_new_(n){let o=this,s=0;o.source=Ie(le("ArrayList"),n);for(let i in o.source)isNaN(i)||(C.debug("binding "+i.toString()),(function(c){Object.defineProperty(o,c,{set(l){C.debug("setting "+c+"="+l),o.source[c]=l,o.changed(c,l)},get(){return o.source[c]}})})(i),s++);o.source.length=s,Object.defineProperty(o,"length",{get(){return o.source.length}})}},h(a,"ArrayCollection"),O(a,"ArrayCollection"),a)}}),br,Er,Hi=$({"src/Tag.ts"(){"use strict";var e;Je(),Lt(),ge(),pe(),Bi(),br=(e=class extends Or{show(){this.map(function(t){return t.style.opacity=1})}hide(){this.map(function(t){return t.style.opacity=0})}effect(...t){let n=[...t].slice(1),o=t[0],s;(typeof o).toLowerCase()==="string"&&(s=le(o)),this.map(function(i){return s.apply.apply(s,[i].concat(n))})}findElements(t){let n=Ie(le("TagElements"));if(k)for(let o in this)typeof o=="number"&&typeof this[o]!="function"&&Object.hasOwn(this[o],"subelements")&&n.push(this[o].subelements(t));return n}},h(e,"TagElements"),O(e,"TagElements"),e),Er=O(function(a,t){let n=Ie(br);if(k){let o=document.subelements(a),s=[];for(let i=0;i<o.length;i++)typeof t<"u"&&Object.hasOwn(o[i],"innerHTML")&&(o[i].innerHTML=t),s.indexOf(i)<0&&(n.push(o[i]),s.push(i))}return n},"Tag"),re("com.qcobjects",[br,Er])}}),Is,Ui=$({"src/shortCode.ts"(){"use strict";Ir(),Is=O(()=>{let a=ot.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...ot.encrypt((Math.random()*1e3).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString())].map((o,s)=>[...a][s]===o?null:o).filter(o=>o!==null).join("")},"shortCode")}}),Sr,Wi=$({"src/super.ts"(){"use strict";Je(),Sr=O(function(e,a){return le(e)[a]},"_super_"),Sr.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),js,Qi=$({"src/waitUntil.ts"(){"use strict";ee(),js=O((e,a)=>{let t=O((n,o)=>{let i=0;var c=setInterval(function(){o()?(clearInterval(c),n(),C.debug("Ejecuting "+n.name+" after wait")):i<2e3?(i+=1,C.debug("WAIT UNTIL "+n.name+" is true, "+i.toString()+" cycles")):(C.debug("Max execution time for "+n.name+" expression until true"),clearInterval(c))},1)},"_waitUntil");setTimeout(function(){t(e,a)},1)},"waitUntil")}}),fo,Ki=$({"src/subelements.ts"(){"use strict";fo=O(h(function(a){return[...this.querySelectorAll(a)]},"subelements2"),"subelements")}}),Oi,Vi,nl=$({"src/loadSDK.ts"(){"use strict";ze(),Ss(),Ns(),ee(),pe(),Oi=O(()=>{H.get("useSDK")&&(function(){let e=H.get("remoteImportsPath"),a=!H.get("useLocalSDK");H.set("remoteImportsPath",H.get("remoteSDKPath"));let t=!1,n="QCObjects-SDK";if(k)t=!0;else{let o=Co("qcobjects-sdk");o!==null?(n="qcobjects-sdk",t=!0):o!==""?(n="node_modules/qcobjects-sdk/QCObjects-SDK",t=!0):t=!1}t?(C.info("Importing SDK... "+n),cs&&typeof nt<"u"?Pt("qcobjects-sdk")?C.debug("QCObjects SDK was loaded OK."):C.debug("QCObjects SDK could not be imported."):zo(n,function(){a?C.debug("QCObjects-SDK.js loaded from remote location"):C.debug("QCObjects-SDK.js loaded from local"),H.set("remoteImportsPath",e)},a)?.catch(o=>{throw new Error(`An error ocurred when trying to import: ${o}`)})):C.debug("SDK has not been imported as it is not available at the moment")})()},"loadSDK"),Vi=Oi}}),ol=zc({"src/MainProcess.ts"(){"use strict";Re(),jr(),qi(),bt(),Tr(),Je(),ms(),Rr(),_s(),ze(),ct(),Fi(),It(),Ns(),jt(),or(),ee(),Ps(),$i(),Lt(),er(),ge(),pe(),xi(),Lr(),Hi(),Eo(),rr(),it(),Ui(),at(),Mr(),Wi(),Qi(),Ki(),bs(),nl(),Os(),O(h(function e(a){if(typeof Object.defineProperty<"u"&&typeof a<"u")try{Object.defineProperty(a,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:e})}catch(t){C.debug(`An error ocurred: ${t}`),typeof a.__qcobjects__<"u"&&(a.__qcobjects__.loaded=!0)}typeof a.__qcobjects__.loaded>"u"&&(a.__qcobjects__.loaded=!0,k&&(Element.prototype.subelements=fo,Document.prototype.subelements=fo,HTMLElement.prototype.subelements=fo,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=fo)),C.debugEnabled=!1,C.infoEnabled=!0,k&&(Element.prototype.find=function(t){let n=this,o=[],s=document.subelements(t);return s.map((i,c)=>(typeof s[c]<"u"&&s[c].parentNode.tagName===n.parentNode.tagName&&o.push(_t(i,new Object)),i)),o}),k&&(Element.prototype.append=O(h(function(n){fn(n)||typeof n.body<"u"?this.appendChild(n.body):this.appendChild(n)},"QC_Append"),"QC_Append"),Element.prototype.render=O(h(function(n){let o=this,s=O((i,c)=>{if(typeof document.implementation.createHTMLDocument<"u"){let l=document.implementation.createHTMLDocument("");l.body.innerHTML=c,l.body.subelements("*").map(_=>i.append(_))}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=n}catch(i){C.debug(`An error ocurred: ${i}`),s(o,n)}else s(o,n)},"QC_Render"),"QC_Render")),Q(js),Q(Sr),Q(bo),Q(le),Q(De),Q(Is),Q($e),Q(ht),re("com.qcobjects",[go]),k&&(Element.prototype.Cast=O(h(function(n){return _t(this,n)},"QC_Cast"),"QC_Cast")),k?(window.onload=Uo,Pr&&document.addEventListener("deviceready",Uo,vs)):global.onload=Uo,k&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),zt.route().catch(n=>{throw new Error(`An error ocurred when trying to load initial routes. ${n}`)})}),Q(ir),Q(Qo),Q(Ko),Q(vo),Q(Z),Q(nr),Q(fn),Q(As),Array.prototype.unique=function(){return this.filter(function(t,n,o){return o.indexOf(t)===n})},Array.unique=function(t){return t.unique()},oe(Array.unique),oe(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(t){t.table()},oe(Array.table),oe(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(t,n){return Ne(t)+Ne(n)},0)},Array.sum=function(t){return t.sum()},oe(Array.sum),oe(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(t,n){return(Ne(t)+Ne(n))/2})},Array.avg=function(t){return t.avg()},oe(Array.avg),oe(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(t,n){return Ne(t)<=Ne(n)?t:n},1/0)},Array.min=function(t){return t.min()},oe(Array.min),oe(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(t,n){return Ne(t)>=Ne(n)?t:n},0)},Array.max=function(t){return t.max()},oe(Array.max),oe(Array.prototype.max),Array.prototype.sortBy=function(t,n=!0){let o=n?function(s,i){return i[t]<s[t]?1:-1}:function(s,i){return i[t]>s[t]?1:-1};return this.sort(o)},Array.sortBy=function(t,n,o=!0){return t.sortBy(n,o)},oe(Array.sortBy),oe(Array.prototype.sortBy),Array.prototype.matrix=function(t,n=0){return Array.from({length:t},O(function(s=void 0){return n},"x_func"))},Array.matrix=function(t,n,o=0){return t.matrix(n,o)},oe(Array.matrix),oe(Array.prototype.matrix),Array.prototype.matrix2d=function(t,n=0){let o=O(function(i){return n},"y_func");return Array.from({length:t},O(function(i){return Array.from({length:t},o)},"x_func"))},Array.matrix2d=function(t,n,o=0){return t.matrix2d(n,o)},oe(Array.matrix2d),oe(Array.prototype.matrix2d),Array.prototype.matrix3d=function(t,n=0){let o=O(function(i){return Array.from({length:t},function(){return n})},"y_func");return Array.from({length:t},O(function(i){return Array.from({length:t},o)},"x_func"))},Array.matrix3d=function(t,n,o=0){return t.matrix3d(n,o)},oe(Array.matrix3d),oe(Array.prototype.matrix3d),String.prototype.list=function(){let t=this;return Jo(0,t.length-1).map(function(n){return t[n]})},oe(String.prototype.list),Es(),Vt(function(){H.get("useSDK")||yo.__start__().catch(t=>{throw Error(t)})}),Q(Q),Q(zo),Q(re),Q(Jt),Q(Ie),Q(Er),Q(Vt),Q(Ts),Q(k),Q(rt),Q(yo),Vi(),k&&mo(function(){Vt(function(){(function(t){let n=!1,o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),s=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function i(c){let l=Math.round(t.scrollY*100/o),_=Math.round(t.scrollX*100/s),d=new CustomEvent("scrollpercent",{detail:{percentX:_,percentY:l}});c.target.dispatchEvent(d);let f="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(m){return m===l}).map(function(m){f="percentY"+l.toString();let u=new CustomEvent(f,{detail:{percentX:_,percentY:l}});return c.target.dispatchEvent(u),m})}h(i,"scrollDispatcher"),O(i,"scrollDispatcher"),document.addEventListener("scroll",function(c){n||(requestAnimationFrame(function(){i(c),n=!1}),n=!0)})})(a)})},[]),k||(typeof a.global<"u"&&Object.hasOwn(a.global,"_fireAsyncLoad")&&gs.call(a),typeof a.global<"u"&&Object.hasOwn(a.global,"onload")&&a.global.onload.call(a)),(function(t){let n=O(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");t&&H.get("secureObjects",!1)?Vt(function(){n()}):H.get("secureObjects",!1)&&n()})(k))},"__qcobjects__"),"__qcobjects__")(J)}}),Ji={};Ei(Ji,{ArrayCollection:h(()=>Gi,"ArrayCollection"),ArrayList:h(()=>Or,"ArrayList"),AssignPolyfill:h(()=>rl,"AssignPolyfill"),BackendMicroservice:h(()=>zi,"BackendMicroservice"),CONFIG:h(()=>H,"CONFIG"),Class:h(()=>Jt,"Class"),ClassFactory:h(()=>le,"ClassFactory"),ComplexStorageCache:h(()=>bo,"ComplexStorageCache"),Component:h(()=>zt,"Component"),ComponentURI:h(()=>Ko,"ComponentURI"),ConfigService:h(()=>wr,"ConfigService"),Controller:h(()=>ea,"Controller"),DDO:h(()=>sa,"DDO"),DefaultTemplateHandler:h(()=>Yi,"DefaultTemplateHandler"),Effect:h(()=>Ds,"Effect"),Export:h(()=>Q,"Export"),GlobalSettings:h(()=>yo,"GlobalSettings"),Import:h(()=>zo,"Import"),InheritClass:h(()=>me,"InheritClass"),JSONService:h(()=>mr,"JSONService"),Logger:h(()=>yr,"Logger"),NamespaceRef:h(()=>As,"NamespaceRef"),New:h(()=>Ie,"New"),ObjectName:h(()=>vo,"ObjectName"),Package:h(()=>re,"Package"),Processor:h(()=>go,"Processor"),Ready:h(()=>Vt,"Ready"),RegisterClass:h(()=>Ms,"RegisterClass"),RegisterWidget:h(()=>kr,"RegisterWidget"),RegisterWidgets:h(()=>Ls,"RegisterWidgets"),Service:h(()=>_r,"Service"),SourceCSS:h(()=>Zi,"SourceCSS"),SourceJS:h(()=>Xi,"SourceJS"),Tag:h(()=>Er,"Tag"),TagElements:h(()=>br,"TagElements"),Timer:h(()=>ra,"Timer"),Toggle:h(()=>ia,"Toggle"),TransitionEffect:h(()=>oa,"TransitionEffect"),VO:h(()=>na,"VO"),View:h(()=>ta,"View"),_Cast:h(()=>_t,"_Cast"),_CastProps:h(()=>Tt,"_CastProps"),_ComponentWidget_:h(()=>Yo,"_ComponentWidget_"),_Crypt:h(()=>ot,"_Crypt"),_DOMCreateElement:h(()=>De,"_DOMCreateElement"),_DataStringify:h(()=>Z,"_DataStringify"),_LegacyCopy:h(()=>Ar,"_LegacyCopy"),_QC_CLASSES:h(()=>Ae,"_QC_CLASSES"),_QC_PACKAGES:h(()=>Te,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:h(()=>Go,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:h(()=>Kt,"_QC_READY_LISTENERS"),_Ready:h(()=>Uo,"_Ready"),__getType__:h(()=>$e,"__getType__"),__instanceID:h(()=>Nt,"__instanceID"),__is_raw_class__:h(()=>wo,"__is_raw_class__"),__make_global__:h(()=>tr,"__make_global__"),__to_number:h(()=>Ne,"__to_number"),__top__:h(()=>ki,"__top__"),_buildComponentsFromElements_:h(()=>Cr,"_buildComponentsFromElements_"),_fireAsyncLoad:h(()=>gs,"_fireAsyncLoad"),_methods_:h(()=>rt,"_methods_"),_protected_code_:h(()=>oe,"_protected_code_"),_require_:h(()=>Pt,"_require_"),_super_:h(()=>Sr,"_super_"),_tag_filter_:h(()=>Dr,"_tag_filter_"),_top:h(()=>J,"_top"),asyncLoad:h(()=>mo,"asyncLoad"),captureFalseTouch:h(()=>vs,"captureFalseTouch"),componentLoader:h(()=>Qo,"componentLoader"),findPackageNodePath:h(()=>Co,"findPackageNodePath"),get:h(()=>ws,"get"),getDocumentLayout:h(()=>al,"getDocumentLayout"),global:h(()=>J,"global"),isBrowser:h(()=>k,"isBrowser"),isNodeCommonJS:h(()=>cs,"isNodeCommonJS"),isQCObjects_Class:h(()=>nr,"isQCObjects_Class"),isQCObjects_Object:h(()=>fn,"isQCObjects_Object"),is_a:h(()=>ht,"is_a"),is_phonegap:h(()=>Pr,"is_phonegap"),logger:h(()=>C,"logger"),qcobjects:h(()=>sl,"qcobjects"),range:h(()=>Jo,"range"),ready:h(()=>Ts,"ready"),resetTop:h(()=>vr,"resetTop"),serviceLoader:h(()=>ir,"serviceLoader"),set:h(()=>ho,"set"),setDefaultProcessors:h(()=>Es,"setDefaultProcessors"),shortCode:h(()=>Is,"shortCode"),subelements:h(()=>fo,"subelements"),waitUntil:h(()=>js,"waitUntil")});Yt.exports=Yc(Ji);var rl={};typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:O(h(function(a,t){"use strict";if(a===null)throw new TypeError("Cannot convert undefined or null to object");let n=Object(a);for(let o=1;o<arguments.length;o++){let s=arguments[o];if(s!==null)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])}return n},"assign"),"assign"),writable:!0,configurable:!0});Re();var sl=as(ol());Re();mt();ct();at();jt();ee();pe();Ki();Zo();us();jr();ds();er();it();rr();Mr();Qi();bt();or();ge();Je();It();Tr();Ee();Wi();Ui();Eo();Lt();xi();qi();Lr();_s();Rr();$i();Fi();Hi();Ns();Mt();ct();sr();Ee();ee();ge();var Xt,zi=(Xt=class extends me{constructor({domain:t=Oo,basePath:n=st,body:o=null,stream:s=null,request:i=null}){super({domain:t,basePath:n,body:o,stream:s,request:i});r(this,"stream");r(this,"route");r(this,"headers");r(this,"request");C.debug("Initializing BackendMicroservice...");let c=this;typeof this.body>"u"&&(this.body=null),typeof o<"u"&&(this.body=o),this.cors(),c.stream=s,s?.on("data",d=>{let f=i?.method.toLowerCase(),p={post:c.post.bind(c)};Object.hasOwn(p,f)&&p[f].call(c,d)});let l=i?.method.toLowerCase(),_={get:c.get.bind(c),head:c.head.bind(c),put:c.put.bind(c),delete:c.delete.bind(c),connect:c.connect.bind(c),options:c.options.bind(c),trace:c.trace.bind(c),patch:c.patch.bind(c)};Object.hasOwn(_,l)&&_[l].call(c)}cors(){if(this.route.cors){C.debug("Validating CORS...");let{allow_origins:t,allow_credentials:n,allow_methods:o,allow_headers:s}=this.route.cors,i=this;if(typeof i.headers!="object"&&(i.headers={}),typeof i.route.responseHeaders!="object"&&(i.route.responseHeaders={}),typeof t<"u")if(C.debug("CORS: allow_origins available. Validating origins..."),t==="*"||typeof i.request.headers.origin>"u"||[...t].indexOf(i.request.headers.origin)!==-1)C.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{C.debug("CORS: Origin is not allowed: "+i.request.headers.origin),C.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(c){C.debug(`It was not possible to finish the call to the microservice: ${c}`)}}else C.debug("CORS: no allow_origins available. Allowing all origins..."),C.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof n<"u"?(C.debug(`CORS: allow_credentials present. Allowing ${n}...`),i.route.responseHeaders["Access-Control-Allow-Credentials"]=n.toString()):(C.debug("CORS: No allow_credentials present. Allowing all credentials."),i.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof o<"u"?(C.debug(`CORS: allow_methods present. Allowing ${o}...`),i.route.responseHeaders["Access-Control-Allow-Methods"]=[...o].join(",")):(C.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),i.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof s<"u"?(C.debug(`CORS: allow_headers present. Allowing ${s}...`),i.route.responseHeaders["Access-Control-Allow-Headers"]=[...s].join(",")):(C.debug("CORS: No allow_headers present. Allowing all headers..."),i.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else C.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(t){C.debug(`[BackendMicroservice.head] Data received: ${Z(t)}`),this.done()}get(t){C.debug(`[BackendMicroservice.get] Data received: ${Z(t)}`),this.done()}post(t){C.debug(`[BackendMicroservice.post] Data received: ${Z(t)}`),this.done()}put(t){C.debug(`[BackendMicroservice.put] Data received: ${Z(t)}`),this.done()}delete(t){C.debug(`[BackendMicroservice.delete] Data received: ${Z(t)}`),this.done()}connect(t){C.debug(`[BackendMicroservice.connect] Data received: ${Z(t)}`),this.done()}options(t){C.debug(`[BackendMicroservice.options] Data received: ${Z(t)}`),this.done()}trace(t){C.debug(`[BackendMicroservice.trace] Data received: ${Z(t)}`),this.done()}patch(t){C.debug(`[BackendMicroservice.patch] Data received: ${Z(t)}`),this.done()}finishWithBody(t){try{C.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),C.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=Z(this.body)),C.debug(`[BackendMicroservice.finishWithBody]
|
|
21
|
-
body: ${this.body} `),t?.write(this.body),t?.end(),C.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(n){C.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${n}`)}}done(){C.debug("[BackendMicroservice.done] Finalizing the response...");let t=this,n=t.stream;try{if(C.debug("[BackendMicroservice.done] Sending response headers..."),t.route.responseHeaders)C.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(t.route.responseHeaders).join(",")}`),n.respond(t.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(o){C.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${o}`)}if(t.body!==null)try{C.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),t.finishWithBody.call(t,n)}catch(o){C.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${o}`)}else C.debug("[BackendMicroservice.done] No body present. Ending stream..."),n.end()}},h(Xt,"BackendMicroservice"),O(Xt,"BackendMicroservice"),Xt);re("com.qcobjects.api",[zi]);ms();Ir();ee();Eo();Nr();mt();var Ms=O(function(e,a){return Bo(e,a)},"RegisterClass");tr(Ms);var At,Yi=(At=class{constructor({component:a,template:t}){r(this,"template","");r(this,"__definition",{});r(this,"component");this.component=a,this.template=t}assign(a){let t=this;if(typeof t.component>"u")throw new Error("DefaultTemplateHandler.assign: component is undefined");if(typeof t.component.processorHandler>"u")throw new Error("DefaultTemplateHandler.assign: component.processorHandler is undefined");let n=t.component.processorHandler;n.component=t.component;let o=typeof t.template<"u"?t.template:"";typeof a=="object"?[...Object.keys(a)].map(s=>{let i=a[s];if(typeof i=="string"||typeof i=="number"||!isNaN(i))try{i=gt.processObject.bind(n).call(n,i,t.component),o=o.replace(new RegExp(`{{${s}}}`,"g"),i)}catch(c){throw C.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${c.message}`)}return s}):C.debug(`${t.component?.name}.data is not an object`);try{o=gt.processObject.call(n,o,t.component)}catch(s){throw C.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${s.message}`)}return o}},h(At,"DefaultTemplateHandler"),O(At,"DefaultTemplateHandler"),r(At,"__definition",{}),At);Ms(Yi,"com.qcobjects");Mt();bt();sr();at();Ee();ge();ee();var Zt,Xi=(Zt=class extends me{constructor(t){super(t);r(this,"domain",Oo);r(this,"basePath",st);r(this,"type","text/javascript");r(this,"containerTag","body");r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);r(this,"status",!1);this.body=De("script")}set(t,n){this[t]=n}get(t,n){return this[t]||n}done(){}fail(){}rebuild(){let t=this;try{document.getElementsByTagName(t.containerTag)[0].appendChild(function(n,o,s){return n.type=s.type,n.src=o,n.crossOrigin=Object.hasOwn(s,"crossOrigin")?s.crossOrigin:"anonymous",n.async=s.async,n.onreadystatechange=function(){this.readyState==="complete"&&s.done.call(s)},n.onload=function(i){s.status=!0,s.done.call(s,i)},n.onerror=function(i){s.status=!1,s.fail.call(s,i)},s.body=n,n}.call(this,De("script"),this.external?this.url:this.basePath+this.url,t))}catch(n){t.status=!1,C.debug(`An error ocurred: ${n}`),t.fail()}}Cast(t){return _t(this,t)}_new_(t){this.__new__(t),this.rebuild()}},h(Zt,"SourceJS"),O(Zt,"SourceJS"),Zt);re("com.qcobjects",[Xi]);Mt();bt();sr();at();Ee();pe();ge();var en,Zi=(en=class extends me{constructor(t){super(t);r(this,"domain",Oo);r(this,"basePath",st);r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);this.body=De("link")}fail(){throw new Error("Method not implemented.")}Cast(t){return _t(this,t)}set(t,n){this[t]=n}get(t,n){return this[t]||n}done(){}rebuild(){let t=this;k&&window.document.getElementsByTagName("head")[0].appendChild(function(n,o,s){return n.type="text/css",n.rel="stylesheet",n.href=o,n.crossOrigin="anonymous",n.onreadystatechange=function(){this.readyState==="complete"&&s.done.call(s)},n.onload=s.done,s.body=n,n}.call(this,De("link"),this.external?this.url:this.basePath+this.url,t))}},h(en,"SourceCSS"),O(en,"SourceCSS"),en);re("com.qcobjects",[Zi]);bs();at();It();jt();pe();var tn,il=(tn=class{constructor(){r(this,"writingSuggestions");r(this,"currentCSSZoom");r(this,"ariaColIndexText");r(this,"ariaRowIndexText");r(this,"accessKey");r(this,"accessKeyLabel");r(this,"autocapitalize");r(this,"dir");r(this,"draggable");r(this,"hidden");r(this,"inert");r(this,"innerText");r(this,"lang");r(this,"offsetHeight");r(this,"offsetLeft");r(this,"offsetParent");r(this,"offsetTop");r(this,"offsetWidth");r(this,"outerText");r(this,"popover");r(this,"spellcheck");r(this,"title");r(this,"translate");r(this,"attributes");r(this,"classList");r(this,"className");r(this,"clientHeight");r(this,"clientLeft");r(this,"clientTop");r(this,"clientWidth");r(this,"id");r(this,"innerHTML");r(this,"localName");r(this,"namespaceURI");r(this,"onfullscreenchange");r(this,"onfullscreenerror");r(this,"outerHTML");r(this,"ownerDocument");r(this,"part");r(this,"prefix");r(this,"scrollHeight");r(this,"scrollLeft");r(this,"scrollTop");r(this,"scrollWidth");r(this,"shadowRoot");r(this,"slot");r(this,"tagName");r(this,"baseURI");r(this,"childNodes");r(this,"firstChild");r(this,"isConnected");r(this,"lastChild");r(this,"nextSibling");r(this,"nodeName");r(this,"nodeType");r(this,"nodeValue");r(this,"parentElement");r(this,"parentNode");r(this,"previousSibling");r(this,"textContent");r(this,"ELEMENT_NODE");r(this,"ATTRIBUTE_NODE");r(this,"TEXT_NODE");r(this,"CDATA_SECTION_NODE");r(this,"ENTITY_REFERENCE_NODE");r(this,"ENTITY_NODE");r(this,"PROCESSING_INSTRUCTION_NODE");r(this,"COMMENT_NODE");r(this,"DOCUMENT_NODE");r(this,"DOCUMENT_TYPE_NODE");r(this,"DOCUMENT_FRAGMENT_NODE");r(this,"NOTATION_NODE");r(this,"DOCUMENT_POSITION_DISCONNECTED");r(this,"DOCUMENT_POSITION_PRECEDING");r(this,"DOCUMENT_POSITION_FOLLOWING");r(this,"DOCUMENT_POSITION_CONTAINS");r(this,"DOCUMENT_POSITION_CONTAINED_BY");r(this,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC");r(this,"ariaAtomic");r(this,"ariaAutoComplete");r(this,"ariaBrailleLabel");r(this,"ariaBrailleRoleDescription");r(this,"ariaBusy");r(this,"ariaChecked");r(this,"ariaColCount");r(this,"ariaColIndex");r(this,"ariaColSpan");r(this,"ariaCurrent");r(this,"ariaDescription");r(this,"ariaDisabled");r(this,"ariaExpanded");r(this,"ariaHasPopup");r(this,"ariaHidden");r(this,"ariaInvalid");r(this,"ariaKeyShortcuts");r(this,"ariaLabel");r(this,"ariaLevel");r(this,"ariaLive");r(this,"ariaModal");r(this,"ariaMultiLine");r(this,"ariaMultiSelectable");r(this,"ariaOrientation");r(this,"ariaPlaceholder");r(this,"ariaPosInSet");r(this,"ariaPressed");r(this,"ariaReadOnly");r(this,"ariaRequired");r(this,"ariaRoleDescription");r(this,"ariaRowCount");r(this,"ariaRowIndex");r(this,"ariaRowSpan");r(this,"ariaSelected");r(this,"ariaSetSize");r(this,"ariaSort");r(this,"ariaValueMax");r(this,"ariaValueMin");r(this,"ariaValueNow");r(this,"ariaValueText");r(this,"role");r(this,"nextElementSibling");r(this,"previousElementSibling");r(this,"childElementCount");r(this,"children");r(this,"firstElementChild");r(this,"lastElementChild");r(this,"assignedSlot");r(this,"attributeStyleMap");r(this,"style");r(this,"contentEditable");r(this,"enterKeyHint");r(this,"inputMode");r(this,"isContentEditable");r(this,"onabort");r(this,"onanimationcancel");r(this,"onanimationend");r(this,"onanimationiteration");r(this,"onanimationstart");r(this,"onauxclick");r(this,"onbeforeinput");r(this,"onbeforetoggle");r(this,"onblur");r(this,"oncancel");r(this,"oncanplay");r(this,"oncanplaythrough");r(this,"onchange");r(this,"onclick");r(this,"onclose");r(this,"oncontextlost");r(this,"oncontextmenu");r(this,"oncontextrestored");r(this,"oncopy");r(this,"oncuechange");r(this,"oncut");r(this,"ondblclick");r(this,"ondrag");r(this,"ondragend");r(this,"ondragenter");r(this,"ondragleave");r(this,"ondragover");r(this,"ondragstart");r(this,"ondrop");r(this,"ondurationchange");r(this,"onemptied");r(this,"onended");r(this,"onerror");r(this,"onfocus");r(this,"onformdata");r(this,"ongotpointercapture");r(this,"oninput");r(this,"oninvalid");r(this,"onkeydown");r(this,"onkeypress");r(this,"onkeyup");r(this,"onload");r(this,"onloadeddata");r(this,"onloadedmetadata");r(this,"onloadstart");r(this,"onlostpointercapture");r(this,"onmousedown");r(this,"onmouseenter");r(this,"onmouseleave");r(this,"onmousemove");r(this,"onmouseout");r(this,"onmouseover");r(this,"onmouseup");r(this,"onpaste");r(this,"onpause");r(this,"onplay");r(this,"onplaying");r(this,"onpointercancel");r(this,"onpointerdown");r(this,"onpointerenter");r(this,"onpointerleave");r(this,"onpointermove");r(this,"onpointerout");r(this,"onpointerover");r(this,"onpointerup");r(this,"onprogress");r(this,"onratechange");r(this,"onreset");r(this,"onresize");r(this,"onscroll");r(this,"onscrollend");r(this,"onsecuritypolicyviolation");r(this,"onseeked");r(this,"onseeking");r(this,"onselect");r(this,"onselectionchange");r(this,"onselectstart");r(this,"onslotchange");r(this,"onstalled");r(this,"onsubmit");r(this,"onsuspend");r(this,"ontimeupdate");r(this,"ontoggle");r(this,"ontouchcancel");r(this,"ontouchend");r(this,"ontouchmove");r(this,"ontouchstart");r(this,"ontransitioncancel");r(this,"ontransitionend");r(this,"ontransitionrun");r(this,"ontransitionstart");r(this,"onvolumechange");r(this,"onwaiting");r(this,"onwebkitanimationend");r(this,"onwebkitanimationiteration");r(this,"onwebkitanimationstart");r(this,"onwebkittransitionend");r(this,"onwheel");r(this,"autofocus");r(this,"dataset");r(this,"nonce");r(this,"tabIndex")}attachInternals(){throw new Error("Method not implemented.")}click(){throw new Error("Method not implemented.")}hidePopover(){throw new Error("Method not implemented.")}showPopover(){throw new Error("Method not implemented.")}togglePopover(a){throw new Error("Method not implemented.")}addEventListener(a,t,n){throw new Error("Method not implemented.")}removeEventListener(a,t,n){throw new Error("Method not implemented.")}attachShadow(a){throw new Error("Method not implemented.")}checkVisibility(a){throw new Error("Method not implemented.")}closest(a){throw new Error("Method not implemented.")}computedStyleMap(){throw new Error("Method not implemented.")}getAttribute(a){throw new Error("Method not implemented.")}getAttributeNS(a,t){throw new Error("Method not implemented.")}getAttributeNames(){throw new Error("Method not implemented.")}getAttributeNode(a){throw new Error("Method not implemented.")}getAttributeNodeNS(a,t){throw new Error("Method not implemented.")}getBoundingClientRect(){throw new Error("Method not implemented.")}getClientRects(){throw new Error("Method not implemented.")}getElementsByClassName(a){throw new Error("Method not implemented.")}getElementsByTagName(a){throw new Error("Method not implemented.")}getElementsByTagNameNS(a,t){throw new Error("Method not implemented.")}getHTML(a){throw new Error("Method not implemented.")}hasAttribute(a){throw new Error("Method not implemented.")}hasAttributeNS(a,t){throw new Error("Method not implemented.")}hasAttributes(){throw new Error("Method not implemented.")}hasPointerCapture(a){throw new Error("Method not implemented.")}insertAdjacentElement(a,t){throw new Error("Method not implemented.")}insertAdjacentHTML(a,t){throw new Error("Method not implemented.")}insertAdjacentText(a,t){throw new Error("Method not implemented.")}matches(a){throw new Error("Method not implemented.")}releasePointerCapture(a){throw new Error("Method not implemented.")}removeAttribute(a){throw new Error("Method not implemented.")}removeAttributeNS(a,t){throw new Error("Method not implemented.")}removeAttributeNode(a){throw new Error("Method not implemented.")}requestFullscreen(a){throw new Error("Method not implemented.")}requestPointerLock(a){throw new Error("Method not implemented.")}scroll(a,t){throw new Error("Method not implemented.")}scrollBy(a,t){throw new Error("Method not implemented.")}scrollIntoView(a){throw new Error("Method not implemented.")}scrollTo(a,t){throw new Error("Method not implemented.")}setAttribute(a,t){throw new Error("Method not implemented.")}setAttributeNS(a,t,n){throw new Error("Method not implemented.")}setAttributeNode(a){throw new Error("Method not implemented.")}setAttributeNodeNS(a){throw new Error("Method not implemented.")}setHTMLUnsafe(a){throw new Error("Method not implemented.")}setPointerCapture(a){throw new Error("Method not implemented.")}toggleAttribute(a,t){throw new Error("Method not implemented.")}webkitMatchesSelector(a){throw new Error("Method not implemented.")}appendChild(a){throw new Error("Method not implemented.")}cloneNode(a){throw new Error("Method not implemented.")}compareDocumentPosition(a){throw new Error("Method not implemented.")}contains(a){throw new Error("Method not implemented.")}getRootNode(a){throw new Error("Method not implemented.")}hasChildNodes(){throw new Error("Method not implemented.")}insertBefore(a,t){throw new Error("Method not implemented.")}isDefaultNamespace(a){throw new Error("Method not implemented.")}isEqualNode(a){throw new Error("Method not implemented.")}isSameNode(a){throw new Error("Method not implemented.")}lookupNamespaceURI(a){throw new Error("Method not implemented.")}lookupPrefix(a){throw new Error("Method not implemented.")}normalize(){throw new Error("Method not implemented.")}removeChild(a){throw new Error("Method not implemented.")}replaceChild(a,t){throw new Error("Method not implemented.")}dispatchEvent(a){throw new Error("Method not implemented.")}animate(a,t){throw new Error("Method not implemented.")}getAnimations(a){throw new Error("Method not implemented.")}after(...a){throw new Error("Method not implemented.")}before(...a){throw new Error("Method not implemented.")}remove(){throw new Error("Method not implemented.")}replaceWith(...a){throw new Error("Method not implemented.")}append(...a){throw new Error("Method not implemented.")}prepend(...a){throw new Error("Method not implemented.")}querySelector(a){throw new Error("Method not implemented.")}querySelectorAll(a){throw new Error("Method not implemented.")}replaceChildren(...a){throw new Error("Method not implemented.")}blur(){throw new Error("Method not implemented.")}focus(a){throw new Error("Method not implemented.")}},h(tn,"QCObjectsWidgetNode"),O(tn,"QCObjectsWidgetNode"),tn),Yo,nn,on;k?Yo=(nn=class extends HTMLElement{constructor(){super();let a=this,t=a.nodeName.toLowerCase(),n=De("quick-component"),o=a.getAttributeNames();n.setAttribute("name",t),a.hasAttribute("shadowed")||n.setAttribute("shadowed","true"),o.forEach(i=>{a.hasAttribute(i)&&(n.setAttribute(i,a?.getAttribute(i)),a.removeAttribute(i))}),a.getAttributeNames().filter(function(i){return i.startsWith("data-")}).map(function(i){return i.split("-")[1]}).forEach(function(i){n.setAttribute("data-"+i,a?.getAttribute("data-"+i)),a.removeAttribute("data-"+i)}),[...a.children].forEach(i=>{n.appendChild(i.cloneNode(!0)),i.remove()}),a.append(n)}},h(nn,"_ComponentWidget_"),O(nn,"_ComponentWidget_"),nn):Yo=(on=class extends il{constructor(){throw super(),new Error("Class not implemented.")}},h(on,"_ComponentWidget_"),O(on,"_ComponentWidget_"),on);Q(Yo);var kr=O(e=>{if(k)customElements.define(e,class extends Yo{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),Ls=O((...e)=>{[...e].filter(function(t){return typeof t=="string"}).map(function(t){return kr(t)})},"RegisterWidgets");oe(kr);oe(Ls);Q(kr);Q(Ls);ze();Je();it();Ee();ee();Lt();ge();pe();var rn,ea=(rn=class extends me{constructor({component:t,dependencies:n}){super({component:t,dependencies:n});r(this,"component");r(this,"dependencies",[]);if(this.component=t,this.dependencies=n,typeof this.component>"u"||this.component===null)throw Error(`${$e(this)} must be called with a component`)}fail(...t){throw new Error("Method not implemented.")}routingSelectedAttr(t){return this.component?.routingSelected.map(n=>n[t]).filter(function(n){return n}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(t,n){if(k)try{this.isTouchable()?(this.component?.componentRoot?.subelements(t))[0].addEventListener("touchstart",n,{passive:!0}):(this.component?.componentRoot?.subelements(t))[0].addEventListener("click",n,{passive:!0})}catch(o){C.debug(`An error ocurred: ${o}.`),C.debug("No button to assign press event")}}createRoutingController(){let t=this,n=t.component,o=t.routingSelectedAttr("controllerclass");if(typeof o<"u"){let s=le(o);typeof s<"u"&&n!==null&&(n.routingController=Ie(s,{component:n}),typeof n.routingController<"u"&&Object.hasOwn(n.routingController,"done")&&typeof n.routingController.done=="function"&&n.routingController.done.call(n.routingController))}}done(){}},h(rn,"Controller"),O(rn,"Controller"),rn);re("com.qcobjects.controllers",[ea]);it();Ee();ge();var sn,ta=(sn=class extends me{constructor({component:a=void 0,dependencies:t=[]}){if(super({component:a,dependencies:t}),typeof this.component>"u"||this.component==="null")throw Error(`${$e(this)} must be called with a component`)}},h(sn,"View"),O(sn,"View"),sn);re("com.qcobjects.views",[ta]);Ri();Ee();ge();var an,na=(an=class extends me{},h(an,"VO"),O(an,"VO"),an);re("com.qcobjects.valueObjects",[na]);Ee();ge();jt();Je();var cn,Ds=(cn=class extends me{constructor(){super(...arguments);r(this,"duration",1e3)}done(...t){throw new Error("Method not implemented.")}apply(...t){throw new Error("Method not implemented.")}animate({timing:t,draw:n,duration:o}){let s=this,i=performance.now();requestAnimationFrame(O(h(function c(l){let _=(l-i)/o;_>1&&(_=1);let d=t(_);n(Math.round(d*100)),_<1?requestAnimationFrame(c):typeof s<"u"&&s!==null&&Object.hasOwn(s,"done")&&(typeof s.done).toLowerCase()==="function"&&s.done.call(s)},"animate"),"animate"))}},h(cn,"Effect"),O(cn,"Effect"),cn);re("com.qcobjects.effects.base",[Ds]);rt(le("Effect")).map(e=>(oe(e),e));ee();ge();Je();var ln,oa=(ln=class extends Ds{constructor(){super(...arguments);r(this,"duration",385);r(this,"defaultParams",{alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1});r(this,"fitToHeight",!1);r(this,"fitToWidth",!1);r(this,"component");r(this,"effects")}apply({alphaFrom:t,alphaTo:n,angleFrom:o,angleTo:s,radiusFrom:i,radiusTo:c,scaleFrom:l,scaleTo:_}){let d=this;C.info("EXECUTING TransitionEffect ");let f=d.component.componentRoot;typeof f<"u"&&f!==null&&(d.fitToHeight&&(f.height=typeof f.offsetParent=="object"&&f.offsetParent!==null?f.offsetParent?.scrollHeight:f.getBoundingClientRect().height),d.fitToWidth&&(f.width=typeof f.offsetParent=="object"&&f.offsetParent!==null?f.offsetParent?.scrollWidth:f.getBoundingClientRect().width),d.component.shadowed?f.host.style.display="block":f.style.display="block",d.effects.map(p=>{let m=le(p),g=new m({}).apply.bind(d),y=d.component.shadowed?f.host:f;return g(y,...Object.values({alphaFrom:t,alphaTo:n,angleFrom:o,angleTo:s,radiusFrom:i,radiusTo:c,scaleFrom:l,scaleTo:_})),p}))}},h(ln,"TransitionEffect"),O(ln,"TransitionEffect"),ln);re("com.qcobjects.effects.transitions.base",[oa]);Ee();ge();var dn,ra=(dn=class extends me{constructor(){super(...arguments);r(this,"duration",1e3);r(this,"alive",!0)}thread({timing:t,intervalInterceptor:n,duration:o}){let s=this,i=performance.now();requestAnimationFrame(O(h(function c(l){let _=l-i,d=_/o;d>1&&(d=1);let f=t(d,_);n(Math.round(f*100)),(d<1||o===-1)&&s.alive&&requestAnimationFrame(c)},"thread"),"thread"))}},h(dn,"Timer"),O(dn,"Timer"),dn);re("com.qcobjects.timing",[ra]);hs();Os();Bi();It();Ee();ee();er();var un,sa=(un=class extends me{constructor({instance:a,name:t,fget:n,fset:o,value:s}){super({instance:a,name:t,fget:n,fset:o,value:s}),this._new_({instance:a,name:t,fget:n,fset:o,value:s})}_new_({instance:a,name:i,fget:n,fset:o}){var i=typeof i>"u"?vo(this):i;Object.defineProperty(a,i,{set(c){let l=c;C.debug("value changed "+i);let _;typeof o<"u"&&typeof o=="function"?_=o(l):_=l,a["_"+i]=_},get(){let c=a["_"+i];C.debug("returning value "+i);let l=O(d=>typeof d=="object"&&Object.hasOwn(d,"value")?d.value:d,"is_ddo"),_;return typeof n<"u"&&typeof n=="function"?_=n(l(c)):_=l(c),_}})}},h(un,"DDO"),O(un,"DDO"),un);Q(sa);Ee();ee();ge();var pn,ia=(pn=class extends me{constructor(t,n,o){super({positive:t,negative:n,args:o});r(this,"_toggle",!1);r(this,"_inverse",!0);r(this,"_positive",null);r(this,"_negative",null);r(this,"_dispatched",null);r(this,"_args",{});this._new_({positive:t,negative:n,args:o})}changeToggle(){this._toggle=!this._toggle}_new_({positive:t,negative:n,args:o}){this._positive=t,this._negative=n,this._args=o}fire(){let t=this;var n=new Promise(function(o,s){return typeof t._positive=="function"&&typeof t._negative=="function"?(t._inverse?t._dispatched=t._toggle?t._negative.bind(t):t._positive.bind(t):t._dispatched=t._toggle?t._positive.bind(t):t._negative.bind(t),t._dispatched?.call(t,t._args),o.call(n,t)):(C.debug("Toggle functions are not declared"),s.call(n,t)),t}).then(function(o){return o.changeToggle(),o}).catch(function(o){return C.debug(o.toString()),t}).finally(()=>t);return n}},h(pn,"Toggle"),O(pn,"Toggle"),pn);re("com.qcobjects.tools.essentials",[ia]);Ss();var al=O(function(){let e=O((n,o)=>n>o?"landscape":null,"h"),a=O((n,o)=>o>n?"portrait":null,"v"),t=O((n,o)=>n===o?"square":null,"square");return[e(document.documentElement.clientWidth,document.documentElement.clientHeight),a(document.documentElement.clientWidth,document.documentElement.clientHeight),t(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(n=>n!==null).pop()},"getDocumentLayout");Ps();Re();Nr();Re()});var ri=Ve((Xl,hc)=>{"use strict";var cl=Object.create,ar=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,aa=Object.getOwnPropertyNames,dl=Object.getPrototypeOf,ul=Object.prototype.hasOwnProperty,b=h((e,a)=>ar(e,"name",{value:a,configurable:!0}),"__name"),L=h((e,a)=>h(function(){return a||(0,e[aa(e)[0]])((a={exports:{}}).exports,a),a.exports},"__require"),"__commonJS"),pl=h((e,a)=>{for(var t in a)ar(e,t,{get:a[t],enumerable:!0})},"__export"),ca=h((e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of aa(a))!ul.call(e,o)&&o!==t&&ar(e,o,{get:h(()=>a[o],"get"),enumerable:!(n=ll(a,o))||n.enumerable});return e},"__copyProps"),de=h((e,a,t)=>(t=e!=null?cl(dl(e)):{},ca(a||!e||!e.__esModule?ar(t,"default",{value:e,enumerable:!0}):t,e)),"__toESM"),fl=h(e=>ca(ar({},"__esModule",{value:!0}),e),"__toCommonJS"),gl=L({"node_modules/qcobjects/build/assign.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:b(h(function(t,n){"use strict";if(t===null)throw new TypeError("Cannot convert undefined or null to object");let o=Object(t);for(let s=1;s<arguments.length;s++){let i=arguments[s];if(i!==null)for(let c in i)Object.prototype.hasOwnProperty.call(i,c)&&(o[c]=i[c])}return o},"assign"),"assign"),writable:!0,configurable:!0})}}),cr=L({"node_modules/qcobjects/build/is_raw_class.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__is_raw_class__=void 0;var a=b(t=>!!(typeof t=="function"&&t.toString().startsWith("class")),"__is_raw_class__");e.__is_raw_class__=a}}),lr=L({"node_modules/qcobjects/build/ObjectName.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ObjectName=void 0;var a=b(t=>{let n="";return typeof t=="function"&&Object.hasOwn(t,"name")&&t.name!==""?n=t.name:typeof t<"u"&&typeof t.constructor=="function"&&t.constructor.name!==""?n=t.constructor.name:typeof t<"u"&&typeof t.constructor=="object"&&(n=t.constructor.toString().replace(/\[(.*?)\]/g,"$1").split(" ").slice(1).join("")),n},"ObjectName");e.ObjectName=a}}),dt=L({"node_modules/qcobjects/build/getType.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__getType__=void 0;var a=cr(),t=lr(),n=b(h(function(s){let i="";switch(!0){case(typeof s=="object"&&!!s.constructor&&!!s.constructor.name&&s.constructor.name!==""):i=s.constructor.name;break;case(typeof s=="function"&&!!s.name):i=s.name;break;case((0,a.__is_raw_class__)(s)&&!!s.name):i=s.name;break;case(!!s&&!!s.__classType&&s.__classType!==""):i=s.__classType;break;case(!!s&&!!s.__definition&&!!s.__definition.__classType&&s.__definition.__classType!==""):i=s.__definition.__classType;break;default:i=(0,t.ObjectName)(s);break}return i},"__getType__2"),"__getType__");e.__getType__=n}}),xr=L({"node_modules/qcobjects/build/make_global.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__make_global__=void 0;var a=qe(),t=b(n=>{n&&n.name&&(typeof a._top<"u"&&typeof n<"u"&&a._top!==null&&!Object.hasOwn(a._top,n.name)?(0,a.set)(n.name,n):typeof global<"u"?global[n.name]=n:typeof globalThis<"u"&&(globalThis[n.name]=n))},"__make_global__");e.__make_global__=t}}),Ot=L({"node_modules/qcobjects/build/PrimaryCollections.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.set_QC_PACKAGE=e.getClassesNamesList=e.getClassesList=e.getPackagesList=e.getPackagesNamesList=e.get_QC_CLASS=e.__register_class__=e._QC_READY_LISTENERS=e._QC_PACKAGES_IMPORTED=e._QC_PACKAGES=e._QC_CLASSES=void 0;var a=dt(),t=xr();e._QC_CLASSES={},e._QC_PACKAGES={},e._QC_PACKAGES_IMPORTED=[],e._QC_READY_LISTENERS=[];var n=b(function(f,p){let m=(0,a.__getType__)(f),u=f.name||m;return u.toLowerCase()==="function"&&(u=m),typeof f.__definition>"u"&&(f.__definition={}),f.__definition.__classType=m,typeof p<"u"&&(f.__definition.__namespace=p),e._QC_CLASSES[u]=f,(0,t.__make_global__)(f),e._QC_CLASSES[u]},"__register_class__");e.__register_class__=n;var o=b(f=>e._QC_CLASSES[f],"get_QC_CLASS");e.get_QC_CLASS=o;var s=b(function(f){let p=[];for(let m of Object.keys(f))typeof f[m]<"u"&&typeof f[m]!="function"&&Object.hasOwn(f[m],"length")&&f[m].length>0&&(p.push(m),p=p.concat(s(f[m])));return p},"_get_packages_names"),i=b(()=>s(e._QC_PACKAGES),"getPackagesNamesList");e.getPackagesNamesList=i;var c=b(()=>[...(0,e.getPackagesNamesList)()].map(f=>{let p=e._QC_PACKAGES[f],m;return p&&(m={packageName:f,classesList:p.filter(function(){return!0})}),m}).filter(function(f){return typeof f<"u"}),"getPackagesList");e.getPackagesList=c;var l=b(()=>{let f=[];return[...(0,e.getPackagesList)()].forEach(function(p){return f=f.concat(p.classesList.map(m=>({packageName:p.packageName,className:`${p.packageName}.${(0,a.__getType__)(m)}`,classFactory:m}))),p}),f},"getClassesList");e.getClassesList=l;var _=b(()=>[...(0,e.getClassesList)()].map(f=>f.className),"getClassesNamesList");e.getClassesNamesList=_;var d=b((f,p)=>{e._QC_PACKAGES[f]=p},"set_QC_PACKAGE");e.set_QC_PACKAGE=d}}),$t=L({"node_modules/qcobjects/build/Export.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Export=void 0;var a=xr(),t=b(function(n){return(0,a.__make_global__)(n)},"Export");e.Export=t,e.Export.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"}}}),hl=L({"node_modules/qcobjects/build/_import_.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._import_=t;var a=te();async function t(n){a.logger.debug(`Importing ${n}...`);function o(s){return a.logger.debug(`Validating if ${s} is a package name...`),!s.startsWith(".")&&!s.startsWith("/")&&!s.includes("/")}h(o,"isPackage"),b(o,"isPackage");try{return!/\.[^/\\]+$/.test(n)&&!o(n)&&(a.logger.debug(`${n} does not have an extension and is not a package. Adding js extension.`),n+=".js"),await import(n)}catch(s){a.logger.warn(`Failed to load module: ${s}`)}}h(t,"_import_"),b(t,"_import_")}}),fe=L({"node_modules/qcobjects/build/platform.js"(e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.is_phonegap=e._require_=e.deno_require=e.isNodeCommonJS=e.isBrowser=e.isDeno=void 0;var t=hl(),n=te();e.isDeno=typeof window<"u"&&"Deno"in window,e.isBrowser=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!e.isDeno,e.isNodeCommonJS=typeof a<"u";var o=b(i=>{},"deno_require");e.deno_require=o;var s=b(i=>e.isDeno?(0,e.deno_require)(i):(c=>{let l;try{(async()=>{l=await(0,t._import_)(c)})().then(_=>{l=_&&_.default||_}).catch(_=>{n.logger.warn(`An error ocurred: ${_}`)})}catch(_){n.logger.debug(`An error ocurred importing module. ${_}`),l={export:{}}}return l})(i),"_require_");e._require_=s,e.is_phonegap=(function(){return typeof cordova<"u"})()}}),te=L({"node_modules/qcobjects/build/Logger.js"(e){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.logger=e.Logger=void 0;var a=$t(),t=fe(),n=(o=class{constructor(){r(this,"debugEnabled",!0);r(this,"infoEnabled",!0);r(this,"warnEnabled",!0)}debug(i){this.debugEnabled&&console.log("\x1B[35m%s\x1B[0m",`[DEBUG][${performance.now().toLocaleString()}] ${i}`)}info(i){let c;this.infoEnabled&&(t.isBrowser?c="\x1B[103m%s\x1B[0m":c="\x1B[33m%s\x1B[0m",console.info(c,`[INFO][${performance.now().toLocaleString()}] ${i}`))}warn(i){this.warnEnabled&&console.warn("\x1B[31m%s\x1B[0m",`[WARN][${performance.now().toLocaleString()}] ${i}`)}},h(o,"Logger"),b(o,"Logger"),o);e.Logger=n,e.logger=new n,(0,a.Export)(e.logger)}}),Et=L({"node_modules/qcobjects/build/Cast.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._CastProps=e._Cast=void 0;var a=te(),t=b(function(o,s){for(let i in o)if(typeof o[i]<"u")try{s[i]=o[i]}catch(c){a.logger.debug(`An error ocurred: ${c}.`),a.logger.warn(`Unable to cast ${(typeof o).toString()}.${typeof i.toString()} to ${(typeof s).toString()}.${typeof i.toString()}`)}return s},"_Cast");e._Cast=t;var n=b(function(o,s,i=!0){for(let c in o)if(typeof o[c]<"u"&&typeof o[c]!="function")try{s[c]=o[c]}catch(l){i||a.logger.debug(`An error ocurred: ${l}.`)}else if(typeof o[c]=="function")try{s[c]=o[c].bind(s)}catch(l){a.logger.warn(l)}return s},"_CastProps");e._CastProps=n}}),ut=L({"node_modules/qcobjects/build/DOMCreateElement.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._DOMCreateComplexElement=e._DOMCreateElement=void 0;var a=fe(),t=b(function(s,i,c){let l;return a.isBrowser?l=(0,e._DOMCreateComplexElement)(s,i,c):l={},l},"_DOMCreateElement");e._DOMCreateElement=t;var n=b((s,{props:i,children:c})=>s({props:i,children:c}),"ComplexTypeCall"),o=b((s,i,c)=>{if(typeof s!="string")return n(s,{props:i,children:c});let l=document.createElement(s);return i&&Object.entries(i).forEach(([_,d])=>{typeof d=="string"||typeof d=="number"?l.setAttribute(_,d.toString()):typeof d=="function"&&_.toLowerCase().startsWith("on")&&l.addEventListener(_.slice(2).toLowerCase(),d.bind(l))}),Array.isArray(c)?c.filter(_=>_ instanceof Node).forEach(_=>{l.appendChild(_)}):c instanceof Node?l.appendChild(c):typeof c=="string"&&(l.innerHTML=c),l},"_DOMCreateComplexElement");e._DOMCreateComplexElement=o}}),ks=L({"node_modules/qcobjects/build/IncrementInstanceID.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IncrementInstanceID=e.__instanceID=void 0,e.__instanceID=0;var a=b(()=>{e.__instanceID=typeof e.__instanceID>"u"||e.__instanceID===null?0:e.__instanceID+1},"IncrementInstanceID");e.IncrementInstanceID=a}}),xt=L({"node_modules/qcobjects/build/introspection.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._methods_=e._protected_code_=void 0;var a=b(n=>{let o=typeof n.prototype<"u"?n.prototype.toString:function(){return""};typeof n.prototype<"u"&&(n.prototype.toString=function(){let s=["__qcobjects__","__qcobjects_sdk__","__loaded__","ComplexStorageCache","css","append","attachIn","debug","info","warn","QC_Append","set","get","done","componentDone","_new_","__new__","Class","ClassFactory","New","Export","Package","Import","subelements","componentLoader","buildComponents","Controller","View","VO","Service","serviceLoader","JSONService","ConfigService","SourceJS","SourceCSS","ArrayList","ArrayCollection","Effect","Timer","sum","avg","table","max","min","range","matrix","matrix2d","matrix3d","unique","uniqueId","shortCode","NamespaceRef"],i;return s.includes(this.name)?i=this.name+"{ [QCObjects native code] }":i=o.call(this),i})},"_protected_code_");e._protected_code_=a,e._protected_code_(Function);var t=b(function(n){let o=[];for(let s in n)(typeof n[s]).toLowerCase()==="function"&&o.push(n[s]);return o},"_methods_");e._methods_=t}}),_e=L({"node_modules/qcobjects/build/Package.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Package=void 0;var a=cr(),t=Ot(),n=b((o,s=[])=>{if(Object.hasOwn(t._QC_PACKAGES,o)&&typeof t._QC_PACKAGES[o]<"u"&&typeof t._QC_PACKAGES[o]!="string"&&Object.hasOwn(t._QC_PACKAGES[o],"length")&&t._QC_PACKAGES[o].length>0&&typeof s<"u"&&Object.hasOwn(s,"length")&&s.length>0)s.forEach(i=>{(0,t.__register_class__)(i,o)}),(0,t.set_QC_PACKAGE)(o,t._QC_PACKAGES[o].concat(s));else if(typeof s<"u"&&typeof s<"u"&&Object.hasOwn(s,"length")&&s.length>0)s.forEach(i=>{(0,t.__register_class__)(i,o)}),(0,t.set_QC_PACKAGE)(o,s);else if((0,a.__is_raw_class__)(s))typeof s.__definition>"u"&&(s.__definition={}),s.__definition.__namespace=o,s.__namespace=o,(0,t.__register_class__)(s,o),(0,t.set_QC_PACKAGE)(o,[s]);else throw new Error(`An error ocurred. It was not possible to add classes to ${o}.`);return Object.hasOwn(t._QC_PACKAGES,o)?t._QC_PACKAGES[o]:[]},"Package");e.Package=n}}),Se=L({"node_modules/qcobjects/build/InheritClass.js"(e){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.InheritClass=void 0;var a=te(),t=ks(),n=Et(),o=ut(),s=dt(),i=xt(),c=ur(),l=fe(),_=Ot(),d=_e(),f=(p=class{constructor(u){r(this,"__definition");r(this,"_body");r(this,"childs");r(this,"__instanceID");r(this,"__namespace");typeof u<"u"&&typeof u.__definition<"u"&&(this.__definition={...u.__definition});let g=this;if(typeof u<"u"&&u!==null&&Object.keys(u).filter(function(y){return isNaN(y)&&!["__instanceID","__classType","__definition"].includes(y)}).forEach(function(y){typeof g[y]=="function"?g[y]=u[y].bind(g):g[y]=u[y]}),(0,t.IncrementInstanceID)(),g.__instanceID||Object.defineProperty(g,"__instanceID",{value:t.__instanceID,writable:!1}),typeof g.__definition<"u"&&Object.keys(g.__definition).filter(function(y){return isNaN(y)&&!["name","__instanceID","__classType","__definition"].includes(y)}).forEach(function(y){typeof g.__definition[y]=="function"?g[y]=g.__definition[y].bind(g):g[y]=g.__definition[y]}),(0,i._methods_)(_._QC_CLASSES[g.__classType]).map(function(y){return g[y.name]=y.bind(g),y}),(0,i._methods_)(g.__definition).map(function(y){return g[y.name]=y.bind(g),y}),g.body)if(typeof g.__definition>"u"||!Object.hasOwn(g.__definition,"body")||typeof g.__definition.body>"u")try{l.isBrowser?g.body=(0,o._DOMCreateElement)(g.__definition.__classType):g.body={}}catch(y){a.logger.debug(`An error ocurred: ${y}.`),g.body={}}else Object.hasOwn(g.__definition,"body")&&(g.body=g.__definition.body);try{if(g.__new__.call(g,u),typeof g=="object"&&Object.hasOwn(g,"_new_")&&typeof g._new_.isCalled>"u")try{g._new_(u),g._new_.isCalled=!0}catch(y){a.logger.warn(`${g.__classType}._new_() failed with error: ${y}`)}}catch(y){a.logger.warn(y)}}get body(){return this._body}set body(u){this._body=u}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(u){let g=b(function(E){return Object.hasOwn(E,"__classType")?E.__classType:s.__getType__.call(u,E)},"__classType"),y=b(E=>typeof E<"u"&&typeof E.__proto__<"u"&&E.__proto__!==null?(g(E)!==""?[g(E)]:[]).concat(y(E.__proto__)):[],"__hierarchy__proto__");(typeof u>"u"||u===null)&&(u=this);let v=[];return v.push(g(u)),v=v.concat(y(u.__proto__)),v}__new__(u){(0,n._CastProps)(u,this)}_new_(u){}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}getParentClass(){return this.constructor.getParentClass()}static getClass(){return Object.getPrototypeOf(this.constructor)}getClass(){return this.constructor.getClass()}css(u){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(a.logger.debug("body style"),this.body&&(this.body.style=(0,n._Cast)(u,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let u=this;return this.constructor.hierarchy(u)}append(u){let g=u||this.body;if(a.logger.debug("append: start"),(0,c.is_a)(g,"Component")&&(a.logger.debug("append: child is a Component"),a.logger.debug(`appending the body of ${g.name}`)),typeof this.body<"u")if(a.logger.debug("append element"),arguments.length>0){if(a.logger.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(g);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(g);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(g)}else l.isBrowser&&(a.logger.debug("append to body"),document.body.append(g))}attachIn(u){if(l.isBrowser){let g=document.subelements(u);for(let y=0,v=g.length;y<v;y++)g[y].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},h(p,"InheritClass6"),b(p,"InheritClass"),p);e.InheritClass=f,(0,d.Package)("com.qcobjects",[f])}}),dr=L({"node_modules/qcobjects/build/isQCObjects.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isQCObjects_Class=e.isQCObjects_Object=void 0;var a=Se(),t=b(function(o){return!!(typeof o=="object"&&Object.hasOwn(o,"__classType")&&o.__instanceID&&Object.hasOwn(o,"__definition")&&typeof o.__definition<"u")||o instanceof a.InheritClass},"isQCObjects_Object");e.isQCObjects_Object=t;var n=b(function(o){return!!(typeof o=="function"&&!o.__instanceID&&o.__definition&&typeof o.__definition<"u"&&o.__definition.__classType)||o.prototype instanceof a.InheritClass},"isQCObjects_Class");e.isQCObjects_Class=n}}),ur=L({"node_modules/qcobjects/build/is_a.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.is_a=void 0;var a=dt(),t=dr(),n=lr(),o=b((s,i)=>!!(typeof s<"u"&&s!==null&&(((0,t.isQCObjects_Class)(s)||(0,t.isQCObjects_Object)(s))&&s.hierarchy().includes(i)||(0,a.__getType__)(s)===i||(0,n.ObjectName)(s)===i||typeof s===i)),"is_a");e.is_a=o}}),_l=L({"node_modules/qcobjects/build/is_forbidden_name.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__is__forbidden_name__=void 0;var a=b(t=>["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID","function","Function"].indexOf(t)!==-1,"__is__forbidden_name__");e.__is__forbidden_name__=a}}),qs=L({"node_modules/qcobjects/build/LegacyCopy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._LegacyCopy=void 0;var a=cr(),t=b(function(n,o){var i;let s;switch(!0){case typeof n=="string":s=n;break;case typeof n=="number":s=n;break;case typeof n=="object":s=[{...Object.keys(n).filter(c=>!o?.includes(c))}].map(c=>({[c]:n[c]})).reduce((c,l)=>Object.assign(c,l));break;case typeof n=="function":s=n.bind({});break;case(0,a.__is_raw_class__)(n):s=(i=class extends n{},h(i,"_value_"),b(i,"_value_"),i);break;default:break}return s},"_LegacyCopy");e._LegacyCopy=t}}),Gr=L({"node_modules/qcobjects/build/Class.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Class=void 0;var a=Ot(),t=Et(),n=ut(),o=dt(),s=ks(),i=xt(),c=ur(),l=_l(),_=qs(),d=te(),f=fe(),p=qe(),m=b((u,g,y)=>{var q,G;let v={},E,A;switch(!0){case(!u&&!g&&!y):return class{};case(!!u&&!g&&!y):E=(q=class{},h(q,"type"),b(q,"type"),q),A={};break;case(!!u&&!g&&!!y):E=(G=class{},h(G,"type"),b(G,"type"),G),A=y;break;case(!!u&&!!g&&!!y):E=g,A=y;break;default:return class{}}if(typeof u!="string")throw new Error("Class name must be a string");if(typeof E!="function")throw new Error("Class type must be a function or class");if((0,l.__is__forbidden_name__)(u))throw new Error(`${u} is not an allowed word in the name of a class`);return typeof E.__definition=="object"&&E.__definition&&Object.keys(E.__definition).length!==0&&(A.__definition=Object.assign((0,_._LegacyCopy)(E.__definition,["name"]),E)),v[E.name]=E,typeof A>"u"||A===null?A={}:A={...A},typeof A.__instanceID<"u"&&delete A.__instanceID,a._QC_CLASSES[u]=class extends v[E.name]{constructor(j){super(j||{});r(this,"__instanceID");r(this,"__namespace");r(this,"__definition",{...A});r(this,"childs");r(this,"_body");let N=this;if((0,s.IncrementInstanceID)(),N.__instanceID||Object.defineProperty(N,"__instanceID",{value:s.__instanceID,writable:!1}),typeof N.__definition<"u"&&Object.keys(N.__definition).filter(function(I){return isNaN(I)&&!["name","__instanceID","__classType","__definition"].includes(I)}).forEach(function(I){typeof N.__definition[I]=="function"?N[I]=N.__definition[I].bind(N):N[I]=N.__definition[I]}),(0,i._methods_)(a._QC_CLASSES[N.__classType]).map(function(I){return N[I.name]=I.bind(N),I}),(0,i._methods_)(N.__definition).map(function(I){return N[I.name]=I.bind(N),I}),N.body)if(typeof N.__definition>"u"||!Object.hasOwn(N.__definition,"body")||typeof N.__definition.body>"u")try{f.isBrowser?N.body=(0,n._DOMCreateElement)(N.__definition.__classType):N.body={}}catch(I){d.logger.debug(`An error ocurred: ${I}.`),N.body={}}else Object.hasOwn(N.__definition,"body")&&(N.body=N.__definition.body);try{if(typeof N.__new__=="function"?N.__new__.call(N,j):typeof super.__new__=="function"&&(N.__new__=super.__new__.bind(N),N.__new__.call(N,j)),typeof N=="object"&&Object.hasOwn(N,"_new_")&&typeof N._new_.isCalled>"u")try{N._new_(j),N._new_.isCalled=!0}catch(I){d.logger.warn(`${N.__classType}._new_() failed with error: ${I}`)}}catch(I){d.logger.warn(I)}}get body(){return this._body}set body(j){this._body=j}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(j){let N=b(function(ie){return Object.hasOwn(ie,"__classType")?ie.__classType:o.__getType__.call(j,ie)},"__classType"),I=b(ie=>typeof ie<"u"&&typeof ie.__proto__<"u"&&ie.__proto__!==null?(N(ie)!==""?[N(ie)]:[]).concat(I(ie.__proto__)):[],"__hierarchy__proto__");(typeof j>"u"||j===null)&&(j=this);let B=[];return B.push(N(j)),B=B.concat(I(j.__proto__)),B}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}__new__(j){(0,t._CastProps)(j,this)}_new_(j){}getClass(){return Object.getPrototypeOf(this.constructor)}css(j){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(d.logger.debug("body style"),this.body&&(this.body.style=(0,t._Cast)(j,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let j=this;return this.getClass()?.hierarchy(j)}append(j){let N=j||this.body;if(d.logger.debug("append: start"),(0,c.is_a)(N,"Component")&&(d.logger.debug("append: child is a Component"),d.logger.debug(`appending the body of ${N.name}`)),typeof this.body<"u")if(d.logger.debug("append element"),arguments.length>0){if(d.logger.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(N);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(N);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(N)}else f.isBrowser&&(d.logger.debug("append to body"),document.body.append(N))}attachIn(j){if(f.isBrowser){let N=document.subelements(j);for(let I=0,B=N.length;I<B;I++)N[I].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},a._QC_CLASSES[u]=(0,t._CastProps)(A,a._QC_CLASSES[u]),a._QC_CLASSES[u].__definition=A,a._QC_CLASSES[u].__definition.__classType=u,p._top[u]=a._QC_CLASSES[u],a._QC_CLASSES[u]},"Class");e.Class=m,typeof e.Class.prototype<"u"&&(e.Class.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),Xe=L({"node_modules/qcobjects/build/ClassFactory.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClassFactory=void 0;var a=cr(),t=Ot(),n=b(o=>{let s;if(typeof o>"u"||o===null)throw Error("You need to pass a parameter {className}");if(o!==null&&o.indexOf(".")!==-1){let i=o.split(".").slice(0,o.split(".").length-1).join("."),c=o.split(".").slice(-1).join(""),_=(t._QC_PACKAGES[i]||[]).filter(d=>(0,a.__is_raw_class__)(d)).reverse();if(_.length>0)s=_[0];else throw Error(`Class ${c} not found. Found classes: ${JSON.stringify(_)} in package ${i}`)}else if(o!==null){if(s=(0,t.get_QC_CLASS)(o),typeof s>"u")throw new Error(`${o} is undefined.`)}else throw Error(`className is null. Unable to retrieve the class factory.
|
|
22
|
-
Not found in:
|
|
23
|
-
${Object.keys(t._QC_CLASSES).join(`
|
|
24
|
-
`)}`);return s},"ClassFactory");e.ClassFactory=n}}),Fs=L({"node_modules/qcobjects/build/Base64.js"(e){"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Base64=void 0;var a=(t=class{static encode(o){let s="",i,c,l,_,d,f,p,m=0;for(o=t._utf8_encode(o);m<o.length;)i=o.charCodeAt(m++),c=o.charCodeAt(m++),l=o.charCodeAt(m++),_=i>>2,d=(i&3)<<4|c>>4,f=(c&15)<<2|l>>6,p=l&63,isNaN(c)?f=p=64:isNaN(l)&&(p=64),s=s+this._keyStr.charAt(_)+this._keyStr.charAt(d)+this._keyStr.charAt(f)+this._keyStr.charAt(p);return s}static decode(o){let s="",i,c,l,_,d,f,p,m=0;for(o=o.replace(/[^A-Za-z0-9+/=]/g,"");m<o.length;)_=this._keyStr.indexOf(o.charAt(m++)),d=this._keyStr.indexOf(o.charAt(m++)),f=this._keyStr.indexOf(o.charAt(m++)),p=this._keyStr.indexOf(o.charAt(m++)),i=_<<2|d>>4,c=(d&15)<<4|f>>2,l=(f&3)<<6|p,s=s+String.fromCharCode(i),f!==64&&(s=s+String.fromCharCode(c)),p!==64&&(s=s+String.fromCharCode(l));return s=t._utf8_decode(s),s}static _utf8_encode(o){o=o.replace(/rn/g,"n");let s="";for(let i=0;i<o.length;i++){let c=o.charCodeAt(i);c<128?s+=String.fromCharCode(c):c>127&&c<2048?(s+=String.fromCharCode(c>>6|192),s+=String.fromCharCode(c&63|128)):(s+=String.fromCharCode(c>>12|224),s+=String.fromCharCode(c>>6&63|128),s+=String.fromCharCode(c&63|128))}return s}static _utf8_decode(o){let s="",i=0,c=0,l=0,_;for(;i<o.length;)c=o.charCodeAt(i),c<128?(s+=String.fromCharCode(c),i++):c>191&&c<224?(l=o.charCodeAt(i+1),s+=String.fromCharCode((c&31)<<6|l&63),i+=2):(l=o.charCodeAt(i+1),_=o.charCodeAt(i+2),s+=String.fromCharCode((c&15)<<12|(l&63)<<6|_&63),i+=3);return s}},h(t,"_Base64"),b(t,"Base64"),r(t,"_keyStr","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),t);e.Base64=a}}),Gt=L({"node_modules/qcobjects/build/basePath.js"(e){"use strict";var a=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0}),e.setBasePath=e._basePath_=void 0;var t=fe(),n=a(nt("node:process"));e._basePath_=(function(){let s="";if(t.isBrowser){let i=document.baseURI.split("?")[0].split("/");i.pop(),s=i.join("/")+"/"}else typeof n.default<"u"?s=`${n.default.cwd()}/`:s="";return s})();var o=b(s=>{e._basePath_=s},"setBasePath");e.setBasePath=o}}),pt=L({"node_modules/qcobjects/build/DataStringify.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._DataStringify=void 0;var a=qs(),t=b(n=>JSON.stringify(n,b(function(){let s=new WeakSet,i=0;return function(c,l){if(typeof l=="object"&&l!==null){if(s.has(l))return i+=1,i<=3?(0,a._LegacyCopy)(l):null;s.add(l)}return l}},"getCircularReplacer")()),"_DataStringify");e._DataStringify=t}}),pr=L({"node_modules/qcobjects/build/domain.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._domain_=void 0,e._domain_=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),Bt=L({"node_modules/qcobjects/build/New.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.New=void 0;var a=b(function(t,n={}){return n=arguments.length>1?n:{},typeof t>"u"?new Object:new t(n)},"New");e.New=a,e.New.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"}}}),$s=L({"node_modules/qcobjects/build/secretKey.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._secretKey=void 0;var a=fe();e._secretKey=a.isBrowser?location.host:"secret"}}),Br=L({"node_modules/qcobjects/build/Crypt.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e._DecryptObject=e._CryptObject=e._Crypt=void 0;var a=Fs(),t=pt(),n=Se(),o=_e(),s=$s(),i=(_=class extends n.InheritClass{constructor(){super(...arguments);r(this,"string","");r(this,"key","");r(this,"last_string","");r(this,"last_key","");r(this,"construct",!1)}encrypt(p,m){throw new Error("Method not implemented.")}decrypt(p,m){throw new Error("Method not implemented.")}_new_(p){let m=p.string,u=Object.hasOwn(p,"key")?p.key:"";this.__new__(p),u=u===""?this.__instanceID.toString():u,this.last_key=u,this.last_string=m,this.construct=!0}_encrypt(){let p=this.string,m=this.key,u="",g,y;for(let v=0;v<p.length;v++)g=p.substr(v,1),y=m.substr(v%m.length-1,1),g=String.fromCharCode(g.charCodeAt(0)+y.charCodeAt(0)),u+=g;return this.last_string=a.Base64.encode(u),this.last_string}_decrypt(){let p=this.string,m=this.key,u="",g,y;p=a.Base64.decode(p);for(let v=0;v<p.length;v++)g=p.substr(v,1),y=m.substr(v%m.length-1,1),g=String.fromCharCode(g.charCodeAt(0)-y.charCodeAt(0)),u+=g;return this.last_string=u,this.last_string}static encrypt(p,m){return new _({string:p,key:m!==""?m:"12345678ABC"})._encrypt()}static decrypt(p,m){return new _({string:p,key:m!==""?m:"12345678ABC"})._decrypt()}},h(_,"__Crypt"),b(_,"_Crypt"),_);e._Crypt=i;var c=b(function(d){return i.encrypt((0,t._DataStringify)(d),s._secretKey)},"_CryptObject");e._CryptObject=c;var l=b(function(d){return d===""?{}:JSON.parse(i.decrypt(d,s._secretKey))},"_DecryptObject");e._DecryptObject=l,(0,o.Package)("com.qcobjects",[i])}}),ml=L({"node_modules/qcobjects/build/ConfigSettings.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigSettings=void 0;var a=Gt(),t=Se(),n=_e(),o=(s=class extends t.InheritClass{constructor(){super(...arguments);r(this,"_CONFIG",{relativeImportPath:"",remoteImportsPath:"",remoteSDKPath:"https://sdk.qcobjects.dev/",asynchronousImportsLoad:!1,removePackageScriptAfterLoading:!0,componentsBasePath:"",delayForReady:0,preserveComponentBodyTag:!1,useConfigService:!1,routingWay:"hash",useSDK:!0,useLocalSDK:!1,basePath:a._basePath_});r(this,"_CONFIG_ENC","")}set(l,_){this._CONFIG[l]=_}get(l,_){return this._CONFIG[l]||_}static get instance(){return typeof s._instance>"u"&&(s._instance=new s),s._instance}},h(s,"_ConfigSettings"),b(s,"ConfigSettings"),r(s,"_instance"),s);e.ConfigSettings=o,(0,n.Package)("com.qcobjects",[o])}}),Ze=L({"node_modules/qcobjects/build/CONFIG.js"(e){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.CONFIG=void 0;var a=Gt(),t=Et(),n=Br(),o=pt(),s=te(),i=So(),c=$s(),l=_e(),_=Se(),d=ml(),f=(p=class extends _.InheritClass{get _CONFIG_ENC(){return d.ConfigSettings.instance._CONFIG_ENC}get _CONFIG(){return d.ConfigSettings.instance._CONFIG}set(u,g){s.logger.debug(`CONFIG.set ${u}: ${g}`),u==="basePath"&&(0,a.setBasePath)(g);let y;try{y=(function(v){v._CONFIG_ENC===null&&(v._CONFIG_ENC=n._Crypt.encrypt((0,o._DataStringify)({}),c._secretKey));let E=v._CONFIG_ENC.valueOf(),A=v._CONFIG?.valueOf();return(0,t._CastProps)(A,(0,n._DecryptObject)(E))})(d.ConfigSettings.instance)}catch(v){y={},console.error(v),s.logger.debug("failed to encrypt config")}y[u]=g,d.ConfigSettings.instance._CONFIG_ENC=(0,n._CryptObject)(y),d.ConfigSettings.instance.set(u,g)}get(u,g){let y;try{let v=(function(E){E._CONFIG_ENC===null&&(E._CONFIG_ENC=n._Crypt.encrypt((0,o._DataStringify)({}),c._secretKey));let A=E._CONFIG_ENC.valueOf(),q=E._CONFIG.valueOf();return(0,t._CastProps)(q,(0,n._DecryptObject)(A))})(d.ConfigSettings.instance);typeof v[u]<"u"&&(y=v[u])}catch(v){console.error(v),s.logger.debug("Something wrong when trying to get CONFIG values"),s.logger.debug("No config value for: "+u),y=g}return i.GlobalProcessor.processObject(y)||g}static get instance(){return typeof p._instance>"u"&&(p._instance=new p),p._instance}static set(u,g){p.instance.set(u,g)}static get(u,g){return p.instance.get(u,g)}},h(p,"_CONFIG"),b(p,"CONFIG"),r(p,"_instance"),p);e.CONFIG=f,(0,l.Package)("com.qcobjects",[f])}}),So=L({"node_modules/qcobjects/build/Processor.js"(e){"use strict";var c;Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalProcessor=e.Processor=void 0;var a=Ze(),t=Se(),n=Bt(),o=qe(),s=_e(),i=(c=class extends t.InheritClass{constructor({component:d,processors:f}){super({component:d});r(this,"processors",{config(d,f){return a.CONFIG.get(f,"")},ENV(d,f){return typeof process<"u"?process.env[f]:""},global(d,f){return typeof o._top<"u"?o._top[f]:""}});r(this,"component");typeof f<"u"&&(this.processors=Object.assign(f,c.instance.processors))}static get instance(){return typeof c._instance>"u"&&(c._instance=new c({component:null})),c._instance}setProcessor(d){typeof d=="function"&&d.name!==""&&(this.processors[d.name]=d)}execute(d,f,p){let m=typeof d<"u"&&d!==null?d.processorHandler:this;return m?.processors[f].bind(m).apply(m,[d,p?.split(",")])}process(d,f=null){let p=f!==null?f.processorHandler:(0,n.New)(c,{component:null});return typeof d=="string"&&Object.keys(p.processors).map(m=>[...d.matchAll(new RegExp("\\$"+m+"\\((.*)\\).*","g"))].map(function(u){let g=`$${m}(${u[1]})`;return d=d.replace(g,p.execute.bind(p).call(p,f,m,u[1])),u})),d}processObject(d,f=null){let p=f===null?this:f.processorHandler;return typeof p>"u"&&(p=new c({component:f})),typeof d=="object"?Object.keys(d).map(m=>(typeof d[m]=="object"&&!Object.hasOwn(d[m],"call")?d[m]=p?.processObject.bind(p)(d[m],f):typeof d[m]=="string"&&(d[m]=p?.process.bind(p)(d[m],f)),m)):typeof d=="string"&&(d=p.process.bind(p)(d,f)),d}},h(c,"_Processor"),b(c,"Processor"),r(c,"_instance"),c);e.Processor=i,e.GlobalProcessor=i.instance,(0,s.Package)("com.qcobjects",[i])}}),bl=L({"node_modules/qcobjects/build/routings.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__valid_routing_way__=e.__valid_routings__=e.__routing_params__=void 0;var a=b((o,s)=>{let i=o.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...s.matchAll(new RegExp(i,"g"))][0].groups}},"__routing_params__");e.__routing_params__=a;var t=b(function(o,s){return o.filter(function(i){let c=i.path.replace(/{(.*?)}/g,"(?<$1>.*)");return new RegExp(c,"g").test(s)}).reverse()},"__valid_routings__");e.__valid_routings__=t;var n=b((o,s)=>o.includes(s),"__valid_routing_way__");e.__valid_routing_way__=n}}),Hr=L({"node_modules/qcobjects/build/asyncLoad.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._fireAsyncLoad=e._asyncLoad=void 0,e.asyncLoad=o;var a=$t(),t=fe(),n=qe();e._asyncLoad=[];function o(i,c){let _=class _{constructor(f,p=[]){r(this,"func");r(this,"args");this.func=f,this.args=p}dispatch(){this.func.apply(this,...c,this)}};h(_,"AsyncCallback"),b(_,"AsyncCallback");let l=_;return e._asyncLoad.push(new l(i,c)),l}h(o,"asyncLoad"),b(o,"asyncLoad");var s=b(()=>{t.isBrowser?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&e._asyncLoad.map(function(i){i.dispatch.call(i)})}):typeof n._top.global<"u"&&e._asyncLoad.map(function(i){i.dispatch.call(i)})},"_fireAsyncLoad");e._fireAsyncLoad=s,(0,a.Export)(o)}}),Ur=L({"node_modules/qcobjects/build/ComplexStorageCache.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexStorageCache=void 0;var a=Fs(),t=pt(),n=te(),o=(s=class{constructor(c){let l,_,d=c.index;if(typeof d<"u"){l=c.load,_=c.alternate;let f=this.getID(d),p=localStorage.getItem(f);if(this.isEmpty(p)){let m=l.call(null,{cachedObjectID:f,cachedResponse:p,cache:this});this.save(d,m),n.logger.debug("RESPONSE OF {{cachedObjectID}} CACHED".replace("{{cachedObjectID}}",f))}else _.call(null,{cachedObjectID:f,cachedResponse:p,cache:this}),n.logger.debug("RESPONSE OF {{cachedObjectID}} IS ALREADY CACHED ".replace("{{cachedObjectID}}",f))}else throw new Error("ComplexStorageCache: index is undefined");return this}getItem(c){let l=localStorage.getItem(c);return this.isEmpty(l)?null:JSON.parse(l)}setItem(c,l){localStorage.setItem(c,(0,t._DataStringify)(l))}isEmpty(c){let l=!1;switch(!0){case typeof c>"u":case(typeof c=="string"&&c===""):case(typeof c=="string"&&c==="undefined"):case(typeof c=="number"&&c===0):case c===null:l=!0;break;default:l=!1}return l}getID(c){let l;return typeof c<"u"&&(l="cachedObject_"+a.Base64.encode((0,t._DataStringify)(c).replace(/\{|\}|,/g,"_"))),l}save(c,l){let _=this.getID(c);n.logger.debug("CACHING THE RESPONSE OF {{cachedObjectID}} ".replace("{{cachedObjectID}}",_)),this.setItem(_,l)}getCached(c){let l=this.getID(c);return this.getItem(l)}clear(){Object.keys(localStorage).filter(function(c){return c.startsWith("cachedObject_")}).map(function(c){return localStorage.removeItem(c),c})}},h(s,"ComplexStorageCache2"),b(s,"ComplexStorageCache"),s);e.ComplexStorageCache=o}}),Wr=L({"node_modules/qcobjects/build/serviceLoader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serviceLoader=void 0;var a=Hr(),t=Ur(),n=pt(),o=te(),s=fe(),i=qe(),c=b(function(l,_=!1){let d=b(function(g){var y=new Promise(function(v,E){o.logger.debug("LOADING SERVICE DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",(0,n._DataStringify)(g.data)).replace("{{URL}}",g.url));let A=new XMLHttpRequest;A.withCredentials=g.withCredentials,A.open(g.method,g.url,!0);for(let j in g.headers)try{typeof g.headers[j]!="function"&&A.setRequestHeader(j,g.headers[j])}catch(N){o.logger.debug("Something went wrong when assign the header "+j),o.logger.debug(`An error ocurred: ${N}`)}A.onload=function(){if(A.status===200){let N=A.responseText;if(o.logger.debug("Data received {{DATA}}".replace("{{DATA}}",(0,n._DataStringify)(N))),o.logger.debug("CREATING SERVICE {{NAME}}".replace("{{NAME}}",g.name)),g.template=N,g.cached&&typeof U<"u"&&U.save(g.name,g.template),typeof g.done=="function"){var j={request:A,service:g};g.done.call(g,j),v.call(y,j)}}else if(typeof g.fail=="function"){var j={request:A,service:g};g.fail.call(g,j),E.call(y,j)}};let G=b(function(){o.logger.debug("SENDING THE NORMAL REQUEST ");try{A.send((0,n._DataStringify)(g.data))}catch(j){o.logger.debug("SOMETHING WRONG WITH REQUEST "),o.logger.debug(`An error ocurred: ${j}`),E.call(y,{request:A,service:g})}},"_directLoad");if(g.cached){var U=new t.ComplexStorageCache({index:g.data,load(){G.call(this)},alternate(j){if(g.method==="GET"){if(g.template=j.cache.getCached(g.name),typeof g.done=="function"){let N={request:A,service:g};g.done.call(g,N),v.call(y,N)}}else G()}});i._top.lastCache=U}else G();return A});return y},"_serviceLoaderInBrowser"),f=b(function(g){var y=new Promise(function(v,E){if(typeof URL>"u"){global.URL=(0,s._require_)("url").URL;let j=global.URL}let A=new URL(g.url);var q;g.useHTTP2=Object.hasOwn(g,"useHTTP2")&&g.useHTTP2;let G=b(function(j){o.logger.debug("LOADING SERVICE DATA (non-browser) {{DATA}} FROM {{URL}}".replace("{{DATA}}",(0,n._DataStringify)(g.data)).replace("{{URL}}",g.url));let N,I={http2Client:U,request:j,service:g,responseHeaders:null};if(typeof g.data=="object"&&g.data!==null&&g.useHTTP2)try{o.logger.debug("Sending data...");let B=new Buffer((0,n._DataStringify)(g.data));j.write(B)}catch(B){o.logger.debug("It was not possible to send any data"),o.logger.debug(`An error ocurred: ${B}`)}N="",j.on("response",B=>{o.logger.debug("receiving response..."),I.responseHeaders=B,N=""}),j.on("data",B=>{o.logger.debug("receiving data..."),N+=""+B.toString(),g.template=N}),g.useHTTP2&&j.resume(),j.on("end",()=>{o.logger.debug("ending call..."),g.template=N,Object.hasOwn(g,"useHTTP2")&&g.useHTTP2?U.destroy():j.destroy(),g.done.call(g,I),v.call(y,I)}),g.useHTTP2&&j.end()},"captureEvents");try{let j;if(g.useHTTP2){o.logger.debug("using http2");var U=(0,s._require_)("http2").connect(A.origin);j=Object.assign({":method":g.method,":path":A.pathname},g.options),j=Object.assign(j,g.headers),q=U.request(j),q.setEncoding("utf8"),G(q)}else if(A.protocol==="http:"){let I=(0,s._require_)("http").request;j=Object.assign({url:g.url,headers:g.headers},g.options),q=I(g.url),G(q)}else if(A.protocol==="https:"){let N=(0,s._require_)("https");j=Object.assign({hostname:A.hostname,port:A.port,path:A.pathname,method:g.method,headers:g.headers},g.options),N.request(j,function(B){G(B)}).end()}else{let N="Protocol not supported: "+A.protocol;throw o.logger.debug(N),new Error(N)}}catch(j){o.logger.debug(j),g.fail.call(g,j),E.call(y,j)}}).catch(v=>{o.logger.debug(`Something happened when trying to call the service: ${g.name}. Error: ${v}`),g.fail.call(g,v)});return y},"_serviceLoaderInNode"),p=b(function(g){var y=new Promise(function(v){o.logger.debug(`Calling mockup service ${g.name} ...`);let E={request:null,service:g,responseHeaders:g.responseHeaders};typeof g.mockup=="function"?g.mockup.call(g,E):g.done.call(g,E),v.call(y,E)});return y},"_serviceLoaderMockup"),m=b(function(g){var y=new Promise(function(v){o.logger.debug(`Calling local service ${g.name} ...`);let E={request:null,service:g,responseHeaders:g.responseHeaders};typeof g.local=="function"?g.local.call(g,E):g.done.call(g,E),v.call(y,E)});return y},"_serviceLoaderLocal"),u;switch(l.kind){case"rest":s.isBrowser?typeof _<"u"&&_?u=(0,a.asyncLoad)(d,[l,_]):u=d(l):u=f(l);break;case"mockup":u=p(l);break;case"local":u=m(l);break;default:o.logger.debug(`The value of the kind property of the service ${l.name} is not valid`),u=Promise.resolve();break}return u},"serviceLoader");e.serviceLoader=c}}),xs=L({"node_modules/qcobjects/build/tag_filter.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._tag_filter_=void 0,e._tag_filter_="quick-component:not([loaded]),component:not([loaded])"}}),Gs=L({"node_modules/qcobjects/build/componentLoader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.componentLoader=void 0;var a=Hr(),t=Ur(),n=pt(),o=te(),s=fe(),i=qe(),c=b(function(l,_){let d,f=b(function(u){return d=new Promise(function(g,y){let v=u.__promise__;if((Object.hasOwn(u,"container")&&typeof u.container<"u"&&u.container!==null?u.container:u.body)!==null){let U=b(function(N){N.feedComponent();let I={request:q,component:N};g.call(v,I)},"_feedComponent_");o.logger.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",(0,n._DataStringify)(u.data)).replace("{{URL}}",u.url));let j=b(function(){let N=A?0:200;if(q.status===N){let I=q.responseText;o.logger.debug("Data received {{DATA}}".replace("{{DATA}}",(0,n._DataStringify)(I))),o.logger.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",u.name)),u.template=I,u.cached&&typeof G<"u"&&G.save(u.name,u.template),U(u)}else{let I={request:q,component:u};y.call(v,I)}},"_componentLoaded");if(typeof u.template=="string"&&u.template!=="")U(u);else{var A=!!u.url.startsWith("file:"),q=new XMLHttpRequest;if(A)"fetch"in i._top&&(o.logger.debug("I can use fetch..."),o.logger.debug("It is a file to be loaded, so I will try to use fetch"),fetch(u.url).then(I=>{o.logger.debug("I got a response from fetch, so I'll feed the component"),I.text().then(B=>{u.template=B,U(u)}).catch(B=>{throw new Error(`An error ocurred: ${B}`)})}).catch(I=>{throw new Error(`An error ocurred: ${I}`)}));else try{o.logger.debug("Calling the url of component in async mode."),q.open(u.method,u.url,!0)}catch(I){o.logger.debug(`An error ocurred: ${I}.`),o.logger.debug("Last try has failed... The component cannot be loaded.")}!s.is_phonegap&&!A&&q.setRequestHeader("Content-Type","text/html"),A||(q.onload=j);let N=b(function(I){I=!(typeof I>"u"||!I),o.logger.debug("SENDING THE NORMAL REQUEST "),I?"fetch"in i._top||(o.logger.debug("I have to try to load the file using xhr... "),q.send(null),q.status===XMLHttpRequest.DONE&&j()):(o.logger.debug("Trying to send the data to the component... "),q.send((0,n._DataStringify)(u.data)))},"_directLoad");if(u.cached&&!A){o.logger.debug("USING CACHE FOR COMPONENT: "+u.name);var G=new t.ComplexStorageCache({index:u.cacheIndex,load(){N.call(this,A)},alternate(I){u.method==="GET"?(u.template=I.cache.getCached(u.cacheIndex),U.call(this,u)):N.call(this,A)}});i._top.lastCache=G}else o.logger.debug("NOT USING CACHE FOR COMPONENT: "+u.name),N(A)}}else o.logger.debug("CONTAINER DOESNT EXIST")}),d.then(function(g){return u.__done__().then(function(){let y;return typeof u.done=="function"&&(y=u.done.call(u,g)),Promise.resolve(y)})},function(g){return typeof u.fail=="function"&&u.fail.call(u,g).catch(y=>{throw new Error(`${y}`)}),Promise.reject(new Error("An error ocurred"))}).catch(function(g){throw o.logger.debug("Something wrong loading the component"),new Error(`An error ocurred: ${g}`)}),d},"_componentLoaderInBrowser"),p=b(function(u){return d=new Promise(function(g,y){let v=d,E=b(function(G){G.feedComponent().catch(j=>{throw new Error(`An error ocurred trying to feed the component: ${G.name}. Error: ${j}`)});let U={request:null,component:G};g.call(v,U)},"_feedComponent_");o.logger.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",(0,n._DataStringify)(u.data)).replace("{{URL}}",u.url));let A=b(function(G,U){if(G){let j={request:null,component:u};y.call(v,j)}else{let j=U.toString();o.logger.debug("Data received {{DATA}}".replace("{{DATA}}",(0,n._DataStringify)(j))),o.logger.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",u.name)),u.template=j,u.cached&&typeof q<"u"&&q.save(u.name,u.template),E(u)}},"_componentLoaded");if(typeof u.template=="string"&&u.template!=="")E(u);else{o.logger.debug("Loading the component as a local file in server...");let G=b(function(){let{readFile:U}=nt("node:fs");o.logger.debug("SENDING THE NORMAL REQUEST "),U(u.url,A)},"_directLoad");if(u.cached){o.logger.debug("USING CACHE FOR COMPONENT: "+u.name);var q=new t.ComplexStorageCache({index:u.cacheIndex,load(){G()},alternate(U){u.method==="GET"?(u.template=U.cache.getCached(u.cacheIndex),E.call(this,u)):G.call(this)}});i._top.lastCache=q}else o.logger.debug("NOT USING CACHE FOR COMPONENT: "+u.name),G()}}),d.then(function(g){return u.__done__().then(function(){let y;return typeof u.done=="function"&&(y=u.done.call(u,g)),Promise.resolve(y)})},function(g){return typeof u.fail=="function"&&u.fail.call(u,g).catch(y=>{throw new Error(`An error ocurred: ${y}`)}),Promise.reject(new Error("An error ocurred."))}).catch(function(g){o.logger.debug(`Something wrong loading the component: ${g}`)}),d},"_componentLoaderInNode"),m;return s.isBrowser?typeof _<"u"&&_?m=(0,a.asyncLoad)(f,[l,_]):m=f(l):m=p(l),m},"componentLoader");e.componentLoader=c}}),Bs=L({"node_modules/qcobjects/build/Component.js"(e){"use strict";var B;Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var a=Fs(),t=Gt(),n=Et(),o=Xe(),s=Qr(),i=pt(),c=pr(),l=ut(),_=dt(),d=Se(),f=xt(),p=ur(),m=dr(),u=te(),g=Bt(),y=_e(),v=fe(),E=So(),A=bl(),q=qe(),G=Ze(),U=Wr(),j=xs(),N=Gs(),I=(B=class extends d.InheritClass{constructor({__parent__:w,templateURI:S="",template:P,tplsource:M="default",tplextension:T,url:R="",name:V="",method:F="GET",data:W={},reload:ae=!1,shadowed:Ce=!1,cached:we=!0,enableServiceClass:ce,assignRoutingParams:D=!0,_body:x=(0,l._DOMCreateElement)("div"),__promise__:X=null,__shadowRoot:ve,body:be,shadowRoot:Be,splashScreenComponent:Qe,controller:et,view:xo}){if(arguments.length<1)throw Error("No arguments in component. You must at least give one argument.");super({__parent__:w,templateURI:S,template:P,tplsource:M,tplextension:T,url:R,name:V,method:F,data:W,reload:ae,shadowed:Ce,cached:we,enableServiceClass:ce,assignRoutingParams:D,_body:x,__promise__:X,__shadowRoot:ve,body:be,shadowRoot:Be,splashScreenComponent:Qe,controller:et,view:xo});r(this,"name");r(this,"templateURI");r(this,"url");r(this,"tplsource");r(this,"tplextension");r(this,"template");r(this,"validRoutingWays",["pathname","hash","search"]);r(this,"basePath",t._basePath_);r(this,"domain",c._domain_);r(this,"templateHandler","DefaultTemplateHandler");r(this,"processorHandler");r(this,"routingWay",null);r(this,"routingNodes",[]);r(this,"routings",[]);r(this,"routingPath","");r(this,"routingPaths",[]);r(this,"_componentHelpers",[]);r(this,"subcomponents",[]);r(this,"splashScreenComponent");r(this,"controller");r(this,"routingController");r(this,"view");r(this,"effect");r(this,"effectClass");r(this,"method","GET");r(this,"cached",!0);r(this,"__promise__",null);r(this,"data");r(this,"__namespace");r(this,"_parsedAssignmentText");r(this,"__shadowRoot");r(this,"_serviceClassName",null);r(this,"enableServiceClass",!0);r(this,"serviceInstance");r(this,"serviceData");r(this,"shadowed",!1);r(this,"container");r(this,"innerHTML");r(this,"reload");r(this,"assignRoutingParams",!0);r(this,"responseTo");let ne=this;typeof V<"u"&&(ne.name=V),typeof ne.name>"u"&&typeof V>"u"&&u.logger.warn("A name is not defined for "+(0,_.__getType__)(ne)),ne.routingWay=G.CONFIG.get("routingWay"),ne.processorHandler=new E.Processor({component:ne}),ne.data=typeof ne.data>"u"||ne.data===null?{}:ne.data,ne.data=Object.assign(ne.data,ne.dataAttributes),ne.createServiceInstance().then(()=>{typeof ne.__new__=="function"&&ne.__new__(ne),ne._generateRoutingPaths(ne.body).then(function(){ne._reroute_().then(function(){return ne.rebuild().then(function(){u.logger.info(`Component._new_ The component ${ne.name} was built successfully!`)}).catch(function(tt){u.logger.warn(`Component._new_ Something went wrong building the component ${ne.name}`),console.error(`Component._new_ Something went wrong building the component ${ne.name}`,tt)})}).catch(tt=>{throw Error(`Unexpected error ${tt}`)})}).catch(tt=>{throw Error(`Unexpected error ${tt}`)})}).catch(tt=>{throw Error(`Unexpected error. ${tt}`)})}set cacheIndex(w){u.logger.debug("[cacheIndex] This property is readonly")}get cacheIndex(){let w=this,S=(0,i._DataStringify)(w.routingPath);return a.Base64.encode(w.name+S)}set parsedAssignmentText(w){u.logger.debug("[parsedAssignmentText] This property is readonly")}get parsedAssignmentText(){let w=this;if(w._parsedAssignmentText=w.parseTemplate(w.template),typeof w._parsedAssignmentText>"u")throw Error(`[Component][${this.name}][parsedAssignmentText] Could not generate content!`);return w._parsedAssignmentText}set shadowRoot(w){let S=this;typeof S.__shadowRoot>"u"?S.__shadowRoot=w:u.logger.debug("[shadowRoot] This property can only be assigned once!")}get shadowRoot(){return this.__shadowRoot}set routingSelected(w){u.logger.debug("[routingSelected] This is a read-only property of the component")}get routingSelected(){let w=this;return(0,A.__valid_routings__)(w.routings,w.routingPath)}set routingParams(w){u.logger.debug("[routingParams] This is a read-only property of the component")}get routingParams(){let w=this;return[{}].concat(w.routingSelected.map(function(S){return(0,A.__routing_params__)(S,w.routingPath)})).reduce(function(S,P){return Object.assign(S,P)})}set serviceClassName(w){this._serviceClassName=w}get serviceClassName(){let w="";return v.isBrowser?w=this.body.getAttribute("serviceClass")!==null?this.body.getAttribute("serviceClass"):this._serviceClassName:w=this._serviceClassName,w}get responseToData(){let w=!1;return v.isBrowser?w=this.body.getAttribute("response-to")==="data"||this.responseTo==="data":w=this.responseTo==="data",w}get responseToTemplate(){let w=!1;return v.isBrowser?w=this.body.getAttribute("response-to")==="template"||this.responseTo==="template":w=this.responseTo==="template",w}createServiceInstance(){let w=this,S=this.data,P,M=w.getClass().__definition,T=w.serviceClassName;return new Promise(function(R,V){let F=w.enableServiceClass,W=w.responseToData,ae=w.responseToTemplate;if(F&&T!==null&&(P=(0,o.ClassFactory)(T)),!W&&M&&Object.hasOwn(M,"responseTo")?W=M.responseTo==="data":!W&&Object.hasOwn((0,o.ClassFactory)("Component"),"responseTo")&&(W=(0,o.ClassFactory)("Component").responseTo==="data"),!ae&&M&&Object.hasOwn(M,"responseTo")?ae=M.responseTo==="template":!ae&&Object.hasOwn((0,o.ClassFactory)("Component"),"responseTo")&&(ae=(0,o.ClassFactory)("Component").responseTo==="template"),typeof P<"u"&&typeof F<"u"&&F===!0&&(W||ae)){u.logger.info("Loading service "+T);let Ce=(0,g.New)(P,{data:S});(0,U.serviceLoader)(Ce)?.then(function({service:we}){let ce;typeof we.JSONresponse<"u"&&we.JSONresponse!==null?ce=we.JSONresponse:ce=we.template,W&&(typeof S=="object"&&typeof ce=="object"?S=Object.assign(S,ce):S=ce,w.data=S),w.serviceInstance=Ce,w.serviceData=S,ae&&(w.template=ce),R(ce)},function(we){u.logger.debug(`Service loading rejected for ${T} in ${w.name}`),V(we)}).catch(function(we){throw u.logger.debug("Something went wroing while trying to load the service "+T),Error(`Error loading ${T} for ${w.name}. Detail: ${we}`)})}else R(null)})}_bindroute_(){let w=this;w._bindroute_.loaded?u.logger.debug(`Routes already bound to popstate events for ${w.name}`):(v.isBrowser&&w.hostElements("a").map(function(S){return S.oldclick=S.onclick,S.onclick=function(P){let M=!0;q._top.global.get("routingPaths")||q._top.global.set("routingPaths",[]);let T=G.CONFIG.get("routingWay"),R=P.target[T];return q._top.global.get("routingPaths").includes(R)&&P.target[T]!==location[T]&&P.target.href!==document.location.href?(u.logger.debug("A ROUTING WAS FOUND: "+R),window.history.pushState({href:P.target.href},P?.target?.href,P.target.href),B.route().catch(V=>{throw Error(`Unexpected error: ${V}`)}),M=!1):u.logger.debug("NO ROUTING FOUND FOR: "+R),typeof P.target.oldclick<"u"&&typeof P.target.oldclick=="function"&&P.target.oldclick.call(P.target,P),M},null}),w._bindroute_.loaded=!0)}done(w){return new Promise(P=>{if(typeof w<"u"){let{request:M,component:T}=w;P({request:M,component:T})}else P({request:void 0,component:void 0})})}createControllerInstance(){let w;if(v.isBrowser){if(typeof this.body>"u")throw new Error("The component has no body");var S=this.body.getAttribute("controllerClass");S||(S="Controller"),w=(0,o.ClassFactory)(S),typeof w<"u"&&(this.controller=(0,g.New)(w,{component:this}))}return new Promise((P,M)=>{if(v.isBrowser&&typeof w<"u"&&typeof this.controller<"u"){if(typeof this.controller.done=="function")try{this.controller.done.call(this.controller)}catch(T){throw Error(T)}else u.logger.debug(`${S} does not have a done() method.`),M(new Error(`${S} does not have a done() method.`));typeof this.controller.createRoutingController=="function"?this.controller.createRoutingController.call(this.controller):u.logger.debug(`${S} does not have a createRoutingController() method.`)}P({component:this,controller:this.controller})})}createEffectInstance(){let w=this;return new Promise(function(S){if(v.isBrowser){let P=w.body?.getAttribute("effectClass"),M=w.body?.getAttribute("apply-effect-to");M=M!==null?M:"load",P!==null&&M==="observe"?w.applyObserveTransitionEffect(P):P!==null&&M==="load"&&w.applyTransitionEffect(P)}S({component:w,effect:w.effect})})}createViewInstance(){let w=this;return new Promise(function(S){let P=v.isBrowser?w.body.getAttribute("viewClass"):null;if(P!==null){let M=(0,o.ClassFactory)(P);typeof M<"u"&&(w.view=(0,g.New)(M,{component:w}),Object.hasOwn(w.view,"done")&&typeof w.view?.done=="function"&&w.view?.done.call(w.view))}S({component:w,view:w.view})})}__done__(){let w=this,S=b(function(){if(typeof w>"u")throw new Error("componentDone() has lost its context");if(typeof w.body>"u")throw new Error("The component has no body");(async()=>{await w.createViewInstance(),await w.createControllerInstance(),await w.createEffectInstance()})().catch(P=>{throw new Error(`Unknown error ${P}.`)}),u.logger.debug(`Trying to run component helpers for ${w.name}...`);try{w.runComponentHelpers(),u.logger.debug(`Component helpers for ${w.name} executed.`)}catch(P){throw u.logger.debug(`Component helpers for ${w.name} could not be executed.`),Error(P)}w.subcomponents=w.__buildSubComponents__(),w._bindroute_(),v.isBrowser&&w.body.setAttribute("loaded","true")},"componentDone");return new Promise(function(P,M){try{P(S.call(w))}catch(T){M(new Error(T))}})}hostElements(w){let S=this,P=[];return v.isBrowser&&(P=S.shadowed&&typeof S.shadowRoot<"u"?S.shadowRoot.subelements(w):S.body.subelements(w)),P}get subtags(){let w=this,S=j._tag_filter_;return w.hostElements(S)}get bodyAttributes(){let S=this.body;return v.isBrowser?[...S.getAttributeNames()].map(P=>({[P]:S.getAttribute(P)})).reduce((P,M)=>Object.assign(P,M)):{}}get dataAttributes(){let S=this.body;return v.isBrowser?[{}].concat([...S.getAttributeNames()].filter(P=>P.startsWith("data-")).map(P=>({[P.split("-")[1]]:S.getAttribute(P)}))).reduce((P,M)=>Object.assign(P,M)):{}}__buildSubComponents__(w=!1){let S=this,P=S.subtags;return w||(P=P.filter(M=>M.getAttribute("loaded")!=="true")),(typeof S<"u"||S.subcomponents.length<1)&&(S.subcomponents=(0,s._buildComponentsFromElements_)(P,S)),S.subcomponents}fail(w){return new Promise((P,M)=>{if(typeof w<"u"){let{error:T,component:R}=w;P({error:T,component:R})}else M(new Error(" Unknown error."))})}set(w,S){this[w]=S}get(w,S){return this[w]||S}feedComponent(){let w=this;u.logger.debug(`[Component][${this.name}][feedComponent] start feeding component...`);let S=b(function(T){if(typeof T.container>"u"&&typeof T.body>"u"){u.logger.warn("COMPONENT {{NAME}} has an undefined container and body".replace("{{NAME}}",T.name));return}let R=typeof T.container>"u"||T.container===null?T.body:T.container,V=T.parsedAssignmentText;if(T.innerHTML=V,T.shadowed){u.logger.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",T.name)),u.logger.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",T.name));let F=(0,l._DOMCreateElement)("div");R.subelements("[slot]").map(ae=>(ae.parentElement===R&&F.appendChild(ae),ae)),u.logger.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",T.name));let W=(0,l._DOMCreateElement)("div");W.classList.add("shadowHost");try{T.shadowRoot=W.attachShadow({mode:"open"})}catch(ae){u.logger.debug(`An error ocurred: ${ae}.`);try{u.logger.debug("Shadowed COMPONENT {{NAME}} is repeated".replace("{{NAME}}",T.name)),T.shadowRoot=W.shadowRoot}catch(Ce){u.logger.debug(`An error ocurred: ${Ce}.`),u.logger.warn("Shadowed COMPONENT {{NAME}} is not allowed on this browser".replace("{{NAME}}",T.name))}}if(typeof T.shadowRoot<"u"&&T.shadowRoot!==null){T.reload?(u.logger.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",T.name)),W!==null&&W.shadowRoot!==null&&(W.shadowRoot.innerHTML=T.innerHTML)):(F.innerHTML=T.parseTemplate(F.innerHTML),u.logger.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",T.name)),W!==null&&W.shadowRoot!==null&&(W.shadowRoot.innerHTML+=T.innerHTML)),u.logger.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",T.name)),W.innerHTML+=F.innerHTML,u.logger.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",T.name));let ae=R.querySelector(".shadowHost");typeof ae<"u"&&ae!==null?(u.logger.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",T.name)),T.shadowRoot!==null&&W.shadowRoot!==null&&(T.shadowRoot.innerHTML=W.shadowRoot.innerHTML)):R.appendChild(W)}else u.logger.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",T.name))}else T.reload?(u.logger.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",T.name)),R.innerHTML=T.innerHTML):R&&T?(u.logger.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",T.name)),R.innerHTML+=T.innerHTML):u.logger.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",T.name))},"_feedComponent_InBrowser"),P=b(function(T){let R=T.parsedAssignmentText;T.innerHTML=R},"_feedComponent_InNode"),M;return(0,p.is_a)(w,"Component")?new Promise((T,R)=>{if(v.isBrowser)try{M=S(w),T(M)}catch(V){R(new Error(V))}else try{M=P(w),T(M)}catch(V){R(new Error(V))}}):(u.logger.warn("Trying to feed a non component object"),Promise.reject(new Error(`Trying to feed a non component object ${typeof w}`)))}rebuild(){let w=this;var S=new Promise(function(P,M){if((typeof w>"u"||w===null)&&M(new Error("Component is undefined")),(0,m.isQCObjects_Object)(w)&&(0,p.is_a)(w,"Component"))switch(!0){case w.get("tplsource")==="none":u.logger.debug("Component "+w.name+" has specified template-source=none, so no template load was done");var T={request:void 0,component:w};w.__done__().then(function(){typeof w.done=="function"&&w.done.call(w,T).catch(R=>{u.logger.debug(`It was an error while calling done() in ${w.name}: ${R}`)}),P.call(S,T)},function(){M.call(S,T)});break;case w.get("tplsource")==="inline":u.logger.debug("Component "+w.name+" has specified template-source=inline, so it is assumed that template is already declared"),(async R=>{await R.feedComponent.bind(R)()})(w).catch(R=>{u.logger.debug(`It was not possible to feed the component ${w.name}: ${R}`)});var T={request:void 0,component:w};w.__done__().then(async()=>{typeof w.done=="function"&&await w.done(T),P.call(S,T)},function(){M.call(S,T)});break;case(w.get("tplsource")==="default"&&w.get("templateURI")!==""):w.set("url",w.get("basePath")+w.get("templateURI")),(0,N.componentLoader)(w,!1)?.then(function(R){P.call(S,R)},function(R){M.call(S,R)});break;case(w.get("tplsource")==="external"&&w.get("templateURI")!==""):w.set("url",w.get("templateURI")),(0,N.componentLoader)(w,!1).then(function(R){P.call(S,R)},function(R){M.call(S,R)});break;case(w.get("tplsource")==="default"&&w.get("templateURI","")===""):u.logger.debug(`Component ${w.name} template-source is ${w.get("tplsource")} and no templateURI is present`),M.call(S,`Component ${w.name} template-source is ${w.get("tplsource")} and no templateURI is present`);break;default:u.logger.debug("Component "+w.name+" will not be rebuilt because no templateURI is present"),M.call(S,{request:null,component:w});break}});return S}Cast(w){let S=(0,f._methods_)(w).map(P=>P.name.replace(/bound /g,"")).map(P=>({[P]:w[P].bind(this)})).reduce((P,M)=>Object.assign(P,M),{});return(0,n._Cast)(this,S)}route(){return this.constructor.route()}static route(){let w=this,S,P=!!((0,m.isQCObjects_Object)(w)&&(0,p.is_a)(w,"Component")),M=b(function(T){let R=[],V=T.filter(function(F){return typeof F<"u"}).map(function(F){if(typeof F.name<"u")R.push(F.name);else throw new Error((0,_.__getType__)(F)+" does not have a name");return new Promise(function(W,ae){typeof F<"u"&&F._reroute_?F._reroute_().then(function(){F.reload=!0,F.rebuild().then(()=>{W()}).catch(Ce=>{u.logger.debug(`Error ${Ce}`)})}).then(function(){if(Object.hasOwn(F,"subcomponents")&&typeof F.subcomponents<"u"&&F.subcomponents.length>0)return u.logger.debug("LOOKING FOR ROUTINGS IN SUBCOMPONENTS FOR: "+F.name),M.call(F,F.subcomponents);u.logger.debug("No subcomponents to look for routings in: "+F.name),F.subtags.length>0&&(F.subcomponents=F.__buildSubComponents__(!0)),W()}).catch(Ce=>{u.logger.debug(`Error: ${Ce}`)}):typeof F<"u"&&ae(new Error("Component "+F.name+" is not an instance of Component"))})});return Promise.all(V).then(function(){u.logger.debug("ROUTING COMPLETED FOR "+R.join(", "))}).catch(function(F){u.logger.warn("ROUTING FAILED FOR "+R.join(", ")+": "+F)})},"__route__");if(P||q.componentsStack)P&&u.logger.debug("loading routings for instance "+w.name),S=M.call(w,P?w.subcomponents:q.componentsStack);else throw u.logger.debug("An undetermined result expected if load routings. So will not be loaded this time."),Error("There is no valid instance and no components stack available to apply rountings");return S}fullscreen(){if(v.isBrowser){let w=this.body;w.requestFullscreen?w.requestFullscreen().catch(S=>{throw new Error(`An error ocurred when requesting fullscreen: ${S}`)}):w.mozRequestFullScreen?w.mozRequestFullScreen():w.webkitRequestFullscreen?w.webkitRequestFullscreen():w.msRequestFullscreen&&w.msRequestFullscreen()}}closefullscreen(){v.isBrowser&&(document.exitFullscreen?document.exitFullscreen().catch(w=>{throw new Error(`An error ocurred when trying to exit fullscrenn ${w}.`)}):document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}_generateRoutingPaths(w){let S=this;return new Promise(function(P){v.isBrowser&&(0,A.__valid_routing_way__)(S.validRoutingWays,S.routingWay||"")&&typeof w<"u"&&(S.innerHTML=w?.innerHTML,S.routingNodes=w?.subelements("routing"),S.routings=[],S.routingNodes.map(M=>{let T=M.getAttributeNames(),R={};return T.map((V,F)=>(R[T[F]]=M.getAttribute(T[F]),V)),S.routings.push(R),S.routingPaths||(S.routingPaths=[]),S.routingPaths.includes(R.path)||S.routingPaths.push(R.path),q._top.global.get("routingPaths")||q._top.global.set("routingPaths",[]),q._top.global.get("routingPaths").includes(R.path)||q._top.global.get("routingPaths").push(R.path),M})),P()})}parseTemplate(w){let S=this,P,M=w;if(Object.hasOwn(S,"templateHandler")){let T=S.templateHandler;u.logger.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${T} ...`);let R=(0,o.ClassFactory)(T),V=(0,g.New)(R,{component:S,template:M});V.component=S;let F=S.data;if(Object.hasOwn(S,"assignRoutingParams")&&S.assignRoutingParams)try{F=Object.assign(F,S.routingParams)}catch(W){u.logger.debug(`An error ocurred: ${W}.`),u.logger.debug("[parseTemplate] it was not possible to assign the routing params to the template")}P=V.assign(F)}else u.logger.debug(`[Component][${this.name}][parseTemplate] No value for templateHandler. Using raw content...`),P=M;return P}_reroute_(){let w=this;return new Promise(function(S){v.isBrowser&&(0,A.__valid_routing_way__)(w.validRoutingWays,w.routingWay||"")&&(w.routingPath=location[w.routingWay],w.routingSelected.map(P=>{let M=(0,s.ComponentURI)({COMPONENTS_BASE_PATH:G.CONFIG.get("componentsBasePath"),COMPONENT_NAME:P.name.toString(),TPLEXTENSION:Object.hasOwn(P,"tplextension")?P.tplextension||"":w.tplextension,TPL_SOURCE:"default"});return w.templateURI=M,P}),w.routingSelected.length>0&&(w.template="",typeof w.body<"u"&&w.body!==null&&(w.body.innerHTML=""))),S(w)})}lazyLoadImages(){if(v.isBrowser){let S=this.componentRoot;if(typeof S<"u"&&S!==null){let P=[...S.subelements("img[lazy-src]")],M=b(function(T){T.setAttribute("src",T.getAttribute("lazy-src")?.toString()),T.onload=()=>{T.removeAttribute("lazy-src")}},"_lazyLoadImages");if("IntersectionObserver"in window){let T=new IntersectionObserver((R,V)=>{R.forEach(F=>{F.isIntersecting&&(M(F.target),V.unobserve(F.target))})});P.map(function(R){return T.observe(R)})}else P.map(M)}}return null}applyTransitionEffect(w){let S=(0,o.ClassFactory)(w);if(typeof S>"u")throw Error(`${w} not found.`);typeof S<"u"&&(0,p.is_a)(S,"TransitionEffect")?(this.effect=(0,g.New)(S,{component:this}),this.effect?.apply(this.effect?.defaultParams)):u.logger.debug(`${w} is ${(0,_.__getType__)(S)} but is not a TransitionEffect`)}applyObserveTransitionEffect(w){if(v.isBrowser){let S=this,P=S.componentRoot,M=b(function(){S.applyTransitionEffect(w)},"_applyEffect_");"IntersectionObserver"in window?new IntersectionObserver((R,V)=>{R.forEach(F=>{F.isIntersecting&&(M(),V.unobserve(F.target))})}).observe(P):M()}}get componentRoot(){return this.shadowed?this.shadowRoot:this.body}scrollIntoHash(){if(v.isBrowser){let w=this;document.location.hash!==""&&(w.componentRoot?.subelements(document.location.hash)).map(P=>(typeof P.scrollIntoView=="function"&&P.scrollIntoView(G.CONFIG.get("scrollIntoHash",{behavior:"auto",block:"top",inline:"top"})),P))}}i18n_translate(){if(v.isBrowser&&G.CONFIG.get("use_i18n")){let w=this,S=w.componentRoot,P=G.CONFIG.get("lang","en"),M=navigator.language.slice(0,2),T=q._top.global.get("i18n");P!==M&&typeof T=="object"&&Object.hasOwn(T,"messages")&&b(()=>new Promise(function(V){let F=T.messages.filter(function(W){return Object.hasOwn(W,P)&&Object.hasOwn(W,M)});(S?.subelements("ul,li,h1,h2,h3,a,b,p,input,textarea,summary,details,option,component")).map(W=>(F.map(function(ae){let Ce=W.innerHTML;return Ce=Ce?.replace(new RegExp(`${ae[P]}`,"g"),ae[M]),W.innerHTML=Ce,null}),W)),V()}),"callback_i18n").call(w).then(function(){u.logger.debug("i18n loaded for component: "+w.name)}).catch(V=>{throw new Error(`An error ocurred when parsing i18n: ${V}.`)})}}addComponentHelper(w){this._componentHelpers.push(w)}runComponentHelpers(){if(v.isBrowser){let w=this,S=[];S.push(w.i18n_translate.bind(w)),S.push(w.scrollIntoHash.bind(w)),S.push(w.lazyLoadImages.bind(w)),S=S.concat(w._componentHelpers),S.map(P=>(u.logger.debug(`Executing ${P.name} as component helper for ${w.name}...`),P(),P))}}},h(B,"_Component"),b(B,"Component"),r(B,"shadowed",!1),r(B,"cached",!0),r(B,"subcomponents"),r(B,"responseTo"),B);e.Component=I,(0,y.Package)("com.qcobjects",[I]),f._methods_((0,o.ClassFactory)("Component")).map(ie=>(f._protected_code_(ie),ie))}}),Qr=L({"node_modules/qcobjects/build/ComponentFactory.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildComponents=e._buildComponentsFromElements_=e._buildComponentFromElement_=e.ComponentURI=void 0;var a=Gr(),t=Xe(),n=Bs(),o=Ze(),s=ut(),i=dt(),c=te(),l=Bt(),_=_e(),d=fe(),f=xs(),p=b(({TPL_SOURCE:y,COMPONENTS_BASE_PATH:v,COMPONENT_NAME:E,TPLEXTENSION:A})=>y==="default"?`${v}${E}.${A}`:"","ComponentURI");e.ComponentURI=p;var m=b((y,v)=>{let E=y.getAttribute("shadowed")===null,A=y.getAttribute("template-source")===null,q=y.getAttribute("shadowed")==="true",G=y.getAttribute("cached")===null,U=y.getAttribute("cached")==="true",j=typeof o.CONFIG.get("tplextension")<"u"?o.CONFIG.get("tplextension"):"html";j=y.getAttribute("tplextension")!==null?y.getAttribute("tplextension"):j;let N=y.getAttribute("name"),I=y.getAttribute("componentClass")!==null?y.getAttribute("componentClass"):"Component",B=o.CONFIG.get("preserveComponentBodyTag")?N!==null?"com.qcobjects.components."+N+".ComponentBody":"com.qcobjects.components.ComponentBody":I;N=N!==null?N:(0,t.ClassFactory)(B)&&typeof(0,t.ClassFactory)(B).name<"u"?(0,t.ClassFactory)(B).name:"";let ie=(0,t.ClassFactory)(B),uo=B!=="Component"&&typeof ie<"u"&&typeof ie.tplsource=="string"&&ie.tplsource!=="",w=A&&uo?ie.tplsource:A?"default":y.getAttribute("template-source");c.logger.debug(`template source for ${N} is ${w} `),c.logger.debug(`type for ${N} is ${(0,i.__getType__)(ie)} `);let S=(0,e.ComponentURI)({COMPONENTS_BASE_PATH:o.CONFIG.get("componentsBasePath"),COMPONENT_NAME:N,TPLEXTENSION:j,TPL_SOURCE:w});return o.CONFIG.get("preserveComponentBodyTag")&&(0,_.Package)(N!==""?"com.qcobjects.components."+N:"com.qcobjects.components",[(0,a.Class)("ComponentBody",n.Component,{name:N,tplsource:w,tplextension:j,reload:!0})]),b(function(){let T=E?ie&&ie.shadowed||n.Component.shadowed:q,R={__parent__:v,name:N,cached:G?n.Component.cached:U,shadowed:T,tplextension:j,body:o.CONFIG.get("preserveComponentBodyTag")?(0,s._DOMCreateElement)("componentBody"):y,templateURI:S,tplsource:w};(typeof N>"u"||N===""||N===null)&&delete R.name,S===""&&delete R.templateURI;let V=(0,l.New)(ie,R);return o.CONFIG.get("preserveComponentBodyTag")&&typeof V<"u"&&y.append(V.body),V},"__create_component_instance_")()},"_buildComponentFromElement_");e._buildComponentFromElement_=m;var u=b((y,v)=>{let E=[];return d.isBrowser?E=y.map(function(A){return(0,e._buildComponentFromElement_)(A,v)}):c.logger.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),E},"_buildComponentsFromElements_");e._buildComponentsFromElements_=u;var g=b(y=>{let v=f._tag_filter_,E=y.subelements(v);return(0,e._buildComponentsFromElements_)(E,null)},"buildComponents");e.buildComponents=g}}),la=L({"node_modules/qcobjects/build/Service.js"(e){"use strict";var p,m,u;Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigService=e.JSONService=e.Service=void 0;var a=Gt(),t=Br(),n=pr(),o=Se(),s=te(),i=_e(),c=$s(),l=Ze(),_=(p=class extends o.InheritClass{constructor(){super(...arguments);r(this,"options");r(this,"withCredentials");r(this,"useHTTP2");r(this,"name");r(this,"responseHeaders");r(this,"kind","rest");r(this,"domain",n._domain_);r(this,"basePath",a._basePath_);r(this,"url","");r(this,"method","GET");r(this,"data",{});r(this,"reload",!1);r(this,"cached",!1);r(this,"headers");r(this,"template")}mockup({request:v,service:E}){throw new Error("Method not implemented.")}local({request:v,service:E}){throw new Error("Method not implemented.")}done({request:v,service:E}){throw new Error("Method not implemented.")}fail(...v){throw new Error("Method not implemented.")}set(v,E){this[v]=E}get(v,E){return this[v]||E}},h(p,"Service"),b(p,"Service"),p);e.Service=_;var d=(m=class extends _{constructor(){super(...arguments);r(this,"method","GET");r(this,"cached",!1);r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse")}done(v){s.logger.debug("***** RECEIVED RESPONSE:"),s.logger.debug(v.service.template),this.JSONresponse=JSON.parse(v.service.template)}},h(m,"JSONService"),b(m,"JSONService"),m);e.JSONService=d;var f=(u=class extends d{constructor(){super();r(this,"method","GET");r(this,"cached",!1);r(this,"configFileName","config.json");r(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});r(this,"JSONresponse");this.set("url",`${this.get("basePath")}${this.get("configFileName")}`)}configLoaded(){throw Error("Method not implemented.")}done(v){if(s.logger.debug("***** CONFIG LOADED:"),s.logger.debug(v.service.template),this.JSONresponse=JSON.parse(v.service.template),Object.hasOwn(this.JSONresponse,"__encoded__")){let A=t._Crypt.decrypt(this.JSONresponse?.__encoded__,c._secretKey);this.JSONresponse=JSON.parse(A)}let E=this.JSONresponse;Object.keys(E).map(A=>(l.CONFIG.set(A,E[A]),A)),this.configLoaded().catch(A=>{throw new Error(`An error ocurred: ${A}`)})}fail(){this.configLoaded().catch(v=>{throw new Error(`An error ocurred: ${v}`)})}},h(u,"ConfigService"),b(u,"ConfigService"),u);e.ConfigService=f,(0,i.Package)("com.qcobjects.api",[_]),(0,i.Package)("com.qcobjects.api.services",[d]),(0,i.Package)("com.qcobjects.api.config",[f])}}),Hs=L({"node_modules/qcobjects/build/globalSettings.js"(e){"use strict";var d;Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalSettings=void 0;var a=Ze(),t=Se(),n=te(),o=_e(),s=fe(),i=Wr(),c=qe(),l=la(),_=(d=class extends t.InheritClass{constructor(){super(...arguments);r(this,"_GLOBAL",{});r(this,"_logger",new n.Logger)}static __start__(){return d.instance.__start__()}static get instance(){return typeof d._instance>"u"&&(d._instance=new d),d._instance}get logger(){return this._logger}set logger(m){this._logger=m}set(m,u){this._GLOBAL[m]=u}get(m,u){let g;return typeof this._GLOBAL[m]<"u"?g=this._GLOBAL[m]:typeof u<"u"&&(g=u),g}__start__(){let m=b(function(){let g;return s.isBrowser?g=new Promise(function(y,v){"serviceWorker"in navigator&&typeof a.CONFIG.get("serviceWorkerURI")<"u"&&(a.CONFIG.set("serviceWorkerScope",a.CONFIG.get("serviceWorkerScope")?a.CONFIG.get("serviceWorkerScope"):"/"),navigator.serviceWorker.register(a.CONFIG.get("serviceWorkerURI"),{scope:a.CONFIG.get("serviceWorkerScope")}).then(function(E){n.logger.debug("Service Worker Registered"),y.call(g,E)},function(E){n.logger.debug("Error registering Service Worker"),v.call(g,E)}),navigator.serviceWorker.ready.then(function(E){n.logger.debug("Service Worker Ready"),y.call(g,E)},function(E){n.logger.debug("Error loading Service Worker"),v.call(g,E)}))}):g=Promise.resolve(),g},"__load__serviceWorker"),u=b(function(){return new Promise(g=>{if(s.isBrowser){n.logger.debug("Starting to building components");try{(0,c.buildComponentsStack)()}catch(y){throw Error(`Something went wrong trying to start components tree: ${y.message}`)}n.logger.debug("Initializing the service worker"),m.call(c._top).catch(function(y){n.logger.debug(`error loading the service worker ${y}`)})}g()})},"_buildComponents");return new Promise(g=>{n.logger.debug("Starting to load the config settings..."),a.CONFIG.get("useConfigService",!1)?(n.logger.debug("Loading settings using local configuration file..."),(0,c.setConfigService)(new l.ConfigService),c.configService.configLoaded=u,(0,i.serviceLoader)(c.configService)?.then(y=>{g(y)})?.catch(y=>{throw new Error(`An error ocurred while trying to load ${c.configService.url}: ${y}`)})):(n.logger.debug("Starting to load the components..."),u.call(this).then(()=>{g({})}).catch(y=>{throw new Error(`An error ocurred while trying to build the components stack. ${y}`)}))})}},h(d,"_GlobalSettings"),b(d,"GlobalSettings"),r(d,"_instance"),d);e.GlobalSettings=_,(0,o.Package)("com.qcobjects",[_])}}),qe=L({"node_modules/qcobjects/build/top.js"(e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.get=e.set=e.setConfigService=e.configService=e.buildComponentsStack=e.resetTop=e.componentsStack=e._top=void 0;var t=Qr(),n=Et(),o=Hs(),s=Gr(),i=Xe(),c=$t(),l=fe(),_=Ot(),d=te();e._top=typeof a<"u"&&typeof a.exports<"u"&&a.exports||typeof global<"u"&&global||typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof self<"u"&&self!==null&&self||e,e._top.lastCache=void 0,e.componentsStack=[];var f=b(()=>{let v=o.GlobalSettings.instance;e._top=(0,n._CastProps)(v,e._top,!0)},"resetTop");e.resetTop=f;var p=b(()=>{e.componentsStack=(0,t.buildComponents)(document)},"buildComponentsStack");e.buildComponentsStack=p;var m=b(v=>{e._top.global.configService=v,e.configService=v},"setConfigService");e.setConfigService=m;var u=b((v,E)=>{e._top[v]=E},"set");e.set=u;var g=b((v,E)=>e._top[v]||E,"get");e.get=g,(0,e.resetTop)();var y=b(function(v){Object.hasOwn(v,"PackagesList")||Object.defineProperty(v,"PackagesList",{set:b(E=>{d.logger.debug("PackagesList is readonly")},"set"),get:b(()=>(0,_.getPackagesList)(),"get")}),Object.hasOwn(v,"PackagesNameList")||Object.defineProperty(v,"PackagesNameList",{set:b(E=>{d.logger.debug("PackagesNameList is readonly")},"set"),get:b(()=>(0,_.getPackagesNamesList)(),"get")}),Object.hasOwn(v,"ClassesList")||Object.defineProperty(v,"ClassesList",{set:b(E=>{d.logger.debug("ClassesList is readonly")},"set"),get:b(()=>(0,_.getClassesList)(),"get")}),Object.hasOwn(v,"ClassesNameList")||Object.defineProperty(v,"ClassesNameList",{set(E){d.logger.debug("ClassesNameList is readonly")},get:b(()=>(0,_.getClassesNamesList)(),"get")})},"_define_props");l.isBrowser&&((0,s.Class)("GLOBAL",_._QC_CLASSES.global),(0,c.Export)((0,i.ClassFactory)("GLOBAL"))),l.isBrowser&&typeof window<"u"?(0,e.set)("global",window):l.isBrowser&&typeof globalThis<"u"&&(0,e.set)("global",globalThis),y(e._top)}}),da=L({"node_modules/qcobjects/build/captureFalseTouch.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.captureFalseTouch=e.supportsPassive=void 0;var a=te(),t=fe();e.supportsPassive=!1;var n=b(()=>e.supportsPassive?{passive:!0}:!1,"captureFalseTouch");if(e.captureFalseTouch=n,t.isBrowser)try{let o=Object.defineProperty({},"passive",{get(){return e.supportsPassive=!0,e.supportsPassive}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(o){a.logger.debug(`An error ocurred: ${o}.`),e.supportsPassive=!1}else e.supportsPassive=!1}}),Us=L({"node_modules/qcobjects/build/range.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=void 0;var a=xt(),t=b((n,o=0,s=1)=>((o===0||typeof o>"u")&&(o=n,n=0),Array.from({length:(o-n)/s+1},function(i,c){return n+c*s})),"range");e.range=t,a._protected_code_(e.range)}}),ua=L({"node_modules/qcobjects/build/defaultProcessors.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setDefaultProcessors=void 0;var a=te(),t=So(),n=qe(),o=Us(),s=b(()=>{(function(i){let c=b((p,m,u)=>{if(typeof p>"u"||p===null)throw Error(`mapper.${m}.${u} does not have a component instance or it is null.`);let g=i.global.get(u),y=p.get(u),v=p.data[u],E=typeof v<"u"?v:typeof y<"u"?y:g,A="";return typeof E<"u"&&typeof E.map<"u"?A=E.map(function(q){let G=[...Object.keys(q)].map(U=>` data-${U}="${typeof q[U]<"u"&&q[U]!==null?q[U].toString():""}"`).join("");return`<quick-component name="${m}" ${G} ></quick-component>`}).join(""):a.logger.debug(`${m}.${u} does not have a map property`),A},"mapper");t.GlobalProcessor.setProcessor(c);let l=b(function(p,m,u){let g=`
|
|
25
|
-
/* CSS Document for Mobile Imports */
|
|
26
|
-
@import url("${u}") (orientation:portrait);
|
|
27
|
-
@import url("${u}") (max-width:460px);
|
|
28
|
-
@import url("${u}") (aspect-ratio: 9/16);
|
|
29
|
-
@import url("${u}") (aspect-ratio: 10/16);
|
|
30
|
-
@import url("${u}") (aspect-ratio: 5/8);
|
|
31
|
-
@import url("${u}") (aspect-ratio: 3/4);
|
|
32
|
-
@import url("${u}") (aspect-ratio: 2/3);
|
|
33
|
-
`,v={landscape:`
|
|
34
|
-
@import url("${u}") (orientation:landscape) and (min-width:460px);
|
|
35
|
-
@import url("${u}") (aspect-ratio: 16/9) and (min-width:460px);
|
|
36
|
-
@import url("${u}") (aspect-ratio: 16/10) and (min-width:460px);
|
|
37
|
-
@import url("${u}") (aspect-ratio: 8/5) and (min-width:460px);
|
|
38
|
-
@import url("${u}") (aspect-ratio: 4/3) and (min-width:460px);
|
|
39
|
-
@import url("${u}") (aspect-ratio: 3/2) and (min-width:460px);
|
|
40
|
-
`,portrait:g};return Object.hasOwn(v,m)?v[m]:""},"layout");t.GlobalProcessor.setProcessor(l);let _=b((p,m,u,...g)=>{let y=[...g].map(function(E){return{[E.split("=")[0]]:E.split("=")[1]}}).reduce(function(E,A){return Object.assign(E,A)}),v=[...Object.keys(y)].map(function(E){return`${E}=${y[E]}`}).join(" ");return`<component name="${m}" componentClass="${u}" ${v}></component>`},"component");t.GlobalProcessor.setProcessor(_);let d=b((p,m,u,...g)=>{let y=[...g].map(function(E){return{[E.split("=")[0]]:E.split("=")[1]}}).reduce(function(E,A){return Object.assign(E,A)}),v=[...Object.keys(y)].map(function(E){return`${E}=${y[E]}`}).join(" ");return`<quick-component name="${m}" componentClass="${u}" ${v}></quick-component>`},"quick_component");t.GlobalProcessor.setProcessor(d);let f=b((p,m,u)=>(0,o.range)(m).map(function(g){return u.replace("{{index}}",g.toString())}).join(""),"repeat");t.GlobalProcessor.setProcessor(f)})(n._top)},"setDefaultProcessors");e.setDefaultProcessors=s}}),Ws=L({"node_modules/qcobjects/build/findPackageNodePath.js"(e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findPackageNodePath=void 0;var t=Ze(),n=$t(),o=te(),s=fe(),i=b(function(c){let l=null;if(!s.isBrowser){let _=nt("fs");try{let d=[`${t.CONFIG.get("projectPath")}${t.CONFIG.get("relativeImportPath")}`,`${t.CONFIG.get("basePath")}${t.CONFIG.get("relativeImportPath")}`,`${t.CONFIG.get("projectPath")}`,`${t.CONFIG.get("basePath")}`,`${t.CONFIG.get("relativeImportPath")}`,`${process.cwd()}${t.CONFIG.get("relativeImportPath")}`,`${process.cwd()}/node_modules/`+c,`${process.cwd()}/node_modules`,`${process.cwd()}`,"node_modules","./",""].concat(a.paths);d=d.filter(f=>_.existsSync(f+"/"+c)),d.length>0?(l=d[0],o.logger.info(c+" is Installed.")):(l="",o.logger.info(`${c} is not in a standard path.`))}catch(d){console.log(d)}}return l},"findPackageNodePath");e.findPackageNodePath=i,(0,n.Export)(e.findPackageNodePath)}}),Qs=L({"node_modules/qcobjects/build/Import.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Import=void 0;var a=Gt(),t=Ze(),n=pt(),o=ut(),s=Ws(),i=te(),c=fe(),l=Ot(),_=b(function(d,f,p){p!==void 0&&i.logger.debug(`[Import] Setting external=${p.toString()} resource to import: ${d}`),p?i.logger.debug(`[Import] Registering external resource to import: ${d}`):i.logger.debug(`[Import] Registering local resource to import: ${d}`);let m;return c.isBrowser?(m=new Promise(function(u,g){let y=b(function(){let E=!1,A=0;for(let q in l._QC_PACKAGES)A++;return A<l._QC_PACKAGES_IMPORTED.length?E=!1:E=!0,E},"allPackagesImported"),v=b(function(E){l._QC_PACKAGES_IMPORTED.push(f),y()&&l._QC_PACKAGES_IMPORTED.map(A=>l._QC_READY_LISTENERS.push(A)),c.isBrowser&&t.CONFIG.get("removePackageScriptAfterLoading")&&E.target.remove(),u.call(m,{_imported_:E.target,_package_name_:d})},"readyImported");if(!Object.hasOwn(l._QC_PACKAGES,d)){let E=(0,o._DOMCreateElement)("script");E.type=t.CONFIG.get("sourceType","text/javascript"),E.async=!!t.CONFIG.get("asynchronousImportsLoad"),E.onreadystatechange=function(){E.readyState==="complete"&&v(E)},E.onload=v,E.onerror=function(A){i.logger.debug(`An error ocurred: ${A}.`),g.call(m,{_imported_:E,_package_name_:d})},E.src=p?t.CONFIG.get("remoteImportsPath")+d+".js":a._basePath_+t.CONFIG.get("relativeImportPath")+d+".js",document.getElementsByTagName("head")[0].appendChild(E)}}),m.catch(function(){i.logger.debug("Import: Error loading a package ")})):m=new Promise(function(u,g){try{let y=(0,s.findPackageNodePath)(d),v="";if(y!==null)v=y+"/"+d;else{let E=(0,s.findPackageNodePath)(d+".js");E!==null?v=E+"/"+d+".js":v=a._basePath_+t.CONFIG.get("relativeImportPath")+d}try{u.call(m,{_imported_:(0,c._require_)(`${v}`),_package_name_:d})}catch(E){g.call(m,{_imported_:null,_package_name_:d,error:E})}}catch(y){g.call(m,{_imported_:null,_package_name_:d,error:y})}}).catch(function(u){i.logger.debug("Something happened when importing "+d),console.warn(u)}),m.catch(function(u){i.logger.warn((0,n._DataStringify)(u))}),m},"Import");e.Import=_,e.Import.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),Ks=L({"node_modules/qcobjects/build/mathFunctions.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__to_number=void 0;var a=b(function(t){return isNaN(t)?new Number(0):new Number(t)},"__to_number");e.__to_number=a}}),pa=L({"node_modules/qcobjects/build/NamespaceRef.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NamespaceRef=void 0;var a=dr(),t=_e(),n=b(function(o){let i=((0,t.Package)(o)||[]).filter(c=>(0,a.isQCObjects_Class)(c)).map(c=>({[c.__definition.__classType]:c})).reduce((c,l)=>Object.assign(c,l));return o.split(".").map(c=>({[c]:i})).reverse().reduce((c,l)=>(l[Object.keys(l).join(".")]=c,l))},"NamespaceRef");e.NamespaceRef=n}}),fa=L({"node_modules/qcobjects/build/Ready.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._Ready=e.ready=e.Ready=void 0;var a=Ze(),t=fe(),n=Ot(),o=qe(),s=b(c=>{t.isBrowser?n._QC_READY_LISTENERS.push(c.bind(window)):typeof global<"u"&&n._QC_READY_LISTENERS.push(c.bind(global))},"Ready");e.Ready=s,e.ready=e.Ready;var i=b(c=>{let l=b(()=>{n._QC_READY_LISTENERS.map(function(_,d){typeof _=="function"&&(_(),n._QC_READY_LISTENERS.splice(d,1))})},"_execReady");a.CONFIG.get("delayForReady")>0?t.isBrowser?setTimeout(l.bind(window),a.CONFIG.get("delayForReady")):typeof global<"u"&&setTimeout(l.bind(global),a.CONFIG.get("delayForReady")):l.call(o._top)},"_Ready");e._Ready=i}}),ga=L({"node_modules/qcobjects/build/ArrayCollection.js"(e){"use strict";var c,l;Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayCollection=e.ArrayList=void 0;var a=Xe(),t=te(),n=Bt(),o=Ks(),s=(c=class extends Array{constructor(){super(...arguments);r(this,"prototype")}unique(){return this.filter(function(f,p,m){return m.indexOf(f)===p})}table(){console.table(this)}sum(){return this.reduce((f,p)=>(0,o.__to_number)(f)+(0,o.__to_number)(p),0)}avg(){return this.length<1?0:this.reduce((f,p)=>((0,o.__to_number)(f)+(0,o.__to_number)(p))/2)}min(){return this.reduce((f,p)=>(0,o.__to_number)(f)<=(0,o.__to_number)(p)?f:p,1/0)}max(){return this.reduce((f,p)=>(0,o.__to_number)(f)>=(0,o.__to_number)(p)?f:p,0)}sortBy(f,p){let m=p?function(u,g){return g[f]<u[f]?1:-1}:function(u,g){return g[f]>u[f]?1:-1};return this.sort(m)}matrix(f,p){return Array.from({length:f},b(()=>p,"x_func"))}matrix2d(f,p){let m=b(function(){return p},"y_func");return Array.from({length:f},b(function(){return Array.from({length:f},m)},"x_func"))}matrix3d(f,p){let m=b(function(){return Array.from({length:f},function(){return p})},"y_func");return Array.from({length:f},b(function(){return Array.from({length:f},m)},"x_func"))}},h(c,"ArrayList"),b(c,"ArrayList"),c);e.ArrayList=s;var i=(l=class{constructor(){r(this,"source",(0,n.New)(s,[]))}changed(d,f){t.logger.debug("VALUE CHANGED"),t.logger.debug(d),t.logger.debug(f)}push(d){let f=this;return t.logger.debug("VALUE ADDED"),t.logger.debug(d),f.source.push(d)}pop(){let d=this;return t.logger.debug("VALUE POPPED"),d.source.pop()}_new_(d){let f=this,p=0;f.source=(0,n.New)((0,a.ClassFactory)("ArrayList"),d);for(let m in f.source)isNaN(m)||(t.logger.debug("binding "+m.toString()),(function(u){Object.defineProperty(f,u,{set(g){t.logger.debug("setting "+u+"="+g),f.source[u]=g,f.changed(u,g)},get(){return f.source[u]}})})(m),p++);f.source.length=p,Object.defineProperty(f,"length",{get(){return f.source.length}})}},h(l,"ArrayCollection"),b(l,"ArrayCollection"),l);e.ArrayCollection=i}}),ha=L({"node_modules/qcobjects/build/Tag.js"(e){"use strict";var l;Object.defineProperty(e,"__esModule",{value:!0}),e.Tag=e.TagElements=void 0;var a=Xe(),t=Bt(),n=_e(),o=fe(),s=ga(),i=(l=class extends s.ArrayList{show(){this.map(function(d){return d.style.opacity=1})}hide(){this.map(function(d){return d.style.opacity=0})}effect(...d){let f=[...d].slice(1),p=d[0],m;(typeof p).toLowerCase()==="string"&&(m=(0,a.ClassFactory)(p)),this.map(function(u){return m.apply.apply(m,[u].concat(f))})}findElements(d){let f=(0,t.New)((0,a.ClassFactory)("TagElements"));if(o.isBrowser)for(let p in this)typeof p=="number"&&typeof this[p]!="function"&&Object.hasOwn(this[p],"subelements")&&f.push(this[p].subelements(d));return f}},h(l,"TagElements"),b(l,"TagElements"),l);e.TagElements=i;var c=b(function(_,d){let f=(0,t.New)(i);if(o.isBrowser){let p=document.subelements(_),m=[];for(let u=0;u<p.length;u++)typeof d<"u"&&Object.hasOwn(p[u],"innerHTML")&&(p[u].innerHTML=d),m.indexOf(u)<0&&(f.push(p[u]),m.push(u))}return f},"Tag");e.Tag=c,(0,n.Package)("com.qcobjects",[i,e.Tag])}}),_a=L({"node_modules/qcobjects/build/shortCode.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shortCode=void 0;var a=Br(),t=b(()=>{let o=a._Crypt.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...a._Crypt.encrypt((Math.random()*1e3).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString())].map((c,l)=>[...o][l]===c?null:c).filter(c=>c!==null).join("")},"shortCode");e.shortCode=t}}),ma=L({"node_modules/qcobjects/build/super.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._super_=void 0;var a=Xe(),t=b(function(n,o){return(0,a.ClassFactory)(n)[o]},"_super_");e._super_=t,e._super_.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),ba=L({"node_modules/qcobjects/build/waitUntil.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waitUntil=void 0;var a=te(),t=b((n,o)=>{let s=b((i,c)=>{let _=0;var d=setInterval(function(){c()?(clearInterval(d),i(),a.logger.debug("Ejecuting "+i.name+" after wait")):_<2e3?(_+=1,a.logger.debug("WAIT UNTIL "+i.name+" is true, "+_.toString()+" cycles")):(a.logger.debug("Max execution time for "+i.name+" expression until true"),clearInterval(d))},1)},"_waitUntil");setTimeout(function(){s(n,o)},1)},"waitUntil");e.waitUntil=t}}),ya=L({"node_modules/qcobjects/build/subelements.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subelements=void 0;var a=b(h(function(n){return[...this.querySelectorAll(n)]},"subelements2"),"subelements");e.subelements=a}}),yl=L({"node_modules/qcobjects/build/loadSDK.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Ze(),t=Ws(),n=Qs(),o=te(),s=fe(),i=b(()=>{a.CONFIG.get("useSDK")&&(function(){let c=a.CONFIG.get("remoteImportsPath"),l=!a.CONFIG.get("useLocalSDK");a.CONFIG.set("remoteImportsPath",a.CONFIG.get("remoteSDKPath"));let _=!1,d="QCObjects-SDK";if(s.isBrowser)_=!0;else{let f=(0,t.findPackageNodePath)("qcobjects-sdk");f!==null?(d="qcobjects-sdk",_=!0):f!==""?(d="node_modules/qcobjects-sdk/QCObjects-SDK",_=!0):_=!1}_?(o.logger.info("Importing SDK... "+d),s.isNodeCommonJS&&typeof nt<"u"?(0,s._require_)("qcobjects-sdk")?o.logger.debug("QCObjects SDK was loaded OK."):o.logger.debug("QCObjects SDK could not be imported."):(0,n.Import)(d,function(){l?o.logger.debug("QCObjects-SDK.js loaded from remote location"):o.logger.debug("QCObjects-SDK.js loaded from local"),a.CONFIG.set("remoteImportsPath",c)},l)?.catch(f=>{throw new Error(`An error ocurred when trying to import: ${f}`)})):o.logger.debug("SDK has not been imported as it is not available at the moment")})()},"loadSDK");e.default=i}}),Cl=L({"node_modules/qcobjects/build/MainProcess.js"(e){"use strict";var a=e&&e.__importDefault||function(we){return we&&we.__esModule?we:{default:we}};Object.defineProperty(e,"__esModule",{value:!0});var t=qe(),n=Hr(),o=da(),s=Et(),i=Gr(),c=Xe(),l=Bs(),_=Qr(),d=Gs(),f=Ze(),p=pt(),m=ua(),u=$t(),g=Qs(),y=xt(),v=dr(),E=te(),A=Ks(),q=pa(),G=Bt(),U=lr(),j=_e(),N=fe(),I=fa(),B=Wr(),ie=ha(),uo=So(),w=ur(),S=dt(),P=_a(),M=ut(),T=Ur(),R=ma(),V=ba(),F=ya(),W=Hs(),ae=a(yl()),Ce=Us();b(h(function we(ce){if(typeof Object.defineProperty<"u"&&typeof ce<"u")try{Object.defineProperty(ce,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:we})}catch(D){E.logger.debug(`An error ocurred: ${D}`),typeof ce.__qcobjects__<"u"&&(ce.__qcobjects__.loaded=!0)}typeof ce.__qcobjects__.loaded>"u"&&(ce.__qcobjects__.loaded=!0,N.isBrowser&&(Element.prototype.subelements=F.subelements,Document.prototype.subelements=F.subelements,HTMLElement.prototype.subelements=F.subelements,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=F.subelements)),E.logger.debugEnabled=!1,E.logger.infoEnabled=!0,N.isBrowser&&(Element.prototype.find=function(D){let x=this,X=[],ve=document.subelements(D);return ve.map((be,Be)=>(typeof ve[Be]<"u"&&ve[Be].parentNode.tagName===x.parentNode.tagName&&X.push((0,s._Cast)(be,new Object)),be)),X}),N.isBrowser&&(Element.prototype.append=b(h(function(x){(0,v.isQCObjects_Object)(x)||typeof x.body<"u"?this.appendChild(x.body):this.appendChild(x)},"QC_Append"),"QC_Append"),Element.prototype.render=b(h(function(x){let X=this,ve=b((be,Be)=>{if(typeof document.implementation.createHTMLDocument<"u"){let Qe=document.implementation.createHTMLDocument("");Qe.body.innerHTML=Be,Qe.body.subelements("*").map(et=>be.append(et))}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=x}catch(be){E.logger.debug(`An error ocurred: ${be}`),ve(X,x)}else ve(X,x)},"QC_Render"),"QC_Render")),(0,u.Export)(V.waitUntil),(0,u.Export)(R._super_),(0,u.Export)(T.ComplexStorageCache),(0,u.Export)(c.ClassFactory),(0,u.Export)(M._DOMCreateElement),(0,u.Export)(P.shortCode),(0,u.Export)(S.__getType__),(0,u.Export)(w.is_a),(0,j.Package)("com.qcobjects",[uo.Processor]),N.isBrowser&&(Element.prototype.Cast=b(h(function(x){let X=this;return(0,s._Cast)(X,x)},"QC_Cast"),"QC_Cast")),N.isBrowser?(window.onload=I._Ready,N.is_phonegap&&document.addEventListener("deviceready",I._Ready,o.captureFalseTouch)):global.onload=I._Ready,N.isBrowser&&window.addEventListener("popstate",function(D){D.stopImmediatePropagation(),D.stopPropagation(),l.Component.route().catch(x=>{throw new Error(`An error ocurred when trying to load initial routes. ${x}`)})}),(0,u.Export)(B.serviceLoader),(0,u.Export)(d.componentLoader),(0,u.Export)(_.ComponentURI),(0,u.Export)(U.ObjectName),(0,u.Export)(p._DataStringify),(0,u.Export)(v.isQCObjects_Class),(0,u.Export)(v.isQCObjects_Object),(0,u.Export)(q.NamespaceRef),Array.prototype.unique=function(){return this.filter(function(D,x,X){return X.indexOf(D)===x})},Array.unique=function(D){return D.unique()},y._protected_code_(Array.unique),y._protected_code_(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(D){D.table()},y._protected_code_(Array.table),y._protected_code_(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(D,x){return(0,A.__to_number)(D)+(0,A.__to_number)(x)},0)},Array.sum=function(D){return D.sum()},y._protected_code_(Array.sum),y._protected_code_(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(D,x){return((0,A.__to_number)(D)+(0,A.__to_number)(x))/2})},Array.avg=function(D){return D.avg()},y._protected_code_(Array.avg),y._protected_code_(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(D,x){return(0,A.__to_number)(D)<=(0,A.__to_number)(x)?D:x},1/0)},Array.min=function(D){return D.min()},y._protected_code_(Array.min),y._protected_code_(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(D,x){return(0,A.__to_number)(D)>=(0,A.__to_number)(x)?D:x},0)},Array.max=function(D){return D.max()},y._protected_code_(Array.max),y._protected_code_(Array.prototype.max),Array.prototype.sortBy=function(D,x=!0){let X=x?function(ve,be){return be[D]<ve[D]?1:-1}:function(ve,be){return be[D]>ve[D]?1:-1};return this.sort(X)},Array.sortBy=function(D,x,X=!0){return D.sortBy(x,X)},y._protected_code_(Array.sortBy),y._protected_code_(Array.prototype.sortBy),Array.prototype.matrix=function(D,x=0){return Array.from({length:D},b(function(ve=void 0){return x},"x_func"))},Array.matrix=function(D,x,X=0){return D.matrix(x,X)},y._protected_code_(Array.matrix),y._protected_code_(Array.prototype.matrix),Array.prototype.matrix2d=function(D,x=0){let X=b(function(be){return x},"y_func");return Array.from({length:D},b(function(be){return Array.from({length:D},X)},"x_func"))},Array.matrix2d=function(D,x,X=0){return D.matrix2d(x,X)},y._protected_code_(Array.matrix2d),y._protected_code_(Array.prototype.matrix2d),Array.prototype.matrix3d=function(D,x=0){let X=b(function(be){return Array.from({length:D},function(){return x})},"y_func");return Array.from({length:D},b(function(be){return Array.from({length:D},X)},"x_func"))},Array.matrix3d=function(D,x,X=0){return D.matrix3d(x,X)},y._protected_code_(Array.matrix3d),y._protected_code_(Array.prototype.matrix3d),String.prototype.list=function(){let D=this;return(0,Ce.range)(0,D.length-1).map(function(x){return D[x]})},y._protected_code_(String.prototype.list),(0,m.setDefaultProcessors)(),(0,I.Ready)(function(){f.CONFIG.get("useSDK")||W.GlobalSettings.__start__().catch(D=>{throw Error(D)})}),(0,u.Export)(u.Export),(0,u.Export)(g.Import),(0,u.Export)(j.Package),(0,u.Export)(i.Class),(0,u.Export)(G.New),(0,u.Export)(ie.Tag),(0,u.Export)(I.Ready),(0,u.Export)(I.ready),(0,u.Export)(N.isBrowser),(0,u.Export)(y._methods_),(0,u.Export)(W.GlobalSettings),ae.default(),N.isBrowser&&(0,n.asyncLoad)(function(){(0,I.Ready)(function(){(function(D){let x=!1,X=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),ve=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function be(Be){let Qe=Math.round(D.scrollY*100/X),et=Math.round(D.scrollX*100/ve),xo=new CustomEvent("scrollpercent",{detail:{percentX:et,percentY:Qe}});Be.target.dispatchEvent(xo);let ne="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(Qt){return Qt===Qe}).map(function(Qt){ne="percentY"+Qe.toString();let Yr=new CustomEvent(ne,{detail:{percentX:et,percentY:Qe}});return Be.target.dispatchEvent(Yr),Qt})}h(be,"scrollDispatcher"),b(be,"scrollDispatcher"),document.addEventListener("scroll",function(Be){x||(requestAnimationFrame(function(){be(Be),x=!1}),x=!0)})})(ce)})},[]),N.isBrowser||(typeof ce.global<"u"&&Object.hasOwn(ce.global,"_fireAsyncLoad")&&n._fireAsyncLoad.call(ce),typeof ce.global<"u"&&Object.hasOwn(ce.global,"onload")&&ce.global.onload.call(ce)),(function(D){let x=b(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");D&&f.CONFIG.get("secureObjects",!1)?(0,I.Ready)(function(){x()}):f.CONFIG.get("secureObjects",!1)&&x()})(N.isBrowser))},"__qcobjects__"),"__qcobjects__")(t._top)}}),wl=L({"node_modules/qcobjects/build/BackendMicroservice.js"(e){"use strict";var l;Object.defineProperty(e,"__esModule",{value:!0}),e.BackendMicroservice=void 0;var a=Gt(),t=pt(),n=pr(),o=Se(),s=te(),i=_e(),c=(l=class extends o.InheritClass{constructor({domain:f=n._domain_,basePath:p=a._basePath_,body:m=null,stream:u=null,request:g=null}){super({domain:f,basePath:p,body:m,stream:u,request:g});r(this,"stream");r(this,"route");r(this,"headers");r(this,"request");s.logger.debug("Initializing BackendMicroservice...");let y=this;typeof this.body>"u"&&(this.body=null),typeof m<"u"&&(this.body=m),this.cors(),y.stream=u,u?.on("data",A=>{let q=g?.method.toLowerCase(),G={post:y.post.bind(y)};Object.hasOwn(G,q)&&G[q].call(y,A)});let v=g?.method.toLowerCase(),E={get:y.get.bind(y),head:y.head.bind(y),put:y.put.bind(y),delete:y.delete.bind(y),connect:y.connect.bind(y),options:y.options.bind(y),trace:y.trace.bind(y),patch:y.patch.bind(y)};Object.hasOwn(E,v)&&E[v].call(y)}cors(){if(this.route.cors){s.logger.debug("Validating CORS...");let{allow_origins:f,allow_credentials:p,allow_methods:m,allow_headers:u}=this.route.cors,g=this;if(typeof g.headers!="object"&&(g.headers={}),typeof g.route.responseHeaders!="object"&&(g.route.responseHeaders={}),typeof f<"u")if(s.logger.debug("CORS: allow_origins available. Validating origins..."),f==="*"||typeof g.request.headers.origin>"u"||[...f].indexOf(g.request.headers.origin)!==-1)s.logger.debug("CORS: Adding header Access-Control-Allow-Origin=*"),g.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{s.logger.debug("CORS: Origin is not allowed: "+g.request.headers.origin),s.logger.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(y){s.logger.debug(`It was not possible to finish the call to the microservice: ${y}`)}}else s.logger.debug("CORS: no allow_origins available. Allowing all origins..."),s.logger.debug("CORS: Adding header Access-Control-Allow-Origin=*"),g.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof p<"u"?(s.logger.debug(`CORS: allow_credentials present. Allowing ${p}...`),g.route.responseHeaders["Access-Control-Allow-Credentials"]=p.toString()):(s.logger.debug("CORS: No allow_credentials present. Allowing all credentials."),g.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof m<"u"?(s.logger.debug(`CORS: allow_methods present. Allowing ${m}...`),g.route.responseHeaders["Access-Control-Allow-Methods"]=[...m].join(",")):(s.logger.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),g.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof u<"u"?(s.logger.debug(`CORS: allow_headers present. Allowing ${u}...`),g.route.responseHeaders["Access-Control-Allow-Headers"]=[...u].join(",")):(s.logger.debug("CORS: No allow_headers present. Allowing all headers..."),g.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else s.logger.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(f){s.logger.debug(`[BackendMicroservice.head] Data received: ${(0,t._DataStringify)(f)}`),this.done()}get(f){s.logger.debug(`[BackendMicroservice.get] Data received: ${(0,t._DataStringify)(f)}`),this.done()}post(f){s.logger.debug(`[BackendMicroservice.post] Data received: ${(0,t._DataStringify)(f)}`),this.done()}put(f){s.logger.debug(`[BackendMicroservice.put] Data received: ${(0,t._DataStringify)(f)}`),this.done()}delete(f){s.logger.debug(`[BackendMicroservice.delete] Data received: ${(0,t._DataStringify)(f)}`),this.done()}connect(f){s.logger.debug(`[BackendMicroservice.connect] Data received: ${(0,t._DataStringify)(f)}`),this.done()}options(f){s.logger.debug(`[BackendMicroservice.options] Data received: ${(0,t._DataStringify)(f)}`),this.done()}trace(f){s.logger.debug(`[BackendMicroservice.trace] Data received: ${(0,t._DataStringify)(f)}`),this.done()}patch(f){s.logger.debug(`[BackendMicroservice.patch] Data received: ${(0,t._DataStringify)(f)}`),this.done()}finishWithBody(f){try{s.logger.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),s.logger.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=(0,t._DataStringify)(this.body)),s.logger.debug(`[BackendMicroservice.finishWithBody]
|
|
41
|
-
body: ${this.body} `),f?.write(this.body),f?.end(),s.logger.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(p){s.logger.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${p}`)}}done(){s.logger.debug("[BackendMicroservice.done] Finalizing the response...");let f=this,p=f.stream;try{if(s.logger.debug("[BackendMicroservice.done] Sending response headers..."),f.route.responseHeaders)s.logger.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(f.route.responseHeaders).join(",")}`),p.respond(f.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(m){s.logger.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${m}`)}if(f.body!==null)try{s.logger.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),f.finishWithBody.call(f,p)}catch(m){s.logger.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${m}`)}else s.logger.debug("[BackendMicroservice.done] No body present. Ending stream..."),p.end()}},h(l,"BackendMicroservice"),b(l,"BackendMicroservice"),l);e.BackendMicroservice=c,(0,i.Package)("com.qcobjects.api",[c])}}),Ca=L({"node_modules/qcobjects/build/RegisterClass.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterClass=void 0;var a=xr(),t=Ot(),n=b(function(o,s){return(0,t.__register_class__)(o,s)},"RegisterClass");e.RegisterClass=n,(0,a.__make_global__)(e.RegisterClass)}}),vl=L({"node_modules/qcobjects/build/DefaultTemplateHandler.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultTemplateHandler=void 0;var a=te(),t=So(),n=Ca(),o=(s=class{constructor({component:c,template:l}){r(this,"template","");r(this,"__definition",{});r(this,"component");this.component=c,this.template=l}assign(c){let l=this;if(typeof l.component>"u")throw new Error("DefaultTemplateHandler.assign: component is undefined");if(typeof l.component.processorHandler>"u")throw new Error("DefaultTemplateHandler.assign: component.processorHandler is undefined");let _=l.component.processorHandler;_.component=l.component;let d=typeof l.template<"u"?l.template:"";typeof c=="object"?[...Object.keys(c)].map(f=>{let p=c[f];if(typeof p=="string"||typeof p=="number"||!isNaN(p))try{p=t.GlobalProcessor.processObject.bind(_).call(_,p,l.component),d=d.replace(new RegExp(`{{${f}}}`,"g"),p)}catch(m){throw a.logger.warn(`${l.component?.name} could not parse processors.`),Error(`${l.component?.name} could not parse processors. Reason: ${m.message}`)}return f}):a.logger.debug(`${l.component?.name}.data is not an object`);try{d=t.GlobalProcessor.processObject.call(_,d,l.component)}catch(f){throw a.logger.warn(`${l.component?.name} could not parse processors.`),Error(`${l.component?.name} could not parse processors. Reason: ${f.message}`)}return d}},h(s,"DefaultTemplateHandler"),b(s,"DefaultTemplateHandler"),r(s,"__definition",{}),s);e.DefaultTemplateHandler=o,(0,n.RegisterClass)(o,"com.qcobjects")}}),Ol=L({"node_modules/qcobjects/build/SourceJS.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceJS=void 0;var a=Gt(),t=Et(),n=pr(),o=ut(),s=Se(),i=_e(),c=te(),l=(_=class extends s.InheritClass{constructor(p){super(p);r(this,"domain",n._domain_);r(this,"basePath",a._basePath_);r(this,"type","text/javascript");r(this,"containerTag","body");r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);r(this,"status",!1);this.body=(0,o._DOMCreateElement)("script")}set(p,m){this[p]=m}get(p,m){return this[p]||m}done(){}fail(){}rebuild(){let p=this;try{document.getElementsByTagName(p.containerTag)[0].appendChild(function(m,u,g){return m.type=g.type,m.src=u,m.crossOrigin=Object.hasOwn(g,"crossOrigin")?g.crossOrigin:"anonymous",m.async=g.async,m.onreadystatechange=function(){this.readyState==="complete"&&g.done.call(g)},m.onload=function(y){g.status=!0,g.done.call(g,y)},m.onerror=function(y){g.status=!1,g.fail.call(g,y)},g.body=m,m}.call(this,(0,o._DOMCreateElement)("script"),this.external?this.url:this.basePath+this.url,p))}catch(m){p.status=!1,c.logger.debug(`An error ocurred: ${m}`),p.fail()}}Cast(p){return(0,t._Cast)(this,p)}_new_(p){this.__new__(p),this.rebuild()}},h(_,"SourceJS2"),b(_,"SourceJS"),_);e.SourceJS=l,(0,i.Package)("com.qcobjects",[l])}}),El=L({"node_modules/qcobjects/build/SourceCSS.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceCSS=void 0;var a=Gt(),t=Et(),n=pr(),o=ut(),s=Se(),i=fe(),c=_e(),l=(_=class extends s.InheritClass{constructor(p){super(p);r(this,"domain",n._domain_);r(this,"basePath",a._basePath_);r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);this.body=(0,o._DOMCreateElement)("link")}fail(){throw new Error("Method not implemented.")}Cast(p){return(0,t._Cast)(this,p)}set(p,m){this[p]=m}get(p,m){return this[p]||m}done(){}rebuild(){let p=this;i.isBrowser&&window.document.getElementsByTagName("head")[0].appendChild(function(m,u,g){return m.type="text/css",m.rel="stylesheet",m.href=u,m.crossOrigin="anonymous",m.onreadystatechange=function(){this.readyState==="complete"&&g.done.call(g)},m.onload=g.done,g.body=m,m}.call(this,(0,o._DOMCreateElement)("link"),this.external?this.url:this.basePath+this.url,p))}},h(_,"SourceCSS3"),b(_,"SourceCSS"),_);e.SourceCSS=l,(0,c.Package)("com.qcobjects",[l])}}),Sl=L({"node_modules/qcobjects/build/WidgetsFactory.js"(e){"use strict";var l,_,d;Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterWidgets=e.RegisterWidget=e._ComponentWidget_=void 0;var a=ut(),t=$t(),n=xt(),o=fe(),s=(l=class{constructor(){r(this,"writingSuggestions");r(this,"currentCSSZoom");r(this,"ariaColIndexText");r(this,"ariaRowIndexText");r(this,"accessKey");r(this,"accessKeyLabel");r(this,"autocapitalize");r(this,"dir");r(this,"draggable");r(this,"hidden");r(this,"inert");r(this,"innerText");r(this,"lang");r(this,"offsetHeight");r(this,"offsetLeft");r(this,"offsetParent");r(this,"offsetTop");r(this,"offsetWidth");r(this,"outerText");r(this,"popover");r(this,"spellcheck");r(this,"title");r(this,"translate");r(this,"attributes");r(this,"classList");r(this,"className");r(this,"clientHeight");r(this,"clientLeft");r(this,"clientTop");r(this,"clientWidth");r(this,"id");r(this,"innerHTML");r(this,"localName");r(this,"namespaceURI");r(this,"onfullscreenchange");r(this,"onfullscreenerror");r(this,"outerHTML");r(this,"ownerDocument");r(this,"part");r(this,"prefix");r(this,"scrollHeight");r(this,"scrollLeft");r(this,"scrollTop");r(this,"scrollWidth");r(this,"shadowRoot");r(this,"slot");r(this,"tagName");r(this,"baseURI");r(this,"childNodes");r(this,"firstChild");r(this,"isConnected");r(this,"lastChild");r(this,"nextSibling");r(this,"nodeName");r(this,"nodeType");r(this,"nodeValue");r(this,"parentElement");r(this,"parentNode");r(this,"previousSibling");r(this,"textContent");r(this,"ELEMENT_NODE");r(this,"ATTRIBUTE_NODE");r(this,"TEXT_NODE");r(this,"CDATA_SECTION_NODE");r(this,"ENTITY_REFERENCE_NODE");r(this,"ENTITY_NODE");r(this,"PROCESSING_INSTRUCTION_NODE");r(this,"COMMENT_NODE");r(this,"DOCUMENT_NODE");r(this,"DOCUMENT_TYPE_NODE");r(this,"DOCUMENT_FRAGMENT_NODE");r(this,"NOTATION_NODE");r(this,"DOCUMENT_POSITION_DISCONNECTED");r(this,"DOCUMENT_POSITION_PRECEDING");r(this,"DOCUMENT_POSITION_FOLLOWING");r(this,"DOCUMENT_POSITION_CONTAINS");r(this,"DOCUMENT_POSITION_CONTAINED_BY");r(this,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC");r(this,"ariaAtomic");r(this,"ariaAutoComplete");r(this,"ariaBrailleLabel");r(this,"ariaBrailleRoleDescription");r(this,"ariaBusy");r(this,"ariaChecked");r(this,"ariaColCount");r(this,"ariaColIndex");r(this,"ariaColSpan");r(this,"ariaCurrent");r(this,"ariaDescription");r(this,"ariaDisabled");r(this,"ariaExpanded");r(this,"ariaHasPopup");r(this,"ariaHidden");r(this,"ariaInvalid");r(this,"ariaKeyShortcuts");r(this,"ariaLabel");r(this,"ariaLevel");r(this,"ariaLive");r(this,"ariaModal");r(this,"ariaMultiLine");r(this,"ariaMultiSelectable");r(this,"ariaOrientation");r(this,"ariaPlaceholder");r(this,"ariaPosInSet");r(this,"ariaPressed");r(this,"ariaReadOnly");r(this,"ariaRequired");r(this,"ariaRoleDescription");r(this,"ariaRowCount");r(this,"ariaRowIndex");r(this,"ariaRowSpan");r(this,"ariaSelected");r(this,"ariaSetSize");r(this,"ariaSort");r(this,"ariaValueMax");r(this,"ariaValueMin");r(this,"ariaValueNow");r(this,"ariaValueText");r(this,"role");r(this,"nextElementSibling");r(this,"previousElementSibling");r(this,"childElementCount");r(this,"children");r(this,"firstElementChild");r(this,"lastElementChild");r(this,"assignedSlot");r(this,"attributeStyleMap");r(this,"style");r(this,"contentEditable");r(this,"enterKeyHint");r(this,"inputMode");r(this,"isContentEditable");r(this,"onabort");r(this,"onanimationcancel");r(this,"onanimationend");r(this,"onanimationiteration");r(this,"onanimationstart");r(this,"onauxclick");r(this,"onbeforeinput");r(this,"onbeforetoggle");r(this,"onblur");r(this,"oncancel");r(this,"oncanplay");r(this,"oncanplaythrough");r(this,"onchange");r(this,"onclick");r(this,"onclose");r(this,"oncontextlost");r(this,"oncontextmenu");r(this,"oncontextrestored");r(this,"oncopy");r(this,"oncuechange");r(this,"oncut");r(this,"ondblclick");r(this,"ondrag");r(this,"ondragend");r(this,"ondragenter");r(this,"ondragleave");r(this,"ondragover");r(this,"ondragstart");r(this,"ondrop");r(this,"ondurationchange");r(this,"onemptied");r(this,"onended");r(this,"onerror");r(this,"onfocus");r(this,"onformdata");r(this,"ongotpointercapture");r(this,"oninput");r(this,"oninvalid");r(this,"onkeydown");r(this,"onkeypress");r(this,"onkeyup");r(this,"onload");r(this,"onloadeddata");r(this,"onloadedmetadata");r(this,"onloadstart");r(this,"onlostpointercapture");r(this,"onmousedown");r(this,"onmouseenter");r(this,"onmouseleave");r(this,"onmousemove");r(this,"onmouseout");r(this,"onmouseover");r(this,"onmouseup");r(this,"onpaste");r(this,"onpause");r(this,"onplay");r(this,"onplaying");r(this,"onpointercancel");r(this,"onpointerdown");r(this,"onpointerenter");r(this,"onpointerleave");r(this,"onpointermove");r(this,"onpointerout");r(this,"onpointerover");r(this,"onpointerup");r(this,"onprogress");r(this,"onratechange");r(this,"onreset");r(this,"onresize");r(this,"onscroll");r(this,"onscrollend");r(this,"onsecuritypolicyviolation");r(this,"onseeked");r(this,"onseeking");r(this,"onselect");r(this,"onselectionchange");r(this,"onselectstart");r(this,"onslotchange");r(this,"onstalled");r(this,"onsubmit");r(this,"onsuspend");r(this,"ontimeupdate");r(this,"ontoggle");r(this,"ontouchcancel");r(this,"ontouchend");r(this,"ontouchmove");r(this,"ontouchstart");r(this,"ontransitioncancel");r(this,"ontransitionend");r(this,"ontransitionrun");r(this,"ontransitionstart");r(this,"onvolumechange");r(this,"onwaiting");r(this,"onwebkitanimationend");r(this,"onwebkitanimationiteration");r(this,"onwebkitanimationstart");r(this,"onwebkittransitionend");r(this,"onwheel");r(this,"autofocus");r(this,"dataset");r(this,"nonce");r(this,"tabIndex")}attachInternals(){throw new Error("Method not implemented.")}click(){throw new Error("Method not implemented.")}hidePopover(){throw new Error("Method not implemented.")}showPopover(){throw new Error("Method not implemented.")}togglePopover(p){throw new Error("Method not implemented.")}addEventListener(p,m,u){throw new Error("Method not implemented.")}removeEventListener(p,m,u){throw new Error("Method not implemented.")}attachShadow(p){throw new Error("Method not implemented.")}checkVisibility(p){throw new Error("Method not implemented.")}closest(p){throw new Error("Method not implemented.")}computedStyleMap(){throw new Error("Method not implemented.")}getAttribute(p){throw new Error("Method not implemented.")}getAttributeNS(p,m){throw new Error("Method not implemented.")}getAttributeNames(){throw new Error("Method not implemented.")}getAttributeNode(p){throw new Error("Method not implemented.")}getAttributeNodeNS(p,m){throw new Error("Method not implemented.")}getBoundingClientRect(){throw new Error("Method not implemented.")}getClientRects(){throw new Error("Method not implemented.")}getElementsByClassName(p){throw new Error("Method not implemented.")}getElementsByTagName(p){throw new Error("Method not implemented.")}getElementsByTagNameNS(p,m){throw new Error("Method not implemented.")}getHTML(p){throw new Error("Method not implemented.")}hasAttribute(p){throw new Error("Method not implemented.")}hasAttributeNS(p,m){throw new Error("Method not implemented.")}hasAttributes(){throw new Error("Method not implemented.")}hasPointerCapture(p){throw new Error("Method not implemented.")}insertAdjacentElement(p,m){throw new Error("Method not implemented.")}insertAdjacentHTML(p,m){throw new Error("Method not implemented.")}insertAdjacentText(p,m){throw new Error("Method not implemented.")}matches(p){throw new Error("Method not implemented.")}releasePointerCapture(p){throw new Error("Method not implemented.")}removeAttribute(p){throw new Error("Method not implemented.")}removeAttributeNS(p,m){throw new Error("Method not implemented.")}removeAttributeNode(p){throw new Error("Method not implemented.")}requestFullscreen(p){throw new Error("Method not implemented.")}requestPointerLock(p){throw new Error("Method not implemented.")}scroll(p,m){throw new Error("Method not implemented.")}scrollBy(p,m){throw new Error("Method not implemented.")}scrollIntoView(p){throw new Error("Method not implemented.")}scrollTo(p,m){throw new Error("Method not implemented.")}setAttribute(p,m){throw new Error("Method not implemented.")}setAttributeNS(p,m,u){throw new Error("Method not implemented.")}setAttributeNode(p){throw new Error("Method not implemented.")}setAttributeNodeNS(p){throw new Error("Method not implemented.")}setHTMLUnsafe(p){throw new Error("Method not implemented.")}setPointerCapture(p){throw new Error("Method not implemented.")}toggleAttribute(p,m){throw new Error("Method not implemented.")}webkitMatchesSelector(p){throw new Error("Method not implemented.")}appendChild(p){throw new Error("Method not implemented.")}cloneNode(p){throw new Error("Method not implemented.")}compareDocumentPosition(p){throw new Error("Method not implemented.")}contains(p){throw new Error("Method not implemented.")}getRootNode(p){throw new Error("Method not implemented.")}hasChildNodes(){throw new Error("Method not implemented.")}insertBefore(p,m){throw new Error("Method not implemented.")}isDefaultNamespace(p){throw new Error("Method not implemented.")}isEqualNode(p){throw new Error("Method not implemented.")}isSameNode(p){throw new Error("Method not implemented.")}lookupNamespaceURI(p){throw new Error("Method not implemented.")}lookupPrefix(p){throw new Error("Method not implemented.")}normalize(){throw new Error("Method not implemented.")}removeChild(p){throw new Error("Method not implemented.")}replaceChild(p,m){throw new Error("Method not implemented.")}dispatchEvent(p){throw new Error("Method not implemented.")}animate(p,m){throw new Error("Method not implemented.")}getAnimations(p){throw new Error("Method not implemented.")}after(...p){throw new Error("Method not implemented.")}before(...p){throw new Error("Method not implemented.")}remove(){throw new Error("Method not implemented.")}replaceWith(...p){throw new Error("Method not implemented.")}append(...p){throw new Error("Method not implemented.")}prepend(...p){throw new Error("Method not implemented.")}querySelector(p){throw new Error("Method not implemented.")}querySelectorAll(p){throw new Error("Method not implemented.")}replaceChildren(...p){throw new Error("Method not implemented.")}blur(){throw new Error("Method not implemented.")}focus(p){throw new Error("Method not implemented.")}},h(l,"QCObjectsWidgetNode"),b(l,"QCObjectsWidgetNode"),l);o.isBrowser?e._ComponentWidget_=(_=class extends HTMLElement{constructor(){super();let p=this,m=p.nodeName.toLowerCase(),u=(0,a._DOMCreateElement)("quick-component"),g=p.getAttributeNames();u.setAttribute("name",m),p.hasAttribute("shadowed")||u.setAttribute("shadowed","true"),g.forEach(v=>{p.hasAttribute(v)&&(u.setAttribute(v,p?.getAttribute(v)),p.removeAttribute(v))}),p.getAttributeNames().filter(function(v){return v.startsWith("data-")}).map(function(v){return v.split("-")[1]}).forEach(function(v){u.setAttribute("data-"+v,p?.getAttribute("data-"+v)),p.removeAttribute("data-"+v)}),[...p.children].forEach(v=>{u.appendChild(v.cloneNode(!0)),v.remove()}),p.append(u)}},h(_,"_ComponentWidget_"),b(_,"_ComponentWidget_"),_):e._ComponentWidget_=(d=class extends s{constructor(){throw super(),new Error("Class not implemented.")}},h(d,"_ComponentWidget_"),b(d,"_ComponentWidget_"),d),(0,t.Export)(e._ComponentWidget_);var i=b(f=>{if(o.isBrowser)customElements.define(f,class extends e._ComponentWidget_{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget");e.RegisterWidget=i;var c=b((...f)=>{[...f].filter(function(m){return typeof m=="string"}).map(function(m){return(0,e.RegisterWidget)(m)})},"RegisterWidgets");e.RegisterWidgets=c,n._protected_code_(e.RegisterWidget),n._protected_code_(e.RegisterWidgets),(0,t.Export)(e.RegisterWidget),(0,t.Export)(e.RegisterWidgets)}}),Nl=L({"node_modules/qcobjects/build/Controller.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var a=Xe(),t=dt(),n=Se(),o=te(),s=Bt(),i=_e(),c=fe(),l=(_=class extends n.InheritClass{constructor({component:p,dependencies:m}){super({component:p,dependencies:m});r(this,"component");r(this,"dependencies",[]);if(this.component=p,this.dependencies=m,typeof this.component>"u"||this.component===null)throw Error(`${(0,t.__getType__)(this)} must be called with a component`)}fail(...p){throw new Error("Method not implemented.")}routingSelectedAttr(p){return this.component?.routingSelected.map(m=>m[p]).filter(function(m){return m}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(p,m){if(c.isBrowser)try{this.isTouchable()?(this.component?.componentRoot?.subelements(p))[0].addEventListener("touchstart",m,{passive:!0}):(this.component?.componentRoot?.subelements(p))[0].addEventListener("click",m,{passive:!0})}catch(u){o.logger.debug(`An error ocurred: ${u}.`),o.logger.debug("No button to assign press event")}}createRoutingController(){let p=this,m=p.component,u=p.routingSelectedAttr("controllerclass");if(typeof u<"u"){let g=(0,a.ClassFactory)(u);typeof g<"u"&&m!==null&&(m.routingController=(0,s.New)(g,{component:m}),typeof m.routingController<"u"&&Object.hasOwn(m.routingController,"done")&&typeof m.routingController.done=="function"&&m.routingController.done.call(m.routingController))}}done(){}},h(_,"Controller8"),b(_,"Controller"),_);e.Controller=l,(0,i.Package)("com.qcobjects.controllers",[l])}}),Pl=L({"node_modules/qcobjects/build/View.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;var a=dt(),t=Se(),n=_e(),o=(s=class extends t.InheritClass{constructor({component:c=void 0,dependencies:l=[]}){if(super({component:c,dependencies:l}),typeof this.component>"u"||this.component==="null")throw Error(`${(0,a.__getType__)(this)} must be called with a component`)}},h(s,"View2"),b(s,"View"),s);e.View=o,(0,n.Package)("com.qcobjects.views",[o])}}),Al=L({"node_modules/qcobjects/build/VO.js"(e){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.VO=void 0;var a=Se(),t=_e(),n=(o=class extends a.InheritClass{},h(o,"VO2"),b(o,"VO"),o);e.VO=n,(0,t.Package)("com.qcobjects.valueObjects",[n])}}),wa=L({"node_modules/qcobjects/build/Effect.js"(e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.Effect=void 0;var a=Se(),t=_e(),n=xt(),o=Xe(),s=(i=class extends a.InheritClass{constructor(){super(...arguments);r(this,"duration",1e3)}done(..._){throw new Error("Method not implemented.")}apply(..._){throw new Error("Method not implemented.")}animate({timing:_,draw:d,duration:f}){let p=this,m=performance.now();requestAnimationFrame(b(h(function u(g){let y=(g-m)/f;y>1&&(y=1);let v=_(y);d(Math.round(v*100)),y<1?requestAnimationFrame(u):typeof p<"u"&&p!==null&&Object.hasOwn(p,"done")&&(typeof p.done).toLowerCase()==="function"&&p.done.call(p)},"animate"),"animate"))}},h(i,"Effect3"),b(i,"Effect"),i);e.Effect=s,(0,t.Package)("com.qcobjects.effects.base",[s]),n._methods_((0,o.ClassFactory)("Effect")).map(c=>(n._protected_code_(c),c))}}),Tl=L({"node_modules/qcobjects/build/TransitionEffect.js"(e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.TransitionEffect=void 0;var a=wa(),t=te(),n=_e(),o=Xe(),s=(i=class extends a.Effect{constructor(){super(...arguments);r(this,"duration",385);r(this,"defaultParams",{alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1});r(this,"fitToHeight",!1);r(this,"fitToWidth",!1);r(this,"component");r(this,"effects")}apply({alphaFrom:_,alphaTo:d,angleFrom:f,angleTo:p,radiusFrom:m,radiusTo:u,scaleFrom:g,scaleTo:y}){let v=this;t.logger.info("EXECUTING TransitionEffect ");let E=v.component.componentRoot;typeof E<"u"&&E!==null&&(v.fitToHeight&&(E.height=typeof E.offsetParent=="object"&&E.offsetParent!==null?E.offsetParent?.scrollHeight:E.getBoundingClientRect().height),v.fitToWidth&&(E.width=typeof E.offsetParent=="object"&&E.offsetParent!==null?E.offsetParent?.scrollWidth:E.getBoundingClientRect().width),v.component.shadowed?E.host.style.display="block":E.style.display="block",v.effects.map(A=>{let q=(0,o.ClassFactory)(A),U=new q({}).apply.bind(v),j=v.component.shadowed?E.host:E;return U(j,...Object.values({alphaFrom:_,alphaTo:d,angleFrom:f,angleTo:p,radiusFrom:m,radiusTo:u,scaleFrom:g,scaleTo:y})),A}))}},h(i,"TransitionEffect"),b(i,"TransitionEffect"),i);e.TransitionEffect=s,(0,n.Package)("com.qcobjects.effects.transitions.base",[s])}}),Il=L({"node_modules/qcobjects/build/Timer.js"(e){"use strict";var o;Object.defineProperty(e,"__esModule",{value:!0}),e.Timer=void 0;var a=Se(),t=_e(),n=(o=class extends a.InheritClass{constructor(){super(...arguments);r(this,"duration",1e3);r(this,"alive",!0)}thread({timing:c,intervalInterceptor:l,duration:_}){let d=this,f=performance.now();requestAnimationFrame(b(h(function p(m){let u=m-f,g=u/_;g>1&&(g=1);let y=c(g,u);l(Math.round(y*100)),(g<1||_===-1)&&d.alive&&requestAnimationFrame(p)},"thread"),"thread"))}},h(o,"Timer"),b(o,"Timer"),o);e.Timer=n,(0,t.Package)("com.qcobjects.timing",[n])}}),jl=L({"node_modules/qcobjects/build/DDO.js"(e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.DDO=void 0;var a=$t(),t=Se(),n=te(),o=lr(),s=(i=class extends t.InheritClass{constructor({instance:l,name:_,fget:d,fset:f,value:p}){super({instance:l,name:_,fget:d,fset:f,value:p}),this._new_({instance:l,name:_,fget:d,fset:f,value:p})}_new_({instance:l,name:m,fget:d,fset:f}){let p=this;var m=typeof m>"u"?(0,o.ObjectName)(p):m;Object.defineProperty(l,m,{set(u){let g=u;n.logger.debug("value changed "+m);let y;typeof f<"u"&&typeof f=="function"?y=f(g):y=g,l["_"+m]=y},get(){let u=l["_"+m];n.logger.debug("returning value "+m);let g=b(v=>typeof v=="object"&&Object.hasOwn(v,"value")?v.value:v,"is_ddo"),y;return typeof d<"u"&&typeof d=="function"?y=d(g(u)):y=g(u),y}})}},h(i,"DDO"),b(i,"DDO"),i);e.DDO=s,(0,a.Export)(s)}}),Ml=L({"node_modules/qcobjects/build/Toggle.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.Toggle=void 0;var a=Se(),t=te(),n=_e(),o=(s=class extends a.InheritClass{constructor(l,_,d){super({positive:l,negative:_,args:d});r(this,"_toggle",!1);r(this,"_inverse",!0);r(this,"_positive",null);r(this,"_negative",null);r(this,"_dispatched",null);r(this,"_args",{});this._new_({positive:l,negative:_,args:d})}changeToggle(){this._toggle=!this._toggle}_new_({positive:l,negative:_,args:d}){this._positive=l,this._negative=_,this._args=d}fire(){let l=this;var _=new Promise(function(d,f){return typeof l._positive=="function"&&typeof l._negative=="function"?(l._inverse?l._dispatched=l._toggle?l._negative.bind(l):l._positive.bind(l):l._dispatched=l._toggle?l._positive.bind(l):l._negative.bind(l),l._dispatched?.call(l,l._args),d.call(_,l)):(t.logger.debug("Toggle functions are not declared"),f.call(_,l)),l}).then(function(d){return d.changeToggle(),d}).catch(function(d){return t.logger.debug(d.toString()),l}).finally(()=>l);return _}},h(s,"Toggle"),b(s,"Toggle"),s);e.Toggle=o,(0,n.Package)("com.qcobjects.tools.essentials",[o])}}),Ll=L({"node_modules/qcobjects/build/DocumentLayout.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDocumentLayout=void 0;var a=b(function(){let t=b((s,i)=>s>i?"landscape":null,"h"),n=b((s,i)=>i>s?"portrait":null,"v"),o=b((s,i)=>s===i?"square":null,"square");return[t(document.documentElement.clientWidth,document.documentElement.clientHeight),n(document.documentElement.clientWidth,document.documentElement.clientHeight),o(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(s=>s!==null).pop()},"getDocumentLayout");e.getDocumentLayout=a}}),ue=L({"node_modules/qcobjects/build/QCObjects.js"(e){"use strict";var a=e&&e.__createBinding||(Object.create?function(Ke,Oe,He,Le){Le===void 0&&(Le=He);var Fe=Object.getOwnPropertyDescriptor(Oe,He);(!Fe||("get"in Fe?!Oe.__esModule:Fe.writable||Fe.configurable))&&(Fe={enumerable:!0,get:b(function(){return Oe[He]},"get")}),Object.defineProperty(Ke,Le,Fe)}:function(Ke,Oe,He,Le){Le===void 0&&(Le=He),Ke[Le]=Oe[He]}),t=e&&e.__setModuleDefault||(Object.create?function(Ke,Oe){Object.defineProperty(Ke,"default",{enumerable:!0,value:Oe})}:function(Ke,Oe){Ke.default=Oe}),n=e&&e.__importStar||(function(){var Ke=b(function(Oe){return Ke=Object.getOwnPropertyNames||function(He){var Le=[];for(var Fe in He)Object.prototype.hasOwnProperty.call(He,Fe)&&(Le[Le.length]=Fe);return Le},Ke(Oe)},"ownKeys");return function(Oe){if(Oe&&Oe.__esModule)return Oe;var He={};if(Oe!=null)for(var Le=Ke(Oe),Fe=0;Fe<Le.length;Fe++)Le[Fe]!=="default"&&a(He,Oe,Le[Fe]);return t(He,Oe),He}})();Object.defineProperty(e,"__esModule",{value:!0}),e._buildComponentsFromElements_=e.componentLoader=e.serviceLoader=e.captureFalseTouch=e.Ready=e.ready=e._Ready=e.New=e.Processor=e.shortCode=e._super_=e.InheritClass=e.Class=e.Export=e.ClassFactory=e.Package=e.isQCObjects_Object=e.isQCObjects_Class=e._CastProps=e._Cast=e.waitUntil=e.ComplexStorageCache=e.is_a=e.__getType__=e.ObjectName=e.__instanceID=e.asyncLoad=e._fireAsyncLoad=e._LegacyCopy=e.__is_raw_class__=e.subelements=e.isNodeCommonJS=e.isBrowser=e.is_phonegap=e._require_=e.Logger=e.logger=e._protected_code_=e._methods_=e._DOMCreateElement=e._DataStringify=e._QC_READY_LISTENERS=e._QC_PACKAGES_IMPORTED=e._QC_PACKAGES=e._QC_CLASSES=e.resetTop=e._top=e.qcobjects=e.__top__=e.AssignPolyfill=void 0,e.set=e.get=e.__make_global__=e.global=e.__to_number=e.getDocumentLayout=e.findPackageNodePath=e.Toggle=e.DDO=e.ArrayList=e.ArrayCollection=e.range=e._tag_filter_=e.Timer=e.TransitionEffect=e.Effect=e.VO=e.Service=e.JSONService=e.ConfigService=e.View=e.Controller=e.CONFIG=e.RegisterWidgets=e.RegisterWidget=e._ComponentWidget_=e.RegisterClass=e.GlobalSettings=e.SourceCSS=e.SourceJS=e.DefaultTemplateHandler=e._Crypt=e.Component=e.BackendMicroservice=e.Import=e.TagElements=e.Tag=e.setDefaultProcessors=e.NamespaceRef=e.ComponentURI=void 0,e.AssignPolyfill=n(gl()),e.__top__=n(qe()),e.qcobjects=n(Cl());var o=qe();Object.defineProperty(e,"_top",{enumerable:!0,get:b(function(){return o._top},"get")}),Object.defineProperty(e,"resetTop",{enumerable:!0,get:b(function(){return o.resetTop},"get")});var s=Ot();Object.defineProperty(e,"_QC_CLASSES",{enumerable:!0,get:b(function(){return s._QC_CLASSES},"get")}),Object.defineProperty(e,"_QC_PACKAGES",{enumerable:!0,get:b(function(){return s._QC_PACKAGES},"get")}),Object.defineProperty(e,"_QC_PACKAGES_IMPORTED",{enumerable:!0,get:b(function(){return s._QC_PACKAGES_IMPORTED},"get")}),Object.defineProperty(e,"_QC_READY_LISTENERS",{enumerable:!0,get:b(function(){return s._QC_READY_LISTENERS},"get")});var i=pt();Object.defineProperty(e,"_DataStringify",{enumerable:!0,get:b(function(){return i._DataStringify},"get")});var c=ut();Object.defineProperty(e,"_DOMCreateElement",{enumerable:!0,get:b(function(){return c._DOMCreateElement},"get")});var l=xt();Object.defineProperty(e,"_methods_",{enumerable:!0,get:b(function(){return l._methods_},"get")}),Object.defineProperty(e,"_protected_code_",{enumerable:!0,get:b(function(){return l._protected_code_},"get")});var _=te();Object.defineProperty(e,"logger",{enumerable:!0,get:b(function(){return _.logger},"get")}),Object.defineProperty(e,"Logger",{enumerable:!0,get:b(function(){return _.Logger},"get")});var d=fe();Object.defineProperty(e,"_require_",{enumerable:!0,get:b(function(){return d._require_},"get")}),Object.defineProperty(e,"is_phonegap",{enumerable:!0,get:b(function(){return d.is_phonegap},"get")}),Object.defineProperty(e,"isBrowser",{enumerable:!0,get:b(function(){return d.isBrowser},"get")}),Object.defineProperty(e,"isNodeCommonJS",{enumerable:!0,get:b(function(){return d.isNodeCommonJS},"get")});var f=ya();Object.defineProperty(e,"subelements",{enumerable:!0,get:b(function(){return f.subelements},"get")});var p=cr();Object.defineProperty(e,"__is_raw_class__",{enumerable:!0,get:b(function(){return p.__is_raw_class__},"get")});var m=qs();Object.defineProperty(e,"_LegacyCopy",{enumerable:!0,get:b(function(){return m._LegacyCopy},"get")});var u=Hr();Object.defineProperty(e,"_fireAsyncLoad",{enumerable:!0,get:b(function(){return u._fireAsyncLoad},"get")}),Object.defineProperty(e,"asyncLoad",{enumerable:!0,get:b(function(){return u.asyncLoad},"get")});var g=ks();Object.defineProperty(e,"__instanceID",{enumerable:!0,get:b(function(){return g.__instanceID},"get")});var y=lr();Object.defineProperty(e,"ObjectName",{enumerable:!0,get:b(function(){return y.ObjectName},"get")});var v=dt();Object.defineProperty(e,"__getType__",{enumerable:!0,get:b(function(){return v.__getType__},"get")});var E=ur();Object.defineProperty(e,"is_a",{enumerable:!0,get:b(function(){return E.is_a},"get")});var A=Ur();Object.defineProperty(e,"ComplexStorageCache",{enumerable:!0,get:b(function(){return A.ComplexStorageCache},"get")});var q=ba();Object.defineProperty(e,"waitUntil",{enumerable:!0,get:b(function(){return q.waitUntil},"get")});var G=Et();Object.defineProperty(e,"_Cast",{enumerable:!0,get:b(function(){return G._Cast},"get")}),Object.defineProperty(e,"_CastProps",{enumerable:!0,get:b(function(){return G._CastProps},"get")});var U=dr();Object.defineProperty(e,"isQCObjects_Class",{enumerable:!0,get:b(function(){return U.isQCObjects_Class},"get")}),Object.defineProperty(e,"isQCObjects_Object",{enumerable:!0,get:b(function(){return U.isQCObjects_Object},"get")});var j=_e();Object.defineProperty(e,"Package",{enumerable:!0,get:b(function(){return j.Package},"get")});var N=Xe();Object.defineProperty(e,"ClassFactory",{enumerable:!0,get:b(function(){return N.ClassFactory},"get")});var I=$t();Object.defineProperty(e,"Export",{enumerable:!0,get:b(function(){return I.Export},"get")});var B=Gr();Object.defineProperty(e,"Class",{enumerable:!0,get:b(function(){return B.Class},"get")});var ie=Se();Object.defineProperty(e,"InheritClass",{enumerable:!0,get:b(function(){return ie.InheritClass},"get")});var uo=ma();Object.defineProperty(e,"_super_",{enumerable:!0,get:b(function(){return uo._super_},"get")});var w=_a();Object.defineProperty(e,"shortCode",{enumerable:!0,get:b(function(){return w.shortCode},"get")});var S=So();Object.defineProperty(e,"Processor",{enumerable:!0,get:b(function(){return S.Processor},"get")});var P=Bt();Object.defineProperty(e,"New",{enumerable:!0,get:b(function(){return P.New},"get")});var M=fa();Object.defineProperty(e,"_Ready",{enumerable:!0,get:b(function(){return M._Ready},"get")}),Object.defineProperty(e,"ready",{enumerable:!0,get:b(function(){return M.ready},"get")}),Object.defineProperty(e,"Ready",{enumerable:!0,get:b(function(){return M.Ready},"get")});var T=da();Object.defineProperty(e,"captureFalseTouch",{enumerable:!0,get:b(function(){return T.captureFalseTouch},"get")});var R=Wr();Object.defineProperty(e,"serviceLoader",{enumerable:!0,get:b(function(){return R.serviceLoader},"get")});var V=Gs();Object.defineProperty(e,"componentLoader",{enumerable:!0,get:b(function(){return V.componentLoader},"get")});var F=Qr();Object.defineProperty(e,"_buildComponentsFromElements_",{enumerable:!0,get:b(function(){return F._buildComponentsFromElements_},"get")}),Object.defineProperty(e,"ComponentURI",{enumerable:!0,get:b(function(){return F.ComponentURI},"get")});var W=pa();Object.defineProperty(e,"NamespaceRef",{enumerable:!0,get:b(function(){return W.NamespaceRef},"get")});var ae=ua();Object.defineProperty(e,"setDefaultProcessors",{enumerable:!0,get:b(function(){return ae.setDefaultProcessors},"get")});var Ce=ha();Object.defineProperty(e,"Tag",{enumerable:!0,get:b(function(){return Ce.Tag},"get")}),Object.defineProperty(e,"TagElements",{enumerable:!0,get:b(function(){return Ce.TagElements},"get")});var we=Qs();Object.defineProperty(e,"Import",{enumerable:!0,get:b(function(){return we.Import},"get")});var ce=wl();Object.defineProperty(e,"BackendMicroservice",{enumerable:!0,get:b(function(){return ce.BackendMicroservice},"get")});var D=Bs();Object.defineProperty(e,"Component",{enumerable:!0,get:b(function(){return D.Component},"get")});var x=Br();Object.defineProperty(e,"_Crypt",{enumerable:!0,get:b(function(){return x._Crypt},"get")});var X=vl();Object.defineProperty(e,"DefaultTemplateHandler",{enumerable:!0,get:b(function(){return X.DefaultTemplateHandler},"get")});var ve=Ol();Object.defineProperty(e,"SourceJS",{enumerable:!0,get:b(function(){return ve.SourceJS},"get")});var be=El();Object.defineProperty(e,"SourceCSS",{enumerable:!0,get:b(function(){return be.SourceCSS},"get")});var Be=Hs();Object.defineProperty(e,"GlobalSettings",{enumerable:!0,get:b(function(){return Be.GlobalSettings},"get")});var Qe=Ca();Object.defineProperty(e,"RegisterClass",{enumerable:!0,get:b(function(){return Qe.RegisterClass},"get")});var et=Sl();Object.defineProperty(e,"_ComponentWidget_",{enumerable:!0,get:b(function(){return et._ComponentWidget_},"get")}),Object.defineProperty(e,"RegisterWidget",{enumerable:!0,get:b(function(){return et.RegisterWidget},"get")}),Object.defineProperty(e,"RegisterWidgets",{enumerable:!0,get:b(function(){return et.RegisterWidgets},"get")});var xo=Ze();Object.defineProperty(e,"CONFIG",{enumerable:!0,get:b(function(){return xo.CONFIG},"get")});var ne=Nl();Object.defineProperty(e,"Controller",{enumerable:!0,get:b(function(){return ne.Controller},"get")});var tt=Pl();Object.defineProperty(e,"View",{enumerable:!0,get:b(function(){return tt.View},"get")});var Qt=la();Object.defineProperty(e,"ConfigService",{enumerable:!0,get:b(function(){return Qt.ConfigService},"get")}),Object.defineProperty(e,"JSONService",{enumerable:!0,get:b(function(){return Qt.JSONService},"get")}),Object.defineProperty(e,"Service",{enumerable:!0,get:b(function(){return Qt.Service},"get")});var Yr=Al();Object.defineProperty(e,"VO",{enumerable:!0,get:b(function(){return Yr.VO},"get")});var Lc=wa();Object.defineProperty(e,"Effect",{enumerable:!0,get:b(function(){return Lc.Effect},"get")});var Dc=Tl();Object.defineProperty(e,"TransitionEffect",{enumerable:!0,get:b(function(){return Dc.TransitionEffect},"get")});var Rc=Il();Object.defineProperty(e,"Timer",{enumerable:!0,get:b(function(){return Rc.Timer},"get")});var kc=xs();Object.defineProperty(e,"_tag_filter_",{enumerable:!0,get:b(function(){return kc._tag_filter_},"get")});var qc=Us();Object.defineProperty(e,"range",{enumerable:!0,get:b(function(){return qc.range},"get")});var gi=ga();Object.defineProperty(e,"ArrayCollection",{enumerable:!0,get:b(function(){return gi.ArrayCollection},"get")}),Object.defineProperty(e,"ArrayList",{enumerable:!0,get:b(function(){return gi.ArrayList},"get")});var Fc=jl();Object.defineProperty(e,"DDO",{enumerable:!0,get:b(function(){return Fc.DDO},"get")});var $c=Ml();Object.defineProperty(e,"Toggle",{enumerable:!0,get:b(function(){return $c.Toggle},"get")});var xc=Ws();Object.defineProperty(e,"findPackageNodePath",{enumerable:!0,get:b(function(){return xc.findPackageNodePath},"get")});var Gc=Ll();Object.defineProperty(e,"getDocumentLayout",{enumerable:!0,get:b(function(){return Gc.getDocumentLayout},"get")});var Bc=Ks();Object.defineProperty(e,"__to_number",{enumerable:!0,get:b(function(){return Bc.__to_number},"get")});var Hc=qe();Object.defineProperty(e,"global",{enumerable:!0,get:b(function(){return Hc._top},"get")});var Uc=xr();Object.defineProperty(e,"__make_global__",{enumerable:!0,get:b(function(){return Uc.__make_global__},"get")});var hi=qe();Object.defineProperty(e,"get",{enumerable:!0,get:b(function(){return hi.get},"get")}),Object.defineProperty(e,"set",{enumerable:!0,get:b(function(){return hi.set},"get")})}}),va={};pl(va,{BasicLayout:h(()=>fc,"BasicLayout"),ButtonField:h(()=>ka,"ButtonField"),CanvasTool:h(()=>pc,"CanvasTool"),Contact:h(()=>Ea,"Contact"),CubeSplashScreenComponent:h(()=>Ya,"CubeSplashScreenComponent"),DataGridController:h(()=>nc,"DataGridController"),EmailField:h(()=>$a,"EmailField"),Fade:h(()=>vt,"Fade"),FormController:h(()=>sc,"FormController"),FormField:h(()=>lo,"FormField"),FormValidations:h(()=>rc,"FormValidations"),GenericController:h(()=>Za,"GenericController"),GridComponent:h(()=>Ha,"GridComponent"),GridController:h(()=>tc,"GridController"),GridItemComponent:h(()=>Ba,"GridItemComponent"),GridView:h(()=>dc,"GridView"),InputField:h(()=>qa,"InputField"),ListComponent:h(()=>Wa,"ListComponent"),ListController:h(()=>ec,"ListController"),ListItemComponent:h(()=>Ua,"ListItemComponent"),ModalComponent:h(()=>ti,"ModalComponent"),ModalController:h(()=>cc,"ModalController"),ModalEnclosureComponent:h(()=>xa,"ModalEnclosureComponent"),ModalFade:h(()=>Fr,"ModalFade"),ModalMoveDown:h(()=>ei,"ModalMoveDown"),ModalMoveUp:h(()=>Zs,"ModalMoveUp"),Move:h(()=>Ge,"Move"),MoveXInFromLeft:h(()=>zs,"MoveXInFromLeft"),MoveXInFromRight:h(()=>Js,"MoveXInFromRight"),MoveYInFromBottom:h(()=>Ys,"MoveYInFromBottom"),MoveYInFromTop:h(()=>Sa,"MoveYInFromTop"),NotificationComponent:h(()=>Ja,"NotificationComponent"),Radius:h(()=>Ia,"Radius"),Resize:h(()=>Xs,"Resize"),Rotate:h(()=>Ta,"Rotate"),RotateX:h(()=>Na,"RotateX"),RotateY:h(()=>Pa,"RotateY"),RotateZ:h(()=>Aa,"RotateZ"),SessionData:h(()=>gc,"SessionData"),SessionUserToken:h(()=>$r,"SessionUserToken"),ShadowedComponent:h(()=>Ra,"ShadowedComponent"),SlideItemComponent:h(()=>Ka,"SlideItemComponent"),SlideListComponent:h(()=>Qa,"SlideListComponent"),SliderComponent:h(()=>Va,"SliderComponent"),SliderController:h(()=>oc,"SliderController"),SplashScreenComponent:h(()=>fr,"SplashScreenComponent"),SwaggerUIComponent:h(()=>Ga,"SwaggerUIComponent"),SwaggerUIController:h(()=>ic,"SwaggerUIController"),TextField:h(()=>Fa,"TextField"),VideoSplashScreenComponent:h(()=>za,"VideoSplashScreenComponent"),WipeDown:h(()=>Da,"WipeDown"),WipeLeft:h(()=>ja,"WipeLeft"),WipeRight:h(()=>Ma,"WipeRight"),WipeUp:h(()=>La,"WipeUp"),default:h(()=>Rl,"default"),i18n_messages:h(()=>Vs,"i18n_messages")});hc.exports=fl(va);var qr=de(ue()),lt=de(ue()),gn,Vs=(gn=class extends lt.InheritClass{constructor({messages:a=[]}){super({messages:a}),lt.CONFIG.get("use_i18n",!1)&&(lt.CONFIG.set("lang","en"),lt.global.get("i18n")?lt.global.set("i18n",{messages:lt.global.get("i18n").messages.concat(a)}):lt.global.set("i18n",{messages:a}))}_load_i18n_packages_(){return lt.CONFIG.get("i18n_languages",[]).map(a=>{(0,lt.Import)(`org.quickcorp.i18n_messages.${a}`)})}},h(gn,"i18n_messages"),b(gn,"i18n_messages"),gn);(0,lt.Package)("org.qcobjects.i18n_messages",[Vs]);new Vs({})._load_i18n_packages_();var Oa=de(ue()),hn,Ea=(hn=class extends Oa.VO{},h(hn,"Contact"),b(hn,"Contact"),hn);(0,Oa.Package)("org.qcobjects.models",[Ea]);var he=de(ue()),wt=de(ue()),Rt,vt=(Rt=class extends wt.Effect{constructor(t){super(t);r(this,"duration",1e3);this.duration=t?.duration}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){wt.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;wt.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}static apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){wt.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;wt.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}},h(Rt,"Fade"),b(Rt,"Fade"),r(Rt,"duration"),Rt),kt,Ge=(kt=class extends wt.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,n,o,s,i){let c=s-n,l=i-o;t.style.transform="translate("+n+"px,"+o+"px)",super.animate({duration:this.duration,timing(_){return _},draw(_){wt.logger.debug("animation progress: "+_.toString());let d=o+_*l/100,f=n+_*c/100;wt.logger.debug("x: "+f.toString()+" y:"+d.toString()),t.style.transform="translate("+f+"px,"+d+"px)"}})}},h(kt,"Move"),b(kt,"Move"),r(kt,"duration"),kt);(0,wt.Package)("org.qcobjects.effects.base",[vt,Ge]);var Y=de(ue()),_n,Js=(_n=class extends Ge{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Ge.apply.call(this,t,t.width,0,0,0)}},h(_n,"MoveXInFromRight"),b(_n,"MoveXInFromRight"),_n),mn,zs=(mn=class extends Ge{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Ge.apply.call(this,t,-t.width,0,0,0)}},h(mn,"MoveXInFromLeft"),b(mn,"MoveXInFromLeft"),mn),bn,Ys=(bn=class extends Ge{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Ge.apply.call(this,t,0,t.height,0,0)}},h(bn,"MoveYInFromBottom"),b(bn,"MoveYInFromBottom"),bn),yn,Sa=(yn=class extends Ge{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Ge.apply.call(this,t,0,-t.height,0,0)}},h(yn,"MoveYInFromTop"),b(yn,"MoveYInFromTop"),yn),qt,Na=(qt=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=Math.round(n+i*s/100);Y.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,0,0,"+c.toString()+"deg)"}})}},h(qt,"RotateX"),b(qt,"RotateX"),r(qt,"duration"),qt),Ft,Pa=(Ft=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=Math.round(n+i*s/100);Y.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(0,1,0,"+c.toString()+"deg)"}})}},h(Ft,"RotateY"),b(Ft,"RotateY"),r(Ft,"duration"),Ft),Cn,Aa=(Cn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=Math.round(n+i*s/100);Y.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(0,0,1,"+c.toString()+"deg)"}})}},h(Cn,"RotateZ"),b(Cn,"RotateZ"),Cn),wn,Ta=(wn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=Math.round(n+i*s/100);Y.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,1,1,"+c.toString()+"deg)"}})}},h(wn,"Rotate"),b(wn,"Rotate"),wn),vn,Ia=(vn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("radius: "+c.toString()),t.style.borderRadius=c.toString()+"px"}})}},h(vn,"Radius"),b(vn,"Radius"),vn),On,Xs=(On=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("resize: "+c.toString()),t.style.transformOrigin="center",t.style.transform="scale("+c+","+c+")"}})}},h(On,"Resize"),b(On,"Resize"),On),En,ja=(En=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="right",t.style.transform="scaleX("+c+")"}})}},h(En,"WipeLeft"),b(En,"WipeLeft"),En),Sn,Ma=(Sn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="left",t.style.transform="scaleX("+c+")"}})}},h(Sn,"WipeRight"),b(Sn,"WipeRight"),Sn),Nn,La=(Nn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="bottom",t.style.transform="scaleY("+c+")"}})}},h(Nn,"WipeUp"),b(Nn,"WipeUp"),Nn),Pn,Da=(Pn=class extends Y.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,n,o){let s=o-n;super.animate({duration:this.duration,timing(i){return i},draw(i){Y.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;Y.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="top",t.style.transform="scaleY("+c+")"}})}},h(Pn,"WipeDown"),b(Pn,"WipeDown"),Pn);(0,Y.Package)("org.qcobjects.effects.extended",[Js,zs,Ys,Sa,Na,Pa,Aa,Ta,Ia,Xs,ja,Ma,La,Da]);var Dl=de(ue()),An,Fr=(An=class extends vt{constructor(){super(...arguments);r(this,"duration",500)}},h(An,"ModalFade"),b(An,"ModalFade"),An),Tn,Zs=(Tn=class extends Ge{constructor(){super(...arguments);r(this,"duration",800)}},h(Tn,"ModalMoveUp"),b(Tn,"ModalMoveUp"),Tn),In,ei=(In=class extends Ge{constructor(){super(...arguments);r(this,"duration",300)}},h(In,"ModalMoveDown"),b(In,"ModalMoveDown"),In);(0,Dl.Package)("org.qcobjects.modal.effects",[Fr,ei,Zs]);var Ct=de(ue()),jn,lo=(jn=class extends Ct.Component{constructor(t){t.name=typeof t.name<"u"?t.name:"form-field";super(t);r(this,"fieldType");r(this,"cached",!1);r(this,"reload",!0);r(this,"body");r(this,"name");r(this,"data")}createBindingEvents(){let t;typeof this.fieldType>"u"||this.fieldType==null?t=this.body.subelements("*[data-field]"):t=this.body.subelements(this.fieldType+"[data-field]");for(let n=0;n<t.length;n++){let o=t[n];o.addEventListener("change",()=>{Ct.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("blur",()=>{Ct.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("focus",()=>{Ct.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("keydown",()=>{Ct.logger.debug("Executing keydown event binding"),this.executeBindings()})}}executeBinding(t){let n=t.getAttribute("data-field");Ct.logger.debug("Binding "+n+" for "+this.name),this.data[n]=t.value}executeBindings(){let t;typeof this.fieldType>"u"||this.fieldType==null?t=this.body.subelements("*[data-field]"):t=this.body.subelements(this.fieldType+"[data-field]");for(let n=0;n<t.length;n++){let o=t[n],s=o.getAttribute("data-field");Ct.logger.debug("Binding "+s+" for "+this.name),this.data[s]=o.value}}done(t){let n=super.done(t);return this.executeBindings(),this.createBindingEvents(),Ct.logger.debug("Field loaded: "+this.fieldType+"[name="+this.name+"]"),n}},h(jn,"FormField"),b(jn,"FormField"),jn);(0,Ct.Package)("org.qcobjects.base.components",[lo]);var Mn,Ra=(Mn=class extends he.Component{constructor(t){t.body=(0,he._DOMCreateElement)("div");super(t);r(this,"container",null);r(this,"shadowed",!0);r(this,"cached",!1);r(this,"controller",null);r(this,"view",null);r(this,"data",{})}},h(Mn,"ShadowedComponent"),b(Mn,"ShadowedComponent"),Mn),Ln,ka=(Ln=class extends lo{constructor(a){a.fieldType="button",super(a)}},h(Ln,"ButtonField"),b(Ln,"ButtonField"),Ln),Dn,qa=(Dn=class extends lo{constructor(a){a.fieldType="input",super(a)}},h(Dn,"InputField"),b(Dn,"InputField"),Dn),Rn,Fa=(Rn=class extends lo{constructor(a){a.fieldType="textarea",super(a)}},h(Rn,"TextField"),b(Rn,"TextField"),Rn),kn,$a=(kn=class extends lo{constructor(a){a.fieldType="input",super(a)}},h(kn,"EmailField"),b(kn,"EmailField"),kn),qn,xa=(qn=class extends he.Component{constructor(t){t.body=(0,he._DOMCreateElement)("div");super(t);r(this,"name","modalenclosure");r(this,"tplsource","inline");r(this,"cached",!1);r(this,"basePath",he.CONFIG.get("modalBasePath",he.CONFIG.get("remoteSDKPath","")));r(this,"template",`
|
|
6
|
+
@import url("${d}") (orientation:portrait);
|
|
7
|
+
@import url("${d}") (max-width:460px);
|
|
8
|
+
@import url("${d}") (aspect-ratio: 9/16);
|
|
9
|
+
@import url("${d}") (aspect-ratio: 10/16);
|
|
10
|
+
@import url("${d}") (aspect-ratio: 5/8);
|
|
11
|
+
@import url("${d}") (aspect-ratio: 3/4);
|
|
12
|
+
@import url("${d}") (aspect-ratio: 2/3);
|
|
13
|
+
`,h={landscape:`
|
|
14
|
+
@import url("${d}") (orientation:landscape) and (min-width:460px);
|
|
15
|
+
@import url("${d}") (aspect-ratio: 16/9) and (min-width:460px);
|
|
16
|
+
@import url("${d}") (aspect-ratio: 16/10) and (min-width:460px);
|
|
17
|
+
@import url("${d}") (aspect-ratio: 8/5) and (min-width:460px);
|
|
18
|
+
@import url("${d}") (aspect-ratio: 4/3) and (min-width:460px);
|
|
19
|
+
@import url("${d}") (aspect-ratio: 3/2) and (min-width:460px);
|
|
20
|
+
`,portrait:g};return Object.hasOwn(h,c)?h[c]:""},"layout");ye.setProcessor(t);let e=f((i,c,d,...g)=>{let p=[...g].map(function(m){return{[m.split("=")[0]]:m.split("=")[1]}}).reduce(function(m,b){return Object.assign(m,b)}),h=[...Object.keys(p)].map(function(m){return`${m}=${p[m]}`}).join(" ");return`<component name="${c}" componentClass="${d}" ${h}></component>`},"component");ye.setProcessor(e);let n=f((i,c,d,...g)=>{let p=[...g].map(function(m){return{[m.split("=")[0]]:m.split("=")[1]}}).reduce(function(m,b){return Object.assign(m,b)}),h=[...Object.keys(p)].map(function(m){return`${m}=${p[m]}`}).join(" ");return`<quick-component name="${c}" componentClass="${d}" ${h}></quick-component>`},"quick_component");ye.setProcessor(n);let a=f((i,c,d)=>Un(c).map(function(g){return d.replace("{{index}}",g.toString())}).join(""),"repeat");ye.setProcessor(a)})(I)},"setDefaultProcessors")}}),gn,ar=v({"src/findPackageNodePath.ts"(){"use strict";le(),Me(),R(),$(),gn=f(function(o){let s=null;if(!y)try{let t=Dn("node:fs"),e=[`${O.get("projectPath")}${O.get("relativeImportPath")}`,`${O.get("basePath")}${O.get("relativeImportPath")}`,`${O.get("projectPath")}`,`${O.get("basePath")}`,`${O.get("relativeImportPath")}`,`${process.cwd()}${O.get("relativeImportPath")}`,`${process.cwd()}/node_modules/`+o,`${process.cwd()}/node_modules`,`${process.cwd()}`,"node_modules","./",""].concat(Qe.paths);e=e.filter(n=>t.existsSync(n+"/"+o)),e.length>0?(s=e[0],u.info(o+" is Installed.")):(s="",u.info(`${o} is not in a standard path.`))}catch(t){console.log(t)}return s},"findPackageNodePath"),S(gn)}}),Wn,cr=v({"src/Import.ts"(){"use strict";ke(),le(),me(),ge(),ar(),R(),$(),ve(),Wn=f(function(o,s,t){t!==void 0&&u.debug(`[Import] Setting external=${t.toString()} resource to import: ${o}`),t?u.debug(`[Import] Registering external resource to import: ${o}`):u.debug(`[Import] Registering local resource to import: ${o}`);let e;return y?(e=new Promise(function(n,a){let i=f(function(){let d=!1,g=0;for(let p in Z)g++;return g<Ln.length?d=!1:d=!0,d},"allPackagesImported"),c=f(function(d){Ln.push(s),i()&&Ln.map(g=>We.push(g)),y&&O.get("removePackageScriptAfterLoading")&&d.target.remove(),n.call(e,{_imported_:d.target,_package_name_:o})},"readyImported");if(!Object.hasOwn(Z,o)){let d=Y("script");d.type=O.get("sourceType","text/javascript"),d.async=!!O.get("asynchronousImportsLoad"),d.onreadystatechange=function(){d.readyState==="complete"&&c(d)},d.onload=c,d.onerror=function(g){u.debug(`An error ocurred: ${g}.`),a.call(e,{_imported_:d,_package_name_:o})},d.src=t?O.get("remoteImportsPath")+o+".js":fe+O.get("relativeImportPath")+o+".js",document.getElementsByTagName("head")[0].appendChild(d)}}),e.catch(function(){u.debug("Import: Error loading a package ")})):e=new Promise(function(n,a){try{let i=gn(o),c="";if(i!==null)c=i+"/"+o;else{let d=gn(o+".js");d!==null?c=d+"/"+o+".js":c=fe+O.get("relativeImportPath")+o}try{n.call(e,{_imported_:Te(`${c}`),_package_name_:o})}catch(d){a.call(e,{_imported_:null,_package_name_:o,error:d})}}catch(i){a.call(e,{_imported_:null,_package_name_:o,error:i})}}).catch(function(n){u.debug("Something happened when importing "+o),console.warn(n)}),e.catch(function(n){u.warn(M(n))}),e},"Import"),Wn.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),V,lr=v({"src/mathFunctions.ts"(){"use strict";V=f(function(o){return isNaN(o)?new Number(0):new Number(o)},"__to_number")}}),dr,is=v({"src/NamespaceRef.ts"(){"use strict";Xn(),F(),dr=f(function(o){let t=(D(o)||[]).filter(e=>Kn(e)).map(e=>({[e.__definition.__classType]:e})).reduce((e,n)=>Object.assign(e,n));return o.split(".").map(e=>({[e]:t})).reverse().reduce((e,n)=>(n[Object.keys(n).join(".")]=e,n))},"NamespaceRef")}}),Ve,ur,$n,as=v({"src/Ready.ts"(){"use strict";le(),$(),ve(),ee(),Ve=f(o=>{y?We.push(o.bind(window)):typeof global<"u"&&We.push(o.bind(global))},"Ready"),ur=Ve,$n=f(o=>{let s=f(()=>{We.map(function(t,e){typeof t=="function"&&(t(),We.splice(e,1))})},"_execReady");O.get("delayForReady")>0?y?setTimeout(s.bind(window),O.get("delayForReady")):typeof global<"u"&&setTimeout(s.bind(global),O.get("delayForReady")):s.call(I)},"_Ready")}}),fo,cs,ls=v({"src/ArrayCollection.ts"(){"use strict";var o,s;ce(),R(),De(),lr(),fo=(o=class extends Array{constructor(){super(...arguments);r(this,"prototype")}unique(){return this.filter(function(n,a,i){return i.indexOf(n)===a})}table(){console.table(this)}sum(){return this.reduce((n,a)=>V(n)+V(a),0)}avg(){return this.length<1?0:this.reduce((n,a)=>(V(n)+V(a))/2)}min(){return this.reduce((n,a)=>V(n)<=V(a)?n:a,1/0)}max(){return this.reduce((n,a)=>V(n)>=V(a)?n:a,0)}sortBy(n,a){let i=a?(function(c,d){return d[n]<c[n]?1:-1}):(function(c,d){return d[n]>c[n]?1:-1});return this.sort(i)}matrix(n,a){return Array.from({length:n},f(()=>a,"x_func"))}matrix2d(n,a){let i=f(function(){return a},"y_func");return Array.from({length:n},f(function(){return Array.from({length:n},i)},"x_func"))}matrix3d(n,a){let i=f(function(){return Array.from({length:n},function(){return a})},"y_func");return Array.from({length:n},f(function(){return Array.from({length:n},i)},"x_func"))}},l(o,"ArrayList"),f(o,"ArrayList"),o),cs=(s=class{constructor(){r(this,"source",K(fo,[]))}changed(e,n){u.debug("VALUE CHANGED"),u.debug(e),u.debug(n)}push(e){let n=this;return u.debug("VALUE ADDED"),u.debug(e),n.source.push(e)}pop(){let e=this;return u.debug("VALUE POPPED"),e.source.pop()}_new_(e){let n=this,a=0;n.source=K(j("ArrayList"),e);for(let i of Object.keys(n.source))isNaN(i)||(u.debug("binding "+i.toString()),(function(c){Object.defineProperty(n,c,{set(d){u.debug("setting "+c+"="+d),n.source[c]=d,n.changed(c,d)},get(){return n.source[c]}})})(i),a++);n.source.length=a,Object.defineProperty(n,"length",{get(){return n.source.length}})}},l(s,"ArrayCollection"),f(s,"ArrayCollection"),s)}}),ao,ho,ds=v({"src/Tag.ts"(){"use strict";var o;ce(),De(),F(),$(),ls(),ao=(o=class extends fo{show(){this.map(function(t){return t.style.opacity=1})}hide(){this.map(function(t){return t.style.opacity=0})}effect(...t){let e=[...t].slice(1),n=t[0],a;(typeof n).toLowerCase()==="string"&&(a=j(n)),this.map(function(i){return a.apply.apply(a,[i].concat(e))})}findElements(t){let e=K(j("TagElements"));if(y)for(let n of Object.keys(this))typeof n=="number"&&typeof this[n]!="function"&&Object.hasOwn(this[n],"subelements")&&e.push(this[n].subelements(t));return e}},l(o,"TagElements"),f(o,"TagElements"),o),ho=f(function(s,t){let e=K(ao);if(y){let n=document.subelements(s),a=[];for(let i=0;i<n.length;i++)typeof t<"u"&&Object.hasOwn(n[i],"innerHTML")&&(n[i].innerHTML=t),a.indexOf(i)<0&&(e.push(n[i]),a.push(i))}return e},"Tag"),D("com.qcobjects",[ao,ho])}}),pr,us=v({"src/shortCode.ts"(){"use strict";wo(),pr=f(()=>{let s=ue.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...ue.encrypt((Math.random()*1e3).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString())].map((n,a)=>[...s][a]===n?null:n).filter(n=>n!==null).join("")},"shortCode")}}),go,ps=v({"src/super.ts"(){"use strict";ce(),go=f(function(o,s){return j(o)[s]},"_super_"),go.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),fr,fs=v({"src/waitUntil.ts"(){"use strict";R(),fr=f((o,s)=>{let t=f((e,n)=>{let i=0;var c=setInterval(function(){n()?(clearInterval(c),e(),u.debug("Ejecuting "+e.name+" after wait")):i<2e3?(i+=1,u.debug("WAIT UNTIL "+e.name+" is true, "+i.toString()+" cycles")):(u.debug("Max execution time for "+e.name+" expression until true"),clearInterval(c))},1)},"_waitUntil");setTimeout(function(){t(o,s)},1)},"waitUntil")}}),ln,hs=v({"src/subelements.ts"(){"use strict";ln=f(l(function(s){return[...this.querySelectorAll(s)]},"subelements2"),"subelements")}}),Ur,gs,na=v({"src/loadSDK.ts"(){"use strict";le(),ar(),cr(),R(),$(),Ur=f(()=>{O.get("useSDK")&&(function(){let o=O.get("remoteImportsPath"),s=!O.get("useLocalSDK");O.set("remoteImportsPath",O.get("remoteSDKPath"));let t=!1,e="QCObjects-SDK";if(y)t=!0;else{let n=gn("qcobjects-sdk");n!==null?(e="qcobjects-sdk",t=!0):n!==""?(e="node_modules/qcobjects-sdk/QCObjects-SDK",t=!0):t=!1}t?(u.info("Importing SDK... "+e),Uo&&typeof Dn<"u"?Te("qcobjects-sdk")?u.debug("QCObjects SDK was loaded OK."):u.debug("QCObjects SDK could not be imported."):Wn(e,function(){s?u.debug("QCObjects-SDK.js loaded from remote location"):u.debug("QCObjects-SDK.js loaded from local"),O.set("remoteImportsPath",o)},s)?.catch(n=>{throw new Error(`An error ocurred when trying to import: ${n}`)})):u.debug("SDK has not been imported as it is not available at the moment")})()},"loadSDK"),gs=Ur}}),oa=Qi({"src/MainProcess.ts"(){"use strict";ee(),Co(),rs(),Oe(),yo(),ce(),Yo(),So(),Xo(),le(),me(),ss(),Me(),cr(),Re(),Xn(),R(),lr(),is(),De(),Qn(),F(),$(),as(),Oo(),ds(),yn(),Yn(),he(),us(),ge(),vo(),ps(),fs(),hs(),er(),na(),sr(),f(l((function o(s){if(typeof Object.defineProperty<"u"&&typeof s<"u")try{Object.defineProperty(s,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:o})}catch(t){u.debug(`An error ocurred: ${t}`),typeof s.__qcobjects__<"u"&&(s.__qcobjects__.loaded=!0)}typeof s.__qcobjects__.loaded>"u"&&(s.__qcobjects__.loaded=!0,y&&(Element.prototype.subelements=ln,Document.prototype.subelements=ln,HTMLElement.prototype.subelements=ln,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=ln)),u.debugEnabled=!1,u.infoEnabled=!0,y&&(Element.prototype.find=function(t){let e=this,n=[],a=document.subelements(t);return a.map((i,c)=>(typeof a[c]<"u"&&a[c].parentNode.tagName===e.parentNode.tagName&&n.push(Ce(i,new Object)),i)),n}),y&&(Element.prototype.append=f(l(function(e){dt(e)||typeof e.body<"u"?this.appendChild(e.body):this.appendChild(e)},"QC_Append"),"QC_Append"),Element.prototype.render=f(l(function(e){let n=this,a=f((i,c)=>{if(typeof document.implementation.createHTMLDocument<"u"){let d=document.implementation.createHTMLDocument("");d.body.innerHTML=c,d.body.subelements("*").map(g=>i.append(g))}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=e}catch(i){u.debug(`An error ocurred: ${i}`),a(n,e)}else a(n,e)},"QC_Render"),"QC_Render")),S(fr),S(go),S(fn),S(j),S(Y),S(pr),S(ne),S(we),D("com.qcobjects",[dn]),y&&(Element.prototype.Cast=f(l(function(e){return Ce(this,e)},"QC_Cast"),"QC_Cast")),y?(window.onload=$n,bo&&document.addEventListener("deviceready",$n,rr)):global.onload=$n,y&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),Je.route().catch(e=>{throw new Error(`An error ocurred when trying to load initial routes. ${e}`)})}),S(to),S(Gn),S(Hn),S(bn),S(M),S(Kn),S(dt),S(dr),Array.prototype.unique=function(){return this.filter(function(t,e,n){return n.indexOf(t)===e})},Array.unique=function(t){return t.unique()},k(Array.unique),k(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(t){t.table()},k(Array.table),k(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(t,e){return V(t)+V(e)},0)},Array.sum=function(t){return t.sum()},k(Array.sum),k(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(t,e){return(V(t)+V(e))/2})},Array.avg=function(t){return t.avg()},k(Array.avg),k(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(t,e){return V(t)<=V(e)?t:e},1/0)},Array.min=function(t){return t.min()},k(Array.min),k(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(t,e){return V(t)>=V(e)?t:e},0)},Array.max=function(t){return t.max()},k(Array.max),k(Array.prototype.max),Array.prototype.sortBy=function(t,e=!0){let n=e?(function(a,i){return i[t]<a[t]?1:-1}):(function(a,i){return i[t]>a[t]?1:-1});return this.sort(n)},Array.sortBy=function(t,e,n=!0){return t.sortBy(e,n)},k(Array.sortBy),k(Array.prototype.sortBy),Array.prototype.matrix=function(t,e=0){return Array.from({length:t},f(function(a=void 0){return e},"x_func"))},Array.matrix=function(t,e,n=0){return t.matrix(e,n)},k(Array.matrix),k(Array.prototype.matrix),Array.prototype.matrix2d=function(t,e=0){let n=f(function(i){return e},"y_func");return Array.from({length:t},f(function(i){return Array.from({length:t},n)},"x_func"))},Array.matrix2d=function(t,e,n=0){return t.matrix2d(e,n)},k(Array.matrix2d),k(Array.prototype.matrix2d),Array.prototype.matrix3d=function(t,e=0){let n=f(function(i){return Array.from({length:t},function(){return e})},"y_func");return Array.from({length:t},f(function(i){return Array.from({length:t},n)},"x_func"))},Array.matrix3d=function(t,e,n=0){return t.matrix3d(e,n)},k(Array.matrix3d),k(Array.prototype.matrix3d),String.prototype.list=function(){let t=this;return Un(0,t.length-1).map(function(e){return t[e]})},k(String.prototype.list),ir(),Ve(function(){O.get("useSDK")||hn.__start__().catch(t=>{throw Error(t)})}),S(S),S(Wn),S(D),S(ze),S(K),S(ho),S(Ve),S(ur),S(y),S(pe),S(hn),gs(),y&&pn(function(){Ve(function(){(function(t){let e=!1,n=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),a=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function i(c){let d=Math.round(t.scrollY*100/n),g=Math.round(t.scrollX*100/a),p=new CustomEvent("scrollpercent",{detail:{percentX:g,percentY:d}});c.target.dispatchEvent(p);let h="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(b){return b===d}).map(function(b){h="percentY"+d.toString();let C=new CustomEvent(h,{detail:{percentX:g,percentY:d}});return c.target.dispatchEvent(C),b})}l(i,"scrollDispatcher"),f(i,"scrollDispatcher"),document.addEventListener("scroll",function(c){e||(requestAnimationFrame(function(){i(c),e=!1}),e=!0)})})(s)})},[]),y||(typeof s.global<"u"&&Object.hasOwn(s.global,"_fireAsyncLoad")&&Zo.call(s),typeof s.global<"u"&&Object.hasOwn(s.global,"onload")&&s.global.onload.call(s)),(function(t){let e=f(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");t&&O.get("secureObjects",!1)?Ve(function(){e()}):O.get("secureObjects",!1)&&e()})(y))}),"__qcobjects__"),"__qcobjects__")(I)}}),ms={};Wr(ms,{ArrayCollection:l(()=>cs,"ArrayCollection"),ArrayList:l(()=>fo,"ArrayList"),AssignPolyfill:l(()=>ra,"AssignPolyfill"),BackendMicroservice:l(()=>bs,"BackendMicroservice"),CONFIG:l(()=>O,"CONFIG"),Class:l(()=>ze,"Class"),ClassFactory:l(()=>j,"ClassFactory"),ComplexStorageCache:l(()=>fn,"ComplexStorageCache"),Component:l(()=>Je,"Component"),ComponentURI:l(()=>Hn,"ComponentURI"),ConfigService:l(()=>uo,"ConfigService"),Controller:l(()=>Cs,"Controller"),DDO:l(()=>Ns,"DDO"),DefaultTemplateHandler:l(()=>_s,"DefaultTemplateHandler"),Effect:l(()=>mr,"Effect"),Export:l(()=>S,"Export"),GlobalSettings:l(()=>hn,"GlobalSettings"),Import:l(()=>Wn,"Import"),InheritClass:l(()=>H,"InheritClass"),JSONService:l(()=>io,"JSONService"),Logger:l(()=>co,"Logger"),NamespaceRef:l(()=>dr,"NamespaceRef"),New:l(()=>K,"New"),ObjectName:l(()=>bn,"ObjectName"),Package:l(()=>D,"Package"),Processor:l(()=>dn,"Processor"),Ready:l(()=>Ve,"Ready"),RegisterClass:l(()=>hr,"RegisterClass"),RegisterWidget:l(()=>xo,"RegisterWidget"),RegisterWidgets:l(()=>gr,"RegisterWidgets"),Service:l(()=>so,"Service"),SourceCSS:l(()=>ws,"SourceCSS"),SourceJS:l(()=>ys,"SourceJS"),Tag:l(()=>ho,"Tag"),TagElements:l(()=>ao,"TagElements"),Timer:l(()=>Ss,"Timer"),Toggle:l(()=>xs,"Toggle"),TransitionEffect:l(()=>Es,"TransitionEffect"),VO:l(()=>Os,"VO"),View:l(()=>vs,"View"),_Cast:l(()=>Ce,"_Cast"),_CastProps:l(()=>Pe,"_CastProps"),_ComponentWidget_:l(()=>Vn,"_ComponentWidget_"),_Crypt:l(()=>ue,"_Crypt"),_DOMCreateElement:l(()=>Y,"_DOMCreateElement"),_DataStringify:l(()=>M,"_DataStringify"),_LegacyCopy:l(()=>_o,"_LegacyCopy"),_QC_CLASSES:l(()=>Q,"_QC_CLASSES"),_QC_PACKAGES:l(()=>Z,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:l(()=>Ln,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:l(()=>We,"_QC_READY_LISTENERS"),_Ready:l(()=>$n,"_Ready"),__getType__:l(()=>ne,"__getType__"),__instanceID:l(()=>Ie,"__instanceID"),__is_raw_class__:l(()=>mn,"__is_raw_class__"),__make_global__:l(()=>Zn,"__make_global__"),__to_number:l(()=>V,"__to_number"),__top__:l(()=>os,"__top__"),_buildComponentsFromElements_:l(()=>lo,"_buildComponentsFromElements_"),_fireAsyncLoad:l(()=>Zo,"_fireAsyncLoad"),_methods_:l(()=>pe,"_methods_"),_protected_code_:l(()=>k,"_protected_code_"),_require_:l(()=>Te,"_require_"),_super_:l(()=>go,"_super_"),_tag_filter_:l(()=>Eo,"_tag_filter_"),_top:l(()=>I,"_top"),asyncLoad:l(()=>pn,"asyncLoad"),captureFalseTouch:l(()=>rr,"captureFalseTouch"),componentLoader:l(()=>Gn,"componentLoader"),findPackageNodePath:l(()=>gn,"findPackageNodePath"),get:l(()=>or,"get"),getDocumentLayout:l(()=>aa,"getDocumentLayout"),global:l(()=>I,"global"),isBrowser:l(()=>y,"isBrowser"),isNodeCommonJS:l(()=>Uo,"isNodeCommonJS"),isQCObjects_Class:l(()=>Kn,"isQCObjects_Class"),isQCObjects_Object:l(()=>dt,"isQCObjects_Object"),is_a:l(()=>we,"is_a"),is_phonegap:l(()=>bo,"is_phonegap"),logger:l(()=>u,"logger"),qcobjects:l(()=>sa,"qcobjects"),range:l(()=>Un,"range"),ready:l(()=>ur,"ready"),resetTop:l(()=>po,"resetTop"),serviceLoader:l(()=>to,"serviceLoader"),set:l(()=>No,"set"),setDefaultProcessors:l(()=>ir,"setDefaultProcessors"),shortCode:l(()=>pr,"shortCode"),subelements:l(()=>ln,"subelements"),waitUntil:l(()=>fr,"waitUntil")});Qe.exports=Ki(ms);var ra={};typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:f(l(function(s,t){"use strict";if(s===null)throw new TypeError("Cannot convert undefined or null to object");let e=Object(s);for(let n=1;n<arguments.length;n++){let a=arguments[n];if(a!==null)for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},"assign"),"assign"),writable:!0,configurable:!0});ee();var sa=Zi(oa());ee();ve();me();ge();Re();R();$();hs();Jn();zo();Co();Vo();Qn();he();Yn();vo();fs();Oe();Xn();F();ce();Me();yo();W();ps();us();yn();De();as();rs();Oo();Xo();So();is();ss();ds();cr();ke();me();eo();W();R();F();var Ze,bs=(Ze=class extends H{constructor({domain:t=_n,basePath:e=fe,body:n=null,stream:a=null,request:i=null}){super({domain:t,basePath:e,body:n,stream:a,request:i});r(this,"stream");r(this,"route");r(this,"headers");r(this,"request");u.debug("Initializing BackendMicroservice...");let c=this;typeof this.body>"u"&&(this.body=null),typeof n<"u"&&(this.body=n),this.cors(),c.stream=a,a?.on("data",p=>{let h=i?.method.toLowerCase(),m={post:c.post.bind(c)};Object.hasOwn(m,h)&&m[h].call(c,p)});let d=i?.method.toLowerCase(),g={get:c.get.bind(c),head:c.head.bind(c),put:c.put.bind(c),delete:c.delete.bind(c),connect:c.connect.bind(c),options:c.options.bind(c),trace:c.trace.bind(c),patch:c.patch.bind(c)};Object.hasOwn(g,d)&&g[d].call(c)}cors(){if(this.route.cors){u.debug("Validating CORS...");let{allow_origins:t,allow_credentials:e,allow_methods:n,allow_headers:a}=this.route.cors,i=this;if(typeof i.headers!="object"&&(i.headers={}),typeof i.route.responseHeaders!="object"&&(i.route.responseHeaders={}),typeof t<"u")if(u.debug("CORS: allow_origins available. Validating origins..."),t==="*"||typeof i.request.headers.origin>"u"||[...t].indexOf(i.request.headers.origin)!==-1)u.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{u.debug("CORS: Origin is not allowed: "+i.request.headers.origin),u.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(c){u.debug(`It was not possible to finish the call to the microservice: ${c}`)}}else u.debug("CORS: no allow_origins available. Allowing all origins..."),u.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof e<"u"?(u.debug(`CORS: allow_credentials present. Allowing ${e}...`),i.route.responseHeaders["Access-Control-Allow-Credentials"]=e.toString()):(u.debug("CORS: No allow_credentials present. Allowing all credentials."),i.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof n<"u"?(u.debug(`CORS: allow_methods present. Allowing ${n}...`),i.route.responseHeaders["Access-Control-Allow-Methods"]=[...n].join(",")):(u.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),i.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof a<"u"?(u.debug(`CORS: allow_headers present. Allowing ${a}...`),i.route.responseHeaders["Access-Control-Allow-Headers"]=[...a].join(",")):(u.debug("CORS: No allow_headers present. Allowing all headers..."),i.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else u.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(t){u.debug(`[BackendMicroservice.head] Data received: ${M(t)}`),this.done()}get(t){u.debug(`[BackendMicroservice.get] Data received: ${M(t)}`),this.done()}post(t){u.debug(`[BackendMicroservice.post] Data received: ${M(t)}`),this.done()}put(t){u.debug(`[BackendMicroservice.put] Data received: ${M(t)}`),this.done()}delete(t){u.debug(`[BackendMicroservice.delete] Data received: ${M(t)}`),this.done()}connect(t){u.debug(`[BackendMicroservice.connect] Data received: ${M(t)}`),this.done()}options(t){u.debug(`[BackendMicroservice.options] Data received: ${M(t)}`),this.done()}trace(t){u.debug(`[BackendMicroservice.trace] Data received: ${M(t)}`),this.done()}patch(t){u.debug(`[BackendMicroservice.patch] Data received: ${M(t)}`),this.done()}finishWithBody(t){try{u.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),u.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=M(this.body)),u.debug(`[BackendMicroservice.finishWithBody]
|
|
21
|
+
body: ${this.body} `),t?.write(this.body),t?.end(),u.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(e){u.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${e}`)}}done(){u.debug("[BackendMicroservice.done] Finalizing the response...");let t=this,e=t.stream;try{if(u.debug("[BackendMicroservice.done] Sending response headers..."),t.route.responseHeaders)u.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(t.route.responseHeaders).join(",")}`),e.respond(t.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(n){u.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${n}`)}if(t.body!==null)try{u.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),t.finishWithBody.call(t,e)}catch(n){u.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${n}`)}else u.debug("[BackendMicroservice.done] No body present. Ending stream..."),e.end()}},l(Ze,"BackendMicroservice"),f(Ze,"BackendMicroservice"),Ze);D("com.qcobjects.api",[bs]);Yo();wo();R();yn();mo();ve();var hr=f(function(o,s){return jn(o,s)},"RegisterClass");Zn(hr);var Ae,_s=(Ae=class{constructor({component:s,template:t}){r(this,"template","");r(this,"__definition",{});r(this,"component");this.component=s,this.template=t}assign(s){let t=this;if(typeof t.component>"u")throw new Error("DefaultTemplateHandler.assign: component is undefined");if(typeof t.component.processorHandler>"u")throw new Error("DefaultTemplateHandler.assign: component.processorHandler is undefined");let e=t.component.processorHandler;e.component=t.component;let n=typeof t.template<"u"?t.template:"";typeof s=="object"?[...Object.keys(s)].map(a=>{let i=s[a];if(typeof i=="string"||typeof i=="number"||!isNaN(i))try{i=ye.processObject.bind(e).call(e,i,t.component),n=n.replace(new RegExp(`{{${a}}}`,"g"),i)}catch(c){throw u.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${c.message}`)}return a}):u.debug(`${t.component?.name}.data is not an object`);try{n=ye.processObject.call(e,n,t.component)}catch(a){throw u.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${a.message}`)}return n}},l(Ae,"DefaultTemplateHandler"),f(Ae,"DefaultTemplateHandler"),r(Ae,"__definition",{}),Ae);hr(_s,"com.qcobjects");ke();Oe();eo();ge();W();F();R();var Ke,ys=(Ke=class extends H{constructor(t){super(t);r(this,"domain",_n);r(this,"basePath",fe);r(this,"type","text/javascript");r(this,"containerTag","body");r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);r(this,"status",!1);this.body=Y("script")}set(t,e){this[t]=e}get(t,e){return this[t]||e}done(){}fail(){}rebuild(){let t=this;try{document.getElementsByTagName(t.containerTag)[0].appendChild((function(e,n,a){return e.type=a.type,e.src=n,e.crossOrigin=Object.hasOwn(a,"crossOrigin")?a.crossOrigin:"anonymous",e.async=a.async,e.onreadystatechange=function(){this.readyState==="complete"&&a.done.call(a)},e.onload=function(i){a.status=!0,a.done.call(a,i)},e.onerror=function(i){a.status=!1,a.fail.call(a,i)},a.body=e,e}).call(this,Y("script"),this.external?this.url:this.basePath+this.url,t))}catch(e){t.status=!1,u.debug(`An error ocurred: ${e}`),t.fail()}}Cast(t){return Ce(this,t)}_new_(t){this.__new__(t),this.rebuild()}},l(Ke,"SourceJS"),f(Ke,"SourceJS"),Ke);D("com.qcobjects",[ys]);ke();Oe();eo();ge();W();$();F();var Xe,ws=(Xe=class extends H{constructor(t){super(t);r(this,"domain",_n);r(this,"basePath",fe);r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);this.body=Y("link")}fail(){throw new Error("Method not implemented.")}Cast(t){return Ce(this,t)}set(t,e){this[t]=e}get(t,e){return this[t]||e}done(){}rebuild(){let t=this;y&&window.document.getElementsByTagName("head")[0].appendChild((function(e,n,a){return e.type="text/css",e.rel="stylesheet",e.href=n,e.crossOrigin="anonymous",e.onreadystatechange=function(){this.readyState==="complete"&&a.done.call(a)},e.onload=a.done,a.body=e,e}).call(this,Y("link"),this.external?this.url:this.basePath+this.url,t))}},l(Xe,"SourceCSS"),f(Xe,"SourceCSS"),Xe);D("com.qcobjects",[ws]);er();ge();Me();Re();$();var Ye,ia=(Ye=class{constructor(){r(this,"writingSuggestions");r(this,"currentCSSZoom");r(this,"ariaColIndexText");r(this,"ariaRowIndexText");r(this,"accessKey");r(this,"accessKeyLabel");r(this,"autocapitalize");r(this,"dir");r(this,"draggable");r(this,"hidden");r(this,"inert");r(this,"innerText");r(this,"lang");r(this,"offsetHeight");r(this,"offsetLeft");r(this,"offsetParent");r(this,"offsetTop");r(this,"offsetWidth");r(this,"outerText");r(this,"popover");r(this,"spellcheck");r(this,"title");r(this,"translate");r(this,"attributes");r(this,"classList");r(this,"className");r(this,"clientHeight");r(this,"clientLeft");r(this,"clientTop");r(this,"clientWidth");r(this,"id");r(this,"innerHTML");r(this,"localName");r(this,"namespaceURI");r(this,"onfullscreenchange");r(this,"onfullscreenerror");r(this,"outerHTML");r(this,"ownerDocument");r(this,"part");r(this,"prefix");r(this,"scrollHeight");r(this,"scrollLeft");r(this,"scrollTop");r(this,"scrollWidth");r(this,"shadowRoot");r(this,"slot");r(this,"tagName");r(this,"baseURI");r(this,"childNodes");r(this,"firstChild");r(this,"isConnected");r(this,"lastChild");r(this,"nextSibling");r(this,"nodeName");r(this,"nodeType");r(this,"nodeValue");r(this,"parentElement");r(this,"parentNode");r(this,"previousSibling");r(this,"textContent");r(this,"ELEMENT_NODE");r(this,"ATTRIBUTE_NODE");r(this,"TEXT_NODE");r(this,"CDATA_SECTION_NODE");r(this,"ENTITY_REFERENCE_NODE");r(this,"ENTITY_NODE");r(this,"PROCESSING_INSTRUCTION_NODE");r(this,"COMMENT_NODE");r(this,"DOCUMENT_NODE");r(this,"DOCUMENT_TYPE_NODE");r(this,"DOCUMENT_FRAGMENT_NODE");r(this,"NOTATION_NODE");r(this,"DOCUMENT_POSITION_DISCONNECTED");r(this,"DOCUMENT_POSITION_PRECEDING");r(this,"DOCUMENT_POSITION_FOLLOWING");r(this,"DOCUMENT_POSITION_CONTAINS");r(this,"DOCUMENT_POSITION_CONTAINED_BY");r(this,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC");r(this,"ariaAtomic");r(this,"ariaAutoComplete");r(this,"ariaBrailleLabel");r(this,"ariaBrailleRoleDescription");r(this,"ariaBusy");r(this,"ariaChecked");r(this,"ariaColCount");r(this,"ariaColIndex");r(this,"ariaColSpan");r(this,"ariaCurrent");r(this,"ariaDescription");r(this,"ariaDisabled");r(this,"ariaExpanded");r(this,"ariaHasPopup");r(this,"ariaHidden");r(this,"ariaInvalid");r(this,"ariaKeyShortcuts");r(this,"ariaLabel");r(this,"ariaLevel");r(this,"ariaLive");r(this,"ariaModal");r(this,"ariaMultiLine");r(this,"ariaMultiSelectable");r(this,"ariaOrientation");r(this,"ariaPlaceholder");r(this,"ariaPosInSet");r(this,"ariaPressed");r(this,"ariaReadOnly");r(this,"ariaRequired");r(this,"ariaRoleDescription");r(this,"ariaRowCount");r(this,"ariaRowIndex");r(this,"ariaRowSpan");r(this,"ariaSelected");r(this,"ariaSetSize");r(this,"ariaSort");r(this,"ariaValueMax");r(this,"ariaValueMin");r(this,"ariaValueNow");r(this,"ariaValueText");r(this,"role");r(this,"nextElementSibling");r(this,"previousElementSibling");r(this,"childElementCount");r(this,"children");r(this,"firstElementChild");r(this,"lastElementChild");r(this,"assignedSlot");r(this,"attributeStyleMap");r(this,"style");r(this,"contentEditable");r(this,"enterKeyHint");r(this,"inputMode");r(this,"isContentEditable");r(this,"onabort");r(this,"onanimationcancel");r(this,"onanimationend");r(this,"onanimationiteration");r(this,"onanimationstart");r(this,"onauxclick");r(this,"onbeforeinput");r(this,"onbeforetoggle");r(this,"onblur");r(this,"oncancel");r(this,"oncanplay");r(this,"oncanplaythrough");r(this,"onchange");r(this,"onclick");r(this,"onclose");r(this,"oncontextlost");r(this,"oncontextmenu");r(this,"oncontextrestored");r(this,"oncopy");r(this,"oncuechange");r(this,"oncut");r(this,"ondblclick");r(this,"ondrag");r(this,"ondragend");r(this,"ondragenter");r(this,"ondragleave");r(this,"ondragover");r(this,"ondragstart");r(this,"ondrop");r(this,"ondurationchange");r(this,"onemptied");r(this,"onended");r(this,"onerror");r(this,"onfocus");r(this,"onformdata");r(this,"ongotpointercapture");r(this,"oninput");r(this,"oninvalid");r(this,"onkeydown");r(this,"onkeypress");r(this,"onkeyup");r(this,"onload");r(this,"onloadeddata");r(this,"onloadedmetadata");r(this,"onloadstart");r(this,"onlostpointercapture");r(this,"onmousedown");r(this,"onmouseenter");r(this,"onmouseleave");r(this,"onmousemove");r(this,"onmouseout");r(this,"onmouseover");r(this,"onmouseup");r(this,"onpaste");r(this,"onpause");r(this,"onplay");r(this,"onplaying");r(this,"onpointercancel");r(this,"onpointerdown");r(this,"onpointerenter");r(this,"onpointerleave");r(this,"onpointermove");r(this,"onpointerout");r(this,"onpointerover");r(this,"onpointerup");r(this,"onprogress");r(this,"onratechange");r(this,"onreset");r(this,"onresize");r(this,"onscroll");r(this,"onscrollend");r(this,"onsecuritypolicyviolation");r(this,"onseeked");r(this,"onseeking");r(this,"onselect");r(this,"onselectionchange");r(this,"onselectstart");r(this,"onslotchange");r(this,"onstalled");r(this,"onsubmit");r(this,"onsuspend");r(this,"ontimeupdate");r(this,"ontoggle");r(this,"ontouchcancel");r(this,"ontouchend");r(this,"ontouchmove");r(this,"ontouchstart");r(this,"ontransitioncancel");r(this,"ontransitionend");r(this,"ontransitionrun");r(this,"ontransitionstart");r(this,"onvolumechange");r(this,"onwaiting");r(this,"onwebkitanimationend");r(this,"onwebkitanimationiteration");r(this,"onwebkitanimationstart");r(this,"onwebkittransitionend");r(this,"onwheel");r(this,"autofocus");r(this,"dataset");r(this,"nonce");r(this,"tabIndex")}attachInternals(){throw new Error("Method not implemented.")}click(){throw new Error("Method not implemented.")}hidePopover(){throw new Error("Method not implemented.")}showPopover(){throw new Error("Method not implemented.")}togglePopover(s){throw new Error("Method not implemented.")}addEventListener(s,t,e){throw new Error("Method not implemented.")}removeEventListener(s,t,e){throw new Error("Method not implemented.")}attachShadow(s){throw new Error("Method not implemented.")}checkVisibility(s){throw new Error("Method not implemented.")}closest(s){throw new Error("Method not implemented.")}computedStyleMap(){throw new Error("Method not implemented.")}getAttribute(s){throw new Error("Method not implemented.")}getAttributeNS(s,t){throw new Error("Method not implemented.")}getAttributeNames(){throw new Error("Method not implemented.")}getAttributeNode(s){throw new Error("Method not implemented.")}getAttributeNodeNS(s,t){throw new Error("Method not implemented.")}getBoundingClientRect(){throw new Error("Method not implemented.")}getClientRects(){throw new Error("Method not implemented.")}getElementsByClassName(s){throw new Error("Method not implemented.")}getElementsByTagName(s){throw new Error("Method not implemented.")}getElementsByTagNameNS(s,t){throw new Error("Method not implemented.")}getHTML(s){throw new Error("Method not implemented.")}hasAttribute(s){throw new Error("Method not implemented.")}hasAttributeNS(s,t){throw new Error("Method not implemented.")}hasAttributes(){throw new Error("Method not implemented.")}hasPointerCapture(s){throw new Error("Method not implemented.")}insertAdjacentElement(s,t){throw new Error("Method not implemented.")}insertAdjacentHTML(s,t){throw new Error("Method not implemented.")}insertAdjacentText(s,t){throw new Error("Method not implemented.")}matches(s){throw new Error("Method not implemented.")}releasePointerCapture(s){throw new Error("Method not implemented.")}removeAttribute(s){throw new Error("Method not implemented.")}removeAttributeNS(s,t){throw new Error("Method not implemented.")}removeAttributeNode(s){throw new Error("Method not implemented.")}requestFullscreen(s){throw new Error("Method not implemented.")}requestPointerLock(s){throw new Error("Method not implemented.")}scroll(s,t){throw new Error("Method not implemented.")}scrollBy(s,t){throw new Error("Method not implemented.")}scrollIntoView(s){throw new Error("Method not implemented.")}scrollTo(s,t){throw new Error("Method not implemented.")}setAttribute(s,t){throw new Error("Method not implemented.")}setAttributeNS(s,t,e){throw new Error("Method not implemented.")}setAttributeNode(s){throw new Error("Method not implemented.")}setAttributeNodeNS(s){throw new Error("Method not implemented.")}setHTMLUnsafe(s){throw new Error("Method not implemented.")}setPointerCapture(s){throw new Error("Method not implemented.")}toggleAttribute(s,t){throw new Error("Method not implemented.")}webkitMatchesSelector(s){throw new Error("Method not implemented.")}appendChild(s){throw new Error("Method not implemented.")}cloneNode(s){throw new Error("Method not implemented.")}compareDocumentPosition(s){throw new Error("Method not implemented.")}contains(s){throw new Error("Method not implemented.")}getRootNode(s){throw new Error("Method not implemented.")}hasChildNodes(){throw new Error("Method not implemented.")}insertBefore(s,t){throw new Error("Method not implemented.")}isDefaultNamespace(s){throw new Error("Method not implemented.")}isEqualNode(s){throw new Error("Method not implemented.")}isSameNode(s){throw new Error("Method not implemented.")}lookupNamespaceURI(s){throw new Error("Method not implemented.")}lookupPrefix(s){throw new Error("Method not implemented.")}normalize(){throw new Error("Method not implemented.")}removeChild(s){throw new Error("Method not implemented.")}replaceChild(s,t){throw new Error("Method not implemented.")}dispatchEvent(s){throw new Error("Method not implemented.")}animate(s,t){throw new Error("Method not implemented.")}getAnimations(s){throw new Error("Method not implemented.")}after(...s){throw new Error("Method not implemented.")}before(...s){throw new Error("Method not implemented.")}remove(){throw new Error("Method not implemented.")}replaceWith(...s){throw new Error("Method not implemented.")}append(...s){throw new Error("Method not implemented.")}prepend(...s){throw new Error("Method not implemented.")}querySelector(s){throw new Error("Method not implemented.")}querySelectorAll(s){throw new Error("Method not implemented.")}replaceChildren(...s){throw new Error("Method not implemented.")}blur(){throw new Error("Method not implemented.")}focus(s){throw new Error("Method not implemented.")}},l(Ye,"QCObjectsWidgetNode"),f(Ye,"QCObjectsWidgetNode"),Ye),Vn,et,tt;y?Vn=(et=class extends HTMLElement{constructor(){super();let s=this,t=s.nodeName.toLowerCase(),e=Y("quick-component"),n=s.getAttributeNames();e.setAttribute("name",t),s.hasAttribute("shadowed")||e.setAttribute("shadowed","true"),n.forEach(i=>{s.hasAttribute(i)&&(e.setAttribute(i,s?.getAttribute(i)),s.removeAttribute(i))}),s.getAttributeNames().filter(function(i){return i.startsWith("data-")}).map(function(i){return i.split("-")[1]}).forEach(function(i){e.setAttribute("data-"+i,s?.getAttribute("data-"+i)),s.removeAttribute("data-"+i)}),[...s.children].forEach(i=>{e.appendChild(i.cloneNode(!0)),i.remove()}),s.append(e)}},l(et,"_ComponentWidget_"),f(et,"_ComponentWidget_"),et):Vn=(tt=class extends ia{constructor(){throw super(),new Error("Class not implemented.")}},l(tt,"_ComponentWidget_"),f(tt,"_ComponentWidget_"),tt);S(Vn);var xo=f(o=>{if(y)customElements.define(o,class extends Vn{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),gr=f((...o)=>{[...o].filter(function(t){return typeof t=="string"}).map(function(t){return xo(t)})},"RegisterWidgets");k(xo);k(gr);S(xo);S(gr);le();ce();he();W();R();De();F();$();var nt,Cs=(nt=class extends H{constructor({component:t,dependencies:e}){super({component:t,dependencies:e});r(this,"component");r(this,"dependencies",[]);if(this.component=t,this.dependencies=e,typeof this.component>"u"||this.component===null)throw Error(`${ne(this)} must be called with a component`)}fail(...t){throw new Error("Method not implemented.")}routingSelectedAttr(t){return this.component?.routingSelected.map(e=>e[t]).filter(function(e){return e}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(t,e){if(y)try{this.isTouchable()?(this.component?.componentRoot?.subelements(t))[0].addEventListener("touchstart",e,{passive:!0}):(this.component?.componentRoot?.subelements(t))[0].addEventListener("click",e,{passive:!0})}catch(n){u.debug(`An error ocurred: ${n}.`),u.debug("No button to assign press event")}}createRoutingController(){let t=this,e=t.component,n=t.routingSelectedAttr("controllerclass");if(typeof n<"u"){let a=j(n);typeof a<"u"&&e!==null&&(e.routingController=K(a,{component:e}),typeof e.routingController<"u"&&Object.hasOwn(e.routingController,"done")&&typeof e.routingController.done=="function"&&e.routingController.done.call(e.routingController))}}done(){}},l(nt,"Controller"),f(nt,"Controller"),nt);D("com.qcobjects.controllers",[Cs]);he();W();F();var ot,vs=(ot=class extends H{constructor({component:s=void 0,dependencies:t=[]}){if(super({component:s,dependencies:t}),typeof this.component>"u"||this.component==="null")throw Error(`${ne(this)} must be called with a component`)}},l(ot,"View"),f(ot,"View"),ot);D("com.qcobjects.views",[vs]);ns();W();F();var rt,Os=(rt=class extends H{},l(rt,"VO"),f(rt,"VO"),rt);D("com.qcobjects.valueObjects",[Os]);W();F();Re();ce();var st,mr=(st=class extends H{constructor(){super(...arguments);r(this,"duration",1e3)}done(...t){throw new Error("Method not implemented.")}apply(...t){throw new Error("Method not implemented.")}animate({timing:t,draw:e,duration:n}){let a=this,i=performance.now();requestAnimationFrame(f(l(function c(d){let g=(d-i)/n;g>1&&(g=1);let p=t(g);e(Math.round(p*100)),g<1?requestAnimationFrame(c):typeof a<"u"&&a!==null&&Object.hasOwn(a,"done")&&(typeof a.done).toLowerCase()==="function"&&a.done.call(a)},"animate"),"animate"))}},l(st,"Effect"),f(st,"Effect"),st);D("com.qcobjects.effects.base",[mr]);pe(j("Effect")).map(o=>(k(o),o));R();F();ce();var it,Es=(it=class extends mr{constructor(){super(...arguments);r(this,"duration",385);r(this,"defaultParams",{alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1});r(this,"fitToHeight",!1);r(this,"fitToWidth",!1);r(this,"component");r(this,"effects")}apply({alphaFrom:t,alphaTo:e,angleFrom:n,angleTo:a,radiusFrom:i,radiusTo:c,scaleFrom:d,scaleTo:g}){let p=this;u.info("EXECUTING TransitionEffect ");let h=p.component.componentRoot;typeof h<"u"&&h!==null&&(p.fitToHeight&&(h.height=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollHeight:h.getBoundingClientRect().height),p.fitToWidth&&(h.width=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollWidth:h.getBoundingClientRect().width),p.component.shadowed?h.host.style.display="block":h.style.display="block",p.effects.map(m=>{let b=j(m),_=new b({}).apply.bind(p),E=p.component.shadowed?h.host:h;return _(E,...Object.values({alphaFrom:t,alphaTo:e,angleFrom:n,angleTo:a,radiusFrom:i,radiusTo:c,scaleFrom:d,scaleTo:g})),m}))}},l(it,"TransitionEffect"),f(it,"TransitionEffect"),it);D("com.qcobjects.effects.transitions.base",[Es]);W();F();var at,Ss=(at=class extends H{constructor(){super(...arguments);r(this,"duration",1e3);r(this,"alive",!0)}thread({timing:t,intervalInterceptor:e,duration:n}){let a=this,i=performance.now();requestAnimationFrame(f(l(function c(d){let g=d-i,p=g/n;p>1&&(p=1);let h=t(p,g);e(Math.round(h*100)),(p<1||n===-1)&&a.alive&&requestAnimationFrame(c)},"thread"),"thread"))}},l(at,"Timer"),f(at,"Timer"),at);D("com.qcobjects.timing",[Ss]);Ko();sr();ls();Me();W();R();Qn();var ct,Ns=(ct=class extends H{constructor({instance:s,name:t,fget:e,fset:n,value:a}){super({instance:s,name:t,fget:e,fset:n,value:a}),this._new_({instance:s,name:t,fget:e,fset:n,value:a})}_new_({instance:s,name:i,fget:e,fset:n}){var i=typeof i>"u"?bn(this):i;Object.defineProperty(s,i,{set(c){let d=c;u.debug("value changed "+i);let g;typeof n<"u"&&typeof n=="function"?g=n(d):g=d,s["_"+i]=g},get(){let c=s["_"+i];u.debug("returning value "+i);let d=f(p=>typeof p=="object"&&Object.hasOwn(p,"value")?p.value:p,"is_ddo"),g;return typeof e<"u"&&typeof e=="function"?g=e(d(c)):g=d(c),g}})}},l(ct,"DDO"),f(ct,"DDO"),ct);S(Ns);W();R();F();var lt,xs=(lt=class extends H{constructor(t,e,n){super({positive:t,negative:e,args:n});r(this,"_toggle",!1);r(this,"_inverse",!0);r(this,"_positive",null);r(this,"_negative",null);r(this,"_dispatched",null);r(this,"_args",{});this._new_({positive:t,negative:e,args:n})}changeToggle(){this._toggle=!this._toggle}_new_({positive:t,negative:e,args:n}){this._positive=t,this._negative=e,this._args=n}fire(){let t=this;var e=new Promise(function(n,a){return typeof t._positive=="function"&&typeof t._negative=="function"?(t._inverse?t._dispatched=t._toggle?t._negative.bind(t):t._positive.bind(t):t._dispatched=t._toggle?t._positive.bind(t):t._negative.bind(t),t._dispatched?.call(t,t._args),n.call(e,t)):(u.debug("Toggle functions are not declared"),a.call(e,t)),t}).then(function(n){return n.changeToggle(),n}).catch(function(n){return u.debug(n.toString()),t}).finally(()=>t);return e}},l(lt,"Toggle"),f(lt,"Toggle"),lt);D("com.qcobjects.tools.essentials",[xs]);ar();var aa=f(function(){let o=f((e,n)=>e>n?"landscape":null,"h"),s=f((e,n)=>n>e?"portrait":null,"v"),t=f((e,n)=>e===n?"square":null,"square");return[o(document.documentElement.clientWidth,document.documentElement.clientHeight),s(document.documentElement.clientWidth,document.documentElement.clientHeight),t(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(e=>e!==null).pop()},"getDocumentLayout");lr();ee();mo();ee()});var Ir=ae((Ma,Ci)=>{"use strict";var Po=Object.defineProperty,ca=Object.getOwnPropertyDescriptor,la=Object.getOwnPropertyNames,da=Object.prototype.hasOwnProperty,w=l((o,s)=>Po(o,"name",{value:s,configurable:!0}),"__name"),ua=l((o,s)=>{for(var t in s)Po(o,t,{get:s[t],enumerable:!0})},"__export"),pa=l((o,s,t,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of la(s))!da.call(o,n)&&n!==t&&Po(o,n,{get:l(()=>s[n],"get"),enumerable:!(e=ca(s,n))||e.enumerable});return o},"__copyProps"),fa=l(o=>pa(Po({},"__esModule",{value:!0}),o),"__toCommonJS"),Is={};ua(Is,{BasicLayout:l(()=>yi,"BasicLayout"),ButtonField:l(()=>Hs,"ButtonField"),CanvasTool:l(()=>_i,"CanvasTool"),Contact:l(()=>As,"Contact"),CubeSplashScreenComponent:l(()=>oi,"CubeSplashScreenComponent"),DataGridController:l(()=>ci,"DataGridController"),EmailField:l(()=>Ws,"EmailField"),Fade:l(()=>Ne,"Fade"),FormController:l(()=>ui,"FormController"),FormField:l(()=>an,"FormField"),FormValidations:l(()=>di,"FormValidations"),GenericController:l(()=>si,"GenericController"),GridComponent:l(()=>Qs,"GridComponent"),GridController:l(()=>ai,"GridController"),GridItemComponent:l(()=>Js,"GridItemComponent"),GridView:l(()=>mi,"GridView"),InputField:l(()=>Bs,"InputField"),ListComponent:l(()=>Ks,"ListComponent"),ListController:l(()=>ii,"ListController"),ListItemComponent:l(()=>Zs,"ListItemComponent"),ModalComponent:l(()=>Sr,"ModalComponent"),ModalController:l(()=>hi,"ModalController"),ModalEnclosureComponent:l(()=>Vs,"ModalEnclosureComponent"),ModalFade:l(()=>To,"ModalFade"),ModalMoveDown:l(()=>Er,"ModalMoveDown"),ModalMoveUp:l(()=>Or,"ModalMoveUp"),Move:l(()=>re,"Move"),MoveXInFromLeft:l(()=>wr,"MoveXInFromLeft"),MoveXInFromRight:l(()=>yr,"MoveXInFromRight"),MoveYInFromBottom:l(()=>Cr,"MoveYInFromBottom"),MoveYInFromTop:l(()=>Ps,"MoveYInFromTop"),NotificationComponent:l(()=>ti,"NotificationComponent"),Radius:l(()=>Ls,"Radius"),Resize:l(()=>vr,"Resize"),Rotate:l(()=>Ds,"Rotate"),RotateX:l(()=>Ms,"RotateX"),RotateY:l(()=>Rs,"RotateY"),RotateZ:l(()=>ks,"RotateZ"),SessionData:l(()=>wi,"SessionData"),SessionUserToken:l(()=>Ao,"SessionUserToken"),ShadowedComponent:l(()=>Gs,"ShadowedComponent"),SlideItemComponent:l(()=>Ys,"SlideItemComponent"),SlideListComponent:l(()=>Xs,"SlideListComponent"),SliderComponent:l(()=>ei,"SliderComponent"),SliderController:l(()=>li,"SliderController"),SplashScreenComponent:l(()=>no,"SplashScreenComponent"),SwaggerUIComponent:l(()=>zs,"SwaggerUIComponent"),SwaggerUIController:l(()=>pi,"SwaggerUIController"),TextField:l(()=>Us,"TextField"),VideoSplashScreenComponent:l(()=>ni,"VideoSplashScreenComponent"),WipeDown:l(()=>Fs,"WipeDown"),WipeLeft:l(()=>js,"WipeLeft"),WipeRight:l(()=>qs,"WipeRight"),WipeUp:l(()=>$s,"WipeUp"),default:l(()=>ga,"default"),i18n_messages:l(()=>_r,"i18n_messages")});Ci.exports=fa(Is);var Io=T(),be=T(),ut,_r=(ut=class extends be.InheritClass{constructor({messages:s=[]}){super({messages:s}),be.CONFIG.get("use_i18n",!1)&&(be.CONFIG.set("lang","en"),be.global.get("i18n")?be.global.set("i18n",{messages:be.global.get("i18n").messages.concat(s)}):be.global.set("i18n",{messages:s}))}_load_i18n_packages_(){return be.CONFIG.get("i18n_languages",[]).map(s=>{(0,be.Import)(`org.quickcorp.i18n_messages.${s}`)})}},l(ut,"i18n_messages"),w(ut,"i18n_messages"),ut);(0,be.Package)("org.qcobjects.i18n_messages",[_r]);new _r({})._load_i18n_packages_();var Ts=T(),pt,As=(pt=class extends Ts.VO{},l(pt,"Contact"),w(pt,"Contact"),pt);(0,Ts.Package)("org.qcobjects.models",[As]);var G=T(),Se=T(),je,Ne=(je=class extends Se.Effect{constructor(t){super(t);r(this,"duration",1e3);this.duration=t?.duration}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){Se.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;Se.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}static apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){Se.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;Se.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}},l(je,"Fade"),w(je,"Fade"),r(je,"duration"),je),qe,re=(qe=class extends Se.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,e,n,a,i){let c=a-e,d=i-n;t.style.transform="translate("+e+"px,"+n+"px)",super.animate({duration:this.duration,timing(g){return g},draw(g){Se.logger.debug("animation progress: "+g.toString());let p=n+g*d/100,h=e+g*c/100;Se.logger.debug("x: "+h.toString()+" y:"+p.toString()),t.style.transform="translate("+h+"px,"+p+"px)"}})}},l(qe,"Move"),w(qe,"Move"),r(qe,"duration"),qe);(0,Se.Package)("org.qcobjects.effects.base",[Ne,re]);var P=T(),ft,yr=(ft=class extends re{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){re.apply.call(this,t,t.width,0,0,0)}},l(ft,"MoveXInFromRight"),w(ft,"MoveXInFromRight"),ft),ht,wr=(ht=class extends re{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){re.apply.call(this,t,-t.width,0,0,0)}},l(ht,"MoveXInFromLeft"),w(ht,"MoveXInFromLeft"),ht),gt,Cr=(gt=class extends re{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){re.apply.call(this,t,0,t.height,0,0)}},l(gt,"MoveYInFromBottom"),w(gt,"MoveYInFromBottom"),gt),mt,Ps=(mt=class extends re{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){re.apply.call(this,t,0,-t.height,0,0)}},l(mt,"MoveYInFromTop"),w(mt,"MoveYInFromTop"),mt),$e,Ms=($e=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=Math.round(e+i*a/100);P.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,0,0,"+c.toString()+"deg)"}})}},l($e,"RotateX"),w($e,"RotateX"),r($e,"duration"),$e),Fe,Rs=(Fe=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=Math.round(e+i*a/100);P.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(0,1,0,"+c.toString()+"deg)"}})}},l(Fe,"RotateY"),w(Fe,"RotateY"),r(Fe,"duration"),Fe),bt,ks=(bt=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=Math.round(e+i*a/100);P.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(0,0,1,"+c.toString()+"deg)"}})}},l(bt,"RotateZ"),w(bt,"RotateZ"),bt),_t,Ds=(_t=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=Math.round(e+i*a/100);P.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,1,1,"+c.toString()+"deg)"}})}},l(_t,"Rotate"),w(_t,"Rotate"),_t),yt,Ls=(yt=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("radius: "+c.toString()),t.style.borderRadius=c.toString()+"px"}})}},l(yt,"Radius"),w(yt,"Radius"),yt),wt,vr=(wt=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("resize: "+c.toString()),t.style.transformOrigin="center",t.style.transform="scale("+c+","+c+")"}})}},l(wt,"Resize"),w(wt,"Resize"),wt),Ct,js=(Ct=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="right",t.style.transform="scaleX("+c+")"}})}},l(Ct,"WipeLeft"),w(Ct,"WipeLeft"),Ct),vt,qs=(vt=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="left",t.style.transform="scaleX("+c+")"}})}},l(vt,"WipeRight"),w(vt,"WipeRight"),vt),Ot,$s=(Ot=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="bottom",t.style.transform="scaleY("+c+")"}})}},l(Ot,"WipeUp"),w(Ot,"WipeUp"),Ot),Et,Fs=(Et=class extends P.Effect{constructor(){super(...arguments);r(this,"duration",1e3)}apply(t,e,n){let a=n-e;super.animate({duration:this.duration,timing(i){return i},draw(i){P.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;P.logger.debug("wipe: "+c.toString()),t.style.transformOrigin="top",t.style.transform="scaleY("+c+")"}})}},l(Et,"WipeDown"),w(Et,"WipeDown"),Et);(0,P.Package)("org.qcobjects.effects.extended",[yr,wr,Cr,Ps,Ms,Rs,ks,Ds,Ls,vr,js,qs,$s,Fs]);var ha=T(),St,To=(St=class extends Ne{constructor(){super(...arguments);r(this,"duration",500)}},l(St,"ModalFade"),w(St,"ModalFade"),St),Nt,Or=(Nt=class extends re{constructor(){super(...arguments);r(this,"duration",800)}},l(Nt,"ModalMoveUp"),w(Nt,"ModalMoveUp"),Nt),xt,Er=(xt=class extends re{constructor(){super(...arguments);r(this,"duration",300)}},l(xt,"ModalMoveDown"),w(xt,"ModalMoveDown"),xt);(0,ha.Package)("org.qcobjects.modal.effects",[To,Er,Or]);var Ee=T(),It,an=(It=class extends Ee.Component{constructor(t){t.name=typeof t.name<"u"?t.name:"form-field";super(t);r(this,"fieldType");r(this,"cached",!1);r(this,"reload",!0);r(this,"body");r(this,"name");r(this,"data")}createBindingEvents(){let t;typeof this.fieldType>"u"||this.fieldType==null?t=this.body.subelements("*[data-field]"):t=this.body.subelements(this.fieldType+"[data-field]");for(let e=0;e<t.length;e++){let n=t[e];n.addEventListener("change",()=>{Ee.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("blur",()=>{Ee.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("focus",()=>{Ee.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("keydown",()=>{Ee.logger.debug("Executing keydown event binding"),this.executeBindings()})}}executeBinding(t){let e=t.getAttribute("data-field");Ee.logger.debug("Binding "+e+" for "+this.name),this.data[e]=t.value}executeBindings(){let t;typeof this.fieldType>"u"||this.fieldType==null?t=this.body.subelements("*[data-field]"):t=this.body.subelements(this.fieldType+"[data-field]");for(let e=0;e<t.length;e++){let n=t[e],a=n.getAttribute("data-field");Ee.logger.debug("Binding "+a+" for "+this.name),this.data[a]=n.value}}done(t){let e=super.done(t);return this.executeBindings(),this.createBindingEvents(),Ee.logger.debug("Field loaded: "+this.fieldType+"[name="+this.name+"]"),e}},l(It,"FormField"),w(It,"FormField"),It);(0,Ee.Package)("org.qcobjects.base.components",[an]);var Tt,Gs=(Tt=class extends G.Component{constructor(t){t.body=(0,G._DOMCreateElement)("div");super(t);r(this,"container",null);r(this,"shadowed",!0);r(this,"cached",!1);r(this,"controller",null);r(this,"view",null);r(this,"data",{})}},l(Tt,"ShadowedComponent"),w(Tt,"ShadowedComponent"),Tt),At,Hs=(At=class extends an{constructor(s){s.fieldType="button",super(s)}},l(At,"ButtonField"),w(At,"ButtonField"),At),Pt,Bs=(Pt=class extends an{constructor(s){s.fieldType="input",super(s)}},l(Pt,"InputField"),w(Pt,"InputField"),Pt),Mt,Us=(Mt=class extends an{constructor(s){s.fieldType="textarea",super(s)}},l(Mt,"TextField"),w(Mt,"TextField"),Mt),Rt,Ws=(Rt=class extends an{constructor(s){s.fieldType="input",super(s)}},l(Rt,"EmailField"),w(Rt,"EmailField"),Rt),kt,Vs=(kt=class extends G.Component{constructor(t){t.body=(0,G._DOMCreateElement)("div");super(t);r(this,"name","modalenclosure");r(this,"tplsource","inline");r(this,"cached",!1);r(this,"basePath",G.CONFIG.get("modalBasePath",G.CONFIG.get("remoteSDKPath","")));r(this,"template",`
|
|
42
22
|
<!-- The Modal -->
|
|
43
23
|
<style>
|
|
44
24
|
@import url('https://sdk.qcobjects.dev/css/modal.css');
|
|
@@ -52,10 +32,10 @@
|
|
|
52
32
|
</div>
|
|
53
33
|
|
|
54
34
|
</div>
|
|
55
|
-
`);r(this,"data",{})}},
|
|
35
|
+
`);r(this,"data",{})}},l(kt,"ModalEnclosureComponent"),w(kt,"ModalEnclosureComponent"),kt),Dt,Sr=(Dt=class extends G.Component{constructor(t){t.basePath=G.CONFIG.get("modalBasePath",G.CONFIG.get("remoteSDKPath",""));super(t);r(this,"name","modal");r(this,"cached",!1);r(this,"modalEnclosureComponentClass","ModalEnclosureComponent");r(this,"controller",null);r(this,"view",null);r(this,"tplsource","none");r(this,"closeOnClickOutside",!1);r(this,"data",{content:"",modalId:0});r(this,"submodal",null);r(this,"__instanceID");r(this,"basePath");r(this,"subcomponents");r(this,"body");r(this,"templateURI");this.data.modalId=this.__instanceID;let e=(0,G.New)((0,G.ClassFactory)(this.modalEnclosureComponentClass),{name:this.name,basePath:this.basePath,data:this.data});this.subcomponents.push(e),this.submodal=e,e.tplsource==="none"?this.body.innerHTML=e.parsedAssignmentText:this.body.append(e.body)}modal(){let t=this.data.modalId;(0,G.Tag)("#modalInstance_"+t+".modal").map(e=>(e.style.display="block",new To().apply(e,0,1))),(0,G.Tag)("#modalInstance_"+t+".modal .modal-content").map(e=>Er.apply(e,0,-document.body.clientHeight,0,0)),(0,G.Tag)("#modalInstance_"+t+".modal .modal-content .close").map(e=>e.addEventListener("click",()=>{this.close()},!1)),this.closeOnClickOutside&&window.addEventListener("click",()=>{this.close()},!1)}close(){let t=this.data.modalId;(0,G.Tag)("#modalInstance_"+t+".modal").map(e=>(e.style.display="block",new To({duration:3e3}).apply(e,1,0))),(0,G.Tag)("#modalInstance_"+t+".modal .modal-content").map(function(e){return Or.apply(e,0,0,0,-document.body.clientHeight)}),setTimeout(function(){(0,G.Tag)("#modalInstance_"+t+".modal").map(e=>(e.style.display="none",!0))},900)}rebuild(){let t=super.rebuild();return this.templateURI=(0,G.ComponentURI)({COMPONENTS_BASE_PATH:G.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:"modal",TPLEXTENSION:G.CONFIG.get("tplextension",""),TPL_SOURCE:"default"}),t}},l(Dt,"ModalComponent"),w(Dt,"ModalComponent"),Dt),Lt,zs=(Lt=class extends G.Component{constructor(){super(...arguments);r(this,"cached",!1);r(this,"basePath",G.CONFIG.get("remoteSDKPath",""));r(this,"tplextension","tpl.html");r(this,"name","swagger-ui")}},l(Lt,"SwaggerUIComponent"),w(Lt,"SwaggerUIComponent"),Lt);(0,G.Package)("org.qcobjects.form.components",[Gs,Hs,Bs,Us,Ws,Vs,Sr,zs]);var Nr=T(),jt,Js=(jt=class extends Nr.Component{constructor(){super(...arguments);r(this,"name","grid-item");r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
56
36
|
<img src="{{image}}" />
|
|
57
37
|
<p>{{description}}</p>
|
|
58
|
-
`);r(this,"cached",!1)}},
|
|
38
|
+
`);r(this,"cached",!1)}},l(jt,"GridItemComponent"),w(jt,"GridItemComponent"),jt),qt,Qs=(qt=class extends Nr.Component{constructor(t){super(t);r(this,"name","grid");r(this,"cached",!1);r(this,"view",null);r(this,"shadowed",!0);r(this,"rows",3);r(this,"cols",3);r(this,"templateURI","");r(this,"data",{});r(this,"tplsource","inline");r(this,"template","<p>Loading...</p>");r(this,"body");this.body.setAttribute("controllerClass","DataGridController");let e=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",e)}},l(qt,"GridComponent"),w(qt,"GridComponent"),qt);(0,Nr.Package)("org.qcobjects.components.grid",[Qs,Js]);var xr=T(),$t,Zs=($t=class extends xr.Component{constructor(t){t.name="list-item";super(t);r(this,"shadowed",!1);r(this,"tplsource","inline");r(this,"template",'<a href="{{value}}">{{label}}</a>');r(this,"cached",!1)}},l($t,"ListItemComponent"),w($t,"ListItemComponent"),$t),Ft,Ks=(Ft=class extends xr.Component{constructor(t){t.name="list";super(t);r(this,"data");r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template","<p>Loading...</p>");r(this,"body");r(this,"shadowRoot");r(this,"rows");r(this,"subcomponents");r(this,"done");r(this,"serviceData");this.body.setAttribute("controllerClass","ListController"),this.body.setAttribute("subcomponentClass","ListItemComponent")}},l(Ft,"ListComponent"),w(Ft,"ListComponent"),Ft);(0,xr.Package)("org.qcobjects.components.list",[Zs,Ks]);var Mo=T(),Gt,Xs=(Gt=class extends Mo.Component{constructor(t){super(t);r(this,"tplsource","inline");r(this,"template","<p>Loading...</p>");r(this,"name","slidelist");r(this,"body");this.body.setAttribute("controllerClass","DataGridController");let e=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",e)}},l(Gt,"SlideListComponent"),w(Gt,"SlideListComponent"),Gt),Ht,Ys=(Ht=class extends Mo.Component{constructor(t){super(t);r(this,"effectClass","Fade");r(this,"name","slider_item");r(this,"data");r(this,"template");r(this,"tplsource");this.data.slideNumber=this.data.__dataIndex+1,this.template=`
|
|
59
39
|
<div class="qcoSlides" style="display:none">
|
|
60
40
|
<div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
|
|
61
41
|
<img src="{{image}}" alt="{{title}}"/>
|
|
@@ -63,7 +43,7 @@
|
|
|
63
43
|
<p>{{label}} <a href="{{link}}">{{category}}</a></p>
|
|
64
44
|
</div>
|
|
65
45
|
</div>
|
|
66
|
-
`,this.tplsource="inline"}},
|
|
46
|
+
`,this.tplsource="inline"}},l(Ht,"SlideItemComponent"),w(Ht,"SlideItemComponent"),Ht),Bt,ei=(Bt=class extends Mo.Component{constructor(t){super(t);r(this,"name","slider");r(this,"template");r(this,"tplsource");r(this,"shadowed");r(this,"data");r(this,"body");r(this,"__instanceID");this.template=`
|
|
67
47
|
<style>
|
|
68
48
|
/* Slideshow container */
|
|
69
49
|
|
|
@@ -183,7 +163,7 @@
|
|
|
183
163
|
<div class="qcoSlider__dots" style="text-align:center">
|
|
184
164
|
</div>
|
|
185
165
|
|
|
186
|
-
`,this.tplsource="inline",this.shadowed=!0,this.data.SERVICE_CLASS=this.body.getAttribute("serviceClass"),this.data.sliderHandler="slider_"+this.__instanceID.toString(),this.body.setAttribute("controllerClass","SliderController")}},
|
|
166
|
+
`,this.tplsource="inline",this.shadowed=!0,this.data.SERVICE_CLASS=this.body.getAttribute("serviceClass"),this.data.sliderHandler="slider_"+this.__instanceID.toString(),this.body.setAttribute("controllerClass","SliderController")}},l(Bt,"SliderComponent"),w(Bt,"SliderComponent"),Bt);(0,Mo.Package)("org.qcobjects.components.slider",[Xs,Ys,ei]);var z=T(),de,ti=(de=class extends z.Component{constructor(t){t.name="notification",t.body=(0,z._DOMCreateElement)("div");super(t);r(this,"cached",!1);r(this,"tplsource","inline");r(this,"shadowed",!1);r(this,"kinds");r(this,"template");this.template=`
|
|
187
167
|
<style>
|
|
188
168
|
div.notification_background {
|
|
189
169
|
display: block; /* Hidden by default */
|
|
@@ -228,7 +208,7 @@
|
|
|
228
208
|
<p><strong>{{title}}</strong> {{message}}</p>
|
|
229
209
|
</div>
|
|
230
210
|
</div>
|
|
231
|
-
`,this.kinds=["danger","success","info","warning"]}display(t){let
|
|
211
|
+
`,this.kinds=["danger","success","info","warning"]}display(t){let e=w(function(n){n.style.display="block";let a=(0,z.New)(re,{duration:900,apply(c){(0,z._super_)("Fade","apply").call(this,c,0,1),(0,z._super_)("Move","apply").call(this,c,0,-document.body.clientHeight,0,0)}}),i=(0,z.New)(re,{duration:650,apply(c){(0,z._super_)("Fade","apply").call(this,c,1,0),(0,z._super_)("Move","apply").call(this,c,0,0,0,-document.body.clientHeight)}});a.apply(n),setTimeout(function(){i.apply(n)},2e3)},"_display_");t.subelements("div.notification_background").map(n=>new Ne({duration:500}).apply(n,0,1)),t.subelements("div.notification").map(n=>e(n)),setTimeout(function(){t.remove()},2200)}static success(t){let e=(0,z.New)(de,{name:"notification",shadowed:!0,body:(0,z._DOMCreateElement)("div"),data:{kind:"success",title:"Success!",message:`${t}...`}});document.body.append(e);let n=e.shadowed?e.shadowRoot.host:e.body;e.display(n)}static danger(t){let e=(0,z.New)(de,{name:"notification",shadowed:!0,body:(0,z._DOMCreateElement)("div"),data:{kind:"danger",title:"Danger!",message:`${t}...`}});document.body.append(e);let n=e.shadowed?e.shadowRoot.host:e.body;e.display(n)}static info(t){let e=(0,z.New)(de,{name:"notification",shadowed:!0,body:(0,z._DOMCreateElement)("div"),data:{kind:"info",title:"Info!",message:`${t}...`}});document.body.append(e);let n=e.shadowed?e.shadowRoot.host:e.body;e.display(n)}static warning(t){let e=(0,z.New)(de,{name:"notification",shadowed:!0,body:(0,z._DOMCreateElement)("div"),data:{kind:"warning",title:"Warning!",message:`${t}...`}});document.body.append(e);let n=e.shadowed?e.shadowRoot.host:e.body;e.display(n)}},l(de,"_NotificationComponent"),w(de,"NotificationComponent"),de);(0,z.Package)("org.quickcorp.components.notifications",[ti]);var oe=T(),Ut,no=(Ut=class extends oe.Component{constructor(t){t.name=typeof t.name>"u"?"splashscreen":t.name;let e=typeof window<"u"&&typeof window.self<"u"&&window===window.self,n=location.hash===""&&location.pathname==="/"&&location.search===""||oe.CONFIG.get("routingWay","pathname")==="hash"&&oe.CONFIG.get("start_url","/")===location.hash||oe.CONFIG.get("routingWay","pathname")==="pathname"&&oe.CONFIG.get("start_url","/")===location.pathname||oe.CONFIG.get("routingWay","pathname")==="search"&&oe.CONFIG.get("start_url","/")===location.search,a=e&&n;a?(t.basePath=oe.CONFIG.get("splashscreenBasePath",oe.CONFIG.get("remoteSDKPath","")),typeof t.data>"u"&&(t.data={}),t.data.basePath=t.basePath):typeof t<"u"&&typeof t.body<"u"&&(t.body.style.display="none");super(t);r(this,"_enabled_");r(this,"_bgcolor");r(this,"cached",!1);r(this,"shadowed",!0);r(this,"body");r(this,"shadowRoot");if(this._bgcolor="",this._enabled_=a,this._enabled_){let c=this.body.getAttribute("duration");c===null?c=1e3:c=parseInt(c.toString()),this._bgcolor=this.body.style.backgroundColor;let d=w(()=>{setTimeout(()=>{if(!d.executed){let g=this.shadowed?this.shadowRoot?.host:this.body;typeof oe.global.componentsStack<"u"&&oe.global.componentsStack.filter(p=>p.body.hasAttribute("splashscreen")).map(p=>{oe.logger.debug(`Splash Screen of Main Component: ${p.name}`),p.splashScreenComponent=this;let h=w(()=>{if(!h.executed){let m=p.splashScreenComponent,b=p.shadowed?p.shadowRoot?.host:p.body;p._mainPosition=b.style.position,typeof b<"u"&&(b.style.position="fixed"),p._mainOpacity=b.style.opacity,g.style.width="100%",g.style.height="100%",document.body.style.backgroundColor="#111111",b.style.opacity="0",setTimeout(function(){typeof g<"u"&&(document.body.style.backgroundColor=m?._bgcolor,g.subelements("#slot-logo").map(C=>(C.style.display="block",C.style.transformOrigin="center",new vr().apply(C,1,0))),new Ne().apply(g,1,0))},c-1e3),setTimeout(function(){new Ne().apply(b,0,1),b.style.position=p._mainPosition,document.body.style.backgroundColor=m._bgcolor,g.parentElement!==null&&g.parentElement.remove()},c)}h.executed=!0},"SplashScreenHandler");return p.addComponentHelper(h.bind(p))}),d.executed=!0}})},"_helper_");d.executed=!1,this.addComponentHelper(d.bind(t))}}addComponentHelper(t){throw new Error("Method not implemented.")}},l(Ut,"SplashScreenComponent"),w(Ut,"SplashScreenComponent"),Ut);(0,oe.Package)("org.qcobjects.components.base",[no]);var Wt,ni=(Wt=class extends no{constructor(t){t.name="videosplashscreen";super(t);r(this,"cached",!1);r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
232
212
|
<style>
|
|
233
213
|
:host * {
|
|
234
214
|
box-sizing: border-box;
|
|
@@ -391,7 +371,7 @@
|
|
|
391
371
|
</div>
|
|
392
372
|
</div>
|
|
393
373
|
|
|
394
|
-
`)}},
|
|
374
|
+
`)}},l(Wt,"VideoSplashScreenComponent"),w(Wt,"VideoSplashScreenComponent"),Wt),Vt,oi=(Vt=class extends no{constructor(t){t.name="cubesplashscreen";super(t);r(this,"cached",!1);r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
395
375
|
<style>
|
|
396
376
|
@keyframes spin {
|
|
397
377
|
0% {
|
|
@@ -703,19 +683,19 @@
|
|
|
703
683
|
</div>
|
|
704
684
|
</div>
|
|
705
685
|
|
|
706
|
-
`)}},
|
|
707
|
-
display: grid; grid-template-rows: ${
|
|
708
|
-
display: grid; grid-template-rows: ${
|
|
709
|
-
display: grid; grid-template-rows: ${
|
|
686
|
+
`)}},l(Vt,"CubeSplashScreenComponent"),w(Vt,"CubeSplashScreenComponent"),Vt);(0,oe.Package)("org.qcobjects.components.splashscreen",[no,ni,oi]);var ri=T(),zt,si=(zt=class extends ri.Controller{},l(zt,"GenericController"),w(zt,"GenericController"),zt);(0,ri.Package)("org.qcobjects.controllers",[si]);var A=T(),Jt,ii=(Jt=class extends A.Controller{constructor({component:t,dependencies:e=[],valueField:n=void 0,labelField:a=void 0}){super({component:t,dependencies:e,valueField:n,labelField:a});r(this,"__instanceID");r(this,"component");r(this,"valueField");r(this,"labelField");r(this,"rows");r(this,"cols");r(this,"_componentRoot");this.component=t,this._componentRoot=this.component.shadowed?this.component.shadowRoot:this.component.body,this.labelField=this.component.body.getAttribute("label-field"),this.valueField=this.component.body.getAttribute("value-field"),this.rows=this.component.body.getAttribute("rows"),this.rows=this.rows!==null?this.rows:this.component.rows,this.cols=1,A.logger.debug("ListController INIT")}getPageIndex(t,e,n){return t=t>0?t-1:0,[n*t/e,n*t/e+n/e]}addSubcomponents(){this.component.subcomponents=[];let t=this.component.body.getAttribute("layout"),e=A.CONFIG.get("listBasePath",A.CONFIG.get("remoteSDKPath","")),n="";this.labelField=this.component.body.getAttribute("label-field"),this.valueField=this.component.body.getAttribute("value-field"),t==="horizontal"?n=`@import url("${e}css/components/horizontal-list.css");`:n=`@import url("${e}css/components/list.css");`,typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=`<style>${n}</style><ul></ul>`),A.logger.debug((0,A._DataStringify)(this.component.data));try{let a=this.component.body.getAttribute("subcomponentClass");if(a!=null){let i,c,d,g=[...this.component.data],p=this.component.body.getAttribute("paginate-in");p=p!==null?p:"client";let h;p==="client"?(h=this.component.body.getAttribute("page-number"),h=isNaN(h)||h===null?-1:h,h!==-1?(d=this.component.body.getAttribute("total-pages"),d=isNaN(d)?1:d,i=this.getPageIndex(h,d,g.length)[0],c=this.getPageIndex(h,d,g.length)[1]):(i=0,c=g.length,d=1),g=g.slice(i,c)):(i=0,c=g.length,d=1),g.map((m,b)=>{try{let _=(0,A._DOMCreateElement)("li");m.label=m[this.labelField],m.value=m[this.valueField];let E=(0,A.New)((0,A.ClassFactory)(a),{name:"list-item",data:{label:m[this.labelField],value:m[this.valueField],__dataIndex:b,__page:h,__totalPages:d,__limit:c,__offset:i},templateURI:(0,A.ComponentURI)({COMPONENTS_BASE_PATH:A.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,A.ClassFactory)(a).name,TPLEXTENSION:A.CONFIG.get("tplextension",""),TPL_SOURCE:(0,A.ClassFactory)(a).tplsource}),body:_,template:(0,A.ClassFactory)(a).template});E.done=this.component.done.bind(E);try{if(E){E.data.__dataIndex=b,Object.hasOwnProperty.call(this.component.data,"length")&&(E.data.__dataLength=this.component.data.length),A.logger.debug("adding subcomponent to body"),this._componentRoot.subelements("ul").map(x=>x.append(E));try{this.component.subcomponents.push(E)}catch(x){A.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${x}`)}}else A.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch(x){A.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${x}`)}}catch(_){A.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${_}`)}})}else A.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch(a){A.logger.debug(`No data for component: ${a}`)}}cssGrid(){let t=this.component,e=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let n=(0,A._DOMCreateElement)("style"),a="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();n.innerHTML=`.${c}{
|
|
687
|
+
display: grid; grid-template-rows: ${a}; grid-template-columns: ${i}; margin:0 auto; }`,e.append(n),e.classList.add(c)}}done(){this.cssGrid();let t=this.component;A.logger.debug("ListController DONE");let e=this.component.body.getAttribute("serviceClass");if(e!=null){let n,a,i=t.body.getAttribute("paginate-in");if(i=i!==null?i:"client",i==="server"){let c=t.body.getAttribute("page-number");c=isNaN(c)||c===null?-1:c;let d;if(c!==-1){let g=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;d=this.component.body.getAttribute("total-pages"),d=isNaN(d)?1:d,n=this.getPageIndex(c,d,g)[0],a=this.getPageIndex(c,d,g)[1],t.serviceData=typeof t.serviceData<"u"?t.serviceData:{},t.serviceData.params=typeof t.serviceData.params<"u"?t.serviceData.params:{},t.serviceData.params.offset=n,t.serviceData.params.limit=a}}(0,A.serviceLoader)((0,A.New)((0,A.ClassFactory)(e),{data:t.serviceData}),!1).then(c=>{A.logger.debug("DONE SERVICE COMPONENT"),c.service.JSONresponse=JSON.parse(c.service.template),typeof c.service.JSONresponse.result<"u"?(A.logger.debug((0,A._DataStringify)(c.service.JSONresponse.result)),t.data=c.service.JSONresponse.result):t.data=c.service.JSONresponse,this.addSubcomponents()},c=>{A.logger.debug(c)}).catch(c=>{A.logger.debug("Something went wrong when calling the service from: "+e),A.logger.debug(c.message)})}}},l(Jt,"ListController"),w(Jt,"ListController"),Jt);(0,A.Package)("org.qcobjects.controllers.list",[ii]);var N=T(),Qt,ai=(Qt=class extends N.Controller{constructor(t){super(t);r(this,"__instanceID");r(this,"rows");r(this,"cols");r(this,"component");this.rows=this.component.body.getAttribute("rows"),this.rows=this.rows!==null?this.rows:this.component.rows,this.cols=this.component.body.getAttribute("cols"),this.cols=this.cols!==null?this.cols:this.component.cols}cssGrid(){let t=this.component,e=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let n=(0,N._DOMCreateElement)("style"),a="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();n.innerHTML=`.${c}{
|
|
688
|
+
display: grid; grid-template-rows: ${a}; grid-template-columns: ${i}; margin:0 auto; }`,e?.append(n),t.shadowed?e?.host.classList.add(c):e.classList.add(c)}}done(){this.cssGrid(),N.logger.debug("GridComponent built")}},l(Qt,"GridController"),w(Qt,"GridController"),Qt),Zt,ci=(Zt=class extends N.Controller{constructor(t){super(t);r(this,"__instanceID");r(this,"rows");r(this,"cols");r(this,"_componentRoot");r(this,"component");this._componentRoot=t.component.shadowed?t.component.shadowRoot:t.component.body,this.rows=t.component.body.getAttribute("rows"),this.rows=t.rows!==null?t.rows:t.component.rows,this.cols=t.component.body.getAttribute("cols"),this.cols=t.cols!==null?t.cols:t.component.cols,N.logger.debug("DataGridController INIT")}getPageIndex(t,e,n){return t=t>0?t-1:0,[n*t/e,n*t/e+n/e]}addSubcomponents(){this.component.subcomponents=[],typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=""),this.cssGrid(),N.logger.debug((0,N._DataStringify)(this.component.data));try{let t=this.component.body.getAttribute("subcomponentClass");if(t!=null){let e,n,a,i=[...this.component.data],c=this.component.body.getAttribute("paginate-in"),d;c=c!==null?c:"client",c==="client"?(d=this.component.body.getAttribute("page-number"),d=isNaN(d)||d===null?-1:d,d!==-1?(a=this.component.body.getAttribute("total-pages"),a=isNaN(a)?1:a,e=this.getPageIndex(d,a,i.length)[0],n=this.getPageIndex(d,a,i.length)[1]):(e=0,n=i.length,a=1),i=i.slice(e,n)):(e=0,n=i.length,a=1),i.map((g,p,h)=>{try{let b=(0,N._DOMCreateElement)("component");b.setAttribute("name",(0,N.ClassFactory)(t).name),b.setAttribute("shadowed",(0,N.ClassFactory)(t).shadowed),b.setAttribute("cached",(0,N.ClassFactory)(t).cached),g=Object.assign(g,{__dataIndex:p,__dataLength:h.length,__page:d,__totalPages:a,__limit:n,__offset:e});let C=(0,N.New)((0,N.ClassFactory)(t),{name:"item",data:g,templateURI:(0,N.ComponentURI)({COMPONENTS_BASE_PATH:N.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,N.ClassFactory)(t).name,TPLEXTENSION:N.CONFIG.get("tplextension",""),TPL_SOURCE:(0,N.ClassFactory)(t).tplsource}),body:b,template:(0,N.ClassFactory)(t).template});C.done=this.component.done.bind(C);try{if(C){C.data.__dataIndex=p,Object.hasOwnProperty.call(this.component.data,"length")&&(C.data.__dataLength=this.component.data.length),N.logger.debug("adding subcomponent to body"),this._componentRoot?.append(C.body);try{this.component.subcomponents.push(C)}catch(_){N.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${_}`)}}else N.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch(_){N.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${_}`)}}catch(b){N.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${b}`)}})}else N.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch(t){N.logger.debug(`No data for component: ${t}`)}}cssGrid(){let t=this.component,e=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let n=(0,N._DOMCreateElement)("style"),a="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();n.innerHTML=`.${c}{
|
|
689
|
+
display: grid; grid-template-rows: ${a}; grid-template-columns: ${i}; margin:0 auto; }`,t.shadowed?(t.body.append(n),e.host.classList.add(c)):(e?.append(n),e.classList.add(c))}}done(){let t=this.component;N.logger.debug("DataGridController DONE");let e=this.component.body.getAttribute("serviceClass");if(e!=null){let n,a,i=t.body.getAttribute("paginate-in");if(i=i!==null?i:"client",i==="server"){let c=t.body.getAttribute("page-number");c=isNaN(c)||c===null?-1:c;let d;if(c!==-1){let g=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;d=this.component.body.getAttribute("total-pages"),d=isNaN(d)?1:d,n=this.getPageIndex(c,d,g)[0],a=this.getPageIndex(c,d,g)[1],t.serviceData=typeof t.serviceData<"u"?t.serviceData:{},t.serviceData.params=typeof t.serviceData.params<"u"?t.serviceData.params:{},t.serviceData.params.offset=n,t.serviceData.params.limit=a}}(0,N.serviceLoader)((0,N.New)((0,N.ClassFactory)(e),{data:t.serviceData}),!1).then(c=>{N.logger.debug("DONE SERVICE COMPONENT"),c.service.JSONresponse=JSON.parse(c.service.template),typeof c.service.JSONresponse.result<"u"?(N.logger.debug((0,N._DataStringify)(c.service.JSONresponse.result)),t.data=c.service.JSONresponse.result):t.data=c.service.JSONresponse,this.addSubcomponents()},c=>{N.logger.debug(c)}).catch(c=>{N.logger.debug("Something went wrong when calling the service from: "+e),N.logger.debug(c.message)})}}},l(Zt,"DataGridController"),w(Zt,"DataGridController"),Zt);(0,N.Package)("org.qcobjects.controllers.grid",[ai,ci]);var Le=T(),Kt,li=(Kt=class extends Le.Controller{constructor({component:t,dependencies:e=[],duration:n=7100,slideIndex:a=0,interval:i=null,sliderHandlerName:c=null}){super({component:t,dependencies:e,duration:n,slideIndex:a,interval:i,sliderHandlerName:c});r(this,"slideIndex",0);r(this,"duration",7100);r(this,"interval",null);r(this,"sliderHandlerName","");r(this,"_componentRoot");r(this,"component");this.component=t,this._componentRoot=t.shadowed?t.shadowRoot:t.body,this.sliderHandlerName="slider_"+this.component.__instanceID.toString(),global.set(this.sliderHandlerName,this)}stop(){this.interval!=null&&clearInterval(this.interval)}plusSlidesAndStop(t){this.stop(),this.plusSlides(t)}plusSlides(t){this.showSlides(this.slideIndex+=t)}currentSlide(t){this.stop(),this.showSlides(this.slideIndex=t)}automate(){this.interval=setInterval(()=>{this.plusSlides(1)},this.duration)}showSlides(t){let e=this._componentRoot?.subelements(".qcoSlides"),n=this._componentRoot?.subelements(".qcoSlider__dots--dot");t>e.length-1&&(this.slideIndex=0),t<0&&(this.slideIndex=0),e.filter((a,i)=>i!==this.slideIndex).map(a=>(0,Le.New)((0,Le.ClassFactory)("Fade"),{}).apply(a,1,0)),n.filter((a,i)=>i!==this.slideIndex).map(a=>a.classList.remove("active"));try{n[this.slideIndex].classList.add("active")}catch(a){Le.logger.debug(`Something went wrong when trying to activate a slide: ${this.slideIndex} - ${a.message}`)}setTimeout(()=>{e.filter((a,i)=>i!==this.slideIndex).map(a=>(a.style.display="none",a.style.display));try{e[this.slideIndex].style.display="block",(0,Le.New)((0,Le.ClassFactory)("Fade"),{}).apply(e[this.slideIndex],0,1)}catch(a){Le.logger.debug(`Something went wrong when trying to show a slide: ${this.slideIndex} - ${a.message}`)}},700)}fillDots(){(this._componentRoot?.subelements(".qcoSlides")).map((e,n)=>{let a=document.createElement("span"),i=`<span class="qcoSlider__dots--dot" onclick="global.get('${this.sliderHandlerName}').currentSlide(${n})"></span>`;return a.innerHTML=i,this._componentRoot?.subelements(".qcoSlider__dots")[0].append(a)})}done(){(this._componentRoot?.subelements(".qcoSlides")).filter((e,n)=>n!==this.slideIndex).map(e=>(e.style.display="none",e.style.display)),setTimeout(()=>{this.fillDots(),this.slideIndex=0,this.showSlides(this.slideIndex),this.automate()},3e3)}},l(Kt,"SliderController"),w(Kt,"SliderController"),Kt);(0,Le.Package)("org.qcobjects.controllers.slider",[li]);var J=T(),Xt,di=(Xt=class extends J.Controller{getDefault(){return function(s,t,e){let n={name:"^[a-zA-Z]+(([',. -][a-zA-Z ])?[a-zA-Z]*)*$",email:"^([A-Za-z0-9]+)@([A-Za-z0-9]+).([A-Za-z0-9]+)$"},a=e.getAttribute("pattern")||n[s];return new RegExp(a).test(t)}}},l(Xt,"FormValidations"),w(Xt,"FormValidations"),Xt),Yt,ui=(Yt=class extends J.Controller{constructor(t){super(t);r(this,"validations",[]);r(this,"formValidatorModal");r(this,"serviceClass","");r(this,"formSettings",{backRouting:"#",loadingRouting:"#loading",nextRouting:"#signupsuccessful"});r(this,"component");this.component=t.component,this.component=this.component.Cast(an)}hasValidation(t){let e=t.getAttribute("data-field"),n=!1;return typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,e)&&(n=!0),n}isInvalid(t){let e=!1,n=t.getAttribute("data-field"),a=this.component.data[n],i=w((c,d,g)=>typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,c)&&this.validations[c].call(null,c,d,g),"_execValidation");return typeof this.validations<"u"&&!i(n,a,t)&&(e=!0),e}isValid(t){return!this.isInvalid(t)}save(){this.serviceClass!==""?(location.href=this.formSettings.loadingRouting,(0,J.serviceLoader)((0,J.New)((0,J.ClassFactory)(this.serviceClass),{data:this.component.data}),!1).then(()=>{J.logger.info("DONE SERVICE COMPONENT"),location.href=this.formSettings.nextRouting},t=>{J.logger.debug(t),location.href=this.formSettings.backRouting})):J.logger.debug("No service name declared on serviceClass property")}formSaveTouchHandler(){J.logger.debug("Saving data...");let t=this.component.shadowed?(this.component?.shadowRoot).host:this.component.body;if(this.component.executeBindings(),this.formValidatorModal!=null){let n=t.subelements("*[data-field]").filter(d=>this.hasValidation(d)),a=w(function(d,g){return w((h,m)=>m.getAttribute("aria-labelledby")!==null?(m.getAttribute("aria-labelledby")||"").split(" ").map(b=>h.subelements(`#${b}`).map(C=>C.innerHTML)).join(" "):null,"_arialabelledby")(d,g)||g.getAttribute("aria-label")||g.getAttribute("placeholder")||g.getAttribute("name")||g.getAttribute("data-field")},"_labelledby"),i=w(function(d){return d.getAttribute("title")||d.getAttribute("aria-title")||""},"_ariatitle"),c=n.filter(d=>this.isInvalid(d));if(c.length>0){let d=`
|
|
710
690
|
<details>
|
|
711
691
|
<summary>Please verify the following incorrect fields:</summary>
|
|
712
692
|
<ul>
|
|
713
693
|
<div>
|
|
714
|
-
${c.map(
|
|
694
|
+
${c.map(g=>"<li><div>"+a(t,g)+"</div><div>"+i(g)+"</div></li>").join("")}
|
|
715
695
|
</div>
|
|
716
696
|
</ul>
|
|
717
697
|
</details>
|
|
718
|
-
`;this.formValidatorModal.body.subelements(".validationMessage")[0].innerHTML=l,this.formValidatorModal.modal()}else this.save()}else Me.logger.debug("Unable to find the modal validator..."),Me.logger.debug("Saving data..."),this.save()}done(){Me.logger.debugEnabled=!0;try{this.component.createBindingEvents();let t=(0,Me._DOMCreateElement)("div");t.className="modal_body",this.formValidatorModal=(0,Me.New)(ti,{body:t,subcomponents:[],data:{content:'<div class="validationMessage"></div>'}}),(0,Me.Tag)(".modal_body").map(n=>document.body.removeChild(n)),document.body.append(this.formValidatorModal.body)}catch(t){Me.logger.debug(`Unable to create the modal: ${t}`)}this.onpress(".submit",()=>{this.formSaveTouchHandler()})}onpress(t,n){throw new Error("Method not implemented.")}},h(no,"FormController"),b(no,"FormController"),no);(0,Me.Package)("org.qcobjects.controllers.form",[sc,rc]);var ke=de(ue()),oo,ic=(oo=class extends ke.Controller{constructor(){super(...arguments);r(this,"component");r(this,"dependencies")}startSwaggerUI(){if(typeof SwaggerUIBundle<"u"){let t=SwaggerUIBundle({url:ke.CONFIG.get("swagger-ui-url","https://petstore.swagger.io/v2/swagger.json"),dom_id:"#"+ke.CONFIG.get("swagger-ui-dom_id","swagger-ui"),deepLinking:!0,presets:[SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins:[SwaggerUIBundle.plugins.DownloadUrl],layout:"StandaloneLayout"});window.ui=t}}done(){this.component.body.innerHTML='<div id="'+ke.CONFIG.get("swagger-ui-dom_id","swagger-ui")+'"></div>';let t=ke.CONFIG.get("swagger-ui-package-path","node_modules/swagger-ui-dist/");this.dependencies?.push((0,ke.New)(ke.SourceJS,{url:t+"swagger-ui-standalone-preset.js",external:ke.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,ke.New)(ke.SourceCSS,{url:t+"swagger-ui.css",external:ke.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,ke.New)(ke.SourceJS,{url:t+"swagger-ui-bundle.js",external:ke.CONFIG.get("swagger-ui-external",!1),done:b(()=>{this.startSwaggerUI()},"done")}))}},h(oo,"SwaggerUIController"),b(oo,"SwaggerUIController"),oo);(0,ke.Package)("org.qcobjects.controllers.swagger",[ic]);var ac=de(ue()),ro,cc=(ro=class extends ac.Controller{constructor(){super(...arguments);r(this,"component")}done(){let t=this.component;t.body.innerHTML=t.body.innerHTML.replace("/{{content}}/g",t.submodal.template)}},h(ro,"ModalController"),b(ro,"ModalController"),ro);(0,ac.Package)("org.qcobjects.modal.controllers",[cc]);var lc=de(ue()),so,dc=(so=class extends lc.View{},h(so,"GridView"),b(so,"GridView"),so);(0,lc.Package)("org.qcobjects.views",[dc]);var uc=de(ue()),io,pc=(io=class extends uc.InheritClass{drawImageFilled(a,t,n=1,o=0,s=0){let i=Math.max(t.width/a.width,t.height/a.height);i=i*n;let c=t.width/2-a.width/2*i,l=t.height/2-a.height/2*i;t.getContext("2d")?.drawImage(a,o+c,s+l,a.width*i,a.height*i)}getImageResized(a,t,n,o,s=1,i=0,c=0){let l=document.createElement("canvas");return l.width=t,l.height=n,l.style.width=t.toString(),l.style.height=n.toString(),this.drawImageFilled(a,l,s,i,c),o.src=l.toDataURL("image/png"),l}},h(io,"CanvasTool"),b(io,"CanvasTool"),io);(0,uc.Package)("org.qcobjects.tools.canvas",[pc]);var se=de(ue()),ao,fc=(ao=class extends se.InheritClass{constructor({component:t=null,dependencies:n=[]}){super({component:t,dependencies:n});r(this,"dependencies",[])}load(){this.dependencies.push((0,se.New)(se.SourceCSS,{external:!se.CONFIG.get("useLocalSDK",!1),url:se.CONFIG.get("useLocalSDK",!1)?"css/basic-layout.css":se.CONFIG.get("remoteSDKPath",!1)+"css/basic-layout.css"}))}coloredBorder(){setTimeout(function(){(0,se.Tag)("nav").map(t=>{t.style.border="20px solid #3333"}),(0,se.Tag)("nav").map(t=>{t.style.backgroundColor="#129999"}),(0,se.Tag)("component>footer").map(t=>{t.style.background="#876"}),(0,se.Tag)("component>div").map(t=>{t.style.border="3px dashed #fff"}),(0,se.Tag)("component>section").map(t=>{t.style.border="3px solid #000"}),(0,se.Tag)("component>section").map(t=>{t.style.backgroundColor="#fffaaa"}),(0,se.Tag)("component>article").map(t=>{t.style.border="3px dotted #000"}),(0,se.Tag)("component>header").map(t=>{t.style.background="#789"}),(0,se.Tag)("component>footer").map(t=>{t.style.background="#876"}),(0,se.Tag)("component>article:nth-child(1)").map(t=>{t.style.border="1px solid #444"}),(0,se.Tag)("component>article:nth-child(1)").map(t=>{t.style.backgroundColor="#555aaa"}),(0,se.Tag)("component>article:nth-child(2)").map(t=>{t.style.backgroundColor="#aaa333"}),(0,se.Tag)("component>article:nth-child(3)").map(t=>{t.style.backgroundColor="#54da82"}),(0,se.Tag)("*").map(t=>{t.style.color="#fff"}),(0,se.Tag)("component>article").map(t=>vt.apply(t,0,1)),(0,se.Tag)("component>footer").map(t=>vt.apply(t,0,1)),(0,se.Tag)("component>header").map(t=>vt.apply(t,0,1)),(0,se.Tag)("nav").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),zs.apply(t)}),(0,se.Tag)("component>article").map(t=>{t.style.display="block",t.style.height=t.offsetParent?.scrollHeight.toString()||t.clientHeight.toString(),Ys.apply(t)}),(0,se.Tag)("component>article:nth-child(2)").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),Js.apply(t)})},300)}},h(ao,"BasicLayout"),b(ao,"BasicLayout"),ao);(0,se.Package)("org.qcobjects.tools.layouts",[fc]);var je=de(ue()),ye,$r=(ye=class extends je.InheritClass{constructor(t){super(t);r(this,"__cache__");r(this,"__instanceID");let n=this;this.__cache__=new je.ComplexStorageCache({index:n.__instanceID.toString(),load(){let o;return typeof navigator<"u"&&typeof origin<"u"?o=je._Crypt.encrypt(`${navigator.userAgent}|${t.username}|${(+new Date).toString()}`,origin):o=je._Crypt.encrypt(`${t.username}|${(+new Date).toString()}`,je.CONFIG.get("domain","localhost")),ye.user={priority:n.__instanceID.toString(),token:o},ye.user},alternate(o){ye.user=o?.cache.getCached(n.__instanceID.toString())}})}static generateIndex(t){return typeof Buffer<"u"?Buffer.from(t,"ascii").toString("base64"):btoa(t)}static getGlobalUser(...t){let n=[t].join("|"),o="userToken_"+ye.generateIndex(n);return(typeof je.global.get(o)>"u"||je.global.get(o)===null)&&je.global.set(o,(0,je.New)(ye,{username:n})),ye.user=je.global.get(o).user,je.global.get(o).user}static getGlobalUserToken(...t){return ye.getGlobalUser(t).token}static getGlobalUserId(...t){return ye.getGlobalUser(t).id}static getGlobalUserPriority(...t){return ye.getGlobalUser(t).priority}static getLoginCredentialsToken(t,n){return je._Crypt.encrypt(`${t}${n}`,ye.getGlobalUserToken(t))}static closeGlobalSession(...t){ye.getGlobalUser(t);let n=[t].join("|"),o="userToken_"+ye.generateIndex(n);typeof je.global.get(o)<"u"&&(je.global.get(o).__cache__.clear(),je.global.set(o,null),ye.user={})}},h(ye,"_SessionUserToken"),b(ye,"SessionUserToken"),r(ye,"user",{}),ye);(0,je.Package)("org.qcobjects.cloud.auth.session.usertoken",[$r]);var Rs=de(ue()),co,gc=(co=class extends Rs.InheritClass{constructor(){super(...arguments);r(this,"__session_container__",null);r(this,"sessionData")}setSessionContainer(){this.__session_container__=[...arguments]}getSessionContainer(){if(typeof this.__session_container__>"u"||this.__session_container__===null)throw new Error("You need to set a session container first: sessionData.setSessionContainer(...arguments)");return this.__session_container__}getSessionData(...t){let n=sessionStorage.getItem(`${this.index(t)}`),o;return n!==null&&(o=JSON.parse(n)),(typeof o>"u"||o===null)&&(o={}),o}index(...t){if(typeof $r>"u")throw new Error('You need to import SessionUserToken first: Import ("org.qcobjects.cloud.auth.session.usertoken")');return`session_${btoa($r.getGlobalUserToken(t))}`}save(...t){let n=(0,Rs._DataStringify)(this.sessionData);sessionStorage.setItem(`${this.index(t)}`,n)}get(t,n){let o=this.getSessionData(this.getSessionContainer());return typeof o[t]<"u"?o[t]:n}set(t,n){let o=this.getSessionContainer(),s=this.getSessionData(o);this.sessionData=s,this.sessionData[t]=n,this.save(o)}},h(co,"SessionData"),b(co,"SessionData"),co);(0,Rs.Package)("org.qcobjects.cloud.auth.session.data",[gc]);b(h(function e(a){"use strict";if(typeof Object.defineProperty<"u"&&typeof a<"u")try{Object.defineProperty(a,"__qcobjects_sdk__",{enumerable:!0,configurable:!1,writable:!1,value:e})}catch{typeof a.__qcobjects_sdk__<"u"&&(a.__qcobjects_sdk__.__loaded__=!0)}if(typeof a.__qcobjects_sdk__.__loaded__>"u"){if(a.__qcobjects_sdk__.__loaded__=!0,typeof a>"u")throw Error("Top context empty: It should either global, module or window");let t=qr.GlobalSettings.__start__.bind(a);a._sdk_=Promise.resolve().then(()=>{qr.CONFIG.set("useSDK",!0),t()})}},"__qcobjects_sdk__"),"__qcobjects_sdk__")(qr._top);var Rl=qr._top});var _c=Ve(Ht=>{"use strict";var kl=Ht&&Ht.__createBinding||(Object.create?(function(e,a,t,n){n===void 0&&(n=t);var o=Object.getOwnPropertyDescriptor(a,t);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:h(function(){return a[t]},"get")}),Object.defineProperty(e,n,o)}):(function(e,a,t,n){n===void 0&&(n=t),e[n]=a[t]})),ql=Ht&&Ht.__setModuleDefault||(Object.create?(function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}):function(e,a){e.default=a}),Fl=Ht&&Ht.__importStar||(function(){var e=h(function(a){return e=Object.getOwnPropertyNames||function(t){var n=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[n.length]=o);return n},e(a)},"ownKeys");return function(a){if(a&&a.__esModule)return a;var t={};if(a!=null)for(var n=e(a),o=0;o<n.length;o++)n[o]!=="default"&&kl(t,a,n[o]);return ql(t,a),t}})();Object.defineProperty(Ht,"__esModule",{value:!0});var Ue=Fl(yt()),$l=ri(),No;(0,Ue.Package)("com.qcobjects.installer",[(No=class extends Ue.InheritClass{constructor(a){super(),this.root=a,window.addEventListener("beforeinstallprompt",()=>this.beforeinstallprompt.bind(this),!1),window.addEventListener("appinstalled",()=>this.installed.bind(this),!1),a.addEventListener("click",()=>this.install.bind(this)),a.addEventListener("touchend",()=>this.install.bind(this)),window.matchMedia("(display-mode: standalone)").addEventListener("change",t=>{let n="browser";t.matches&&(n="standalone"),$l.NotificationComponent.success(`TWA in ${n} Mode`)}),Ue.default.set("installer",this)}beforeinstallprompt(a){return Ue.logger.debug("registering installer event"),a.preventDefault(),Ue.default.set("promptEvent",a),this.root.classList.add("available"),!1}installed(){Ue.logger.debug("app is already installed"),Ue.default.set("promptEvent",null),this.root.classList.remove("available")}install(){let a=this.root;Ue.logger.debug("installer actioned");let t=Ue.default.get("promptEvent",null);t?(Ue.logger.debug("prompt event"),t.prompt(),t.userChoice.then(function(n){n.outcome==="accepted"?a.classList.remove("available"):Ue.logger.debug("User has chosen not to install the PWA"),t=null}).catch(function(n){t=null,a.classList.remove("available"),Ue.logger.warn(`Error during install: ${n.toString()}`)})):Ue.logger.debug("It is not possible to get the prompt event for install ")}},h(No,"Installer"),No)])});var bc=Ve(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});var Vr=yt(),Po,Ao,To;(0,Vr.Package)("org.quickcorp.custom.effects",[(Po=class extends Vr.TransitionEffect{constructor(){super(...arguments),this.duration=780,this.defaultParams={alphaFrom:0,alphaTo:1},this.effects=["Fade","MoveYInFromBottom"],this.fitToHeight=!0}},h(Po,"MainTransitionEffect"),Po),(Ao=class extends Vr.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromLeft"],this.fitToWidth=!0}},h(Ao,"SlideLeftTransitionEffect"),Ao),(To=class extends Vr.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromRight"],this.fitToWidth=!0}},h(To,"SlideRightTransitionEffect"),To)])});var wc=Ve(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var yc=yt(),Io;(0,yc.Package)("org.quickcorp.custom.models",[(Io=class extends yc.VO{constructor(){super(...arguments),this.first_name="",this.last_name="",this.address="",this.postalCode="",this.city="",this.country="",this.email="",this.phone=""}},h(Io,"ContactVO"),Io)])});var Oc=Ve(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var ft=yt(),li=class li extends ft.Component{constructor(){super(...arguments),this.name="github-grid",this.tplsource="inline",this.template=`
|
|
698
|
+
`;this.formValidatorModal.body.subelements(".validationMessage")[0].innerHTML=d,this.formValidatorModal.modal()}else this.save()}else J.logger.debug("Unable to find the modal validator..."),J.logger.debug("Saving data..."),this.save()}done(){J.logger.debugEnabled=!0;try{this.component.createBindingEvents();let t=(0,J._DOMCreateElement)("div");t.className="modal_body",this.formValidatorModal=(0,J.New)(Sr,{body:t,subcomponents:[],data:{content:'<div class="validationMessage"></div>'}}),(0,J.Tag)(".modal_body").map(e=>document.body.removeChild(e)),document.body.append(this.formValidatorModal.body)}catch(t){J.logger.debug(`Unable to create the modal: ${t}`)}this.onpress(".submit",()=>{this.formSaveTouchHandler()})}onpress(t,e){throw new Error("Method not implemented.")}},l(Yt,"FormController"),w(Yt,"FormController"),Yt);(0,J.Package)("org.qcobjects.controllers.form",[ui,di]);var te=T(),en,pi=(en=class extends te.Controller{constructor(){super(...arguments);r(this,"component");r(this,"dependencies")}startSwaggerUI(){if(typeof SwaggerUIBundle<"u"){let t=SwaggerUIBundle({url:te.CONFIG.get("swagger-ui-url","https://petstore.swagger.io/v2/swagger.json"),dom_id:"#"+te.CONFIG.get("swagger-ui-dom_id","swagger-ui"),deepLinking:!0,presets:[SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins:[SwaggerUIBundle.plugins.DownloadUrl],layout:"StandaloneLayout"});window.ui=t}}done(){this.component.body.innerHTML='<div id="'+te.CONFIG.get("swagger-ui-dom_id","swagger-ui")+'"></div>';let t=te.CONFIG.get("swagger-ui-package-path","node_modules/swagger-ui-dist/");this.dependencies?.push((0,te.New)(te.SourceJS,{url:t+"swagger-ui-standalone-preset.js",external:te.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,te.New)(te.SourceCSS,{url:t+"swagger-ui.css",external:te.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,te.New)(te.SourceJS,{url:t+"swagger-ui-bundle.js",external:te.CONFIG.get("swagger-ui-external",!1),done:w(()=>{this.startSwaggerUI()},"done")}))}},l(en,"SwaggerUIController"),w(en,"SwaggerUIController"),en);(0,te.Package)("org.qcobjects.controllers.swagger",[pi]);var fi=T(),tn,hi=(tn=class extends fi.Controller{constructor(){super(...arguments);r(this,"component")}done(){let t=this.component;t.body.innerHTML=t.body.innerHTML.replace("/{{content}}/g",t.submodal.template)}},l(tn,"ModalController"),w(tn,"ModalController"),tn);(0,fi.Package)("org.qcobjects.modal.controllers",[hi]);var gi=T(),nn,mi=(nn=class extends gi.View{},l(nn,"GridView"),w(nn,"GridView"),nn);(0,gi.Package)("org.qcobjects.views",[mi]);var bi=T(),on,_i=(on=class extends bi.InheritClass{drawImageFilled(s,t,e=1,n=0,a=0){let i=Math.max(t.width/s.width,t.height/s.height);i=i*e;let c=t.width/2-s.width/2*i,d=t.height/2-s.height/2*i;t.getContext("2d")?.drawImage(s,n+c,a+d,s.width*i,s.height*i)}getImageResized(s,t,e,n,a=1,i=0,c=0){let d=document.createElement("canvas");return d.width=t,d.height=e,d.style.width=t.toString(),d.style.height=e.toString(),this.drawImageFilled(s,d,a,i,c),n.src=d.toDataURL("image/png"),d}},l(on,"CanvasTool"),w(on,"CanvasTool"),on);(0,bi.Package)("org.qcobjects.tools.canvas",[_i]);var L=T(),rn,yi=(rn=class extends L.InheritClass{constructor({component:t=null,dependencies:e=[]}){super({component:t,dependencies:e});r(this,"dependencies",[])}load(){this.dependencies.push((0,L.New)(L.SourceCSS,{external:!L.CONFIG.get("useLocalSDK",!1),url:L.CONFIG.get("useLocalSDK",!1)?"css/basic-layout.css":L.CONFIG.get("remoteSDKPath",!1)+"css/basic-layout.css"}))}coloredBorder(){setTimeout(function(){(0,L.Tag)("nav").map(t=>{t.style.border="20px solid #3333"}),(0,L.Tag)("nav").map(t=>{t.style.backgroundColor="#129999"}),(0,L.Tag)("component>footer").map(t=>{t.style.background="#876"}),(0,L.Tag)("component>div").map(t=>{t.style.border="3px dashed #fff"}),(0,L.Tag)("component>section").map(t=>{t.style.border="3px solid #000"}),(0,L.Tag)("component>section").map(t=>{t.style.backgroundColor="#fffaaa"}),(0,L.Tag)("component>article").map(t=>{t.style.border="3px dotted #000"}),(0,L.Tag)("component>header").map(t=>{t.style.background="#789"}),(0,L.Tag)("component>footer").map(t=>{t.style.background="#876"}),(0,L.Tag)("component>article:nth-child(1)").map(t=>{t.style.border="1px solid #444"}),(0,L.Tag)("component>article:nth-child(1)").map(t=>{t.style.backgroundColor="#555aaa"}),(0,L.Tag)("component>article:nth-child(2)").map(t=>{t.style.backgroundColor="#aaa333"}),(0,L.Tag)("component>article:nth-child(3)").map(t=>{t.style.backgroundColor="#54da82"}),(0,L.Tag)("*").map(t=>{t.style.color="#fff"}),(0,L.Tag)("component>article").map(t=>Ne.apply(t,0,1)),(0,L.Tag)("component>footer").map(t=>Ne.apply(t,0,1)),(0,L.Tag)("component>header").map(t=>Ne.apply(t,0,1)),(0,L.Tag)("nav").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),wr.apply(t)}),(0,L.Tag)("component>article").map(t=>{t.style.display="block",t.style.height=t.offsetParent?.scrollHeight.toString()||t.clientHeight.toString(),Cr.apply(t)}),(0,L.Tag)("component>article:nth-child(2)").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),yr.apply(t)})},300)}},l(rn,"BasicLayout"),w(rn,"BasicLayout"),rn);(0,L.Package)("org.qcobjects.tools.layouts",[yi]);var X=T(),B,Ao=(B=class extends X.InheritClass{constructor(t){super(t);r(this,"__cache__");r(this,"__instanceID");let e=this;this.__cache__=new X.ComplexStorageCache({index:e.__instanceID.toString(),load(){let n;return typeof navigator<"u"&&typeof origin<"u"?n=X._Crypt.encrypt(`${navigator.userAgent}|${t.username}|${(+new Date).toString()}`,origin):n=X._Crypt.encrypt(`${t.username}|${(+new Date).toString()}`,X.CONFIG.get("domain","localhost")),B.user={priority:e.__instanceID.toString(),token:n},B.user},alternate(n){B.user=n?.cache.getCached(e.__instanceID.toString())}})}static generateIndex(t){return typeof Buffer<"u"?Buffer.from(t,"ascii").toString("base64"):btoa(t)}static getGlobalUser(...t){let e=[t].join("|"),n="userToken_"+B.generateIndex(e);return(typeof X.global.get(n)>"u"||X.global.get(n)===null)&&X.global.set(n,(0,X.New)(B,{username:e})),B.user=X.global.get(n).user,X.global.get(n).user}static getGlobalUserToken(...t){return B.getGlobalUser(t).token}static getGlobalUserId(...t){return B.getGlobalUser(t).id}static getGlobalUserPriority(...t){return B.getGlobalUser(t).priority}static getLoginCredentialsToken(t,e){return X._Crypt.encrypt(`${t}${e}`,B.getGlobalUserToken(t))}static closeGlobalSession(...t){B.getGlobalUser(t);let e=[t].join("|"),n="userToken_"+B.generateIndex(e);typeof X.global.get(n)<"u"&&(X.global.get(n).__cache__.clear(),X.global.set(n,null),B.user={})}},l(B,"_SessionUserToken"),w(B,"SessionUserToken"),r(B,"user",{}),B);(0,X.Package)("org.qcobjects.cloud.auth.session.usertoken",[Ao]);var br=T(),sn,wi=(sn=class extends br.InheritClass{constructor(){super(...arguments);r(this,"__session_container__",null);r(this,"sessionData")}setSessionContainer(){this.__session_container__=[...arguments]}getSessionContainer(){if(typeof this.__session_container__>"u"||this.__session_container__===null)throw new Error("You need to set a session container first: sessionData.setSessionContainer(...arguments)");return this.__session_container__}getSessionData(...t){let e=sessionStorage.getItem(`${this.index(t)}`),n;return e!==null&&(n=JSON.parse(e)),(typeof n>"u"||n===null)&&(n={}),n}index(...t){if(typeof Ao>"u")throw new Error('You need to import SessionUserToken first: Import ("org.qcobjects.cloud.auth.session.usertoken")');return`session_${btoa(Ao.getGlobalUserToken(t))}`}save(...t){let e=(0,br._DataStringify)(this.sessionData);sessionStorage.setItem(`${this.index(t)}`,e)}get(t,e){let n=this.getSessionData(this.getSessionContainer());return typeof n[t]<"u"?n[t]:e}set(t,e){let n=this.getSessionContainer(),a=this.getSessionData(n);this.sessionData=a,this.sessionData[t]=e,this.save(n)}},l(sn,"SessionData"),w(sn,"SessionData"),sn);(0,br.Package)("org.qcobjects.cloud.auth.session.data",[wi]);w(l((function o(s){"use strict";if(typeof Object.defineProperty<"u"&&typeof s<"u")try{Object.defineProperty(s,"__qcobjects_sdk__",{enumerable:!0,configurable:!1,writable:!1,value:o})}catch{typeof s.__qcobjects_sdk__<"u"&&(s.__qcobjects_sdk__.__loaded__=!0)}if(typeof s.__qcobjects_sdk__.__loaded__>"u"){if(s.__qcobjects_sdk__.__loaded__=!0,typeof s>"u")throw Error("Top context empty: It should either global, module or window");let t=Io.GlobalSettings.__start__.bind(s);s._sdk_=Promise.resolve().then(()=>{Io.CONFIG.set("useSDK",!0),t()})}}),"__qcobjects_sdk__"),"__qcobjects_sdk__")(Io._top);var ga=Io._top});var vi=ae(Ge=>{"use strict";var ma=Ge&&Ge.__createBinding||(Object.create?(function(o,s,t,e){e===void 0&&(e=t);var n=Object.getOwnPropertyDescriptor(s,t);(!n||("get"in n?!s.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:l(function(){return s[t]},"get")}),Object.defineProperty(o,e,n)}):(function(o,s,t,e){e===void 0&&(e=t),o[e]=s[t]})),ba=Ge&&Ge.__setModuleDefault||(Object.create?(function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}):function(o,s){o.default=s}),_a=Ge&&Ge.__importStar||(function(){var o=l(function(s){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(s)},"ownKeys");return function(s){if(s&&s.__esModule)return s;var t={};if(s!=null)for(var e=o(s),n=0;n<e.length;n++)e[n]!=="default"&&ma(t,s,e[n]);return ba(t,s),t}})();Object.defineProperty(Ge,"__esModule",{value:!0});var se=_a(T()),ya=Ir(),wn;(0,se.Package)("com.qcobjects.installer",[(wn=class extends se.InheritClass{constructor(s){super(),this.root=s,window.addEventListener("beforeinstallprompt",()=>this.beforeinstallprompt.bind(this),!1),window.addEventListener("appinstalled",()=>this.installed.bind(this),!1),s.addEventListener("click",()=>this.install.bind(this)),s.addEventListener("touchend",()=>this.install.bind(this)),window.matchMedia("(display-mode: standalone)").addEventListener("change",t=>{let e="browser";t.matches&&(e="standalone"),ya.NotificationComponent.success(`TWA in ${e} Mode`)}),se.default.set("installer",this)}beforeinstallprompt(s){return se.logger.debug("registering installer event"),s.preventDefault(),se.default.set("promptEvent",s),this.root.classList.add("available"),!1}installed(){se.logger.debug("app is already installed"),se.default.set("promptEvent",null),this.root.classList.remove("available")}install(){let s=this.root;se.logger.debug("installer actioned");let t=se.default.get("promptEvent",null);t?(se.logger.debug("prompt event"),t.prompt(),t.userChoice.then(function(e){e.outcome==="accepted"?s.classList.remove("available"):se.logger.debug("User has chosen not to install the PWA"),t=null}).catch(function(e){t=null,s.classList.remove("available"),se.logger.warn(`Error during install: ${e.toString()}`)})):se.logger.debug("It is not possible to get the prompt event for install ")}},l(wn,"Installer"),wn)])});var Ei=ae(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var Ro=T(),Cn,vn,On;(0,Ro.Package)("org.quickcorp.custom.effects",[(Cn=class extends Ro.TransitionEffect{constructor(){super(...arguments),this.duration=780,this.defaultParams={alphaFrom:0,alphaTo:1},this.effects=["Fade","MoveYInFromBottom"],this.fitToHeight=!0}},l(Cn,"MainTransitionEffect"),Cn),(vn=class extends Ro.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromLeft"],this.fitToWidth=!0}},l(vn,"SlideLeftTransitionEffect"),vn),(On=class extends Ro.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromRight"],this.fitToWidth=!0}},l(On,"SlideRightTransitionEffect"),On)])});var xi=ae(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var Si=T(),En;(0,Si.Package)("org.quickcorp.custom.models",[(En=class extends Si.VO{constructor(){super(...arguments),this.first_name="",this.last_name="",this.address="",this.postalCode="",this.city="",this.country="",this.email="",this.phone=""}},l(En,"ContactVO"),En)])});var Ti=ae(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var _e=T(),Rr=class Rr extends _e.Component{constructor(){super(...arguments),this.name="github-grid",this.tplsource="inline",this.template=`
|
|
719
699
|
<style>
|
|
720
700
|
$layout(landscape,css/desktop/components/github-grid.css)
|
|
721
701
|
$layout(portrait,css/mobile/components/github-grid.css)
|
|
@@ -726,7 +706,7 @@
|
|
|
726
706
|
}
|
|
727
707
|
</style>
|
|
728
708
|
$mapper(github-card,result)
|
|
729
|
-
`}};
|
|
709
|
+
`}};l(Rr,"GitHubGrid");var Tr=Rr,kr=class kr extends _e.Component{constructor(){super(...arguments),this.name="deploygrid",this.template=`
|
|
730
710
|
<style>
|
|
731
711
|
$layout(landscape,css/desktop/components/deploy-grid.css)
|
|
732
712
|
$layout(portrait,css/mobile/components/deploy-grid.css)
|
|
@@ -744,7 +724,7 @@
|
|
|
744
724
|
<netlify-button effectClass=SlideRightTransitionEffect apply-effect-to=observe></netlify-button>
|
|
745
725
|
<github-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></github-button>
|
|
746
726
|
</div>
|
|
747
|
-
`}};
|
|
727
|
+
`}};l(kr,"DeployGrid");var Ar=kr,Dr=class Dr extends _e.Component{constructor(s){s.body?.setAttribute("serviceClass","AdminCheckService"),s.body?.setAttribute("response-to","data"),super(s),this.shadowed=!0,this.tplsource="inline"}};l(Dr,"AdminCheckComponent");var ko=Dr,Lr=class Lr extends ko{constructor(){super(...arguments),this.name="admin-sidebar-option",this.template=`
|
|
748
728
|
<style>
|
|
749
729
|
.admin_option_container {
|
|
750
730
|
padding:0;
|
|
@@ -803,7 +783,7 @@
|
|
|
803
783
|
</details>
|
|
804
784
|
|
|
805
785
|
</div>
|
|
806
|
-
`}done(
|
|
786
|
+
`}done(s){let t=s.component;console.log(t.serviceData);try{JSON.parse(t.serviceData)?.hasAdmin?_e.logger.debug("Admin module is present"):(_e.logger.debug("Admin module is NOT present. Install admin module in a dynamic served application (non-static server)"),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_option_container")?.remove())}catch(e){_e.logger.debug(`It was not possible to check if admin module is present: ${e}`),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_option_container")?.remove()}return super.done(s)}};l(Lr,"AdminSidebarOption");var Pr=Lr,jr=class jr extends ko{constructor(){super(...arguments),this.name="admin-button",this.template=`
|
|
807
787
|
<style>
|
|
808
788
|
.admin_button_container {
|
|
809
789
|
float: left;
|
|
@@ -826,7 +806,7 @@
|
|
|
826
806
|
<div class="admin_button_container">
|
|
827
807
|
<a href="/admin" class="topmenu">Admin</a>
|
|
828
808
|
</div>
|
|
829
|
-
`}done(
|
|
809
|
+
`}done(s){let t=s.component;console.log(t.serviceData);try{JSON.parse(t.serviceData)?.hasAdmin?_e.logger.debug("Admin module is present"):(_e.logger.debug("Admin module is NOT present. Install admin module in a dynamic served application (non-static server)"),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_button_container")?.remove())}catch(e){_e.logger.debug(`It was not possible to check if admin module is present: ${e}`),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_button_container")?.remove()}return super.done(s)}};l(jr,"AdminButton");var Mr=jr;(0,_e.Package)("org.quickcorp.custom.components",[Mr,Pr,Ar,Tr])});var Ai=ae(Be=>{"use strict";var wa=Be&&Be.__createBinding||(Object.create?(function(o,s,t,e){e===void 0&&(e=t);var n=Object.getOwnPropertyDescriptor(s,t);(!n||("get"in n?!s.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:l(function(){return s[t]},"get")}),Object.defineProperty(o,e,n)}):(function(o,s,t,e){e===void 0&&(e=t),o[e]=s[t]})),Ca=Be&&Be.__setModuleDefault||(Object.create?(function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}):function(o,s){o.default=s}),va=Be&&Be.__importStar||(function(){var o=l(function(s){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[e.length]=n);return e},o(s)},"ownKeys");return function(s){if(s&&s.__esModule)return s;var t={};if(s!=null)for(var e=o(s),n=0;n<e.length;n++)e[n]!=="default"&&wa(t,s,e[n]);return Ca(t,s),t}})();Object.defineProperty(Be,"__esModule",{value:!0});var ie=va(T()),Oa=Ir(),He,Sn,Nn;(0,ie.Package)("org.quickcorp.custom.controllers",[(He=class extends ie.Controller{constructor(s){ie.logger.debug("Initializing MainController..."),super(s)}done(...s){let t=super.done(s);if(!He.loaded){let e=(0,ie._DOMCreateElement)("style");e.innerHTML=`
|
|
830
810
|
@import url(css/body-layout.css);
|
|
831
|
-
`,document.body.append(
|
|
811
|
+
`,document.body.append(e),ie.logger.debug("MainController loaded"),He.loaded=!0}return t}},l(He,"MainController"),He),(Sn=class extends ie.Controller{constructor(s){ie.logger.debug("Initializing SideNavController..."),super(s),this.component=s.component,this.component.shadowed?this.componentRoot=this.component.shadowRoot:this.componentRoot=this.component.body,ie.default.sideNavController=this,this.effect=new Oa.Fade({duration:300})}done(...s){let t=super.done(s);return this.close(),t}open(){return this.componentRoot!==null&&(this.effect!=null&&this.effect.apply(this.componentRoot,0,1),this.componentRoot?.classList.add("open"),this.componentRoot?.parentElement&&this.componentRoot.parentElement!==null&&(this.componentRoot.parentElement.subelements(".navbtn")[0].style.display="none",this.componentRoot.parentElement.subelements(".closebtn")[0].style.display="block")),this.visibility=!0,this.visibility}close(){return typeof this.componentRoot<"u"&&this.componentRoot!==null&&(this.effect!=null&&this.effect.apply(this.componentRoot,1,0),this.componentRoot?.classList.remove("open"),this.componentRoot?.parentElement&&(this.componentRoot.parentElement.subelements(".navbtn")[0].style.display="block",this.componentRoot.parentElement.subelements(".closebtn")[0].style.display="none")),this.visibility=!1,this.visibility}toggle(){this.visibility?this.close():this.open()}},l(Sn,"SideNavController"),Sn),(Nn=class extends ie.Controller{constructor(s){super(s),ie.logger.debug("Header controller initialized")}loadInstallerButton(){(this.component.shadowed!=null?this.component.shadowRoot:this.component.body).subelements("#installerbutton").map(t=>(this.installer=(0,ie.New)((0,ie.ClassFactory)("Installer"),t),t))}done(...s){let t=super.done(s);return this.loadInstallerButton(),t}},l(Nn,"HeaderController"),Nn)])});var Ri=ae(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});var Pi=T(),xn;(0,Pi.Package)("org.quickcorp.custom.views",[(xn=class extends Pi.View{done(...s){let t=super.done(s),e=this.component;return e!==void 0&&e.body!==void 0&&(e.body.style.display="block",e.body.style.width="100px",e.body.style.height="100px"),t}},l(xn,"CardView"),xn)])});var Di=ae(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var In=T(),Tn,An,Pn,Mn;(0,In.Package)("com.qcobjects.services.github",[(Tn=class extends In.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/orgs/QuickCorp/repos",this.withCredentials=!1}done({request:s,service:t}){let e=JSON.parse(t.template).reverse().map(function(n){return{id:n.id,description:n.description,title:n.name,url:n.html_url,image:`https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(n.name)}`}});return t.template=JSON.stringify({result:e}),super.done({request:s,service:t})}},l(Tn,"GitHubService"),Tn),(An=class extends In.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/search/repositories?q=qcobjects",this.withCredentials=!1}done({request:s,service:t}){In.logger.debug(s);let e=JSON.parse(t.template).items.map(function(n){return{id:n.id,description:n.description,title:n.name,url:n.html_url,image:`https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(n.name)}`}});return t.template=JSON.stringify({result:e}),super.done({request:s,service:t})}},l(An,"GitHubTagService"),An),(Pn=class extends In.Service{constructor(){super(...arguments),this.name="qcobjects_version_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/repos/QuickCorp/QCObjects/tags",this.withCredentials=!1}done({service:s}){let t=JSON.parse(s.template)[0];s.template={version:t.name}}},l(Pn,"QCObjectsVersionService"),Pn),(Mn=class extends In.Service{constructor(){super(...arguments),this.name="qcobjects_stars_forks_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/repos/QuickCorp/QCObjects",this.withCredentials=!1}done({service:s}){let t=JSON.parse(s.template);s.template={forks:t.forks_count,stars:t.stargazers_count,watchers:t.watchers_count,size:Math.round(t.size/1e3)}}},l(Mn,"QCObjectsStarsForksService"),Mn)])});var ji=ae(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var Do=T(),Rn;(0,Do.Package)("com.qcobjects.services.newapp",[(Rn=class extends Do.Service{constructor(){super(...arguments),this.url="/admin"}done(s){let t=l(e=>/<base href="\/admin\/" target="_self">/.test(e),"hasAdmin");s.service.template=(0,Do._DataStringify)({hasAdmin:t(s.service.template)})}fail(s){s.service.template=(0,Do._DataStringify)({hasAdmin:!1})}},l(Rn,"AdminCheckService"),Rn)])});var Ea=ae(qi=>{Object.defineProperty(qi,"__esModule",{value:!0});vi();Ei();xi();Ti();Ai();Ri();Di();ji()});return Ea();})();
|
|
832
812
|
//# sourceMappingURL=org.quickcorp.custom.js.map
|