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,22 @@
|
|
|
1
|
+
"use strict";var global=(()=>{var Nn=Object.defineProperty;var No=(n,a,t)=>a in n?Nn(n,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[a]=t;var p=(n,a)=>Nn(n,"name",{value:a,configurable:!0}),Ye=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(a,t)=>(typeof require<"u"?require:a)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var Tn=(n,a)=>()=>{try{return a||n((a={exports:{}}).exports,a),a.exports}catch(t){throw a=0,t}};var s=(n,a,t)=>No(n,typeof a!="symbol"?a+"":a,t);var bo=Tn((Wo,ye)=>{"use strict";var To=Object.create,dt=Object.defineProperty,So=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyNames,Io=Object.getPrototypeOf,Po=Object.prototype.hasOwnProperty,u=p((n,a)=>dt(n,"name",{value:a,configurable:!0}),"__name"),w=p((n,a)=>p(function(){return n&&(a=(0,n[zt(n)[0]])(n=0)),a},"__init"),"__esm"),Mo=p((n,a)=>p(function(){return a||(0,n[zt(n)[0]])((a={exports:{}}).exports,a),a.exports},"__require"),"__commonJS"),jn=p((n,a)=>{for(var t in a)dt(n,t,{get:a[t],enumerable:!0})},"__export"),Dn=p((n,a,t,e)=>{if(a&&typeof a=="object"||typeof a=="function")for(let o of zt(a))!Po.call(n,o)&&o!==t&&dt(n,o,{get:p(()=>a[o],"get"),enumerable:!(e=So(a,o))||e.enumerable});return n},"__copyProps"),Yt=p((n,a,t)=>(t=n!=null?To(Io(n)):{},Dn(a||!n||!n.__esModule?dt(t,"default",{value:n,enumerable:!0}):t,n)),"__toESM"),Ro=p(n=>Dn(dt({},"__esModule",{value:!0}),n),"__toCommonJS"),Ue,lt=w({"src/is_raw_class.ts"(){"use strict";Ue=u(n=>!!(typeof n=="function"&&n.toString().startsWith("class")),"__is_raw_class__")}}),Ge,ut=w({"src/ObjectName.ts"(){"use strict";Ge=u(n=>{let a="";return typeof n=="function"&&Object.hasOwn(n,"name")&&n.name!==""?a=n.name:typeof n<"u"&&typeof n.constructor=="function"&&n.constructor.name!==""?a=n.constructor.name:typeof n<"u"&&typeof n.constructor=="object"&&(a=n.constructor.toString().replace(/\[(.*?)\]/g,"$1").split(" ").slice(1).join("")),a},"ObjectName")}}),G,z=w({"src/getType.ts"(){"use strict";lt(),ut(),G=u(p(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(Ue(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=Ge(a);break}return t},"__getType__2"),"__getType__")}}),ft,Pt=w({"src/make_global.ts"(){"use strict";U(),ft=u(n=>{n&&n.name&&(typeof A<"u"&&typeof n<"u"&&A!==null&&!Object.hasOwn(A,n.name)?$e(n.name,n):typeof global<"u"?global[n.name]=n:typeof globalThis<"u"&&(globalThis[n.name]=n))},"__make_global__")}}),H,q,Xe,he,Ze,$n,Bt,Wt,Qt,Vt,kn,yt,ne=w({"src/PrimaryCollections.ts"(){"use strict";z(),Pt(),H={},q={},Xe=[],he=[],Ze=u(function(n,a){let t=G(n),e=n.name||t;return e.toLowerCase()==="function"&&(e=t),typeof n.__definition>"u"&&(n.__definition={}),n.__definition.__classType=t,typeof a<"u"&&(n.__definition.__namespace=a),H[e]=n,ft(n),H[e]},"__register_class__"),$n=u(n=>H[n],"get_QC_CLASS"),Bt=u(function(n){let a=[];for(let t of Object.keys(n))typeof n[t]<"u"&&typeof n[t]!="function"&&Object.hasOwn(n[t],"length")&&n[t].length>0&&(a.push(t),a=a.concat(Bt(n[t])));return a},"_get_packages_names"),Wt=u(()=>Bt(q),"getPackagesNamesList"),Qt=u(()=>[...Wt()].map(n=>{let a=q[n],t;return a&&(t={packageName:n,classesList:a.filter(function(){return!0})}),t}).filter(function(n){return typeof n<"u"}),"getPackagesList"),Vt=u(()=>{let n=[];return[...Qt()].forEach(function(a){return n=n.concat(a.classesList.map(t=>({packageName:a.packageName,className:`${a.packageName}.${G(t)}`,classFactory:t}))),a}),n},"getClassesList"),kn=u(()=>[...Vt()].map(n=>n.className),"getClassesNamesList"),yt=u((n,a)=>{q[n]=a},"set_QC_PACKAGE")}}),v,de=w({"src/Export.ts"(){"use strict";Pt(),v=u(function(n){return ft(n)},"Export"),v.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"}}});async function Hn(n){d.debug(`Importing ${n}...`);function a(t){return d.debug(`Validating if ${t} is a package name...`),!t.startsWith(".")&&!t.startsWith("/")&&!t.includes("/")}p(a,"isPackage"),u(a,"isPackage");try{return!/\.[^/\\]+$/.test(n)&&!a(n)&&(d.debug(`${n} does not have an extension and is not a package. Adding js extension.`),n+=".js"),await import(n)}catch(t){d.warn(`Failed to load module: ${t}`)}}p(Hn,"_import_");var Lo=w({"src/_import_.ts"(){"use strict";S(),u(Hn,"_import_")}}),Ut,_,Xt,Sn,ie,Mt,L=w({"src/platform.ts"(){"use strict";Lo(),S(),Ut=typeof window<"u"&&"Deno"in window,_=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!Ut,Xt=typeof ye<"u",Sn=u(n=>{},"deno_require"),ie=u(n=>Ut?Sn(n):(a=>{let t;try{(async()=>{t=await Hn(a)})().then(e=>{t=e&&e.default||e}).catch(e=>{d.warn(`An error ocurred: ${e}`)})}catch(e){d.debug(`An error ocurred importing module. ${e}`),t={export:{}}}return t})(n),"_require_"),Mt=(function(){return typeof cordova<"u"})()}}),Ot,d,S=w({"src/Logger.ts"(){"use strict";var n;de(),L(),Ot=(n=class{constructor(){s(this,"debugEnabled",!0);s(this,"infoEnabled",!0);s(this,"warnEnabled",!0)}debug(t){this.debugEnabled&&console.log("\x1B[35m%s\x1B[0m",`[DEBUG][${performance.now().toLocaleString()}] ${t}`)}info(t){let e;this.infoEnabled&&(_?e="\x1B[103m%s\x1B[0m":e="\x1B[33m%s\x1B[0m",console.info(e,`[INFO][${performance.now().toLocaleString()}] ${t}`))}warn(t){this.warnEnabled&&console.warn("\x1B[31m%s\x1B[0m",`[WARN][${performance.now().toLocaleString()}] ${t}`)}},p(n,"Logger"),u(n,"Logger"),n),d=new Ot,v(d)}}),te,ce,oe=w({"src/Cast.ts"(){"use strict";S(),te=u(function(n,a){for(let t in n)if(typeof n[t]<"u")try{a[t]=n[t]}catch(e){d.debug(`An error ocurred: ${e}.`),d.warn(`Unable to cast ${(typeof n).toString()}.${typeof t.toString()} to ${(typeof a).toString()}.${typeof t.toString()}`)}return a},"_Cast"),ce=u(function(n,a,t=!0){for(let e in n)if(typeof n[e]<"u"&&typeof n[e]!="function")try{a[e]=n[e]}catch(o){t||d.debug(`An error ocurred: ${o}.`)}else if(typeof n[e]=="function")try{a[e]=n[e].bind(a)}catch(o){d.warn(o)}return a},"_CastProps")}}),B,In,Pn,Y=w({"src/DOMCreateElement.ts"(){"use strict";L(),B=u(function(n,a,t){let e;return _?e=Pn(n,a,t):e={},e},"_DOMCreateElement"),In=u((n,{props:a,children:t})=>n({props:a,children:t}),"ComplexTypeCall"),Pn=u((n,a,t)=>{if(typeof n!="string")return In(n,{props:a,children:t});let e=document.createElement(n);return a&&Object.entries(a).forEach(([o,i])=>{typeof i=="string"||typeof i=="number"?e.setAttribute(o,i.toString()):typeof i=="function"&&o.toLowerCase().startsWith("on")&&e.addEventListener(o.slice(2).toLowerCase(),i.bind(e))}),Array.isArray(t)?t.filter(o=>o instanceof Node).forEach(o=>{e.appendChild(o)}):t instanceof Node?e.appendChild(t):typeof t=="string"&&(e.innerHTML=t),e},"_DOMCreateComplexElement")}}),se,Zt,en=w({"src/IncrementInstanceID.ts"(){"use strict";se=0,Zt=u(()=>{se=typeof se>"u"||se===null?0:se+1},"IncrementInstanceID")}}),I,K,le=w({"src/introspection.ts"(){"use strict";I=u(n=>{let a=typeof n.prototype<"u"?n.prototype.toString:function(){return""};typeof n.prototype<"u"&&(n.prototype.toString=function(){let t=["__qcobjects__","__qcobjects_sdk__","__loaded__","ComplexStorageCache","css","append","attachIn","debug","info","warn","QC_Append","set","get","done","componentDone","_new_","__new__","Class","ClassFactory","New","Export","Package","Import","subelements","componentLoader","buildComponents","Controller","View","VO","Service","serviceLoader","JSONService","ConfigService","SourceJS","SourceCSS","ArrayList","ArrayCollection","Effect","Timer","sum","avg","table","max","min","range","matrix","matrix2d","matrix3d","unique","uniqueId","shortCode","NamespaceRef"],e;return t.includes(this.name)?e=this.name+"{ [QCObjects native code] }":e=a.call(this),e})},"_protected_code_"),I(Function),K=u(function(n){let a=[];for(let t in n)(typeof n[t]).toLowerCase()==="function"&&a.push(n[t]);return a},"_methods_")}}),P,x=w({"src/Package.ts"(){"use strict";lt(),ne(),P=u((n,a=[])=>{if(Object.hasOwn(q,n)&&typeof q[n]<"u"&&typeof q[n]!="string"&&Object.hasOwn(q[n],"length")&&q[n].length>0&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Ze(t,n)}),yt(n,q[n].concat(a));else if(typeof a<"u"&&typeof a<"u"&&Object.hasOwn(a,"length")&&a.length>0)a.forEach(t=>{Ze(t,n)}),yt(n,a);else if(Ue(a))typeof a.__definition>"u"&&(a.__definition={}),a.__definition.__namespace=n,a.__namespace=n,Ze(a,n),yt(n,[a]);else throw new Error(`An error ocurred. It was not possible to add classes to ${n}.`);return Object.hasOwn(q,n)?q[n]:[]},"Package")}}),j,$=w({"src/InheritClass.ts"(){"use strict";var n;S(),en(),oe(),Y(),z(),le(),mt(),L(),ne(),x(),j=(n=class{constructor(t){s(this,"__definition");s(this,"_body");s(this,"childs");s(this,"__instanceID");s(this,"__namespace");typeof t<"u"&&typeof t.__definition<"u"&&(this.__definition={...t.__definition});let e=this;if(typeof t<"u"&&t!==null&&Object.keys(t).filter(function(o){return isNaN(o)&&!["__instanceID","__classType","__definition"].includes(o)}).forEach(function(o){typeof e[o]=="function"?e[o]=t[o].bind(e):e[o]=t[o]}),Zt(),e.__instanceID||Object.defineProperty(e,"__instanceID",{value:se,writable:!1}),typeof e.__definition<"u"&&Object.keys(e.__definition).filter(function(o){return isNaN(o)&&!["name","__instanceID","__classType","__definition"].includes(o)}).forEach(function(o){typeof e.__definition[o]=="function"?e[o]=e.__definition[o].bind(e):e[o]=e.__definition[o]}),K(H[e.__classType]).map(function(o){return e[o.name]=o.bind(e),o}),K(e.__definition).map(function(o){return e[o.name]=o.bind(e),o}),e.body)if(typeof e.__definition>"u"||!Object.hasOwn(e.__definition,"body")||typeof e.__definition.body>"u")try{_?e.body=B(e.__definition.__classType):e.body={}}catch(o){d.debug(`An error ocurred: ${o}.`),e.body={}}else Object.hasOwn(e.__definition,"body")&&(e.body=e.__definition.body);try{if(e.__new__.call(e,t),typeof e=="object"&&Object.hasOwn(e,"_new_")&&typeof e._new_.isCalled>"u")try{e._new_(t),e._new_.isCalled=!0}catch(o){d.warn(`${e.__classType}._new_() failed with error: ${o}`)}}catch(o){d.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 e=u(function(r){return Object.hasOwn(r,"__classType")?r.__classType:G.call(t,r)},"__classType"),o=u(r=>typeof r<"u"&&typeof r.__proto__<"u"&&r.__proto__!==null?(e(r)!==""?[e(r)]:[]).concat(o(r.__proto__)):[],"__hierarchy__proto__");(typeof t>"u"||t===null)&&(t=this);let i=[];return i.push(e(t)),i=i.concat(o(t.__proto__)),i}__new__(t){ce(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"&&(d.debug("body style"),this.body&&(this.body.style=te(t,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let t=this;return this.constructor.hierarchy(t)}append(t){let e=t||this.body;if(d.debug("append: start"),ee(e,"Component")&&(d.debug("append: child is a Component"),d.debug(`appending the body of ${e.name}`)),typeof this.body<"u")if(d.debug("append element"),arguments.length>0){if(d.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(e);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(e);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(e)}else _&&(d.debug("append to body"),document.body.append(e))}attachIn(t){if(_){let e=document.subelements(t);for(let o=0,i=e.length;o<i;o++)e[o].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},p(n,"InheritClass"),u(n,"InheritClass"),n),P("com.qcobjects",[j])}}),Le,pt,ht=w({"src/isQCObjects.ts"(){"use strict";$(),Le=u(function(n){return!!(typeof n=="object"&&Object.hasOwn(n,"__classType")&&n.__instanceID&&Object.hasOwn(n,"__definition")&&typeof n.__definition<"u")||n instanceof j},"isQCObjects_Object"),pt=u(function(n){return!!(typeof n=="function"&&!n.__instanceID&&n.__definition&&typeof n.__definition<"u"&&n.__definition.__classType)||n.prototype instanceof j},"isQCObjects_Class")}}),ee,mt=w({"src/is_a.ts"(){"use strict";z(),ht(),ut(),ee=u((n,a)=>!!(typeof n<"u"&&n!==null&&((pt(n)||Le(n))&&n.hierarchy().includes(a)||G(n)===a||Ge(n)===a||typeof n===a)),"is_a")}}),qn,xo=w({"src/is_forbidden_name.ts"(){"use strict";qn=u(n=>["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID","function","Function"].indexOf(n)!==-1,"__is__forbidden_name__")}}),Rt,tn=w({"src/LegacyCopy.ts"(){"use strict";lt(),Rt=u(function(n,a){var e;let t;switch(!0){case typeof n=="string":t=n;break;case typeof n=="number":t=n;break;case typeof n=="object":t=[{...Object.keys(n).filter(o=>!a?.includes(o))}].map(o=>({[o]:n[o]})).reduce((o,i)=>Object.assign(o,i));break;case typeof n=="function":t=n.bind({});break;case Ue(n):t=(e=class extends n{},p(e,"_value_"),u(e,"_value_"),e);break;default:break}return t},"_LegacyCopy")}}),ge,Lt=w({"src/Class.ts"(){"use strict";ne(),oe(),Y(),z(),en(),le(),mt(),xo(),tn(),S(),L(),U(),ge=u((n,a,t)=>{var r,c;let e={},o,i;switch(!0){case(!n&&!a&&!t):return class{};case(!!n&&!a&&!t):o=(r=class{},p(r,"type"),u(r,"type"),r),i={};break;case(!!n&&!a&&!!t):o=(c=class{},p(c,"type"),u(c,"type"),c),i=t;break;case(!!n&&!!a&&!!t):o=a,i=t;break;default:return class{}}if(typeof n!="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(qn(n))throw new Error(`${n} is not an allowed word in the name of a class`);return typeof o.__definition=="object"&&o.__definition&&Object.keys(o.__definition).length!==0&&(i.__definition=Object.assign(Rt(o.__definition,["name"]),o)),e[o.name]=o,typeof i>"u"||i===null?i={}:i={...i},typeof i.__instanceID<"u"&&delete i.__instanceID,H[n]=class extends e[o.name]{constructor(m){super(m||{});s(this,"__instanceID");s(this,"__namespace");s(this,"__definition",{...i});s(this,"childs");s(this,"_body");let f=this;if(Zt(),f.__instanceID||Object.defineProperty(f,"__instanceID",{value:se,writable:!1}),typeof f.__definition<"u"&&Object.keys(f.__definition).filter(function(h){return isNaN(h)&&!["name","__instanceID","__classType","__definition"].includes(h)}).forEach(function(h){typeof f.__definition[h]=="function"?f[h]=f.__definition[h].bind(f):f[h]=f.__definition[h]}),K(H[f.__classType]).map(function(h){return f[h.name]=h.bind(f),h}),K(f.__definition).map(function(h){return f[h.name]=h.bind(f),h}),f.body)if(typeof f.__definition>"u"||!Object.hasOwn(f.__definition,"body")||typeof f.__definition.body>"u")try{_?f.body=B(f.__definition.__classType):f.body={}}catch(h){d.debug(`An error ocurred: ${h}.`),f.body={}}else Object.hasOwn(f.__definition,"body")&&(f.body=f.__definition.body);try{if(typeof f.__new__=="function"?f.__new__.call(f,m):typeof super.__new__=="function"&&(f.__new__=super.__new__.bind(f),f.__new__.call(f,m)),typeof f=="object"&&Object.hasOwn(f,"_new_")&&typeof f._new_.isCalled>"u")try{f._new_(m),f._new_.isCalled=!0}catch(h){d.warn(`${f.__classType}._new_() failed with error: ${h}`)}}catch(h){d.warn(h)}}get body(){return this._body}set body(m){this._body=m}static get __classType(){return Object.getPrototypeOf(this.constructor).name}get __classType(){return this.constructor.name}static hierarchy(m){let f=u(function(y){return Object.hasOwn(y,"__classType")?y.__classType:G.call(m,y)},"__classType"),h=u(y=>typeof y<"u"&&typeof y.__proto__<"u"&&y.__proto__!==null?(f(y)!==""?[f(y)]:[]).concat(h(y.__proto__)):[],"__hierarchy__proto__");(typeof m>"u"||m===null)&&(m=this);let g=[];return g.push(f(m)),g=g.concat(h(m.__proto__)),g}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}__new__(m){ce(m,this)}_new_(m){}getClass(){return Object.getPrototypeOf(this.constructor)}css(m){return typeof this.body<"u"&&typeof this?.body!="string"&&typeof this?.body?.style<"u"&&(d.debug("body style"),this.body&&(this.body.style=te(m,this?.body?.style))),typeof this.body!="string"?this?.body?.style:{}}hierarchy(){let m=this;return this.getClass()?.hierarchy(m)}append(m){let f=m||this.body;if(d.debug("append: start"),ee(f,"Component")&&(d.debug("append: child is a Component"),d.debug(`appending the body of ${f.name}`)),typeof this.body<"u")if(d.debug("append element"),arguments.length>0){if(d.debug("append to element"),typeof this.body!="string")if(typeof this.body?.append<"u")this?.body?.append(f);else throw Error("body.append is undefined. That means the body is not well formed.");else this.append(f);typeof this.childs>"u"&&(this.childs=[]),this.childs.push(f)}else _&&(d.debug("append to body"),document.body.append(f))}attachIn(m){if(_){let f=document.subelements(m);for(let h=0,g=f.length;h<g;h++)f[h].append(this)}else throw new Error("attachIn not yet implemented for non browser platforms")}},H[n]=ce(i,H[n]),H[n].__definition=i,H[n].__definition.__classType=n,A[n]=H[n],H[n]},"Class"),typeof ge.prototype<"u"&&(ge.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"})}}),M,W=w({"src/ClassFactory.ts"(){"use strict";lt(),ne(),M=u(n=>{let a;if(typeof n>"u"||n===null)throw Error("You need to pass a parameter {className}");if(n!==null&&n.indexOf(".")!==-1){let t=n.split(".").slice(0,n.split(".").length-1).join("."),e=n.split(".").slice(-1).join(""),i=(q[t]||[]).filter(r=>Ue(r)).reverse();if(i.length>0)a=i[0];else throw Error(`Class ${e} not found. Found classes: ${JSON.stringify(i)} in package ${t}`)}else if(n!==null){if(a=$n(n),typeof a>"u")throw new Error(`${n} is undefined.`)}else throw Error(`className is null. Unable to retrieve the class factory.
|
|
2
|
+
Not found in:
|
|
3
|
+
${Object.keys(H).join(`
|
|
4
|
+
`)}`);return a},"ClassFactory")}}),nt,nn=w({"src/Base64.ts"(){"use strict";var n;nt=(n=class{static encode(t){let e="",o,i,r,c,l,m,f,h=0;for(t=n._utf8_encode(t);h<t.length;)o=t.charCodeAt(h++),i=t.charCodeAt(h++),r=t.charCodeAt(h++),c=o>>2,l=(o&3)<<4|i>>4,m=(i&15)<<2|r>>6,f=r&63,isNaN(i)?m=f=64:isNaN(r)&&(f=64),e=e+this._keyStr.charAt(c)+this._keyStr.charAt(l)+this._keyStr.charAt(m)+this._keyStr.charAt(f);return e}static decode(t){let e="",o,i,r,c,l,m,f,h=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");h<t.length;)c=this._keyStr.indexOf(t.charAt(h++)),l=this._keyStr.indexOf(t.charAt(h++)),m=this._keyStr.indexOf(t.charAt(h++)),f=this._keyStr.indexOf(t.charAt(h++)),o=c<<2|l>>4,i=(l&15)<<4|m>>2,r=(m&3)<<6|f,e=e+String.fromCharCode(o),m!==64&&(e=e+String.fromCharCode(i)),f!==64&&(e=e+String.fromCharCode(r));return e=n._utf8_decode(e),e}static _utf8_encode(t){t=t.replace(/rn/g,"n");let e="";for(let o=0;o<t.length;o++){let i=t.charCodeAt(o);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(i&63|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(i&63|128))}return e}static _utf8_decode(t){let e="",o=0,i=0,r=0,c;for(;o<t.length;)i=t.charCodeAt(o),i<128?(e+=String.fromCharCode(i),o++):i>191&&i<224?(r=t.charCodeAt(o+1),e+=String.fromCharCode((i&31)<<6|r&63),o+=2):(r=t.charCodeAt(o+1),c=t.charCodeAt(o+2),e+=String.fromCharCode((i&15)<<12|(r&63)<<6|c&63),o+=3);return e}},p(n,"_Base64"),u(n,"Base64"),s(n,"_keyStr","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),n)}}),Gt,J,Fn,ue=w({"src/basePath.ts"(){"use strict";L(),Gt=Yt(Ye("node:process")),J=(function(){let n="";if(_){let a=document.baseURI.split("?")[0].split("/");a.pop(),n=a.join("/")+"/"}else typeof Gt.default<"u"?n=`${Gt.default.cwd()}/`:n="";return n})(),Fn=u(n=>{J=n},"setBasePath")}}),T,X=w({"src/DataStringify.ts"(){"use strict";tn(),T=u(n=>JSON.stringify(n,u(function(){let t=new WeakSet,e=0;return function(o,i){if(typeof i=="object"&&i!==null){if(t.has(i))return e+=1,e<=3?Rt(i):null;t.add(i)}return i}},"getCircularReplacer")()),"_DataStringify")}}),We,gt=w({"src/domain.ts"(){"use strict";We=typeof location<"u"&&location.hostname!==""?location.hostname:"localhost"}}),F,fe=w({"src/New.ts"(){"use strict";F=u(function(n,a={}){return a=arguments.length>1?a:{},typeof n>"u"?new Object:new n(a)},"New"),F.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"}}}),ke,on=w({"src/secretKey.ts"(){"use strict";L(),ke=_?location.host:"secret"}}),V,Bn,Kt,xt=w({"src/Crypt.ts"(){"use strict";var n;nn(),X(),$(),x(),on(),V=(n=class extends j{constructor(){super(...arguments);s(this,"string","");s(this,"key","");s(this,"last_string","");s(this,"last_key","");s(this,"construct",!1)}encrypt(e,o){throw new Error("Method not implemented.")}decrypt(e,o){throw new Error("Method not implemented.")}_new_(e){let o=e.string,i=Object.hasOwn(e,"key")?e.key:"";this.__new__(e),i=i===""?this.__instanceID.toString():i,this.last_key=i,this.last_string=o,this.construct=!0}_encrypt(){let e=this.string,o=this.key,i="",r,c;for(let l=0;l<e.length;l++)r=e.substr(l,1),c=o.substr(l%o.length-1,1),r=String.fromCharCode(r.charCodeAt(0)+c.charCodeAt(0)),i+=r;return this.last_string=nt.encode(i),this.last_string}_decrypt(){let e=this.string,o=this.key,i="",r,c;e=nt.decode(e);for(let l=0;l<e.length;l++)r=e.substr(l,1),c=o.substr(l%o.length-1,1),r=String.fromCharCode(r.charCodeAt(0)-c.charCodeAt(0)),i+=r;return this.last_string=i,this.last_string}static encrypt(e,o){return new n({string:e,key:o!==""?o:"12345678ABC"})._encrypt()}static decrypt(e,o){return new n({string:e,key:o!==""?o:"12345678ABC"})._decrypt()}},p(n,"__Crypt"),u(n,"_Crypt"),n),Bn=u(function(a){return V.encrypt(T(a),ke)},"_CryptObject"),Kt=u(function(a){return a===""?{}:JSON.parse(V.decrypt(a,ke))},"_DecryptObject"),P("com.qcobjects",[V])}}),re,jo=w({"src/ConfigSettings.ts"(){"use strict";var n;ue(),$(),x(),re=(n=class extends j{constructor(){super(...arguments);s(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:J});s(this,"_CONFIG_ENC","")}set(e,o){this._CONFIG[e]=o}get(e,o){return this._CONFIG[e]||o}static get instance(){return typeof n._instance>"u"&&(n._instance=new n),n._instance}},p(n,"_ConfigSettings"),u(n,"ConfigSettings"),s(n,"_instance"),n),P("com.qcobjects",[re])}}),C,Q=w({"src/CONFIG.ts"(){"use strict";var n;ue(),oe(),xt(),X(),S(),Qe(),on(),x(),$(),jo(),C=(n=class extends j{get _CONFIG_ENC(){return re.instance._CONFIG_ENC}get _CONFIG(){return re.instance._CONFIG}set(t,e){d.debug(`CONFIG.set ${t}: ${e}`),t==="basePath"&&Fn(e);let o;try{o=(function(i){i._CONFIG_ENC===null&&(i._CONFIG_ENC=V.encrypt(T({}),ke));let r=i._CONFIG_ENC.valueOf(),c=i._CONFIG?.valueOf();return ce(c,Kt(r))})(re.instance)}catch(i){o={},console.error(i),d.debug("failed to encrypt config")}o[t]=e,re.instance._CONFIG_ENC=Bn(o),re.instance.set(t,e)}get(t,e){let o;try{let r=(function(c){c._CONFIG_ENC===null&&(c._CONFIG_ENC=V.encrypt(T({}),ke));let l=c._CONFIG_ENC.valueOf(),m=c._CONFIG.valueOf();return ce(m,Kt(l))})(re.instance);typeof r[t]<"u"&&(o=r[t])}catch(r){console.error(r),d.debug("Something wrong when trying to get CONFIG values"),d.debug("No config value for: "+t),o=e}let i=Z.processObject(o);return o===null&&i===null?null:i||e}static get instance(){return typeof n._instance>"u"&&(n._instance=new n),n._instance}static set(t,e){n.instance.set(t,e)}static get(t,e){return n.instance.get(t,e)}},p(n,"_CONFIG"),u(n,"CONFIG"),s(n,"_instance"),n),P("com.qcobjects",[C])}}),De,Z,Qe=w({"src/Processor.ts"(){"use strict";var n;Q(),$(),fe(),U(),x(),De=(n=class extends j{constructor({component:e,processors:o}){super({component:e});s(this,"processors",{config(e,o){return C.get(o,"")},ENV(e,o){return typeof process<"u"?process.env[o]:""},global(e,o){return typeof A<"u"?A[o]:""}});s(this,"component");typeof o<"u"&&(this.processors=Object.assign(o,n.instance.processors))}static get instance(){return typeof n._instance>"u"&&(n._instance=new n({component:null})),n._instance}static setProcessor(e){typeof e=="function"&&e.name!==""&&(n.instance.processors[e.name]=e)}setProcessor(e){typeof e=="function"&&e.name!==""&&(this.processors[e.name]=e)}static getProcessor(e){return n.instance.processors[e]}static getProcessorNames(){return Object.keys(n.instance.processors)}execute(e,o,i){let r=typeof e<"u"&&e!==null?e.processorHandler:this;return r?.processors[o].bind(r).apply(r,[e,i?.split(",")])}static process(e,o=null){return n.instance.process(e,o)}process(e,o=null){let i=o!==null?o.processorHandler:F(n,{component:null});return typeof e=="string"&&Object.keys(i.processors).map(r=>[...e.matchAll(new RegExp("\\$"+r+"\\((.*)\\).*","g"))].map(function(c){let l=`$${r}(${c[1]})`;return e=e.replace(l,i.execute.bind(i).call(i,o,r,c[1])),c})),e}static processObject(e,o){return e==null?e:n.instance.processObject(e,o)}processObject(e,o=null){if(e==null)return e;let i=o===null?this:o.processorHandler;return typeof i>"u"&&(i=new n({component:o})),typeof e=="object"?Object.keys(e).map(r=>(typeof e[r]=="object"&&!Object.hasOwn(e[r],"call")?e[r]=i?.processObject.bind(i)(e[r],o):typeof e[r]=="string"&&(e[r]=i?.process.bind(i)(e[r],o)),r)):typeof e=="string"&&(e=i.process.bind(i)(e,o)),e}},p(n,"_Processor"),u(n,"Processor"),s(n,"_instance"),n),Z=De.instance,P("com.qcobjects",[De])}}),Un,Gn,Jt,Do=w({"src/routings.ts"(){"use strict";Un=u((n,a)=>{let t=n.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...a.matchAll(new RegExp(t,"g"))][0].groups}},"__routing_params__"),Gn=u(function(n,a){return n.filter(function(t){let e=t.path.replace(/{(.*?)}/g,"(?<$1>.*)");return new RegExp(e,"g").test(a)}).reverse()},"__valid_routings__"),Jt=u((n,a)=>n.includes(a),"__valid_routing_way__")}});function He(n,a){let e=class e{constructor(i,r=[]){s(this,"func");s(this,"args");this.func=i,this.args=r}dispatch(){this.func.apply(this,...a,this)}};p(e,"AsyncCallback"),u(e,"AsyncCallback");let t=e;return bt.push(new t(n,a)),t}p(He,"asyncLoad");var bt,rn,jt=w({"src/asyncLoad.ts"(){"use strict";de(),L(),U(),bt=[],u(He,"asyncLoad"),rn=u(()=>{_?document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&bt.map(function(n){n.dispatch.call(n)})}):typeof A.global<"u"&&bt.map(function(n){n.dispatch.call(n)})},"_fireAsyncLoad"),v(He)}}),qe,Dt=w({"src/ComplexStorageCache.ts"(){"use strict";var n;nn(),X(),S(),qe=(n=class{constructor(t){let e,o,i=t.index;if(typeof i<"u"){e=t.load,o=t.alternate;let r=this.getID(i),c=localStorage.getItem(r);if(this.isEmpty(c)){let l=e.call(null,{cachedObjectID:r,cachedResponse:c,cache:this});this.save(i,l),d.debug("RESPONSE OF {{cachedObjectID}} CACHED".replace("{{cachedObjectID}}",r))}else o.call(null,{cachedObjectID:r,cachedResponse:c,cache:this}),d.debug("RESPONSE OF {{cachedObjectID}} IS ALREADY CACHED ".replace("{{cachedObjectID}}",r))}else throw new Error("ComplexStorageCache: index is undefined");return this}getItem(t){let e=localStorage.getItem(t);return this.isEmpty(e)?null:JSON.parse(e)}setItem(t,e){localStorage.setItem(t,T(e))}isEmpty(t){let e=!1;switch(!0){case typeof t>"u":case(typeof t=="string"&&t===""):case(typeof t=="string"&&t==="undefined"):case(typeof t=="number"&&t===0):case t===null:e=!0;break;default:e=!1}return e}getID(t){let e;return typeof t<"u"&&(e="cachedObject_"+nt.encode(T(t).replace(/\{|\}|,/g,"_"))),e}save(t,e){let o=this.getID(t);d.debug("CACHING THE RESPONSE OF {{cachedObjectID}} ".replace("{{cachedObjectID}}",o)),this.setItem(o,e)}getCached(t){let e=this.getID(t);return this.getItem(e)}clear(){Object.keys(localStorage).filter(function(t){return t.startsWith("cachedObject_")}).map(function(t){return localStorage.removeItem(t),t})}},p(n,"ComplexStorageCache"),u(n,"ComplexStorageCache"),n)}}),_t,$t=w({"src/serviceLoader.ts"(){"use strict";jt(),Dt(),X(),S(),L(),U(),_t=u(function(n,a=!1){let t=u(function(c){var l=new Promise(function(m,f){d.debug("LOADING SERVICE DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",T(c.data)).replace("{{URL}}",c.url));let h=new XMLHttpRequest;h.withCredentials=c.withCredentials,h.open(c.method,c.url,!0);for(let b in c.headers)try{typeof c.headers[b]!="function"&&h.setRequestHeader(b,c.headers[b])}catch(O){d.debug("Something went wrong when assign the header "+b),d.debug(`An error ocurred: ${O}`)}h.onload=function(){if(h.status===200){let O=h.responseText;if(d.debug("Data received {{DATA}}".replace("{{DATA}}",T(O))),d.debug("CREATING SERVICE {{NAME}}".replace("{{NAME}}",c.name)),c.template=O,c.cached&&typeof E<"u"&&E.save(c.name,c.template),typeof c.done=="function"){var b={request:h,service:c};c.done.call(c,b),m.call(l,b)}}else if(typeof c.fail=="function"){var b={request:h,service:c};c.fail.call(c,b),f.call(l,b)}};let y=u(function(){d.debug("SENDING THE NORMAL REQUEST ");try{h.send(T(c.data))}catch(b){d.debug("SOMETHING WRONG WITH REQUEST "),d.debug(`An error ocurred: ${b}`),f.call(l,{request:h,service:c})}},"_directLoad");if(c.cached){var E=new qe({index:c.data,load(){y.call(this)},alternate(b){if(c.method==="GET"){if(c.template=b.cache.getCached(c.name),typeof c.done=="function"){let O={request:h,service:c};c.done.call(c,O),m.call(l,O)}}else y()}});A.lastCache=E}else y();return h});return l},"_serviceLoaderInBrowser"),e=u(function(c){var l=new Promise(function(m,f){if(typeof URL>"u"){global.URL=ie("url").URL;let b=global.URL}let h=new URL(c.url);var g;c.useHTTP2=Object.hasOwn(c,"useHTTP2")&&c.useHTTP2;let y=u(function(b){d.debug("LOADING SERVICE DATA (non-browser) {{DATA}} FROM {{URL}}".replace("{{DATA}}",T(c.data)).replace("{{URL}}",c.url));let O,N={http2Client:E,request:b,service:c,responseHeaders:null};if(typeof c.data=="object"&&c.data!==null&&c.useHTTP2)try{d.debug("Sending data...");let D=new Buffer(T(c.data));b.write(D)}catch(D){d.debug("It was not possible to send any data"),d.debug(`An error ocurred: ${D}`)}O="",b.on("response",D=>{d.debug("receiving response..."),N.responseHeaders=D,O=""}),b.on("data",D=>{d.debug("receiving data..."),O+=""+D.toString(),c.template=O}),c.useHTTP2&&b.resume(),b.on("end",()=>{d.debug("ending call..."),c.template=O,Object.hasOwn(c,"useHTTP2")&&c.useHTTP2?E.destroy():b.destroy(),c.done.call(c,N),m.call(l,N)}),c.useHTTP2&&b.end()},"captureEvents");try{let b;if(c.useHTTP2){d.debug("using http2");var E=ie("http2").connect(h.origin);b=Object.assign({":method":c.method,":path":h.pathname},c.options),b=Object.assign(b,c.headers),g=E.request(b),g.setEncoding("utf8"),y(g)}else if(h.protocol==="http:"){let N=ie("http").request;b=Object.assign({url:c.url,headers:c.headers},c.options),g=N(c.url),y(g)}else if(h.protocol==="https:"){let O=ie("https");b=Object.assign({hostname:h.hostname,port:h.port,path:h.pathname,method:c.method,headers:c.headers},c.options),O.request(b,function(D){y(D)}).end()}else{let O="Protocol not supported: "+h.protocol;throw d.debug(O),new Error(O)}}catch(b){d.debug(b),c.fail.call(c,b),f.call(l,b)}}).catch(m=>{d.debug(`Something happened when trying to call the service: ${c.name}. Error: ${m}`),c.fail.call(c,m)});return l},"_serviceLoaderInNode"),o=u(function(c){var l=new Promise(function(m){d.debug(`Calling mockup service ${c.name} ...`);let f={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.mockup=="function"?c.mockup.call(c,f):c.done.call(c,f),m.call(l,f)});return l},"_serviceLoaderMockup"),i=u(function(c){var l=new Promise(function(m){d.debug(`Calling local service ${c.name} ...`);let f={request:null,service:c,responseHeaders:c.responseHeaders};typeof c.local=="function"?c.local.call(c,f):c.done.call(c,f),m.call(l,f)});return l},"_serviceLoaderLocal"),r;switch(n.kind){case"rest":_?typeof a<"u"&&a?r=He(t,[n,a]):r=t(n):r=e(n);break;case"mockup":r=o(n);break;case"local":r=i(n);break;default:d.debug(`The value of the kind property of the service ${n.name} is not valid`),r=Promise.resolve();break}return r},"serviceLoader")}}),kt,sn=w({"src/tag_filter.ts"(){"use strict";kt="quick-component:not([loaded]),component:not([loaded])"}}),ot,an=w({"src/componentLoader.ts"(){"use strict";jt(),Dt(),X(),S(),L(),U(),ot=u(function(n,a){let t,e=u(function(r){return t=new Promise(function(c,l){let m=r.__promise__;if((Object.hasOwn(r,"container")&&typeof r.container<"u"&&r.container!==null?r.container:r.body)!==null){let E=u(function(O){O.feedComponent();let N={request:g,component:O};c.call(m,N)},"_feedComponent_");d.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",T(r.data)).replace("{{URL}}",r.url));let b=u(function(){let O=h?0:200;if(g.status===O){let N=g.responseText;d.debug("Data received {{DATA}}".replace("{{DATA}}",T(N))),d.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",r.name)),r.template=N,r.cached&&typeof y<"u"&&y.save(r.name,r.template),E(r)}else{let N={request:g,component:r};l.call(m,N)}},"_componentLoaded");if(typeof r.template=="string"&&r.template!=="")E(r);else{var h=!!r.url.startsWith("file:"),g=new XMLHttpRequest;if(h)"fetch"in A&&(d.debug("I can use fetch..."),d.debug("It is a file to be loaded, so I will try to use fetch"),fetch(r.url).then(N=>{d.debug("I got a response from fetch, so I'll feed the component"),N.text().then(D=>{r.template=D,E(r)}).catch(D=>{throw new Error(`An error ocurred: ${D}`)})}).catch(N=>{throw new Error(`An error ocurred: ${N}`)}));else try{d.debug("Calling the url of component in async mode."),g.open(r.method,r.url,!0)}catch(N){d.debug(`An error ocurred: ${N}.`),d.debug("Last try has failed... The component cannot be loaded.")}!Mt&&!h&&g.setRequestHeader("Content-Type","text/html"),h||(g.onload=b);let O=u(function(N){N=!(typeof N>"u"||!N),d.debug("SENDING THE NORMAL REQUEST "),N?"fetch"in A||(d.debug("I have to try to load the file using xhr... "),g.send(null),g.status===XMLHttpRequest.DONE&&b()):(d.debug("Trying to send the data to the component... "),g.send(T(r.data)))},"_directLoad");if(r.cached&&!h){d.debug("USING CACHE FOR COMPONENT: "+r.name);var y=new qe({index:r.cacheIndex,load(){O.call(this,h)},alternate(N){r.method==="GET"?(r.template=N.cache.getCached(r.cacheIndex),E.call(this,r)):O.call(this,h)}});A.lastCache=y}else d.debug("NOT USING CACHE FOR COMPONENT: "+r.name),O(h)}}else d.debug("CONTAINER DOESNT EXIST")}),t.then(function(c){return r.__done__().then(function(){let l;return typeof r.done=="function"&&(l=r.done.call(r,c)),Promise.resolve(l)})},function(c){return typeof r.fail=="function"&&r.fail.call(r,c).catch(l=>{throw new Error(`${l}`)}),Promise.reject(new Error("An error ocurred"))}).catch(function(c){throw d.debug("Something wrong loading the component"),new Error(`An error ocurred: ${c}`)}),t},"_componentLoaderInBrowser"),o=u(function(r){return t=new Promise(function(c,l){let m=t,f=u(function(y){y.feedComponent().catch(b=>{throw new Error(`An error ocurred trying to feed the component: ${y.name}. Error: ${b}`)});let E={request:null,component:y};c.call(m,E)},"_feedComponent_");d.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",T(r.data)).replace("{{URL}}",r.url));let h=u(function(y,E){if(y){let b={request:null,component:r};l.call(m,b)}else{let b=E.toString();d.debug("Data received {{DATA}}".replace("{{DATA}}",T(b))),d.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",r.name)),r.template=b,r.cached&&typeof g<"u"&&g.save(r.name,r.template),f(r)}},"_componentLoaded");if(typeof r.template=="string"&&r.template!=="")f(r);else{d.debug("Loading the component as a local file in server...");let y=u(function(){let{readFile:E}=Ye("node:fs");d.debug("SENDING THE NORMAL REQUEST "),E(r.url,h)},"_directLoad");if(r.cached){d.debug("USING CACHE FOR COMPONENT: "+r.name);var g=new qe({index:r.cacheIndex,load(){y()},alternate(E){r.method==="GET"?(r.template=E.cache.getCached(r.cacheIndex),f.call(this,r)):y.call(this)}});A.lastCache=g}else d.debug("NOT USING CACHE FOR COMPONENT: "+r.name),y()}}),t.then(function(c){return r.__done__().then(function(){let l;return typeof r.done=="function"&&(l=r.done.call(r,c)),Promise.resolve(l)})},function(c){return typeof r.fail=="function"&&r.fail.call(r,c).catch(l=>{throw new Error(`An error ocurred: ${l}`)}),Promise.reject(new Error("An error ocurred."))}).catch(function(c){d.debug(`Something wrong loading the component: ${c}`)}),t},"_componentLoaderInNode"),i;return _?typeof a<"u"&&a?i=He(e,[n,a]):i=e(n):i=o(n),i},"componentLoader")}}),_e,cn=w({"src/Component.ts"(){"use strict";var n;nn(),ue(),oe(),W(),Ht(),X(),gt(),Y(),z(),$(),le(),mt(),ht(),S(),fe(),x(),L(),Qe(),Do(),U(),Q(),$t(),sn(),an(),_e=(n=class extends j{constructor({__parent__:e,templateURI:o="",template:i,tplsource:r="default",tplextension:c,url:l="",name:m="",method:f="GET",data:h={},reload:g=!1,shadowed:y=!1,cached:E=!0,enableServiceClass:b,assignRoutingParams:O=!0,_body:N=B("div"),__promise__:D=null,__shadowRoot:ze,body:Co,shadowRoot:Eo,splashScreenComponent:Oo,controller:vo,view:Ao}){if(arguments.length<1)throw Error("No arguments in component. You must at least give one argument.");super({__parent__:e,templateURI:o,template:i,tplsource:r,tplextension:c,url:l,name:m,method:f,data:h,reload:g,shadowed:y,cached:E,enableServiceClass:b,assignRoutingParams:O,_body:N,__promise__:D,__shadowRoot:ze,body:Co,shadowRoot:Eo,splashScreenComponent:Oo,controller:vo,view:Ao});s(this,"name");s(this,"templateURI");s(this,"url");s(this,"tplsource");s(this,"tplextension");s(this,"template");s(this,"validRoutingWays",["pathname","hash","search"]);s(this,"basePath",J);s(this,"domain",We);s(this,"templateHandler","DefaultTemplateHandler");s(this,"processorHandler");s(this,"routingWay",null);s(this,"routingNodes",[]);s(this,"routings",[]);s(this,"routingPath","");s(this,"routingPaths",[]);s(this,"_componentHelpers",[]);s(this,"subcomponents",[]);s(this,"splashScreenComponent");s(this,"controller");s(this,"routingController");s(this,"view");s(this,"effect");s(this,"effectClass");s(this,"method","GET");s(this,"cached",!0);s(this,"__promise__",null);s(this,"data");s(this,"__namespace");s(this,"_parsedAssignmentText");s(this,"__shadowRoot");s(this,"_serviceClassName",null);s(this,"enableServiceClass",!0);s(this,"serviceInstance");s(this,"serviceData");s(this,"shadowed",!1);s(this,"container");s(this,"innerHTML");s(this,"reload");s(this,"assignRoutingParams",!0);s(this,"responseTo");let R=this;typeof m<"u"&&(R.name=m),typeof R.name>"u"&&typeof m>"u"&&d.warn("A name is not defined for "+G(R)),R.routingWay=C.get("routingWay"),R.processorHandler=new De({component:R}),R.data=typeof R.data>"u"||R.data===null?{}:R.data,R.data=Object.assign(R.data,R.dataAttributes),R.createServiceInstance().then(()=>{typeof R.__new__=="function"&&R.__new__(R),R._generateRoutingPaths(R.body).then(function(){R._reroute_().then(function(){return R.rebuild().then(function(){d.info(`Component._new_ The component ${R.name} was built successfully!`)}).catch(function(pe){d.warn(`Component._new_ Something went wrong building the component ${R.name}`),console.error(`Component._new_ Something went wrong building the component ${R.name}`,pe)})}).catch(pe=>{throw Error(`Unexpected error ${pe}`)})}).catch(pe=>{throw Error(`Unexpected error ${pe}`)})}).catch(pe=>{throw Error(`Unexpected error. ${pe}`)})}set cacheIndex(e){d.debug("[cacheIndex] This property is readonly")}get cacheIndex(){let e=this,o=T(e.routingPath);return nt.encode(e.name+o)}set parsedAssignmentText(e){d.debug("[parsedAssignmentText] This property is readonly")}get parsedAssignmentText(){let e=this;if(e._parsedAssignmentText=e.parseTemplate(e.template),typeof e._parsedAssignmentText>"u")throw Error(`[Component][${this.name}][parsedAssignmentText] Could not generate content!`);return e._parsedAssignmentText}set shadowRoot(e){let o=this;typeof o.__shadowRoot>"u"?o.__shadowRoot=e:d.debug("[shadowRoot] This property can only be assigned once!")}get shadowRoot(){return this.__shadowRoot}set routingSelected(e){d.debug("[routingSelected] This is a read-only property of the component")}get routingSelected(){let e=this;return Gn(e.routings,e.routingPath)}set routingParams(e){d.debug("[routingParams] This is a read-only property of the component")}get routingParams(){let e=this;return[{}].concat(e.routingSelected.map(function(o){return Un(o,e.routingPath)})).reduce(function(o,i){return Object.assign(o,i)})}set serviceClassName(e){this._serviceClassName=e}get serviceClassName(){let e="";return _?e=this.body.getAttribute("serviceClass")!==null?this.body.getAttribute("serviceClass"):this._serviceClassName:e=this._serviceClassName,e}get responseToData(){let e=!1;return _?e=this.body.getAttribute("response-to")==="data"||this.responseTo==="data":e=this.responseTo==="data",e}get responseToTemplate(){let e=!1;return _?e=this.body.getAttribute("response-to")==="template"||this.responseTo==="template":e=this.responseTo==="template",e}createServiceInstance(){let e=this,o=this.data,i,r=e.getClass().__definition,c=e.serviceClassName;return new Promise(function(l,m){let f=e.enableServiceClass,h=e.responseToData,g=e.responseToTemplate;if(f&&c!==null&&(i=M(c)),!h&&r&&Object.hasOwn(r,"responseTo")?h=r.responseTo==="data":!h&&Object.hasOwn(M("Component"),"responseTo")&&(h=M("Component").responseTo==="data"),!g&&r&&Object.hasOwn(r,"responseTo")?g=r.responseTo==="template":!g&&Object.hasOwn(M("Component"),"responseTo")&&(g=M("Component").responseTo==="template"),typeof i<"u"&&typeof f<"u"&&f===!0&&(h||g)){d.info("Loading service "+c);let y=F(i,{data:o});_t(y)?.then(function({service:E}){let b;typeof E.JSONresponse<"u"&&E.JSONresponse!==null?b=E.JSONresponse:b=E.template,h&&(typeof o=="object"&&typeof b=="object"?o=Object.assign(o,b):o=b,e.data=o),e.serviceInstance=y,e.serviceData=o,g&&(e.template=b),l(b)},function(E){d.debug(`Service loading rejected for ${c} in ${e.name}`),m(E)}).catch(function(E){throw d.debug("Something went wroing while trying to load the service "+c),Error(`Error loading ${c} for ${e.name}. Detail: ${E}`)})}else l(null)})}_bindroute_(){let e=this;e._bindroute_.loaded?d.debug(`Routes already bound to popstate events for ${e.name}`):(_&&e.hostElements("a").map(function(o){return o.oldclick=o.onclick,o.onclick=function(i){let r=!0;A.global.get("routingPaths")||A.global.set("routingPaths",[]);let c=C.get("routingWay"),l=i.target[c];return A.global.get("routingPaths").includes(l)&&i.target[c]!==location[c]&&i.target.href!==document.location.href?(d.debug("A ROUTING WAS FOUND: "+l),window.history.pushState({href:i.target.href},i?.target?.href,i.target.href),n.route().catch(m=>{throw Error(`Unexpected error: ${m}`)}),r=!1):d.debug("NO ROUTING FOUND FOR: "+l),typeof i.target.oldclick<"u"&&typeof i.target.oldclick=="function"&&i.target.oldclick.call(i.target,i),r},null}),e._bindroute_.loaded=!0)}done(e){return new Promise(i=>{if(typeof e<"u"){let{request:r,component:c}=e;i({request:r,component:c})}else i({request:void 0,component:void 0})})}createControllerInstance(){let e;if(_){if(typeof this.body>"u")throw new Error("The component has no body");var o=this.body.getAttribute("controllerClass");o||(o="Controller"),e=M(o),typeof e<"u"&&(this.controller=F(e,{component:this}))}return new Promise((i,r)=>{if(_&&typeof e<"u"&&typeof this.controller<"u"){if(typeof this.controller.done=="function")try{this.controller.done.call(this.controller)}catch(c){throw Error(c)}else d.debug(`${o} does not have a done() method.`),r(new Error(`${o} does not have a done() method.`));typeof this.controller.createRoutingController=="function"?this.controller.createRoutingController.call(this.controller):d.debug(`${o} does not have a createRoutingController() method.`)}i({component:this,controller:this.controller})})}createEffectInstance(){let e=this;return new Promise(function(o){if(_){let i=e.body?.getAttribute("effectClass"),r=e.body?.getAttribute("apply-effect-to");r=r!==null?r:"load",i!==null&&r==="observe"?e.applyObserveTransitionEffect(i):i!==null&&r==="load"&&e.applyTransitionEffect(i)}o({component:e,effect:e.effect})})}createViewInstance(){let e=this;return new Promise(function(o){let i=_?e.body.getAttribute("viewClass"):null;if(i!==null){let r=M(i);typeof r<"u"&&(e.view=F(r,{component:e}),Object.hasOwn(e.view,"done")&&typeof e.view?.done=="function"&&e.view?.done.call(e.view))}o({component:e,view:e.view})})}__done__(){let e=this,o=u(function(){if(typeof e>"u")throw new Error("componentDone() has lost its context");if(typeof e.body>"u")throw new Error("The component has no body");(async()=>{await e.createViewInstance(),await e.createControllerInstance(),await e.createEffectInstance()})().catch(i=>{throw new Error(`Unknown error ${i}.`)}),d.debug(`Trying to run component helpers for ${e.name}...`);try{e.runComponentHelpers(),d.debug(`Component helpers for ${e.name} executed.`)}catch(i){throw d.debug(`Component helpers for ${e.name} could not be executed.`),Error(i)}e.subcomponents=e.__buildSubComponents__(),e._bindroute_(),_&&e.body.setAttribute("loaded","true")},"componentDone");return new Promise(function(i,r){try{i(o.call(e))}catch(c){r(new Error(c))}})}hostElements(e){let o=this,i=[];return _&&(i=o.shadowed&&typeof o.shadowRoot<"u"?o.shadowRoot.subelements(e):o.body.subelements(e)),i}get subtags(){let e=this,o=kt;return e.hostElements(o)}get bodyAttributes(){let o=this.body;return _?[...o.getAttributeNames()].map(i=>({[i]:o.getAttribute(i)})).reduce((i,r)=>Object.assign(i,r)):{}}get dataAttributes(){let o=this.body;return _?[{}].concat([...o.getAttributeNames()].filter(i=>i.startsWith("data-")).map(i=>({[i.split("-")[1]]:o.getAttribute(i)}))).reduce((i,r)=>Object.assign(i,r)):{}}__buildSubComponents__(e=!1){let o=this,i=o.subtags;return e||(i=i.filter(r=>r.getAttribute("loaded")!=="true")),(typeof o<"u"||o.subcomponents.length<1)&&(o.subcomponents=vt(i,o)),o.subcomponents}fail(e){return new Promise((i,r)=>{if(typeof e<"u"){let{error:c,component:l}=e;i({error:c,component:l})}else r(new Error(" Unknown error."))})}set(e,o){this[e]=o}get(e,o){return this[e]||o}feedComponent(){let e=this;d.debug(`[Component][${this.name}][feedComponent] start feeding component...`);let o=u(function(c){if(typeof c.container>"u"&&typeof c.body>"u"){d.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,m=c.parsedAssignmentText;if(c.innerHTML=m,c.shadowed){d.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",c.name)),d.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let f=B("div");l.subelements("[slot]").map(g=>(g.parentElement===l&&f.appendChild(g),g)),d.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",c.name));let h=B("div");h.classList.add("shadowHost");try{c.shadowRoot=h.attachShadow({mode:"open"})}catch(g){d.debug(`An error ocurred: ${g}.`);try{d.debug("Shadowed COMPONENT {{NAME}} is repeated".replace("{{NAME}}",c.name)),c.shadowRoot=h.shadowRoot}catch(y){d.debug(`An error ocurred: ${y}.`),d.warn("Shadowed COMPONENT {{NAME}} is not allowed on this browser".replace("{{NAME}}",c.name))}}if(typeof c.shadowRoot<"u"&&c.shadowRoot!==null){c.reload?(d.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),h!==null&&h.shadowRoot!==null&&(h.shadowRoot.innerHTML=c.innerHTML)):(f.innerHTML=c.parseTemplate(f.innerHTML),d.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),h!==null&&h.shadowRoot!==null&&(h.shadowRoot.innerHTML+=c.innerHTML)),d.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),h.innerHTML+=f.innerHTML,d.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",c.name));let g=l.querySelector(".shadowHost");typeof g<"u"&&g!==null?(d.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",c.name)),c.shadowRoot!==null&&h.shadowRoot!==null&&(c.shadowRoot.innerHTML=h.shadowRoot.innerHTML)):l.appendChild(h)}else d.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",c.name))}else c.reload?(d.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",c.name)),l.innerHTML=c.innerHTML):l&&c?(d.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",c.name)),l.innerHTML+=c.innerHTML):d.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",c.name))},"_feedComponent_InBrowser"),i=u(function(c){let l=c.parsedAssignmentText;c.innerHTML=l},"_feedComponent_InNode"),r;return ee(e,"Component")?new Promise((c,l)=>{if(_)try{r=o(e),c(r)}catch(m){l(new Error(m))}else try{r=i(e),c(r)}catch(m){l(new Error(m))}}):(d.warn("Trying to feed a non component object"),Promise.reject(new Error(`Trying to feed a non component object ${typeof e}`)))}rebuild(){let e=this;var o=new Promise(function(i,r){if((typeof e>"u"||e===null)&&r(new Error("Component is undefined")),Le(e)&&ee(e,"Component"))switch(!0){case e.get("tplsource")==="none":d.debug("Component "+e.name+" has specified template-source=none, so no template load was done");var c={request:void 0,component:e};e.__done__().then(function(){typeof e.done=="function"&&e.done.call(e,c).catch(l=>{d.debug(`It was an error while calling done() in ${e.name}: ${l}`)}),i.call(o,c)},function(){r.call(o,c)});break;case e.get("tplsource")==="inline":d.debug("Component "+e.name+" has specified template-source=inline, so it is assumed that template is already declared"),(async l=>{await l.feedComponent.bind(l)()})(e).catch(l=>{d.debug(`It was not possible to feed the component ${e.name}: ${l}`)});var c={request:void 0,component:e};e.__done__().then(async()=>{typeof e.done=="function"&&await e.done(c),i.call(o,c)},function(){r.call(o,c)});break;case(e.get("tplsource")==="default"&&e.get("templateURI")!==""):e.set("url",e.get("basePath")+e.get("templateURI")),ot(e,!1)?.then(function(l){i.call(o,l)},function(l){r.call(o,l)});break;case(e.get("tplsource")==="external"&&e.get("templateURI")!==""):e.set("url",e.get("templateURI")),ot(e,!1).then(function(l){i.call(o,l)},function(l){r.call(o,l)});break;case(e.get("tplsource")==="default"&&e.get("templateURI","")===""):d.debug(`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`),r.call(o,`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`);break;default:d.debug("Component "+e.name+" will not be rebuilt because no templateURI is present"),r.call(o,{request:null,component:e});break}});return o}Cast(e){let o=K(e).map(i=>i.name.replace(/bound /g,"")).map(i=>({[i]:e[i].bind(this)})).reduce((i,r)=>Object.assign(i,r),{});return te(this,o)}route(){return this.constructor.route()}static route(){let e=this,o,i=!!(Le(e)&&ee(e,"Component")),r=u(function(c){let l=[],m=c.filter(function(f){return typeof f<"u"}).map(function(f){if(typeof f.name<"u")l.push(f.name);else throw new Error(G(f)+" does not have a name");return new Promise(function(h,g){typeof f<"u"&&f._reroute_?f._reroute_().then(function(){f.reload=!0,f.rebuild().then(()=>{h()}).catch(y=>{d.debug(`Error ${y}`)})}).then(function(){if(Object.hasOwn(f,"subcomponents")&&typeof f.subcomponents<"u"&&f.subcomponents.length>0)return d.debug("LOOKING FOR ROUTINGS IN SUBCOMPONENTS FOR: "+f.name),r.call(f,f.subcomponents);d.debug("No subcomponents to look for routings in: "+f.name),f.subtags.length>0&&(f.subcomponents=f.__buildSubComponents__(!0)),h()}).catch(y=>{d.debug(`Error: ${y}`)}):typeof f<"u"&&g(new Error("Component "+f.name+" is not an instance of Component"))})});return Promise.all(m).then(function(){d.debug("ROUTING COMPLETED FOR "+l.join(", "))}).catch(function(f){d.warn("ROUTING FAILED FOR "+l.join(", ")+": "+f)})},"__route__");if(i||st)i&&d.debug("loading routings for instance "+e.name),o=r.call(e,i?e.subcomponents:st);else throw d.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(_){let e=this.body;e.requestFullscreen?e.requestFullscreen().catch(o=>{throw new Error(`An error ocurred when requesting fullscreen: ${o}`)}):e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}closefullscreen(){_&&(document.exitFullscreen?document.exitFullscreen().catch(e=>{throw new Error(`An error ocurred when trying to exit fullscrenn ${e}.`)}):document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}_generateRoutingPaths(e){let o=this;return new Promise(function(i){_&&Jt(o.validRoutingWays,o.routingWay||"")&&typeof e<"u"&&(o.innerHTML=e?.innerHTML,o.routingNodes=e?.subelements("routing"),o.routings=[],o.routingNodes.map(r=>{let c=r.getAttributeNames(),l={};return c.map((m,f)=>(l[c[f]]=r.getAttribute(c[f]),m)),o.routings.push(l),o.routingPaths||(o.routingPaths=[]),o.routingPaths.includes(l.path)||o.routingPaths.push(l.path),A.global.get("routingPaths")||A.global.set("routingPaths",[]),A.global.get("routingPaths").includes(l.path)||A.global.get("routingPaths").push(l.path),r})),i()})}parseTemplate(e){let o=this,i,r=e;if(Object.hasOwn(o,"templateHandler")){let c=o.templateHandler;d.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${c} ...`);let l=M(c),m=F(l,{component:o,template:r});m.component=o;let f=o.data;if(Object.hasOwn(o,"assignRoutingParams")&&o.assignRoutingParams)try{f=Object.assign(f,o.routingParams)}catch(h){d.debug(`An error ocurred: ${h}.`),d.debug("[parseTemplate] it was not possible to assign the routing params to the template")}i=m.assign(f)}else d.debug(`[Component][${this.name}][parseTemplate] No value for templateHandler. Using raw content...`),i=r;return i}_reroute_(){let e=this;return new Promise(function(o){_&&Jt(e.validRoutingWays,e.routingWay||"")&&(e.routingPath=location[e.routingWay],e.routingSelected.map(i=>{let r=rt({COMPONENTS_BASE_PATH:C.get("componentsBasePath"),COMPONENT_NAME:i.name.toString(),TPLEXTENSION:Object.hasOwn(i,"tplextension")?i.tplextension||"":e.tplextension,TPL_SOURCE:"default"});return e.templateURI=r,i}),e.routingSelected.length>0&&(e.template="",typeof e.body<"u"&&e.body!==null&&(e.body.innerHTML=""))),o(e)})}lazyLoadImages(){if(_){let o=this.componentRoot;if(typeof o<"u"&&o!==null){let i=[...o.subelements("img[lazy-src]")],r=u(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,m)=>{l.forEach(f=>{f.isIntersecting&&(r(f.target),m.unobserve(f.target))})});i.map(function(l){return c.observe(l)})}else i.map(r)}}return null}applyTransitionEffect(e){let o=M(e);if(typeof o>"u")throw Error(`${e} not found.`);typeof o<"u"&&ee(o,"TransitionEffect")?(this.effect=F(o,{component:this}),this.effect?.apply(this.effect?.defaultParams)):d.debug(`${e} is ${G(o)} but is not a TransitionEffect`)}applyObserveTransitionEffect(e){if(_){let o=this,i=o.componentRoot,r=u(function(){o.applyTransitionEffect(e)},"_applyEffect_");"IntersectionObserver"in window?new IntersectionObserver((l,m)=>{l.forEach(f=>{f.isIntersecting&&(r(),m.unobserve(f.target))})}).observe(i):r()}}get componentRoot(){return this.shadowed?this.shadowRoot:this.body}scrollIntoHash(){if(_){let e=this;document.location.hash!==""&&(e.componentRoot?.subelements(document.location.hash)).map(i=>(typeof i.scrollIntoView=="function"&&i.scrollIntoView(C.get("scrollIntoHash",{behavior:"auto",block:"top",inline:"top"})),i))}}i18n_translate(){if(_&&C.get("use_i18n")){let e=this,o=e.componentRoot,i=C.get("lang","en"),r=navigator.language.slice(0,2),c=A.global.get("i18n");i!==r&&typeof c=="object"&&Object.hasOwn(c,"messages")&&u(()=>new Promise(function(m){let f=c.messages.filter(function(h){return Object.hasOwn(h,i)&&Object.hasOwn(h,r)});(o?.subelements("ul,li,h1,h2,h3,a,b,p,input,textarea,summary,details,option,component")).map(h=>(f.map(function(g){let y=h.innerHTML;return y=y?.replace(new RegExp(`${g[i]}`,"g"),g[r]),h.innerHTML=y,null}),h)),m()}),"callback_i18n").call(e).then(function(){d.debug("i18n loaded for component: "+e.name)}).catch(m=>{throw new Error(`An error ocurred when parsing i18n: ${m}.`)})}}addComponentHelper(e){this._componentHelpers.push(e)}runComponentHelpers(){if(_){let e=this,o=[];o.push(e.i18n_translate.bind(e)),o.push(e.scrollIntoHash.bind(e)),o.push(e.lazyLoadImages.bind(e)),o=o.concat(e._componentHelpers),o.map(i=>(d.debug(`Executing ${i.name} as component helper for ${e.name}...`),i(),i))}}},p(n,"_Component"),u(n,"Component"),s(n,"shadowed",!1),s(n,"cached",!0),s(n,"subcomponents"),s(n,"responseTo"),n),P("com.qcobjects",[_e]),K(M("Component")).map(a=>(I(a),a))}}),rt,Mn,vt,Wn,Ht=w({"src/ComponentFactory.ts"(){"use strict";Lt(),W(),cn(),Q(),Y(),z(),S(),fe(),x(),L(),sn(),rt=u(({TPL_SOURCE:n,COMPONENTS_BASE_PATH:a,COMPONENT_NAME:t,TPLEXTENSION:e})=>n==="default"?`${a}${t}.${e}`:"","ComponentURI"),Mn=u((n,a)=>{let t=n.getAttribute("shadowed")===null,e=n.getAttribute("template-source")===null,o=n.getAttribute("shadowed")==="true",i=n.getAttribute("cached")===null,r=n.getAttribute("cached")==="true",c=typeof C.get("tplextension")<"u"?C.get("tplextension"):"html";c=n.getAttribute("tplextension")!==null?n.getAttribute("tplextension"):c;let l=n.getAttribute("name"),m=n.getAttribute("componentClass")!==null?n.getAttribute("componentClass"):"Component",f=C.get("preserveComponentBodyTag")?l!==null?"com.qcobjects.components."+l+".ComponentBody":"com.qcobjects.components.ComponentBody":m;l=l!==null?l:M(f)&&typeof M(f).name<"u"?M(f).name:"";let h=M(f),g=f!=="Component"&&typeof h<"u"&&typeof h.tplsource=="string"&&h.tplsource!=="",y=e&&g?h.tplsource:e?"default":n.getAttribute("template-source");d.debug(`template source for ${l} is ${y} `),d.debug(`type for ${l} is ${G(h)} `);let E=rt({COMPONENTS_BASE_PATH:C.get("componentsBasePath"),COMPONENT_NAME:l,TPLEXTENSION:c,TPL_SOURCE:y});return C.get("preserveComponentBodyTag")&&P(l!==""?"com.qcobjects.components."+l:"com.qcobjects.components",[ge("ComponentBody",_e,{name:l,tplsource:y,tplextension:c,reload:!0})]),u(function(){let N=t?h&&h.shadowed||_e.shadowed:o,D={__parent__:a,name:l,cached:i?_e.cached:r,shadowed:N,tplextension:c,body:C.get("preserveComponentBodyTag")?B("componentBody"):n,templateURI:E,tplsource:y};(typeof l>"u"||l===""||l===null)&&delete D.name,E===""&&delete D.templateURI;let ze=F(h,D);return C.get("preserveComponentBodyTag")&&typeof ze<"u"&&n.append(ze.body),ze},"__create_component_instance_")()},"_buildComponentFromElement_"),vt=u((n,a)=>{let t=[];return _?t=n.map(function(e){return Mn(e,a)}):d.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),t},"_buildComponentsFromElements_"),Wn=u(n=>{let a=kt,t=n.subelements(a);return vt(t,null)},"buildComponents")}}),wt,Ct,At,Qn=w({"src/Service.ts"(){"use strict";var n,a,t;ue(),xt(),gt(),$(),S(),x(),on(),Q(),wt=(n=class extends j{constructor(){super(...arguments);s(this,"options");s(this,"withCredentials");s(this,"useHTTP2");s(this,"name");s(this,"responseHeaders");s(this,"kind","rest");s(this,"domain",We);s(this,"basePath",J);s(this,"url","");s(this,"method","GET");s(this,"data",{});s(this,"reload",!1);s(this,"cached",!1);s(this,"headers");s(this,"template")}mockup({request:i,service:r}){throw new Error("Method not implemented.")}local({request:i,service:r}){throw new Error("Method not implemented.")}done({request:i,service:r}){throw new Error("Method not implemented.")}fail(...i){throw new Error("Method not implemented.")}set(i,r){this[i]=r}get(i,r){return this[i]||r}},p(n,"Service"),u(n,"Service"),n),Ct=(a=class extends wt{constructor(){super(...arguments);s(this,"method","GET");s(this,"cached",!1);s(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});s(this,"JSONresponse")}done(i){d.debug("***** RECEIVED RESPONSE:"),d.debug(i.service.template),this.JSONresponse=JSON.parse(i.service.template)}},p(a,"JSONService"),u(a,"JSONService"),a),At=(t=class extends Ct{constructor(){super();s(this,"method","GET");s(this,"cached",!1);s(this,"configFileName","config.json");s(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});s(this,"JSONresponse");this.set("url",`${this.get("basePath")}${this.get("configFileName")}`)}configLoaded(){throw Error("Method not implemented.")}done(i){if(d.debug("***** CONFIG LOADED:"),d.debug(i.service.template),this.JSONresponse=JSON.parse(i.service.template),Object.hasOwn(this.JSONresponse,"__encoded__")){let c=V.decrypt(this.JSONresponse?.__encoded__,ke);this.JSONresponse=JSON.parse(c)}let r=this.JSONresponse;Object.keys(r).map(c=>(C.set(c,r[c]),c)),this.configLoaded().catch(c=>{throw new Error(`An error ocurred: ${c}`)})}fail(){this.configLoaded().catch(i=>{throw new Error(`An error ocurred: ${i}`)})}},p(t,"ConfigService"),u(t,"ConfigService"),t),P("com.qcobjects.api",[wt]),P("com.qcobjects.api.services",[Ct]),P("com.qcobjects.api.config",[At])}}),Fe,dn=w({"src/globalSettings.ts"(){"use strict";var n;Q(),$(),S(),x(),L(),$t(),U(),Qn(),Fe=(n=class extends j{constructor(){super(...arguments);s(this,"_GLOBAL",{});s(this,"_logger",new Ot)}static __start__(){return n.instance.__start__()}static get instance(){return typeof n._instance>"u"&&(n._instance=new n),n._instance}get logger(){return this._logger}set logger(e){this._logger=e}set(e,o){this._GLOBAL[e]=o}get(e,o){let i;return typeof this._GLOBAL[e]<"u"?i=this._GLOBAL[e]:typeof o<"u"&&(i=o),i}__start__(){let e=u(function(){let i;return _?i=new Promise(function(r,c){"serviceWorker"in navigator&&typeof C.get("serviceWorkerURI")<"u"&&(C.set("serviceWorkerScope",C.get("serviceWorkerScope")?C.get("serviceWorkerScope"):"/"),navigator.serviceWorker.register(C.get("serviceWorkerURI"),{scope:C.get("serviceWorkerScope")}).then(function(l){d.debug("Service Worker Registered"),r.call(i,l)},function(l){d.debug("Error registering Service Worker"),c.call(i,l)}),navigator.serviceWorker.ready.then(function(l){d.debug("Service Worker Ready"),r.call(i,l)},function(l){d.debug("Error loading Service Worker"),c.call(i,l)}))}):i=Promise.resolve(),i},"__load__serviceWorker"),o=u(function(){return new Promise(i=>{if(_){d.debug("Starting to building components");try{ln()}catch(r){throw Error(`Something went wrong trying to start components tree: ${r.message}`)}d.debug("Initializing the service worker"),e.call(A).catch(function(r){d.debug(`error loading the service worker ${r}`)})}i()})},"_buildComponents");return new Promise(i=>{d.debug("Starting to load the config settings..."),C.get("useConfigService",!1)?(d.debug("Loading settings using local configuration file..."),un(new At),et.configLoaded=o,_t(et)?.then(r=>{i(r)})?.catch(r=>{throw new Error(`An error ocurred while trying to load ${et.url}: ${r}`)})):(d.debug("Starting to load the components..."),o.call(this).then(()=>{i({})}).catch(r=>{throw new Error(`An error ocurred while trying to build the components stack. ${r}`)}))})}},p(n,"_GlobalSettings"),u(n,"GlobalSettings"),s(n,"_instance"),n),P("com.qcobjects",[Fe])}}),Vn={};jn(Vn,{_top:p(()=>A,"_top"),buildComponentsStack:p(()=>ln,"buildComponentsStack"),componentsStack:p(()=>st,"componentsStack"),configService:p(()=>et,"configService"),get:p(()=>fn,"get"),resetTop:p(()=>Nt,"resetTop"),set:p(()=>$e,"set"),setConfigService:p(()=>un,"setConfigService")});var A,st,Nt,ln,et,un,$e,fn,Rn,U=w({"src/top.ts"(){"use strict";Ht(),oe(),dn(),Lt(),W(),de(),L(),ne(),S(),A=typeof ye<"u"&&typeof ye.exports<"u"&&ye.exports||typeof global<"u"&&global||typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof self<"u"&&self!==null&&self||void 0,A.lastCache=void 0,st=[],Nt=u(()=>{let n=Fe.instance;A=ce(n,A,!0)},"resetTop"),ln=u(()=>{st=Wn(document)},"buildComponentsStack"),un=u(n=>{A.global.configService=n,et=n},"setConfigService"),$e=u((n,a)=>{A[n]=a},"set"),fn=u((n,a)=>A[n]||a,"get"),Nt(),Rn=u(function(n){Object.hasOwn(n,"PackagesList")||Object.defineProperty(n,"PackagesList",{set:u(a=>{d.debug("PackagesList is readonly")},"set"),get:u(()=>Qt(),"get")}),Object.hasOwn(n,"PackagesNameList")||Object.defineProperty(n,"PackagesNameList",{set:u(a=>{d.debug("PackagesNameList is readonly")},"set"),get:u(()=>Wt(),"get")}),Object.hasOwn(n,"ClassesList")||Object.defineProperty(n,"ClassesList",{set:u(a=>{d.debug("ClassesList is readonly")},"set"),get:u(()=>Vt(),"get")}),Object.hasOwn(n,"ClassesNameList")||Object.defineProperty(n,"ClassesNameList",{set(a){d.debug("ClassesNameList is readonly")},get:u(()=>kn(),"get")})},"_define_props"),_&&(ge("GLOBAL",H.global),v(M("GLOBAL"))),_&&typeof window<"u"?$e("global",window):_&&typeof globalThis<"u"&&$e("global",globalThis),Rn(A)}}),xe,pn,Kn=w({"src/captureFalseTouch.ts"(){"use strict";if(S(),L(),xe=!1,pn=u(()=>xe?{passive:!0}:!1,"captureFalseTouch"),_)try{let n=Object.defineProperty({},"passive",{get(){return xe=!0,xe}});window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}catch(n){d.debug(`An error ocurred: ${n}.`),xe=!1}else xe=!1}}),it,hn=w({"src/range.ts"(){"use strict";le(),it=u((n,a=0,t=1)=>((a===0||typeof a>"u")&&(a=n,n=0),Array.from({length:(a-n)/t+1},function(e,o){return n+o*t})),"range"),I(it)}}),mn,Jn=w({"src/defaultProcessors.ts"(){"use strict";S(),Qe(),U(),hn(),mn=u(()=>{(function(n){let a=u((r,c,l)=>{if(typeof r>"u"||r===null)throw Error(`mapper.${c}.${l} does not have a component instance or it is null.`);let m=n.global.get(l),f=r.get(l),h=r.data[l],g=typeof h<"u"?h:typeof f<"u"?f:m,y="";return typeof g<"u"&&typeof g.map<"u"?y=g.map(function(E){let b=[...Object.keys(E)].map(O=>` data-${O}="${typeof E[O]<"u"&&E[O]!==null?E[O].toString():""}"`).join("");return`<quick-component name="${c}" ${b} ></quick-component>`}).join(""):d.debug(`${c}.${l} does not have a map property`),y},"mapper");Z.setProcessor(a);let t=u(function(r,c,l){let m=`
|
|
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
|
+
`,h={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:m};return Object.hasOwn(h,c)?h[c]:""},"layout");Z.setProcessor(t);let e=u((r,c,l,...m)=>{let f=[...m].map(function(g){return{[g.split("=")[0]]:g.split("=")[1]}}).reduce(function(g,y){return Object.assign(g,y)}),h=[...Object.keys(f)].map(function(g){return`${g}=${f[g]}`}).join(" ");return`<component name="${c}" componentClass="${l}" ${h}></component>`},"component");Z.setProcessor(e);let o=u((r,c,l,...m)=>{let f=[...m].map(function(g){return{[g.split("=")[0]]:g.split("=")[1]}}).reduce(function(g,y){return Object.assign(g,y)}),h=[...Object.keys(f)].map(function(g){return`${g}=${f[g]}`}).join(" ");return`<quick-component name="${c}" componentClass="${l}" ${h}></quick-component>`},"quick_component");Z.setProcessor(o);let i=u((r,c,l)=>it(c).map(function(m){return l.replace("{{index}}",m.toString())}).join(""),"repeat");Z.setProcessor(i)})(A)},"setDefaultProcessors")}}),Ln,Be,gn=w({"src/findPackageNodePath.ts"(){"use strict";Q(),de(),S(),L(),Ln=Yt(Ye("node:fs")),Be=u(function(n){let a=null;if(!_)try{let t=[`${C.get("projectPath")}${C.get("relativeImportPath")}`,`${C.get("basePath")}${C.get("relativeImportPath")}`,`${C.get("projectPath")}`,`${C.get("basePath")}`,`${C.get("relativeImportPath")}`,`${process.cwd()}${C.get("relativeImportPath")}`,`${process.cwd()}/node_modules/`+n,`${process.cwd()}/node_modules`,`${process.cwd()}`,"node_modules","./",""].concat(ye.paths);t=t.filter(e=>Ln.default.existsSync(e+"/"+n)),t.length>0?(a=t[0],d.info(n+" is Installed.")):(a="",d.info(`${n} is not in a standard path.`))}catch(t){console.log(t)}return a},"findPackageNodePath"),v(Be)}}),at,_n=w({"src/Import.ts"(){"use strict";ue(),Q(),X(),Y(),gn(),S(),L(),ne(),at=u(function(n,a,t){t!==void 0&&d.debug(`[Import] Setting external=${t.toString()} resource to import: ${n}`),t?d.debug(`[Import] Registering external resource to import: ${n}`):d.debug(`[Import] Registering local resource to import: ${n}`);let e;return _?(e=new Promise(function(o,i){let r=u(function(){let l=!1,m=0;for(let f in q)m++;return m<Xe.length?l=!1:l=!0,l},"allPackagesImported"),c=u(function(l){Xe.push(a),r()&&Xe.map(m=>he.push(m)),_&&C.get("removePackageScriptAfterLoading")&&l.target.remove(),o.call(e,{_imported_:l.target,_package_name_:n})},"readyImported");if(!Object.hasOwn(q,n)){let l=B("script");l.type=C.get("sourceType","text/javascript"),l.async=!!C.get("asynchronousImportsLoad"),l.onreadystatechange=function(){l.readyState==="complete"&&c(l)},l.onload=c,l.onerror=function(m){d.debug(`An error ocurred: ${m}.`),i.call(e,{_imported_:l,_package_name_:n})},l.src=t?C.get("remoteImportsPath")+n+".js":J+C.get("relativeImportPath")+n+".js",document.getElementsByTagName("head")[0].appendChild(l)}}),e.catch(function(){d.debug("Import: Error loading a package ")})):e=new Promise(function(o,i){try{let r=Be(n),c="";if(r!==null)c=r+"/"+n;else{let l=Be(n+".js");l!==null?c=l+"/"+n+".js":c=J+C.get("relativeImportPath")+n}try{o.call(e,{_imported_:ie(`${c}`),_package_name_:n})}catch(l){i.call(e,{_imported_:null,_package_name_:n,error:l})}}catch(r){i.call(e,{_imported_:null,_package_name_:n,error:r})}}).catch(function(o){d.debug("Something happened when importing "+n),console.warn(o)}),e.catch(function(o){d.warn(T(o))}),e},"Import"),at.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),k,yn=w({"src/mathFunctions.ts"(){"use strict";k=u(function(n){return isNaN(n)?new Number(0):new Number(n)},"__to_number")}}),bn,zn=w({"src/NamespaceRef.ts"(){"use strict";ht(),x(),bn=u(function(n){let t=(P(n)||[]).filter(e=>pt(e)).map(e=>({[e.__definition.__classType]:e})).reduce((e,o)=>Object.assign(e,o));return n.split(".").map(e=>({[e]:t})).reverse().reduce((e,o)=>(o[Object.keys(o).join(".")]=e,o))},"NamespaceRef")}}),me,wn,tt,Yn=w({"src/Ready.ts"(){"use strict";Q(),L(),ne(),U(),me=u(n=>{_?he.push(n.bind(window)):typeof global<"u"&&he.push(n.bind(global))},"Ready"),wn=me,tt=u(n=>{let a=u(()=>{he.map(function(t,e){typeof t=="function"&&(t(),he.splice(e,1))})},"_execReady");C.get("delayForReady")>0?_?setTimeout(a.bind(window),C.get("delayForReady")):typeof global<"u"&&setTimeout(a.bind(global),C.get("delayForReady")):a.call(A)},"_Ready")}}),Tt,Xn,Zn=w({"src/ArrayCollection.ts"(){"use strict";var n,a;W(),S(),fe(),yn(),Tt=(n=class extends Array{constructor(){super(...arguments);s(this,"prototype")}unique(){return this.filter(function(o,i,r){return r.indexOf(o)===i})}table(){console.table(this)}sum(){return this.reduce((o,i)=>k(o)+k(i),0)}avg(){return this.length<1?0:this.reduce((o,i)=>(k(o)+k(i))/2)}min(){return this.reduce((o,i)=>k(o)<=k(i)?o:i,1/0)}max(){return this.reduce((o,i)=>k(o)>=k(i)?o:i,0)}sortBy(o,i){let r=i?function(c,l){return l[o]<c[o]?1:-1}:function(c,l){return l[o]>c[o]?1:-1};return this.sort(r)}matrix(o,i){return Array.from({length:o},u(()=>i,"x_func"))}matrix2d(o,i){let r=u(function(){return i},"y_func");return Array.from({length:o},u(function(){return Array.from({length:o},r)},"x_func"))}matrix3d(o,i){let r=u(function(){return Array.from({length:o},function(){return i})},"y_func");return Array.from({length:o},u(function(){return Array.from({length:o},r)},"x_func"))}},p(n,"ArrayList"),u(n,"ArrayList"),n),Xn=(a=class{constructor(){s(this,"source",F(Tt,[]))}changed(e,o){d.debug("VALUE CHANGED"),d.debug(e),d.debug(o)}push(e){let o=this;return d.debug("VALUE ADDED"),d.debug(e),o.source.push(e)}pop(){let e=this;return d.debug("VALUE POPPED"),e.source.pop()}_new_(e){let o=this,i=0;o.source=F(M("ArrayList"),e);for(let r in o.source)isNaN(r)||(d.debug("binding "+r.toString()),(function(c){Object.defineProperty(o,c,{set(l){d.debug("setting "+c+"="+l),o.source[c]=l,o.changed(c,l)},get(){return o.source[c]}})})(r),i++);o.source.length=i,Object.defineProperty(o,"length",{get(){return o.source.length}})}},p(a,"ArrayCollection"),u(a,"ArrayCollection"),a)}}),Et,St,eo=w({"src/Tag.ts"(){"use strict";var n;W(),fe(),x(),L(),Zn(),Et=(n=class extends Tt{show(){this.map(function(t){return t.style.opacity=1})}hide(){this.map(function(t){return t.style.opacity=0})}effect(...t){let e=[...t].slice(1),o=t[0],i;(typeof o).toLowerCase()==="string"&&(i=M(o)),this.map(function(r){return i.apply.apply(i,[r].concat(e))})}findElements(t){let e=F(M("TagElements"));if(_)for(let o in this)typeof o=="number"&&typeof this[o]!="function"&&Object.hasOwn(this[o],"subelements")&&e.push(this[o].subelements(t));return e}},p(n,"TagElements"),u(n,"TagElements"),n),St=u(function(a,t){let e=F(Et);if(_){let o=document.subelements(a),i=[];for(let r=0;r<o.length;r++)typeof t<"u"&&Object.hasOwn(o[r],"innerHTML")&&(o[r].innerHTML=t),i.indexOf(r)<0&&(e.push(o[r]),i.push(r))}return e},"Tag"),P("com.qcobjects",[Et,St])}}),Cn,to=w({"src/shortCode.ts"(){"use strict";xt(),Cn=u(()=>{let a=V.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...V.encrypt((Math.random()*1e3).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString())].map((o,i)=>[...a][i]===o?null:o).filter(o=>o!==null).join("")},"shortCode")}}),It,no=w({"src/super.ts"(){"use strict";W(),It=u(function(n,a){return M(n)[a]},"_super_"),It.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),En,oo=w({"src/waitUntil.ts"(){"use strict";S(),En=u((n,a)=>{let t=u((e,o)=>{let r=0;var c=setInterval(function(){o()?(clearInterval(c),e(),d.debug("Ejecuting "+e.name+" after wait")):r<2e3?(r+=1,d.debug("WAIT UNTIL "+e.name+" is true, "+r.toString()+" cycles")):(d.debug("Max execution time for "+e.name+" expression until true"),clearInterval(c))},1)},"_waitUntil");setTimeout(function(){t(n,a)},1)},"waitUntil")}}),je,ro=w({"src/subelements.ts"(){"use strict";je=u(p(function(a){return[...this.querySelectorAll(a)]},"subelements2"),"subelements")}}),xn,so,$o=w({"src/loadSDK.ts"(){"use strict";Q(),gn(),_n(),S(),L(),xn=u(()=>{C.get("useSDK")&&(function(){let n=C.get("remoteImportsPath"),a=!C.get("useLocalSDK");C.set("remoteImportsPath",C.get("remoteSDKPath"));let t=!1,e="QCObjects-SDK";if(_)t=!0;else{let o=Be("qcobjects-sdk");o!==null?(e="qcobjects-sdk",t=!0):o!==""?(e="node_modules/qcobjects-sdk/QCObjects-SDK",t=!0):t=!1}t?(d.info("Importing SDK... "+e),Xt&&typeof Ye<"u"?ie("qcobjects-sdk")?d.debug("QCObjects SDK was loaded OK."):d.debug("QCObjects SDK could not be imported."):at(e,function(){a?d.debug("QCObjects-SDK.js loaded from remote location"):d.debug("QCObjects-SDK.js loaded from local"),C.set("remoteImportsPath",n)},a)?.catch(o=>{throw new Error(`An error ocurred when trying to import: ${o}`)})):d.debug("SDK has not been imported as it is not available at the moment")})()},"loadSDK"),so=xn}}),ko=Mo({"src/MainProcess.ts"(){"use strict";U(),jt(),Kn(),oe(),Lt(),W(),cn(),Ht(),an(),Q(),X(),Jn(),de(),_n(),le(),ht(),S(),yn(),zn(),fe(),ut(),x(),L(),Yn(),$t(),eo(),Qe(),mt(),z(),to(),Y(),Dt(),no(),oo(),ro(),dn(),$o(),hn(),u(p(function n(a){if(typeof Object.defineProperty<"u"&&typeof a<"u")try{Object.defineProperty(a,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:n})}catch(t){d.debug(`An error ocurred: ${t}`),typeof a.__qcobjects__<"u"&&(a.__qcobjects__.loaded=!0)}typeof a.__qcobjects__.loaded>"u"&&(a.__qcobjects__.loaded=!0,_&&(Element.prototype.subelements=je,Document.prototype.subelements=je,HTMLElement.prototype.subelements=je,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=je)),d.debugEnabled=!1,d.infoEnabled=!0,_&&(Element.prototype.find=function(t){let e=this,o=[],i=document.subelements(t);return i.map((r,c)=>(typeof i[c]<"u"&&i[c].parentNode.tagName===e.parentNode.tagName&&o.push(te(r,new Object)),r)),o}),_&&(Element.prototype.append=u(p(function(e){Le(e)||typeof e.body<"u"?this.appendChild(e.body):this.appendChild(e)},"QC_Append"),"QC_Append"),Element.prototype.render=u(p(function(e){let o=this,i=u((r,c)=>{if(typeof document.implementation.createHTMLDocument<"u"){let l=document.implementation.createHTMLDocument("");l.body.innerHTML=c,l.body.subelements("*").map(m=>r.append(m))}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=e}catch(r){d.debug(`An error ocurred: ${r}`),i(o,e)}else i(o,e)},"QC_Render"),"QC_Render")),v(En),v(It),v(qe),v(M),v(B),v(Cn),v(G),v(ee),P("com.qcobjects",[De]),_&&(Element.prototype.Cast=u(p(function(e){return te(this,e)},"QC_Cast"),"QC_Cast")),_?(window.onload=tt,Mt&&document.addEventListener("deviceready",tt,pn)):global.onload=tt,_&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),_e.route().catch(e=>{throw new Error(`An error ocurred when trying to load initial routes. ${e}`)})}),v(_t),v(ot),v(rt),v(Ge),v(T),v(pt),v(Le),v(bn),Array.prototype.unique=function(){return this.filter(function(t,e,o){return o.indexOf(t)===e})},Array.unique=function(t){return t.unique()},I(Array.unique),I(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(t){t.table()},I(Array.table),I(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(t,e){return k(t)+k(e)},0)},Array.sum=function(t){return t.sum()},I(Array.sum),I(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(t,e){return(k(t)+k(e))/2})},Array.avg=function(t){return t.avg()},I(Array.avg),I(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(t,e){return k(t)<=k(e)?t:e},1/0)},Array.min=function(t){return t.min()},I(Array.min),I(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(t,e){return k(t)>=k(e)?t:e},0)},Array.max=function(t){return t.max()},I(Array.max),I(Array.prototype.max),Array.prototype.sortBy=function(t,e=!0){let o=e?function(i,r){return r[t]<i[t]?1:-1}:function(i,r){return r[t]>i[t]?1:-1};return this.sort(o)},Array.sortBy=function(t,e,o=!0){return t.sortBy(e,o)},I(Array.sortBy),I(Array.prototype.sortBy),Array.prototype.matrix=function(t,e=0){return Array.from({length:t},u(function(i=void 0){return e},"x_func"))},Array.matrix=function(t,e,o=0){return t.matrix(e,o)},I(Array.matrix),I(Array.prototype.matrix),Array.prototype.matrix2d=function(t,e=0){let o=u(function(r){return e},"y_func");return Array.from({length:t},u(function(r){return Array.from({length:t},o)},"x_func"))},Array.matrix2d=function(t,e,o=0){return t.matrix2d(e,o)},I(Array.matrix2d),I(Array.prototype.matrix2d),Array.prototype.matrix3d=function(t,e=0){let o=u(function(r){return Array.from({length:t},function(){return e})},"y_func");return Array.from({length:t},u(function(r){return Array.from({length:t},o)},"x_func"))},Array.matrix3d=function(t,e,o=0){return t.matrix3d(e,o)},I(Array.matrix3d),I(Array.prototype.matrix3d),String.prototype.list=function(){let t=this;return it(0,t.length-1).map(function(e){return t[e]})},I(String.prototype.list),mn(),me(function(){C.get("useSDK")||Fe.__start__().catch(t=>{throw Error(t)})}),v(v),v(at),v(P),v(ge),v(F),v(St),v(me),v(wn),v(_),v(K),v(Fe),so(),_&&He(function(){me(function(){(function(t){let e=!1,o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),i=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function r(c){let l=Math.round(t.scrollY*100/o),m=Math.round(t.scrollX*100/i),f=new CustomEvent("scrollpercent",{detail:{percentX:m,percentY:l}});c.target.dispatchEvent(f);let h="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(y){return y===l}).map(function(y){h="percentY"+l.toString();let E=new CustomEvent(h,{detail:{percentX:m,percentY:l}});return c.target.dispatchEvent(E),y})}p(r,"scrollDispatcher"),u(r,"scrollDispatcher"),document.addEventListener("scroll",function(c){e||(requestAnimationFrame(function(){r(c),e=!1}),e=!0)})})(a)})},[]),_||(typeof a.global<"u"&&Object.hasOwn(a.global,"_fireAsyncLoad")&&rn.call(a),typeof a.global<"u"&&Object.hasOwn(a.global,"onload")&&a.global.onload.call(a)),(function(t){let e=u(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");t&&C.get("secureObjects",!1)?me(function(){e()}):C.get("secureObjects",!1)&&e()})(_))},"__qcobjects__"),"__qcobjects__")(A)}}),io={};jn(io,{ArrayCollection:p(()=>Xn,"ArrayCollection"),ArrayList:p(()=>Tt,"ArrayList"),AssignPolyfill:p(()=>Ho,"AssignPolyfill"),BackendMicroservice:p(()=>ao,"BackendMicroservice"),CONFIG:p(()=>C,"CONFIG"),Class:p(()=>ge,"Class"),ClassFactory:p(()=>M,"ClassFactory"),ComplexStorageCache:p(()=>qe,"ComplexStorageCache"),Component:p(()=>_e,"Component"),ComponentURI:p(()=>rt,"ComponentURI"),ConfigService:p(()=>At,"ConfigService"),Controller:p(()=>fo,"Controller"),DDO:p(()=>_o,"DDO"),DefaultTemplateHandler:p(()=>co,"DefaultTemplateHandler"),Effect:p(()=>An,"Effect"),Export:p(()=>v,"Export"),GlobalSettings:p(()=>Fe,"GlobalSettings"),Import:p(()=>at,"Import"),InheritClass:p(()=>j,"InheritClass"),JSONService:p(()=>Ct,"JSONService"),Logger:p(()=>Ot,"Logger"),NamespaceRef:p(()=>bn,"NamespaceRef"),New:p(()=>F,"New"),ObjectName:p(()=>Ge,"ObjectName"),Package:p(()=>P,"Package"),Processor:p(()=>De,"Processor"),Ready:p(()=>me,"Ready"),RegisterClass:p(()=>On,"RegisterClass"),RegisterWidget:p(()=>qt,"RegisterWidget"),RegisterWidgets:p(()=>vn,"RegisterWidgets"),Service:p(()=>wt,"Service"),SourceCSS:p(()=>uo,"SourceCSS"),SourceJS:p(()=>lo,"SourceJS"),Tag:p(()=>St,"Tag"),TagElements:p(()=>Et,"TagElements"),Timer:p(()=>go,"Timer"),Toggle:p(()=>yo,"Toggle"),TransitionEffect:p(()=>mo,"TransitionEffect"),VO:p(()=>ho,"VO"),View:p(()=>po,"View"),_Cast:p(()=>te,"_Cast"),_CastProps:p(()=>ce,"_CastProps"),_ComponentWidget_:p(()=>ct,"_ComponentWidget_"),_Crypt:p(()=>V,"_Crypt"),_DOMCreateElement:p(()=>B,"_DOMCreateElement"),_DataStringify:p(()=>T,"_DataStringify"),_LegacyCopy:p(()=>Rt,"_LegacyCopy"),_QC_CLASSES:p(()=>H,"_QC_CLASSES"),_QC_PACKAGES:p(()=>q,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:p(()=>Xe,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:p(()=>he,"_QC_READY_LISTENERS"),_Ready:p(()=>tt,"_Ready"),__getType__:p(()=>G,"__getType__"),__instanceID:p(()=>se,"__instanceID"),__is_raw_class__:p(()=>Ue,"__is_raw_class__"),__make_global__:p(()=>ft,"__make_global__"),__to_number:p(()=>k,"__to_number"),__top__:p(()=>Vn,"__top__"),_buildComponentsFromElements_:p(()=>vt,"_buildComponentsFromElements_"),_fireAsyncLoad:p(()=>rn,"_fireAsyncLoad"),_methods_:p(()=>K,"_methods_"),_protected_code_:p(()=>I,"_protected_code_"),_require_:p(()=>ie,"_require_"),_super_:p(()=>It,"_super_"),_tag_filter_:p(()=>kt,"_tag_filter_"),_top:p(()=>A,"_top"),asyncLoad:p(()=>He,"asyncLoad"),captureFalseTouch:p(()=>pn,"captureFalseTouch"),componentLoader:p(()=>ot,"componentLoader"),findPackageNodePath:p(()=>Be,"findPackageNodePath"),get:p(()=>fn,"get"),getDocumentLayout:p(()=>Bo,"getDocumentLayout"),global:p(()=>A,"global"),isBrowser:p(()=>_,"isBrowser"),isNodeCommonJS:p(()=>Xt,"isNodeCommonJS"),isQCObjects_Class:p(()=>pt,"isQCObjects_Class"),isQCObjects_Object:p(()=>Le,"isQCObjects_Object"),is_a:p(()=>ee,"is_a"),is_phonegap:p(()=>Mt,"is_phonegap"),logger:p(()=>d,"logger"),qcobjects:p(()=>qo,"qcobjects"),range:p(()=>it,"range"),ready:p(()=>wn,"ready"),resetTop:p(()=>Nt,"resetTop"),serviceLoader:p(()=>_t,"serviceLoader"),set:p(()=>$e,"set"),setDefaultProcessors:p(()=>mn,"setDefaultProcessors"),shortCode:p(()=>Cn,"shortCode"),subelements:p(()=>je,"subelements"),waitUntil:p(()=>En,"waitUntil")});ye.exports=Ro(io);var Ho={};typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:u(p(function(a,t){"use strict";if(a===null)throw new TypeError("Cannot convert undefined or null to object");let e=Object(a);for(let o=1;o<arguments.length;o++){let i=arguments[o];if(i!==null)for(let r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},"assign"),"assign"),writable:!0,configurable:!0});U();var qo=Yt(ko());U();ne();X();Y();le();S();L();ro();lt();tn();jt();en();ut();z();mt();Dt();oo();oe();ht();x();W();de();Lt();$();no();to();Qe();fe();Yn();Kn();$t();an();Ht();zn();Jn();eo();_n();ue();X();gt();$();S();x();var be,ao=(be=class extends j{constructor({domain:t=We,basePath:e=J,body:o=null,stream:i=null,request:r=null}){super({domain:t,basePath:e,body:o,stream:i,request:r});s(this,"stream");s(this,"route");s(this,"headers");s(this,"request");d.debug("Initializing BackendMicroservice...");let c=this;typeof this.body>"u"&&(this.body=null),typeof o<"u"&&(this.body=o),this.cors(),c.stream=i,i?.on("data",f=>{let h=r?.method.toLowerCase(),g={post:c.post.bind(c)};Object.hasOwn(g,h)&&g[h].call(c,f)});let l=r?.method.toLowerCase(),m={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(m,l)&&m[l].call(c)}cors(){if(this.route.cors){d.debug("Validating CORS...");let{allow_origins:t,allow_credentials:e,allow_methods:o,allow_headers:i}=this.route.cors,r=this;if(typeof r.headers!="object"&&(r.headers={}),typeof r.route.responseHeaders!="object"&&(r.route.responseHeaders={}),typeof t<"u")if(d.debug("CORS: allow_origins available. Validating origins..."),t==="*"||typeof r.request.headers.origin>"u"||[...t].indexOf(r.request.headers.origin)!==-1)d.debug("CORS: Adding header Access-Control-Allow-Origin=*"),r.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{d.debug("CORS: Origin is not allowed: "+r.request.headers.origin),d.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(c){d.debug(`It was not possible to finish the call to the microservice: ${c}`)}}else d.debug("CORS: no allow_origins available. Allowing all origins..."),d.debug("CORS: Adding header Access-Control-Allow-Origin=*"),r.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof e<"u"?(d.debug(`CORS: allow_credentials present. Allowing ${e}...`),r.route.responseHeaders["Access-Control-Allow-Credentials"]=e.toString()):(d.debug("CORS: No allow_credentials present. Allowing all credentials."),r.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof o<"u"?(d.debug(`CORS: allow_methods present. Allowing ${o}...`),r.route.responseHeaders["Access-Control-Allow-Methods"]=[...o].join(",")):(d.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),r.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof i<"u"?(d.debug(`CORS: allow_headers present. Allowing ${i}...`),r.route.responseHeaders["Access-Control-Allow-Headers"]=[...i].join(",")):(d.debug("CORS: No allow_headers present. Allowing all headers..."),r.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else d.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(t){d.debug(`[BackendMicroservice.head] Data received: ${T(t)}`),this.done()}get(t){d.debug(`[BackendMicroservice.get] Data received: ${T(t)}`),this.done()}post(t){d.debug(`[BackendMicroservice.post] Data received: ${T(t)}`),this.done()}put(t){d.debug(`[BackendMicroservice.put] Data received: ${T(t)}`),this.done()}delete(t){d.debug(`[BackendMicroservice.delete] Data received: ${T(t)}`),this.done()}connect(t){d.debug(`[BackendMicroservice.connect] Data received: ${T(t)}`),this.done()}options(t){d.debug(`[BackendMicroservice.options] Data received: ${T(t)}`),this.done()}trace(t){d.debug(`[BackendMicroservice.trace] Data received: ${T(t)}`),this.done()}patch(t){d.debug(`[BackendMicroservice.patch] Data received: ${T(t)}`),this.done()}finishWithBody(t){try{d.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),d.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=T(this.body)),d.debug(`[BackendMicroservice.finishWithBody]
|
|
21
|
+
body: ${this.body} `),t?.write(this.body),t?.end(),d.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(e){d.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${e}`)}}done(){d.debug("[BackendMicroservice.done] Finalizing the response...");let t=this,e=t.stream;try{if(d.debug("[BackendMicroservice.done] Sending response headers..."),t.route.responseHeaders)d.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(t.route.responseHeaders).join(",")}`),e.respond(t.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(o){d.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${o}`)}if(t.body!==null)try{d.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),t.finishWithBody.call(t,e)}catch(o){d.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${o}`)}else d.debug("[BackendMicroservice.done] No body present. Ending stream..."),e.end()}},p(be,"BackendMicroservice"),u(be,"BackendMicroservice"),be);P("com.qcobjects.api",[ao]);cn();xt();S();Qe();Pt();ne();var On=u(function(n,a){return Ze(n,a)},"RegisterClass");ft(On);var ae,co=(ae=class{constructor({component:a,template:t}){s(this,"template","");s(this,"__definition",{});s(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 e=t.component.processorHandler;e.component=t.component;let o=typeof t.template<"u"?t.template:"";typeof a=="object"?[...Object.keys(a)].map(i=>{let r=a[i];if(typeof r=="string"||typeof r=="number"||!isNaN(r))try{r=Z.processObject.bind(e).call(e,r,t.component),o=o.replace(new RegExp(`{{${i}}}`,"g"),r)}catch(c){throw d.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${c.message}`)}return i}):d.debug(`${t.component?.name}.data is not an object`);try{o=Z.processObject.call(e,o,t.component)}catch(i){throw d.warn(`${t.component?.name} could not parse processors.`),Error(`${t.component?.name} could not parse processors. Reason: ${i.message}`)}return o}},p(ae,"DefaultTemplateHandler"),u(ae,"DefaultTemplateHandler"),s(ae,"__definition",{}),ae);On(co,"com.qcobjects");ue();oe();gt();Y();$();x();S();var we,lo=(we=class extends j{constructor(t){super(t);s(this,"domain",We);s(this,"basePath",J);s(this,"type","text/javascript");s(this,"containerTag","body");s(this,"url","");s(this,"data",{});s(this,"async",!1);s(this,"external",!1);s(this,"status",!1);this.body=B("script")}set(t,e){this[t]=e}get(t,e){return this[t]||e}done(){}fail(){}rebuild(){let t=this;try{document.getElementsByTagName(t.containerTag)[0].appendChild(function(e,o,i){return e.type=i.type,e.src=o,e.crossOrigin=Object.hasOwn(i,"crossOrigin")?i.crossOrigin:"anonymous",e.async=i.async,e.onreadystatechange=function(){this.readyState==="complete"&&i.done.call(i)},e.onload=function(r){i.status=!0,i.done.call(i,r)},e.onerror=function(r){i.status=!1,i.fail.call(i,r)},i.body=e,e}.call(this,B("script"),this.external?this.url:this.basePath+this.url,t))}catch(e){t.status=!1,d.debug(`An error ocurred: ${e}`),t.fail()}}Cast(t){return te(this,t)}_new_(t){this.__new__(t),this.rebuild()}},p(we,"SourceJS"),u(we,"SourceJS"),we);P("com.qcobjects",[lo]);ue();oe();gt();Y();$();L();x();var Ce,uo=(Ce=class extends j{constructor(t){super(t);s(this,"domain",We);s(this,"basePath",J);s(this,"url","");s(this,"data",{});s(this,"async",!1);s(this,"external",!1);this.body=B("link")}fail(){throw new Error("Method not implemented.")}Cast(t){return te(this,t)}set(t,e){this[t]=e}get(t,e){return this[t]||e}done(){}rebuild(){let t=this;_&&window.document.getElementsByTagName("head")[0].appendChild(function(e,o,i){return e.type="text/css",e.rel="stylesheet",e.href=o,e.crossOrigin="anonymous",e.onreadystatechange=function(){this.readyState==="complete"&&i.done.call(i)},e.onload=i.done,i.body=e,e}.call(this,B("link"),this.external?this.url:this.basePath+this.url,t))}},p(Ce,"SourceCSS"),u(Ce,"SourceCSS"),Ce);P("com.qcobjects",[uo]);dn();Y();de();le();L();var Ee,Fo=(Ee=class{constructor(){s(this,"writingSuggestions");s(this,"currentCSSZoom");s(this,"ariaColIndexText");s(this,"ariaRowIndexText");s(this,"accessKey");s(this,"accessKeyLabel");s(this,"autocapitalize");s(this,"dir");s(this,"draggable");s(this,"hidden");s(this,"inert");s(this,"innerText");s(this,"lang");s(this,"offsetHeight");s(this,"offsetLeft");s(this,"offsetParent");s(this,"offsetTop");s(this,"offsetWidth");s(this,"outerText");s(this,"popover");s(this,"spellcheck");s(this,"title");s(this,"translate");s(this,"attributes");s(this,"classList");s(this,"className");s(this,"clientHeight");s(this,"clientLeft");s(this,"clientTop");s(this,"clientWidth");s(this,"id");s(this,"innerHTML");s(this,"localName");s(this,"namespaceURI");s(this,"onfullscreenchange");s(this,"onfullscreenerror");s(this,"outerHTML");s(this,"ownerDocument");s(this,"part");s(this,"prefix");s(this,"scrollHeight");s(this,"scrollLeft");s(this,"scrollTop");s(this,"scrollWidth");s(this,"shadowRoot");s(this,"slot");s(this,"tagName");s(this,"baseURI");s(this,"childNodes");s(this,"firstChild");s(this,"isConnected");s(this,"lastChild");s(this,"nextSibling");s(this,"nodeName");s(this,"nodeType");s(this,"nodeValue");s(this,"parentElement");s(this,"parentNode");s(this,"previousSibling");s(this,"textContent");s(this,"ELEMENT_NODE");s(this,"ATTRIBUTE_NODE");s(this,"TEXT_NODE");s(this,"CDATA_SECTION_NODE");s(this,"ENTITY_REFERENCE_NODE");s(this,"ENTITY_NODE");s(this,"PROCESSING_INSTRUCTION_NODE");s(this,"COMMENT_NODE");s(this,"DOCUMENT_NODE");s(this,"DOCUMENT_TYPE_NODE");s(this,"DOCUMENT_FRAGMENT_NODE");s(this,"NOTATION_NODE");s(this,"DOCUMENT_POSITION_DISCONNECTED");s(this,"DOCUMENT_POSITION_PRECEDING");s(this,"DOCUMENT_POSITION_FOLLOWING");s(this,"DOCUMENT_POSITION_CONTAINS");s(this,"DOCUMENT_POSITION_CONTAINED_BY");s(this,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC");s(this,"ariaAtomic");s(this,"ariaAutoComplete");s(this,"ariaBrailleLabel");s(this,"ariaBrailleRoleDescription");s(this,"ariaBusy");s(this,"ariaChecked");s(this,"ariaColCount");s(this,"ariaColIndex");s(this,"ariaColSpan");s(this,"ariaCurrent");s(this,"ariaDescription");s(this,"ariaDisabled");s(this,"ariaExpanded");s(this,"ariaHasPopup");s(this,"ariaHidden");s(this,"ariaInvalid");s(this,"ariaKeyShortcuts");s(this,"ariaLabel");s(this,"ariaLevel");s(this,"ariaLive");s(this,"ariaModal");s(this,"ariaMultiLine");s(this,"ariaMultiSelectable");s(this,"ariaOrientation");s(this,"ariaPlaceholder");s(this,"ariaPosInSet");s(this,"ariaPressed");s(this,"ariaReadOnly");s(this,"ariaRequired");s(this,"ariaRoleDescription");s(this,"ariaRowCount");s(this,"ariaRowIndex");s(this,"ariaRowSpan");s(this,"ariaSelected");s(this,"ariaSetSize");s(this,"ariaSort");s(this,"ariaValueMax");s(this,"ariaValueMin");s(this,"ariaValueNow");s(this,"ariaValueText");s(this,"role");s(this,"nextElementSibling");s(this,"previousElementSibling");s(this,"childElementCount");s(this,"children");s(this,"firstElementChild");s(this,"lastElementChild");s(this,"assignedSlot");s(this,"attributeStyleMap");s(this,"style");s(this,"contentEditable");s(this,"enterKeyHint");s(this,"inputMode");s(this,"isContentEditable");s(this,"onabort");s(this,"onanimationcancel");s(this,"onanimationend");s(this,"onanimationiteration");s(this,"onanimationstart");s(this,"onauxclick");s(this,"onbeforeinput");s(this,"onbeforetoggle");s(this,"onblur");s(this,"oncancel");s(this,"oncanplay");s(this,"oncanplaythrough");s(this,"onchange");s(this,"onclick");s(this,"onclose");s(this,"oncontextlost");s(this,"oncontextmenu");s(this,"oncontextrestored");s(this,"oncopy");s(this,"oncuechange");s(this,"oncut");s(this,"ondblclick");s(this,"ondrag");s(this,"ondragend");s(this,"ondragenter");s(this,"ondragleave");s(this,"ondragover");s(this,"ondragstart");s(this,"ondrop");s(this,"ondurationchange");s(this,"onemptied");s(this,"onended");s(this,"onerror");s(this,"onfocus");s(this,"onformdata");s(this,"ongotpointercapture");s(this,"oninput");s(this,"oninvalid");s(this,"onkeydown");s(this,"onkeypress");s(this,"onkeyup");s(this,"onload");s(this,"onloadeddata");s(this,"onloadedmetadata");s(this,"onloadstart");s(this,"onlostpointercapture");s(this,"onmousedown");s(this,"onmouseenter");s(this,"onmouseleave");s(this,"onmousemove");s(this,"onmouseout");s(this,"onmouseover");s(this,"onmouseup");s(this,"onpaste");s(this,"onpause");s(this,"onplay");s(this,"onplaying");s(this,"onpointercancel");s(this,"onpointerdown");s(this,"onpointerenter");s(this,"onpointerleave");s(this,"onpointermove");s(this,"onpointerout");s(this,"onpointerover");s(this,"onpointerup");s(this,"onprogress");s(this,"onratechange");s(this,"onreset");s(this,"onresize");s(this,"onscroll");s(this,"onscrollend");s(this,"onsecuritypolicyviolation");s(this,"onseeked");s(this,"onseeking");s(this,"onselect");s(this,"onselectionchange");s(this,"onselectstart");s(this,"onslotchange");s(this,"onstalled");s(this,"onsubmit");s(this,"onsuspend");s(this,"ontimeupdate");s(this,"ontoggle");s(this,"ontouchcancel");s(this,"ontouchend");s(this,"ontouchmove");s(this,"ontouchstart");s(this,"ontransitioncancel");s(this,"ontransitionend");s(this,"ontransitionrun");s(this,"ontransitionstart");s(this,"onvolumechange");s(this,"onwaiting");s(this,"onwebkitanimationend");s(this,"onwebkitanimationiteration");s(this,"onwebkitanimationstart");s(this,"onwebkittransitionend");s(this,"onwheel");s(this,"autofocus");s(this,"dataset");s(this,"nonce");s(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,e){throw new Error("Method not implemented.")}removeEventListener(a,t,e){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,e){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.")}},p(Ee,"QCObjectsWidgetNode"),u(Ee,"QCObjectsWidgetNode"),Ee),ct,Oe,ve;_?ct=(Oe=class extends HTMLElement{constructor(){super();let a=this,t=a.nodeName.toLowerCase(),e=B("quick-component"),o=a.getAttributeNames();e.setAttribute("name",t),a.hasAttribute("shadowed")||e.setAttribute("shadowed","true"),o.forEach(r=>{a.hasAttribute(r)&&(e.setAttribute(r,a?.getAttribute(r)),a.removeAttribute(r))}),a.getAttributeNames().filter(function(r){return r.startsWith("data-")}).map(function(r){return r.split("-")[1]}).forEach(function(r){e.setAttribute("data-"+r,a?.getAttribute("data-"+r)),a.removeAttribute("data-"+r)}),[...a.children].forEach(r=>{e.appendChild(r.cloneNode(!0)),r.remove()}),a.append(e)}},p(Oe,"_ComponentWidget_"),u(Oe,"_ComponentWidget_"),Oe):ct=(ve=class extends Fo{constructor(){throw super(),new Error("Class not implemented.")}},p(ve,"_ComponentWidget_"),u(ve,"_ComponentWidget_"),ve);v(ct);var qt=u(n=>{if(_)customElements.define(n,class extends ct{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),vn=u((...n)=>{[...n].filter(function(t){return typeof t=="string"}).map(function(t){return qt(t)})},"RegisterWidgets");I(qt);I(vn);v(qt);v(vn);Q();W();z();$();S();fe();x();L();var Ae,fo=(Ae=class extends j{constructor({component:t,dependencies:e}){super({component:t,dependencies:e});s(this,"component");s(this,"dependencies",[]);if(this.component=t,this.dependencies=e,typeof this.component>"u"||this.component===null)throw Error(`${G(this)} must be called with a component`)}fail(...t){throw new Error("Method not implemented.")}routingSelectedAttr(t){return this.component?.routingSelected.map(e=>e[t]).filter(function(e){return e}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(t,e){if(_)try{this.isTouchable()?(this.component?.componentRoot?.subelements(t))[0].addEventListener("touchstart",e,{passive:!0}):(this.component?.componentRoot?.subelements(t))[0].addEventListener("click",e,{passive:!0})}catch(o){d.debug(`An error ocurred: ${o}.`),d.debug("No button to assign press event")}}createRoutingController(){let t=this,e=t.component,o=t.routingSelectedAttr("controllerclass");if(typeof o<"u"){let i=M(o);typeof i<"u"&&e!==null&&(e.routingController=F(i,{component:e}),typeof e.routingController<"u"&&Object.hasOwn(e.routingController,"done")&&typeof e.routingController.done=="function"&&e.routingController.done.call(e.routingController))}}done(){}},p(Ae,"Controller"),u(Ae,"Controller"),Ae);P("com.qcobjects.controllers",[fo]);z();$();x();var Ne,po=(Ne=class extends j{constructor({component:a=void 0,dependencies:t=[]}){if(super({component:a,dependencies:t}),typeof this.component>"u"||this.component==="null")throw Error(`${G(this)} must be called with a component`)}},p(Ne,"View"),u(Ne,"View"),Ne);P("com.qcobjects.views",[po]);Qn();$();x();var Te,ho=(Te=class extends j{},p(Te,"VO"),u(Te,"VO"),Te);P("com.qcobjects.valueObjects",[ho]);$();x();le();W();var Se,An=(Se=class extends j{constructor(){super(...arguments);s(this,"duration",1e3)}done(...t){throw new Error("Method not implemented.")}apply(...t){throw new Error("Method not implemented.")}animate({timing:t,draw:e,duration:o}){let i=this,r=performance.now();requestAnimationFrame(u(p(function c(l){let m=(l-r)/o;m>1&&(m=1);let f=t(m);e(Math.round(f*100)),m<1?requestAnimationFrame(c):typeof i<"u"&&i!==null&&Object.hasOwn(i,"done")&&(typeof i.done).toLowerCase()==="function"&&i.done.call(i)},"animate"),"animate"))}},p(Se,"Effect"),u(Se,"Effect"),Se);P("com.qcobjects.effects.base",[An]);K(M("Effect")).map(n=>(I(n),n));S();x();W();var Ie,mo=(Ie=class extends An{constructor(){super(...arguments);s(this,"duration",385);s(this,"defaultParams",{alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1});s(this,"fitToHeight",!1);s(this,"fitToWidth",!1);s(this,"component");s(this,"effects")}apply({alphaFrom:t,alphaTo:e,angleFrom:o,angleTo:i,radiusFrom:r,radiusTo:c,scaleFrom:l,scaleTo:m}){let f=this;d.info("EXECUTING TransitionEffect ");let h=f.component.componentRoot;typeof h<"u"&&h!==null&&(f.fitToHeight&&(h.height=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollHeight:h.getBoundingClientRect().height),f.fitToWidth&&(h.width=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollWidth:h.getBoundingClientRect().width),f.component.shadowed?h.host.style.display="block":h.style.display="block",f.effects.map(g=>{let y=M(g),b=new y({}).apply.bind(f),O=f.component.shadowed?h.host:h;return b(O,...Object.values({alphaFrom:t,alphaTo:e,angleFrom:o,angleTo:i,radiusFrom:r,radiusTo:c,scaleFrom:l,scaleTo:m})),g}))}},p(Ie,"TransitionEffect"),u(Ie,"TransitionEffect"),Ie);P("com.qcobjects.effects.transitions.base",[mo]);$();x();var Pe,go=(Pe=class extends j{constructor(){super(...arguments);s(this,"duration",1e3);s(this,"alive",!0)}thread({timing:t,intervalInterceptor:e,duration:o}){let i=this,r=performance.now();requestAnimationFrame(u(p(function c(l){let m=l-r,f=m/o;f>1&&(f=1);let h=t(f,m);e(Math.round(h*100)),(f<1||o===-1)&&i.alive&&requestAnimationFrame(c)},"thread"),"thread"))}},p(Pe,"Timer"),u(Pe,"Timer"),Pe);P("com.qcobjects.timing",[go]);sn();hn();Zn();de();$();S();ut();var Me,_o=(Me=class extends j{constructor({instance:a,name:t,fget:e,fset:o,value:i}){super({instance:a,name:t,fget:e,fset:o,value:i}),this._new_({instance:a,name:t,fget:e,fset:o,value:i})}_new_({instance:a,name:r,fget:e,fset:o}){var r=typeof r>"u"?Ge(this):r;Object.defineProperty(a,r,{set(c){let l=c;d.debug("value changed "+r);let m;typeof o<"u"&&typeof o=="function"?m=o(l):m=l,a["_"+r]=m},get(){let c=a["_"+r];d.debug("returning value "+r);let l=u(f=>typeof f=="object"&&Object.hasOwn(f,"value")?f.value:f,"is_ddo"),m;return typeof e<"u"&&typeof e=="function"?m=e(l(c)):m=l(c),m}})}},p(Me,"DDO"),u(Me,"DDO"),Me);v(_o);$();S();x();var Re,yo=(Re=class extends j{constructor(t,e,o){super({positive:t,negative:e,args:o});s(this,"_toggle",!1);s(this,"_inverse",!0);s(this,"_positive",null);s(this,"_negative",null);s(this,"_dispatched",null);s(this,"_args",{});this._new_({positive:t,negative:e,args:o})}changeToggle(){this._toggle=!this._toggle}_new_({positive:t,negative:e,args:o}){this._positive=t,this._negative=e,this._args=o}fire(){let t=this;var e=new Promise(function(o,i){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(e,t)):(d.debug("Toggle functions are not declared"),i.call(e,t)),t}).then(function(o){return o.changeToggle(),o}).catch(function(o){return d.debug(o.toString()),t}).finally(()=>t);return e}},p(Re,"Toggle"),u(Re,"Toggle"),Re);P("com.qcobjects.tools.essentials",[yo]);gn();var Bo=u(function(){let n=u((e,o)=>e>o?"landscape":null,"h"),a=u((e,o)=>o>e?"portrait":null,"v"),t=u((e,o)=>e===o?"square":null,"square");return[n(document.documentElement.clientWidth,document.documentElement.clientHeight),a(document.documentElement.clientWidth,document.documentElement.clientHeight),t(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(e=>e!==null).pop()},"getDocumentLayout");yn();U();Pt();U()});var Uo=Tn(wo=>{Object.defineProperty(wo,"__esModule",{value:!0});var Ft=bo(),Ve,Ke,Je;(0,Ft.Package)("org.quickcorp.custom.effects",[(Ve=class extends Ft.TransitionEffect{constructor(){super(...arguments),this.duration=780,this.defaultParams={alphaFrom:0,alphaTo:1},this.effects=["Fade","MoveYInFromBottom"],this.fitToHeight=!0}},p(Ve,"MainTransitionEffect"),Ve),(Ke=class extends Ft.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromLeft"],this.fitToWidth=!0}},p(Ke,"SlideLeftTransitionEffect"),Ke),(Je=class extends Ft.TransitionEffect{constructor(){super(...arguments),this.duration=450,this.effects=["Fade","MoveXInFromRight"],this.fitToWidth=!0}},p(Je,"SlideRightTransitionEffect"),Je)])});return Uo();})();
|
|
22
|
+
//# sourceMappingURL=org.quickcorp.custom.effects.js.map
|