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
package/public/js/init.js
CHANGED
|
@@ -1,44 +1,24 @@
|
|
|
1
|
-
"use strict";var global=(()=>{var mi=Object.defineProperty;var Zc=(e,a,t)=>a in e?mi(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var h=(e,a)=>mi(e,"name",{value:a,configurable:!0}),rt=(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 $e=(e,a)=>()=>{try{return a||e((a={exports:{}}).exports,a),a.exports}catch(t){throw a=0,t}};var r=(e,a,t)=>Zc(e,typeof a!="symbol"?a+"":a,t);var Xe=$e((ed,Xt)=>{"use strict";var el=Object.create,Zo=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,as=Object.getOwnPropertyNames,nl=Object.getPrototypeOf,ol=Object.prototype.hasOwnProperty,O=h((e,a)=>Zo(e,"name",{value:a,configurable:!0}),"__name"),$=h((e,a)=>h(function(){return e&&(a=(0,e[as(e)[0]])(e=0)),a},"__init"),"__esm"),rl=h((e,a)=>h(function(){return a||(0,e[as(e)[0]])((a={exports:{}}).exports,a),a.exports},"__require"),"__commonJS"),Si=h((e,a)=>{for(var t in a)Zo(e,t,{get:a[t],enumerable:!0})},"__export"),Ni=h((e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of as(a))!ol.call(e,o)&&o!==t&&Zo(e,o,{get:h(()=>a[o],"get"),enumerable:!(n=tl(a,o))||n.enumerable});return e},"__copyProps"),cs=h((e,a,t)=>(t=e!=null?el(nl(e)):{},Ni(a||!e||!e.__esModule?Zo(t,"default",{value:e,enumerable:!0}):t,e)),"__toESM"),sl=h(e=>Ni(Zo({},"__esModule",{value:!0}),e),"__toCommonJS"),vo,er=$({"src/is_raw_class.ts"(){"use strict";vo=O(e=>!!(typeof e=="function"&&e.toString().startsWith("class")),"__is_raw_class__")}}),Oo,tr=$({"src/ObjectName.ts"(){"use strict";Oo=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")}}),xe,ct=$({"src/getType.ts"(){"use strict";er(),tr(),xe=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(vo(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=Oo(a);break}return t},"__getType__2"),"__getType__")}}),nr,Pr=$({"src/make_global.ts"(){"use strict";De(),nr=O(e=>{e&&e.name&&(typeof J<"u"&&typeof e<"u"&&J!==null&&!Object.hasOwn(J,e.name)?_o(e.name,e):typeof global<"u"?global[e.name]=e:typeof globalThis<"u"&&(globalThis[e.name]=e))},"__make_global__")}}),Ie,Ae,Bo,Vt,Ho,Pi,Zr,ns,os,rs,Ii,hr,yt=$({"src/PrimaryCollections.ts"(){"use strict";ct(),Pr(),Ie={},Ae={},Bo=[],Vt=[],Ho=O(function(e,a){let t=xe(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),Ie[n]=e,nr(e),Ie[n]},"__register_class__"),Pi=O(e=>Ie[e],"get_QC_CLASS"),Zr=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(Zr(e[t])));return a},"_get_packages_names"),ns=O(()=>Zr(Ae),"getPackagesNamesList"),os=O(()=>[...ns()].map(e=>{let a=Ae[e],t;return a&&(t={packageName:e,classesList:a.filter(function(){return!0})}),t}).filter(function(e){return typeof e<"u"}),"getPackagesList"),rs=O(()=>{let e=[];return[...os()].forEach(function(a){return e=e.concat(a.classesList.map(t=>({packageName:a.packageName,className:`${a.packageName}.${xe(t)}`,classFactory:t}))),a}),e},"getClassesList"),Ii=O(()=>[...rs()].map(e=>e.className),"getClassesNamesList"),hr=O((e,a)=>{Ae[e]=a},"set_QC_PACKAGE")}}),Q,jt=$({"src/Export.ts"(){"use strict";Pr(),Q=O(function(e){return nr(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 il=$({"src/_import_.ts"(){"use strict";ee(),O(Ai,"_import_")}}),es,k,ls,bi,It,Ir,pe=$({"src/platform.ts"(){"use strict";il(),ee(),es=typeof window<"u"&&"Deno"in window,k=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!es,ls=typeof Xt<"u",bi=O(e=>{},"deno_require"),It=O(e=>es?bi(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_"),Ir=(function(){return typeof cordova<"u"})()}}),Cr,C,ee=$({"src/Logger.ts"(){"use strict";var e;jt(),pe(),Cr=(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 Cr,Q(C)}}),bt,Tt,Ct=$({"src/Cast.ts"(){"use strict";ee(),bt=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")}}),Re,yi,Ci,lt=$({"src/DOMCreateElement.ts"(){"use strict";pe(),Re=O(function(e,a,t){let n;return k?n=Ci(e,a,t):n={},n},"_DOMCreateElement"),yi=O((e,{props:a,children:t})=>e({props:a,children:t}),"ComplexTypeCall"),Ci=O((e,a,t)=>{if(typeof e!="string")return yi(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")}}),Pt,ds,us=$({"src/IncrementInstanceID.ts"(){"use strict";Pt=0,ds=O(()=>{Pt=typeof Pt>"u"||Pt===null?0:Pt+1},"IncrementInstanceID")}}),oe,it,Mt=$({"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),it=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";er(),yt(),re=O((e,a=[])=>{if(Object.hasOwn(Ae,e)&&typeof Ae[e]<"u"&&typeof Ae[e]!="string"&&Object.hasOwn(Ae[e],"length")&&Ae[e].length>0&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Ho(t,e)}),hr(e,Ae[e].concat(a));else if(typeof a<"u"&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Ho(t,e)}),hr(e,a);else if(vo(a))typeof a.__definition>"u"&&(a.__definition={}),a.__definition.__namespace=e,a.__namespace=e,Ho(a,e),hr(e,[a]);else throw new Error(`An error ocurred. It was not possible to add classes to ${e}.`);return Object.hasOwn(Ae,e)?Ae[e]:[]},"Package")}}),me,Ee=$({"src/InheritClass.ts"(){"use strict";var e;ee(),us(),Ct(),lt(),ct(),Mt(),sr(),pe(),yt(),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]}),ds(),n.__instanceID||Object.defineProperty(n,"__instanceID",{value:Pt,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]}),it(Ie[n.__classType]).map(function(o){return n[o.name]=o.bind(n),o}),it(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=Re(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:xe.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=bt(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"),mt(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])}}),gn,or,rr=$({"src/isQCObjects.ts"(){"use strict";Ee(),gn=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"),or=O(function(e){return!!(typeof e=="function"&&!e.__instanceID&&e.__definition&&typeof e.__definition<"u"&&e.__definition.__classType)||e.prototype instanceof me},"isQCObjects_Class")}}),mt,sr=$({"src/is_a.ts"(){"use strict";ct(),rr(),tr(),mt=O((e,a)=>!!(typeof e<"u"&&e!==null&&((or(e)||gn(e))&&e.hierarchy().includes(a)||xe(e)===a||Oo(e)===a||typeof e===a)),"is_a")}}),Ti,al=$({"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,ps=$({"src/LegacyCopy.ts"(){"use strict";er(),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 vo(e):t=(n=class extends e{},h(n,"_value_"),O(n,"_value_"),n);break;default:break}return t},"_LegacyCopy")}}),zt,Tr=$({"src/Class.ts"(){"use strict";yt(),Ct(),lt(),ct(),us(),Mt(),sr(),al(),ps(),ee(),pe(),De(),zt=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,Ie[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(ds(),d.__instanceID||Object.defineProperty(d,"__instanceID",{value:Pt,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]}),it(Ie[d.__classType]).map(function(f){return d[f.name]=f.bind(d),f}),it(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=Re(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:xe.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=bt(_,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"),mt(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")}},Ie[e]=Tt(s,Ie[e]),Ie[e].__definition=s,Ie[e].__definition.__classType=e,J[e]=Ie[e],Ie[e]},"Class"),typeof zt.prototype<"u"&&(zt.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),le,ze=$({"src/ClassFactory.ts"(){"use strict";er(),yt(),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=(Ae[t]||[]).filter(i=>vo(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=Pi(e),typeof a>"u")throw new Error(`${e} is undefined.`)}else throw Error(`className is null. Unable to retrieve the class factory.
|
|
1
|
+
"use strict";var global=(()=>{var Fr=Object.defineProperty;var Xi=(o,s,t)=>s in o?Fr(o,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[s]=t;var l=(o,s)=>Fr(o,"name",{value:s,configurable:!0}),Ln=(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 ne=(o,s)=>()=>{try{return s||o((s={exports:{}}).exports,s),s.exports}catch(t){throw s=0,t}};var r=(o,s,t)=>Xi(o,typeof s!="symbol"?s+"":s,t);var T=ne((ka,Ze)=>{"use strict";var Yi=Object.create,Jn=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyNames,ta=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty,f=l((o,s)=>Jn(o,"name",{value:s,configurable:!0}),"__name"),v=l((o,s)=>l(function(){return o&&(s=(0,o[Uo(o)[0]])(o=0)),s},"__init"),"__esm"),oa=l((o,s)=>l(function(){return s||(0,o[Uo(o)[0]])((s={exports:{}}).exports,s),s.exports},"__require"),"__commonJS"),Vr=l((o,s)=>{for(var t in s)Jn(o,t,{get:s[t],enumerable:!0})},"__export"),zr=l((o,s,t,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of Uo(s))!na.call(o,n)&&n!==t&&Jn(o,n,{get:l(()=>s[n],"get"),enumerable:!(e=ea(s,n))||e.enumerable});return o},"__copyProps"),ra=l((o,s,t)=>(t=o!=null?Yi(ta(o)):{},zr(s||!o||!o.__esModule?Jn(t,"default",{value:o,enumerable:!0}):t,o)),"__toESM"),sa=l(o=>zr(Jn({},"__esModule",{value:!0}),o),"__toCommonJS"),bn,Qn=v({"src/is_raw_class.ts"(){"use strict";bn=f(o=>!!(typeof o=="function"&&o.toString().startsWith("class")),"__is_raw_class__")}}),_n,Zn=v({"src/ObjectName.ts"(){"use strict";_n=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")}}),oe,ge=v({"src/getType.ts"(){"use strict";Qn(),Zn(),oe=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(bn(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=_n(s);break}return t},"__getType__2"),"__getType__")}}),Kn,bo=v({"src/make_global.ts"(){"use strict";ee(),Kn=f(o=>{o&&o.name&&(typeof I<"u"&&typeof o<"u"&&I!==null&&!Object.hasOwn(I,o.name)?xo(o.name,o):typeof global<"u"?global[o.name]=o:typeof globalThis<"u"&&(globalThis[o.name]=o))},"__make_global__")}}),Q,Z,jn,Ve,qn,Jr,jo,Fo,$o,Go,Qr,ro,Oe=v({"src/PrimaryCollections.ts"(){"use strict";ge(),bo(),Q={},Z={},jn=[],Ve=[],qn=f(function(o,s){let t=oe(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,Kn(o),Q[e]},"__register_class__"),Jr=f(o=>Q[o],"get_QC_CLASS"),jo=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(jo(o[t])));return s},"_get_packages_names"),Fo=f(()=>jo(Z),"getPackagesNamesList"),$o=f(()=>[...Fo()].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"),Go=f(()=>{let o=[];return[...$o()].forEach(function(s){return o=o.concat(s.classesList.map(t=>({packageName:s.packageName,className:`${s.packageName}.${oe(t)}`,classFactory:t}))),s}),o},"getClassesList"),Qr=f(()=>[...Go()].map(o=>o.className),"getClassesNamesList"),ro=f((o,s)=>{Z[o]=s},"set_QC_PACKAGE")}}),S,Re=v({"src/Export.ts"(){"use strict";bo(),S=f(function(o){return Kn(o)},"Export"),S.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"}}});async function Zr(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(Zr,"_import_");var ia=v({"src/_import_.ts"(){"use strict";R(),f(Zr,"_import_")}}),qo,y,Wo,$r,Ae,_o,F=v({"src/platform.ts"(){"use strict";ia(),R(),qo=typeof window<"u"&&"Deno"in window,y=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!qo,Wo=typeof Ze<"u",$r=f(o=>{},"deno_require"),Ae=f(o=>qo?$r(o):(s=>{let t;try{(async()=>{t=await Zr(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_"),_o=(function(){return typeof cordova<"u"})()}}),lo,u,R=v({"src/Logger.ts"(){"use strict";var o;Re(),F(),lo=(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 lo,S(u)}}),ve,Me,Ee=v({"src/Cast.ts"(){"use strict";R(),ve=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"),Me=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,Gr,Hr,me=v({"src/DOMCreateElement.ts"(){"use strict";F(),Y=f(function(o,s,t){let e;return y?e=Hr(o,s,t):e={},e},"_DOMCreateElement"),Gr=f((o,{props:s,children:t})=>o({props:s,children:t}),"ComplexTypeCall"),Hr=f((o,s,t)=>{if(typeof o!="string")return Gr(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")}}),Te,Vo,zo=v({"src/IncrementInstanceID.ts"(){"use strict";Te=0,Vo=f(()=>{Te=typeof Te>"u"||Te===null?0:Te+1},"IncrementInstanceID")}}),k,fe,ke=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),fe=f(function(o){let s=[];for(let t in o)(typeof o[t]).toLowerCase()==="function"&&s.push(o[t]);return s},"_methods_")}}),D,$=v({"src/Package.ts"(){"use strict";Qn(),Oe(),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=>{qn(t,o)}),ro(o,Z[o].concat(s));else if(typeof s<"u"&&typeof s<"u"&&Object.hasOwn(s,"length")&&s.length>0)s.forEach(t=>{qn(t,o)}),ro(o,s);else if(bn(s))typeof s.__definition>"u"&&(s.__definition={}),s.__definition.__namespace=o,s.__namespace=o,qn(s,o),ro(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(),zo(),Ee(),me(),ge(),ke(),eo(),F(),Oe(),$(),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]}),Vo(),e.__instanceID||Object.defineProperty(e,"__instanceID",{value:Te,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]}),fe(Q[e.__classType]).map(function(n){return e[n.name]=n.bind(e),n}),fe(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:oe.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){Me(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=ve(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"),Ce(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])}}),ut,Xn,Yn=v({"src/isQCObjects.ts"(){"use strict";W(),ut=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"),Xn=f(function(o){return!!(typeof o=="function"&&!o.__instanceID&&o.__definition&&typeof o.__definition<"u"&&o.__definition.__classType)||o.prototype instanceof H},"isQCObjects_Class")}}),Ce,eo=v({"src/is_a.ts"(){"use strict";ge(),Yn(),Zn(),Ce=f((o,s)=>!!(typeof o<"u"&&o!==null&&((Xn(o)||ut(o))&&o.hierarchy().includes(s)||oe(o)===s||_n(o)===s||typeof o===s)),"is_a")}}),Kr,aa=v({"src/is_forbidden_name.ts"(){"use strict";Kr=f(o=>["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID","function","Function"].indexOf(o)!==-1,"__is__forbidden_name__")}}),yo,Jo=v({"src/LegacyCopy.ts"(){"use strict";Qn(),yo=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 bn(o):t=(e=class extends o{},l(e,"_value_"),f(e,"_value_"),e);break;default:break}return t},"_LegacyCopy")}}),Je,wo=v({"src/Class.ts"(){"use strict";Oe(),Ee(),me(),ge(),zo(),ke(),eo(),aa(),Jo(),R(),F(),ee(),Je=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(Kr(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(yo(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(Vo(),p.__instanceID||Object.defineProperty(p,"__instanceID",{value:Te,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]}),fe(Q[p.__classType]).map(function(h){return p[h.name]=h.bind(p),h}),fe(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:oe.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){Me(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=ve(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"),Ce(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]=Me(a,Q[o]),Q[o].__definition=a,Q[o].__definition.__classType=o,I[o]=Q[o],Q[o]},"Class"),typeof Je.prototype<"u"&&(Je.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),j,le=v({"src/ClassFactory.ts"(){"use strict";Qn(),Oe(),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=>bn(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=Jr(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")}}),Qo,fs=$({"src/Base64.ts"(){"use strict";var e;Qo=(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)}}),ts,at,ji,Lt=$({"src/basePath.ts"(){"use strict";pe(),ts=cs(rt("node:process")),at=(function(){let e="";if(k){let a=document.baseURI.split("?")[0].split("/");a.pop(),e=a.join("/")+"/"}else typeof ts.default<"u"?e=`${ts.default.cwd()}/`:e="";return e})(),ji=O(e=>{at=e},"setBasePath")}}),Z,dt=$({"src/DataStringify.ts"(){"use strict";ps(),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")}}),Eo,ir=$({"src/domain.ts"(){"use strict";Eo=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),Te,Rt=$({"src/New.ts"(){"use strict";Te=O(function(e,a={}){return a=arguments.length>1?a:{},typeof e>"u"?new Object:new e(a)},"New"),Te.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"}}}),mo,gs=$({"src/secretKey.ts"(){"use strict";pe(),mo=k?location.host:"secret"}}),st,Mi,ss,jr=$({"src/Crypt.ts"(){"use strict";var e;fs(),dt(),Ee(),ge(),gs(),st=(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=Qo.encode(s),this.last_string}_decrypt(){let n=this.string,o=this.key,s="",i,c;n=Qo.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),Mi=O(function(a){return st.encrypt(Z(a),mo)},"_CryptObject"),ss=O(function(a){return a===""?{}:JSON.parse(st.decrypt(a,mo))},"_DecryptObject"),re("com.qcobjects",[st])}}),Nt,cl=$({"src/ConfigSettings.ts"(){"use strict";var e;Lt(),Ee(),ge(),Nt=(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:at});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",[Nt])}}),H,Ye=$({"src/CONFIG.ts"(){"use strict";var e;Lt(),Ct(),jr(),dt(),ee(),So(),gs(),ge(),Ee(),cl(),H=(e=class extends me{get _CONFIG_ENC(){return Nt.instance._CONFIG_ENC}get _CONFIG(){return Nt.instance._CONFIG}set(t,n){C.debug(`CONFIG.set ${t}: ${n}`),t==="basePath"&&ji(n);let o;try{o=(function(s){s._CONFIG_ENC===null&&(s._CONFIG_ENC=st.encrypt(Z({}),mo));let i=s._CONFIG_ENC.valueOf(),c=s._CONFIG?.valueOf();return Tt(c,ss(i))})(Nt.instance)}catch(s){o={},console.error(s),C.debug("failed to encrypt config")}o[t]=n,Nt.instance._CONFIG_ENC=Mi(o),Nt.instance.set(t,n)}get(t,n){let o;try{let i=(function(c){c._CONFIG_ENC===null&&(c._CONFIG_ENC=st.encrypt(Z({}),mo));let l=c._CONFIG_ENC.valueOf(),_=c._CONFIG.valueOf();return Tt(_,ss(l))})(Nt.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=_t.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])}}),ho,_t,So=$({"src/Processor.ts"(){"use strict";var e;Ye(),Ee(),Rt(),De(),ge(),ho=(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:Te(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),_t=ho.instance,re("com.qcobjects",[ho])}}),Li,Ri,is,ll=$({"src/routings.ts"(){"use strict";Li=O((e,a)=>{let t=e.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...a.matchAll(new RegExp(t,"g"))][0].groups}},"__routing_params__"),Ri=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__"),is=O((e,a)=>e.includes(a),"__valid_routing_way__")}});function bo(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 _r.push(new t(e,a)),t}h(bo,"asyncLoad");var _r,hs,Mr=$({"src/asyncLoad.ts"(){"use strict";jt(),pe(),De(),_r=[],O(bo,"asyncLoad"),hs=O(()=>{k?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&_r.map(function(e){e.dispatch.call(e)})}):typeof J.global<"u"&&_r.map(function(e){e.dispatch.call(e)})},"_fireAsyncLoad"),Q(bo)}}),yo,Lr=$({"src/ComplexStorageCache.ts"(){"use strict";var e;fs(),dt(),ee(),yo=(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_"+Qo.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)}}),ar,Rr=$({"src/serviceLoader.ts"(){"use strict";Mr(),Lr(),dt(),ee(),pe(),De(),ar=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 yo({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=It("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=It("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=It("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=It("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=bo(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,_s=$({"src/tag_filter.ts"(){"use strict";Dr="quick-component:not([loaded]),component:not([loaded])"}}),Ko,ms=$({"src/componentLoader.ts"(){"use strict";Mr(),Lr(),dt(),ee(),pe(),De(),Ko=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.")}!Ir&&!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 yo({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}=rt("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 yo({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=bo(n,[e,a]):s=n(e):s=o(e),s},"componentLoader")}}),Yt,bs=$({"src/Component.ts"(){"use strict";var e;fs(),Lt(),Ct(),ze(),kr(),dt(),ir(),lt(),ct(),Ee(),Mt(),sr(),rr(),ee(),Rt(),ge(),pe(),So(),ll(),De(),Ye(),Rr(),_s(),ms(),Yt=(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=Re("div"),__promise__:E=null,__shadowRoot:I,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:I,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",at);r(this,"domain",Eo);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 T=this;typeof _<"u"&&(T.name=_),typeof T.name>"u"&&typeof _>"u"&&C.warn("A name is not defined for "+xe(T)),T.routingWay=H.get("routingWay"),T.processorHandler=new ho({component:T}),T.data=typeof T.data>"u"||T.data===null?{}:T.data,T.data=Object.assign(T.data,T.dataAttributes),T.createServiceInstance().then(()=>{typeof T.__new__=="function"&&T.__new__(T),T._generateRoutingPaths(T.body).then(function(){T._reroute_().then(function(){return T.rebuild().then(function(){C.info(`Component._new_ The component ${T.name} was built successfully!`)}).catch(function(B){C.warn(`Component._new_ Something went wrong building the component ${T.name}`),console.error(`Component._new_ Something went wrong building the component ${T.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 Qo.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 Ri(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 Li(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=Te(s,{data:o});ar(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=Te(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=Te(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=wr(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=Re("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=Re("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 mt(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")),gn(n)&&mt(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")),Ko(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")),Ko(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=it(n).map(s=>s.name.replace(/bound /g,"")).map(s=>({[s]:n[s].bind(this)})).reduce((s,i)=>Object.assign(s,i),{});return bt(this,o)}route(){return this.constructor.route()}static route(){let n=this,o,s=!!(gn(n)&&mt(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(xe(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||Jo)s&&C.debug("loading routings for instance "+n.name),o=i.call(n,s?n.subcomponents:Jo);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&&is(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),_=Te(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&&is(n.validRoutingWays,n.routingWay||"")&&(n.routingPath=location[n.routingWay],n.routingSelected.map(s=>{let i=Vo({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"&&mt(o,"TransitionEffect")?(this.effect=Te(o,{component:this}),this.effect?.apply(this.effect?.defaultParams)):C.debug(`${n} is ${xe(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",[Yt]),it(le("Component")).map(a=>(oe(a),a))}}),Vo,wi,wr,Di,kr=$({"src/ComponentFactory.ts"(){"use strict";Tr(),ze(),bs(),Ye(),lt(),ct(),ee(),Rt(),ge(),pe(),_s(),Vo=O(({TPL_SOURCE:e,COMPONENTS_BASE_PATH:a,COMPONENT_NAME:t,TPLEXTENSION:n})=>e==="default"?`${a}${t}.${n}`:"","ComponentURI"),wi=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 ${xe(f)} `);let u=Vo({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",[zt("ComponentBody",Yt,{name:l,tplsource:m,tplextension:c,reload:!0})]),O(function(){let v=t?f&&f.shadowed||Yt.shadowed:o,E={__parent__:a,name:l,cached:s?Yt.cached:i,shadowed:v,tplextension:c,body:H.get("preserveComponentBodyTag")?Re("componentBody"):e,templateURI:u,tplsource:m};(typeof l>"u"||l===""||l===null)&&delete E.name,u===""&&delete E.templateURI;let I=Te(f,E);return H.get("preserveComponentBodyTag")&&typeof I<"u"&&e.append(I.body),I},"__create_component_instance_")()},"_buildComponentFromElement_"),wr=O((e,a)=>{let t=[];return k?t=e.map(function(n){return wi(n,a)}):C.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),t},"_buildComponentsFromElements_"),Di=O(e=>{let a=Dr,t=e.subelements(a);return wr(t,null)},"buildComponents")}}),mr,br,vr,ki=$({"src/Service.ts"(){"use strict";var e,a,t;Lt(),jr(),ir(),Ee(),ee(),ge(),gs(),Ye(),mr=(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",Eo);r(this,"basePath",at);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),br=(a=class extends mr{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),vr=(t=class extends br{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=st.decrypt(this.JSONresponse?.__encoded__,mo);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",[mr]),re("com.qcobjects.api.services",[br]),re("com.qcobjects.api.config",[vr])}}),Co,ys=$({"src/globalSettings.ts"(){"use strict";var e;Ye(),Ee(),ee(),ge(),pe(),Rr(),De(),ki(),Co=(e=class extends me{constructor(){super(...arguments);r(this,"_GLOBAL",{});r(this,"_logger",new Cr)}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{Cs()}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..."),ws(new vr),Uo.configLoaded=o,ar(Uo)?.then(i=>{s(i)})?.catch(i=>{throw new Error(`An error ocurred while trying to load ${Uo.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",[Co])}}),qi={};Si(qi,{_top:h(()=>J,"_top"),buildComponentsStack:h(()=>Cs,"buildComponentsStack"),componentsStack:h(()=>Jo,"componentsStack"),configService:h(()=>Uo,"configService"),get:h(()=>vs,"get"),resetTop:h(()=>Or,"resetTop"),set:h(()=>_o,"set"),setConfigService:h(()=>ws,"setConfigService")});var J,Jo,Or,Cs,Uo,ws,_o,vs,vi,De=$({"src/top.ts"(){"use strict";kr(),Ct(),ys(),Tr(),ze(),jt(),pe(),yt(),ee(),J=typeof Xt<"u"&&typeof Xt.exports<"u"&&Xt.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,Jo=[],Or=O(()=>{let e=Co.instance;J=Tt(e,J,!0)},"resetTop"),Cs=O(()=>{Jo=Di(document)},"buildComponentsStack"),ws=O(e=>{J.global.configService=e,Uo=e},"setConfigService"),_o=O((e,a)=>{J[e]=a},"set"),vs=O((e,a)=>J[e]||a,"get"),Or(),vi=O(function(e){Object.hasOwn(e,"PackagesList")||Object.defineProperty(e,"PackagesList",{set:O(a=>{C.debug("PackagesList is readonly")},"set"),get:O(()=>os(),"get")}),Object.hasOwn(e,"PackagesNameList")||Object.defineProperty(e,"PackagesNameList",{set:O(a=>{C.debug("PackagesNameList is readonly")},"set"),get:O(()=>ns(),"get")}),Object.hasOwn(e,"ClassesList")||Object.defineProperty(e,"ClassesList",{set:O(a=>{C.debug("ClassesList is readonly")},"set"),get:O(()=>rs(),"get")}),Object.hasOwn(e,"ClassesNameList")||Object.defineProperty(e,"ClassesNameList",{set(a){C.debug("ClassesNameList is readonly")},get:O(()=>Ii(),"get")})},"_define_props"),k&&(zt("GLOBAL",Ie.global),Q(le("GLOBAL"))),k&&typeof window<"u"?_o("global",window):k&&typeof globalThis<"u"&&_o("global",globalThis),vi(J)}}),fo,Os,Fi=$({"src/captureFalseTouch.ts"(){"use strict";if(ee(),pe(),fo=!1,Os=O(()=>fo?{passive:!0}:!1,"captureFalseTouch"),k)try{let e=Object.defineProperty({},"passive",{get(){return fo=!0,fo}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(e){C.debug(`An error ocurred: ${e}.`),fo=!1}else fo=!1}}),zo,Es=$({"src/range.ts"(){"use strict";Mt(),zo=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(zo)}}),Ss,$i=$({"src/defaultProcessors.ts"(){"use strict";ee(),So(),De(),Es(),Ss=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");_t.setProcessor(a);let t=O(function(i,c,l){let _=`
|
|
3
|
+
${Object.keys(Q).join(`
|
|
4
|
+
`)}`);return s},"ClassFactory")}}),Gn,Qo=v({"src/Base64.ts"(){"use strict";var o;Gn=(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)}}),he,Xr,De=v({"src/basePath.ts"(){"use strict";F(),he=(function(){let o="";if(y){let s=document.baseURI.split("?")[0].split("/");s.pop(),o=s.join("/")+"/"}else try{let s=Ln("node:process");typeof s<"u"?o=`${s.cwd()}/`:o=""}catch{o=""}return o})(),Xr=f(o=>{he=o},"setBasePath")}}),M,be=v({"src/DataStringify.ts"(){"use strict";Jo(),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?yo(a):null;t.add(a)}return a}},"getCircularReplacer")()),"_DataStringify")}}),yn,to=v({"src/domain.ts"(){"use strict";yn=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),K,Le=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] }"}}}),pn,Zo=v({"src/secretKey.ts"(){"use strict";F(),pn=y?location.host:"secret"}}),pe,Yr,Ho,Co=v({"src/Crypt.ts"(){"use strict";var o;Qo(),be(),W(),$(),Zo(),pe=(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=Gn.encode(a),this.last_string}_decrypt(){let e=this.string,n=this.key,a="",i,c;e=Gn.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),Yr=f(function(s){return pe.encrypt(M(s),pn)},"_CryptObject"),Ho=f(function(s){return s===""?{}:JSON.parse(pe.decrypt(s,pn))},"_DecryptObject"),D("com.qcobjects",[pe])}}),Ie,ca=v({"src/ConfigSettings.ts"(){"use strict";var o;De(),W(),$(),Ie=(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:he});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",[Ie])}}),O,de=v({"src/CONFIG.ts"(){"use strict";var o;De(),Ee(),Co(),be(),R(),wn(),Zo(),$(),W(),ca(),O=(o=class extends H{get _CONFIG_ENC(){return Ie.instance._CONFIG_ENC}get _CONFIG(){return Ie.instance._CONFIG}set(t,e){u.debug(`CONFIG.set ${t}: ${e}`),t==="basePath"&&Xr(e);let n;try{n=(function(a){a._CONFIG_ENC===null&&(a._CONFIG_ENC=pe.encrypt(M({}),pn));let i=a._CONFIG_ENC.valueOf(),c=a._CONFIG?.valueOf();return Me(c,Ho(i))})(Ie.instance)}catch(a){n={},console.error(a),u.debug("failed to encrypt config")}n[t]=e,Ie.instance._CONFIG_ENC=Yr(n),Ie.instance.set(t,e)}get(t,e){let n;try{let i=(function(c){c._CONFIG_ENC===null&&(c._CONFIG_ENC=pe.encrypt(M({}),pn));let d=c._CONFIG_ENC.valueOf(),g=c._CONFIG.valueOf();return Me(g,Ho(d))})(Ie.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=we.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])}}),un,we,wn=v({"src/Processor.ts"(){"use strict";var o;de(),W(),Le(),ee(),$(),un=(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),we=un.instance,D("com.qcobjects",[un])}}),es,ts,Bo,la=v({"src/routings.ts"(){"use strict";es=f((o,s)=>{let t=o.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...s.matchAll(new RegExp(t,"g"))][0].groups}},"__routing_params__"),ts=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__"),Bo=f((o,s)=>o.includes(s),"__valid_routing_way__")}});function fn(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 so.push(new t(o,s)),t}l(fn,"asyncLoad");var so,Ko,vo=v({"src/asyncLoad.ts"(){"use strict";Re(),F(),ee(),so=[],f(fn,"asyncLoad"),Ko=f(()=>{y?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&so.map(function(o){o.dispatch.call(o)})}):typeof I.global<"u"&&so.map(function(o){o.dispatch.call(o)})},"_fireAsyncLoad"),S(fn)}}),hn,Oo=v({"src/ComplexStorageCache.ts"(){"use strict";var o;Qo(),be(),R(),hn=(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_"+Gn.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)}}),no,Eo=v({"src/serviceLoader.ts"(){"use strict";vo(),Oo(),be(),R(),F(),ee(),no=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 hn({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=Ae("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=Ae("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=Ae("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=Ae("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=fn(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")}}),So,Xo=v({"src/tag_filter.ts"(){"use strict";So="quick-component:not([loaded]),component:not([loaded])"}}),Hn,Yo=v({"src/componentLoader.ts"(){"use strict";vo(),Oo(),be(),R(),F(),ee(),Hn=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.")}!_o&&!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 hn({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}=Ln("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 hn({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=fn(e,[o,s]):a=e(o):a=n(o),a},"componentLoader")}}),Qe,er=v({"src/Component.ts"(){"use strict";var o;Qo(),De(),Ee(),le(),No(),be(),to(),me(),ge(),W(),ke(),eo(),Yn(),R(),Le(),$(),F(),wn(),la(),ee(),de(),Eo(),Xo(),Yo(),Qe=(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:Dn,body:zi,shadowRoot:Ji,splashScreenComponent:Qi,controller:Zi,view:Ki}){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:Dn,body:zi,shadowRoot:Ji,splashScreenComponent:Qi,controller:Zi,view:Ki});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",he);r(this,"domain",yn);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 "+oe(q)),q.routingWay=O.get("routingWay"),q.processorHandler=new un({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(We){u.warn(`Component._new_ Something went wrong building the component ${q.name}`),console.error(`Component._new_ Something went wrong building the component ${q.name}`,We)})}).catch(We=>{throw Error(`Unexpected error ${We}`)})}).catch(We=>{throw Error(`Unexpected error ${We}`)})}).catch(We=>{throw Error(`Unexpected error. ${We}`)})}set cacheIndex(e){u.debug("[cacheIndex] This property is readonly")}get cacheIndex(){let e=this,n=M(e.routingPath);return Gn.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 ts(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 es(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});no(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=So;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=uo(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 Ce(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")),ut(e)&&Ce(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")),Hn(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")),Hn(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=fe(e).map(a=>a.name.replace(/bound /g,"")).map(a=>({[a]:e[a].bind(this)})).reduce((a,i)=>Object.assign(a,i),{});return ve(this,n)}route(){return this.constructor.route()}static route(){let e=this,n,a=!!(ut(e)&&Ce(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(oe(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||Un)a&&u.debug("loading routings for instance "+e.name),n=i.call(e,a?e.subcomponents:Un);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&&Bo(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&&Bo(e.validRoutingWays,e.routingWay||"")&&(e.routingPath=location[e.routingWay],e.routingSelected.map(a=>{let i=Bn({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"&&Ce(n,"TransitionEffect")?(this.effect=K(n,{component:this}),this.effect?.apply(this.effect?.defaultParams)):u.debug(`${e} is ${oe(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",[Qe]),fe(j("Component")).map(s=>(k(s),s))}}),Bn,Br,uo,ns,No=v({"src/ComponentFactory.ts"(){"use strict";wo(),le(),er(),de(),me(),ge(),R(),Le(),$(),F(),Xo(),Bn=f(({TPL_SOURCE:o,COMPONENTS_BASE_PATH:s,COMPONENT_NAME:t,TPLEXTENSION:e})=>o==="default"?`${s}${t}.${e}`:"","ComponentURI"),Br=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 ${oe(h)} `);let C=Bn({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",[Je("ComponentBody",Qe,{name:d,tplsource:b,tplextension:c,reload:!0})]),f(function(){let x=t?h&&h.shadowed||Qe.shadowed:n,U={__parent__:s,name:d,cached:a?Qe.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 Dn=K(h,U);return O.get("preserveComponentBodyTag")&&typeof Dn<"u"&&o.append(Dn.body),Dn},"__create_component_instance_")()},"_buildComponentFromElement_"),uo=f((o,s)=>{let t=[];return y?t=o.map(function(e){return Br(e,s)}):u.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),t},"_buildComponentsFromElements_"),ns=f(o=>{let s=So,t=o.subelements(s);return uo(t,null)},"buildComponents")}}),io,ao,po,os=v({"src/Service.ts"(){"use strict";var o,s,t;De(),Co(),to(),W(),R(),$(),Zo(),de(),io=(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",yn);r(this,"basePath",he);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),ao=(s=class extends io{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),po=(t=class extends ao{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=pe.decrypt(this.JSONresponse?.__encoded__,pn);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",[io]),D("com.qcobjects.api.services",[ao]),D("com.qcobjects.api.config",[po])}}),gn,tr=v({"src/globalSettings.ts"(){"use strict";var o;de(),W(),R(),$(),F(),Eo(),ee(),os(),gn=(o=class extends H{constructor(){super(...arguments);r(this,"_GLOBAL",{});r(this,"_logger",new lo)}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{nr()}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..."),or(new po),Fn.configLoaded=n,no(Fn)?.then(i=>{a(i)})?.catch(i=>{throw new Error(`An error ocurred while trying to load ${Fn.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",[gn])}}),rs={};Vr(rs,{_top:l(()=>I,"_top"),buildComponentsStack:l(()=>nr,"buildComponentsStack"),componentsStack:l(()=>Un,"componentsStack"),configService:l(()=>Fn,"configService"),get:l(()=>rr,"get"),resetTop:l(()=>fo,"resetTop"),set:l(()=>xo,"set"),setConfigService:l(()=>or,"setConfigService")});var I,Un,fo,nr,Fn,or,xo,rr,Ur,ee=v({"src/top.ts"(){"use strict";No(),Ee(),tr(),wo(),le(),Re(),F(),Oe(),R(),I=typeof Ze<"u"&&typeof Ze.exports<"u"&&Ze.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,Un=[],fo=f(()=>{let o=gn.instance;I=Me(o,I,!0)},"resetTop"),nr=f(()=>{Un=ns(document)},"buildComponentsStack"),or=f(o=>{I.global.configService=o,Fn=o},"setConfigService"),xo=f((o,s)=>{I[o]=s},"set"),rr=f((o,s)=>I[o]||s,"get"),fo(),Ur=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(()=>Fo(),"get")}),Object.hasOwn(o,"ClassesList")||Object.defineProperty(o,"ClassesList",{set:f(s=>{u.debug("ClassesList is readonly")},"set"),get:f(()=>Go(),"get")}),Object.hasOwn(o,"ClassesNameList")||Object.defineProperty(o,"ClassesNameList",{set(s){u.debug("ClassesNameList is readonly")},get:f(()=>Qr(),"get")})},"_define_props"),y&&(Je("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}),Ur(I)}}),ln,sr,ss=v({"src/captureFalseTouch.ts"(){"use strict";if(R(),F(),ln=!1,sr=f(()=>ln?{passive:!0}:!1,"captureFalseTouch"),y)try{let o=Object.defineProperty({},"passive",{get(){return ln=!0,ln}});window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}catch(o){u.debug(`An error ocurred: ${o}.`),ln=!1}else ln=!1}}),Wn,ir=v({"src/range.ts"(){"use strict";ke(),Wn=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(Wn)}}),ar,is=v({"src/defaultProcessors.ts"(){"use strict";R(),wn(),ee(),ir(),ar=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");we.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");_t.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");_t.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");_t.setProcessor(o);let s=O((i,c,l)=>zo(c).map(function(_){return l.replace("{{index}}",_.toString())}).join(""),"repeat");_t.setProcessor(s)})(J)},"setDefaultProcessors")}}),Oi,wo,Ns=$({"src/findPackageNodePath.ts"(){"use strict";Ye(),jt(),ee(),pe(),Oi=cs(rt("node:fs")),wo=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(Xt.paths);t=t.filter(n=>Oi.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(wo)}}),Yo,Ps=$({"src/Import.ts"(){"use strict";Lt(),Ye(),dt(),lt(),Ns(),ee(),pe(),yt(),Yo=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 Ae)_++;return _<Bo.length?l=!1:l=!0,l},"allPackagesImported"),c=O(function(l){Bo.push(a),i()&&Bo.map(_=>Vt.push(_)),k&&H.get("removePackageScriptAfterLoading")&&l.target.remove(),o.call(n,{_imported_:l.target,_package_name_:e})},"readyImported");if(!Object.hasOwn(Ae,e)){let l=Re("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":at+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=wo(e),c="";if(i!==null)c=i+"/"+e;else{let l=wo(e+".js");l!==null?c=l+"/"+e+".js":c=at+H.get("relativeImportPath")+e}try{o.call(n,{_imported_:It(`${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"),Yo.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),Ne,Is=$({"src/mathFunctions.ts"(){"use strict";Ne=O(function(e){return isNaN(e)?new Number(0):new Number(e)},"__to_number")}}),As,xi=$({"src/NamespaceRef.ts"(){"use strict";rr(),ge(),As=O(function(e){let t=(re(e)||[]).filter(n=>or(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")}}),Jt,Ts,Wo,Gi=$({"src/Ready.ts"(){"use strict";Ye(),pe(),yt(),De(),Jt=O(e=>{k?Vt.push(e.bind(window)):typeof global<"u"&&Vt.push(e.bind(global))},"Ready"),Ts=Jt,Wo=O(e=>{let a=O(()=>{Vt.map(function(t,n){typeof t=="function"&&(t(),Vt.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")}}),Er,Bi,Hi=$({"src/ArrayCollection.ts"(){"use strict";var e,a;ze(),ee(),Rt(),Is(),Er=(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),Bi=(a=class{constructor(){r(this,"source",Te(Er,[]))}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=Te(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)}}),yr,Sr,Ui=$({"src/Tag.ts"(){"use strict";var e;ze(),Rt(),ge(),pe(),Hi(),yr=(e=class extends Er{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=Te(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),Sr=O(function(a,t){let n=Te(yr);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",[yr,Sr])}}),js,Wi=$({"src/shortCode.ts"(){"use strict";jr(),js=O(()=>{let a=st.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...st.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")}}),Nr,Qi=$({"src/super.ts"(){"use strict";ze(),Nr=O(function(e,a){return le(e)[a]},"_super_"),Nr.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),Ms,Ki=$({"src/waitUntil.ts"(){"use strict";ee(),Ms=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")}}),go,Vi=$({"src/subelements.ts"(){"use strict";go=O(h(function(a){return[...this.querySelectorAll(a)]},"subelements2"),"subelements")}}),Ei,Ji,dl=$({"src/loadSDK.ts"(){"use strict";Ye(),Ns(),Ps(),ee(),pe(),Ei=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=wo("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),ls&&typeof rt<"u"?It("qcobjects-sdk")?C.debug("QCObjects SDK was loaded OK."):C.debug("QCObjects SDK could not be imported."):Yo(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"),Ji=Ei}}),ul=rl({"src/MainProcess.ts"(){"use strict";De(),Mr(),Fi(),Ct(),Tr(),ze(),bs(),kr(),ms(),Ye(),dt(),$i(),jt(),Ps(),Mt(),rr(),ee(),Is(),xi(),Rt(),tr(),ge(),pe(),Gi(),Rr(),Ui(),So(),sr(),ct(),Wi(),lt(),Lr(),Qi(),Ki(),Vi(),ys(),dl(),Es(),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=go,Document.prototype.subelements=go,HTMLElement.prototype.subelements=go,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=go)),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(bt(i,new Object)),i)),o}),k&&(Element.prototype.append=O(h(function(n){gn(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(Ms),Q(Nr),Q(yo),Q(le),Q(Re),Q(js),Q(xe),Q(mt),re("com.qcobjects",[ho]),k&&(Element.prototype.Cast=O(h(function(n){return bt(this,n)},"QC_Cast"),"QC_Cast")),k?(window.onload=Wo,Ir&&document.addEventListener("deviceready",Wo,Os)):global.onload=Wo,k&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),Yt.route().catch(n=>{throw new Error(`An error ocurred when trying to load initial routes. ${n}`)})}),Q(ar),Q(Ko),Q(Vo),Q(Oo),Q(Z),Q(or),Q(gn),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 zo(0,t.length-1).map(function(n){return t[n]})},oe(String.prototype.list),Ss(),Jt(function(){H.get("useSDK")||Co.__start__().catch(t=>{throw Error(t)})}),Q(Q),Q(Yo),Q(re),Q(zt),Q(Te),Q(Sr),Q(Jt),Q(Ts),Q(k),Q(it),Q(Co),Ji(),k&&bo(function(){Jt(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")&&hs.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)?Jt(function(){n()}):H.get("secureObjects",!1)&&n()})(k))},"__qcobjects__"),"__qcobjects__")(J)}}),zi={};Si(zi,{ArrayCollection:h(()=>Bi,"ArrayCollection"),ArrayList:h(()=>Er,"ArrayList"),AssignPolyfill:h(()=>pl,"AssignPolyfill"),BackendMicroservice:h(()=>Yi,"BackendMicroservice"),CONFIG:h(()=>H,"CONFIG"),Class:h(()=>zt,"Class"),ClassFactory:h(()=>le,"ClassFactory"),ComplexStorageCache:h(()=>yo,"ComplexStorageCache"),Component:h(()=>Yt,"Component"),ComponentURI:h(()=>Vo,"ComponentURI"),ConfigService:h(()=>vr,"ConfigService"),Controller:h(()=>ta,"Controller"),DDO:h(()=>ia,"DDO"),DefaultTemplateHandler:h(()=>Xi,"DefaultTemplateHandler"),Effect:h(()=>Ds,"Effect"),Export:h(()=>Q,"Export"),GlobalSettings:h(()=>Co,"GlobalSettings"),Import:h(()=>Yo,"Import"),InheritClass:h(()=>me,"InheritClass"),JSONService:h(()=>br,"JSONService"),Logger:h(()=>Cr,"Logger"),NamespaceRef:h(()=>As,"NamespaceRef"),New:h(()=>Te,"New"),ObjectName:h(()=>Oo,"ObjectName"),Package:h(()=>re,"Package"),Processor:h(()=>ho,"Processor"),Ready:h(()=>Jt,"Ready"),RegisterClass:h(()=>Ls,"RegisterClass"),RegisterWidget:h(()=>qr,"RegisterWidget"),RegisterWidgets:h(()=>Rs,"RegisterWidgets"),Service:h(()=>mr,"Service"),SourceCSS:h(()=>ea,"SourceCSS"),SourceJS:h(()=>Zi,"SourceJS"),Tag:h(()=>Sr,"Tag"),TagElements:h(()=>yr,"TagElements"),Timer:h(()=>sa,"Timer"),Toggle:h(()=>aa,"Toggle"),TransitionEffect:h(()=>ra,"TransitionEffect"),VO:h(()=>oa,"VO"),View:h(()=>na,"View"),_Cast:h(()=>bt,"_Cast"),_CastProps:h(()=>Tt,"_CastProps"),_ComponentWidget_:h(()=>Xo,"_ComponentWidget_"),_Crypt:h(()=>st,"_Crypt"),_DOMCreateElement:h(()=>Re,"_DOMCreateElement"),_DataStringify:h(()=>Z,"_DataStringify"),_LegacyCopy:h(()=>Ar,"_LegacyCopy"),_QC_CLASSES:h(()=>Ie,"_QC_CLASSES"),_QC_PACKAGES:h(()=>Ae,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:h(()=>Bo,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:h(()=>Vt,"_QC_READY_LISTENERS"),_Ready:h(()=>Wo,"_Ready"),__getType__:h(()=>xe,"__getType__"),__instanceID:h(()=>Pt,"__instanceID"),__is_raw_class__:h(()=>vo,"__is_raw_class__"),__make_global__:h(()=>nr,"__make_global__"),__to_number:h(()=>Ne,"__to_number"),__top__:h(()=>qi,"__top__"),_buildComponentsFromElements_:h(()=>wr,"_buildComponentsFromElements_"),_fireAsyncLoad:h(()=>hs,"_fireAsyncLoad"),_methods_:h(()=>it,"_methods_"),_protected_code_:h(()=>oe,"_protected_code_"),_require_:h(()=>It,"_require_"),_super_:h(()=>Nr,"_super_"),_tag_filter_:h(()=>Dr,"_tag_filter_"),_top:h(()=>J,"_top"),asyncLoad:h(()=>bo,"asyncLoad"),captureFalseTouch:h(()=>Os,"captureFalseTouch"),componentLoader:h(()=>Ko,"componentLoader"),findPackageNodePath:h(()=>wo,"findPackageNodePath"),get:h(()=>vs,"get"),getDocumentLayout:h(()=>hl,"getDocumentLayout"),global:h(()=>J,"global"),isBrowser:h(()=>k,"isBrowser"),isNodeCommonJS:h(()=>ls,"isNodeCommonJS"),isQCObjects_Class:h(()=>or,"isQCObjects_Class"),isQCObjects_Object:h(()=>gn,"isQCObjects_Object"),is_a:h(()=>mt,"is_a"),is_phonegap:h(()=>Ir,"is_phonegap"),logger:h(()=>C,"logger"),qcobjects:h(()=>fl,"qcobjects"),range:h(()=>zo,"range"),ready:h(()=>Ts,"ready"),resetTop:h(()=>Or,"resetTop"),serviceLoader:h(()=>ar,"serviceLoader"),set:h(()=>_o,"set"),setDefaultProcessors:h(()=>Ss,"setDefaultProcessors"),shortCode:h(()=>js,"shortCode"),subelements:h(()=>go,"subelements"),waitUntil:h(()=>Ms,"waitUntil")});Xt.exports=sl(zi);var pl={};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});De();var fl=cs(ul());De();yt();dt();lt();Mt();ee();pe();Vi();er();ps();Mr();us();tr();ct();sr();Lr();Ki();Ct();rr();ge();ze();jt();Tr();Ee();Qi();Wi();So();Rt();Gi();Fi();Rr();ms();kr();xi();$i();Ui();Ps();Lt();dt();ir();Ee();ee();ge();var Zt,Yi=(Zt=class extends me{constructor({domain:t=Eo,basePath:n=at,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(Zt,"BackendMicroservice"),O(Zt,"BackendMicroservice"),Zt);re("com.qcobjects.api",[Yi]);bs();jr();ee();So();Pr();yt();var Ls=O(function(e,a){return Ho(e,a)},"RegisterClass");nr(Ls);var At,Xi=(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=_t.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=_t.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);Ls(Xi,"com.qcobjects");Lt();Ct();ir();lt();Ee();ge();ee();var en,Zi=(en=class extends me{constructor(t){super(t);r(this,"domain",Eo);r(this,"basePath",at);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=Re("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,Re("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 bt(this,t)}_new_(t){this.__new__(t),this.rebuild()}},h(en,"SourceJS"),O(en,"SourceJS"),en);re("com.qcobjects",[Zi]);Lt();Ct();ir();lt();Ee();pe();ge();var tn,ea=(tn=class extends me{constructor(t){super(t);r(this,"domain",Eo);r(this,"basePath",at);r(this,"url","");r(this,"data",{});r(this,"async",!1);r(this,"external",!1);this.body=Re("link")}fail(){throw new Error("Method not implemented.")}Cast(t){return bt(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,Re("link"),this.external?this.url:this.basePath+this.url,t))}},h(tn,"SourceCSS"),O(tn,"SourceCSS"),tn);re("com.qcobjects",[ea]);ys();lt();jt();Mt();pe();var nn,gl=(nn=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(nn,"QCObjectsWidgetNode"),O(nn,"QCObjectsWidgetNode"),nn),Xo,on,rn;k?Xo=(on=class extends HTMLElement{constructor(){super();let a=this,t=a.nodeName.toLowerCase(),n=Re("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(on,"_ComponentWidget_"),O(on,"_ComponentWidget_"),on):Xo=(rn=class extends gl{constructor(){throw super(),new Error("Class not implemented.")}},h(rn,"_ComponentWidget_"),O(rn,"_ComponentWidget_"),rn);Q(Xo);var qr=O(e=>{if(k)customElements.define(e,class extends Xo{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),Rs=O((...e)=>{[...e].filter(function(t){return typeof t=="string"}).map(function(t){return qr(t)})},"RegisterWidgets");oe(qr);oe(Rs);Q(qr);Q(Rs);Ye();ze();ct();Ee();ee();Rt();ge();pe();var sn,ta=(sn=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(`${xe(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=Te(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(sn,"Controller"),O(sn,"Controller"),sn);re("com.qcobjects.controllers",[ta]);ct();Ee();ge();var an,na=(an=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(`${xe(this)} must be called with a component`)}},h(an,"View"),O(an,"View"),an);re("com.qcobjects.views",[na]);ki();Ee();ge();var cn,oa=(cn=class extends me{},h(cn,"VO"),O(cn,"VO"),cn);re("com.qcobjects.valueObjects",[oa]);Ee();ge();Mt();ze();var ln,Ds=(ln=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(ln,"Effect"),O(ln,"Effect"),ln);re("com.qcobjects.effects.base",[Ds]);it(le("Effect")).map(e=>(oe(e),e));ee();ge();ze();var dn,ra=(dn=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(dn,"TransitionEffect"),O(dn,"TransitionEffect"),dn);re("com.qcobjects.effects.transitions.base",[ra]);Ee();ge();var un,sa=(un=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(un,"Timer"),O(un,"Timer"),un);re("com.qcobjects.timing",[sa]);_s();Es();Hi();jt();Ee();ee();tr();var pn,ia=(pn=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"?Oo(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(pn,"DDO"),O(pn,"DDO"),pn);Q(ia);Ee();ee();ge();var fn,aa=(fn=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(fn,"Toggle"),O(fn,"Toggle"),fn);re("com.qcobjects.tools.essentials",[aa]);Ns();var hl=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");Is();De();Pr();De()});var la=$e(ca=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});var We=Xe();We.CONFIG.set("sourceType","module");We.CONFIG.set("relativeImportPath","js/packages/");We.CONFIG.set("componentsBasePath","templates/components/");We.CONFIG.set("delayForReady",1);We.CONFIG.set("preserveComponentBodyTag",!1);We.CONFIG.set("useConfigService",!1);We.CONFIG.set("routingWay","pathname");We.CONFIG.set("useLocalSDK",!0);We.CONFIG.set("tplextension","tpl.html");We.CONFIG.set("asynchronousImportsLoad",!0);We.CONFIG.set("serviceWorkerURI","/sw.js");We.CONFIG.set("overrideComponentTag",!0);We.Component.cached=!0});var si=$e((ad,bc)=>{"use strict";var _l=Object.create,cr=Object.defineProperty,ml=Object.getOwnPropertyDescriptor,da=Object.getOwnPropertyNames,bl=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,b=h((e,a)=>cr(e,"name",{value:a,configurable:!0}),"__name"),L=h((e,a)=>h(function(){return a||(0,e[da(e)[0]])((a={exports:{}}).exports,a),a.exports},"__require"),"__commonJS"),Cl=h((e,a)=>{for(var t in a)cr(e,t,{get:a[t],enumerable:!0})},"__export"),ua=h((e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of da(a))!yl.call(e,o)&&o!==t&&cr(e,o,{get:h(()=>a[o],"get"),enumerable:!(n=ml(a,o))||n.enumerable});return e},"__copyProps"),de=h((e,a,t)=>(t=e!=null?_l(bl(e)):{},ua(a||!e||!e.__esModule?cr(t,"default",{value:e,enumerable:!0}):t,e)),"__toESM"),wl=h(e=>ua(cr({},"__esModule",{value:!0}),e),"__toCommonJS"),vl=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})}}),lr=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}}),dr=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}}),pt=L({"node_modules/qcobjects/build/getType.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.__getType__=void 0;var a=lr(),t=dr(),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}}),Gr=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}}),Et=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=pt(),t=Gr();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}}),xt=L({"node_modules/qcobjects/build/Export.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Export=void 0;var a=Gr(),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] }"}}}),Ol=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=Ol(),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=xt(),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)}}),St=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}}),ft=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}}),qs=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}}),Gt=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=lr(),t=Et(),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=qs(),n=St(),o=ft(),s=pt(),i=Gt(),c=pr(),l=fe(),_=Et(),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])}}),ur=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}}),pr=L({"node_modules/qcobjects/build/is_a.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.is_a=void 0;var a=pt(),t=ur(),n=dr(),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}}),El=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}}),Fs=L({"node_modules/qcobjects/build/LegacyCopy.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._LegacyCopy=void 0;var a=lr(),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}}),Br=L({"node_modules/qcobjects/build/Class.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Class=void 0;var a=Et(),t=St(),n=ft(),o=pt(),s=qs(),i=Gt(),c=pr(),l=El(),_=Fs(),d=te(),f=fe(),p=qe(),m=b((u,g,y)=>{var q,G;let v={},E,I;switch(!0){case(!u&&!g&&!y):return class{};case(!!u&&!g&&!y):E=(q=class{},h(q,"type"),b(q,"type"),q),I={};break;case(!!u&&!g&&!!y):E=(G=class{},h(G,"type"),b(G,"type"),G),I=y;break;case(!!u&&!!g&&!!y):E=g,I=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&&(I.__definition=Object.assign((0,_._LegacyCopy)(E.__definition,["name"]),E)),v[E.name]=E,typeof I>"u"||I===null?I={}:I={...I},typeof I.__instanceID<"u"&&delete I.__instanceID,a._QC_CLASSES[u]=class extends v[E.name]{constructor(j){super(j||{});r(this,"__instanceID");r(this,"__namespace");r(this,"__definition",{...I});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(T){return isNaN(T)&&!["name","__instanceID","__classType","__definition"].includes(T)}).forEach(function(T){typeof N.__definition[T]=="function"?N[T]=N.__definition[T].bind(N):N[T]=N.__definition[T]}),(0,i._methods_)(a._QC_CLASSES[N.__classType]).map(function(T){return N[T.name]=T.bind(N),T}),(0,i._methods_)(N.__definition).map(function(T){return N[T.name]=T.bind(N),T}),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(T){d.logger.debug(`An error ocurred: ${T}.`),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(T){d.logger.warn(`${N.__classType}._new_() failed with error: ${T}`)}}catch(T){d.logger.warn(T)}}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"),T=b(ie=>typeof ie<"u"&&typeof ie.__proto__<"u"&&ie.__proto__!==null?(N(ie)!==""?[N(ie)]:[]).concat(T(ie.__proto__)):[],"__hierarchy__proto__");(typeof j>"u"||j===null)&&(j=this);let B=[];return B.push(N(j)),B=B.concat(T(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 T=0,B=N.length;T<B;T++)N[T].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},a._QC_CLASSES[u]=(0,t._CastProps)(I,a._QC_CLASSES[u]),a._QC_CLASSES[u].__definition=I,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] }"})}}),et=L({"node_modules/qcobjects/build/ClassFactory.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ClassFactory=void 0;var a=lr(),t=Et(),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}}),$s=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}}),Bt=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(rt("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}}),gt=L({"node_modules/qcobjects/build/DataStringify.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._DataStringify=void 0;var a=Fs(),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}}),fr=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"}}),Ht=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] }"}}}),xs=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"}}),Hr=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=$s(),t=gt(),n=Se(),o=_e(),s=xs(),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])}}),Sl=L({"node_modules/qcobjects/build/ConfigSettings.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigSettings=void 0;var a=Bt(),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])}}),tt=L({"node_modules/qcobjects/build/CONFIG.js"(e){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.CONFIG=void 0;var a=Bt(),t=St(),n=Hr(),o=gt(),s=te(),i=No(),c=xs(),l=_e(),_=Se(),d=Sl(),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(),I=v._CONFIG?.valueOf();return(0,t._CastProps)(I,(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 I=E._CONFIG_ENC.valueOf(),q=E._CONFIG.valueOf();return(0,t._CastProps)(q,(0,n._DecryptObject)(I))})(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])}}),No=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=tt(),t=Se(),n=Ht(),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])}}),Nl=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}}),Ur=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=xt(),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)}}),Wr=L({"node_modules/qcobjects/build/ComplexStorageCache.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.ComplexStorageCache=void 0;var a=$s(),t=gt(),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}}),Qr=L({"node_modules/qcobjects/build/serviceLoader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serviceLoader=void 0;var a=Ur(),t=Wr(),n=gt(),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 I=new XMLHttpRequest;I.withCredentials=g.withCredentials,I.open(g.method,g.url,!0);for(let j in g.headers)try{typeof g.headers[j]!="function"&&I.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}`)}I.onload=function(){if(I.status===200){let N=I.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:I,service:g};g.done.call(g,j),v.call(y,j)}}else if(typeof g.fail=="function"){var j={request:I,service:g};g.fail.call(g,j),E.call(y,j)}};let G=b(function(){o.logger.debug("SENDING THE NORMAL REQUEST ");try{I.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:I,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:I,service:g};g.done.call(g,N),v.call(y,N)}}else G()}});i._top.lastCache=U}else G();return I});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 I=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,T={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..."),T.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,T),v.call(y,T)}),g.useHTTP2&&j.end()},"captureEvents");try{let j;if(g.useHTTP2){o.logger.debug("using http2");var U=(0,s._require_)("http2").connect(I.origin);j=Object.assign({":method":g.method,":path":I.pathname},g.options),j=Object.assign(j,g.headers),q=U.request(j),q.setEncoding("utf8"),G(q)}else if(I.protocol==="http:"){let T=(0,s._require_)("http").request;j=Object.assign({url:g.url,headers:g.headers},g.options),q=T(g.url),G(q)}else if(I.protocol==="https:"){let N=(0,s._require_)("https");j=Object.assign({hostname:I.hostname,port:I.port,path:I.pathname,method:g.method,headers:g.headers},g.options),N.request(j,function(B){G(B)}).end()}else{let N="Protocol not supported: "+I.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}}),Gs=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])"}}),Bs=L({"node_modules/qcobjects/build/componentLoader.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.componentLoader=void 0;var a=Ur(),t=Wr(),n=gt(),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 T={request:q,component:N};g.call(v,T)},"_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=I?0:200;if(q.status===N){let T=q.responseText;o.logger.debug("Data received {{DATA}}".replace("{{DATA}}",(0,n._DataStringify)(T))),o.logger.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",u.name)),u.template=T,u.cached&&typeof G<"u"&&G.save(u.name,u.template),U(u)}else{let T={request:q,component:u};y.call(v,T)}},"_componentLoaded");if(typeof u.template=="string"&&u.template!=="")U(u);else{var I=!!u.url.startsWith("file:"),q=new XMLHttpRequest;if(I)"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(T=>{o.logger.debug("I got a response from fetch, so I'll feed the component"),T.text().then(B=>{u.template=B,U(u)}).catch(B=>{throw new Error(`An error ocurred: ${B}`)})}).catch(T=>{throw new Error(`An error ocurred: ${T}`)}));else try{o.logger.debug("Calling the url of component in async mode."),q.open(u.method,u.url,!0)}catch(T){o.logger.debug(`An error ocurred: ${T}.`),o.logger.debug("Last try has failed... The component cannot be loaded.")}!s.is_phonegap&&!I&&q.setRequestHeader("Content-Type","text/html"),I||(q.onload=j);let N=b(function(T){T=!(typeof T>"u"||!T),o.logger.debug("SENDING THE NORMAL REQUEST "),T?"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&&!I){o.logger.debug("USING CACHE FOR COMPONENT: "+u.name);var G=new t.ComplexStorageCache({index:u.cacheIndex,load(){N.call(this,I)},alternate(T){u.method==="GET"?(u.template=T.cache.getCached(u.cacheIndex),U.call(this,u)):N.call(this,I)}});i._top.lastCache=G}else o.logger.debug("NOT USING CACHE FOR COMPONENT: "+u.name),N(I)}}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 I=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}=rt("node:fs");o.logger.debug("SENDING THE NORMAL REQUEST "),U(u.url,I)},"_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}}),Hs=L({"node_modules/qcobjects/build/Component.js"(e){"use strict";var B;Object.defineProperty(e,"__esModule",{value:!0}),e.Component=void 0;var a=$s(),t=Bt(),n=St(),o=et(),s=Kr(),i=gt(),c=fr(),l=ft(),_=pt(),d=Se(),f=Gt(),p=pr(),m=ur(),u=te(),g=Ht(),y=_e(),v=fe(),E=No(),I=Nl(),q=qe(),G=tt(),U=Qr(),j=Gs(),N=Bs(),T=(B=class extends d.InheritClass{constructor({__parent__:w,templateURI:S="",template:P,tplsource:M="default",tplextension:A,url:D="",name:V="",method:F="GET",data:W={},reload:ae=!1,shadowed:Ce=!1,cached:we=!0,enableServiceClass:ce,assignRoutingParams:R=!0,_body:x=(0,l._DOMCreateElement)("div"),__promise__:X=null,__shadowRoot:ve,body:be,shadowRoot:He,splashScreenComponent:Ve,controller:nt,view:Go}){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:A,url:D,name:V,method:F,data:W,reload:ae,shadowed:Ce,cached:we,enableServiceClass:ce,assignRoutingParams:R,_body:x,__promise__:X,__shadowRoot:ve,body:be,shadowRoot:He,splashScreenComponent:Ve,controller:nt,view:Go});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(ot){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}`,ot)})}).catch(ot=>{throw Error(`Unexpected error ${ot}`)})}).catch(ot=>{throw Error(`Unexpected error ${ot}`)})}).catch(ot=>{throw Error(`Unexpected error. ${ot}`)})}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,I.__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,I.__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,A=w.serviceClassName;return new Promise(function(D,V){let F=w.enableServiceClass,W=w.responseToData,ae=w.responseToTemplate;if(F&&A!==null&&(P=(0,o.ClassFactory)(A)),!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 "+A);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),D(ce)},function(we){u.logger.debug(`Service loading rejected for ${A} in ${w.name}`),V(we)}).catch(function(we){throw u.logger.debug("Something went wroing while trying to load the service "+A),Error(`Error loading ${A} for ${w.name}. Detail: ${we}`)})}else D(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 A=G.CONFIG.get("routingWay"),D=P.target[A];return q._top.global.get("routingPaths").includes(D)&&P.target[A]!==location[A]&&P.target.href!==document.location.href?(u.logger.debug("A ROUTING WAS FOUND: "+D),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: "+D),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:A}=w;P({request:M,component:A})}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(A){throw Error(A)}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(A){M(new Error(A))}})}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:A,component:D}=w;P({error:A,component:D})}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(A){if(typeof A.container>"u"&&typeof A.body>"u"){u.logger.warn("COMPONENT {{NAME}} has an undefined container and body".replace("{{NAME}}",A.name));return}let D=typeof A.container>"u"||A.container===null?A.body:A.container,V=A.parsedAssignmentText;if(A.innerHTML=V,A.shadowed){u.logger.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",A.name)),u.logger.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",A.name));let F=(0,l._DOMCreateElement)("div");D.subelements("[slot]").map(ae=>(ae.parentElement===D&&F.appendChild(ae),ae)),u.logger.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",A.name));let W=(0,l._DOMCreateElement)("div");W.classList.add("shadowHost");try{A.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}}",A.name)),A.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}}",A.name))}}if(typeof A.shadowRoot<"u"&&A.shadowRoot!==null){A.reload?(u.logger.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",A.name)),W!==null&&W.shadowRoot!==null&&(W.shadowRoot.innerHTML=A.innerHTML)):(F.innerHTML=A.parseTemplate(F.innerHTML),u.logger.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",A.name)),W!==null&&W.shadowRoot!==null&&(W.shadowRoot.innerHTML+=A.innerHTML)),u.logger.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",A.name)),W.innerHTML+=F.innerHTML,u.logger.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",A.name));let ae=D.querySelector(".shadowHost");typeof ae<"u"&&ae!==null?(u.logger.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",A.name)),A.shadowRoot!==null&&W.shadowRoot!==null&&(A.shadowRoot.innerHTML=W.shadowRoot.innerHTML)):D.appendChild(W)}else u.logger.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",A.name))}else A.reload?(u.logger.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",A.name)),D.innerHTML=A.innerHTML):D&&A?(u.logger.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",A.name)),D.innerHTML+=A.innerHTML):u.logger.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",A.name))},"_feedComponent_InBrowser"),P=b(function(A){let D=A.parsedAssignmentText;A.innerHTML=D},"_feedComponent_InNode"),M;return(0,p.is_a)(w,"Component")?new Promise((A,D)=>{if(v.isBrowser)try{M=S(w),A(M)}catch(V){D(new Error(V))}else try{M=P(w),A(M)}catch(V){D(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 A={request:void 0,component:w};w.__done__().then(function(){typeof w.done=="function"&&w.done.call(w,A).catch(D=>{u.logger.debug(`It was an error while calling done() in ${w.name}: ${D}`)}),P.call(S,A)},function(){M.call(S,A)});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 D=>{await D.feedComponent.bind(D)()})(w).catch(D=>{u.logger.debug(`It was not possible to feed the component ${w.name}: ${D}`)});var A={request:void 0,component:w};w.__done__().then(async()=>{typeof w.done=="function"&&await w.done(A),P.call(S,A)},function(){M.call(S,A)});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(D){P.call(S,D)},function(D){M.call(S,D)});break;case(w.get("tplsource")==="external"&&w.get("templateURI")!==""):w.set("url",w.get("templateURI")),(0,N.componentLoader)(w,!1).then(function(D){P.call(S,D)},function(D){M.call(S,D)});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(A){let D=[],V=A.filter(function(F){return typeof F<"u"}).map(function(F){if(typeof F.name<"u")D.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 "+D.join(", "))}).catch(function(F){u.logger.warn("ROUTING FAILED FOR "+D.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,I.__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 A=M.getAttributeNames(),D={};return A.map((V,F)=>(D[A[F]]=M.getAttribute(A[F]),V)),S.routings.push(D),S.routingPaths||(S.routingPaths=[]),S.routingPaths.includes(D.path)||S.routingPaths.push(D.path),q._top.global.get("routingPaths")||q._top.global.set("routingPaths",[]),q._top.global.get("routingPaths").includes(D.path)||q._top.global.get("routingPaths").push(D.path),M})),P()})}parseTemplate(w){let S=this,P,M=w;if(Object.hasOwn(S,"templateHandler")){let A=S.templateHandler;u.logger.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${A} ...`);let D=(0,o.ClassFactory)(A),V=(0,g.New)(D,{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,I.__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(A){A.setAttribute("src",A.getAttribute("lazy-src")?.toString()),A.onload=()=>{A.removeAttribute("lazy-src")}},"_lazyLoadImages");if("IntersectionObserver"in window){let A=new IntersectionObserver((D,V)=>{D.forEach(F=>{F.isIntersecting&&(M(F.target),V.unobserve(F.target))})});P.map(function(D){return A.observe(D)})}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((D,V)=>{D.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),A=q._top.global.get("i18n");P!==M&&typeof A=="object"&&Object.hasOwn(A,"messages")&&b(()=>new Promise(function(V){let F=A.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=T,(0,y.Package)("com.qcobjects",[T]),f._methods_((0,o.ClassFactory)("Component")).map(ie=>(f._protected_code_(ie),ie))}}),Kr=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=Br(),t=et(),n=Hs(),o=tt(),s=ft(),i=pt(),c=te(),l=Ht(),_=_e(),d=fe(),f=Gs(),p=b(({TPL_SOURCE:y,COMPONENTS_BASE_PATH:v,COMPONENT_NAME:E,TPLEXTENSION:I})=>y==="default"?`${v}${E}.${I}`:"","ComponentURI");e.ComponentURI=p;var m=b((y,v)=>{let E=y.getAttribute("shadowed")===null,I=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"),T=y.getAttribute("componentClass")!==null?y.getAttribute("componentClass"):"Component",B=o.CONFIG.get("preserveComponentBodyTag")?N!==null?"com.qcobjects.components."+N+".ComponentBody":"com.qcobjects.components.ComponentBody":T;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),po=B!=="Component"&&typeof ie<"u"&&typeof ie.tplsource=="string"&&ie.tplsource!=="",w=I&&po?ie.tplsource:I?"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 A=E?ie&&ie.shadowed||n.Component.shadowed:q,D={__parent__:v,name:N,cached:G?n.Component.cached:U,shadowed:A,tplextension:j,body:o.CONFIG.get("preserveComponentBodyTag")?(0,s._DOMCreateElement)("componentBody"):y,templateURI:S,tplsource:w};(typeof N>"u"||N===""||N===null)&&delete D.name,S===""&&delete D.templateURI;let V=(0,l.New)(ie,D);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(I){return(0,e._buildComponentFromElement_)(I,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}}),pa=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=Bt(),t=Hr(),n=fr(),o=Se(),s=te(),i=_e(),c=xs(),l=tt(),_=(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 I=t._Crypt.decrypt(this.JSONresponse?.__encoded__,c._secretKey);this.JSONresponse=JSON.parse(I)}let E=this.JSONresponse;Object.keys(E).map(I=>(l.CONFIG.set(I,E[I]),I)),this.configLoaded().catch(I=>{throw new Error(`An error ocurred: ${I}`)})}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])}}),Us=L({"node_modules/qcobjects/build/globalSettings.js"(e){"use strict";var d;Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalSettings=void 0;var a=tt(),t=Se(),n=te(),o=_e(),s=fe(),i=Qr(),c=qe(),l=pa(),_=(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=Kr(),n=St(),o=Us(),s=Br(),i=et(),c=xt(),l=fe(),_=Et(),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)}}),fa=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}}),Ws=L({"node_modules/qcobjects/build/range.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.range=void 0;var a=Gt(),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)}}),ga=L({"node_modules/qcobjects/build/defaultProcessors.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setDefaultProcessors=void 0;var a=te(),t=No(),n=qe(),o=Ws(),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,I="";return typeof E<"u"&&typeof E.map<"u"?I=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`),I},"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,I){return Object.assign(E,I)}),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,I){return Object.assign(E,I)}),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}}),Qs=L({"node_modules/qcobjects/build/findPackageNodePath.js"(e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findPackageNodePath=void 0;var t=tt(),n=xt(),o=te(),s=fe(),i=b(function(c){let l=null;if(!s.isBrowser){let _=rt("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)}}),Ks=L({"node_modules/qcobjects/build/Import.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Import=void 0;var a=Bt(),t=tt(),n=gt(),o=ft(),s=Qs(),i=te(),c=fe(),l=Et(),_=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,I=0;for(let q in l._QC_PACKAGES)I++;return I<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(I=>l._QC_READY_LISTENERS.push(I)),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(I){i.logger.debug(`An error ocurred: ${I}.`),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] }"}}}),Vs=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}}),ha=L({"node_modules/qcobjects/build/NamespaceRef.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NamespaceRef=void 0;var a=ur(),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}}),_a=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=tt(),t=fe(),n=Et(),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}}),ma=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=et(),t=te(),n=Ht(),o=Vs(),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}}),ba=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=et(),t=Ht(),n=_e(),o=fe(),s=ma(),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])}}),ya=L({"node_modules/qcobjects/build/shortCode.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shortCode=void 0;var a=Hr(),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}}),Ca=L({"node_modules/qcobjects/build/super.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._super_=void 0;var a=et(),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] }"}}}),wa=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}}),va=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}}),Pl=L({"node_modules/qcobjects/build/loadSDK.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=tt(),t=Qs(),n=Ks(),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 rt<"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}}),Il=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=Ur(),o=fa(),s=St(),i=Br(),c=et(),l=Hs(),_=Kr(),d=Bs(),f=tt(),p=gt(),m=ga(),u=xt(),g=Ks(),y=Gt(),v=ur(),E=te(),I=Vs(),q=ha(),G=Ht(),U=dr(),j=_e(),N=fe(),T=_a(),B=Qr(),ie=ba(),po=No(),w=pr(),S=pt(),P=ya(),M=ft(),A=Wr(),D=Ca(),V=wa(),F=va(),W=Us(),ae=a(Pl()),Ce=Ws();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(R){E.logger.debug(`An error ocurred: ${R}`),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(R){let x=this,X=[],ve=document.subelements(R);return ve.map((be,He)=>(typeof ve[He]<"u"&&ve[He].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,He)=>{if(typeof document.implementation.createHTMLDocument<"u"){let Ve=document.implementation.createHTMLDocument("");Ve.body.innerHTML=He,Ve.body.subelements("*").map(nt=>be.append(nt))}},"_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)(D._super_),(0,u.Export)(A.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",[po.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=T._Ready,N.is_phonegap&&document.addEventListener("deviceready",T._Ready,o.captureFalseTouch)):global.onload=T._Ready,N.isBrowser&&window.addEventListener("popstate",function(R){R.stopImmediatePropagation(),R.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(R,x,X){return X.indexOf(R)===x})},Array.unique=function(R){return R.unique()},y._protected_code_(Array.unique),y._protected_code_(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(R){R.table()},y._protected_code_(Array.table),y._protected_code_(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(R,x){return(0,I.__to_number)(R)+(0,I.__to_number)(x)},0)},Array.sum=function(R){return R.sum()},y._protected_code_(Array.sum),y._protected_code_(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(R,x){return((0,I.__to_number)(R)+(0,I.__to_number)(x))/2})},Array.avg=function(R){return R.avg()},y._protected_code_(Array.avg),y._protected_code_(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(R,x){return(0,I.__to_number)(R)<=(0,I.__to_number)(x)?R:x},1/0)},Array.min=function(R){return R.min()},y._protected_code_(Array.min),y._protected_code_(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(R,x){return(0,I.__to_number)(R)>=(0,I.__to_number)(x)?R:x},0)},Array.max=function(R){return R.max()},y._protected_code_(Array.max),y._protected_code_(Array.prototype.max),Array.prototype.sortBy=function(R,x=!0){let X=x?function(ve,be){return be[R]<ve[R]?1:-1}:function(ve,be){return be[R]>ve[R]?1:-1};return this.sort(X)},Array.sortBy=function(R,x,X=!0){return R.sortBy(x,X)},y._protected_code_(Array.sortBy),y._protected_code_(Array.prototype.sortBy),Array.prototype.matrix=function(R,x=0){return Array.from({length:R},b(function(ve=void 0){return x},"x_func"))},Array.matrix=function(R,x,X=0){return R.matrix(x,X)},y._protected_code_(Array.matrix),y._protected_code_(Array.prototype.matrix),Array.prototype.matrix2d=function(R,x=0){let X=b(function(be){return x},"y_func");return Array.from({length:R},b(function(be){return Array.from({length:R},X)},"x_func"))},Array.matrix2d=function(R,x,X=0){return R.matrix2d(x,X)},y._protected_code_(Array.matrix2d),y._protected_code_(Array.prototype.matrix2d),Array.prototype.matrix3d=function(R,x=0){let X=b(function(be){return Array.from({length:R},function(){return x})},"y_func");return Array.from({length:R},b(function(be){return Array.from({length:R},X)},"x_func"))},Array.matrix3d=function(R,x,X=0){return R.matrix3d(x,X)},y._protected_code_(Array.matrix3d),y._protected_code_(Array.prototype.matrix3d),String.prototype.list=function(){let R=this;return(0,Ce.range)(0,R.length-1).map(function(x){return R[x]})},y._protected_code_(String.prototype.list),(0,m.setDefaultProcessors)(),(0,T.Ready)(function(){f.CONFIG.get("useSDK")||W.GlobalSettings.__start__().catch(R=>{throw Error(R)})}),(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)(T.Ready),(0,u.Export)(T.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,T.Ready)(function(){(function(R){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(He){let Ve=Math.round(R.scrollY*100/X),nt=Math.round(R.scrollX*100/ve),Go=new CustomEvent("scrollpercent",{detail:{percentX:nt,percentY:Ve}});He.target.dispatchEvent(Go);let ne="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(Kt){return Kt===Ve}).map(function(Kt){ne="percentY"+Ve.toString();let Xr=new CustomEvent(ne,{detail:{percentX:nt,percentY:Ve}});return He.target.dispatchEvent(Xr),Kt})}h(be,"scrollDispatcher"),b(be,"scrollDispatcher"),document.addEventListener("scroll",function(He){x||(requestAnimationFrame(function(){be(He),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(R){let x=b(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");R&&f.CONFIG.get("secureObjects",!1)?(0,T.Ready)(function(){x()}):f.CONFIG.get("secureObjects",!1)&&x()})(N.isBrowser))},"__qcobjects__"),"__qcobjects__")(t._top)}}),Al=L({"node_modules/qcobjects/build/BackendMicroservice.js"(e){"use strict";var l;Object.defineProperty(e,"__esModule",{value:!0}),e.BackendMicroservice=void 0;var a=Bt(),t=gt(),n=fr(),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",I=>{let q=g?.method.toLowerCase(),G={post:y.post.bind(y)};Object.hasOwn(G,q)&&G[q].call(y,I)});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])}}),Oa=L({"node_modules/qcobjects/build/RegisterClass.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RegisterClass=void 0;var a=Gr(),t=Et(),n=b(function(o,s){return(0,t.__register_class__)(o,s)},"RegisterClass");e.RegisterClass=n,(0,a.__make_global__)(e.RegisterClass)}}),Tl=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=No(),n=Oa(),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")}}),jl=L({"node_modules/qcobjects/build/SourceJS.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceJS=void 0;var a=Bt(),t=St(),n=fr(),o=ft(),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])}}),Ml=L({"node_modules/qcobjects/build/SourceCSS.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.SourceCSS=void 0;var a=Bt(),t=St(),n=fr(),o=ft(),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])}}),Ll=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=ft(),t=xt(),n=Gt(),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)}}),Rl=L({"node_modules/qcobjects/build/Controller.js"(e){"use strict";var _;Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var a=et(),t=pt(),n=Se(),o=te(),s=Ht(),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])}}),Dl=L({"node_modules/qcobjects/build/View.js"(e){"use strict";var s;Object.defineProperty(e,"__esModule",{value:!0}),e.View=void 0;var a=pt(),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])}}),kl=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])}}),Ea=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=Gt(),o=et(),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))}}),ql=L({"node_modules/qcobjects/build/TransitionEffect.js"(e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.TransitionEffect=void 0;var a=Ea(),t=te(),n=_e(),o=et(),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(I=>{let q=(0,o.ClassFactory)(I),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})),I}))}},h(i,"TransitionEffect"),b(i,"TransitionEffect"),i);e.TransitionEffect=s,(0,n.Package)("com.qcobjects.effects.transitions.base",[s])}}),Fl=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])}}),$l=L({"node_modules/qcobjects/build/DDO.js"(e){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e.DDO=void 0;var a=xt(),t=Se(),n=te(),o=dr(),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)}}),xl=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])}}),Gl=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(Je,Oe,Ue,Le){Le===void 0&&(Le=Ue);var Fe=Object.getOwnPropertyDescriptor(Oe,Ue);(!Fe||("get"in Fe?!Oe.__esModule:Fe.writable||Fe.configurable))&&(Fe={enumerable:!0,get:b(function(){return Oe[Ue]},"get")}),Object.defineProperty(Je,Le,Fe)}:function(Je,Oe,Ue,Le){Le===void 0&&(Le=Ue),Je[Le]=Oe[Ue]}),t=e&&e.__setModuleDefault||(Object.create?function(Je,Oe){Object.defineProperty(Je,"default",{enumerable:!0,value:Oe})}:function(Je,Oe){Je.default=Oe}),n=e&&e.__importStar||(function(){var Je=b(function(Oe){return Je=Object.getOwnPropertyNames||function(Ue){var Le=[];for(var Fe in Ue)Object.prototype.hasOwnProperty.call(Ue,Fe)&&(Le[Le.length]=Fe);return Le},Je(Oe)},"ownKeys");return function(Oe){if(Oe&&Oe.__esModule)return Oe;var Ue={};if(Oe!=null)for(var Le=Je(Oe),Fe=0;Fe<Le.length;Fe++)Le[Fe]!=="default"&&a(Ue,Oe,Le[Fe]);return t(Ue,Oe),Ue}})();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(vl()),e.__top__=n(qe()),e.qcobjects=n(Il());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=Et();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=gt();Object.defineProperty(e,"_DataStringify",{enumerable:!0,get:b(function(){return i._DataStringify},"get")});var c=ft();Object.defineProperty(e,"_DOMCreateElement",{enumerable:!0,get:b(function(){return c._DOMCreateElement},"get")});var l=Gt();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=va();Object.defineProperty(e,"subelements",{enumerable:!0,get:b(function(){return f.subelements},"get")});var p=lr();Object.defineProperty(e,"__is_raw_class__",{enumerable:!0,get:b(function(){return p.__is_raw_class__},"get")});var m=Fs();Object.defineProperty(e,"_LegacyCopy",{enumerable:!0,get:b(function(){return m._LegacyCopy},"get")});var u=Ur();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=qs();Object.defineProperty(e,"__instanceID",{enumerable:!0,get:b(function(){return g.__instanceID},"get")});var y=dr();Object.defineProperty(e,"ObjectName",{enumerable:!0,get:b(function(){return y.ObjectName},"get")});var v=pt();Object.defineProperty(e,"__getType__",{enumerable:!0,get:b(function(){return v.__getType__},"get")});var E=pr();Object.defineProperty(e,"is_a",{enumerable:!0,get:b(function(){return E.is_a},"get")});var I=Wr();Object.defineProperty(e,"ComplexStorageCache",{enumerable:!0,get:b(function(){return I.ComplexStorageCache},"get")});var q=wa();Object.defineProperty(e,"waitUntil",{enumerable:!0,get:b(function(){return q.waitUntil},"get")});var G=St();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=ur();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=et();Object.defineProperty(e,"ClassFactory",{enumerable:!0,get:b(function(){return N.ClassFactory},"get")});var T=xt();Object.defineProperty(e,"Export",{enumerable:!0,get:b(function(){return T.Export},"get")});var B=Br();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 po=Ca();Object.defineProperty(e,"_super_",{enumerable:!0,get:b(function(){return po._super_},"get")});var w=ya();Object.defineProperty(e,"shortCode",{enumerable:!0,get:b(function(){return w.shortCode},"get")});var S=No();Object.defineProperty(e,"Processor",{enumerable:!0,get:b(function(){return S.Processor},"get")});var P=Ht();Object.defineProperty(e,"New",{enumerable:!0,get:b(function(){return P.New},"get")});var M=_a();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 A=fa();Object.defineProperty(e,"captureFalseTouch",{enumerable:!0,get:b(function(){return A.captureFalseTouch},"get")});var D=Qr();Object.defineProperty(e,"serviceLoader",{enumerable:!0,get:b(function(){return D.serviceLoader},"get")});var V=Bs();Object.defineProperty(e,"componentLoader",{enumerable:!0,get:b(function(){return V.componentLoader},"get")});var F=Kr();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=ha();Object.defineProperty(e,"NamespaceRef",{enumerable:!0,get:b(function(){return W.NamespaceRef},"get")});var ae=ga();Object.defineProperty(e,"setDefaultProcessors",{enumerable:!0,get:b(function(){return ae.setDefaultProcessors},"get")});var Ce=ba();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=Ks();Object.defineProperty(e,"Import",{enumerable:!0,get:b(function(){return we.Import},"get")});var ce=Al();Object.defineProperty(e,"BackendMicroservice",{enumerable:!0,get:b(function(){return ce.BackendMicroservice},"get")});var R=Hs();Object.defineProperty(e,"Component",{enumerable:!0,get:b(function(){return R.Component},"get")});var x=Hr();Object.defineProperty(e,"_Crypt",{enumerable:!0,get:b(function(){return x._Crypt},"get")});var X=Tl();Object.defineProperty(e,"DefaultTemplateHandler",{enumerable:!0,get:b(function(){return X.DefaultTemplateHandler},"get")});var ve=jl();Object.defineProperty(e,"SourceJS",{enumerable:!0,get:b(function(){return ve.SourceJS},"get")});var be=Ml();Object.defineProperty(e,"SourceCSS",{enumerable:!0,get:b(function(){return be.SourceCSS},"get")});var He=Us();Object.defineProperty(e,"GlobalSettings",{enumerable:!0,get:b(function(){return He.GlobalSettings},"get")});var Ve=Oa();Object.defineProperty(e,"RegisterClass",{enumerable:!0,get:b(function(){return Ve.RegisterClass},"get")});var nt=Ll();Object.defineProperty(e,"_ComponentWidget_",{enumerable:!0,get:b(function(){return nt._ComponentWidget_},"get")}),Object.defineProperty(e,"RegisterWidget",{enumerable:!0,get:b(function(){return nt.RegisterWidget},"get")}),Object.defineProperty(e,"RegisterWidgets",{enumerable:!0,get:b(function(){return nt.RegisterWidgets},"get")});var Go=tt();Object.defineProperty(e,"CONFIG",{enumerable:!0,get:b(function(){return Go.CONFIG},"get")});var ne=Rl();Object.defineProperty(e,"Controller",{enumerable:!0,get:b(function(){return ne.Controller},"get")});var ot=Dl();Object.defineProperty(e,"View",{enumerable:!0,get:b(function(){return ot.View},"get")});var Kt=pa();Object.defineProperty(e,"ConfigService",{enumerable:!0,get:b(function(){return Kt.ConfigService},"get")}),Object.defineProperty(e,"JSONService",{enumerable:!0,get:b(function(){return Kt.JSONService},"get")}),Object.defineProperty(e,"Service",{enumerable:!0,get:b(function(){return Kt.Service},"get")});var Xr=kl();Object.defineProperty(e,"VO",{enumerable:!0,get:b(function(){return Xr.VO},"get")});var Gc=Ea();Object.defineProperty(e,"Effect",{enumerable:!0,get:b(function(){return Gc.Effect},"get")});var Bc=ql();Object.defineProperty(e,"TransitionEffect",{enumerable:!0,get:b(function(){return Bc.TransitionEffect},"get")});var Hc=Fl();Object.defineProperty(e,"Timer",{enumerable:!0,get:b(function(){return Hc.Timer},"get")});var Uc=Gs();Object.defineProperty(e,"_tag_filter_",{enumerable:!0,get:b(function(){return Uc._tag_filter_},"get")});var Wc=Ws();Object.defineProperty(e,"range",{enumerable:!0,get:b(function(){return Wc.range},"get")});var hi=ma();Object.defineProperty(e,"ArrayCollection",{enumerable:!0,get:b(function(){return hi.ArrayCollection},"get")}),Object.defineProperty(e,"ArrayList",{enumerable:!0,get:b(function(){return hi.ArrayList},"get")});var Qc=$l();Object.defineProperty(e,"DDO",{enumerable:!0,get:b(function(){return Qc.DDO},"get")});var Kc=xl();Object.defineProperty(e,"Toggle",{enumerable:!0,get:b(function(){return Kc.Toggle},"get")});var Vc=Qs();Object.defineProperty(e,"findPackageNodePath",{enumerable:!0,get:b(function(){return Vc.findPackageNodePath},"get")});var Jc=Gl();Object.defineProperty(e,"getDocumentLayout",{enumerable:!0,get:b(function(){return Jc.getDocumentLayout},"get")});var zc=Vs();Object.defineProperty(e,"__to_number",{enumerable:!0,get:b(function(){return zc.__to_number},"get")});var Yc=qe();Object.defineProperty(e,"global",{enumerable:!0,get:b(function(){return Yc._top},"get")});var Xc=Gr();Object.defineProperty(e,"__make_global__",{enumerable:!0,get:b(function(){return Xc.__make_global__},"get")});var _i=qe();Object.defineProperty(e,"get",{enumerable:!0,get:b(function(){return _i.get},"get")}),Object.defineProperty(e,"set",{enumerable:!0,get:b(function(){return _i.set},"get")})}}),Sa={};Cl(Sa,{BasicLayout:h(()=>_c,"BasicLayout"),ButtonField:h(()=>$a,"ButtonField"),CanvasTool:h(()=>hc,"CanvasTool"),Contact:h(()=>Pa,"Contact"),CubeSplashScreenComponent:h(()=>ec,"CubeSplashScreenComponent"),DataGridController:h(()=>sc,"DataGridController"),EmailField:h(()=>Ba,"EmailField"),Fade:h(()=>Ot,"Fade"),FormController:h(()=>cc,"FormController"),FormField:h(()=>uo,"FormField"),FormValidations:h(()=>ac,"FormValidations"),GenericController:h(()=>nc,"GenericController"),GridComponent:h(()=>Qa,"GridComponent"),GridController:h(()=>rc,"GridController"),GridItemComponent:h(()=>Wa,"GridItemComponent"),GridView:h(()=>fc,"GridView"),InputField:h(()=>xa,"InputField"),ListComponent:h(()=>Va,"ListComponent"),ListController:h(()=>oc,"ListController"),ListItemComponent:h(()=>Ka,"ListItemComponent"),ModalComponent:h(()=>ni,"ModalComponent"),ModalController:h(()=>uc,"ModalController"),ModalEnclosureComponent:h(()=>Ha,"ModalEnclosureComponent"),ModalFade:h(()=>$r,"ModalFade"),ModalMoveDown:h(()=>ti,"ModalMoveDown"),ModalMoveUp:h(()=>ei,"ModalMoveUp"),Move:h(()=>Be,"Move"),MoveXInFromLeft:h(()=>Ys,"MoveXInFromLeft"),MoveXInFromRight:h(()=>zs,"MoveXInFromRight"),MoveYInFromBottom:h(()=>Xs,"MoveYInFromBottom"),MoveYInFromTop:h(()=>Ia,"MoveYInFromTop"),NotificationComponent:h(()=>Xa,"NotificationComponent"),Radius:h(()=>La,"Radius"),Resize:h(()=>Zs,"Resize"),Rotate:h(()=>Ma,"Rotate"),RotateX:h(()=>Aa,"RotateX"),RotateY:h(()=>Ta,"RotateY"),RotateZ:h(()=>ja,"RotateZ"),SessionData:h(()=>mc,"SessionData"),SessionUserToken:h(()=>xr,"SessionUserToken"),ShadowedComponent:h(()=>Fa,"ShadowedComponent"),SlideItemComponent:h(()=>za,"SlideItemComponent"),SlideListComponent:h(()=>Ja,"SlideListComponent"),SliderComponent:h(()=>Ya,"SliderComponent"),SliderController:h(()=>ic,"SliderController"),SplashScreenComponent:h(()=>gr,"SplashScreenComponent"),SwaggerUIComponent:h(()=>Ua,"SwaggerUIComponent"),SwaggerUIController:h(()=>lc,"SwaggerUIController"),TextField:h(()=>Ga,"TextField"),VideoSplashScreenComponent:h(()=>Za,"VideoSplashScreenComponent"),WipeDown:h(()=>qa,"WipeDown"),WipeLeft:h(()=>Ra,"WipeLeft"),WipeRight:h(()=>Da,"WipeRight"),WipeUp:h(()=>ka,"WipeUp"),default:h(()=>Hl,"default"),i18n_messages:h(()=>Js,"i18n_messages")});bc.exports=wl(Sa);var Fr=de(ue()),ut=de(ue()),hn,Js=(hn=class extends ut.InheritClass{constructor({messages:a=[]}){super({messages:a}),ut.CONFIG.get("use_i18n",!1)&&(ut.CONFIG.set("lang","en"),ut.global.get("i18n")?ut.global.set("i18n",{messages:ut.global.get("i18n").messages.concat(a)}):ut.global.set("i18n",{messages:a}))}_load_i18n_packages_(){return ut.CONFIG.get("i18n_languages",[]).map(a=>{(0,ut.Import)(`org.quickcorp.i18n_messages.${a}`)})}},h(hn,"i18n_messages"),b(hn,"i18n_messages"),hn);(0,ut.Package)("org.qcobjects.i18n_messages",[Js]);new Js({})._load_i18n_packages_();var Na=de(ue()),_n,Pa=(_n=class extends Na.VO{},h(_n,"Contact"),b(_n,"Contact"),_n);(0,Na.Package)("org.qcobjects.models",[Pa]);var he=de(ue()),vt=de(ue()),kt,Ot=(kt=class extends vt.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){vt.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;vt.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){vt.logger.debug("animation progress: "+i.toString());let c=n+i*s/100;vt.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}},h(kt,"Fade"),b(kt,"Fade"),r(kt,"duration"),kt),qt,Be=(qt=class extends vt.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(_){vt.logger.debug("animation progress: "+_.toString());let d=o+_*l/100,f=n+_*c/100;vt.logger.debug("x: "+f.toString()+" y:"+d.toString()),t.style.transform="translate("+f+"px,"+d+"px)"}})}},h(qt,"Move"),b(qt,"Move"),r(qt,"duration"),qt);(0,vt.Package)("org.qcobjects.effects.base",[Ot,Be]);var Y=de(ue()),mn,zs=(mn=class extends Be{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Be.apply.call(this,t,t.width,0,0,0)}},h(mn,"MoveXInFromRight"),b(mn,"MoveXInFromRight"),mn),bn,Ys=(bn=class extends Be{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Be.apply.call(this,t,-t.width,0,0,0)}},h(bn,"MoveXInFromLeft"),b(bn,"MoveXInFromLeft"),bn),yn,Xs=(yn=class extends Be{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Be.apply.call(this,t,0,t.height,0,0)}},h(yn,"MoveYInFromBottom"),b(yn,"MoveYInFromBottom"),yn),Cn,Ia=(Cn=class extends Be{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){Be.apply.call(this,t,0,-t.height,0,0)}},h(Cn,"MoveYInFromTop"),b(Cn,"MoveYInFromTop"),Cn),Ft,Aa=(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(1,0,0,"+c.toString()+"deg)"}})}},h(Ft,"RotateX"),b(Ft,"RotateX"),r(Ft,"duration"),Ft),$t,Ta=($t=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($t,"RotateY"),b($t,"RotateY"),r($t,"duration"),$t),wn,ja=(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(0,0,1,"+c.toString()+"deg)"}})}},h(wn,"RotateZ"),b(wn,"RotateZ"),wn),vn,Ma=(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=Math.round(n+i*s/100);Y.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,1,1,"+c.toString()+"deg)"}})}},h(vn,"Rotate"),b(vn,"Rotate"),vn),On,La=(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("radius: "+c.toString()),t.style.borderRadius=c.toString()+"px"}})}},h(On,"Radius"),b(On,"Radius"),On),En,Zs=(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("resize: "+c.toString()),t.style.transformOrigin="center",t.style.transform="scale("+c+","+c+")"}})}},h(En,"Resize"),b(En,"Resize"),En),Sn,Ra=(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="right",t.style.transform="scaleX("+c+")"}})}},h(Sn,"WipeLeft"),b(Sn,"WipeLeft"),Sn),Nn,Da=(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="left",t.style.transform="scaleX("+c+")"}})}},h(Nn,"WipeRight"),b(Nn,"WipeRight"),Nn),Pn,ka=(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="bottom",t.style.transform="scaleY("+c+")"}})}},h(Pn,"WipeUp"),b(Pn,"WipeUp"),Pn),In,qa=(In=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(In,"WipeDown"),b(In,"WipeDown"),In);(0,Y.Package)("org.qcobjects.effects.extended",[zs,Ys,Xs,Ia,Aa,Ta,ja,Ma,La,Zs,Ra,Da,ka,qa]);var Bl=de(ue()),An,$r=(An=class extends Ot{constructor(){super(...arguments);r(this,"duration",500)}},h(An,"ModalFade"),b(An,"ModalFade"),An),Tn,ei=(Tn=class extends Be{constructor(){super(...arguments);r(this,"duration",800)}},h(Tn,"ModalMoveUp"),b(Tn,"ModalMoveUp"),Tn),jn,ti=(jn=class extends Be{constructor(){super(...arguments);r(this,"duration",300)}},h(jn,"ModalMoveDown"),b(jn,"ModalMoveDown"),jn);(0,Bl.Package)("org.qcobjects.modal.effects",[$r,ti,ei]);var wt=de(ue()),Mn,uo=(Mn=class extends wt.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",()=>{wt.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("blur",()=>{wt.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("focus",()=>{wt.logger.debug("Executing change event binding"),this.executeBindings()}),o.addEventListener("keydown",()=>{wt.logger.debug("Executing keydown event binding"),this.executeBindings()})}}executeBinding(t){let n=t.getAttribute("data-field");wt.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");wt.logger.debug("Binding "+s+" for "+this.name),this.data[s]=o.value}}done(t){let n=super.done(t);return this.executeBindings(),this.createBindingEvents(),wt.logger.debug("Field loaded: "+this.fieldType+"[name="+this.name+"]"),n}},h(Mn,"FormField"),b(Mn,"FormField"),Mn);(0,wt.Package)("org.qcobjects.base.components",[uo]);var Ln,Fa=(Ln=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(Ln,"ShadowedComponent"),b(Ln,"ShadowedComponent"),Ln),Rn,$a=(Rn=class extends uo{constructor(a){a.fieldType="button",super(a)}},h(Rn,"ButtonField"),b(Rn,"ButtonField"),Rn),Dn,xa=(Dn=class extends uo{constructor(a){a.fieldType="input",super(a)}},h(Dn,"InputField"),b(Dn,"InputField"),Dn),kn,Ga=(kn=class extends uo{constructor(a){a.fieldType="textarea",super(a)}},h(kn,"TextField"),b(kn,"TextField"),kn),qn,Ba=(qn=class extends uo{constructor(a){a.fieldType="input",super(a)}},h(qn,"EmailField"),b(qn,"EmailField"),qn),Fn,Ha=(Fn=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");we.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");we.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");we.setProcessor(n);let a=f((i,c,d)=>Wn(c).map(function(g){return d.replace("{{index}}",g.toString())}).join(""),"repeat");we.setProcessor(a)})(I)},"setDefaultProcessors")}}),mn,cr=v({"src/findPackageNodePath.ts"(){"use strict";de(),Re(),R(),F(),mn=f(function(o){let s=null;if(!y)try{let t=Ln("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(Ze.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(mn)}}),Vn,lr=v({"src/Import.ts"(){"use strict";De(),de(),be(),me(),cr(),R(),F(),Oe(),Vn=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<jn.length?d=!1:d=!0,d},"allPackagesImported"),c=f(function(d){jn.push(s),i()&&jn.map(g=>Ve.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":he+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=mn(o),c="";if(i!==null)c=i+"/"+o;else{let d=mn(o+".js");d!==null?c=d+"/"+o+".js":c=he+O.get("relativeImportPath")+o}try{n.call(e,{_imported_:Ae(`${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"),Vn.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),V,dr=v({"src/mathFunctions.ts"(){"use strict";V=f(function(o){return isNaN(o)?new Number(0):new Number(o)},"__to_number")}}),ur,as=v({"src/NamespaceRef.ts"(){"use strict";Yn(),$(),ur=f(function(o){let t=(D(o)||[]).filter(e=>Xn(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")}}),ze,pr,$n,cs=v({"src/Ready.ts"(){"use strict";de(),F(),Oe(),ee(),ze=f(o=>{y?Ve.push(o.bind(window)):typeof global<"u"&&Ve.push(o.bind(global))},"Ready"),pr=ze,$n=f(o=>{let s=f(()=>{Ve.map(function(t,e){typeof t=="function"&&(t(),Ve.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")}}),ho,ls,ds=v({"src/ArrayCollection.ts"(){"use strict";var o,s;le(),R(),Le(),dr(),ho=(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),ls=(s=class{constructor(){r(this,"source",K(ho,[]))}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)}}),co,go,us=v({"src/Tag.ts"(){"use strict";var o;le(),Le(),$(),F(),ds(),co=(o=class extends ho{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),go=f(function(s,t){let e=K(co);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",[co,go])}}),fr,ps=v({"src/shortCode.ts"(){"use strict";Co(),fr=f(()=>{let s=pe.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...pe.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")}}),mo,fs=v({"src/super.ts"(){"use strict";le(),mo=f(function(o,s){return j(o)[s]},"_super_"),mo.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),hr,hs=v({"src/waitUntil.ts"(){"use strict";R(),hr=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")}}),dn,gs=v({"src/subelements.ts"(){"use strict";dn=f(l(function(s){return[...this.querySelectorAll(s)]},"subelements2"),"subelements")}}),Wr,ms,da=v({"src/loadSDK.ts"(){"use strict";de(),cr(),lr(),R(),F(),Wr=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=mn("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),Wo&&typeof Ln<"u"?Ae("qcobjects-sdk")?u.debug("QCObjects SDK was loaded OK."):u.debug("QCObjects SDK could not be imported."):Vn(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"),ms=Wr}}),ua=oa({"src/MainProcess.ts"(){"use strict";ee(),vo(),ss(),Ee(),wo(),le(),er(),No(),Yo(),de(),be(),is(),Re(),lr(),ke(),Yn(),R(),dr(),as(),Le(),Zn(),$(),F(),cs(),Eo(),us(),wn(),eo(),ge(),ps(),me(),Oo(),fs(),hs(),gs(),tr(),da(),ir(),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=dn,Document.prototype.subelements=dn,HTMLElement.prototype.subelements=dn,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=dn)),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(ve(i,new Object)),i)),n}),y&&(Element.prototype.append=f(l(function(e){ut(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(hr),S(mo),S(hn),S(j),S(Y),S(fr),S(oe),S(Ce),D("com.qcobjects",[un]),y&&(Element.prototype.Cast=f(l(function(e){return ve(this,e)},"QC_Cast"),"QC_Cast")),y?(window.onload=$n,_o&&document.addEventListener("deviceready",$n,sr)):global.onload=$n,y&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),Qe.route().catch(e=>{throw new Error(`An error ocurred when trying to load initial routes. ${e}`)})}),S(no),S(Hn),S(Bn),S(_n),S(M),S(Xn),S(ut),S(ur),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 Wn(0,t.length-1).map(function(e){return t[e]})},k(String.prototype.list),ar(),ze(function(){O.get("useSDK")||gn.__start__().catch(t=>{throw Error(t)})}),S(S),S(Vn),S(D),S(Je),S(K),S(go),S(ze),S(pr),S(y),S(fe),S(gn),ms(),y&&fn(function(){ze(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")&&Ko.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)?ze(function(){e()}):O.get("secureObjects",!1)&&e()})(y))}),"__qcobjects__"),"__qcobjects__")(I)}}),bs={};Vr(bs,{ArrayCollection:l(()=>ls,"ArrayCollection"),ArrayList:l(()=>ho,"ArrayList"),AssignPolyfill:l(()=>pa,"AssignPolyfill"),BackendMicroservice:l(()=>_s,"BackendMicroservice"),CONFIG:l(()=>O,"CONFIG"),Class:l(()=>Je,"Class"),ClassFactory:l(()=>j,"ClassFactory"),ComplexStorageCache:l(()=>hn,"ComplexStorageCache"),Component:l(()=>Qe,"Component"),ComponentURI:l(()=>Bn,"ComponentURI"),ConfigService:l(()=>po,"ConfigService"),Controller:l(()=>vs,"Controller"),DDO:l(()=>xs,"DDO"),DefaultTemplateHandler:l(()=>ys,"DefaultTemplateHandler"),Effect:l(()=>br,"Effect"),Export:l(()=>S,"Export"),GlobalSettings:l(()=>gn,"GlobalSettings"),Import:l(()=>Vn,"Import"),InheritClass:l(()=>H,"InheritClass"),JSONService:l(()=>ao,"JSONService"),Logger:l(()=>lo,"Logger"),NamespaceRef:l(()=>ur,"NamespaceRef"),New:l(()=>K,"New"),ObjectName:l(()=>_n,"ObjectName"),Package:l(()=>D,"Package"),Processor:l(()=>un,"Processor"),Ready:l(()=>ze,"Ready"),RegisterClass:l(()=>gr,"RegisterClass"),RegisterWidget:l(()=>Io,"RegisterWidget"),RegisterWidgets:l(()=>mr,"RegisterWidgets"),Service:l(()=>io,"Service"),SourceCSS:l(()=>Cs,"SourceCSS"),SourceJS:l(()=>ws,"SourceJS"),Tag:l(()=>go,"Tag"),TagElements:l(()=>co,"TagElements"),Timer:l(()=>Ns,"Timer"),Toggle:l(()=>Is,"Toggle"),TransitionEffect:l(()=>Ss,"TransitionEffect"),VO:l(()=>Es,"VO"),View:l(()=>Os,"View"),_Cast:l(()=>ve,"_Cast"),_CastProps:l(()=>Me,"_CastProps"),_ComponentWidget_:l(()=>zn,"_ComponentWidget_"),_Crypt:l(()=>pe,"_Crypt"),_DOMCreateElement:l(()=>Y,"_DOMCreateElement"),_DataStringify:l(()=>M,"_DataStringify"),_LegacyCopy:l(()=>yo,"_LegacyCopy"),_QC_CLASSES:l(()=>Q,"_QC_CLASSES"),_QC_PACKAGES:l(()=>Z,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:l(()=>jn,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:l(()=>Ve,"_QC_READY_LISTENERS"),_Ready:l(()=>$n,"_Ready"),__getType__:l(()=>oe,"__getType__"),__instanceID:l(()=>Te,"__instanceID"),__is_raw_class__:l(()=>bn,"__is_raw_class__"),__make_global__:l(()=>Kn,"__make_global__"),__to_number:l(()=>V,"__to_number"),__top__:l(()=>rs,"__top__"),_buildComponentsFromElements_:l(()=>uo,"_buildComponentsFromElements_"),_fireAsyncLoad:l(()=>Ko,"_fireAsyncLoad"),_methods_:l(()=>fe,"_methods_"),_protected_code_:l(()=>k,"_protected_code_"),_require_:l(()=>Ae,"_require_"),_super_:l(()=>mo,"_super_"),_tag_filter_:l(()=>So,"_tag_filter_"),_top:l(()=>I,"_top"),asyncLoad:l(()=>fn,"asyncLoad"),captureFalseTouch:l(()=>sr,"captureFalseTouch"),componentLoader:l(()=>Hn,"componentLoader"),findPackageNodePath:l(()=>mn,"findPackageNodePath"),get:l(()=>rr,"get"),getDocumentLayout:l(()=>ga,"getDocumentLayout"),global:l(()=>I,"global"),isBrowser:l(()=>y,"isBrowser"),isNodeCommonJS:l(()=>Wo,"isNodeCommonJS"),isQCObjects_Class:l(()=>Xn,"isQCObjects_Class"),isQCObjects_Object:l(()=>ut,"isQCObjects_Object"),is_a:l(()=>Ce,"is_a"),is_phonegap:l(()=>_o,"is_phonegap"),logger:l(()=>u,"logger"),qcobjects:l(()=>fa,"qcobjects"),range:l(()=>Wn,"range"),ready:l(()=>pr,"ready"),resetTop:l(()=>fo,"resetTop"),serviceLoader:l(()=>no,"serviceLoader"),set:l(()=>xo,"set"),setDefaultProcessors:l(()=>ar,"setDefaultProcessors"),shortCode:l(()=>fr,"shortCode"),subelements:l(()=>dn,"subelements"),waitUntil:l(()=>hr,"waitUntil")});Ze.exports=sa(bs);var pa={};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 fa=ra(ua());ee();Oe();be();me();ke();R();F();gs();Qn();Jo();vo();zo();Zn();ge();eo();Oo();hs();Ee();Yn();$();le();Re();wo();W();fs();ps();wn();Le();cs();ss();Eo();Yo();No();as();is();us();lr();De();be();to();W();R();$();var Ke,_s=(Ke=class extends H{constructor({domain:t=yn,basePath:e=he,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(Ke,"BackendMicroservice"),f(Ke,"BackendMicroservice"),Ke);D("com.qcobjects.api",[_s]);er();Co();R();wn();bo();Oe();var gr=f(function(o,s){return qn(o,s)},"RegisterClass");Kn(gr);var Pe,ys=(Pe=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=we.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=we.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(Pe,"DefaultTemplateHandler"),f(Pe,"DefaultTemplateHandler"),r(Pe,"__definition",{}),Pe);gr(ys,"com.qcobjects");De();Ee();to();me();W();$();R();var Xe,ws=(Xe=class extends H{constructor(t){super(t);r(this,"domain",yn);r(this,"basePath",he);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 ve(this,t)}_new_(t){this.__new__(t),this.rebuild()}},l(Xe,"SourceJS"),f(Xe,"SourceJS"),Xe);D("com.qcobjects",[ws]);De();Ee();to();me();W();F();$();var Ye,Cs=(Ye=class extends H{constructor(t){super(t);r(this,"domain",yn);r(this,"basePath",he);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 ve(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(Ye,"SourceCSS"),f(Ye,"SourceCSS"),Ye);D("com.qcobjects",[Cs]);tr();me();Re();ke();F();var et,ha=(et=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(et,"QCObjectsWidgetNode"),f(et,"QCObjectsWidgetNode"),et),zn,tt,nt;y?zn=(tt=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(tt,"_ComponentWidget_"),f(tt,"_ComponentWidget_"),tt):zn=(nt=class extends ha{constructor(){throw super(),new Error("Class not implemented.")}},l(nt,"_ComponentWidget_"),f(nt,"_ComponentWidget_"),nt);S(zn);var Io=f(o=>{if(y)customElements.define(o,class extends zn{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),mr=f((...o)=>{[...o].filter(function(t){return typeof t=="string"}).map(function(t){return Io(t)})},"RegisterWidgets");k(Io);k(mr);S(Io);S(mr);de();le();ge();W();R();Le();$();F();var ot,vs=(ot=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(`${oe(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(ot,"Controller"),f(ot,"Controller"),ot);D("com.qcobjects.controllers",[vs]);ge();W();$();var rt,Os=(rt=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(`${oe(this)} must be called with a component`)}},l(rt,"View"),f(rt,"View"),rt);D("com.qcobjects.views",[Os]);os();W();$();var st,Es=(st=class extends H{},l(st,"VO"),f(st,"VO"),st);D("com.qcobjects.valueObjects",[Es]);W();$();ke();le();var it,br=(it=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(it,"Effect"),f(it,"Effect"),it);D("com.qcobjects.effects.base",[br]);fe(j("Effect")).map(o=>(k(o),o));R();$();le();var at,Ss=(at=class extends br{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(at,"TransitionEffect"),f(at,"TransitionEffect"),at);D("com.qcobjects.effects.transitions.base",[Ss]);W();$();var ct,Ns=(ct=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(ct,"Timer"),f(ct,"Timer"),ct);D("com.qcobjects.timing",[Ns]);Xo();ir();ds();Re();W();R();Zn();var lt,xs=(lt=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"?_n(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(lt,"DDO"),f(lt,"DDO"),lt);S(xs);W();R();$();var dt,Is=(dt=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(dt,"Toggle"),f(dt,"Toggle"),dt);D("com.qcobjects.tools.essentials",[Is]);cr();var ga=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");dr();ee();bo();ee()});var As=ne(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var ie=T();ie.CONFIG.set("sourceType","module");ie.CONFIG.set("relativeImportPath","js/packages/");ie.CONFIG.set("componentsBasePath","templates/components/");ie.CONFIG.set("delayForReady",1);ie.CONFIG.set("preserveComponentBodyTag",!1);ie.CONFIG.set("useConfigService",!1);ie.CONFIG.set("routingWay","pathname");ie.CONFIG.set("useLocalSDK",!0);ie.CONFIG.set("tplextension","tpl.html");ie.CONFIG.set("asynchronousImportsLoad",!0);ie.CONFIG.set("serviceWorkerURI","/sw.js");ie.CONFIG.set("overrideComponentTag",!0);ie.Component.cached=!0});var Tr=ne((Ga,Ei)=>{"use strict";var Mo=Object.defineProperty,ma=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyNames,_a=Object.prototype.hasOwnProperty,w=l((o,s)=>Mo(o,"name",{value:s,configurable:!0}),"__name"),ya=l((o,s)=>{for(var t in s)Mo(o,t,{get:s[t],enumerable:!0})},"__export"),wa=l((o,s,t,e)=>{if(s&&typeof s=="object"||typeof s=="function")for(let n of ba(s))!_a.call(o,n)&&n!==t&&Mo(o,n,{get:l(()=>s[n],"get"),enumerable:!(e=ma(s,n))||e.enumerable});return o},"__copyProps"),Ca=l(o=>wa(Mo({},"__esModule",{value:!0}),o),"__toCommonJS"),Ps={};ya(Ps,{BasicLayout:l(()=>vi,"BasicLayout"),ButtonField:l(()=>Ws,"ButtonField"),CanvasTool:l(()=>Ci,"CanvasTool"),Contact:l(()=>Rs,"Contact"),CubeSplashScreenComponent:l(()=>ii,"CubeSplashScreenComponent"),DataGridController:l(()=>ui,"DataGridController"),EmailField:l(()=>Js,"EmailField"),Fade:l(()=>xe,"Fade"),FormController:l(()=>hi,"FormController"),FormField:l(()=>cn,"FormField"),FormValidations:l(()=>fi,"FormValidations"),GenericController:l(()=>ci,"GenericController"),GridComponent:l(()=>Xs,"GridComponent"),GridController:l(()=>di,"GridController"),GridItemComponent:l(()=>Ks,"GridItemComponent"),GridView:l(()=>yi,"GridView"),InputField:l(()=>Vs,"InputField"),ListComponent:l(()=>ei,"ListComponent"),ListController:l(()=>li,"ListController"),ListItemComponent:l(()=>Ys,"ListItemComponent"),ModalComponent:l(()=>Nr,"ModalComponent"),ModalController:l(()=>bi,"ModalController"),ModalEnclosureComponent:l(()=>Qs,"ModalEnclosureComponent"),ModalFade:l(()=>Ao,"ModalFade"),ModalMoveDown:l(()=>Sr,"ModalMoveDown"),ModalMoveUp:l(()=>Er,"ModalMoveUp"),Move:l(()=>se,"Move"),MoveXInFromLeft:l(()=>Cr,"MoveXInFromLeft"),MoveXInFromRight:l(()=>wr,"MoveXInFromRight"),MoveYInFromBottom:l(()=>vr,"MoveYInFromBottom"),MoveYInFromTop:l(()=>ks,"MoveYInFromTop"),NotificationComponent:l(()=>ri,"NotificationComponent"),Radius:l(()=>Fs,"Radius"),Resize:l(()=>Or,"Resize"),Rotate:l(()=>qs,"Rotate"),RotateX:l(()=>Ds,"RotateX"),RotateY:l(()=>Ls,"RotateY"),RotateZ:l(()=>js,"RotateZ"),SessionData:l(()=>Oi,"SessionData"),SessionUserToken:l(()=>Po,"SessionUserToken"),ShadowedComponent:l(()=>Us,"ShadowedComponent"),SlideItemComponent:l(()=>ni,"SlideItemComponent"),SlideListComponent:l(()=>ti,"SlideListComponent"),SliderComponent:l(()=>oi,"SliderComponent"),SliderController:l(()=>pi,"SliderController"),SplashScreenComponent:l(()=>oo,"SplashScreenComponent"),SwaggerUIComponent:l(()=>Zs,"SwaggerUIComponent"),SwaggerUIController:l(()=>gi,"SwaggerUIController"),TextField:l(()=>zs,"TextField"),VideoSplashScreenComponent:l(()=>si,"VideoSplashScreenComponent"),WipeDown:l(()=>Bs,"WipeDown"),WipeLeft:l(()=>$s,"WipeLeft"),WipeRight:l(()=>Gs,"WipeRight"),WipeUp:l(()=>Hs,"WipeUp"),default:l(()=>Oa,"default"),i18n_messages:l(()=>yr,"i18n_messages")});Ei.exports=Ca(Ps);var To=T(),_e=T(),pt,yr=(pt=class extends _e.InheritClass{constructor({messages:s=[]}){super({messages:s}),_e.CONFIG.get("use_i18n",!1)&&(_e.CONFIG.set("lang","en"),_e.global.get("i18n")?_e.global.set("i18n",{messages:_e.global.get("i18n").messages.concat(s)}):_e.global.set("i18n",{messages:s}))}_load_i18n_packages_(){return _e.CONFIG.get("i18n_languages",[]).map(s=>{(0,_e.Import)(`org.quickcorp.i18n_messages.${s}`)})}},l(pt,"i18n_messages"),w(pt,"i18n_messages"),pt);(0,_e.Package)("org.qcobjects.i18n_messages",[yr]);new yr({})._load_i18n_packages_();var Ms=T(),ft,Rs=(ft=class extends Ms.VO{},l(ft,"Contact"),w(ft,"Contact"),ft);(0,Ms.Package)("org.qcobjects.models",[Rs]);var G=T(),Ne=T(),qe,xe=(qe=class extends Ne.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){Ne.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;Ne.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){Ne.logger.debug("animation progress: "+i.toString());let c=e+i*a/100;Ne.logger.debug("alpha: "+c.toString()),t.style.opacity=c.toString()}})}},l(qe,"Fade"),w(qe,"Fade"),r(qe,"duration"),qe),Fe,se=(Fe=class extends Ne.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){Ne.logger.debug("animation progress: "+g.toString());let p=n+g*d/100,h=e+g*c/100;Ne.logger.debug("x: "+h.toString()+" y:"+p.toString()),t.style.transform="translate("+h+"px,"+p+"px)"}})}},l(Fe,"Move"),w(Fe,"Move"),r(Fe,"duration"),Fe);(0,Ne.Package)("org.qcobjects.effects.base",[xe,se]);var P=T(),ht,wr=(ht=class extends se{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){se.apply.call(this,t,t.width,0,0,0)}},l(ht,"MoveXInFromRight"),w(ht,"MoveXInFromRight"),ht),gt,Cr=(gt=class extends se{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){se.apply.call(this,t,-t.width,0,0,0)}},l(gt,"MoveXInFromLeft"),w(gt,"MoveXInFromLeft"),gt),mt,vr=(mt=class extends se{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){se.apply.call(this,t,0,t.height,0,0)}},l(mt,"MoveYInFromBottom"),w(mt,"MoveYInFromBottom"),mt),bt,ks=(bt=class extends se{constructor(){super(...arguments);r(this,"duration",1e3)}static apply(t){se.apply.call(this,t,0,-t.height,0,0)}},l(bt,"MoveYInFromTop"),w(bt,"MoveYInFromTop"),bt),$e,Ds=($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),Ge,Ls=(Ge=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(Ge,"RotateY"),w(Ge,"RotateY"),r(Ge,"duration"),Ge),_t,js=(_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(0,0,1,"+c.toString()+"deg)"}})}},l(_t,"RotateZ"),w(_t,"RotateZ"),_t),yt,qs=(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=Math.round(e+i*a/100);P.logger.debug("angle: "+c.toString()),t.style.transform="rotate3d(1,1,1,"+c.toString()+"deg)"}})}},l(yt,"Rotate"),w(yt,"Rotate"),yt),wt,Fs=(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("radius: "+c.toString()),t.style.borderRadius=c.toString()+"px"}})}},l(wt,"Radius"),w(wt,"Radius"),wt),Ct,Or=(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("resize: "+c.toString()),t.style.transformOrigin="center",t.style.transform="scale("+c+","+c+")"}})}},l(Ct,"Resize"),w(Ct,"Resize"),Ct),vt,$s=(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="right",t.style.transform="scaleX("+c+")"}})}},l(vt,"WipeLeft"),w(vt,"WipeLeft"),vt),Ot,Gs=(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="left",t.style.transform="scaleX("+c+")"}})}},l(Ot,"WipeRight"),w(Ot,"WipeRight"),Ot),Et,Hs=(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="bottom",t.style.transform="scaleY("+c+")"}})}},l(Et,"WipeUp"),w(Et,"WipeUp"),Et),St,Bs=(St=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(St,"WipeDown"),w(St,"WipeDown"),St);(0,P.Package)("org.qcobjects.effects.extended",[wr,Cr,vr,ks,Ds,Ls,js,qs,Fs,Or,$s,Gs,Hs,Bs]);var va=T(),Nt,Ao=(Nt=class extends xe{constructor(){super(...arguments);r(this,"duration",500)}},l(Nt,"ModalFade"),w(Nt,"ModalFade"),Nt),xt,Er=(xt=class extends se{constructor(){super(...arguments);r(this,"duration",800)}},l(xt,"ModalMoveUp"),w(xt,"ModalMoveUp"),xt),It,Sr=(It=class extends se{constructor(){super(...arguments);r(this,"duration",300)}},l(It,"ModalMoveDown"),w(It,"ModalMoveDown"),It);(0,va.Package)("org.qcobjects.modal.effects",[Ao,Sr,Er]);var Se=T(),Tt,cn=(Tt=class extends Se.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",()=>{Se.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("blur",()=>{Se.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("focus",()=>{Se.logger.debug("Executing change event binding"),this.executeBindings()}),n.addEventListener("keydown",()=>{Se.logger.debug("Executing keydown event binding"),this.executeBindings()})}}executeBinding(t){let e=t.getAttribute("data-field");Se.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");Se.logger.debug("Binding "+a+" for "+this.name),this.data[a]=n.value}}done(t){let e=super.done(t);return this.executeBindings(),this.createBindingEvents(),Se.logger.debug("Field loaded: "+this.fieldType+"[name="+this.name+"]"),e}},l(Tt,"FormField"),w(Tt,"FormField"),Tt);(0,Se.Package)("org.qcobjects.base.components",[cn]);var At,Us=(At=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(At,"ShadowedComponent"),w(At,"ShadowedComponent"),At),Pt,Ws=(Pt=class extends cn{constructor(s){s.fieldType="button",super(s)}},l(Pt,"ButtonField"),w(Pt,"ButtonField"),Pt),Mt,Vs=(Mt=class extends cn{constructor(s){s.fieldType="input",super(s)}},l(Mt,"InputField"),w(Mt,"InputField"),Mt),Rt,zs=(Rt=class extends cn{constructor(s){s.fieldType="textarea",super(s)}},l(Rt,"TextField"),w(Rt,"TextField"),Rt),kt,Js=(kt=class extends cn{constructor(s){s.fieldType="input",super(s)}},l(kt,"EmailField"),w(kt,"EmailField"),kt),Dt,Qs=(Dt=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(Dt,"ModalEnclosureComponent"),w(Dt,"ModalEnclosureComponent"),Dt),Lt,Nr=(Lt=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 Ao().apply(e,0,1))),(0,G.Tag)("#modalInstance_"+t+".modal .modal-content").map(e=>Sr.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 Ao({duration:3e3}).apply(e,1,0))),(0,G.Tag)("#modalInstance_"+t+".modal .modal-content").map(function(e){return Er.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(Lt,"ModalComponent"),w(Lt,"ModalComponent"),Lt),jt,Zs=(jt=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(jt,"SwaggerUIComponent"),w(jt,"SwaggerUIComponent"),jt);(0,G.Package)("org.qcobjects.form.components",[Us,Ws,Vs,zs,Js,Qs,Nr,Zs]);var xr=T(),qt,Ks=(qt=class extends xr.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(qt,"GridItemComponent"),w(qt,"GridItemComponent"),qt),Ft,Xs=(Ft=class extends xr.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(Ft,"GridComponent"),w(Ft,"GridComponent"),Ft);(0,xr.Package)("org.qcobjects.components.grid",[Xs,Ks]);var Ir=T(),$t,Ys=($t=class extends Ir.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),Gt,ei=(Gt=class extends Ir.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(Gt,"ListComponent"),w(Gt,"ListComponent"),Gt);(0,Ir.Package)("org.qcobjects.components.list",[Ys,ei]);var Ro=T(),Ht,ti=(Ht=class extends Ro.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(Ht,"SlideListComponent"),w(Ht,"SlideListComponent"),Ht),Bt,ni=(Bt=class extends Ro.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(Bt,"SlideItemComponent"),w(Bt,"SlideItemComponent"),Bt),Ut,oi=(Ut=class extends Ro.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(Ut,"SliderComponent"),w(Ut,"SliderComponent"),Ut);(0,Ro.Package)("org.qcobjects.components.slider",[ti,ni,oi]);var z=T(),ue,ri=(ue=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)(se,{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)(se,{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 xe({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)(ue,{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)(ue,{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)(ue,{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)(ue,{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(ue,"_NotificationComponent"),w(ue,"NotificationComponent"),ue);(0,z.Package)("org.quickcorp.components.notifications",[ri]);var re=T(),Wt,oo=(Wt=class extends re.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===""||re.CONFIG.get("routingWay","pathname")==="hash"&&re.CONFIG.get("start_url","/")===location.hash||re.CONFIG.get("routingWay","pathname")==="pathname"&&re.CONFIG.get("start_url","/")===location.pathname||re.CONFIG.get("routingWay","pathname")==="search"&&re.CONFIG.get("start_url","/")===location.search,a=e&&n;a?(t.basePath=re.CONFIG.get("splashscreenBasePath",re.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 re.global.componentsStack<"u"&&re.global.componentsStack.filter(p=>p.body.hasAttribute("splashscreen")).map(p=>{re.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 Or().apply(C,1,0))),new xe().apply(g,1,0))},c-1e3),setTimeout(function(){new xe().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(Wt,"SplashScreenComponent"),w(Wt,"SplashScreenComponent"),Wt);(0,re.Package)("org.qcobjects.components.base",[oo]);var Vt,si=(Vt=class extends oo{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(Vt,"VideoSplashScreenComponent"),w(Vt,"VideoSplashScreenComponent"),Vt),zt,ii=(zt=class extends oo{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(zt,"CubeSplashScreenComponent"),w(zt,"CubeSplashScreenComponent"),zt);(0,re.Package)("org.qcobjects.components.splashscreen",[oo,si,ii]);var ai=T(),Jt,ci=(Jt=class extends ai.Controller{},l(Jt,"GenericController"),w(Jt,"GenericController"),Jt);(0,ai.Package)("org.qcobjects.controllers",[ci]);var A=T(),Qt,li=(Qt=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(Qt,"ListController"),w(Qt,"ListController"),Qt);(0,A.Package)("org.qcobjects.controllers.list",[li]);var N=T(),Zt,di=(Zt=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(Zt,"GridController"),w(Zt,"GridController"),Zt),Kt,ui=(Kt=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(Kt,"DataGridController"),w(Kt,"DataGridController"),Kt);(0,N.Package)("org.qcobjects.controllers.grid",[di,ui]);var je=T(),Xt,pi=(Xt=class extends je.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,je.New)((0,je.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){je.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,je.New)((0,je.ClassFactory)("Fade"),{}).apply(e[this.slideIndex],0,1)}catch(a){je.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(Xt,"SliderController"),w(Xt,"SliderController"),Xt);(0,je.Package)("org.qcobjects.controllers.slider",[pi]);var J=T(),Yt,fi=(Yt=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(Yt,"FormValidations"),w(Yt,"FormValidations"),Yt),en,hi=(en=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(cn)}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)(ni,{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(oo,"FormController"),b(oo,"FormController"),oo);(0,Me.Package)("org.qcobjects.controllers.form",[cc,ac]);var ke=de(ue()),ro,lc=(ro=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(ro,"SwaggerUIController"),b(ro,"SwaggerUIController"),ro);(0,ke.Package)("org.qcobjects.controllers.swagger",[lc]);var dc=de(ue()),so,uc=(so=class extends dc.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(so,"ModalController"),b(so,"ModalController"),so);(0,dc.Package)("org.qcobjects.modal.controllers",[uc]);var pc=de(ue()),io,fc=(io=class extends pc.View{},h(io,"GridView"),b(io,"GridView"),io);(0,pc.Package)("org.qcobjects.views",[fc]);var gc=de(ue()),ao,hc=(ao=class extends gc.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(ao,"CanvasTool"),b(ao,"CanvasTool"),ao);(0,gc.Package)("org.qcobjects.tools.canvas",[hc]);var se=de(ue()),co,_c=(co=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=>Ot.apply(t,0,1)),(0,se.Tag)("component>footer").map(t=>Ot.apply(t,0,1)),(0,se.Tag)("component>header").map(t=>Ot.apply(t,0,1)),(0,se.Tag)("nav").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),Ys.apply(t)}),(0,se.Tag)("component>article").map(t=>{t.style.display="block",t.style.height=t.offsetParent?.scrollHeight.toString()||t.clientHeight.toString(),Xs.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(),zs.apply(t)})},300)}},h(co,"BasicLayout"),b(co,"BasicLayout"),co);(0,se.Package)("org.qcobjects.tools.layouts",[_c]);var je=de(ue()),ye,xr=(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",[xr]);var ks=de(ue()),lo,mc=(lo=class extends ks.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 xr>"u")throw new Error('You need to import SessionUserToken first: Import ("org.qcobjects.cloud.auth.session.usertoken")');return`session_${btoa(xr.getGlobalUserToken(t))}`}save(...t){let n=(0,ks._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(lo,"SessionData"),b(lo,"SessionData"),lo);(0,ks.Package)("org.qcobjects.cloud.auth.session.data",[mc]);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=Fr.GlobalSettings.__start__.bind(a);a._sdk_=Promise.resolve().then(()=>{Fr.CONFIG.set("useSDK",!0),t()})}},"__qcobjects_sdk__"),"__qcobjects_sdk__")(Fr._top);var Hl=Fr._top});var yc=$e(Ut=>{"use strict";var Ul=Ut&&Ut.__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]})),Wl=Ut&&Ut.__setModuleDefault||(Object.create?(function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}):function(e,a){e.default=a}),Ql=Ut&&Ut.__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"&&Ul(t,a,n[o]);return Wl(t,a),t}})();Object.defineProperty(Ut,"__esModule",{value:!0});var Qe=Ql(Xe()),Kl=si(),Po;(0,Qe.Package)("com.qcobjects.installer",[(Po=class extends Qe.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"),Kl.NotificationComponent.success(`TWA in ${n} Mode`)}),Qe.default.set("installer",this)}beforeinstallprompt(a){return Qe.logger.debug("registering installer event"),a.preventDefault(),Qe.default.set("promptEvent",a),this.root.classList.add("available"),!1}installed(){Qe.logger.debug("app is already installed"),Qe.default.set("promptEvent",null),this.root.classList.remove("available")}install(){let a=this.root;Qe.logger.debug("installer actioned");let t=Qe.default.get("promptEvent",null);t?(Qe.logger.debug("prompt event"),t.prompt(),t.userChoice.then(function(n){n.outcome==="accepted"?a.classList.remove("available"):Qe.logger.debug("User has chosen not to install the PWA"),t=null}).catch(function(n){t=null,a.classList.remove("available"),Qe.logger.warn(`Error during install: ${n.toString()}`)})):Qe.logger.debug("It is not possible to get the prompt event for install ")}},h(Po,"Installer"),Po)])});var wc=$e(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var Jr=Xe(),Io,Ao,To;(0,Jr.Package)("org.quickcorp.custom.effects",[(Io=class extends Jr.TransitionEffect{constructor(){super(...arguments),this.duration=780,this.defaultParams={alphaFrom:0,alphaTo:1},this.effects=["Fade","MoveYInFromBottom"],this.fitToHeight=!0}},h(Io,"MainTransitionEffect"),Io),(Ao=class extends Jr.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromLeft"],this.fitToWidth=!0}},h(Ao,"SlideLeftTransitionEffect"),Ao),(To=class extends Jr.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromRight"],this.fitToWidth=!0}},h(To,"SlideRightTransitionEffect"),To)])});var Ec=$e(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var vc=Xe(),jo;(0,vc.Package)("org.quickcorp.custom.models",[(jo=class extends vc.VO{constructor(){super(...arguments),this.first_name="",this.last_name="",this.address="",this.postalCode="",this.city="",this.country="",this.email="",this.phone=""}},h(jo,"ContactVO"),jo)])});var Nc=$e(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var ht=Xe(),di=class di extends ht.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)(Nr,{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(en,"FormController"),w(en,"FormController"),en);(0,J.Package)("org.qcobjects.controllers.form",[hi,fi]);var te=T(),tn,gi=(tn=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(tn,"SwaggerUIController"),w(tn,"SwaggerUIController"),tn);(0,te.Package)("org.qcobjects.controllers.swagger",[gi]);var mi=T(),nn,bi=(nn=class extends mi.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(nn,"ModalController"),w(nn,"ModalController"),nn);(0,mi.Package)("org.qcobjects.modal.controllers",[bi]);var _i=T(),on,yi=(on=class extends _i.View{},l(on,"GridView"),w(on,"GridView"),on);(0,_i.Package)("org.qcobjects.views",[yi]);var wi=T(),rn,Ci=(rn=class extends wi.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(rn,"CanvasTool"),w(rn,"CanvasTool"),rn);(0,wi.Package)("org.qcobjects.tools.canvas",[Ci]);var L=T(),sn,vi=(sn=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=>xe.apply(t,0,1)),(0,L.Tag)("component>footer").map(t=>xe.apply(t,0,1)),(0,L.Tag)("component>header").map(t=>xe.apply(t,0,1)),(0,L.Tag)("nav").map(t=>{t.style.display="block",t.style.width=t.offsetParent?.scrollWidth.toString()||t.clientWidth.toString(),Cr.apply(t)}),(0,L.Tag)("component>article").map(t=>{t.style.display="block",t.style.height=t.offsetParent?.scrollHeight.toString()||t.clientHeight.toString(),vr.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(),wr.apply(t)})},300)}},l(sn,"BasicLayout"),w(sn,"BasicLayout"),sn);(0,L.Package)("org.qcobjects.tools.layouts",[vi]);var X=T(),B,Po=(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",[Po]);var _r=T(),an,Oi=(an=class extends _r.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 Po>"u")throw new Error('You need to import SessionUserToken first: Import ("org.qcobjects.cloud.auth.session.usertoken")');return`session_${btoa(Po.getGlobalUserToken(t))}`}save(...t){let e=(0,_r._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(an,"SessionData"),w(an,"SessionData"),an);(0,_r.Package)("org.qcobjects.cloud.auth.session.data",[Oi]);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=To.GlobalSettings.__start__.bind(s);s._sdk_=Promise.resolve().then(()=>{To.CONFIG.set("useSDK",!0),t()})}}),"__qcobjects_sdk__"),"__qcobjects_sdk__")(To._top);var Oa=To._top});var Si=ne(He=>{"use strict";var Ea=He&&He.__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]})),Sa=He&&He.__setModuleDefault||(Object.create?(function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}):function(o,s){o.default=s}),Na=He&&He.__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"&&Ea(t,s,e[n]);return Sa(t,s),t}})();Object.defineProperty(He,"__esModule",{value:!0});var ae=Na(T()),xa=Tr(),Cn;(0,ae.Package)("com.qcobjects.installer",[(Cn=class extends ae.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"),xa.NotificationComponent.success(`TWA in ${e} Mode`)}),ae.default.set("installer",this)}beforeinstallprompt(s){return ae.logger.debug("registering installer event"),s.preventDefault(),ae.default.set("promptEvent",s),this.root.classList.add("available"),!1}installed(){ae.logger.debug("app is already installed"),ae.default.set("promptEvent",null),this.root.classList.remove("available")}install(){let s=this.root;ae.logger.debug("installer actioned");let t=ae.default.get("promptEvent",null);t?(ae.logger.debug("prompt event"),t.prompt(),t.userChoice.then(function(e){e.outcome==="accepted"?s.classList.remove("available"):ae.logger.debug("User has chosen not to install the PWA"),t=null}).catch(function(e){t=null,s.classList.remove("available"),ae.logger.warn(`Error during install: ${e.toString()}`)})):ae.logger.debug("It is not possible to get the prompt event for install ")}},l(Cn,"Installer"),Cn)])});var xi=ne(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var ko=T(),vn,On,En;(0,ko.Package)("org.quickcorp.custom.effects",[(vn=class extends ko.TransitionEffect{constructor(){super(...arguments),this.duration=780,this.defaultParams={alphaFrom:0,alphaTo:1},this.effects=["Fade","MoveYInFromBottom"],this.fitToHeight=!0}},l(vn,"MainTransitionEffect"),vn),(On=class extends ko.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromLeft"],this.fitToWidth=!0}},l(On,"SlideLeftTransitionEffect"),On),(En=class extends ko.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromRight"],this.fitToWidth=!0}},l(En,"SlideRightTransitionEffect"),En)])});var Ai=ne(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var Ii=T(),Sn;(0,Ii.Package)("org.quickcorp.custom.models",[(Sn=class extends Ii.VO{constructor(){super(...arguments),this.first_name="",this.last_name="",this.address="",this.postalCode="",this.city="",this.country="",this.email="",this.phone=""}},l(Sn,"ContactVO"),Sn)])});var Mi=ne(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var ye=T(),kr=class kr extends ye.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(kr,"GitHubGrid");var Ar=kr,Dr=class Dr extends ye.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(Dr,"DeployGrid");var Pr=Dr,Lr=class Lr extends ye.Component{constructor(s){s.body?.setAttribute("serviceClass","AdminCheckService"),s.body?.setAttribute("response-to","data"),super(s),this.shadowed=!0,this.tplsource="inline"}};l(Lr,"AdminCheckComponent");var Do=Lr,jr=class jr extends Do{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?ye.logger.debug("Admin module is present"):(ye.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){ye.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(jr,"AdminSidebarOption");var Mr=jr,qr=class qr extends Do{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?ye.logger.debug("Admin module is present"):(ye.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){ye.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(qr,"AdminButton");var Rr=qr;(0,ye.Package)("org.quickcorp.custom.components",[Rr,Mr,Pr,Ar])});var Ri=ne(Ue=>{"use strict";var Ia=Ue&&Ue.__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]})),Ta=Ue&&Ue.__setModuleDefault||(Object.create?(function(o,s){Object.defineProperty(o,"default",{enumerable:!0,value:s})}):function(o,s){o.default=s}),Aa=Ue&&Ue.__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"&&Ia(t,s,e[n]);return Ta(t,s),t}})();Object.defineProperty(Ue,"__esModule",{value:!0});var ce=Aa(T()),Pa=Tr(),Be,Nn,xn;(0,ce.Package)("org.quickcorp.custom.controllers",[(Be=class extends ce.Controller{constructor(s){ce.logger.debug("Initializing MainController..."),super(s)}done(...s){let t=super.done(s);if(!Be.loaded){let e=(0,ce._DOMCreateElement)("style");e.innerHTML=`
|
|
830
810
|
@import url(css/body-layout.css);
|
|
831
|
-
`,document.body.append(
|
|
811
|
+
`,document.body.append(e),ce.logger.debug("MainController loaded"),Be.loaded=!0}return t}},l(Be,"MainController"),Be),(Nn=class extends ce.Controller{constructor(s){ce.logger.debug("Initializing SideNavController..."),super(s),this.component=s.component,this.component.shadowed?this.componentRoot=this.component.shadowRoot:this.componentRoot=this.component.body,ce.default.sideNavController=this,this.effect=new Pa.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(Nn,"SideNavController"),Nn),(xn=class extends ce.Controller{constructor(s){super(s),ce.logger.debug("Header controller initialized")}loadInstallerButton(){(this.component.shadowed!=null?this.component.shadowRoot:this.component.body).subelements("#installerbutton").map(t=>(this.installer=(0,ce.New)((0,ce.ClassFactory)("Installer"),t),t))}done(...s){let t=super.done(s);return this.loadInstallerButton(),t}},l(xn,"HeaderController"),xn)])});var Li=ne(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var ki=T(),In;(0,ki.Package)("org.quickcorp.custom.views",[(In=class extends ki.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(In,"CardView"),In)])});var qi=ne(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});var Tn=T(),An,Pn,Mn,Rn;(0,Tn.Package)("com.qcobjects.services.github",[(An=class extends Tn.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(An,"GitHubService"),An),(Pn=class extends Tn.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}){Tn.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(Pn,"GitHubTagService"),Pn),(Mn=class extends Tn.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(Mn,"QCObjectsVersionService"),Mn),(Rn=class extends Tn.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(Rn,"QCObjectsStarsForksService"),Rn)])});var $i=ne(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});var Lo=T(),kn;(0,Lo.Package)("com.qcobjects.services.newapp",[(kn=class extends Lo.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,Lo._DataStringify)({hasAdmin:t(s.service.template)})}fail(s){s.service.template=(0,Lo._DataStringify)({hasAdmin:!1})}},l(kn,"AdminCheckService"),kn)])});var Hi=ne(Gi=>{"use script";"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Si();xi();Ai();Mi();Ri();Li();qi();$i()});var Wi=ne(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var Bi=T();(0,Bi.RegisterWidgets)("layout-basic","splash-screen","github-grid","octocat-icon","lib-list");(0,Bi.RegisterWidgets)("gitpod-button","netlify-button","aws-button","github-button","codespaces-button","deploy-grid")});var Ma=ne(Vi=>{Object.defineProperty(Vi,"__esModule",{value:!0});As();Hi();Wi()});return Ma();})();
|
|
832
812
|
//# sourceMappingURL=init.js.map
|