qcobjectsnewapp 2.4.40-ts → 2.5.6-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/.github/workflows/npmpublish.yml +49 -0
- package/.github/workflows/static.yml +7 -13
- package/CHANGELOG.md +48 -0
- package/LICENSE.txt +21 -56
- package/README.md +6 -1
- package/VERSION +1 -1
- package/package.json +20 -34
- package/public/404.html +51 -0
- package/public/_redirects +3 -0
- package/public/css/body-layout.css +2 -0
- package/public/css/body-layout.css.map +7 -0
- package/public/css/components/button.css +17 -0
- package/public/css/components/button.css.map +7 -0
- package/public/css/components/card.css +17 -0
- package/public/css/components/card.css.map +7 -0
- package/public/css/components/hero/hero-call-to-action.css +124 -0
- package/public/css/components/hero/hero-overlay.css +122 -0
- package/public/css/components/hero/hero-two-column-form.css +167 -0
- package/public/css/components/modal.css +17 -0
- package/public/css/components/modal.css.map +7 -0
- package/public/css/desktop/components/deploy-grid.css +3 -0
- package/public/css/desktop/components/github-grid.css +7 -0
- package/public/css/desktop/container.css +17 -0
- package/public/css/desktop/container.css.map +7 -0
- package/public/css/desktop/content.css +17 -0
- package/public/css/desktop/content.css.map +7 -0
- package/public/css/desktop/footer.css +1 -0
- package/public/css/desktop/footer.css.map +7 -0
- package/public/css/desktop/index.css +17 -0
- package/public/css/desktop/index.css.map +7 -0
- package/public/css/desktop/navbar.css +17 -0
- package/public/css/desktop/navbar.css.map +7 -0
- package/public/css/desktop/sidebar.css +1 -0
- package/public/css/desktop/sidebar.css.map +7 -0
- package/public/css/index.css +17 -0
- package/public/css/index.css.map +7 -0
- package/public/css/mobile/components/deploy-grid.css +8 -0
- package/public/css/mobile/components/github-grid.css +7 -0
- package/public/css/mobile/content.css +17 -0
- package/public/css/mobile/content.css.map +7 -0
- package/public/css/mobile/footer.css +1 -0
- package/public/css/mobile/footer.css.map +7 -0
- package/public/css/mobile/index.css +17 -0
- package/public/css/mobile/index.css.map +7 -0
- package/public/css/mobile/navbar.css +17 -0
- package/public/css/mobile/navbar.css.map +7 -0
- package/public/css/mobile/sidebar.css +1 -0
- package/public/css/mobile/sidebar.css.map +7 -0
- package/public/css/modern-base.css +17 -0
- package/public/css/modern-base.css.map +7 -0
- package/public/css/theme/basic/style.css +65 -0
- package/public/css/theme/cyan/style.css +66 -0
- package/public/css/theme/redlight/style.css +63 -0
- package/public/css/theme/xtra/style.css +1652 -0
- package/public/favicon.ico +0 -0
- package/public/humans.txt +14 -0
- package/public/img/Q_web copy.png +0 -0
- package/public/img/Q_web-white.png +0 -0
- package/public/img/Q_web.png +0 -0
- package/public/img/Q_web.svg +37 -0
- package/public/img/awsmplogo3.svg +106 -0
- package/public/img/icons/icon-128x128.png +0 -0
- package/public/img/icons/icon-144x144.png +0 -0
- package/public/img/icons/icon-152x152.png +0 -0
- package/public/img/icons/icon-192x192.png +0 -0
- package/public/img/icons/icon-384x384.png +0 -0
- package/public/img/icons/icon-512x512.png +0 -0
- package/public/img/icons/icon-72x72.png +0 -0
- package/public/img/icons/icon-96x96.png +0 -0
- package/public/img/logo-qcobjects-back-bg-white-icon.svg +64 -0
- package/public/img/logo-qcobjects-version.svg +4 -0
- package/public/img/logo-qcobjects-white-bg-back-icon.svg +73 -0
- package/public/img/logo-qcobjects-white-black-bg.svg +117 -0
- package/public/img/logo-qcobjects-white-powered-quickcorp.svg +176 -0
- package/public/img/logo-qcobjects-white.svg +1 -0
- package/public/img/logo.png +0 -0
- package/public/img/netlify-button.svg +1 -0
- package/public/img/octocat.svg +5 -0
- package/public/img/placeholder.svg +26 -0
- package/public/img/screenshots/screenshot1.png +0 -0
- package/public/img/screenshots/screenshot1.webp +0 -0
- package/public/img/screenshots/screenshot2.png +0 -0
- package/public/img/screenshots/screenshot2.webp +0 -0
- package/public/index-fallback.html +47 -0
- package/public/index.html +51 -0
- package/public/js/config.js +22 -0
- package/public/js/config.js.map +7 -0
- package/public/js/customWidgets.js +22 -0
- package/public/js/customWidgets.js.map +7 -0
- package/public/js/init.js +832 -0
- package/public/js/init.js.map +7 -0
- package/public/js/packages/com.qcobjects.installer.js +719 -0
- package/public/js/packages/com.qcobjects.installer.js.map +7 -0
- package/public/js/packages/com.qcobjects.services.github.js +22 -0
- package/public/js/packages/com.qcobjects.services.github.js.map +7 -0
- package/public/js/packages/com.qcobjects.services.newapp.js +22 -0
- package/public/js/packages/com.qcobjects.services.newapp.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.components.js +133 -0
- package/public/js/packages/org.quickcorp.custom.components.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.controllers.js +721 -0
- package/public/js/packages/org.quickcorp.custom.controllers.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.effects.js +22 -0
- package/public/js/packages/org.quickcorp.custom.effects.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.js +832 -0
- package/public/js/packages/org.quickcorp.custom.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.models.js +22 -0
- package/public/js/packages/org.quickcorp.custom.models.js.map +7 -0
- package/public/js/packages/org.quickcorp.custom.views.js +22 -0
- package/public/js/packages/org.quickcorp.custom.views.js.map +7 -0
- package/public/manifest.json +100 -0
- package/public/robots.txt +5 -0
- package/public/sw.js +256 -0
- package/public/templates/components/article1.tpl.html +6 -0
- package/public/templates/components/article2.tpl.html +6 -0
- package/public/templates/components/aws-button.tpl.html +18 -0
- package/public/templates/components/blank.tpl.html +0 -0
- package/public/templates/components/card.tpl.html +8 -0
- package/public/templates/components/codespaces-button.tpl.html +27 -0
- package/public/templates/components/contentblock.tpl.html +6 -0
- package/public/templates/components/footer.tpl.html +13 -0
- package/public/templates/components/footer2.tpl.html +1 -0
- package/public/templates/components/github-button.tpl.html +34 -0
- package/public/templates/components/github-card.tpl.html +7 -0
- package/public/templates/components/gitpod-button.tpl.html +56 -0
- package/public/templates/components/header.tpl.html +20 -0
- package/public/templates/components/hero/hero-call-to-action.tpl.html +11 -0
- package/public/templates/components/hero/hero-overlay.tpl.html +11 -0
- package/public/templates/components/hero/hero-two-column-form.tpl.html +21 -0
- package/public/templates/components/install-button.tpl.html +30 -0
- package/public/templates/components/layout-basic.tpl.html +80 -0
- package/public/templates/components/loading.tpl.html +12 -0
- package/public/templates/components/loadingfooter.tpl.html +1 -0
- package/public/templates/components/login-button.tpl.html +101 -0
- package/public/templates/components/login2.tpl.html +3 -0
- package/public/templates/components/loginform.tpl.html +7 -0
- package/public/templates/components/modal.tpl.html +13 -0
- package/public/templates/components/nav.tpl.html +31 -0
- package/public/templates/components/netlify-button.tpl.html +19 -0
- package/public/templates/components/octocat-icon.tpl.html +13 -0
- package/public/templates/components/pages/about-of.tpl.html +21 -0
- package/public/templates/components/pages/author.tpl.html +23 -0
- package/public/templates/components/pages/page1.tpl.html +2 -0
- package/public/templates/components/pages/page2.tpl.html +1 -0
- package/public/templates/components/pages/page3.tpl.html +1 -0
- package/public/templates/components/pages/qcobjects-forks-stars.tpl.html +5 -0
- package/public/templates/components/product.tpl.html +9 -0
- package/public/templates/components/profile.tpl.html +1 -0
- package/public/templates/components/section1.tpl.html +3 -0
- package/public/templates/components/section2.tpl.html +3 -0
- package/public/templates/components/shadowed-card.tpl.html +26 -0
- package/public/templates/components/signin-button.tpl.html +107 -0
- package/public/templates/components/signup-form.tpl.html +145 -0
- package/public/templates/components/signup.tpl.html +11 -0
- package/public/templates/components/signupbuttons.tpl.html +20 -0
- package/public/templates/components/signupform.tpl.html +4 -0
- package/public/templates/components/signuppage.tpl.html +12 -0
- package/public/templates/components/signupsuccessful.tpl.html +13 -0
- package/public/templates/components/signupsuccessfulfooter.tpl.html +3 -0
- package/public/templates/components/splashscreen.tpl.html +128 -0
- package/public/templates/components/topmenu.tpl.html +8 -0
- package/spec/testsSpec.js +19 -8
- package/src/css/components/button.css +2 -11
- package/src/css/components/card.css +2 -11
- package/src/css/components/hero/hero-call-to-action.css +2 -11
- package/src/css/components/hero/hero-overlay.css +2 -11
- package/src/css/components/hero/hero-two-column-form.css +2 -11
- package/src/css/components/modal.css +2 -11
- package/src/css/desktop/container.css +2 -11
- package/src/css/desktop/content.css +2 -11
- package/src/css/desktop/index.css +2 -11
- package/src/css/desktop/navbar.css +2 -11
- package/src/css/index.css +2 -11
- package/src/css/mobile/content.css +2 -11
- package/src/css/mobile/index.css +2 -11
- package/src/css/mobile/navbar.css +2 -11
- package/src/css/modern-base.css +2 -11
- package/src/css/theme/basic/style.css +2 -11
- package/src/css/theme/cyan/style.css +2 -11
- package/src/css/theme/redlight/style.css +2 -11
- package/src/js/init.d.ts +3 -12
- package/src/js/init.ts +3 -12
- package/src/sw.js +2 -11
- package/tsconfig.d.json +8 -2
- package/tsconfig.json +21 -5
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -6
- package/.github/workflows/npmpublish-beta.yml +0 -38
- package/.github/workflows/npmpublish-lts.yml +0 -38
- package/.github/workflows/npmpublish-main.yml +0 -38
|
@@ -0,0 +1,832 @@
|
|
|
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.
|
|
2
|
+
Not found in:
|
|
3
|
+
${Object.keys(Ie).join(`
|
|
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 _=`
|
|
5
|
+
/* CSS Document for Mobile Imports */
|
|
6
|
+
@import url("${l}") (orientation:portrait);
|
|
7
|
+
@import url("${l}") (max-width:460px);
|
|
8
|
+
@import url("${l}") (aspect-ratio: 9/16);
|
|
9
|
+
@import url("${l}") (aspect-ratio: 10/16);
|
|
10
|
+
@import url("${l}") (aspect-ratio: 5/8);
|
|
11
|
+
@import url("${l}") (aspect-ratio: 3/4);
|
|
12
|
+
@import url("${l}") (aspect-ratio: 2/3);
|
|
13
|
+
`,f={landscape:`
|
|
14
|
+
@import url("${l}") (orientation:landscape) and (min-width:460px);
|
|
15
|
+
@import url("${l}") (aspect-ratio: 16/9) and (min-width:460px);
|
|
16
|
+
@import url("${l}") (aspect-ratio: 16/10) and (min-width:460px);
|
|
17
|
+
@import url("${l}") (aspect-ratio: 8/5) and (min-width:460px);
|
|
18
|
+
@import url("${l}") (aspect-ratio: 4/3) and (min-width:460px);
|
|
19
|
+
@import url("${l}") (aspect-ratio: 3/2) and (min-width:460px);
|
|
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",`
|
|
42
|
+
<!-- The Modal -->
|
|
43
|
+
<style>
|
|
44
|
+
@import url('https://sdk.qcobjects.dev/css/modal.css');
|
|
45
|
+
</style>
|
|
46
|
+
<div id="modalInstance_{{modalId}}" class="modal">
|
|
47
|
+
|
|
48
|
+
<!-- Modal content -->
|
|
49
|
+
<div class="modal-content">
|
|
50
|
+
<span class="close">×</span>
|
|
51
|
+
{{content}}
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
`);r(this,"data",{})}},h(Fn,"ModalEnclosureComponent"),b(Fn,"ModalEnclosureComponent"),Fn),$n,ni=($n=class extends he.Component{constructor(t){t.basePath=he.CONFIG.get("modalBasePath",he.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 n=(0,he.New)((0,he.ClassFactory)(this.modalEnclosureComponentClass),{name:this.name,basePath:this.basePath,data:this.data});this.subcomponents.push(n),this.submodal=n,n.tplsource==="none"?this.body.innerHTML=n.parsedAssignmentText:this.body.append(n.body)}modal(){let t=this.data.modalId;(0,he.Tag)("#modalInstance_"+t+".modal").map(n=>(n.style.display="block",new $r().apply(n,0,1))),(0,he.Tag)("#modalInstance_"+t+".modal .modal-content").map(n=>ti.apply(n,0,-document.body.clientHeight,0,0)),(0,he.Tag)("#modalInstance_"+t+".modal .modal-content .close").map(n=>n.addEventListener("click",()=>{this.close()},!1)),this.closeOnClickOutside&&window.addEventListener("click",()=>{this.close()},!1)}close(){let t=this.data.modalId;(0,he.Tag)("#modalInstance_"+t+".modal").map(n=>(n.style.display="block",new $r({duration:3e3}).apply(n,1,0))),(0,he.Tag)("#modalInstance_"+t+".modal .modal-content").map(function(n){return ei.apply(n,0,0,0,-document.body.clientHeight)}),setTimeout(function(){(0,he.Tag)("#modalInstance_"+t+".modal").map(n=>(n.style.display="none",!0))},900)}rebuild(){let t=super.rebuild();return this.templateURI=(0,he.ComponentURI)({COMPONENTS_BASE_PATH:he.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:"modal",TPLEXTENSION:he.CONFIG.get("tplextension",""),TPL_SOURCE:"default"}),t}},h($n,"ModalComponent"),b($n,"ModalComponent"),$n),xn,Ua=(xn=class extends he.Component{constructor(){super(...arguments);r(this,"cached",!1);r(this,"basePath",he.CONFIG.get("remoteSDKPath",""));r(this,"tplextension","tpl.html");r(this,"name","swagger-ui")}},h(xn,"SwaggerUIComponent"),b(xn,"SwaggerUIComponent"),xn);(0,he.Package)("org.qcobjects.form.components",[Fa,$a,xa,Ga,Ba,Ha,ni,Ua]);var oi=de(ue()),Gn,Wa=(Gn=class extends oi.Component{constructor(){super(...arguments);r(this,"name","grid-item");r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
56
|
+
<img src="{{image}}" />
|
|
57
|
+
<p>{{description}}</p>
|
|
58
|
+
`);r(this,"cached",!1)}},h(Gn,"GridItemComponent"),b(Gn,"GridItemComponent"),Gn),Bn,Qa=(Bn=class extends oi.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 n=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",n)}},h(Bn,"GridComponent"),b(Bn,"GridComponent"),Bn);(0,oi.Package)("org.qcobjects.components.grid",[Qa,Wa]);var ri=de(ue()),Hn,Ka=(Hn=class extends ri.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)}},h(Hn,"ListItemComponent"),b(Hn,"ListItemComponent"),Hn),Un,Va=(Un=class extends ri.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")}},h(Un,"ListComponent"),b(Un,"ListComponent"),Un);(0,ri.Package)("org.qcobjects.components.list",[Ka,Va]);var Vr=de(ue()),Wn,Ja=(Wn=class extends Vr.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 n=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",n)}},h(Wn,"SlideListComponent"),b(Wn,"SlideListComponent"),Wn),Qn,za=(Qn=class extends Vr.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
|
+
<div class="qcoSlides" style="display:none">
|
|
60
|
+
<div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
|
|
61
|
+
<img src="{{image}}" alt="{{title}}"/>
|
|
62
|
+
<div class="qco-slider__text">
|
|
63
|
+
<p>{{label}} <a href="{{link}}">{{category}}</a></p>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
`,this.tplsource="inline"}},h(Qn,"SlideItemComponent"),b(Qn,"SlideItemComponent"),Qn),Kn,Ya=(Kn=class extends Vr.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
|
+
<style>
|
|
68
|
+
/* Slideshow container */
|
|
69
|
+
|
|
70
|
+
:host a:hover,
|
|
71
|
+
:host a:active,
|
|
72
|
+
:host a:visited {
|
|
73
|
+
color: #ffffff;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
{
|
|
77
|
+
color: #ffffff;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host .prev {left:0;}
|
|
81
|
+
.qco-slider__container {
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
position: relative;
|
|
84
|
+
margin: auto;
|
|
85
|
+
height: 300px;
|
|
86
|
+
}
|
|
87
|
+
:host .qco-slider__container .qcoSlides img {
|
|
88
|
+
object-fit: cover;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: 300px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Next & previous buttons */
|
|
94
|
+
:host .prev,
|
|
95
|
+
:host .next {
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
width: auto;
|
|
100
|
+
margin-top: -22px;
|
|
101
|
+
padding: 16px;
|
|
102
|
+
color: white;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
font-size: 18px;
|
|
105
|
+
transition: 0.6s ease;
|
|
106
|
+
border-radius: 0 3px 3px 0;
|
|
107
|
+
background-color: rgba(1, 1, 1, 0.1);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Position the "next button" to the right */
|
|
111
|
+
:host .next {
|
|
112
|
+
right: 0;
|
|
113
|
+
border-radius: 3px 0 0 3px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* On hover, add a black background color with a little bit see-through */
|
|
117
|
+
:host .prev:hover,
|
|
118
|
+
:host .next:hover {
|
|
119
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Caption text */
|
|
123
|
+
:host .qco-slider__text {
|
|
124
|
+
color: #f2f2f2;
|
|
125
|
+
font-size: 15px;
|
|
126
|
+
/* padding: 8px 12px;*/
|
|
127
|
+
position: absolute;
|
|
128
|
+
bottom: 8px;
|
|
129
|
+
width: 100%;
|
|
130
|
+
text-align: center;
|
|
131
|
+
text-shadow: -1px 1px 3px #111111;
|
|
132
|
+
background-color: rgba(1,1,1,0.7);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* Number text (1/3 etc) */
|
|
136
|
+
:host .qco-slider__numbertext {
|
|
137
|
+
color: #f2f2f2;
|
|
138
|
+
text-shadow: 0px 2px 3px #111111;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
padding: 8px 12px;
|
|
141
|
+
position: absolute;
|
|
142
|
+
top: 0;
|
|
143
|
+
padding-top: 0;
|
|
144
|
+
margin-top: 10px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* The dots/bullets/indicators */
|
|
148
|
+
:host .qcoSlider__dots {
|
|
149
|
+
text-align: center;
|
|
150
|
+
margin: 0 auto;
|
|
151
|
+
padding: 0;
|
|
152
|
+
}
|
|
153
|
+
:host .qcoSlider__dots--dot {
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
height: 10px;
|
|
156
|
+
width: 10px;
|
|
157
|
+
margin: 0 2px;
|
|
158
|
+
background-color: #bbb;
|
|
159
|
+
border-radius: 50%;
|
|
160
|
+
display: inline-block;
|
|
161
|
+
transition: background-color 0.6s ease;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
:host .active,
|
|
165
|
+
:host .qcoSlider__dots--dot:hover {
|
|
166
|
+
background-color: #717171;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:host .qco-slider__container .qcoSlides img {
|
|
170
|
+
border-radius: 30px 30px 0px 0px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
</style>
|
|
174
|
+
|
|
175
|
+
<div class="qco-slider__container">
|
|
176
|
+
<component name="slidelist" componentClass="SlideListComponent" subcomponentClass="SlideItemComponent" serviceClass="{{SERVICE_CLASS}}" ></component>
|
|
177
|
+
|
|
178
|
+
<a class="prev" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(-1)">❮</a>
|
|
179
|
+
<a class="next" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(1)">❯</a>
|
|
180
|
+
</div>
|
|
181
|
+
<br>
|
|
182
|
+
|
|
183
|
+
<div class="qcoSlider__dots" style="text-align:center">
|
|
184
|
+
</div>
|
|
185
|
+
|
|
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")}},h(Kn,"SliderComponent"),b(Kn,"SliderComponent"),Kn);(0,Vr.Package)("org.qcobjects.components.slider",[Ja,za,Ya]);var Pe=de(ue()),Ze,Xa=(Ze=class extends Pe.Component{constructor(t){t.name="notification",t.body=(0,Pe._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
|
+
<style>
|
|
188
|
+
div.notification_background {
|
|
189
|
+
display: block; /* Hidden by default */
|
|
190
|
+
position: fixed; /* Stay in place */
|
|
191
|
+
z-index: 1; /* Sit on top */
|
|
192
|
+
padding-top: 100px; /* Location of the box */
|
|
193
|
+
left: 0;
|
|
194
|
+
top: 0;
|
|
195
|
+
bottom:0;
|
|
196
|
+
right:0;
|
|
197
|
+
width: 100%; /* Full width */
|
|
198
|
+
height: 100%; /* Full height */
|
|
199
|
+
overflow: auto; /* Enable scroll if needed */
|
|
200
|
+
background-color: rgb(0,0,0); /* Fallback color */
|
|
201
|
+
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
202
|
+
border: none !important;
|
|
203
|
+
}
|
|
204
|
+
div.notification {
|
|
205
|
+
border-radius: 12px !important;
|
|
206
|
+
margin-bottom: 15px;
|
|
207
|
+
padding: 4px 12px;
|
|
208
|
+
}
|
|
209
|
+
.notification.danger {
|
|
210
|
+
background-color: #ffdddd;
|
|
211
|
+
border-left: 6px solid #f44336;
|
|
212
|
+
}
|
|
213
|
+
.notification.success {
|
|
214
|
+
background-color: #ddffdd;
|
|
215
|
+
border-left: 6px solid #4CAF50;
|
|
216
|
+
}
|
|
217
|
+
.notification.info {
|
|
218
|
+
background-color: #e7f3fe;
|
|
219
|
+
border-left: 6px solid #2196F3;
|
|
220
|
+
}
|
|
221
|
+
.notification.warning {
|
|
222
|
+
background-color: #ffffcc;
|
|
223
|
+
border-left: 6px solid #ffeb3b;
|
|
224
|
+
}
|
|
225
|
+
</style>
|
|
226
|
+
<div class="notification_background">
|
|
227
|
+
<div class="notification {{kind}}">
|
|
228
|
+
<p><strong>{{title}}</strong> {{message}}</p>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
`,this.kinds=["danger","success","info","warning"]}display(t){let n=b(function(o){o.style.display="block";let s=(0,Pe.New)(Be,{duration:900,apply(c){(0,Pe._super_)("Fade","apply").call(this,c,0,1),(0,Pe._super_)("Move","apply").call(this,c,0,-document.body.clientHeight,0,0)}}),i=(0,Pe.New)(Be,{duration:650,apply(c){(0,Pe._super_)("Fade","apply").call(this,c,1,0),(0,Pe._super_)("Move","apply").call(this,c,0,0,0,-document.body.clientHeight)}});s.apply(o),setTimeout(function(){i.apply(o)},2e3)},"_display_");t.subelements("div.notification_background").map(o=>new Ot({duration:500}).apply(o,0,1)),t.subelements("div.notification").map(o=>n(o)),setTimeout(function(){t.remove()},2200)}static success(t){let n=(0,Pe.New)(Ze,{name:"notification",shadowed:!0,body:(0,Pe._DOMCreateElement)("div"),data:{kind:"success",title:"Success!",message:`${t}...`}});document.body.append(n);let o=n.shadowed?n.shadowRoot.host:n.body;n.display(o)}static danger(t){let n=(0,Pe.New)(Ze,{name:"notification",shadowed:!0,body:(0,Pe._DOMCreateElement)("div"),data:{kind:"danger",title:"Danger!",message:`${t}...`}});document.body.append(n);let o=n.shadowed?n.shadowRoot.host:n.body;n.display(o)}static info(t){let n=(0,Pe.New)(Ze,{name:"notification",shadowed:!0,body:(0,Pe._DOMCreateElement)("div"),data:{kind:"info",title:"Info!",message:`${t}...`}});document.body.append(n);let o=n.shadowed?n.shadowRoot.host:n.body;n.display(o)}static warning(t){let n=(0,Pe.New)(Ze,{name:"notification",shadowed:!0,body:(0,Pe._DOMCreateElement)("div"),data:{kind:"warning",title:"Warning!",message:`${t}...`}});document.body.append(n);let o=n.shadowed?n.shadowRoot.host:n.body;n.display(o)}},h(Ze,"_NotificationComponent"),b(Ze,"NotificationComponent"),Ze);(0,Pe.Package)("org.quickcorp.components.notifications",[Xa]);var Ge=de(ue()),Vn,gr=(Vn=class extends Ge.Component{constructor(t){t.name=typeof t.name>"u"?"splashscreen":t.name;let n=typeof window<"u"&&typeof window.self<"u"&&window===window.self,o=location.hash===""&&location.pathname==="/"&&location.search===""||Ge.CONFIG.get("routingWay","pathname")==="hash"&&Ge.CONFIG.get("start_url","/")===location.hash||Ge.CONFIG.get("routingWay","pathname")==="pathname"&&Ge.CONFIG.get("start_url","/")===location.pathname||Ge.CONFIG.get("routingWay","pathname")==="search"&&Ge.CONFIG.get("start_url","/")===location.search,s=n&&o;s?(t.basePath=Ge.CONFIG.get("splashscreenBasePath",Ge.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_=s,this._enabled_){let c=this.body.getAttribute("duration");c===null?c=1e3:c=parseInt(c.toString()),this._bgcolor=this.body.style.backgroundColor;let l=b(()=>{setTimeout(()=>{if(!l.executed){let _=this.shadowed?this.shadowRoot?.host:this.body;typeof Ge.global.componentsStack<"u"&&Ge.global.componentsStack.filter(d=>d.body.hasAttribute("splashscreen")).map(d=>{Ge.logger.debug(`Splash Screen of Main Component: ${d.name}`),d.splashScreenComponent=this;let f=b(()=>{if(!f.executed){let p=d.splashScreenComponent,m=d.shadowed?d.shadowRoot?.host:d.body;d._mainPosition=m.style.position,typeof m<"u"&&(m.style.position="fixed"),d._mainOpacity=m.style.opacity,_.style.width="100%",_.style.height="100%",document.body.style.backgroundColor="#111111",m.style.opacity="0",setTimeout(function(){typeof _<"u"&&(document.body.style.backgroundColor=p?._bgcolor,_.subelements("#slot-logo").map(u=>(u.style.display="block",u.style.transformOrigin="center",new Zs().apply(u,1,0))),new Ot().apply(_,1,0))},c-1e3),setTimeout(function(){new Ot().apply(m,0,1),m.style.position=d._mainPosition,document.body.style.backgroundColor=p._bgcolor,_.parentElement!==null&&_.parentElement.remove()},c)}f.executed=!0},"SplashScreenHandler");return d.addComponentHelper(f.bind(d))}),l.executed=!0}})},"_helper_");l.executed=!1,this.addComponentHelper(l.bind(t))}}addComponentHelper(t){throw new Error("Method not implemented.")}},h(Vn,"SplashScreenComponent"),b(Vn,"SplashScreenComponent"),Vn);(0,Ge.Package)("org.qcobjects.components.base",[gr]);var Jn,Za=(Jn=class extends gr{constructor(t){t.name="videosplashscreen";super(t);r(this,"cached",!1);r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
232
|
+
<style>
|
|
233
|
+
:host * {
|
|
234
|
+
box-sizing: border-box;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
:host {
|
|
238
|
+
zoom: 1.0;
|
|
239
|
+
width: device-width;
|
|
240
|
+
margin: 0;
|
|
241
|
+
top: 0;
|
|
242
|
+
left: 0;
|
|
243
|
+
right: 0;
|
|
244
|
+
bottom: 0;
|
|
245
|
+
position: absolute;
|
|
246
|
+
padding: 0;
|
|
247
|
+
min-width: 100vw;
|
|
248
|
+
min-height: 100vh;
|
|
249
|
+
width: 100vw;
|
|
250
|
+
height: 100vh;
|
|
251
|
+
overflow: hidden;
|
|
252
|
+
background-color: black;
|
|
253
|
+
}
|
|
254
|
+
#slot-logo::slotted(img) {
|
|
255
|
+
vertical-align: middle;
|
|
256
|
+
display: block;
|
|
257
|
+
width: 40vw;
|
|
258
|
+
left: 0;
|
|
259
|
+
margin: 0;
|
|
260
|
+
padding: 0;
|
|
261
|
+
z-index: 9999999999;
|
|
262
|
+
transform-origin: center;
|
|
263
|
+
transform-style: preserve-3d;
|
|
264
|
+
filter: blur(0em);
|
|
265
|
+
transition: filter 0.5s;
|
|
266
|
+
max-width: 300px;
|
|
267
|
+
position: absolute;
|
|
268
|
+
top: 50%;
|
|
269
|
+
left: 50%;
|
|
270
|
+
transform: translate(-50%, -50%);
|
|
271
|
+
animation: fadeIn 5s;
|
|
272
|
+
-webkit-animation: fadeIn 5s;
|
|
273
|
+
-moz-animation: fadeIn 5s;
|
|
274
|
+
-o-animation: fadeIn 5s;
|
|
275
|
+
-ms-animation: fadeIn 5s;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:host * {
|
|
279
|
+
-webkit-user-select: none;
|
|
280
|
+
-moz-user-select: none;
|
|
281
|
+
-ms-user-select: none;
|
|
282
|
+
user-select: none;
|
|
283
|
+
-webkit-touch-callout: none;
|
|
284
|
+
/* prevent callout to copy image, etc when tap to hold */
|
|
285
|
+
-webkit-text-size-adjust: none;
|
|
286
|
+
/* prevent webkit from resizing text to fit */
|
|
287
|
+
-webkit-user-select: none;
|
|
288
|
+
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* FOCUS */
|
|
292
|
+
:host summary:focus,
|
|
293
|
+
:host a:focus,
|
|
294
|
+
:host button:focus {
|
|
295
|
+
outline: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.splashscreen,
|
|
299
|
+
.fullscreen-bg {
|
|
300
|
+
padding: 0;
|
|
301
|
+
margin: 0;
|
|
302
|
+
top: 0;
|
|
303
|
+
left: 0;
|
|
304
|
+
right: 0;
|
|
305
|
+
bottom: 0;
|
|
306
|
+
padding: 0;
|
|
307
|
+
background-attachment: fixed;
|
|
308
|
+
background-position: center;
|
|
309
|
+
background-clip: content-box;
|
|
310
|
+
background-size: cover;
|
|
311
|
+
position: absolute;
|
|
312
|
+
min-width: 100vw;
|
|
313
|
+
min-height: 100vh;
|
|
314
|
+
width: 100vw;
|
|
315
|
+
height: 100vh;
|
|
316
|
+
z-index: 0;
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.splashscreen .splashcontent {
|
|
321
|
+
top: 0;
|
|
322
|
+
left: 0;
|
|
323
|
+
right: 0;
|
|
324
|
+
bottom: 0;
|
|
325
|
+
margin: 0 auto;
|
|
326
|
+
width: 100vw;
|
|
327
|
+
height: 100vh;
|
|
328
|
+
padding: 0;
|
|
329
|
+
overflow: hidden;
|
|
330
|
+
z-index: 1;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.splashscreen .splashcontent p {
|
|
334
|
+
color: white;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
video.fullscreen-bg__video {
|
|
338
|
+
top: 0;
|
|
339
|
+
left: 0;
|
|
340
|
+
bottom: 0;
|
|
341
|
+
right: 0;
|
|
342
|
+
margin: 0;
|
|
343
|
+
padding: 0;
|
|
344
|
+
position: absolute;
|
|
345
|
+
min-width: 100vw;
|
|
346
|
+
min-height: 100vh;
|
|
347
|
+
overflow: hidden;
|
|
348
|
+
z-index: 0;
|
|
349
|
+
object-fit: cover;
|
|
350
|
+
filter: brightness(0.3);
|
|
351
|
+
}
|
|
352
|
+
.splashscreen,
|
|
353
|
+
.fullscreen-bg {
|
|
354
|
+
background-image: url('{{background}}');
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@keyframes fadeIn {
|
|
358
|
+
0% {opacity:0;}
|
|
359
|
+
100% {opacity:1;}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
@-moz-keyframes fadeIn {
|
|
363
|
+
0% {opacity:0;}
|
|
364
|
+
100% {opacity:1;}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
@-webkit-keyframes fadeIn {
|
|
368
|
+
0% {opacity:0;}
|
|
369
|
+
100% {opacity:1;}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
@-o-keyframes fadeIn {
|
|
373
|
+
0% {opacity:0;}
|
|
374
|
+
100% {opacity:1;}
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@-ms-keyframes fadeIn {
|
|
378
|
+
0% {opacity:0;}
|
|
379
|
+
100% {opacity:1;}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
</style>
|
|
383
|
+
<div class="splashscreen">
|
|
384
|
+
<div class="fullscreen-bg splashcontent">
|
|
385
|
+
<video loop muted autoplay playsinline name="media" poster="{{background}}" class="fullscreen-bg__video" data-setup="{}" height="100%">
|
|
386
|
+
<source src="{{video_mp4}}" type="video/mp4">
|
|
387
|
+
<source src="{{video_ogg}}" type="video/ogg">
|
|
388
|
+
<source src="{{video_webm}}" type="video/webm">
|
|
389
|
+
</video>
|
|
390
|
+
<slot id="slot-logo" name="logo"></slot>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
`)}},h(Jn,"VideoSplashScreenComponent"),b(Jn,"VideoSplashScreenComponent"),Jn),zn,ec=(zn=class extends gr{constructor(t){t.name="cubesplashscreen";super(t);r(this,"cached",!1);r(this,"shadowed",!0);r(this,"tplsource","inline");r(this,"template",`
|
|
395
|
+
<style>
|
|
396
|
+
@keyframes spin {
|
|
397
|
+
0% {
|
|
398
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
16% {
|
|
402
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
33% {
|
|
406
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
50% {
|
|
410
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
66% {
|
|
414
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
83% {
|
|
418
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
100% {
|
|
422
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
@keyframes spin-duplicate {
|
|
427
|
+
0% {
|
|
428
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
16% {
|
|
432
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
33% {
|
|
436
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
50% {
|
|
440
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
66% {
|
|
444
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
83% {
|
|
448
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
100% {
|
|
452
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
@keyframes roll {
|
|
457
|
+
0% {
|
|
458
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
12% {
|
|
462
|
+
transform: translate3d(0px, 0, -100px)
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
25% {
|
|
466
|
+
transform: translate3d(200px, -50px, -400px)
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
37% {
|
|
470
|
+
transform: translate3d(0px, -100px, -800px)
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
50% {
|
|
474
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
62% {
|
|
478
|
+
transform: translate3d(0px, 0, -100px)
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
75% {
|
|
482
|
+
transform: translate3d(200px, -50px, -400px)
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
87% {
|
|
486
|
+
transform: translate3d(0px, -100px, -800px)
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
100% {
|
|
490
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
#wrapper {
|
|
495
|
+
position: relative;
|
|
496
|
+
width: 200px;
|
|
497
|
+
padding-top: 100px;
|
|
498
|
+
margin: 0 auto;
|
|
499
|
+
perspective: 1200px;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
#platform {
|
|
503
|
+
margin-top: 100px;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
#dice span {
|
|
507
|
+
position: absolute;
|
|
508
|
+
margin: 100px 0 0 100px;
|
|
509
|
+
display: block;
|
|
510
|
+
font-size: 2.5em;
|
|
511
|
+
padding: 10px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
#dice {
|
|
515
|
+
position: absolute;
|
|
516
|
+
width: 200px;
|
|
517
|
+
height: 200px;
|
|
518
|
+
transform-style: preserve-3d;
|
|
519
|
+
animation: spin 50s infinite linear;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.side {
|
|
523
|
+
position: absolute;
|
|
524
|
+
width: 200px;
|
|
525
|
+
height: 200px;
|
|
526
|
+
background: none;
|
|
527
|
+
box-shadow: inset 0 0 40px #fff0;
|
|
528
|
+
border-radius: 40px;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
#dice .cover, #dice .inner {
|
|
532
|
+
background: #e0e0e0;
|
|
533
|
+
box-shadow: none;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
#dice .cover {
|
|
537
|
+
border-radius: 0;
|
|
538
|
+
transform-origin: center;
|
|
539
|
+
transform: translateZ(0px);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
#dice .cover.x {
|
|
543
|
+
transform-origin: center;
|
|
544
|
+
transform: rotateY(90deg);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
#dice .cover.z {
|
|
548
|
+
transform-origin: center;
|
|
549
|
+
transform: rotateX(90deg);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
#dice .front {
|
|
553
|
+
transform-origin: center;
|
|
554
|
+
transform: translateZ(100px);
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
#dice .front.inner {
|
|
558
|
+
transform-origin: center;
|
|
559
|
+
transform: translateZ(98px);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
#dice .back {
|
|
563
|
+
transform-origin: center;
|
|
564
|
+
transform: rotateX(-180deg) translateZ(100px);
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
#dice .back.inner {
|
|
568
|
+
transform-origin: center;
|
|
569
|
+
transform: rotateX(-180deg) translateZ(98px);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
#dice .right {
|
|
573
|
+
transform-origin: center;
|
|
574
|
+
transform: rotateY(90deg) translateZ(100px);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
#dice .right.inner {
|
|
578
|
+
transform-origin: center;
|
|
579
|
+
transform: rotateY(90deg) translateZ(98px);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
#dice .left {
|
|
583
|
+
transform-origin: center;
|
|
584
|
+
transform: rotateY(-90deg) translateZ(100px);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
#dice .left.inner {
|
|
588
|
+
transform-origin: center;
|
|
589
|
+
transform: rotateY(-90deg) translateZ(98px);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
#dice .top {
|
|
593
|
+
transform-origin: center;
|
|
594
|
+
transform: rotateX(90deg) translateZ(100px);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
#dice .top.inner {
|
|
598
|
+
transform-origin: center;
|
|
599
|
+
transform: rotateX(90deg) translateZ(98px);
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
#dice .bottom {
|
|
603
|
+
transform-origin: center;
|
|
604
|
+
transform: rotateX(-90deg) translateZ(100px);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
#dice .bottom.inner {
|
|
608
|
+
transform-origin: center;
|
|
609
|
+
transform: rotateX(-90deg) translateZ(98px);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.dot {
|
|
613
|
+
position: absolute;
|
|
614
|
+
width: 46px;
|
|
615
|
+
height: 46px;
|
|
616
|
+
border-radius: 23px;
|
|
617
|
+
background: #444;
|
|
618
|
+
box-shadow: inset 5px 0 10px #000;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.dot.center {
|
|
622
|
+
margin: 77px 0 0 77px;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.dot.dtop {
|
|
626
|
+
margin-top: 20px;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.dot.dleft {
|
|
630
|
+
margin-left: 134px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.dot.dright {
|
|
634
|
+
margin-left: 20px;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.dot.dbottom {
|
|
638
|
+
margin-top: 134px;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.dot.center.dleft {
|
|
642
|
+
margin: 77px 0 0 20px;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
.dot.center.dright {
|
|
646
|
+
margin: 77px 0 0 134px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
#background {
|
|
650
|
+
top: 0px;
|
|
651
|
+
left: 0px;
|
|
652
|
+
position: fixed;
|
|
653
|
+
z-index: -1;
|
|
654
|
+
width: 100%;
|
|
655
|
+
height: 100%;
|
|
656
|
+
background: var(--root-background, transparent);
|
|
657
|
+
background-size: cover;
|
|
658
|
+
background-origin: border-box;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
#dice .side.front,
|
|
662
|
+
#dice .side.top,
|
|
663
|
+
#dice .side.right,
|
|
664
|
+
#dice .side.left,
|
|
665
|
+
#dice .side.bottom,
|
|
666
|
+
#dice .side.back {
|
|
667
|
+
background-image: var(--background-3d-cube-image, "none");
|
|
668
|
+
background-size: cover;
|
|
669
|
+
background-origin: border-box;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
:root, :host {
|
|
674
|
+
--background-3d-cube-image: url('{{cube_image}}');
|
|
675
|
+
--box-width: 200px;
|
|
676
|
+
font-size:.9em;
|
|
677
|
+
font-family:sans-serif;
|
|
678
|
+
--root-background: {{background}};
|
|
679
|
+
}
|
|
680
|
+
</style>
|
|
681
|
+
|
|
682
|
+
<div id="background"></div>
|
|
683
|
+
<div id="wrapper">
|
|
684
|
+
<div id="platform">
|
|
685
|
+
<div id="dice">
|
|
686
|
+
<div class="side front">
|
|
687
|
+
</div>
|
|
688
|
+
<div class="side front inner"></div>
|
|
689
|
+
<div class="side top"></div>
|
|
690
|
+
<div class="side top inner"></div>
|
|
691
|
+
<div class="side right"></div>
|
|
692
|
+
<div class="side right inner"></div>
|
|
693
|
+
<div class="side left"></div>
|
|
694
|
+
<div class="side left inner"></div>
|
|
695
|
+
<div class="side bottom"></div>
|
|
696
|
+
<div class="side bottom inner"></div>
|
|
697
|
+
<div class="side back"></div>
|
|
698
|
+
<div class="side back inner"></div>
|
|
699
|
+
<div class="side cover x"></div>
|
|
700
|
+
<div class="side cover y"></div>
|
|
701
|
+
<div class="side cover z"></div>
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
704
|
+
</div>
|
|
705
|
+
|
|
706
|
+
`)}},h(zn,"CubeSplashScreenComponent"),b(zn,"CubeSplashScreenComponent"),zn);(0,Ge.Package)("org.qcobjects.components.splashscreen",[gr,Za,ec]);var tc=de(ue()),Yn,nc=(Yn=class extends tc.Controller{},h(Yn,"GenericController"),b(Yn,"GenericController"),Yn);(0,tc.Package)("org.qcobjects.controllers",[nc]);var z=de(ue()),Xn,oc=(Xn=class extends z.Controller{constructor({component:t,dependencies:n=[],valueField:o=void 0,labelField:s=void 0}){super({component:t,dependencies:n,valueField:o,labelField:s});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,z.logger.debug("ListController INIT")}getPageIndex(t,n,o){return t=t>0?t-1:0,[o*t/n,o*t/n+o/n]}addSubcomponents(){this.component.subcomponents=[];let t=this.component.body.getAttribute("layout"),n=z.CONFIG.get("listBasePath",z.CONFIG.get("remoteSDKPath","")),o="";this.labelField=this.component.body.getAttribute("label-field"),this.valueField=this.component.body.getAttribute("value-field"),t==="horizontal"?o=`@import url("${n}css/components/horizontal-list.css");`:o=`@import url("${n}css/components/list.css");`,typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=`<style>${o}</style><ul></ul>`),z.logger.debug((0,z._DataStringify)(this.component.data));try{let s=this.component.body.getAttribute("subcomponentClass");if(s!=null){let i,c,l,_=[...this.component.data],d=this.component.body.getAttribute("paginate-in");d=d!==null?d:"client";let f;d==="client"?(f=this.component.body.getAttribute("page-number"),f=isNaN(f)||f===null?-1:f,f!==-1?(l=this.component.body.getAttribute("total-pages"),l=isNaN(l)?1:l,i=this.getPageIndex(f,l,_.length)[0],c=this.getPageIndex(f,l,_.length)[1]):(i=0,c=_.length,l=1),_=_.slice(i,c)):(i=0,c=_.length,l=1),_.map((p,m)=>{try{let g=(0,z._DOMCreateElement)("li");p.label=p[this.labelField],p.value=p[this.valueField];let y=(0,z.New)((0,z.ClassFactory)(s),{name:"list-item",data:{label:p[this.labelField],value:p[this.valueField],__dataIndex:m,__page:f,__totalPages:l,__limit:c,__offset:i},templateURI:(0,z.ComponentURI)({COMPONENTS_BASE_PATH:z.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,z.ClassFactory)(s).name,TPLEXTENSION:z.CONFIG.get("tplextension",""),TPL_SOURCE:(0,z.ClassFactory)(s).tplsource}),body:g,template:(0,z.ClassFactory)(s).template});y.done=this.component.done.bind(y);try{if(y){y.data.__dataIndex=m,Object.hasOwnProperty.call(this.component.data,"length")&&(y.data.__dataLength=this.component.data.length),z.logger.debug("adding subcomponent to body"),this._componentRoot.subelements("ul").map(v=>v.append(y));try{this.component.subcomponents.push(y)}catch(v){z.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${v}`)}}else z.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch(v){z.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${v}`)}}catch(g){z.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${g}`)}})}else z.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch(s){z.logger.debug(`No data for component: ${s}`)}}cssGrid(){let t=this.component,n=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let o=(0,z._DOMCreateElement)("style"),s="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();o.innerHTML=`.${c}{
|
|
707
|
+
display: grid; grid-template-rows: ${s}; grid-template-columns: ${i}; margin:0 auto; }`,n.append(o),n.classList.add(c)}}done(){this.cssGrid();let t=this.component;z.logger.debug("ListController DONE");let n=this.component.body.getAttribute("serviceClass");if(n!=null){let o,s,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 l;if(c!==-1){let _=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;l=this.component.body.getAttribute("total-pages"),l=isNaN(l)?1:l,o=this.getPageIndex(c,l,_)[0],s=this.getPageIndex(c,l,_)[1],t.serviceData=typeof t.serviceData<"u"?t.serviceData:{},t.serviceData.params=typeof t.serviceData.params<"u"?t.serviceData.params:{},t.serviceData.params.offset=o,t.serviceData.params.limit=s}}(0,z.serviceLoader)((0,z.New)((0,z.ClassFactory)(n),{data:t.serviceData}),!1).then(c=>{z.logger.debug("DONE SERVICE COMPONENT"),c.service.JSONresponse=JSON.parse(c.service.template),typeof c.service.JSONresponse.result<"u"?(z.logger.debug((0,z._DataStringify)(c.service.JSONresponse.result)),t.data=c.service.JSONresponse.result):t.data=c.service.JSONresponse,this.addSubcomponents()},c=>{z.logger.debug(c)}).catch(c=>{z.logger.debug("Something went wrong when calling the service from: "+n),z.logger.debug(c.message)})}}},h(Xn,"ListController"),b(Xn,"ListController"),Xn);(0,z.Package)("org.qcobjects.controllers.list",[oc]);var K=de(ue()),Zn,rc=(Zn=class extends K.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,n=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let o=(0,K._DOMCreateElement)("style"),s="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();o.innerHTML=`.${c}{
|
|
708
|
+
display: grid; grid-template-rows: ${s}; grid-template-columns: ${i}; margin:0 auto; }`,n?.append(o),t.shadowed?n?.host.classList.add(c):n.classList.add(c)}}done(){this.cssGrid(),K.logger.debug("GridComponent built")}},h(Zn,"GridController"),b(Zn,"GridController"),Zn),eo,sc=(eo=class extends K.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,K.logger.debug("DataGridController INIT")}getPageIndex(t,n,o){return t=t>0?t-1:0,[o*t/n,o*t/n+o/n]}addSubcomponents(){this.component.subcomponents=[],typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=""),this.cssGrid(),K.logger.debug((0,K._DataStringify)(this.component.data));try{let t=this.component.body.getAttribute("subcomponentClass");if(t!=null){let n,o,s,i=[...this.component.data],c=this.component.body.getAttribute("paginate-in"),l;c=c!==null?c:"client",c==="client"?(l=this.component.body.getAttribute("page-number"),l=isNaN(l)||l===null?-1:l,l!==-1?(s=this.component.body.getAttribute("total-pages"),s=isNaN(s)?1:s,n=this.getPageIndex(l,s,i.length)[0],o=this.getPageIndex(l,s,i.length)[1]):(n=0,o=i.length,s=1),i=i.slice(n,o)):(n=0,o=i.length,s=1),i.map((_,d,f)=>{try{let m=(0,K._DOMCreateElement)("component");m.setAttribute("name",(0,K.ClassFactory)(t).name),m.setAttribute("shadowed",(0,K.ClassFactory)(t).shadowed),m.setAttribute("cached",(0,K.ClassFactory)(t).cached),_=Object.assign(_,{__dataIndex:d,__dataLength:f.length,__page:l,__totalPages:s,__limit:o,__offset:n});let u=(0,K.New)((0,K.ClassFactory)(t),{name:"item",data:_,templateURI:(0,K.ComponentURI)({COMPONENTS_BASE_PATH:K.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,K.ClassFactory)(t).name,TPLEXTENSION:K.CONFIG.get("tplextension",""),TPL_SOURCE:(0,K.ClassFactory)(t).tplsource}),body:m,template:(0,K.ClassFactory)(t).template});u.done=this.component.done.bind(u);try{if(u){u.data.__dataIndex=d,Object.hasOwnProperty.call(this.component.data,"length")&&(u.data.__dataLength=this.component.data.length),K.logger.debug("adding subcomponent to body"),this._componentRoot?.append(u.body);try{this.component.subcomponents.push(u)}catch(g){K.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${g}`)}}else K.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch(g){K.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${g}`)}}catch(m){K.logger.debug(`ERROR LOADING SUBCOMPONENT IN DATAGRID: ${m}`)}})}else K.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch(t){K.logger.debug(`No data for component: ${t}`)}}cssGrid(){let t=this.component,n=t.shadowed?t.shadowRoot:t.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let o=(0,K._DOMCreateElement)("style"),s="auto ".repeat(this.rows),i="auto ".repeat(this.cols),c="grid"+this.__instanceID.toString();o.innerHTML=`.${c}{
|
|
709
|
+
display: grid; grid-template-rows: ${s}; grid-template-columns: ${i}; margin:0 auto; }`,t.shadowed?(t.body.append(o),n.host.classList.add(c)):(n?.append(o),n.classList.add(c))}}done(){let t=this.component;K.logger.debug("DataGridController DONE");let n=this.component.body.getAttribute("serviceClass");if(n!=null){let o,s,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 l;if(c!==-1){let _=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;l=this.component.body.getAttribute("total-pages"),l=isNaN(l)?1:l,o=this.getPageIndex(c,l,_)[0],s=this.getPageIndex(c,l,_)[1],t.serviceData=typeof t.serviceData<"u"?t.serviceData:{},t.serviceData.params=typeof t.serviceData.params<"u"?t.serviceData.params:{},t.serviceData.params.offset=o,t.serviceData.params.limit=s}}(0,K.serviceLoader)((0,K.New)((0,K.ClassFactory)(n),{data:t.serviceData}),!1).then(c=>{K.logger.debug("DONE SERVICE COMPONENT"),c.service.JSONresponse=JSON.parse(c.service.template),typeof c.service.JSONresponse.result<"u"?(K.logger.debug((0,K._DataStringify)(c.service.JSONresponse.result)),t.data=c.service.JSONresponse.result):t.data=c.service.JSONresponse,this.addSubcomponents()},c=>{K.logger.debug(c)}).catch(c=>{K.logger.debug("Something went wrong when calling the service from: "+n),K.logger.debug(c.message)})}}},h(eo,"DataGridController"),b(eo,"DataGridController"),eo);(0,K.Package)("org.qcobjects.controllers.grid",[rc,sc]);var Dt=de(ue()),to,ic=(to=class extends Dt.Controller{constructor({component:t,dependencies:n=[],duration:o=7100,slideIndex:s=0,interval:i=null,sliderHandlerName:c=null}){super({component:t,dependencies:n,duration:o,slideIndex:s,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 n=this._componentRoot?.subelements(".qcoSlides"),o=this._componentRoot?.subelements(".qcoSlider__dots--dot");t>n.length-1&&(this.slideIndex=0),t<0&&(this.slideIndex=0),n.filter((s,i)=>i!==this.slideIndex).map(s=>(0,Dt.New)((0,Dt.ClassFactory)("Fade"),{}).apply(s,1,0)),o.filter((s,i)=>i!==this.slideIndex).map(s=>s.classList.remove("active"));try{o[this.slideIndex].classList.add("active")}catch(s){Dt.logger.debug(`Something went wrong when trying to activate a slide: ${this.slideIndex} - ${s.message}`)}setTimeout(()=>{n.filter((s,i)=>i!==this.slideIndex).map(s=>(s.style.display="none",s.style.display));try{n[this.slideIndex].style.display="block",(0,Dt.New)((0,Dt.ClassFactory)("Fade"),{}).apply(n[this.slideIndex],0,1)}catch(s){Dt.logger.debug(`Something went wrong when trying to show a slide: ${this.slideIndex} - ${s.message}`)}},700)}fillDots(){(this._componentRoot?.subelements(".qcoSlides")).map((n,o)=>{let s=document.createElement("span"),i=`<span class="qcoSlider__dots--dot" onclick="global.get('${this.sliderHandlerName}').currentSlide(${o})"></span>`;return s.innerHTML=i,this._componentRoot?.subelements(".qcoSlider__dots")[0].append(s)})}done(){(this._componentRoot?.subelements(".qcoSlides")).filter((n,o)=>o!==this.slideIndex).map(n=>(n.style.display="none",n.style.display)),setTimeout(()=>{this.fillDots(),this.slideIndex=0,this.showSlides(this.slideIndex),this.automate()},3e3)}},h(to,"SliderController"),b(to,"SliderController"),to);(0,Dt.Package)("org.qcobjects.controllers.slider",[ic]);var Me=de(ue()),no,ac=(no=class extends Me.Controller{getDefault(){return function(a,t,n){let o={name:"^[a-zA-Z]+(([',. -][a-zA-Z ])?[a-zA-Z]*)*$",email:"^([A-Za-z0-9]+)@([A-Za-z0-9]+).([A-Za-z0-9]+)$"},s=n.getAttribute("pattern")||o[a];return new RegExp(s).test(t)}}},h(no,"FormValidations"),b(no,"FormValidations"),no),oo,cc=(oo=class extends Me.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(uo)}hasValidation(t){let n=t.getAttribute("data-field"),o=!1;return typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,n)&&(o=!0),o}isInvalid(t){let n=!1,o=t.getAttribute("data-field"),s=this.component.data[o],i=b((c,l,_)=>typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,c)&&this.validations[c].call(null,c,l,_),"_execValidation");return typeof this.validations<"u"&&!i(o,s,t)&&(n=!0),n}isValid(t){return!this.isInvalid(t)}save(){this.serviceClass!==""?(location.href=this.formSettings.loadingRouting,(0,Me.serviceLoader)((0,Me.New)((0,Me.ClassFactory)(this.serviceClass),{data:this.component.data}),!1).then(()=>{console.log("DONE SERVICE COMPONENT"),location.href=this.formSettings.nextRouting},t=>{Me.logger.debug(t),location.href=this.formSettings.backRouting})):Me.logger.debug("No service name declared on serviceClass property")}formSaveTouchHandler(){Me.logger.debug("Saving data...");let t=this.component.shadowed?(this.component?.shadowRoot).host:this.component.body;if(this.component.executeBindings(),this.formValidatorModal!=null){let o=t.subelements("*[data-field]").filter(l=>this.hasValidation(l)),s=b(function(l,_){return b((f,p)=>p.getAttribute("aria-labelledby")!==null?(p.getAttribute("aria-labelledby")||"").split(" ").map(m=>f.subelements(`#${m}`).map(u=>u.innerHTML)).join(" "):null,"_arialabelledby")(l,_)||_.getAttribute("aria-label")||_.getAttribute("placeholder")||_.getAttribute("name")||_.getAttribute("data-field")},"_labelledby"),i=b(function(l){return l.getAttribute("title")||l.getAttribute("aria-title")||""},"_ariatitle"),c=o.filter(l=>this.isInvalid(l));if(c.length>0){let l=`
|
|
710
|
+
<details>
|
|
711
|
+
<summary>Please verify the following incorrect fields:</summary>
|
|
712
|
+
<ul>
|
|
713
|
+
<div>
|
|
714
|
+
${c.map(_=>"<li><div>"+s(t,_)+"</div><div>"+i(_)+"</div></li>").join("")}
|
|
715
|
+
</div>
|
|
716
|
+
</ul>
|
|
717
|
+
</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=`
|
|
719
|
+
<style>
|
|
720
|
+
$layout(landscape,css/desktop/components/github-grid.css)
|
|
721
|
+
$layout(portrait,css/mobile/components/github-grid.css)
|
|
722
|
+
|
|
723
|
+
:host {
|
|
724
|
+
margin:0 auto;
|
|
725
|
+
justify-content: center;
|
|
726
|
+
}
|
|
727
|
+
</style>
|
|
728
|
+
$mapper(github-card,result)
|
|
729
|
+
`}};h(di,"GitHubGrid");var ii=di,ui=class ui extends ht.Component{constructor(){super(...arguments),this.name="deploygrid",this.template=`
|
|
730
|
+
<style>
|
|
731
|
+
$layout(landscape,css/desktop/components/deploy-grid.css)
|
|
732
|
+
$layout(portrait,css/mobile/components/deploy-grid.css)
|
|
733
|
+
.deploy-grid{
|
|
734
|
+
display:inline-grid;
|
|
735
|
+
justify-content: space-evenly;
|
|
736
|
+
align-items: center;
|
|
737
|
+
justify-items: stretch;
|
|
738
|
+
}
|
|
739
|
+
</style>
|
|
740
|
+
<div class="deploy-grid">
|
|
741
|
+
<aws-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></aws-button>
|
|
742
|
+
<gitpod-button effectClass=SlideRightTransitionEffect apply-effect-to=observe></gitpod-button>
|
|
743
|
+
<codespaces-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></codespaces-button>
|
|
744
|
+
<netlify-button effectClass=SlideRightTransitionEffect apply-effect-to=observe></netlify-button>
|
|
745
|
+
<github-button effectClass=SlideLeftTransitionEffect apply-effect-to=observe></github-button>
|
|
746
|
+
</div>
|
|
747
|
+
`}};h(ui,"DeployGrid");var ai=ui,pi=class pi extends ht.Component{constructor(a){a.body?.setAttribute("serviceClass","AdminCheckService"),a.body?.setAttribute("response-to","data"),super(a),this.shadowed=!0,this.tplsource="inline"}};h(pi,"AdminCheckComponent");var zr=pi,fi=class fi extends zr{constructor(){super(...arguments),this.name="admin-sidebar-option",this.template=`
|
|
748
|
+
<style>
|
|
749
|
+
.admin_option_container {
|
|
750
|
+
padding:0;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
summary {
|
|
754
|
+
list-style: none;
|
|
755
|
+
border: none;
|
|
756
|
+
white-space: nowrap;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
summary::-webkit-details-marker {
|
|
760
|
+
display: none;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
details {
|
|
764
|
+
padding: 15px;
|
|
765
|
+
background-color: #222;
|
|
766
|
+
margin-bottom: 3px;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
summary::before {
|
|
770
|
+
content: url('../img/Q_web.svg'); /* the icon for list in sidebar */
|
|
771
|
+
color: #e5f59d;
|
|
772
|
+
margin-right: 20px;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
a {
|
|
776
|
+
padding: 8px 8px 8px 32px;
|
|
777
|
+
text-decoration: none;
|
|
778
|
+
font-size: 15px;
|
|
779
|
+
color: #ecffc7;
|
|
780
|
+
display: block;
|
|
781
|
+
transition: 0.3s;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
a:hover {
|
|
785
|
+
color: #f1f1f1;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
ul {
|
|
789
|
+
list-style-type: none;
|
|
790
|
+
padding: 0;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
</style>
|
|
794
|
+
<div class="admin_option_container">
|
|
795
|
+
<details>
|
|
796
|
+
<summary>Admin</summary>
|
|
797
|
+
<ul>
|
|
798
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/admin">Admin Tool</a></li>
|
|
799
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/admin/plugins">Plugins</a></li>
|
|
800
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/admin/handlers">Handlers</a></li>
|
|
801
|
+
<li><a onclick="global.sideNavController.close();return true;" href="/admin/libs">Libs</a></li>
|
|
802
|
+
</ul>
|
|
803
|
+
</details>
|
|
804
|
+
|
|
805
|
+
</div>
|
|
806
|
+
`}done(a){let t=a.component;console.log(t.serviceData);try{JSON.parse(t.serviceData)?.hasAdmin?ht.logger.debug("Admin module is present"):(ht.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(n){ht.logger.debug(`It was not possible to check if admin module is present: ${n}`),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_option_container")?.remove()}return super.done(a)}};h(fi,"AdminSidebarOption");var ci=fi,gi=class gi extends zr{constructor(){super(...arguments),this.name="admin-button",this.template=`
|
|
807
|
+
<style>
|
|
808
|
+
.admin_button_container {
|
|
809
|
+
float: left;
|
|
810
|
+
padding:0;
|
|
811
|
+
}
|
|
812
|
+
a {
|
|
813
|
+
float: left;
|
|
814
|
+
display: block;
|
|
815
|
+
text-align: center;
|
|
816
|
+
padding: 14px 16px;
|
|
817
|
+
text-decoration: none;
|
|
818
|
+
font-size: 17px;
|
|
819
|
+
color: #fff;
|
|
820
|
+
}
|
|
821
|
+
a:hover {
|
|
822
|
+
background-color: #312d2d;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
</style>
|
|
826
|
+
<div class="admin_button_container">
|
|
827
|
+
<a href="/admin" class="topmenu">Admin</a>
|
|
828
|
+
</div>
|
|
829
|
+
`}done(a){let t=a.component;console.log(t.serviceData);try{JSON.parse(t.serviceData)?.hasAdmin?ht.logger.debug("Admin module is present"):(ht.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(n){ht.logger.debug(`It was not possible to check if admin module is present: ${n}`),this.shadowRoot?.querySelector("style")?.remove(),this.shadowRoot?.querySelector(".admin_button_container")?.remove()}return super.done(a)}};h(gi,"AdminButton");var li=gi;(0,ht.Package)("org.quickcorp.custom.components",[li,ci,ai,ii])});var Pc=$e(Qt=>{"use strict";var Vl=Qt&&Qt.__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]})),Jl=Qt&&Qt.__setModuleDefault||(Object.create?(function(e,a){Object.defineProperty(e,"default",{enumerable:!0,value:a})}):function(e,a){e.default=a}),zl=Qt&&Qt.__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"&&Vl(t,a,n[o]);return Jl(t,a),t}})();Object.defineProperty(Qt,"__esModule",{value:!0});var Ke=zl(Xe()),Yl=si(),Wt,Mo,Lo;(0,Ke.Package)("org.quickcorp.custom.controllers",[(Wt=class extends Ke.Controller{constructor(a){Ke.logger.debug("Initializing MainController..."),super(a)}done(...a){let t=super.done(a);if(!Wt.loaded){let n=(0,Ke._DOMCreateElement)("style");n.innerHTML=`
|
|
830
|
+
@import url(css/body-layout.css);
|
|
831
|
+
`,document.body.append(n),Ke.logger.debug("MainController loaded"),Wt.loaded=!0}return t}},h(Wt,"MainController"),Wt),(Mo=class extends Ke.Controller{constructor(a){Ke.logger.debug("Initializing SideNavController..."),super(a),this.component=a.component,this.component.shadowed?this.componentRoot=this.component.shadowRoot:this.componentRoot=this.component.body,Ke.default.sideNavController=this,this.effect=new Yl.Fade({duration:300})}done(...a){let t=super.done(a);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()}},h(Mo,"SideNavController"),Mo),(Lo=class extends Ke.Controller{constructor(a){super(a),Ke.logger.debug("Header controller initialized")}loadInstallerButton(){(this.component.shadowed!=null?this.component.shadowRoot:this.component.body).subelements("#installerbutton").map(t=>(this.installer=(0,Ke.New)((0,Ke.ClassFactory)("Installer"),t),t))}done(...a){let t=super.done(a);return this.loadInstallerButton(),t}},h(Lo,"HeaderController"),Lo)])});var Tc=$e(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});var Ic=Xe(),Ro;(0,Ic.Package)("org.quickcorp.custom.views",[(Ro=class extends Ic.View{done(...a){let t=super.done(a),n=this.component;return n!==void 0&&n.body!==void 0&&(n.body.style.display="block",n.body.style.width="100px",n.body.style.height="100px"),t}},h(Ro,"CardView"),Ro)])});var Mc=$e(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Do=Xe(),ko,qo,Fo,$o;(0,Do.Package)("com.qcobjects.services.github",[(ko=class extends Do.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:a,service:t}){let n=JSON.parse(t.template).reverse().map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,image:`https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(o.name)}`}});return t.template=JSON.stringify({result:n}),super.done({request:a,service:t})}},h(ko,"GitHubService"),ko),(qo=class extends Do.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:a,service:t}){Do.logger.debug(a);let n=JSON.parse(t.template).items.map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,image:`https://via.placeholder.com/170/000000/FFFFFF?text=${encodeURI(o.name)}`}});return t.template=JSON.stringify({result:n}),super.done({request:a,service:t})}},h(qo,"GitHubTagService"),qo),(Fo=class extends Do.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:a}){let t=JSON.parse(a.template)[0];a.template={version:t.name}}},h(Fo,"QCObjectsVersionService"),Fo),($o=class extends Do.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:a}){let t=JSON.parse(a.template);a.template={forks:t.forks_count,stars:t.stargazers_count,watchers:t.watchers_count,size:Math.round(t.size/1e3)}}},h($o,"QCObjectsStarsForksService"),$o)])});var Rc=$e(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var Yr=Xe(),xo;(0,Yr.Package)("com.qcobjects.services.newapp",[(xo=class extends Yr.Service{constructor(){super(...arguments),this.url="/admin"}done(a){let t=h(n=>/<base href="\/admin\/" target="_self">/.test(n),"hasAdmin");a.service.template=(0,Yr._DataStringify)({hasAdmin:t(a.service.template)})}fail(a){a.service.template=(0,Yr._DataStringify)({hasAdmin:!1})}},h(xo,"AdminCheckService"),xo)])});var kc=$e(Dc=>{"use script";"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});yc();wc();Ec();Nc();Pc();Tc();Mc();Rc()});var $c=$e(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var qc=Xe();(0,qc.RegisterWidgets)("layout-basic","splash-screen","github-grid","octocat-icon","lib-list");(0,qc.RegisterWidgets)("gitpod-button","netlify-button","aws-button","github-button","codespaces-button","deploy-grid")});var Xl=$e(xc=>{Object.defineProperty(xc,"__esModule",{value:!0});la();kc();$c()});return Xl();})();
|
|
832
|
+
//# sourceMappingURL=init.js.map
|