qcobjects-sdk 2.4.61 → 2.4.64
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/VERSION +1 -1
- package/build/QCObjects-SDK.js +97 -0
- package/build/css/base-modal.css +43 -0
- package/build/css/basic-layout-embedded-nav.css +14 -0
- package/build/css/basic-layout.css +76 -0
- package/build/css/components/horizontal-list.css +64 -0
- package/build/css/components/list.css +57 -0
- package/build/css/components/splashscreen.css +111 -0
- package/build/css/modal.css +46 -0
- package/build/index.cjs +4 -0
- package/build/index.js +27 -0
- package/build/index.mjs +2 -0
- package/build/js/org.qcobjects.cloud.auth.session.data.js +125 -0
- package/build/js/org.qcobjects.cloud.auth.session.usertoken.js +109 -0
- package/build/js/org.qcobjects.components.grid.js +81 -0
- package/build/js/org.qcobjects.components.js +292 -0
- package/build/js/org.qcobjects.components.list.js +71 -0
- package/build/js/org.qcobjects.components.notifications.js +179 -0
- package/build/js/org.qcobjects.components.slider.js +193 -0
- package/build/js/org.qcobjects.components.splashscreen.js +642 -0
- package/build/js/org.qcobjects.controllers.form.js +178 -0
- package/build/js/org.qcobjects.controllers.grid.js +258 -0
- package/build/js/org.qcobjects.controllers.js +34 -0
- package/build/js/org.qcobjects.controllers.list.js +228 -0
- package/build/js/org.qcobjects.controllers.slider.js +131 -0
- package/build/js/org.qcobjects.controllers.swagger.js +50 -0
- package/build/js/org.qcobjects.effects.js +417 -0
- package/build/js/org.qcobjects.i18n_messages.js +72 -0
- package/build/js/org.qcobjects.modal.controllers.js +38 -0
- package/build/js/org.qcobjects.modal.effects.js +51 -0
- package/build/js/org.qcobjects.models.js +34 -0
- package/build/js/org.qcobjects.tools.canvas.js +53 -0
- package/build/js/org.qcobjects.tools.js +64 -0
- package/build/js/org.qcobjects.tools.layouts.js +73 -0
- package/build/js/org.qcobjects.views.js +34 -0
- package/build/templates/components/modalyoulose.tpl.html +3 -0
- package/build/templates/components/modalyouwin.tpl.html +4 -0
- package/build/templates/components/splashscreen.tpl.html +128 -0
- package/build/templates/components/swagger-ui.tpl.html +22 -0
- package/package.json +3 -3
- package/public/QCObjects-SDK.js +696 -0
- package/public/QCObjects-SDK.js.map +7 -0
- package/public/css/base-modal.css +2 -0
- package/public/css/base-modal.css.map +7 -0
- package/public/css/basic-layout-embedded-nav.css +2 -0
- package/public/css/basic-layout-embedded-nav.css.map +7 -0
- package/public/css/basic-layout.css +2 -0
- package/public/css/basic-layout.css.map +7 -0
- package/public/css/components/horizontal-list.css +2 -0
- package/public/css/components/horizontal-list.css.map +7 -0
- package/public/css/components/list.css +2 -0
- package/public/css/components/list.css.map +7 -0
- package/public/css/components/splashscreen.css +2 -0
- package/public/css/components/splashscreen.css.map +7 -0
- package/public/css/modal.css +2 -0
- package/public/css/modal.css.map +7 -0
- package/public/index.cjs +4 -0
- package/public/index.js +27 -0
- package/public/index.mjs +2 -0
- package/public/templates/components/modalyoulose.tpl.html +3 -0
- package/public/templates/components/modalyouwin.tpl.html +4 -0
- package/public/templates/components/splashscreen.tpl.html +128 -0
- package/public/templates/components/swagger-ui.tpl.html +22 -0
- package/src/QCObjects-SDK.ts +0 -2
- package/src/js/org.qcobjects.controllers.list.ts +1 -1
- package/src/js/org.qcobjects.effects.ts +1 -1
- package/src/js/org.qcobjects.views.ts +1 -1
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
"use strict";var global=(()=>{var Wt=Object.defineProperty;var Zn=(w,r,f)=>r in w?Wt(w,r,{enumerable:!0,configurable:!0,writable:!0,value:f}):w[r]=f;var c=(w,r)=>Wt(w,"name",{value:r,configurable:!0}),It=(w=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(w,{get:(r,f)=>(typeof require<"u"?require:r)[f]}):w)(function(w){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+w+'" is not supported')});var V=(w,r)=>()=>(r||w((r={exports:{}}).exports,r),r.exports);var S=(w,r,f)=>(Zn(w,typeof r!="symbol"?r+"":r,f),f);var zt=V((Go,We)=>{c(function w(r){"use strict";if(typeof Object.defineProperty<"u"&&typeof r<"u")try{Object.defineProperty(r,"__qcobjects_sdk__",{enumerable:!0,configurable:!1,writable:!1,value:w})}catch{typeof r.__qcobjects_sdk__<"u"&&(r.__qcobjects_sdk__.__loaded__=!0)}if(typeof r.__qcobjects_sdk__.__loaded__>"u"){if(r.__qcobjects_sdk__.__loaded__=!0,typeof r>"u")throw Error("Top context empty: It should either global, module or window");var f=r;r.global=f;var p=typeof window<"u"&&typeof window.self<"u"&&window===window.self,u=typeof We<"u",v=CONFIG.get("remoteImportsPath"),g=CONFIG.get("relativeImportPath"),b=!CONFIG.get("useLocalSDK");b&&!u?CONFIG.set("remoteImportsPath","https://sdk.qcobjects.dev/v2.4/src/js/"):CONFIG.set("relativeImportPath","qcobjects-sdk/src/js/"),typeof r._DOMCreateElement>"u"&&(r._DOMCreateElement=function(y){var T;return p?T=document.createElement(y):T={},T});var O;if(p&&!u)O=[Import("org.qcobjects.i18n_messages",function(){},b),Import("org.qcobjects.models",function(){},b),Import("org.qcobjects.components",function(){},b),Import("org.qcobjects.components.grid",function(){},b),Import("org.qcobjects.components.list",function(){},b),Import("org.qcobjects.components.slider",function(){},b),Import("org.qcobjects.components.notifications",function(){},b),Import("org.qcobjects.components.splashscreen",function(){},b),Import("org.qcobjects.controllers",function(){},b),Import("org.qcobjects.controllers.grid",function(){},b),Import("org.qcobjects.controllers.list",function(){},b),Import("org.qcobjects.controllers.slider",function(){},b),Import("org.qcobjects.controllers.form",function(){},b),Import("org.qcobjects.controllers.swagger",function(){},b),Import("org.qcobjects.effects",function(){},b),Import("org.qcobjects.modal.controllers",function(){},b),Import("org.qcobjects.views",function(){},b),Import("org.qcobjects.tools.canvas",function(){},b),Import("org.qcobjects.tools.layouts",function(){},b),Import("org.qcobjects.cloud.auth.session.usertoken",function(){},b),Import("org.qcobjects.cloud.auth.session.data",function(){},b)];else{u&&CONFIG.set("remoteImportsPath",CONFIG.get("basePath",""));var G="qcobjects-sdk/src/js/";O=[Import(G+"org.qcobjects.models",function(){},b),Import(G+"org.qcobjects.components",function(){},b),Import(G+"org.qcobjects.controllers",function(){},b),Import(G+"org.qcobjects.views",function(){},b),Import(G+"org.qcobjects.effects",function(){},b),Import(G+"org.qcobjects.tools.canvas",function(){},b),Import(G+"org.qcobjects.tools.layouts",function(){},b),Import(G+"org.qcobjects.cloud.auth.session.usertoken",function(){},b),Import(G+"org.qcobjects.cloud.auth.session.data",function(){},b)]}let P=GlobalSettings.__start__.bind(r);r._sdk_=Promise.all(O).then(()=>{CONFIG.set("useSDK",!0),CONFIG.set("remoteImportsPath",v),CONFIG.set("relativeImportPath",g),P()})}},"__qcobjects_sdk__").call(null,typeof We=="object"&&typeof We.exports=="object"?We.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{})});var Xt=V((Ho,Bt)=>{var Vn=zt();Bt.exports=Vn});var Zt=V((er,Pe)=>{c(function w(r){"use strict";if(typeof Object.defineProperty<"u"&&typeof r<"u")try{Object.defineProperty(r,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:w})}catch{typeof r.__qcobjects__<"u"&&(r.__qcobjects__.loaded=!0)}if(typeof r.__qcobjects__.loaded>"u"){let $e=function(t){u?Ge.push(t.bind(window)):typeof f<"u"&&Ge.push(t.bind(f))};c($e,"Ready"),r.__qcobjects__.loaded=!0;var f=r;r.global=f;var p=typeof window<"u"&&"Deno"in window,u=typeof window<"u"&&typeof window.self<"u"&&window===window.self&&!p,v=typeof Pe<"u",g=c(function(){},"deno_require"),b=c(function(){return p?g(...arguments):It(...arguments)},"_require_"),O=c(function(t){var n=typeof t.prototype<"u"?t.prototype.toString:function(){return""};typeof t.prototype<"u"&&(t.prototype.toString=function(){var e=["__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"],o;return e.includes(this.name)?o=this.name+"{ [QCObjects native code] }":o=n.call(this),o})},"_protected_code_");O(Function);var G=c(function(t){var n=[];for(var e in t)(typeof t[e]).toLowerCase()==="function"&&n.push(t[e]);return n},"_methods_");String.prototype.__mAll__=function(t){var n=[];return this.replace(t,function(){var e=Array.prototype.slice.call(arguments,0,-2);e.input=arguments[arguments.length-1],e.index=arguments[arguments.length-2],n.push(e)}),n},typeof String.prototype.matchAll>"u"&&(String.prototype.matchAll=String.prototype.__mAll__);var P=c(function(t){var n;return u?n=document.createElement(t):n={},n},"_DOMCreateElement");if(!u){let t=b("fs")}var y=c(function(t){var n=c(function(){var e=new WeakSet,o=0;return function(s,a){if(typeof a=="object"&&a!==null){if(e.has(a))return o+=1,o<=3?ct(a):null;e.add(a)}return a}},"getCircularReplacer");return JSON.stringify(t,n())},"_DataStringify");if(u){var T=c(function(n){return[...this.querySelectorAll(n)]},"subelements");Element.prototype.subelements=T,HTMLDocument.prototype.subelements=T,HTMLElement.prototype.subelements=T,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=T)}if(u)try{r=typeof window.top<"u"?window.top:window,r._allowed_=!0}catch{try{r=document,r._allowed_=!0}catch{try{r=f,r._allowed_=!0}catch{r={},r._allowed_=!0}}}else typeof f<"u"&&(r=f);var L,D,ae="quick-component:not([loaded]),component:not([loaded])";if(D=function(){var t="";if(u){var n=r.document.baseURI.split("?")[0].split("/");n.pop(),t=n.join("/")+"/"}else{var e;try{e=b("process")}catch{}typeof e<"u"?t=`${e.cwd()}/`:t=""}return t}(),u){"Promise"in r||(r.Promise=function(t){var n={then(){},catch(){},_then(e){this.then.call(n,e)},_catch(e){this.catch.call(n,e)}};return t.call(n,n._then,n._catch),n}),typeof r.console>"u"&&(r.console=function(){},r.console.prototype.log=function(t){}),L=function(){return typeof document<"u"&&document.domain!==""?document.domain:"localhost"}();var le=function(){var t=r[(![]+[])[+!+[]+ +!+[]]+(typeof![])[+!+[]]+(typeof[])[(+!+[]+ +!+[])*(+!+[]+ +!+[])]+(![]+[])[+!+[]]+(!![]+[])[+[]]+([]+[]+[][[]])[+[+!+[]+[+[]]]/(+!+[]+ +!+[])]+(typeof![])[+!+[]]+([]+[]+[][[]])[+!+[]]]["h"+(typeof![])[+!+[]]+(![]+[])[+!+[]+(+!+[]+ +!+[])]+(!![]+[])[+[]]].toLowerCase();return t}(),he=function(){return typeof cordova<"u"}()}else{var le="secret";L="localhost"}r._asyncLoad=[];var be=c(function(t,n){var e={func:t,args:n,dispatch(){this.func.apply(null,this.args)}};return r._asyncLoad.push(e),e},"asyncLoad");if(u){var ee=c(function(){document.readyState==="complete"&&r._asyncLoad.map(function(t){t.dispatch.call(t)})},"_fireAsyncLoad");document.onreadystatechange=ee}else typeof r.global<"u"&&(r.global._fireAsyncLoad=function(){r._asyncLoad.map(function(t){t.dispatch.call(t)})});r.asyncLoad=be;var E=c(function(){return{debugEnabled:!0,infoEnabled:!0,warnEnabled:!0,debug(t){this.debugEnabled&&console.log("\x1B[35m%s\x1B[0m",`[DEBUG][${performance.now().toLocaleString()}] ${t}`)},info(t){var n;this.infoEnabled&&(u?n="\x1B[103m%s\x1B[0m":n="\x1B[33m%s\x1B[0m",console.info(n,`[INFO][${performance.now().toLocaleString()}] ${t}`))},warn(t){this.warnEnabled&&console.warn("\x1B[31m%s\x1B[0m",`[WARN][${performance.now().toLocaleString()}] ${t}`)}}},"Logger"),l=new E;l.debugEnabled=!1,l.infoEnabled=!0,r.logger=l;var U={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode(t){var n="",e,o,s,a,i,d,h,m=0;for(t=U._utf8_encode(t);m<t.length;)e=t.charCodeAt(m++),o=t.charCodeAt(m++),s=t.charCodeAt(m++),a=e>>2,i=(e&3)<<4|o>>4,d=(o&15)<<2|s>>6,h=s&63,isNaN(o)?d=h=64:isNaN(s)&&(h=64),n=n+this._keyStr.charAt(a)+this._keyStr.charAt(i)+this._keyStr.charAt(d)+this._keyStr.charAt(h);return n},decode(t){var n="",e,o,s,a,i,d,h,m=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");m<t.length;)a=this._keyStr.indexOf(t.charAt(m++)),i=this._keyStr.indexOf(t.charAt(m++)),d=this._keyStr.indexOf(t.charAt(m++)),h=this._keyStr.indexOf(t.charAt(m++)),e=a<<2|i>>4,o=(i&15)<<4|d>>2,s=(d&3)<<6|h,n=n+String.fromCharCode(e),d!==64&&(n=n+String.fromCharCode(o)),h!==64&&(n=n+String.fromCharCode(s));return n=U._utf8_decode(n),n},_utf8_encode(t){t=t.replace(/rn/g,"n");for(var n="",e=0;e<t.length;e++){var o=t.charCodeAt(e);o<128?n+=String.fromCharCode(o):o>127&&o<2048?(n+=String.fromCharCode(o>>6|192),n+=String.fromCharCode(o&63|128)):(n+=String.fromCharCode(o>>12|224),n+=String.fromCharCode(o>>6&63|128),n+=String.fromCharCode(o&63|128))}return n},_utf8_decode(t){for(var n="",e=0,o=0,s=0,a=0,i;e<t.length;)o=t.charCodeAt(e),o<128?(n+=String.fromCharCode(o),e++):o>191&&o<224?(a=t.charCodeAt(e+1),n+=String.fromCharCode((o&31)<<6|a&63),e+=2):(a=t.charCodeAt(e+1),i=t.charCodeAt(e+2),n+=String.fromCharCode((o&15)<<12|(a&63)<<6|i&63),e+=3);return n}},Y=c(function(t,n){var e=c(function(o,s){var a=2e3,i=0,d=setInterval(function(){s.call()?(clearInterval(d),o.call(),l.debug("Ejecuting "+o.name+" after wait")):i<a?(i+=1,l.debug("WAIT UNTIL "+o.name+" is true, "+i.toString()+" cycles")):(l.debug("Max execution time for "+o.name+" expression until true"),clearInterval(d))},1)},"_waitUntil");setTimeout(function(){e(t,n)},1)},"waitUntil");if(typeof x>"u")var x={getItem(t){return Object.hasOwnProperty.call(this,t)?this[t]:null},setItem(t,n){this[t]=n},removeItem(t){delete this[t]}};var A=c(function(t){var n,e,o;if(n=t.index,typeof n<"u"){e=t.load,o=t.alternate;var s=this.getID(n),a=x.getItem(s);if(this.isEmpty(a)){var i=e.call(null,{cachedObjectID:s,cachedResponse:a,cache:this});this.save(n,i),l.debug("RESPONSE OF {{cachedObjectID}} CACHED".replace("{{cachedObjectID}}",s))}else{var d=o.call(null,{cachedObjectID:s,cachedResponse:a,cache:this});l.debug("RESPONSE OF {{cachedObjectID}} IS ALREADY CACHED ".replace("{{cachedObjectID}}",s))}}else throw new Error("ComplexStorageCache: index is undefined");return this},"ComplexStorageCache");if(A.prototype.getItem=function(t){var n=x.getItem(t);return this.isEmpty(n)?null:JSON.parse(n)},A.prototype.setItem=function(t,n){x.setItem(t,y(n))},A.prototype.isEmpty=function(t){var n=!1;switch(!0){case typeof t>"u":case(typeof t=="string"&&t===""):case(typeof t=="string"&&t==="undefined"):case(typeof t=="number"&&t===0):case t===null:n=!0;break;default:n=!1}return n},A.prototype.getID=function(t){var n;return typeof t<"u"&&(n="cachedObject_"+U.encode(y(t).replace(/\{|\}|,/g,"_"))),n},A.prototype.save=function(t,n){var e=this.getID(t);l.debug("CACHING THE RESPONSE OF {{cachedObjectID}} ".replace("{{cachedObjectID}}",e)),this.setItem(e,n)},A.prototype.getCached=function(t){var n=this.getID(t);return this.getItem(n)},A.prototype.clear=function(){Object.keys(x).filter(function(t){return t.startsWith("cachedObject_")}).map(function(t){x.removeItem(t)})},u){var Fe=!1;try{var Oe=Object.defineProperty({},"passive",{get(){return Fe=!0,Fe}});window.addEventListener("testPassive",null,Oe),window.removeEventListener("testPassive",null,Oe)}catch{}var ze=c(function(){return Fe?{passive:!0}:!1},"captureFalse")}u&&(Element.prototype.find=function(t){var n=[],e=document.subelements(t);return e.map(function(o,s){typeof e[s]<"u"&&e[s].parentNode.tagName===this.parentNode.tagName&&n.push(De(o,new Object))}),n});var _e,ko=function(){var t=Object.prototype.hasOwnProperty;return function(n){if(typeof n!="object")throw TypeError("Object prototype may only be an Object or null. The type is "+typeof n);var e=c(function(){},"QCObjects");e.prototype=n;var o=new e;if(arguments.length>1){var s=Object(arguments[1]);for(var a in s)t.call(s,a)&&(o[a]=s[a])}return o}}();typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:c(function(n,e){"use strict";if(n===null)throw new TypeError("Cannot convert undefined or null to object");for(var o=Object(n),s=1;s<arguments.length;s++){var a=arguments[s];if(a!==null)for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])}return o},"assign"),writable:!0,configurable:!0});var Rt=c(function(t){return!!(typeof t=="function"&&t.toString().startsWith("class"))},"__is_raw_class__"),ct=c(function(t){var n;switch(!0){case typeof t=="string":n=t;break;case typeof t=="number":n=t;break;case typeof t=="object":n=Object.assign({},t);break;case typeof t=="function":n=t.bind({});break;case Rt(t):n=c(class extends t{},"_value_");break;default:break}return n},"_LegacyCopy"),pe={},de={},ut=[],Ge=[],Be=c(function(t){var n="";return typeof t=="function"&&Object.hasOwnProperty.call(t,"name")&&t.name!==""?n=t.name:typeof t<"u"&&typeof t.constructor=="function"&&t.constructor.name!==""?n=t.constructor.name:typeof t<"u"&&typeof t.constructor=="object"&&(n=t.constructor.toString().replace(/\[(.*?)\]/g,"$1").split(" ").slice(1).join("")),n},"ObjectName"),De=c(function(t,n){for(var e in t)if(typeof t[e]<"u")try{n[e]=t[e]}catch{}return n},"_Cast"),Te=c(function(t,n){for(var e in t)if(typeof t[e]<"u"&&typeof t[e]!="function")try{n[e]=t[e]}catch{}else if(typeof t[e]=="function")try{n[e]=t[e].bind(n)}catch(o){l.warn(o)}return n},"_CastProps"),Dn=c(function(){return["__proto__","prototype","Object","Map","defineProperty","indexOf","toString","__instanceID"].indexOf(arguments[0])!==-1},"__is__forbidden_name__"),ye=c(function(n){var e="";switch(!0){case(Rt(n)&&!!n.name):e=n.name;break;case(typeof n=="object"&&!!n.constructor&&!!n.constructor.name&&n.constructor.name!==""):e=n.constructor.name;break;case(!!n&&!!n.__classType&&n.__classType!==""):e=n.__classType;break;case(!!n&&!!n.__definition&&!!n.__definition.__classType&&n.__definition.__classType!==""):e=n.__definition.__classType;break;case(typeof n=="function"&&!!n.name):e=n.name;break;default:e=Be(n);break}return e},"__getType__"),Ae=c(function(n,e){return!!(typeof n<"u"&&n!==null&&((Ie(n)||He(n))&&n.hierarchy().includes(e)||ye(n)===e||Be(n)===e||typeof n===e))},"is_a"),ft=c(function(t){if(typeof t<"u")if(u)try{r[t.name]=t,window[t.name]=t}catch{}else typeof f<"u"&&(Object.hasOwnProperty.call(f,t.name)||(f[t.name]=t))},"__make_global__"),kt=c(function(t,n){var e=t.name||ye(t);return t.__definition.__classType=e,typeof n<"u"&&(t.__definition.__namespace=n),pe[e]=t,r[e]=pe[e],r[e]},"__register_class__"),pt=c(function(t,n){return kt(t,n)},"RegisterClass");ft(pt);var me=c(function(){var t={},n,e,o;switch(arguments.length){case 0:return class{};case 1:n=arguments[0],e=c(class{},"type"),o={};break;case 2:n=arguments[0],e=c(class{},"type"),o=arguments[1];break;case 3:n=arguments[0],e=arguments[1],o=arguments[2];break;default:break}if(typeof e!="function")throw new Error("Class type must be a function or class");if(Dn.call(this,n))throw new Error(`${n} is not an allowed word in the name of a class`);return typeof e.__definition<"u"&&(o.__definition=Object.assign(ct(e.__definition),e)),t[e.name]=e,typeof o>"u"||o===null?o={}:o=ct(o),typeof o.__instanceID<"u"&&delete o.__instanceID,pe[n]=class extends t[e.name]{constructor(){var a;arguments.length>0?a={...arguments[0]}:a={};super(a);S(this,"__classType",n);S(this,"__definition",{...o});let i=this;if(_e=typeof _e>"u"||_e===null?0:_e+1,i.__instanceID||Object.defineProperty(i,"__instanceID",{value:_e,writable:!1}),typeof i.__definition<"u"&&Object.keys(i.__definition).filter(function(d){return isNaN(d)&&!["name","__instanceID","__classType","__definition"].includes(d)}).forEach(function(d){typeof i.__definition[d]=="function"?i[d]=i.__definition[d].bind(i):i[d]=i.__definition[d]}),G(pe[i.__classType]).map(function(d){i[d.name]=d.bind(i)}),G(i.__definition).map(function(d){i[d.name]=d.bind(i)}),i.body)if(typeof i.__definition>"u"||!Object.hasOwnProperty.call(i.__definition,"body")||typeof i.__definition.body>"u")try{u?i.body=P(i.__definition.__classType):i.body={}}catch{i.body={}}else Object.hasOwnProperty.call(i.__definition,"body")&&(i.body=i.__definition.body);try{if(typeof i.__new__=="function"?i.__new__.call(i,a):typeof super.__new__=="function"&&(i.__new__=super.__new__.bind(i),i.__new__.call(i,a)),typeof i=="object"&&Object.hasOwnProperty.call(i,"_new_")&&typeof i._new_.isCalled>"u")try{i._new_.call(i,a),i._new_.isCalled=!0}catch(d){l.warn(`${i.__classType}._new_() failed with error: ${d}`)}}catch(d){l.warn(d)}}static hierarchy(a){var i=c(function(m){return Object.hasOwnProperty.call(m,"__classType")?m.__classType:ye.call(a,m)},"__classType"),d=c(m=>typeof m<"u"&&typeof m.__proto__<"u"&&m.__proto__!==null?(i(m)!==""?[i(m)]:[]).concat(d(m.__proto__)):[],"__hierarchy__proto__");(typeof a>"u"||a===null)&&(a=this);var h=[];return h.push(i(a)),h=h.concat(d(a.__proto__)),h}static getParentClass(){return Object.getPrototypeOf(this.prototype.constructor)}__new__(a){Te(a,this)}_new_(){}getClass(){return Object.getPrototypeOf(this.constructor)}css(a){return typeof this.body<"u"&&this.body.style!=="undefined"&&(l.debug("body style"),this.body.style=De(a,this.body.style)),this.body.style}hierarchy(){var a=this;return this.getClass().hierarchy(a)}append(i){l.debug("append: start"),Ae(i,"Component")&&(l.debug("append: child is a Component"),l.debug(`appending the body of ${i.name}`));var i=arguments.length>0?arguments[0]:this.body;typeof this.body<"u"&&(l.debug("append element"),arguments.lenght>0?(l.debug("append to element"),this.body.append(i),typeof this.childs>"u"&&(this.childs=[]),this.childs.push(i)):u&&(l.debug("append to body"),document.body.append(i)))}attachIn(a){if(u)for(var i=document.subelements(a),d=0,h=i.length;d<h;d++)i[d].append(this);else throw new Error("attachIn not yet implemented for non browser platforms")}},pe[n]=Te(o,pe[n]),pe[n].__definition=o,pe[n].__definition.__classType=n,pe[n].__definition.__new__=c(function(a){Te(a,this)},"__new__"),r[n]=pe[n],r[n]},"Class");me.prototype.toString=function(){return"Class(name, type, definition) { [QCObjects native code] }"};var C=c(function(t){var n;if(t!==null&&t.indexOf(".")>-1){var e=t.split(".").slice(0,t.split(".").length-1).join("."),o=t.split(".").slice(-1).join(""),s=ne(e),a=typeof s<"u"?s.filter(i=>Ie(i)&&(i.__definition.__classType===o||typeof i=="function"&&!!i.name)).reverse():[];if(a.length>0)n=a[0];else throw Error(`Class ${t} not found.`)}else t!==null&&Object.hasOwnProperty.call(pe,t)&&(n=pe[t]);return n},"ClassFactory");u&&(Element.prototype.append=c(function(n){He(n)||typeof n.body<"u"?this.appendChild(n.body):this.appendChild(n)},"QC_Append"),Element.prototype.render=c(function(n){var e=this,o=c(function(s,a){if(typeof document.implementation.createHTMLDocument<"u"){var i=document.implementation.createHTMLDocument("");i.innerHTML=a,i.body.subelements("*").map(function(d){return s.append(d)})}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=n}catch{o(e,n)}else o(e,n)},"QC_Render"));var qt=c(function(t,n,e){return C(t)[n]},"_super_");qt.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"};var te=c(function(t,n){return n=arguments.length>1?n:{},typeof t>"u"?new Object:new t(n)},"New");te.prototype.toString=function(){return"New(QCObjectsClassName, args) { [QCObjects native code] }"};var F=c(function(t){return ft(t)},"Export");if(F.prototype.toString=function(){return"Export(function or symbol) { [QCObjects native code] }"},!u){var Xe=c(function(t){let n=b("fs");var e=null;try{var o=[`${r.CONFIG.get("projectPath")}${r.CONFIG.get("relativeImportPath")}`,`${r.CONFIG.get("basePath")}${r.CONFIG.get("relativeImportPath")}`,`${r.CONFIG.get("projectPath")}`,`${r.CONFIG.get("basePath")}`,`${r.CONFIG.get("relativeImportPath")}`,`${process.cwd()}${r.CONFIG.get("relativeImportPath")}`,`${process.cwd()}/node_modules/`+t,`${process.cwd()}/node_modules`,`${process.cwd()}`,"node_modules","./",""].concat(Pe.paths);o=o.filter(s=>n.existsSync(s+"/"+t)),o.length>0&&(e=o[0],l.info(t+" is Installed."))}catch(s){console.log(s)}return e},"findPackageNodePath");F(Xe)}me("_Crypt",Object,{last_string:"",last_key:"",construct:!1,_new_(t){var n=t.string,e=t.hasOwnProperty.call(t,"key")?t.key:null;this.__new__(t),e=e===null?this.__instanceID:e,this.last_key=e,this.last_string=n,this.construct=!0},_encrypt(){for(var t=this.string,n=this.key,e="",o,s,a=0;a<t.length;a++)o=t.substr(a,1),s=n.substr(a%n.length-1,1),o=String.fromCharCode(o.charCodeAt(0)+s.charCodeAt(0)),e+=o;return this.last_string=U.encode(e),this.last_string},_decrypt(){var t=this.string,n=this.key,e="",o,s;t=U.decode(t);for(var a=0;a<t.length;a++)o=t.substr(a,1),s=n.substr(a%n.length-1,1),o=String.fromCharCode(o.charCodeAt(0)-s.charCodeAt(0)),e+=o;return this.last_string=e,this.last_string},encrypt(t,n){var e=te(C("_Crypt"),{string:t,key:n!==""?n:"12345678ABC"});return e._encrypt()},decrypt(t,n){var e=te(C("_Crypt"),{string:t,key:n!==""?n:"12345678ABC"});return e._decrypt()}});var Hn=c(function(t){return C("_Crypt").encrypt(y(t),le)},"_CryptObject"),Lt=c(function(t){return t===""?{}:JSON.parse(C("_Crypt").decrypt(t,le))},"_DecryptObject"),Ft=c(function(){var t=1e3,n=C("_Crypt").encrypt((Math.random()*t).toString().replace(".",""),new Date().getTime().toString()),e=C("_Crypt").encrypt((Math.random()*t).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString()),o=e.list().map((s,a)=>n.list()[a]===s?null:s).filter(s=>s!==null).join("");return o},"shortCode"),qo=Ft;me("InheritClass",class{},{});let we=class extends C("InheritClass"){constructor(){super(...arguments);S(this,"component",null);S(this,"__definition",{});S(this,"__classType","Processor");this.processors=we.processors,this.process=we.process.bind(this),this.processObject=we.processObject.bind(this),this.setProcessor=we.setProcessor.bind(this),this.execute=we.execute.bind(this)}static setProcessor(e){typeof e=="function"&&e.name!==""&&(this.processors[e.name]=e)}static execute(e,o,s){var a=typeof e<"u"&&e!==null?e.processorHandler:this;return a.processors[o].bind(a).apply(a,[e,...s.split(",")])}static process(e,o=null){var s=o!==null?o.processorHandler:te(we,{component:null});return typeof e=="string"&&Object.keys(s.processors).map(function(a){[...e.matchAll(new RegExp("\\$"+a+"\\((.*)\\).*","g"))].map(function(i){var d=`$${a}(${i[1]})`;e=e.replace(d,s.execute.bind(s).call(s,o,a,i[1]))})}),e}static processObject(e,o=null){var s=o===null?this:o.processorHandler;return typeof s>"u"&&(s=new we({component:o})),typeof e=="object"?Object.keys(e).map(function(a){typeof e[a]=="object"&&!e[a].hasOwnProperty.call(e[a],"call")?e[a]=s.processObject.bind(s)(e[a],o):typeof e[a]=="string"&&(e[a]=s.process.bind(s)(e[a],o))}):typeof e=="string"&&(e=s.process.bind(s)(e,o)),e}},oe=we;c(oe,"Processor"),S(oe,"processors",{config(e,o){return r.CONFIG.get(o,"")},ENV(e,o){return typeof process<"u"?process.env[o]:""},global(e,o){return typeof f<"u"?f[o]:""}}),oe.__definition={},oe.__classType="Processor",pt(oe,"com.qcobjects"),ft(oe);let Ot=class{static get instance(){if(this._instance===null){var n=new Ot;n._CONFIG={relativeImportPath:"",remoteImportsPath:"",remoteSDKPath:"https://sdk.qcobjects.dev/v2.4/",asynchronousImportsLoad:!1,removePackageScriptAfterLoading:!0,componentsBasePath:"",delayForReady:0,preserveComponentBodyTag:!1,useConfigService:!1,routingWay:"hash",useSDK:!0,useLocalSDK:!1,basePath:D},n._CONFIG_ENC=null,this._instance=n}return this._instance}static set instance(n){this._instance=n}},je=Ot;c(je,"ConfigSettings"),S(je,"_instance",null),S(je,"_CONFIG_ENC",null),pe.ConfigSettings=je,me("CONFIG",Object,{get _CONFIG_ENC(){return C("ConfigSettings").instance._CONFIG_ENC},get _CONFIG(){return C("ConfigSettings").instance._CONFIG},set(t,n){l.debug(`CONFIG.set ${t}: ${n}`),t==="basePath"&&(D=n);var e;try{e=function(o){o._CONFIG_ENC===null&&(o._CONFIG_ENC=C("_Crypt").encrypt(y({}),le));var s=o._CONFIG_ENC.valueOf(),a=o._CONFIG.valueOf();return Te(a,Lt(s))}(C("ConfigSettings").instance)}catch(o){e={},console.error(o),l.debug("failed to encrypt config")}e[t]=n,C("ConfigSettings").instance._CONFIG_ENC=Hn(e),Object.hasOwnProperty.call(C("ConfigSettings").instance,"_CONFIG")&&Object.hasOwnProperty.call(C("ConfigSettings").instance._CONFIG,t)&&(C("ConfigSettings").instance._CONFIG[t]=n)},get(t,n){var e;try{var o=function(s){s._CONFIG_ENC===null&&(s._CONFIG_ENC=C("_Crypt").encrypt(y({}),le));var a=s._CONFIG_ENC.valueOf(),i=s._CONFIG.valueOf();return Te(i,Lt(a))}(C("ConfigSettings").instance);typeof o[t]<"u"?e=o[t]:typeof n<"u"&&(e=n)}catch(s){console.error(s),l.debug("Something wrong when trying to get CONFIG values"),l.debug("No config value for: "+t),e=n}return oe.processObject.call(oe,e)}}),F(Y),F(qt),F(A),F(C),F(P),F(Ft),F(ye),F(Ae);var He=c(function(t){return!!(typeof t=="object"&&Object.hasOwnProperty.call(t,"__classType")&&t.__instanceID&&Object.hasOwnProperty.call(t,"__definition")&&typeof t.__definition<"u")},"isQCObjects_Object"),Ie=c(function(t){return!!(typeof t=="function"&&!t.__instanceID&&t.__definition&&typeof t.__definition<"u"&&t.__definition.__classType)},"isQCObjects_Class"),ne=c(function(t,n){return de.hasOwnProperty.call(de,t)&&typeof de[t]<"u"&&de[t].hasOwnProperty.call(de[t],"length")&&de[t].length>0&&typeof n<"u"&&n.hasOwnProperty.call(n,"length")&&n.length>0?(n.filter(function(e){return Ie(e)}).map(function(e){e.__definition.__namespace=t,e.__namespace=t}),de[t]=de[t].concat(n)):typeof n<"u"&&(typeof n=="object"&&n.hasOwnProperty.call(n,"length")?n.filter(function(e){return Ie(e)}).map(function(e){e.__definition.__namespace=t,e.__namespace=t}):Ie(n)&&(n.__definition.__namespace=t,n.__namespace=t),de[t]=n),Object.hasOwnProperty.call(de,t)&&de[t].map(function(e){kt(e,t)}),Object.hasOwnProperty.call(de,t)?de[t]:void 0},"Package");ne.prototype.toString=function(){return"Package(namespace, classes) { [QCObjects native code] }"},ne("com.qcobjects",[oe]);var $n=c(function(t){let e=ne(t).filter(o=>Ie(o)).map(o=>({[o.__definition.__classType]:o})).reduce((o,s)=>Object.assign(o,s));return t.split(".").map(o=>({[o]:e})).reverse().reduce((o,s)=>(s[Object.keys(s)]=o,s))},"NamespaceRef"),ht=c(function(){var t,n=c(function(){},"ready"),e=!1;if(!(arguments.length<1)){arguments.length===1?t=arguments[0]:arguments.length===2?(t=arguments[0],n=arguments[1]):arguments.length>2&&(t=arguments[0],n=arguments[1],e=arguments[2],l.debug("[Import] Setting external="+e.toString()+" resource to import: "+t)),e?l.debug("[Import] Registering external resource to import: "+t):l.debug("[Import] Registering local resource to import: "+t);var o;return u?(o=new Promise(function(s,a){var i=c(function(){var m=!1,_=0;for(var I in de)_++;return _<ut.length?m=!1:m=!0,m},"allPackagesImported"),d=c(function(m){ut.push(n),i()&&ut.map(function(_){Ge.push(_)}),u&&r.CONFIG.get("removePackageScriptAfterLoading")&&m.target.remove(),s.call(o,{_imported_:m.target,_package_name_:t})},"readyImported");if(!de.hasOwnProperty.call(de,t)){var h=P("script");h.type=r.CONFIG.get("sourceType","text/javascript"),h.async=!!r.CONFIG.get("asynchronousImportsLoad"),h.onreadystatechange=function(){h.readyState==="complete"&&d.call()},h.onload=d,h.onerror=function(m){a.call(o,{_imported_:h,_package_name_:t})},h.src=e?r.CONFIG.get("remoteImportsPath")+t+".js":D+r.CONFIG.get("relativeImportPath")+t+".js",document.getElementsByTagName("head")[0].appendChild(h)}}),o.catch(function(){l.debug("Import: Error loading a package ")})):o=new Promise(function(s,a){try{var i=Xe(t),d="";if(i!==null)d=i+"/"+t;else{var h=Xe(t+".js");h!==null?d=h+"/"+t+".js":d=D+r.CONFIG.get("relativeImportPath")+t}try{s.call(o,{_imported_:b(`${d}`),_package_name_:t})}catch(m){a.call(o,{_imported_:null,_package_name_:t,error:m})}}catch(m){a.call(o,{_imported_:null,_package_name_:t,error:m})}}).catch(function(s){l.debug("Something happened when importing "+t),console.warn(s)}),o.catch(function(s){l.warn(y(s))}),o}},"Import");ht.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"},u&&(Element.prototype.Cast=c(function(e){e.__definition.body=this;var e=te(e);return e},"QC_Object")),me("TagElements",Array,{show(){this.map(function(t){return t.style.opacity=1})},hide(){this.map(function(t){return t.style.opacity=0})},effect(){var t=[...arguments].slice(1),n=arguments[0];(typeof n).toLowerCase()==="string"&&(n=C(n)),this.map(function(e){return n.apply.apply(n,[e].concat(t))})},findElements(t){var n=te(C("TagElements"));if(u)for(var e in this)typeof e=="number"&&typeof this[e]!="function"&&this[e].hasOwnProperty.call(this[e],"subelements")&&n.push(this[e].subelements(t));return n}});var Un=c(function(t,n){var e=te(C("TagElements"));if(u)for(var o=document.subelements(t),s=[],a=0;a<o.length;a++)typeof n<"u"&&o[a].hasOwnProperty.call(o[a],"innerHTML")&&(o[a].innerHTML=n),s.indexOf(a)<0&&(e.push(o[a]),s.push(a));return e},"Tag"),Wn=$e,mt=c(function(t){var n=c(function(){Ge.map(function(e,o){typeof e=="function"&&(e.call(),delete Ge[o])})},"_execReady");r.CONFIG.get("delayForReady")>0?u?setTimeout(n.bind(window),r.CONFIG.get("delayForReady")):typeof f<"u"&&setTimeout(n.bind(f),r.CONFIG.get("delayForReady")):n.call(r)},"_Ready");u?(window.onload=mt,he&&document.addEventListener("deviceready",mt,ze)):f.onload=mt;class Ut extends C("InheritClass"){constructor({instance:n,name:e,fget:o,fset:s,value:a}){super({instance:n,name:e,fget:o,fset:s,value:a}),this._new_({instance:n,name:e,fget:o,fset:s,value:a})}_new_({instance:n,name:d,fget:o,fset:s,value:a}){var i=this,d=typeof d>"u"?Be(i):d;Object.defineProperty(n,d,{set(h){let m=h;l.debug("value changed "+d);var _;typeof s<"u"&&typeof s=="function"?_=s(m):_=m,n["_"+d]=_},get(){let h=n["_"+d];l.debug("returning value "+d);var m=c(function(I){return typeof I=="object"&&Object.hasOwnProperty.call(I,"value")?I.value:I},"is_ddo"),_;return typeof o<"u"&&typeof o=="function"?_=o(m(h)):_=m(h),_}})}}c(Ut,"DDO"),F(Ut);class wt{constructor({component:n,template:e}){S(this,"template","");S(this,"__definition",{});this.component=n,this.template=e}assign(n){var e=this;if(typeof e.component>"u")throw new Error("DefaultTemplateHandler.assign: component is undefined");if(typeof e.component.processorHandler>"u")throw new Error("DefaultTemplateHandler.assign: component.processorHandler is undefined");var o=e.component.processorHandler;o.component=e.component;var s=typeof e.template<"u"?e.template:"";typeof n=="object"?[...Object.keys(n)].map(function(a){var i=n[a];if(typeof i=="string"||typeof i=="number"||!isNaN(i))try{i=oe.processObject.bind(o).call(o,i,e.component),s=s.replace(new RegExp(`{{${a}}}`,"g"),i)}catch(d){throw l.warn(`${e.component.name} could not parse processors.`),Error(`${e.component.name} could not parse processors. Reason: ${d.message}`)}}):l.debug(`${e.component.name}.data is not an object`);try{s=oe.processObject.call(o,s,e.component)}catch(a){throw l.warn(`${e.component.name} could not parse processors.`),Error(`${e.component.name} could not parse processors. Reason: ${a.message}`)}return s}}c(wt,"DefaultTemplateHandler"),wt.__definition={},pt(wt,"com.qcobjects");var zn=c(function(t,n){let e=t.path.replace(/{(.*?)}/g,"(?<$1>.*)");return{...[...n.matchAll(new RegExp(e,"g"))][0].groups}},"__routing_params__"),Bn=c(function(t,n){return t.filter(function(e){var o=e.path.replace(/{(.*?)}/g,"(?<$1>.*)");return new RegExp(o,"g").test(n)}).reverse()},"__valid_routings__"),Gt=c(function(t,n){return t.includes(n)},"__valid_routing_way__"),Xn=c(function(t,n){var e=t.getAttribute("shadowed")===null,o=t.getAttribute("template-source")===null,s=t.getAttribute("shadowed")==="true",a=t.getAttribute("cached")===null,i=t.getAttribute("cached")==="true",d=typeof r.CONFIG.get("tplextension")<"u"?r.CONFIG.get("tplextension"):"html";d=t.getAttribute("tplextension")!==null?t.getAttribute("tplextension"):d;var h=t.getAttribute("name"),m=t.getAttribute("componentClass")!==null?t.getAttribute("componentClass"):"Component";let _=r.CONFIG.get("preserveComponentBodyTag")?h!==null?"com.qcobjects.components."+h+".ComponentBody":"com.qcobjects.components.ComponentBody":m;h=h!==null?h:C(_)&&typeof C(_).name<"u"?C(_).name:"";var I=C(_),N=_!=="Component"&&typeof I<"u"&&typeof I.tplsource=="string"&&I.tplsource!=="",H=o&&N?I.tplsource:o?"default":t.getAttribute("template-source");l.debug(`template source for ${h} is ${H} `),l.debug(`type for ${h} is ${ye(I)} `);var M;M=gt({COMPONENTS_BASE_PATH:r.CONFIG.get("componentsBasePath"),COMPONENT_NAME:h,TPLEXTENSION:d,TPL_SOURCE:H}),r.CONFIG.get("preserveComponentBodyTag")&&ne(h!==""?"com.qcobjects.components."+h:"com.qcobjects.components",[me("ComponentBody",C("Component"),{name:h,tplsource:H,tplextension:d,reload:!0})]);var j=c(function(){var B=e?I&&I.shadowed||C("Component").shadowed:s,K={__parent__:n,name:h,cached:a?C("Component").cached:i,shadowed:B,tplextension:d,body:r.CONFIG.get("preserveComponentBodyTag")?P("componentBody"):t,templateURI:M,tplsource:H};(typeof h>"u"||h===""||h===null)&&delete K.name,M===""&&delete K.templateURI;var Q=te(I,K);return r.CONFIG.get("preserveComponentBodyTag")&&t.append(Q),Q},"__create_component_instance_"),X=j.call(this);return X},"_buildComponentFromElement_"),Dt=c(function(t,n){var e=[];return u?e=t.map(function(o){return Xn(o,n)}):l.debug("[_buildComponentsFromElements_] not implemented for Non-Browser environments"),e},"_buildComponentsFromElements_");ne("com.qcobjects",[c(class extends C("InheritClass"){constructor({templateURI:e="",template:o,tplsource:s="default",url:a="",name:i="",method:d="GET",data:h={},reload:m=!1,shadowed:_=!1,cached:I=!0,_body:N=P("div"),__promise__:H=null,__shadowRoot:M,body:j,shadowRoot:X,splashScreenComponent:B,controller:K,view:Q}){super(...arguments);S(this,"validRoutingWays",["pathname","hash","search"]);S(this,"basePath",D);S(this,"domain",L);S(this,"templateHandler","DefaultTemplateHandler");S(this,"processorHandler",null);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,"view");S(this,"effect");S(this,"method","GET");S(this,"cached",!0);S(this,"__promise__",null);S(this,"__namespace");var W=this;typeof W.name>"u"&&l.warn("A name is not defined for "+ye(W)),W.routingWay=r.CONFIG.get("routingWay"),W.processorHandler=te(oe,{component:W}),W.data=typeof W.data>"u"||W.data===null?{}:W.data,W.data=Object.assign(W.data,W.dataAttributes),W.createServiceInstance().then(function(Ze){typeof W.__new__=="function"&&W.__new__.call(W,W),W._generateRoutingPaths(W.body).then(function(){W._reroute_().then(function(){return W.rebuild().then(function(){l.info(`Component._new_ The component ${W.name} was built successfully!`)}).catch(function(Ve){l.warn(`Component._new_ Something went wrong building the component ${W.name}`),console.error(Ve)})})})})}set body(e){var o=this;o._body=e}get body(){var e=this;return e._body}set cacheIndex(e){l.debug("[cacheIndex] This property is readonly")}get cacheIndex(){var e=this,o=y(e.routingPath);return U.encode(e.name+o)}set parsedAssignmentText(e){l.debug("[parsedAssignmentText] This property is readonly")}get parsedAssignmentText(){var 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){var o=this;typeof o.__shadowRoot>"u"?o.__shadowRoot=e:l.debug("[shadowRoot] This property can only be assigned once!")}get shadowRoot(){var e=this;return e.__shadowRoot}set routingSelected(e){l.debug("[routingSelected] This is a read-only property of the component")}get routingSelected(){var e=this;return Bn(e.routings,e.routingPath)}set routingParams(e){l.debug("[routingParams] This is a read-only property of the component")}get routingParams(){var e=this;return[{}].concat(e.routingSelected.map(function(o){return zn(o,e.routingPath)})).reduce(function(o,s,a){return Object.assign(o,s)})}createServiceInstance(){var e=this,o=e.body,s=this.data,a,i=e.getClass().__definition,d=u&&o.getAttribute("serviceClass")!==null?o.getAttribute("serviceClass"):null;return new Promise(function(h,m){var _=!!(Object.hasOwnProperty.call(o,"enableServiceClass")&&o.enableServiceClass||!Object.hasOwnProperty.call(o,"enableServiceClass")),I=!!(u&&o.getAttribute("response-to")!==null&&o.getAttribute("response-to")==="data"),N=!!(u&&o.getAttribute("response-to")!==null&&o.getAttribute("response-to")==="template");if(_&&d!==null&&(a=C(d)),!I&&i&&Object.hasOwnProperty.call(i,"responseTo")?I=i.responseTo==="data":!I&&Object.hasOwnProperty.call(C("Component"),"responseTo")&&(I=C("Component").responseTo==="data"),!N&&i&&Object.hasOwnProperty.call(i,"responseTo")?N=i.responseTo==="template":!N&&Object.hasOwnProperty.call(C("Component"),"responseTo")&&(N=C("Component").responseTo==="template"),typeof a<"u"&&typeof _<"u"&&_===!0&&(I||N)){l.info("Loading service "+d);var H=te(a,{data:s});yt(H).then(function({request:M,service:j}){var X;typeof j.JSONresponse<"u"&&j.JSONresponse!==null?X=j.JSONresponse:X=j.template,I&&(typeof s=="object"&&typeof X=="object"?s=Object.assign(s,X):s=X,e.data=s),e.serviceInstance=H,e.serviceData=s,N&&(e.template=X),h(X)},function(M){l.debug(`Service loading rejected for ${d} in ${e.name}`),m(M)}).catch(function(M){throw l.debug("Something went wroing while trying to load the service "+d),Error(`Error loading ${d} for ${e.name}. Detail: ${M}`)})}else h(null)})}_bindroute_(){var e=this;e._bindroute_.loaded?l.debug(`Routes already bound to popstate events for ${e.name}`):(u&&e.hostElements("a").map(function(o){return o.oldclick=o.onclick,o.onclick=function(s){var a=!0;r.global.get("routingPaths")||r.global.set("routingPaths",[]);var i=r.CONFIG.get("routingWay"),d=s.target[i];return r.global.get("routingPaths").includes(d)&&s.target[i]!==document.location[i]&&s.target.href!==document.location.href?(l.debug("A ROUTING WAS FOUND: "+d),window.history.pushState({href:s.target.href},s.target.href,s.target.href),C("Component").route(),a=!1):l.debug("NO ROUTING FOUND FOR: "+d),typeof s.target.oldclick<"u"&&typeof s.target.oldclick=="function"&&s.target.oldclick.call(s.target,s),a},null}),this._bindroute_.loaded=!0)}done(e){var o;if(typeof e<"u"){var{request:s,component:a}=e;o=Promise.resolve({request:s,component:a})}return o}createControllerInstance(){var e;if(u){if(typeof this.body>"u")throw new Error("The component has no body");var o=this.body.getAttribute("controllerClass");o||(o="Controller"),e=C(o),typeof e<"u"&&(this.controller=te(e,{component:this}))}return new Promise((s,a)=>{if(u&&typeof e<"u"&&typeof this.controller<"u"){if(typeof this.controller.done=="function")try{this.controller.done.call(this.controller)}catch(i){throw Error(i)}else l.debug(`${o} does not have a done() method.`),a(`${o} does not have a done() method.`);typeof this.controller.createRoutingController=="function"?this.controller.createRoutingController.call(this.controller):l.debug(`${o} does not have a createRoutingController() method.`)}s({component:this,controller:this.controller})})}createEffectInstance(){var e=this;return new Promise(function(o,s){if(u){var a=e.body.getAttribute("effectClass"),i=e.body.getAttribute("apply-effect-to");i=i!==null?i:"load",a!==null&&i==="observe"?e.applyObserveTransitionEffect(a):a!==null&&i==="load"&&e.applyTransitionEffect(a)}o({component:e,effect:e.effect})})}createViewInstance(){var e=this;return new Promise(function(o,s){var a=u?e.body.getAttribute("viewClass"):null;if(a!==null){var i=C(a);typeof i<"u"&&(e.view=te(i,{component:e}),Object.hasOwnProperty.call(e.view,"done")&&typeof e.view.done=="function"&&e.view.done.call(e.view))}o({component:e,view:e.view})})}__done__(){var e=this,o=c(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");e.createViewInstance(),e.createControllerInstance(),e.createEffectInstance(),l.debug(`Trying to run component helpers for ${e.name}...`);try{e.runComponentHelpers(),l.debug(`Component helpers for ${e.name} executed.`)}catch(s){throw l.debug(`Component helpers for ${e.name} could not be executed.`),Error(s)}e.subcomponents=e.__buildSubComponents__(),e._bindroute_(),e.body.setAttribute("loaded",!0)},"componentDone");return new Promise(function(s,a){try{Promise.resolve(o.call(e))}catch(i){a(i)}})}hostElements(e){var o=this,s=o.shadowed&&typeof o.shadowRoot<"u"?o.shadowRoot.subelements(e):o.body.subelements(e);return s}get subtags(){var e=this,o=ae;return e.hostElements(o)}get bodyAttributes(){var e=this,o=e.body;return u?[...o.getAttributeNames()].map(s=>({[s]:o.getAttribute(s)})).reduce((s,a,i)=>Object.assign(s,a)):{}}get dataAttributes(){var e=this,o=e.body;return u?[{}].concat([...o.getAttributeNames()].filter(s=>s.startsWith("data-")).map(s=>({[s.split("-")[1]]:o.getAttribute(s)}))).reduce((s,a,i)=>Object.assign(s,a)):{}}__buildSubComponents__(e=!1){var o=this,s=o.subtags;return e||(s=s.filter(a=>a.getAttribute("loaded")!=="true")),(typeof o<"u"||o.subcomponents.length<1)&&(o.subcomponents=Dt(s,o)),o.subcomponents}fail(e){var o;if(typeof e<"u"){var{error:s,component:a}=e;o=Promise.resolve({error:s,component:a})}return o}set(e,o){this[e]=o}get(e){return this[e]}feedComponent(){var e=this;l.debug(`[Component][${this.name}][feedComponent] start feeding component...`);var o=c(function(i){if(typeof i.container>"u"&&typeof i.body>"u"){l.warn("COMPONENT {{NAME}} has an undefined container and body".replace("{{NAME}}",i.name));return}var d=typeof i.container>"u"||i.container===null?i.body:i.container,h=i.parsedAssignmentText;if(i.innerHTML=h,i.shadowed){l.debug("COMPONENT {{NAME}} is shadowed".replace("{{NAME}}",i.name)),l.debug("Preparing slots for Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",i.name));var m=P("div");d.subelements("[slot]").map(function(N){N.parentElement===d&&m.appendChild(N)}),l.debug("Creating shadowedContainer for COMPONENT {{NAME}}".replace("{{NAME}}",i.name));var _=P("div");_.classList.add("shadowHost");try{i.shadowRoot=_.attachShadow({mode:"open"})}catch{try{l.debug("Shadowed COMPONENT {{NAME}} is repeated".replace("{{NAME}}",i.name)),i.shadowRoot=_.shadowRoot}catch{l.warn("Shadowed COMPONENT {{NAME}} is not allowed on this browser".replace("{{NAME}}",i.name))}}if(typeof i.shadowRoot<"u"&&i.shadowRoot!==null){i.reload?(l.debug("FORCED RELOADING OF CONTAINER FOR Shadowed COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),_.shadowRoot.innerHTML=i.innerHTML):(m.innerHTML=i.parseTemplate(m.innerHTML),l.debug("ADDING Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",i.name)),_.shadowRoot.innerHTML+=i.innerHTML),l.debug("ADDING Slots to Shadowed COMPONENT {{NAME}} ".replace("{{NAME}}",i.name)),_.innerHTML+=m.innerHTML,l.debug("APPENDING Shadowed COMPONENT {{NAME}} to Container ".replace("{{NAME}}",i.name));var I=d.querySelector(".shadowHost");typeof I<"u"&&I!==null?(l.debug("Shadowed Container for COMPONENT {{NAME}} is already present in the tree ".replace("{{NAME}}",i.name)),i.shadowRoot.innerHTML=_.shadowRoot.innerHTML):d.appendChild(_)}else l.warn("Shadowed COMPONENT {{NAME}} is bad configured".replace("{{NAME}}",i.name))}else i.reload?(l.debug("FORCED RELOADING OF CONTAINER FOR COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),d.innerHTML=i.innerHTML):d&&i?(l.debug("ADDING COMPONENT {{NAME}} ".replace("{{NAME}}",i.name)),d.innerHTML+=i.innerHTML):l.warn("COMPONENT {{NAME}} is not added to the DOM".replace("{{NAME}}",i.name))},"_feedComponent_InBrowser"),s=c(function(i){var d=i.parsedAssignmentText;i.innerHTML=d},"_feedComponent_InNode"),a;if(!Ae(e,"Component")){l.warn("Trying to feed a non component object");return}return u?a=o(e):a=s(e),a}rebuild(){var e=this,o=new Promise(function(s,a){if((typeof e>"u"||e===null)&&a("Component is undefined"),He(e)&&Ae(e,"Component"))switch(!0){case e.get("tplsource")==="none":l.debug("Component "+e.name+" has specified template-source=none, so no template load was done");var i={request:null,component:e};e.__done__().then(function(){typeof e.done=="function"&&e.done.call(e,i),s.call(o,i)},function(){a.call(o,i)});break;case e.get("tplsource")==="inline":l.debug("Component "+e.name+" has specified template-source=inline, so it is assumed that template is already declared"),async function(d){d.feedComponent.bind(d)()}(e);var i={request:null,component:e};e.__done__().then(function(){typeof e.done=="function"&&e.done.call(e,i),s.call(o,i)},function(){a.call(o,i)});break;case(e.get("tplsource")==="default"&&e.get("templateURI")!==""):e.set("url",e.get("basePath")+e.get("templateURI")),bt(e,!1).then(function(d){s.call(o,d)},function(d){a.call(o,d)});break;case(e.get("tplsource")==="external"&&e.get("templateURI")!==""):e.set("url",e.get("templateURI")),bt(e,!1).then(function(d){s.call(o,d)},function(d){a.call(o,d)});break;case(e.get("tplsource")==="default"&&e.get("templateURI","")===""):l.debug(`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`),a.call(o,`Component ${e.name} template-source is ${e.get("tplsource")} and no templateURI is present`);break;default:l.debug("Component "+e.name+" will not be rebuilt because no templateURI is present"),a.call(o,{request:null,component:e});break}});return o}Cast(e){let o=G(e).map(s=>s.name.replace(/bound /g,"")).map(s=>({[s]:e[s].bind(this)})).reduce((s,a)=>Object.assign(s,a),{});return De(this,o)}static route(){var e=this,o,s=!!(He(e)&&Ae(e,"Component")),a=c(function(i){var d=[],h=i.filter(function(m){return typeof m<"u"}).map(function(m){if(typeof m.name<"u")d.push(m.name);else throw new Error(ye(m)+" does not have a name");return new Promise(function(_,I){var N;return typeof m<"u"&&m._reroute_?N=m._reroute_().then(function(){return m.reload=!0,m.rebuild()}).then(function(H){if(Object.hasOwnProperty.call(m,"subcomponents")&&typeof m.subcomponents<"u"&&m.subcomponents.length>0)return l.debug("LOOKING FOR ROUTINGS IN SUBCOMPONENTS FOR: "+m.name),a.call(m,m.subcomponents);l.debug("No subcomponents to look for routings in: "+m.name),m.subtags.length>0&&(m.subcomponents=m.__buildSubComponents__(!0)),_(m)}):typeof m<"u"&&I("Component "+m.name+" is not an instance of Component"),N})});return Promise.all(h).then(function(){l.debug("ROUTING COMPLETED FOR "+d.join(", "))}).catch(function(m){l.warn("ROUTING FAILED FOR "+d.join(", ")+": "+m)})},"__route__");if(s||r.componentsStack)s&&l.debug("loading routings for instance "+e.name),o=a.call(e,s?e.subcomponents:r.componentsStack);else throw l.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(u){var e=this.body;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()}}closefullscreen(){u&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen())}_generateRoutingPaths(e){var o=this;return new Promise(function(s,a){u&&Gt(o.validRoutingWays,o.routingWay)&&typeof e<"u"&&(o.innerHTML=e.innerHTML,o.routingNodes=e.subelements("routing"),o.routings=[],o.routingNodes.map(function(i,d){var h=i.getAttributeNames(),m={};h.map(function(_,I){m[h[I]]=i.getAttribute(h[I])}),o.routings.push(m),o.routingPaths||(o.routingPaths=[]),o.routingPaths.includes(m.path)||o.routingPaths.push(m.path),r.global.get("routingPaths")||r.global.set("routingPaths",[]),r.global.get("routingPaths").includes(m.path)||r.global.get("routingPaths").push(m.path)})),s()})}parseTemplate(e){var o=this,s,a=e;if(Object.hasOwnProperty.call(o,"templateHandler")){var i=o.templateHandler;l.debug(`[Component][${this.name}][parseTemplate] Attempting to use ${i} ...`);var d=C(i),h=te(d,{component:o,template:a});h.component=o;var m=o.data;if(Object.hasOwnProperty.call(o,"assignRoutingParams")&&o.assignRoutingParams)try{m=Object.assign(m,o.routingParams)}catch{l.debug("[parseTemplate] it was not possible to assign the routing params to the template")}s=h.assign(m)}else l.debug(`[Component][${this.name}][parseTemplate] No value for templateHandler. Using raw content...`),s=a;return s}_reroute_(){var e=this;return new Promise(function(o,s){u&&Gt(e.validRoutingWays,e.routingWay)&&(e.routingPath=document.location[e.routingWay],e.routingSelected.map(function(a,i){var d=gt({COMPONENTS_BASE_PATH:r.CONFIG.get("componentsBasePath"),COMPONENT_NAME:a.name.toString(),TPLEXTENSION:Object.hasOwnProperty.call(a,"tplextension")?a.tplextension:e.tplextension,TPL_SOURCE:"default"});e.templateURI=d}),e.routingSelected.length>0&&(e.template="",e.body.innerHTML="")),o(e)})}lazyLoadImages(){if(u){var e=this,o=e.shadowed?e.shadowRoot:e.body,s=[...o.subelements("img[lazy-src]")],a=c(function(d){d.setAttribute("src",d.getAttribute("lazy-src")),d.onload=()=>{d.removeAttribute("lazy-src")}},"_lazyLoadImages");if("IntersectionObserver"in window){var i=new IntersectionObserver((d,h)=>{d.forEach(m=>{m.isIntersecting&&(a(m.target),h.unobserve(m.target))})});s.map(function(d){return i.observe(d)})}else s.map(a)}return null}applyTransitionEffect(e){var o=C(e);if(typeof o>"u")throw Error(`${e} not found.`);typeof o<"u"&&Ae(o,"TransitionEffect")?(this.effect=te(o,{component:this}),this.effect.apply(this.effect.defaultParams)):l.debug(`${e} is ${ye(o)} but is not a TransitionEffect`)}applyObserveTransitionEffect(e){if(u){var o=this,s=o.shadowed?o.shadowRoot.host:o.body,a=c(function(d){o.applyTransitionEffect(e)},"_applyEffect_");if("IntersectionObserver"in window){var i=new IntersectionObserver((d,h)=>{d.forEach(m=>{m.isIntersecting&&(a(m.target),h.unobserve(m.target))})});i.observe(s)}else a(s)}return null}scrollIntoHash(){if(u){var e=this;if(document.location.hash!==""){var o=e.shadowed?e.shadowRoot:e.body;o.subelements(document.location.hash).map(function(s){typeof s.scrollIntoView=="function"&&s.scrollIntoView(r.CONFIG.get("scrollIntoHash",{behavior:"auto",block:"top",inline:"top"}))})}}}i18n_translate(){if(u&&r.CONFIG.get("use_i18n")){var e=this,o=e.shadowed?e.shadowRoot:e.body,s=r.CONFIG.get("lang","en"),a=navigator.language.slice(0,2),i=r.global.get("i18n");if(s!==a&&typeof i=="object"&&Object.hasOwnProperty.call(i,"messages")){var d=c(function(){var h=this;return new Promise(function(m,_){var I=i.messages.filter(function(N){return Object.hasOwnProperty.call(N,s)&&Object.hasOwnProperty.call(N,a)});o.subelements("ul,li,h1,h2,h3,a,b,p,input,textarea,summary,details,option,component").map(function(N){return I.map(function(H){var M=N.innerHTML;return M=M.replace(new RegExp(`${H[s]}`,"g"),H[a]),N.innerHTML=M,null}),N}),m()})},"callback_i18n");d.call(e).then(function(){l.debug("i18n loaded for component: "+e.name)})}}}addComponentHelper(e){var o=this;o._componentHelpers.push(e)}runComponentHelpers(){if(u){var 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(function(s){l.debug(`Executing ${s.name} as component helper for ${e.name}...`),s()})}}},"Component")]),G(C("Component")).map(function(t){O(t)}),u&&window.addEventListener("popstate",function(t){t.stopImmediatePropagation(),t.stopPropagation(),C("Component").route()}),ne("com.qcobjects.controllers",[c(class extends C("InheritClass"){constructor({component:e,dependencies:o}){super({component:e,dependencies:o});S(this,"component",null);S(this,"dependencies",[]);if(this.component=e,this.dependencies=o,typeof this.component>"u"||this.component==="null")throw Error(`${ye(this)} must be called with a component`)}routingSelectedAttr(e){return this.component.routingSelected.map(function(o){return o[e]}).filter(function(o){return o}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(e,o){try{this.isTouchable()?this.component.body.subelements(e)[0].addEventListener("touchstart",o,{passive:!0}):this.component.body.subelements(e)[0].addEventListener("click",o,{passive:!0})}catch{l.debug("No button to assign press event")}}createRoutingController(){var e=this,o=e.component,s=e.routingSelectedAttr("controllerclass");if(typeof s<"u"){var a=C(s);typeof a<"u"&&(o.routingController=te(a,{component:o}),Object.hasOwnProperty.call(o.routingController,"done")&&typeof o.routingController.done=="function"&&o.routingController.done.call(o.routingController))}}done(){}},"Controller")]),ne("com.qcobjects.views",[c(class extends C("InheritClass"){constructor({component:n=void 0,dependencies:e=[]}){if(super(...arguments),typeof this.component>"u"||this.component==="null")throw Error(`${ye(this)} must be called with a component`)}},"View")]),ne("com.qcobjects.api",[c(class extends C("InheritClass"){constructor(){super(...arguments);S(this,"kind","rest");S(this,"domain",L);S(this,"basePath",D);S(this,"url","");S(this,"method","GET");S(this,"data",{});S(this,"reload",!1);S(this,"cached",!1)}set(e,o){this[e]=o}get(e){return this[e]}},"Service")]),ne("com.qcobjects.api.services",[c(class extends C("Service"){constructor(){super(...arguments);S(this,"method","GET");S(this,"cached",!1);S(this,"headers",{"Content-Type":"application/json",charset:"utf-8"});S(this,"JSONresponse",null)}done(e){l.debug("***** RECEIVED RESPONSE:"),l.debug(e.service.template),this.JSONresponse=JSON.parse(e.service.template)}},"JSONService")]),ne("com.qcobjects.api.config",[c(class extends C("JSONService"){constructor(){super(...arguments);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",null);this.set("url",this.get("basePath")+this.get("configFileName"))}done(e){l.debug("***** CONFIG LOADED:"),l.debug(e.service.template),this.JSONresponse=JSON.parse(e.service.template),Object.hasOwnProperty.call(this.JSONresponse,"__encoded__")&&(this.JSONresponse=JSON.parse(C("_Crypt").decrypt(this.JSONresponse.__encoded__,le)));for(var o in this.JSONresponse)r.CONFIG.set(o,this.JSONresponse[o]);this.configLoaded.call(this)}fail(e){this.configLoaded.call(this)}},"ConfigService")]),ne("com.qcobjects.valueObjects",[c(class extends C("InheritClass"){constructor(){super(...arguments)}},"VO")]);var gt=c(function(t){var n="";if(t.TPL_SOURCE==="default"){n="{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.{{TPLEXTENSION}}";for(var e in t){var o=t[e];n=n.replace("{{"+e+"}}",t[e])}}return n},"ComponentURI"),bt=c(function(t,n){var e,o=c(function(i,d){return e=new Promise(function(h,m){var _=i.__promise__,I=Object.hasOwnProperty.call(i,"container")&&typeof i.container<"u"&&i.container!==null?i.container:i.body;if(I!==null){var N=c(function(Q){Q.feedComponent();var W={request:j,component:Q};h.call(_,W)},"_feedComponent_");l.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",y(i.data)).replace("{{URL}}",i.url));var H=c(function(){var Q=M?0:200;if(j.status===Q){var W=j.responseText;l.debug("Data received {{DATA}}".replace("{{DATA}}",y(W))),l.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=W,i.cached&&typeof K<"u"&&K.save(i.name,i.template),N.call(this,i)}else{var Ze={request:j,component:i};m.call(_,Ze)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")N.call(this,i);else{var M=!!i.url.startsWith("file:"),j=new XMLHttpRequest;if(M){if("fetch"in r){l.debug("I can use fetch..."),l.debug("It is a file to be loaded, so I will try to use fetch");var X=fetch(i.url).then(Q=>{l.debug("I got a response from fetch, so I'll feed the component"),Q.text().then(W=>{i.template=W,N.call(this,i)})})}}else try{l.debug("Calling the url of component in async mode."),j.open(i.method,i.url,!0)}catch{l.debug("Last try has failed... The component cannot be loaded.")}!he&&!M&&j.setRequestHeader("Content-Type","text/html"),M||(j.onload=H);var B=c(function(Q){Q=!(typeof Q>"u"||!Q),l.debug("SENDING THE NORMAL REQUEST "),Q?"fetch"in r||(l.debug("I have to try to load the file using xhr... "),j.send(null),j.status===XMLHttpRequest.DONE&&H.call(this)):(l.debug("Trying to send the data to the component... "),j.send(y(i.data)))},"_directLoad");if(i.cached&&!M){l.debug("USING CACHE FOR COMPONENT: "+i.name);var K=new A({index:i.cacheIndex,load(Q){B.call(this,M)},alternate(Q){i.method==="GET"?(i.template=Q.cache.getCached(i.cacheIndex),N.call(this,i)):B.call(this,M)}});f.lastCache=K}else l.debug("NOT USING CACHE FOR COMPONENT: "+i.name),B.call(this,M)}}else l.debug("CONTAINER DOESNT EXIST")}),e.then(function(h){return i.__done__().then(function(){var m;return typeof i.done=="function"&&(m=i.done.call(i,h)),Promise.resolve(m)})},function(h){var m;return typeof i.fail=="function"&&(m=i.fail.call(i,h)),Promise.reject(m)}).catch(function(h){l.debug("Something wrong loading the component")}),e},"_componentLoaderInBrowser"),s=c(function(i,d){return e=new Promise(function(h,m){var _=e,I=c(function(j){j.feedComponent();var X={request:null,component:j};h.call(_,X)},"_feedComponent_");l.debug("LOADING COMPONENT DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",y(i.data)).replace("{{URL}}",i.url));var N=c(function(j,X){if(j){var K={request:null,component:i};m.call(_,K)}else{var B=X.toString();l.debug("Data received {{DATA}}".replace("{{DATA}}",y(B))),l.debug("CREATING COMPONENT {{NAME}}".replace("{{NAME}}",i.name)),i.template=B,i.cached&&typeof M<"u"&&M.save(i.name,i.template),I.call(this,i)}},"_componentLoaded");if(typeof i.template=="string"&&i.template!=="")I.call(this,i);else{l.debug("Loading the component as a local file in server...");var H=c(function(j){let X=b("fs");l.debug("SENDING THE NORMAL REQUEST "),X.readFile(i.url,N)},"_directLoad");if(i.cached){l.debug("USING CACHE FOR COMPONENT: "+i.name);var M=new A({index:i.cacheIndex,load(j){H.call(this)},alternate(j){i.method==="GET"?(i.template=j.cache.getCached(i.cacheIndex),I.call(this,i)):H.call(this)}});f.lastCache=M}else l.debug("NOT USING CACHE FOR COMPONENT: "+i.name),H.call(this)}}),e.then(function(h){return i.__done__().then(function(){var m;return typeof i.done=="function"&&(m=i.done.call(i,h)),Promise.resolve(m)})},function(h){var m;return typeof i.fail=="function"&&(m=i.fail.call(i,h)),Promise.reject(m)}).catch(function(h){l.debug("Something wrong loading the component")}),e},"_componentLoaderInNode"),a;return u?typeof n<"u"&&n?a=be(o,arguments):a=o(t,n):a=s(t,n),a},"componentLoader"),yt=c(function(t,n){var e=c(function(d,h){var m=new Promise(function(_,I){l.debug("LOADING SERVICE DATA {{DATA}} FROM {{URL}}".replace("{{DATA}}",y(d.data)).replace("{{URL}}",d.url));var N=new XMLHttpRequest;N.withCredentials=d.withCredentials;var H=!0;N.open(d.method,d.url,H);for(var M in d.headers)try{typeof d.headers[M]!="function"&&N.setRequestHeader(M,d.headers[M])}catch{l.debug("Something went wrong when assign the header "+M)}N.onload=function(){if(N.status===200){var B=N.responseText;if(l.debug("Data received {{DATA}}".replace("{{DATA}}",y(B))),l.debug("CREATING SERVICE {{NAME}}".replace("{{NAME}}",d.name)),d.template=B,d.cached&&typeof X<"u"&&X.save(d.name,d.template),typeof d.done=="function"){var K={request:N,service:d};d.done.call(d,K),_.call(m,K)}}else if(typeof d.fail=="function"){var K={request:N,service:d};d.fail.call(d,K),I.call(m,K)}};var j=c(function(){l.debug("SENDING THE NORMAL REQUEST ");try{N.send(y(d.data))}catch{l.debug("SOMETHING WRONG WITH REQUEST "),I.call(m,{request:N,service:d})}},"_directLoad");if(d.cached){var X=new A({index:d.data,load(B){j.call(this)},alternate(B){if(d.method==="GET"){if(d.template=B.cache.getCached(d.name),typeof d.done=="function"){var K={request:N,service:d};d.done.call(d,K),_.call(m,K)}}else j.call(this)}});f.lastCache=X}else j.call(this);return N});return m},"_serviceLoaderInBrowser"),o=c(function(d,h){var m=new Promise(function(_,I){if(typeof URL>"u"){f.URL=b("url").URL;let ue=f.URL}var N=new URL(d.url),H;d.useHTTP2=Object.hasOwnProperty.call(d,"useHTTP2")&&d.useHTTP2;var M=c(function(ue){l.debug("LOADING SERVICE DATA (non-browser) {{DATA}} FROM {{URL}}".replace("{{DATA}}",y(d.data)).replace("{{URL}}",d.url));var Ue,_t={http2Client:B,request:ue,service:d,responseHeaders:null};if(typeof d.data=="object"&&d.data!==null&&d.useHTTP2)try{l.debug("Sending data...");let Ee=new Buffer(y(d.data));ue.write(Ee)}catch{l.debug("It was not possible to send any data")}Ue="",ue.on("response",(Ee,Lo)=>{l.debug("receiving response..."),_t.responseHeaders=Ee,Ue=""}),ue.on("data",Ee=>{l.debug("receiving data..."),Ue+=""+Ee.toString(),d.template=Ue}),d.useHTTP2&&ue.resume(),ue.on("end",()=>{l.debug("ending call..."),d.template=Ue,Object.hasOwnProperty.call(d,"useHTTP2")&&d.useHTTP2?B.destroy():ue.destroy(),d.done.call(d,_t),_.call(m,_t)}),d.useHTTP2&&ue.end()},"captureEvents");try{var j;if(d.useHTTP2){l.debug("using http2");var X=b("http2"),B=X.connect(N.origin);j=Object.assign({":method":d.method,":path":N.pathname},d.options),j=Object.assign(j,d.headers),H=B.request(j),H.setEncoding("utf8"),M(H)}else if(N.protocol==="http:"){var K=b("http"),Q=K.request;j=Object.assign({url:d.url,headers:d.headers},d.options);var H=Q(d.url);M(H)}else if(N.protocol==="https:"){var W=b("https");j=Object.assign({hostname:N.hostname,port:N.port,path:N.pathname,method:d.method,headers:d.headers},d.options);var Ze=W.request(j,function(ue){M(ue)});Ze.end()}else{var Ve="Protocol not supported: "+N.protocol;throw l.debug(Ve),new Error(Ve)}}catch(ue){l.debug(ue),d.fail.call(d,ue),I.call(m,ue)}}).catch(function(_){console.log(_),l.debug("Something happened when trying to call the service: "+d.name),d.fail.call(d,_)});return m},"_serviceLoaderInNode"),s=c(function(d,h){var m=new Promise(function(_,I){l.debug(`Calling mockup service ${d.name} ...`);var N={request:null,service:d,responseHeaders:d.responseHeaders};typeof d.mockup=="function"?d.mockup.call(d,N):d.done.call(d,N),_.call(m,N)});return m},"_serviceLoaderMockup"),a=c(function(d,h){var m=new Promise(function(_,I){l.debug(`Calling local service ${d.name} ...`);var N={request:null,service:d,responseHeaders:d.responseHeaders};typeof d.local=="function"?d.local.call(d,N):d.done.call(d,N),_.call(m,N)});return m},"_serviceLoaderLocal"),i;switch(t.kind){case"rest":u?typeof n<"u"&&n?i=be(e,arguments):i=e(t,n):i=o(t,n);break;case"mockup":i=s(t,n);break;case"local":i=a(t,n);break;default:l.debug(`The value of the kind property of the service ${t.name} is not valid`);break}return i},"serviceLoader");if(F(yt),F(bt),F(gt),F(Be),F(y),F(Ie),F(He),F($n),u){Element.prototype.buildComponents=function(t=!1){var n=ae,e=this,o=e.subelements(n);return Dt(o,null)},HTMLDocument.prototype.buildComponents=Element.prototype.buildComponents,HTMLElement.prototype.buildComponents=Element.prototype.buildComponents;var Ht=c(class extends HTMLElement{constructor(){super(...arguments);let t=this,n=t.nodeName.toLowerCase(),e=P("quick-component"),o=t.getAttributeNames();e.setAttribute("name",n),t.hasAttribute("shadowed")||e.setAttribute("shadowed","true"),o.map(function(a){t.hasAttribute(a)&&(e.setAttribute(a,t.getAttribute(a)),t.removeAttribute(a))});var s=t.getAttributeNames().filter(function(a){return a.startsWith("data-")}).map(function(a){return a.split("-")[1]});s.map(function(a){e.setAttribute("data-"+a,t.getAttribute("data-"+a)),t.removeAttribute("data-"+a)}),[...t.children].map(function(a){e.appendChild(a.cloneNode(!0)),a.remove()}),t.append(e)}},"_ComponentWidget_");F(Ht);var vt=c(function(t){customElements.define(t,class extends Ht{})},"RegisterWidget"),$t=c(function(){var t=[...arguments];t.filter(function(n){return typeof n=="string"}).map(function(n){vt(n)})},"RegisterWidgets");O(vt),O($t),F(vt),F($t)}u||ne("com.qcobjects.api",[c(class extends C("InheritClass"){constructor({domain:n=L,basePath:e=D,body:o=null,stream:s=null,request:a=null}){super(...arguments),l.debug("Initializing BackendMicroservice...");let i=this;typeof this.body>"u"&&(this.body=null),typeof o<"u"&&(this.body=o),this.cors(),i.stream=s,s.on("data",m=>{var _=a.method.toLowerCase(),I={post:i.post};Object.hasOwnProperty.call(I,_)&&I[_].call(i,m)});var d=a.method.toLowerCase(),h={get:i.get,head:i.head,put:i.put,delete:i.delete,connect:i.connect,options:i.options,trace:i.trace,patch:i.patch};Object.hasOwnProperty.call(h,d)&&h[d].call(i)}cors(){if(this.route.cors){l.debug("Validating CORS...");let{allow_origins:e,allow_credentials:o,allow_methods:s,allow_headers:a}=this.route.cors;var n=this;if(typeof n.headers!="object"&&(n.headers={}),typeof n.route.responseHeaders!="object"&&(n.route.responseHeaders={}),typeof e<"u")if(l.debug("CORS: allow_origins available. Validating origins..."),e==="*"||typeof n.request.headers.origin>"u"||[...e].indexOf(n.request.headers.origin)!==-1)l.debug("CORS: Adding header Access-Control-Allow-Origin=*"),n.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{l.debug("CORS: Origin is not allowed: "+n.request.headers.origin),l.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(i){l.debug(`It was not possible to finish the call to the microservice: ${i}`)}}else l.debug("CORS: no allow_origins available. Allowing all origins..."),l.debug("CORS: Adding header Access-Control-Allow-Origin=*"),n.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof o<"u"?(l.debug(`CORS: allow_credentials present. Allowing ${o}...`),n.route.responseHeaders["Access-Control-Allow-Credentials"]=o.toString()):(l.debug("CORS: No allow_credentials present. Allowing all credentials."),n.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof s<"u"?(l.debug(`CORS: allow_methods present. Allowing ${s}...`),n.route.responseHeaders["Access-Control-Allow-Methods"]=[...s].join(",")):(l.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),n.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof a<"u"?(l.debug(`CORS: allow_headers present. Allowing ${a}...`),n.route.responseHeaders["Access-Control-Allow-Headers"]=[...a].join(",")):(l.debug("CORS: No allow_headers present. Allowing all headers..."),n.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else l.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(n){this.done()}get(n){l.debug(`[BackendMicroservice.get] Data received: ${y(n)}`),this.done()}post(n){this.done()}put(n){this.done()}delete(n){this.done()}connect(n){this.done()}options(n){this.done()}trace(n){this.done()}patch(n){this.done()}finishWithBody(n){try{l.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),l.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=y(this.body)),l.debug(`[BackendMicroservice.finishWithBody]
|
|
2
|
+
body: ${this.body} `),n.write(this.body),n.end(),l.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(e){l.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${e}`)}}done(){l.debug("[BackendMicroservice.done] Finalizing the response...");var n=this,e=n.stream;try{if(l.debug("[BackendMicroservice.done] Sending response headers..."),n.route.responseHeaders)l.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(n.route.responseHeaders)}`),e.respond(n.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(o){l.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${o}`)}if(n.body!==null)try{l.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),n.finishWithBody.call(n,e)}catch(o){l.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${o}`)}else l.debug("[BackendMicroservice.done] No body present. Ending stream..."),e.end()}},"BackendMicroservice")]),me("SourceJS",Object,{domain:L,basePath:D,body:P("script"),type:"text/javascript",containerTag:"body",url:"",data:{},async:!1,external:!1,set(t,n){this[t]=n},get(t){return this[t]},status:!1,done(){},fail(){},rebuild(){var t=this;try{document.getElementsByTagName(t.containerTag)[0].appendChild(function(n,e,o){return n.type=o.type,n.src=e,n.crossOrigin=Object.hasOwnProperty.call(o,"crossOrigin")?o.crossOrigin:"anonymous",n.async=o.async,n.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},n.onload=function(s){o.status=!0,o.done.call(o,s)},n.onerror=function(s){o.status=!1,o.fail.call(o,s)},o.body=n,n}.call(this,P("script"),this.external?this.url:this.basePath+this.url,t))}catch(n){t.status=!1,t.fail.call(t,n)}},Cast(t){return De(this,t)},_new_(t){this.__new__(t),this.rebuild()}}),me("SourceCSS",Object,{domain:L,basePath:D,body:P("link"),url:"",data:{},async:!1,external:!1,set(t,n){this[t]=n},get(t){return this[t]},done(){},rebuild(){var t=this;u&&window.document.getElementsByTagName("head")[0].appendChild(function(n,e,o){return n.type="text/css",n.rel="stylesheet",n.href=e,n.crossOrigin="anonymous",n.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},n.onload=o.done,o.body=n,n}.call(this,P("link"),this.external?this.url:this.basePath+this.url,t))},Cast(t){return De(this,t)},_new_(t){this.__new__(t),this.rebuild()}});var Ce=c(function(t){return isNaN(t)?new Number(0):new Number(t)},"__to_number");Array.prototype.unique=function(){return this.filter(function(t,n,e){return e.indexOf(t)===n})},Array.unique=function(t){return t.unique()},O(Array.unique),O(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(t){return t.table()},O(Array.table),O(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(t,n){return Ce(t)+Ce(n)},0)},Array.sum=function(t){return t.sum()},O(Array.sum),O(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(t,n){return(Ce(t)+Ce(n))/2})},Array.avg=function(t){return t.avg()},O(Array.avg),O(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(t,n){return Ce(t)<=Ce(n)?t:n},1/0)},Array.min=function(t){return t.min()},O(Array.min),O(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(t,n){return Ce(t)>=Ce(n)?t:n},0)},Array.max=function(t){return t.max()},O(Array.max),O(Array.prototype.max),Array.prototype.sortBy=function(t,n=!0){var e=n?function(o,s){return s[t]<o[t]?1:-1}:function(o,s){return s[t]>o[t]?1:-1};return this.sort(e)},Array.sortBy=function(t,n,e=!0){return t.sortBy(n,e)},O(Array.sortBy),O(Array.prototype.sortBy),Array.matrix=function(t,n=0){var e=c(function(o){return n},"x_func");return Array.from({length:t},e)},O(Array.matrix),Array.matrix2d=function(t,n=0){var e=c(function(s){return n},"y_func"),o=c(function(s){return Array.from({length:t},e)},"x_func");return Array.from({length:t},o)},O(Array.matrix2d),Array.matrix3d=function(t,n=0){var e=c(function(s){return Array.from({length:t},function(){return n})},"y_func"),o=c(function(s){return Array.from({length:t},e)},"x_func");return Array.from({length:t},o)},O(Array.matrix3d),r.range=function(t,n=0,e=1){return(n===0||typeof n>"u")&&(n=t,t=0),Array.from({length:(n-t)/e+1},function(o,s){return t+s*e})},O(r.range),String.prototype.list=function(){var t=this;return r.range(0,t.length-1).map(function(n){return t[n]})},O(String.prototype.list),r.getDocumentLayout=function(){var t=c((o,s)=>o>s?"landscape":null,"h"),n=c((o,s)=>s>o?"portrait":null,"v"),e=c((o,s)=>o===s?"square":null,"square");return[t(document.documentElement.clientWidth,document.documentElement.clientHeight),n(document.documentElement.clientWidth,document.documentElement.clientHeight),e(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(o=>o!==null).pop()},me("ArrayList",Array,[]),C("ArrayList").matrix=Array.matrix,C("ArrayList").matrix2d=Array.matrix2d,C("ArrayList").matrix3d=Array.matrix3d,O(C("ArrayList").matrix),O(C("ArrayList").matrix2d),O(C("ArrayList").matrix3d),me("ArrayCollection",Object,{source:te(C("ArrayList"),[]),changed(t,n){l.debug("VALUE CHANGED"),l.debug(t),l.debug(n)},push(t){var n=this;l.debug("VALUE ADDED"),l.debug(t),n.source.push(t)},pop(t){var n=this;l.debug("VALUE POPPED"),l.debug(t),n.source.pop(t)},_new_(t){var n=this,e=0;n.source=te(C("ArrayList"),t);for(var o in n.source)isNaN(o)||(l.debug("binding "+o.toString()),function(s){Object.defineProperty(n,s,{set(a){l.debug("setting "+s+"="+a),n.source[s]=a,n.changed(s,a)},get(){return n.source[s]}})}(o),e++);n.source.length=e,Object.defineProperty(n,"length",{get(){return n.source.length}})}}),ne("com.qcobjects.effects.base",[c(class extends C("InheritClass"){constructor(){super(...arguments);S(this,"duration",1e3)}animate({timing:e,draw:o,duration:s}){let a=performance.now();requestAnimationFrame(c(function i(d){let h=(d-a)/s;h>1&&(h=1);let m=e(h);o(Math.round(m*100)),h<1?requestAnimationFrame(i):typeof this<"u"&&this!==null&&Object.hasOwnProperty.call(this,"done")&&(typeof this.done).toLowerCase()==="function"&&this.done.call(this)},"animate"))}},"Effect")]),ne("com.qcobjects.effects.transitions.base",[c(class extends C("Effect"){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,"effects",[]);l.info("DECLARING TransitionEffect "),this.component.defaultParams=this.defaultParams}apply({alphaFrom:e,alphaTo:o,angleFrom:s,angleTo:a,radiusFrom:i,radiusTo:d,scaleFrom:h,scaleTo:m}){var _=this;l.info("EXECUTING TransitionEffect ");var I=_.component.shadowed?_.component.shadowRoot.host:_.component.body;_.fitToHeight&&(I.height=typeof I.offsetParent=="object"&&I.offsetParent!==null?I.offsetParent.scrollHeight:I.getBoundingClientRect().height),_.fitToWidth&&(I.width=typeof I.offsetParent=="object"&&I.offsetParent!==null?I.offsetParent.scrollWidth:I.getBoundingClientRect().width),I.style.display="block",_.effects.map(function(N,H){var M=C(N),j=new M,X=j.apply,B=[I].concat(Object.values({alphaFrom:e,alphaTo:o,angleFrom:s,angleTo:a,radiusFrom:i,radiusTo:d,scaleFrom:h,scaleTo:m}));X.apply(_,B)})}},"TransitionEffect")]),ne("com.qcobjects.timing",[c(class extends C("InheritClass"){constructor(){super(...arguments);S(this,"duration",1e3);S(this,"alive",!0)}thread({timing:e,intervalInterceptor:o,duration:s}){var a=this;let i=performance.now();requestAnimationFrame(c(function d(h){let m=h-i,_=m/s;_>1&&(_=1);let I=e(_,m);o(Math.round(I*100)),(_<1||s===-1)&&a.alive&&requestAnimationFrame(d)},"thread"))}},"Timer")]),ne("com.qcobjects.tools.essentials",[c(class extends C("InheritClass"){constructor(){super(...arguments);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_(...arguments)}changeToggle(){this._toggle=!this._toggle}_new_({positive:e,negative:o,args:s}){this._positive=e,this._negative=o,this._args=s}fire(){var e=this,o=new Promise(function(s,a){typeof e._positive=="function"&&typeof e._negative=="function"?(e._inverse?e._dispatched=e._toggle?e._negative.bind(e):e._positive.bind(e):e._dispatched=e._toggle?e._positive.bind(e):e._negative.bind(e),e._dispatched.call(e,e._args),s.call(o,e)):(l.debug("Toggle functions are not declared"),a.call(o,e))}).then(function(s){s.changeToggle()}).catch(function(s){l.debug(s.toString())});return o}},"Toggle")]),function(t){let n=c(function(i,d,h){var m=this;if(typeof i>"u"||i===null)throw Error(`mapper.${d}.${h} does not have a component instance or it is null.`);let _=t.global.get(h),I=i.get(h),N=i.data[h],H=typeof N<"u"?N:typeof I<"u"?I:_,M="";return typeof H<"u"&&typeof H.map<"u"?M=H.map(function(j){let X=[...Object.keys(j)].map(B=>` data-${B}="${typeof j[B]<"u"&&j[B]!==null?j[B].toString():""}"`).join("");return`<quick-component name="${d}" ${X} ></quick-component>`}).join(""):l.debug(`${d}.${h} does not have a map property`),M},"mapper");oe.setProcessor(n);let e=c(function(i,d,h){var m=`
|
|
3
|
+
/* CSS Document for Mobile Imports */
|
|
4
|
+
@import url("${h}") (orientation:portrait);
|
|
5
|
+
@import url("${h}") (max-width:460px);
|
|
6
|
+
@import url("${h}") (aspect-ratio: 9/16);
|
|
7
|
+
@import url("${h}") (aspect-ratio: 10/16);
|
|
8
|
+
@import url("${h}") (aspect-ratio: 5/8);
|
|
9
|
+
@import url("${h}") (aspect-ratio: 3/4);
|
|
10
|
+
@import url("${h}") (aspect-ratio: 2/3);
|
|
11
|
+
`,_=`
|
|
12
|
+
@import url("${h}") (orientation:landscape) and (min-width:460px);
|
|
13
|
+
@import url("${h}") (aspect-ratio: 16/9) and (min-width:460px);
|
|
14
|
+
@import url("${h}") (aspect-ratio: 16/10) and (min-width:460px);
|
|
15
|
+
@import url("${h}") (aspect-ratio: 8/5) and (min-width:460px);
|
|
16
|
+
@import url("${h}") (aspect-ratio: 4/3) and (min-width:460px);
|
|
17
|
+
@import url("${h}") (aspect-ratio: 3/2) and (min-width:460px);
|
|
18
|
+
`,I={landscape:_,portrait:m};return Object.hasOwnProperty.call(I,d)?I[d]:""},"layout");oe.setProcessor(e);let o=c(function(){let i=[...arguments].slice(1).map(function(h){return{[h.split("=")[0]]:h.split("=")[1]}}).reduce(function(h,m){return Object.assign(h,m)});return`<component ${[...Object.keys(i)].map(function(h){return`${h}=${i[h]}`}).join(" ")}></component>`},"component");oe.setProcessor(o);let s=c(function(){let i=[...arguments].slice(1).map(function(h){return{[h.split("=")[0]]:h.split("=")[1]}}).reduce(function(h,m){return Object.assign(h,m)});return`<quick-component ${[...Object.keys(i)].map(function(h){return`${h}=${i[h]}`}).join(" ")}></quick-component>`},"quick_component");oe.setProcessor(s);let a=c(function(i,d,h){return t.range(d).map(function(m){return h.replace("{{index}}",m.toString())}).join("")},"repeat");oe.setProcessor(a)}(r),$e(function(){r.CONFIG.get("useSDK")||r.__start__()}),F(F),F(ht),F(ne),F(me),F(te),F(Un),F($e),F(Wn),F(u),F(G),function(t){ne("com.qcobjects",[c(class Ye extends C("InheritClass"){constructor(){super(...arguments);S(this,"_GLOBAL",{});S(this,"__definition",{});S(this,"__classType","GlobalSettings");this.set=Ye.set.bind(this),this.get=Ye.get.bind(this),this.__start__=Ye.__start__.bind(this)}static set(o,s){this._GLOBAL[o]=s}static get(o,s){var a;return typeof this._GLOBAL[o]<"u"?a=this._GLOBAL[o]:typeof s<"u"&&(a=s),a}static __start__(){var o=c(function(){var a;return u&&(a=new Promise(function(i,d){"serviceWorker"in navigator&&typeof t.CONFIG.get("serviceWorkerURI")<"u"&&(t.CONFIG.set("serviceWorkerScope",t.CONFIG.get("serviceWorkerScope")?t.CONFIG.get("serviceWorkerScope"):"/"),navigator.serviceWorker.register(t.CONFIG.get("serviceWorkerURI"),{scope:t.CONFIG.get("serviceWorkerScope")}).then(function(h){l.debug("Service Worker Registered"),i.call(a,h)},function(h){l.debug("Error registering Service Worker"),d.call(a,h)}),navigator.serviceWorker.ready.then(function(h){l.debug("Service Worker Ready"),i.call(a,h)},function(h){l.debug("Error loading Service Worker"),d.call(a,h)}))})),a},"__load__serviceWorker"),s=c(function(){return new Promise((a,i)=>{if(u){l.debug("Starting to building components");try{t.componentsStack=document.buildComponents.call(document)}catch(d){throw Error(`Something went wrong trying to start components tree: ${d.message}`)}l.debug("Initializing the service worker"),o.call(t).catch(function(d){l.debug(`error loading the service worker ${d}`)})}a()})},"_buildComponents");l.debug("Starting to load the config settings..."),t.CONFIG.get("useConfigService",!1)?(l.debug("Loading settings using local configuration file..."),t.global.configService=te(C("ConfigService")),t.global.configService.configLoaded=s,yt(t.global.configService)):(l.debug("Starting to load the components..."),s.call(this))}},"GlobalSettings")]),F(C("GlobalSettings")),f=te(C("GlobalSettings")),t=Te(f,t),Object.defineProperty(t,"PackagesNameList",{set(n){l.debug("PackagesNameList is readonly")},get(){var n=c(function(e){var o=[];for(var s in e)typeof e[s]<"u"&&typeof e[s]!="function"&&Object.hasOwnProperty.call(e[s],"length")&&e[s].length>0&&(o.push(s),o=o.concat(n(e[s])));return o},"_get_packages_names");return n(de)}}),Object.defineProperty(t,"PackagesList",{set(n){l.debug("PackagesList is readonly")},get(){return t.PackagesNameList.map(function(n){let e=ne(n),o;return e&&(o={packageName:n,classesList:e.filter(function(s){return Ie(s)})}),o}).filter(function(n){return typeof n<"u"})}}),Object.defineProperty(t,"ClassesList",{set(n){l.debug("ClassesList is readonly")},get(){var n=[];return t.PackagesList.map(function(e){return n=n.concat(e.classesList.map(function(o){return{packageName:e.packageName,className:e.packageName+"."+o.__definition.__classType,classFactory:o}})),e}),n}}),Object.defineProperty(t,"ClassesNameList",{set(n){l.debug("ClassesNameList is readonly")},get(){return t.ClassesList.map(function(n){return n.className})}}),u&&(me("GLOBAL",pe.global),F(C("GLOBAL"))),F(f),t.CONFIG.get("useSDK")&&function(n){var e=n.CONFIG.get("remoteImportsPath"),o=!n.CONFIG.get("useLocalSDK");n.CONFIG.set("remoteImportsPath",n.CONFIG.get("remoteSDKPath"));var s=!1,a="QCObjects-SDK";if(u)s=!0;else{var i=Xe("qcobjects-sdk");i!==null?(a="qcobjects-sdk",s=!0):(a="node_modules/qcobjects-sdk/QCObjects-SDK",s=!0)}if(s)if(l.info("Importing SDK... "+a),v&&typeof It<"u"){let d=Xt()}else ht(a,function(){o?l.debug("QCObjects-SDK.js loaded from remote location"):l.debug("QCObjects-SDK.js loaded from local"),n.CONFIG.set("remoteImportsPath",e)},o);else l.debug("SDK has not been imported as it is not available at the moment")}(t)}(r),u&&be(function(){$e(function(){(function(t){let n=0,e=!1,o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),s=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function a(i){var d=Math.round(t.scrollY*100/o),h=Math.round(t.scrollX*100/s),m=new CustomEvent("scrollpercent",{detail:{percentX:h,percentY:d}});i.target.dispatchEvent(m);var _="defaultscroll",I=[0,5,10,25,50,75,90,95,100];I.filter(function(N){return N===d}).map(function(N){_="percentY"+d.toString();var H=new CustomEvent(_,{detail:{percentX:h,percentY:d}});i.target.dispatchEvent(H)})}c(a,"scrollDispatcher"),document.addEventListener("scroll",function(i){e||(requestAnimationFrame(function(){a(i),e=!1}),e=!0)})})(r)})},null),u||(typeof r.global<"u"&&Object.hasOwnProperty.call(r.global,"_fireAsyncLoad")&&r.global._fireAsyncLoad.call(this),typeof r.global<"u"&&Object.hasOwnProperty.call(r.global,"onload")&&r.global.onload.call(this)),function(t){var n=c(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");t&&r.CONFIG.get("secureObjects",!1)?$e(function(){n()}):r.CONFIG.get("secureObjects",!1)&&n()}(u)}},"__qcobjects__").call(null,typeof Pe=="object"&&typeof Pe.exports=="object"?Pe.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{})});var J=V((cr,Vt)=>{var Yn=Zt();Vt.exports=Yn});var Jt=V((Yt,Je)=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});var Me=J();(function(w){"use strict";class r extends Me.InheritClass{constructor({messages:p=[]}){super({messages:p}),Me.CONFIG.get("use_i18n",!1)&&(Me.CONFIG.set("lang","en"),w.get("i18n")?w.set("i18n",{messages:w.get("i18n").messages.concat(p)}):w.set("i18n",{messages:p}))}_load_i18n_packages_(){return Me.CONFIG.get("i18n_languages",[]).map(p=>{(0,Me.Import)(`org.quickcorp.i18n_messages.${p}`)})}}c(r,"i18n_messages"),(0,Me.Package)("org.qcobjects.i18n_messages",[r]),new r({})._load_i18n_packages_()})(typeof Je=="object"&&typeof Je.exports=="object"?Je.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{})});var en=V(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});var Kt=J();(function(){"use strict";(0,Kt.Package)("org.qcobjects.models",[c(class extends Kt.VO{},"Contact")])})()});var Re=V((R,Ke)=>{"use strict";Object.defineProperty(R,"__esModule",{value:!0});R.ModalMoveUp=R.ModalMoveDown=R.ModalFade=R.WipeDown=R.WipeUp=R.WipeRight=R.WipeLeft=R.Resize=R.Radius=R.Rotate=R.RotateZ=R.RotateY=R.RotateX=R.MoveYInFromTop=R.MoveYInFromBottom=R.MoveXInFromLeft=R.MoveXInFromRight=R.Move=R.Fade=void 0;var k=J(),ie=typeof Ke=="object"&&typeof Ke.exports=="object"?Ke.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};(function(){"use strict";class w extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("alpha: "+A.toString()),E.style.opacity=A.toString()}})}}c(w,"Fade");class r extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U,Y,x){let A=Y-l,Fe=x-U;E.style.transform="translate("+l+"px,"+U+"px)",this.animate({duration:this.duration,timing(Oe){return Oe},draw(Oe){k.logger.debug("animation progress: "+Oe.toString());let ze=U+Oe*Fe/100,_e=l+Oe*A/100;k.logger.debug("x: "+_e.toString()+" y:"+ze.toString()),E.style.transform="translate("+_e+"px,"+ze+"px)"}})}}c(r,"Move"),(0,k.Package)("org.qcobjects.effects.base",[w,r]);class f extends r{constructor(){super(...arguments),this.duration=1e3}apply(E){super.apply.call(this,E,E.width,0,0,0)}}c(f,"MoveXInFromRight");class p extends r{constructor(){super(...arguments),this.duration=1e3}apply(E){super.apply.call(this,E,-E.width,0,0,0)}}c(p,"MoveXInFromLeft");class u extends r{constructor(){super(...arguments),this.duration=1e3}apply(E){super.apply.call(this,E,0,E.height,0,0)}}c(u,"MoveYInFromBottom");class v extends r{constructor(){super(...arguments),this.duration=1e3}apply(E){super.apply.call(this,E,0,-E.height,0,0)}}c(v,"MoveYInFromTop");class g extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=Math.round(l+x*Y/100);k.logger.debug("angle: "+A.toString()),E.style.transform="rotate3d(1,0,0,"+A.toString()+"deg)"}})}}c(g,"RotateX");class b extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=Math.round(l+x*Y/100);k.logger.debug("angle: "+A.toString()),E.style.transform="rotate3d(0,1,0,"+A.toString()+"deg)"}})}}c(b,"RotateY");class O extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=Math.round(l+x*Y/100);k.logger.debug("angle: "+A.toString()),E.style.transform="rotate3d(0,0,1,"+A.toString()+"deg)"}})}}c(O,"RotateZ");class G extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=Math.round(l+x*Y/100);k.logger.debug("angle: "+A.toString()),E.style.transform="rotate3d(1,1,1,"+A.toString()+"deg)"}})}}c(G,"Rotate");class P extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("radius: "+A.toString()),E.style.borderRadius=A.toString()+"px"}})}}c(P,"Radius");class y extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("resize: "+A.toString()),E.style.transformOrigin="center",E.style.transform="scale("+A+","+A+")"}})}}c(y,"Resize");class T extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("wipe: "+A.toString()),E.style.transformOrigin="right",E.style.transform="scaleX("+A+")"}})}}c(T,"WipeLeft");class L extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("wipe: "+A.toString()),E.style.transformOrigin="left",E.style.transform="scaleX("+A+")"}})}}c(L,"WipeRight");class D extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("wipe: "+A.toString()),E.style.transformOrigin="bottom",E.style.transform="scaleY("+A+")"}})}}c(D,"WipeUp");class ae extends k.Effect{constructor(){super(...arguments),this.duration=1e3}apply(E,l,U){let Y=U-l;this.animate({duration:this.duration,timing(x){return x},draw(x){k.logger.debug("animation progress: "+x.toString());let A=l+x*Y/100;k.logger.debug("wipe: "+A.toString()),E.style.transformOrigin="top",E.style.transform="scaleY("+A+")"}})}}c(ae,"WipeDown"),(0,k.Package)("org.qcobjects.effects.extended",[f,p,u,v,g,b,O,G,P,y,T,L,D,ae]);class le extends w{constructor(){super(...arguments),this.duration=500}}c(le,"ModalFade");class he extends r{constructor(){super(...arguments),this.duration=300}}c(he,"ModalMoveDown");class be extends r{constructor(){super(...arguments),this.duration=800}}c(be,"ModalMoveUp"),(0,k.Package)("org.qcobjects.modal.effects",[le,he,be])})();var Jn=ie.Fade;R.Fade=Jn;var Kn=ie.Fade;R.Move=Kn;var Qn=ie.MoveXInFromRight;R.MoveXInFromRight=Qn;var eo=ie.MoveXInFromLeft;R.MoveXInFromLeft=eo;var to=ie.MoveYInFromBottom;R.MoveYInFromBottom=to;var no=ie.MoveYInFromTop;R.MoveYInFromTop=no;var oo=ie.RotateX;R.RotateX=oo;var ro=ie.RotateY;R.RotateY=ro;var io=ie.RotateZ;R.RotateZ=io;var so=ie.Rotate;R.Rotate=so;var ao=ie.Radius;R.Radius=ao;var lo=ie.Resize;R.Resize=lo;var co=ie.WipeLeft;R.WipeLeft=co;var uo=ie.WipeRight;R.WipeRight=uo;var fo=ie.WipeUp;R.WipeUp=fo;var po=ie.WipeDown;R.WipeDown=po;var ho=ie.ModalFade;R.ModalFade=ho;var mo=ie.ModalMoveDown;R.ModalMoveDown=mo;var go=ie.ModalMoveUp;R.ModalMoveUp=go});var Ct=V((re,et)=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.SwaggerUIComponent=re.ModalEnclosureComponent=re.ModalComponent=re.EmailField=re.TextField=re.InputField=re.ButtonField=re.ShadowedComponent=re.FormField=void 0;var z=J(),Qe=Re(),ve=typeof et=="object"&&typeof et.exports=="object"?et.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};(function(w){class r extends z.Component{constructor(y){y.name=typeof y.name<"u"?y.name:"form-field",super(y),this.cached=!1,this.reload=!0}createBindingEvents(){let y;typeof this.fieldType>"u"||this.fieldType==null?y=this.body.subelements("*[data-field]"):y=this.body.subelements(this.fieldType+"[data-field]");for(let T=0;T<y.length;T++){let L=y[T];L.addEventListener("change",()=>{z.logger.debug("Executing change event binding"),this.executeBindings()}),L.addEventListener("blur",()=>{z.logger.debug("Executing change event binding"),this.executeBindings()}),L.addEventListener("focus",()=>{z.logger.debug("Executing change event binding"),this.executeBindings()}),L.addEventListener("keydown",()=>{z.logger.debug("Executing keydown event binding"),this.executeBindings()})}}executeBinding(y){let T=y.getAttribute("data-field");z.logger.debug("Binding "+T+" for "+this.name),this.data[T]=y.value}executeBindings(){let y;typeof this.fieldType>"u"||this.fieldType==null?y=this.body.subelements("*[data-field]"):y=this.body.subelements(this.fieldType+"[data-field]");for(let T=0;T<y.length;T++){let L=y[T],D=L.getAttribute("data-field");z.logger.debug("Binding "+D+" for "+this.name),this.data[D]=L.value}}done(y){let T=super.done(y);return this.executeBindings(),this.createBindingEvents(),z.logger.debug("Field loaded: "+this.fieldType+"[name="+this.name+"]"),T}}c(r,"FormField"),(0,z.Package)("org.qcobjects.base.components",[r]);class f extends z.Component{constructor(y){y.body=(0,z._DOMCreateElement)("div"),super(y),this.container=null,this.shadowed=!0,this.cached=!1,this.controller=null,this.view=null,this.data={}}}c(f,"ShadowedComponent");class p extends r{constructor(y){y.fieldType="button",super(y)}}c(p,"ButtonField");class u extends r{constructor(y){y.fieldType="input",super(y)}}c(u,"InputField");class v extends r{constructor(y){y.fieldType="textarea",super(y)}}c(v,"TextField");class g extends r{constructor(y){y.fieldType="input",super(y)}}c(g,"EmailField");class b extends z.Component{constructor(y){y.body=(0,z._DOMCreateElement)("div"),super(y),this.name="modalenclosure",this.tplsource="inline",this.cached=!1,this.basePath=z.CONFIG.get("modalBasePath",z.CONFIG.get("remoteSDKPath","")),this.template=`
|
|
19
|
+
<!-- The Modal -->
|
|
20
|
+
<style>
|
|
21
|
+
@import url('https://sdk.qcobjects.dev/css/modal.css');
|
|
22
|
+
</style>
|
|
23
|
+
<div id="modalInstance_{{modalId}}" class="modal">
|
|
24
|
+
|
|
25
|
+
<!-- Modal content -->
|
|
26
|
+
<div class="modal-content">
|
|
27
|
+
<span class="close">×</span>
|
|
28
|
+
{{content}}
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
</div>
|
|
32
|
+
`,this.data={}}}c(b,"ModalEnclosureComponent");class O extends z.Component{constructor(y){y.basePath=z.CONFIG.get("modalBasePath",z.CONFIG.get("remoteSDKPath","")),super(y),this.name="modal",this.cached=!1,this.modalEnclosureComponentClass="ModalEnclosureComponent",this.controller=null,this.view=null,this.tplsource="none",this.closeOnClickOutside=!1,this.data={content:"",modalId:0},this.submodal=null,this.data.modalId=this.__instanceID;let T=(0,z.New)((0,z.ClassFactory)(this.modalEnclosureComponentClass),{name:this.name,basePath:this.basePath,data:this.data});this.subcomponents.push(T),this.submodal=T,T.tplsource==="none"?this.body.innerHTML=T.parsedAssignmentText:this.body.append(T.body)}modal(){let y=this.data.modalId;(0,z.Tag)("#modalInstance_"+y+".modal").map(T=>(T.style.display="block",new Qe.ModalFade({}).apply(T,0,1))),(0,z.Tag)("#modalInstance_"+y+".modal .modal-content").map(T=>new Qe.ModalMoveDown({}).apply(T,0,-document.body.clientHeight,0,0)),(0,z.Tag)("#modalInstance_"+y+".modal .modal-content .close").map(T=>T.addEventListener("click",()=>{this.close()},!1)),this.closeOnClickOutside&&window.addEventListener("click",()=>{this.close()},!1)}close(){let y=this.data.modalId;(0,z.Tag)("#modalInstance_"+y+".modal").map(T=>(T.style.display="block",new Qe.ModalFade({}).apply(T,1,0))),(0,z.Tag)("#modalInstance_"+y+".modal .modal-content").map(function(T){return new Qe.ModalMoveUp({}).apply(T,0,0,0,-document.body.clientHeight)}),setTimeout(function(){(0,z.Tag)("#modalInstance_"+y+".modal").map(T=>(T.style.display="none",!0))},900)}rebuild(){let y=super.rebuild();return this.templateURI=(0,z.ComponentURI)({COMPONENTS_BASE_PATH:z.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:"modal",TPLEXTENSION:z.CONFIG.get("tplextension",""),TPL_SOURCE:"default"}),y}}c(O,"ModalComponent");class G extends z.Component{constructor(){super(...arguments),this.cached=!1,this.basePath=z.CONFIG.get("remoteSDKPath",""),this.tplextension="tpl.html",this.name="swagger-ui"}}c(G,"SwaggerUIComponent"),(0,z.Package)("org.qcobjects.form.components",[f,p,u,v,g,b,O,G]),w.FormField=r,w.ShadowedComponent=f,w.ButtonField=p,w.InputField=u,w.TextField=v,w.EmailField=g,w.ModalEnclosureComponent=b,w.ModalComponent=O,w.SwaggerUIComponent=G})(ve);var bo=ve.FormField;re.FormField=bo;var yo=ve.ShadowedComponent;re.ShadowedComponent=yo;var vo=ve.ButtonField;re.ButtonField=vo;var wo=ve.InputField;re.InputField=wo;var Oo=ve.TextField;re.TextField=Oo;var _o=ve.EmailField;re.EmailField=_o;var Io=ve.ModalEnclosureComponent;re.ModalEnclosureComponent=Io;var Co=ve.ModalComponent;re.ModalComponent=Co;var No=ve.SwaggerUIComponent;re.SwaggerUIComponent=No});var tn=V((ke,tt)=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.GridItemComponent=ke.GridComponent=void 0;var Nt=J(),St=typeof tt=="object"&&typeof tt.exports=="object"?tt.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};(function(w){"use strict";class r extends Nt.Component{constructor(){super(...arguments),this.name="grid-item",this.shadowed=!0,this.tplsource="inline",this.template=`
|
|
33
|
+
<img src="{{image}}" />
|
|
34
|
+
<p>{{description}}</p>
|
|
35
|
+
`,this.cached=!1}}c(r,"GridItemComponent");class f extends Nt.Component{constructor(u){super(u),this.name="grid",this.cached=!1,this.view=null,this.shadowed=!0,this.rows=3,this.cols=3,this.templateURI="",this.data={},this.tplsource="inline",this.template="<p>Loading...</p>",this.body.setAttribute("controllerClass","DataGridController");let v=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",v)}}c(f,"GridComponent"),(0,Nt.Package)("org.qcobjects.components.grid",[f,r]),w.GridComponent=f,w.GridItemComponent=r})(St);var So=St.GridComponent;ke.GridComponent=So;var xo=St.GridItemComponent;ke.GridItemComponent=xo});var nn=V((qe,nt)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.ListItemComponent=qe.ListComponent=void 0;var xt=J(),Tt=typeof nt=="object"&&typeof nt.exports=="object"?nt.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};(function(w){"use strict";class r extends xt.Component{constructor(u){u.name="list-item",super(u),this.shadowed=!1,this.tplsource="inline",this.template='<a href="{{value}}">{{label}}</a>',this.cached=!1}}c(r,"ListItemComponent");class f extends xt.Component{constructor(u){u.name="list",super(u),this.shadowed=!0,this.tplsource="inline",this.template="<p>Loading...</p>",this.body.setAttribute("controllerClass","ListController"),this.body.setAttribute("subcomponentClass","ListItemComponent")}}c(f,"ListComponent"),(0,xt.Package)("org.qcobjects.components.list",[r,f]),w.ListComponent=f,w.ListItemComponent=r})(Tt);var To=Tt.ListComponent;qe.ListComponent=To;var Ao=Tt.ListItemComponent;qe.ListItemComponent=Ao});var rn=V(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});var ot=J();(function(){"use strict";(0,ot.Package)("org.qcobjects.components.slider",[c(class extends ot.Component{constructor(r){super(r),this.tplsource="inline",this.template="<p>Loading...</p>",this.name="slidelist",this.body.setAttribute("controllerClass","DataGridController");let f=this.body.getAttribute("subcomponentClass")!==null?this.body.getAttribute("subcomponentClass"):"GridItemComponent";this.body.setAttribute("subcomponentClass",f)}},"SlideListComponent"),c(class extends ot.Component{constructor(r){super(r),this.effectClass="Fade",this.name="slider_item",this.data.slideNumber=this.data.__dataIndex+1,this.template=`
|
|
36
|
+
<div class="qcoSlides" style="display:none">
|
|
37
|
+
<div class="qco-slider__numbertext">{{slideNumber}} / {{__dataLength}}</div>
|
|
38
|
+
<img src="{{image}}" alt="{{title}}"/>
|
|
39
|
+
<div class="qco-slider__text">
|
|
40
|
+
<p>{{label}} <a href="{{link}}">{{category}}</a></p>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
`,this.tplsource="inline"}},"SlideItemComponent"),c(class extends ot.Component{constructor(r){super(r),this.name="slider",this.template=`
|
|
44
|
+
<style>
|
|
45
|
+
/* Slideshow container */
|
|
46
|
+
|
|
47
|
+
:host a:hover,
|
|
48
|
+
:host a:active,
|
|
49
|
+
:host a:visited {
|
|
50
|
+
color: #ffffff;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
{
|
|
54
|
+
color: #ffffff;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host .prev {left:0;}
|
|
58
|
+
.qco-slider__container {
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
position: relative;
|
|
61
|
+
margin: auto;
|
|
62
|
+
height: 300px;
|
|
63
|
+
}
|
|
64
|
+
:host .qco-slider__container .qcoSlides img {
|
|
65
|
+
object-fit: cover;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 300px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Next & previous buttons */
|
|
71
|
+
:host .prev,
|
|
72
|
+
:host .next {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 50%;
|
|
76
|
+
width: auto;
|
|
77
|
+
margin-top: -22px;
|
|
78
|
+
padding: 16px;
|
|
79
|
+
color: white;
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
font-size: 18px;
|
|
82
|
+
transition: 0.6s ease;
|
|
83
|
+
border-radius: 0 3px 3px 0;
|
|
84
|
+
background-color: rgba(1, 1, 1, 0.1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Position the "next button" to the right */
|
|
88
|
+
:host .next {
|
|
89
|
+
right: 0;
|
|
90
|
+
border-radius: 3px 0 0 3px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* On hover, add a black background color with a little bit see-through */
|
|
94
|
+
:host .prev:hover,
|
|
95
|
+
:host .next:hover {
|
|
96
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* Caption text */
|
|
100
|
+
:host .qco-slider__text {
|
|
101
|
+
color: #f2f2f2;
|
|
102
|
+
font-size: 15px;
|
|
103
|
+
/* padding: 8px 12px;*/
|
|
104
|
+
position: absolute;
|
|
105
|
+
bottom: 8px;
|
|
106
|
+
width: 100%;
|
|
107
|
+
text-align: center;
|
|
108
|
+
text-shadow: -1px 1px 3px #111111;
|
|
109
|
+
background-color: rgba(1,1,1,0.7);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* Number text (1/3 etc) */
|
|
113
|
+
:host .qco-slider__numbertext {
|
|
114
|
+
color: #f2f2f2;
|
|
115
|
+
text-shadow: 0px 2px 3px #111111;
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
padding: 8px 12px;
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 0;
|
|
120
|
+
padding-top: 0;
|
|
121
|
+
margin-top: 10px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* The dots/bullets/indicators */
|
|
125
|
+
:host .qcoSlider__dots {
|
|
126
|
+
text-align: center;
|
|
127
|
+
margin: 0 auto;
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
:host .qcoSlider__dots--dot {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
height: 10px;
|
|
133
|
+
width: 10px;
|
|
134
|
+
margin: 0 2px;
|
|
135
|
+
background-color: #bbb;
|
|
136
|
+
border-radius: 50%;
|
|
137
|
+
display: inline-block;
|
|
138
|
+
transition: background-color 0.6s ease;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host .active,
|
|
142
|
+
:host .qcoSlider__dots--dot:hover {
|
|
143
|
+
background-color: #717171;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host .qco-slider__container .qcoSlides img {
|
|
147
|
+
border-radius: 30px 30px 0px 0px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
</style>
|
|
151
|
+
|
|
152
|
+
<div class="qco-slider__container">
|
|
153
|
+
<component name="slidelist" componentClass="SlideListComponent" subcomponentClass="SlideItemComponent" serviceClass="{{SERVICE_CLASS}}" ></component>
|
|
154
|
+
|
|
155
|
+
<a class="prev" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(-1)">❮</a>
|
|
156
|
+
<a class="next" onclick="global.get('{{sliderHandler}}').plusSlidesAndStop(1)">❯</a>
|
|
157
|
+
</div>
|
|
158
|
+
<br>
|
|
159
|
+
|
|
160
|
+
<div class="qcoSlider__dots" style="text-align:center">
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
`,this.tplsource="inline",this.shadowed=!0,this.data.SERVICE_CLASS=this.body.getAttribute("serviceClass"),this.data.sliderHandler="slider_"+this.__instanceID.toString(),this.body.setAttribute("controllerClass","SliderController")}},"SliderComponent")])})()});var an=V(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});var se=J(),At=Re();(function(){"use strict";class w extends se.Component{constructor(f){f.name="notification",f.body=(0,se._DOMCreateElement)("div"),super(f),this.cached=!1,this.tplsource="inline",this.shadowed=!1,this.template=`
|
|
164
|
+
<style>
|
|
165
|
+
div.notification_background {
|
|
166
|
+
display: block; /* Hidden by default */
|
|
167
|
+
position: fixed; /* Stay in place */
|
|
168
|
+
z-index: 1; /* Sit on top */
|
|
169
|
+
padding-top: 100px; /* Location of the box */
|
|
170
|
+
left: 0;
|
|
171
|
+
top: 0;
|
|
172
|
+
bottom:0;
|
|
173
|
+
right:0;
|
|
174
|
+
width: 100%; /* Full width */
|
|
175
|
+
height: 100%; /* Full height */
|
|
176
|
+
overflow: auto; /* Enable scroll if needed */
|
|
177
|
+
background-color: rgb(0,0,0); /* Fallback color */
|
|
178
|
+
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
|
179
|
+
border: none !important;
|
|
180
|
+
}
|
|
181
|
+
div.notification {
|
|
182
|
+
border-radius: 12px !important;
|
|
183
|
+
margin-bottom: 15px;
|
|
184
|
+
padding: 4px 12px;
|
|
185
|
+
}
|
|
186
|
+
.notification.danger {
|
|
187
|
+
background-color: #ffdddd;
|
|
188
|
+
border-left: 6px solid #f44336;
|
|
189
|
+
}
|
|
190
|
+
.notification.success {
|
|
191
|
+
background-color: #ddffdd;
|
|
192
|
+
border-left: 6px solid #4CAF50;
|
|
193
|
+
}
|
|
194
|
+
.notification.info {
|
|
195
|
+
background-color: #e7f3fe;
|
|
196
|
+
border-left: 6px solid #2196F3;
|
|
197
|
+
}
|
|
198
|
+
.notification.warning {
|
|
199
|
+
background-color: #ffffcc;
|
|
200
|
+
border-left: 6px solid #ffeb3b;
|
|
201
|
+
}
|
|
202
|
+
</style>
|
|
203
|
+
<div class="notification_background">
|
|
204
|
+
<div class="notification {{kind}}">
|
|
205
|
+
<p><strong>{{title}}</strong> {{message}}</p>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
`,this.kinds=["danger","success","info","warning"]}display(f){let p=c(function(u){u.style.display="block";let v=(0,se.New)(At.Move,{duration:900,apply(b){(0,se._super_)("Fade","apply").call(this,b,0,1),(0,se._super_)("Move","apply").call(this,b,0,-document.body.clientHeight,0,0)}}),g=(0,se.New)(At.Move,{duration:650,apply(b){(0,se._super_)("Fade","apply").call(this,b,1,0),(0,se._super_)("Move","apply").call(this,b,0,0,0,-document.body.clientHeight)}});v.apply(u),setTimeout(function(){g.apply(u)},2e3)},"_display_");f.subelements("div.notification_background").map(u=>(0,se.New)(At.Fade,{duration:500}).apply(u,0,1)),f.subelements("div.notification").map(u=>p(u)),setTimeout(function(){f.remove()},2200)}static success(f){let p=(0,se.New)(w,{name:"notification",shadowed:!0,body:(0,se._DOMCreateElement)("div"),data:{kind:"success",title:"Success!",message:`${f}...`}});document.body.append(p);let u=p.shadowed?p.shadowRoot.host:p.body;p.display(u)}static danger(f){let p=(0,se.New)(w,{name:"notification",shadowed:!0,body:(0,se._DOMCreateElement)("div"),data:{kind:"danger",title:"Danger!",message:`${f}...`}});document.body.append(p);let u=p.shadowed?p.shadowRoot.host:p.body;p.display(u)}static info(f){let p=(0,se.New)(w,{name:"notification",shadowed:!0,body:(0,se._DOMCreateElement)("div"),data:{kind:"info",title:"Info!",message:`${f}...`}});document.body.append(p);let u=p.shadowed?p.shadowRoot.host:p.body;p.display(u)}static warning(f){let p=(0,se.New)(w,{name:"notification",shadowed:!0,body:(0,se._DOMCreateElement)("div"),data:{kind:"warning",title:"Warning!",message:`${f}...`}});document.body.append(p);let u=p.shadowed?p.shadowRoot.host:p.body;p.display(u)}}c(w,"NotificationComponent"),(0,se.Package)("org.quickcorp.components.notifications",[w])})()});var dn=V((Ne,rt)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.CubeSplashScreenComponent=Ne.VideoSplashScreenComponent=Ne.SplashScreenComponent=void 0;var ge=J(),jt=Re(),it=typeof rt=="object"&&typeof rt.exports=="object"?rt.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};c(function(r){"use strict";class f extends ge.Component{constructor(g){g.name=typeof g.name>"u"?"splashscreen":g.name;let b=typeof window<"u"&&typeof window.self<"u"&&window===window.self,O=location.hash===""&&location.pathname==="/"&&location.search===""||ge.CONFIG.get("routingWay","pathname")==="hash"&&ge.CONFIG.get("start_url","/")===location.hash||ge.CONFIG.get("routingWay","pathname")==="pathname"&&ge.CONFIG.get("start_url","/")===location.pathname||ge.CONFIG.get("routingWay","pathname")==="search"&&ge.CONFIG.get("start_url","/")===location.search,G=b&&O;if(G?(g.basePath=ge.CONFIG.get("splashscreenBasePath",ge.CONFIG.get("remoteSDKPath","")),typeof g.data>"u"&&(g.data={}),g.data.basePath=g.basePath):typeof g<"u"&&typeof g.body<"u"&&(g.body.style.display="none"),super(g),this.cached=!1,this.shadowed=!0,this._bgcolor="",this._enabled_=G,this._enabled_){let y=this.body.getAttribute("duration");y===null?y=1e3:y=parseInt(y.toString()),this._bgcolor=this.body.style.backgroundColor;let T=c(()=>{setTimeout(()=>{if(!T.executed){let L=this.shadowed?this.shadowRoot?.host:this.body;typeof r.componentsStack<"u"&&r.componentsStack.filter(D=>D.body.hasAttribute("splashscreen")).map(D=>{ge.logger.debug(`Splash Screen of Main Component: ${D.name}`),D.splashScreenComponent=this;let ae=c(()=>{if(!ae.executed){let le=D.splashScreenComponent,he=D.shadowed?D.shadowRoot?.host:D.body;D._mainPosition=he.style.position,typeof he<"u"&&(he.style.position="fixed"),D._mainOpacity=he.style.opacity,L.style.width="100%",L.style.height="100%",document.body.style.backgroundColor="#111111",he.style.opacity="0",setTimeout(function(){typeof L<"u"&&(document.body.style.backgroundColor=le?._bgcolor,L.subelements("#slot-logo").map(be=>(be.style.display="block",be.style.transformOrigin="center",new jt.Resize().apply(be,1,0))),new jt.Fade().apply(L,1,0))},y-1e3),setTimeout(function(){new jt.Fade().apply(he,0,1),he.style.position=D._mainPosition,document.body.style.backgroundColor=le._bgcolor,L.parentElement!==null&&L.parentElement.remove()},y)}ae.executed=!0},"SplashScreenHandler");return D.addComponentHelper(ae.bind(D))}),T.executed=!0}})},"_helper_");T.executed=!1,this.addComponentHelper(T.bind(g))}}}c(f,"SplashScreenComponent"),(0,ge.Package)("org.qcobjects.components.base",[f]);class p extends f{constructor(g){g.name="videosplashscreen",super(g),this.cached=!1,this.shadowed=!0,this.tplsource="inline",this.template=`
|
|
209
|
+
<style>
|
|
210
|
+
:host * {
|
|
211
|
+
box-sizing: border-box;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
:host {
|
|
215
|
+
zoom: 1.0;
|
|
216
|
+
width: device-width;
|
|
217
|
+
margin: 0;
|
|
218
|
+
top: 0;
|
|
219
|
+
left: 0;
|
|
220
|
+
right: 0;
|
|
221
|
+
bottom: 0;
|
|
222
|
+
position: absolute;
|
|
223
|
+
padding: 0;
|
|
224
|
+
min-width: 100vw;
|
|
225
|
+
min-height: 100vh;
|
|
226
|
+
width: 100vw;
|
|
227
|
+
height: 100vh;
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
background-color: black;
|
|
230
|
+
}
|
|
231
|
+
#slot-logo::slotted(img) {
|
|
232
|
+
vertical-align: middle;
|
|
233
|
+
display: block;
|
|
234
|
+
width: 40vw;
|
|
235
|
+
left: 0;
|
|
236
|
+
margin: 0;
|
|
237
|
+
padding: 0;
|
|
238
|
+
z-index: 9999999999;
|
|
239
|
+
transform-origin: center;
|
|
240
|
+
transform-style: preserve-3d;
|
|
241
|
+
filter: blur(0em);
|
|
242
|
+
transition: filter 0.5s;
|
|
243
|
+
max-width: 300px;
|
|
244
|
+
position: absolute;
|
|
245
|
+
top: 50%;
|
|
246
|
+
left: 50%;
|
|
247
|
+
transform: translate(-50%, -50%);
|
|
248
|
+
animation: fadeIn 5s;
|
|
249
|
+
-webkit-animation: fadeIn 5s;
|
|
250
|
+
-moz-animation: fadeIn 5s;
|
|
251
|
+
-o-animation: fadeIn 5s;
|
|
252
|
+
-ms-animation: fadeIn 5s;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
:host * {
|
|
256
|
+
-webkit-user-select: none;
|
|
257
|
+
-moz-user-select: none;
|
|
258
|
+
-ms-user-select: none;
|
|
259
|
+
user-select: none;
|
|
260
|
+
-webkit-touch-callout: none;
|
|
261
|
+
/* prevent callout to copy image, etc when tap to hold */
|
|
262
|
+
-webkit-text-size-adjust: none;
|
|
263
|
+
/* prevent webkit from resizing text to fit */
|
|
264
|
+
-webkit-user-select: none;
|
|
265
|
+
/* prevent copy paste, to allow, change 'none' to 'text' */
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* FOCUS */
|
|
269
|
+
:host summary:focus,
|
|
270
|
+
:host a:focus,
|
|
271
|
+
:host button:focus {
|
|
272
|
+
outline: none;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.splashscreen,
|
|
276
|
+
.fullscreen-bg {
|
|
277
|
+
padding: 0;
|
|
278
|
+
margin: 0;
|
|
279
|
+
top: 0;
|
|
280
|
+
left: 0;
|
|
281
|
+
right: 0;
|
|
282
|
+
bottom: 0;
|
|
283
|
+
padding: 0;
|
|
284
|
+
background-attachment: fixed;
|
|
285
|
+
background-position: center;
|
|
286
|
+
background-clip: content-box;
|
|
287
|
+
background-size: cover;
|
|
288
|
+
position: absolute;
|
|
289
|
+
min-width: 100vw;
|
|
290
|
+
min-height: 100vh;
|
|
291
|
+
width: 100vw;
|
|
292
|
+
height: 100vh;
|
|
293
|
+
z-index: 0;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.splashscreen .splashcontent {
|
|
298
|
+
top: 0;
|
|
299
|
+
left: 0;
|
|
300
|
+
right: 0;
|
|
301
|
+
bottom: 0;
|
|
302
|
+
margin: 0 auto;
|
|
303
|
+
width: 100vw;
|
|
304
|
+
height: 100vh;
|
|
305
|
+
padding: 0;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
z-index: 1;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.splashscreen .splashcontent p {
|
|
311
|
+
color: white;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
video.fullscreen-bg__video {
|
|
315
|
+
top: 0;
|
|
316
|
+
left: 0;
|
|
317
|
+
bottom: 0;
|
|
318
|
+
right: 0;
|
|
319
|
+
margin: 0;
|
|
320
|
+
padding: 0;
|
|
321
|
+
position: absolute;
|
|
322
|
+
min-width: 100vw;
|
|
323
|
+
min-height: 100vh;
|
|
324
|
+
overflow: hidden;
|
|
325
|
+
z-index: 0;
|
|
326
|
+
object-fit: cover;
|
|
327
|
+
filter: brightness(0.3);
|
|
328
|
+
}
|
|
329
|
+
.splashscreen,
|
|
330
|
+
.fullscreen-bg {
|
|
331
|
+
background-image: url('{{background}}');
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
@keyframes fadeIn {
|
|
335
|
+
0% {opacity:0;}
|
|
336
|
+
100% {opacity:1;}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
@-moz-keyframes fadeIn {
|
|
340
|
+
0% {opacity:0;}
|
|
341
|
+
100% {opacity:1;}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
@-webkit-keyframes fadeIn {
|
|
345
|
+
0% {opacity:0;}
|
|
346
|
+
100% {opacity:1;}
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@-o-keyframes fadeIn {
|
|
350
|
+
0% {opacity:0;}
|
|
351
|
+
100% {opacity:1;}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
@-ms-keyframes fadeIn {
|
|
355
|
+
0% {opacity:0;}
|
|
356
|
+
100% {opacity:1;}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
</style>
|
|
360
|
+
<div class="splashscreen">
|
|
361
|
+
<div class="fullscreen-bg splashcontent">
|
|
362
|
+
<video loop muted autoplay playsinline name="media" poster="{{background}}" class="fullscreen-bg__video" data-setup="{}" height="100%">
|
|
363
|
+
<source src="{{video_mp4}}" type="video/mp4">
|
|
364
|
+
<source src="{{video_ogg}}" type="video/ogg">
|
|
365
|
+
<source src="{{video_webm}}" type="video/webm">
|
|
366
|
+
</video>
|
|
367
|
+
<slot id="slot-logo" name="logo"></slot>
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
`}}c(p,"VideoSplashScreenComponent");class u extends f{constructor(g){g.name="cubesplashscreen",super(g),this.cached=!1,this.shadowed=!0,this.tplsource="inline",this.template=`
|
|
372
|
+
<style>
|
|
373
|
+
@keyframes spin {
|
|
374
|
+
0% {
|
|
375
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
16% {
|
|
379
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
33% {
|
|
383
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
50% {
|
|
387
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
66% {
|
|
391
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
83% {
|
|
395
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
100% {
|
|
399
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
@keyframes spin-duplicate {
|
|
404
|
+
0% {
|
|
405
|
+
transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
16% {
|
|
409
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(180deg) rotateZ(0deg);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
33% {
|
|
413
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(90deg) rotateZ(180deg);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
50% {
|
|
417
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
66% {
|
|
421
|
+
transform: translateZ(-100px) rotateX(180deg) rotateY(360deg) rotateZ(270deg);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
83% {
|
|
425
|
+
transform: translateZ(-100px) rotateX(270deg) rotateY(180deg) rotateZ(180deg);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
100% {
|
|
429
|
+
transform: translateZ(-100px) rotateX(360deg) rotateY(360deg) rotateZ(360deg);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
@keyframes roll {
|
|
434
|
+
0% {
|
|
435
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
12% {
|
|
439
|
+
transform: translate3d(0px, 0, -100px)
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
25% {
|
|
443
|
+
transform: translate3d(200px, -50px, -400px)
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
37% {
|
|
447
|
+
transform: translate3d(0px, -100px, -800px)
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
50% {
|
|
451
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
62% {
|
|
455
|
+
transform: translate3d(0px, 0, -100px)
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
75% {
|
|
459
|
+
transform: translate3d(200px, -50px, -400px)
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
87% {
|
|
463
|
+
transform: translate3d(0px, -100px, -800px)
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
100% {
|
|
467
|
+
transform: translate3d(-200px, -50px, -400px)
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
#wrapper {
|
|
472
|
+
position: relative;
|
|
473
|
+
width: 200px;
|
|
474
|
+
padding-top: 100px;
|
|
475
|
+
margin: 0 auto;
|
|
476
|
+
perspective: 1200px;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
#platform {
|
|
480
|
+
margin-top: 100px;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
#dice span {
|
|
484
|
+
position: absolute;
|
|
485
|
+
margin: 100px 0 0 100px;
|
|
486
|
+
display: block;
|
|
487
|
+
font-size: 2.5em;
|
|
488
|
+
padding: 10px;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
#dice {
|
|
492
|
+
position: absolute;
|
|
493
|
+
width: 200px;
|
|
494
|
+
height: 200px;
|
|
495
|
+
transform-style: preserve-3d;
|
|
496
|
+
animation: spin 50s infinite linear;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.side {
|
|
500
|
+
position: absolute;
|
|
501
|
+
width: 200px;
|
|
502
|
+
height: 200px;
|
|
503
|
+
background: none;
|
|
504
|
+
box-shadow: inset 0 0 40px #fff0;
|
|
505
|
+
border-radius: 40px;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
#dice .cover, #dice .inner {
|
|
509
|
+
background: #e0e0e0;
|
|
510
|
+
box-shadow: none;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
#dice .cover {
|
|
514
|
+
border-radius: 0;
|
|
515
|
+
transform-origin: center;
|
|
516
|
+
transform: translateZ(0px);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
#dice .cover.x {
|
|
520
|
+
transform-origin: center;
|
|
521
|
+
transform: rotateY(90deg);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
#dice .cover.z {
|
|
525
|
+
transform-origin: center;
|
|
526
|
+
transform: rotateX(90deg);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
#dice .front {
|
|
530
|
+
transform-origin: center;
|
|
531
|
+
transform: translateZ(100px);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
#dice .front.inner {
|
|
535
|
+
transform-origin: center;
|
|
536
|
+
transform: translateZ(98px);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
#dice .back {
|
|
540
|
+
transform-origin: center;
|
|
541
|
+
transform: rotateX(-180deg) translateZ(100px);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
#dice .back.inner {
|
|
545
|
+
transform-origin: center;
|
|
546
|
+
transform: rotateX(-180deg) translateZ(98px);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
#dice .right {
|
|
550
|
+
transform-origin: center;
|
|
551
|
+
transform: rotateY(90deg) translateZ(100px);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
#dice .right.inner {
|
|
555
|
+
transform-origin: center;
|
|
556
|
+
transform: rotateY(90deg) translateZ(98px);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
#dice .left {
|
|
560
|
+
transform-origin: center;
|
|
561
|
+
transform: rotateY(-90deg) translateZ(100px);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
#dice .left.inner {
|
|
565
|
+
transform-origin: center;
|
|
566
|
+
transform: rotateY(-90deg) translateZ(98px);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
#dice .top {
|
|
570
|
+
transform-origin: center;
|
|
571
|
+
transform: rotateX(90deg) translateZ(100px);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
#dice .top.inner {
|
|
575
|
+
transform-origin: center;
|
|
576
|
+
transform: rotateX(90deg) translateZ(98px);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
#dice .bottom {
|
|
580
|
+
transform-origin: center;
|
|
581
|
+
transform: rotateX(-90deg) translateZ(100px);
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
#dice .bottom.inner {
|
|
585
|
+
transform-origin: center;
|
|
586
|
+
transform: rotateX(-90deg) translateZ(98px);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.dot {
|
|
590
|
+
position: absolute;
|
|
591
|
+
width: 46px;
|
|
592
|
+
height: 46px;
|
|
593
|
+
border-radius: 23px;
|
|
594
|
+
background: #444;
|
|
595
|
+
box-shadow: inset 5px 0 10px #000;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.dot.center {
|
|
599
|
+
margin: 77px 0 0 77px;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
.dot.dtop {
|
|
603
|
+
margin-top: 20px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
.dot.dleft {
|
|
607
|
+
margin-left: 134px;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.dot.dright {
|
|
611
|
+
margin-left: 20px;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.dot.dbottom {
|
|
615
|
+
margin-top: 134px;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
.dot.center.dleft {
|
|
619
|
+
margin: 77px 0 0 20px;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
.dot.center.dright {
|
|
623
|
+
margin: 77px 0 0 134px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
#background {
|
|
627
|
+
top: 0px;
|
|
628
|
+
left: 0px;
|
|
629
|
+
position: fixed;
|
|
630
|
+
z-index: -1;
|
|
631
|
+
width: 100%;
|
|
632
|
+
height: 100%;
|
|
633
|
+
background: var(--root-background, transparent);
|
|
634
|
+
background-size: cover;
|
|
635
|
+
background-origin: border-box;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
#dice .side.front,
|
|
639
|
+
#dice .side.top,
|
|
640
|
+
#dice .side.right,
|
|
641
|
+
#dice .side.left,
|
|
642
|
+
#dice .side.bottom,
|
|
643
|
+
#dice .side.back {
|
|
644
|
+
background-image: var(--background-3d-cube-image, "none");
|
|
645
|
+
background-size: cover;
|
|
646
|
+
background-origin: border-box;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
:root, :host {
|
|
651
|
+
--background-3d-cube-image: url('{{cube_image}}');
|
|
652
|
+
--box-width: 200px;
|
|
653
|
+
font-size:.9em;
|
|
654
|
+
font-family:sans-serif;
|
|
655
|
+
--root-background: {{background}};
|
|
656
|
+
}
|
|
657
|
+
</style>
|
|
658
|
+
|
|
659
|
+
<div id="background"></div>
|
|
660
|
+
<div id="wrapper">
|
|
661
|
+
<div id="platform">
|
|
662
|
+
<div id="dice">
|
|
663
|
+
<div class="side front">
|
|
664
|
+
</div>
|
|
665
|
+
<div class="side front inner"></div>
|
|
666
|
+
<div class="side top"></div>
|
|
667
|
+
<div class="side top inner"></div>
|
|
668
|
+
<div class="side right"></div>
|
|
669
|
+
<div class="side right inner"></div>
|
|
670
|
+
<div class="side left"></div>
|
|
671
|
+
<div class="side left inner"></div>
|
|
672
|
+
<div class="side bottom"></div>
|
|
673
|
+
<div class="side bottom inner"></div>
|
|
674
|
+
<div class="side back"></div>
|
|
675
|
+
<div class="side back inner"></div>
|
|
676
|
+
<div class="side cover x"></div>
|
|
677
|
+
<div class="side cover y"></div>
|
|
678
|
+
<div class="side cover z"></div>
|
|
679
|
+
</div>
|
|
680
|
+
</div>
|
|
681
|
+
</div>
|
|
682
|
+
|
|
683
|
+
`}}c(u,"CubeSplashScreenComponent"),(0,ge.Package)("org.qcobjects.components.splashscreen",[p,u])},"__splash_screen__")(it);var jo=it.SplashScreenComponent;Ne.SplashScreenComponent=jo;var Eo=it.VideoSplashScreenComponent;Ne.VideoSplashScreenComponent=Eo;var Po=it.CubeSplashScreenComponent;Ne.CubeSplashScreenComponent=Po});var un=V(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});var ln=J();(function(){"use strict";(0,ln.Package)("org.qcobjects.controllers",[c(class extends ln.Controller{},"GenericController")])})()});var pn=V(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});var q=J();(function(){"use strict";(0,q.Package)("org.qcobjects.controllers.grid",[c(class extends q.Controller{constructor(r){super(r),this.rows=this.component.body.getAttribute("rows"),this.rows=this.rows!==null?this.rows:this.component.rows,this.cols=this.component.body.getAttribute("cols"),this.cols=this.cols!==null?this.cols:this.component.cols}cssGrid(){let r=this.component,f=r.shadowed?r.shadowRoot:r.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let p=(0,q._DOMCreateElement)("style"),u="auto ".repeat(this.rows),v="auto ".repeat(this.cols),g="grid"+this.__instanceID.toString();p.innerHTML=`.${g}{
|
|
684
|
+
display: grid; grid-template-rows: ${u}; grid-template-columns: ${v}; margin:0 auto; }`,f?.append(p),r.shadowed?f?.host.classList.add(g):f.classList.add(g)}}done(){this.cssGrid(),q.logger.debug("GridComponent built")}},"GridController"),c(class extends q.Controller{constructor(r){super(r),this._componentRoot=r.component.shadowed?r.component.shadowRoot:r.component.body,this.rows=r.component.body.getAttribute("rows"),this.rows=r.rows!==null?r.rows:r.component.rows,this.cols=r.component.body.getAttribute("cols"),this.cols=r.cols!==null?r.cols:r.component.cols,q.logger.debug("DataGridController INIT")}getPageIndex(r,f,p){return r=r>0?r-1:0,[p*r/f,p*r/f+p/f]}addSubcomponents(){this.component.subcomponents=[],typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=""),this.cssGrid(),q.logger.debug((0,q._DataStringify)(this.component.data));try{let r=this.component.body.getAttribute("subcomponentClass");if(r!=null){let f,p,u,v=[...this.component.data],g=this.component.body.getAttribute("paginate-in"),b;g=g!==null?g:"client",g==="client"?(b=this.component.body.getAttribute("page-number"),b=isNaN(b)||b===null?-1:b,b!==-1?(u=this.component.body.getAttribute("total-pages"),u=isNaN(u)?1:u,f=this.getPageIndex(b,u,v.length)[0],p=this.getPageIndex(b,u,v.length)[1]):(f=0,p=v.length,u=1),v=v.slice(f,p)):(f=0,p=v.length,u=1),v.map((O,G,P)=>{try{let T=(0,q._DOMCreateElement)("component");T.setAttribute("name",(0,q.ClassFactory)(r).name),T.setAttribute("shadowed",(0,q.ClassFactory)(r).shadowed),T.setAttribute("cached",(0,q.ClassFactory)(r).cached),O=Object.assign(O,{__dataIndex:G,__dataLength:P.length,__page:b,__totalPages:u,__limit:p,__offset:f});let L=(0,q.New)((0,q.ClassFactory)(r),{name:"item",data:O,templateURI:(0,q.ComponentURI)({COMPONENTS_BASE_PATH:q.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,q.ClassFactory)(r).name,TPLEXTENSION:q.CONFIG.get("tplextension",""),TPL_SOURCE:(0,q.ClassFactory)(r).tplsource}),body:T,template:(0,q.ClassFactory)(r).template});L.done=this.component.done.bind(L);try{if(L){L.data.__dataIndex=G,Object.hasOwnProperty.call(this.component.data,"length")&&(L.data.__dataLength=this.component.data.length),q.logger.debug("adding subcomponent to body"),this._componentRoot?.append(L.body);try{this.component.subcomponents.push(L)}catch{q.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}}else q.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch{q.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}}catch{q.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}})}else q.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch{q.logger.debug("No data for component")}}cssGrid(){let r=this.component,f=r.shadowed?r.shadowRoot:r.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let p=(0,q._DOMCreateElement)("style"),u="auto ".repeat(this.rows),v="auto ".repeat(this.cols),g="grid"+this.__instanceID.toString();p.innerHTML=`.${g}{
|
|
685
|
+
display: grid; grid-template-rows: ${u}; grid-template-columns: ${v}; margin:0 auto; }`,r.shadowed?(r.body.append(p),f.host.classList.add(g)):(f?.append(p),f.classList.add(g))}}done(){let r=this.component;q.logger.debug("DataGridController DONE");let f=this.component.body.getAttribute("serviceClass");if(f!=null){let p,u,v=r.body.getAttribute("paginate-in");if(v=v!==null?v:"client",v==="server"){let g=r.body.getAttribute("page-number");g=isNaN(g)||g===null?-1:g;let b;if(g!==-1){let O=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;b=this.component.body.getAttribute("total-pages"),b=isNaN(b)?1:b,p=this.getPageIndex(g,b,O)[0],u=this.getPageIndex(g,b,O)[1],r.serviceData=typeof r.serviceData<"u"?r.serviceData:{},r.serviceData.params=typeof r.serviceData.params<"u"?r.serviceData.params:{},r.serviceData.params.offset=p,r.serviceData.params.limit=u}}(0,q.serviceLoader)((0,q.New)((0,q.ClassFactory)(f),{data:r.serviceData}),!1).then(g=>{q.logger.debug("DONE SERVICE COMPONENT"),g.service.JSONresponse=JSON.parse(g.service.template),typeof g.service.JSONresponse.result<"u"?(q.logger.debug((0,q._DataStringify)(g.service.JSONresponse.result)),r.data=g.service.JSONresponse.result):r.data=g.service.JSONresponse,this.addSubcomponents()},g=>{q.logger.debug(g)}).catch(g=>{q.logger.debug("Something went wrong when calling the service from: "+f),q.logger.debug(g.message)})}}},"DataGridController")])})()});var mn=V(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});var $=J();(function(){"use strict";(0,$.Package)("org.qcobjects.controllers.list",[c(class extends $.Controller{constructor({component:r,dependencies:f=[],valueField:p=void 0,labelField:u=void 0}){super({component:r,dependencies:f,valueField:p,labelField:u}),this.component=r,this._componentRoot=this.component.shadowed?this.component.shadowRoot:this.component.body,this.labelField=this.component.body.getAttribute("label-field"),this.valueField=this.component.body.getAttribute("value-field"),this.rows=this.component.body.getAttribute("rows"),this.rows=this.rows!==null?this.rows:this.component.rows,this.cols=1,$.logger.debug("ListController INIT")}getPageIndex(r,f,p){return r=r>0?r-1:0,[p*r/f,p*r/f+p/f]}addSubcomponents(){this.component.subcomponents=[];let r=this.component.body.getAttribute("layout"),f=$.CONFIG.get("listBasePath",$.CONFIG.get("remoteSDKPath","")),p="";this.labelField=this.component.body.getAttribute("label-field"),this.valueField=this.component.body.getAttribute("value-field"),r==="horizontal"?p=`@import url("${f}css/components/horizontal-list.css");`:p=`@import url("${f}css/components/list.css");`,typeof this._componentRoot<"u"&&(this._componentRoot.innerHTML=`<style>${p}</style><ul></ul>`),$.logger.debug((0,$._DataStringify)(this.component.data));try{let u=this.component.body.getAttribute("subcomponentClass");if(u!=null){let v,g,b,O=[...this.component.data],G=this.component.body.getAttribute("paginate-in");G=G!==null?G:"client";let P;G==="client"?(P=this.component.body.getAttribute("page-number"),P=isNaN(P)||P===null?-1:P,P!==-1?(b=this.component.body.getAttribute("total-pages"),b=isNaN(b)?1:b,v=this.getPageIndex(P,b,O.length)[0],g=this.getPageIndex(P,b,O.length)[1]):(v=0,g=O.length,b=1),O=O.slice(v,g)):(v=0,g=O.length,b=1),O.map((y,T)=>{try{let D=(0,$._DOMCreateElement)("li");y.label=y[this.labelField],y.value=y[this.valueField];let ae=(0,$.New)((0,$.ClassFactory)(u),{name:"list-item",data:{label:y[this.labelField],value:y[this.valueField],__dataIndex:T,__page:P,__totalPages:b,__limit:g,__offset:v},templateURI:(0,$.ComponentURI)({COMPONENTS_BASE_PATH:$.CONFIG.get("componentsBasePath",""),COMPONENT_NAME:(0,$.ClassFactory)(u).name,TPLEXTENSION:$.CONFIG.get("tplextension",""),TPL_SOURCE:(0,$.ClassFactory)(u).tplsource}),body:D,template:(0,$.ClassFactory)(u).template});ae.done=this.component.done.bind(ae);try{if(ae){ae.data.__dataIndex=T,Object.hasOwnProperty.call(this.component.data,"length")&&(ae.data.__dataLength=this.component.data.length),$.logger.debug("adding subcomponent to body"),this._componentRoot.subelements("ul").map(le=>le.append(ae));try{this.component.subcomponents.push(ae)}catch{$.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}}else $.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}catch{$.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}}catch{$.logger.debug("ERROR LOADING SUBCOMPONENT IN DATAGRID")}})}else $.logger.debug("NO SUBCOMPONENT CLASS IN COMPONENT")}catch{$.logger.debug("No data for component")}}cssGrid(){let r=this.component,f=r.shadowed?r.shadowRoot:r.body;if(typeof this.rows<"u"&&typeof this.cols<"u"){let p=(0,$._DOMCreateElement)("style"),u="auto ".repeat(this.rows),v="auto ".repeat(this.cols),g="grid"+this.__instanceID.toString();p.innerHTML=`.${g}{
|
|
686
|
+
display: grid; grid-template-rows: ${u}; grid-template-columns: ${v}; margin:0 auto; }`,f.append(p),f.classList.add(g)}}done(){this.cssGrid();let r=this.component;$.logger.debug("ListController DONE");let f=this.component.body.getAttribute("serviceClass");if(f!=null){let p,u,v=r.body.getAttribute("paginate-in");if(v=v!==null?v:"client",v==="server"){let g=r.body.getAttribute("page-number");g=isNaN(g)||g===null?-1:g;let b;if(g!==-1){let O=this.component.body.getAttribute("server-data-count")!==null?this.component.body.getAttribute("server-data-count"):1;b=this.component.body.getAttribute("total-pages"),b=isNaN(b)?1:b,p=this.getPageIndex(g,b,O)[0],u=this.getPageIndex(g,b,O)[1],r.serviceData=typeof r.serviceData<"u"?r.serviceData:{},r.serviceData.params=typeof r.serviceData.params<"u"?r.serviceData.params:{},r.serviceData.params.offset=p,r.serviceData.params.limit=u}}(0,$.serviceLoader)((0,$.New)((0,$.ClassFactory)(f),{data:r.serviceData}),!1).then(g=>{$.logger.debug("DONE SERVICE COMPONENT"),g.service.JSONresponse=JSON.parse(g.service.template),typeof g.service.JSONresponse.result<"u"?($.logger.debug((0,$._DataStringify)(g.service.JSONresponse.result)),r.data=g.service.JSONresponse.result):r.data=g.service.JSONresponse,this.addSubcomponents()},g=>{$.logger.debug(g)}).catch(g=>{$.logger.debug("Something went wrong when calling the service from: "+f),$.logger.debug(g.message)})}}},"ListController")])})()});var bn=V((gn,st)=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var Se=J();(function(w){"use strict";(0,Se.Package)("org.qcobjects.controllers.slider",[c(class extends Se.Controller{constructor({component:f,dependencies:p=[],duration:u=7100,slideIndex:v=0,interval:g=null,sliderHandlerName:b=null}){super({component:f,dependencies:p,duration:u,slideIndex:v,interval:g,sliderHandlerName:b}),this.slideIndex=0,this.duration=7100,this.interval=null,this.sliderHandlerName="",this.component=f,this._componentRoot=f.shadowed?f.shadowRoot:f.body,this.sliderHandlerName="slider_"+this.component.__instanceID.toString(),w.set(this.sliderHandlerName,this)}stop(){this.interval!=null&&clearInterval(this.interval)}plusSlidesAndStop(f){this.stop(),this.plusSlides(f)}plusSlides(f){this.showSlides(this.slideIndex+=f)}currentSlide(f){this.stop(),this.showSlides(this.slideIndex=f)}automate(){this.interval=setInterval(()=>{this.plusSlides(1)},this.duration)}showSlides(f){let p=this._componentRoot?.subelements(".qcoSlides"),u=this._componentRoot?.subelements(".qcoSlider__dots--dot");f>p.length-1&&(this.slideIndex=0),f<0&&(this.slideIndex=0),p.filter((v,g)=>g!==this.slideIndex).map(v=>(0,Se.New)((0,Se.ClassFactory)("Fade"),{}).apply(v,1,0)),u.filter((v,g)=>g!==this.slideIndex).map(v=>v.classList.remove("active"));try{u[this.slideIndex].classList.add("active")}catch(v){Se.logger.debug(`Something went wrong when trying to activate a slide: ${this.slideIndex} - ${v.message}`)}setTimeout(()=>{p.filter((v,g)=>g!==this.slideIndex).map(v=>(v.style.display="none",v.style.display));try{p[this.slideIndex].style.display="block",(0,Se.New)((0,Se.ClassFactory)("Fade"),{}).apply(p[this.slideIndex],0,1)}catch(v){Se.logger.debug(`Something went wrong when trying to show a slide: ${this.slideIndex} - ${v.message}`)}},700)}fillDots(){(this._componentRoot?.subelements(".qcoSlides")).map((p,u)=>{let v=document.createElement("span"),g=`<span class="qcoSlider__dots--dot" onclick="global.get('${this.sliderHandlerName}').currentSlide(${u})"></span>`;return v.innerHTML=g,this._componentRoot?.subelements(".qcoSlider__dots")[0].append(v)})}done(){(this._componentRoot?.subelements(".qcoSlides")).filter((p,u)=>u!==this.slideIndex).map(p=>(p.style.display="none",p.style.display)),setTimeout(()=>{this.fillDots(),this.slideIndex=0,this.showSlides(this.slideIndex),this.automate()},3e3)}},"SliderController")])})(typeof st=="object"&&typeof st.exports=="object"?st.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{})});var wn=V(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});var ce=J(),yn=Ct();(function(){"use strict";(0,ce.Package)("org.qcobjects.controllers.form",[c(class extends ce.Controller{getDefault(){return function(r,f,p){let u={name:"^[a-zA-Z]+(([',. -][a-zA-Z ])?[a-zA-Z]*)*$",email:"^([A-Za-z0-9]+)@([A-Za-z0-9]+).([A-Za-z0-9]+)$"},v=p.getAttribute("pattern")||u[r];return new RegExp(v).test(f)}}},"FormValidations"),c(class extends ce.Controller{hasValidation(r){let f=r.getAttribute("data-field"),p=!1;return typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,f)&&(p=!0),p}isInvalid(r){let f=!1,p=r.getAttribute("data-field"),u=this.component.data[p],v=c((g,b,O)=>typeof this.validations<"u"&&Object.hasOwnProperty.call(this.validations,g)&&this.validations[g].call(null,g,b,O),"_execValidation");return typeof this.validations<"u"&&!v(p,u,r)&&(f=!0),f}isValid(r){return!this.isInvalid(r)}save(){this.serviceClass!==""?(location.href=this.formSettings.loadingRouting,(0,ce.serviceLoader)((0,ce.New)((0,ce.ClassFactory)(this.serviceClass),{data:this.component.data}),!1).then(r=>{console.log("DONE SERVICE COMPONENT");try{console.log(r.service.JSONresponse)}catch{}location.href=this.formSettings.nextRouting},r=>{ce.logger.debug(r),location.href=this.formSettings.backRouting})):ce.logger.debug("No service name declared on serviceClass property")}formSaveTouchHandler(){ce.logger.debug("Saving data...");let r=this.component.shadowed?(this.component?.shadowRoot).host:this.component.body;if(this.component.executeBindings(),this.formValidatorModal!=null){let p=r.subelements("*[data-field]").filter(b=>this.hasValidation(b)),u=c(function(b,O){return c((P,y)=>y.getAttribute("aria-labelledby")!==null?(y.getAttribute("aria-labelledby")||"").split(" ").map(T=>P.subelements(`#${T}`).map(L=>L.innerHTML)).join(" "):null,"_arialabelledby")(b,O)||O.getAttribute("aria-label")||O.getAttribute("placeholder")||O.getAttribute("name")||O.getAttribute("data-field")},"_labelledby"),v=c(function(b){return b.getAttribute("title")||b.getAttribute("aria-title")||""},"_ariatitle"),g=p.filter(b=>this.isInvalid(b));if(g.length>0){let b=`
|
|
687
|
+
<details>
|
|
688
|
+
<summary>Please verify the following incorrect fields:</summary>
|
|
689
|
+
<ul>
|
|
690
|
+
<div>
|
|
691
|
+
${g.map(O=>"<li><div>"+u(r,O)+"</div><div>"+v(O)+"</div></li>").join("")}
|
|
692
|
+
</div>
|
|
693
|
+
</ul>
|
|
694
|
+
</details>
|
|
695
|
+
`;this.formValidatorModal.body.subelements(".validationMessage")[0].innerHTML=b,this.formValidatorModal.modal()}else this.save()}else ce.logger.debug("Unable to find the modal validator..."),ce.logger.debug("Saving data..."),this.save()}constructor(r){super(r),this.validations=[],this.serviceClass="",this.formSettings={backRouting:"#",loadingRouting:"#loading",nextRouting:"#signupsuccessful"},this.component=r.component,this.component=this.component.Cast(yn.FormField)}done(){ce.logger.debugEnabled=!0;try{this.component.createBindingEvents();let r=(0,ce._DOMCreateElement)("div");r.className="modal_body",this.formValidatorModal=(0,ce.New)(yn.ModalComponent,{body:r,subcomponents:[],data:{content:'<div class="validationMessage"></div>'}}),(0,ce.Tag)(".modal_body").map(f=>document.body.removeChild(f)),document.body.append(this.formValidatorModal)}catch{ce.logger.debug("Unable to create the modal")}this.onpress(".submit",()=>{this.formSaveTouchHandler()})}},"FormController")])})()});var _n=V(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});var fe=J();(function(){"use strict";(0,fe.Package)("org.qcobjects.controllers.swagger",[c(class extends fe.Controller{startSwaggerUI(){if(typeof SwaggerUIBundle<"u"){let r=SwaggerUIBundle({url:fe.CONFIG.get("swagger-ui-url","https://petstore.swagger.io/v2/swagger.json"),dom_id:"#"+fe.CONFIG.get("swagger-ui-dom_id","swagger-ui"),deepLinking:!0,presets:[SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset],plugins:[SwaggerUIBundle.plugins.DownloadUrl],layout:"StandaloneLayout"});window.ui=r}}done(){this.component.body.innerHTML='<div id="'+fe.CONFIG.get("swagger-ui-dom_id","swagger-ui")+'"></div>';let r=fe.CONFIG.get("swagger-ui-package-path","node_modules/swagger-ui-dist/");this.dependencies?.push((0,fe.New)(fe.SourceJS,{url:r+"swagger-ui-standalone-preset.js",external:fe.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,fe.New)(fe.SourceCSS,{url:r+"swagger-ui.css",external:fe.CONFIG.get("swagger-ui-external",!1)})),this.dependencies?.push((0,fe.New)(fe.SourceJS,{url:r+"swagger-ui-bundle.js",external:fe.CONFIG.get("swagger-ui-external",!1),done:()=>{this.startSwaggerUI()}}))}},"SwaggerUIController")])})()});var Nn=V(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});var In=J();(function(){"use strict";(0,In.Package)("org.qcobjects.modal.controllers",[c(class extends In.Controller{done(){let r=this.component;r.body.innerHTML=r.body.innerHTML.replace("/{{content}}/g",r.submodal.template)}},"ModalController")])})()});var Tn=V(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var Sn=J();(function(){"use strict";(0,Sn.Package)("org.qcobjects.views",[c(class extends Sn.View{},"GridView")])})()});var En=V(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});var An=J();(function(){(0,An.Package)("org.qcobjects.tools.canvas",[c(class extends An.InheritClass{drawImageFilled(r,f,p=1,u=0,v=0){let g=Math.max(f.width/r.width,f.height/r.height);g=g*p;let b=f.width/2-r.width/2*g,O=f.height/2-r.height/2*g;f.getContext("2d")?.drawImage(r,u+b,v+O,r.width*g,r.height*g)}getImageResized(r,f,p,u,v=1,g=0,b=0){let O=document.createElement("canvas");return O.width=f,O.height=p,O.style.width=f.toString(),O.style.height=p.toString(),this.drawImageFilled(r,O,v,g,b),u.src=O.toDataURL("image/png"),O}},"CanvasTool")])})()});var Mn=V(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});var Z=J(),Le=Re();(function(){(0,Z.Package)("org.qcobjects.tools.layouts",[c(class extends Z.InheritClass{constructor({component:r=null,dependencies:f=[]}){super({component:r,dependencies:f}),this.dependencies=[]}load(){this.dependencies.push((0,Z.New)(Z.SourceCSS,{external:!Z.CONFIG.get("useLocalSDK",!1),url:Z.CONFIG.get("useLocalSDK",!1)?"css/basic-layout.css":Z.CONFIG.get("remoteSDKPath",!1)+"css/basic-layout.css"}))}coloredBorder(){setTimeout(function(){(0,Z.Tag)("nav").map(r=>{r.style.border="20px solid #3333"}),(0,Z.Tag)("nav").map(r=>{r.style.backgroundColor="#129999"}),(0,Z.Tag)("component>footer").map(r=>{r.style.background="#876"}),(0,Z.Tag)("component>div").map(r=>{r.style.border="3px dashed #fff"}),(0,Z.Tag)("component>section").map(r=>{r.style.border="3px solid #000"}),(0,Z.Tag)("component>section").map(r=>{r.style.backgroundColor="#fffaaa"}),(0,Z.Tag)("component>article").map(r=>{r.style.border="3px dotted #000"}),(0,Z.Tag)("component>header").map(r=>{r.style.background="#789"}),(0,Z.Tag)("component>footer").map(r=>{r.style.background="#876"}),(0,Z.Tag)("component>article:nth-child(1)").map(r=>{r.style.border="1px solid #444"}),(0,Z.Tag)("component>article:nth-child(1)").map(r=>{r.style.backgroundColor="#555aaa"}),(0,Z.Tag)("component>article:nth-child(2)").map(r=>{r.style.backgroundColor="#aaa333"}),(0,Z.Tag)("component>article:nth-child(3)").map(r=>{r.style.backgroundColor="#54da82"}),(0,Z.Tag)("*").map(r=>{r.style.color="#fff"}),(0,Z.Tag)("component>article").map(r=>Le.Fade.apply(r,0,1)),(0,Z.Tag)("component>footer").map(r=>Le.Fade.apply(r,0,1)),(0,Z.Tag)("component>header").map(r=>Le.Fade.apply(r,0,1)),(0,Z.Tag)("nav").map(r=>{r.style.display="block",r.style.width=r.offsetParent?.scrollWidth.toString()||r.clientWidth.toString(),Le.MoveXInFromLeft.apply(r)}),(0,Z.Tag)("component>article").map(r=>{r.style.display="block",r.style.height=r.offsetParent?.scrollHeight.toString()||r.clientHeight.toString(),Le.MoveYInFromBottom.apply(r)}),(0,Z.Tag)("component>article:nth-child(2)").map(r=>{r.style.display="block",r.style.width=r.offsetParent?.scrollWidth.toString()||r.clientWidth.toString(),Le.MoveXInFromRight.apply(r)})},300)}},"BasicLayout")])})()});var Et=V((dt,at)=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.SessionUserToken=void 0;var xe=J(),Rn=typeof at=="object"&&typeof at.exports=="object"?at.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};(function(w){"use strict";class r extends xe.InheritClass{constructor(p){super(p);let u=this;this.__cache__=new xe.ComplexStorageCache({index:u.__instanceID.toString(),load(){let v;return typeof navigator<"u"&&typeof origin<"u"?v=xe._Crypt.encrypt(`${navigator.userAgent}|${p.username}|${(+new Date).toString()}`,origin):v=xe._Crypt.encrypt(`${p.username}|${(+new Date).toString()}`,xe.CONFIG.get("domain","localhost")),r.user={priority:u.__instanceID.toString(),token:v},r.user},alternate(v){r.user=v?.cache.getCached(u.__instanceID.toString())}})}static generateIndex(p){return typeof Buffer<"u"?Buffer.from(p,"ascii").toString("base64"):btoa(p)}getGlobalUser(...p){let u=[p].join("|"),v="userToken_"+r.generateIndex(u);return(typeof w.get(v)>"u"||w.get(v)===null)&&w.set(v,(0,xe.New)(r,{username:u})),r.user=w.get(v).user,w.get(v).user}getGlobalUserToken(...p){return this.getGlobalUser(p).token}getGlobalUserId(...p){return this.getGlobalUser(p).id}getGlobalUserPriority(...p){return this.getGlobalUser(p).priority}getLoginCredentialsToken(p,u){return xe._Crypt.encrypt(`${p}${u}`,this.getGlobalUserToken(p))}closeGlobalSession(...p){this.getGlobalUser(p);let u=[p].join("|"),v="userToken_"+r.generateIndex(u);typeof w.get(v)<"u"&&(w.get(v).__cache__.clear(),w.set(v,null),r.user={})}}c(r,"SessionUserToken"),r.user={},(0,xe.Package)("org.qcobjects.cloud.auth.session.usertoken",[r])})(Rn);var Mo=Rn.SessionUserToken;dt.SessionUserToken=Mo});var Ln=V(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var Pt=J(),kn=Et();(function(){"use strict";(0,Pt.Package)("org.qcobjects.cloud.auth.session.data",[c(class extends Pt.InheritClass{constructor(){super(...arguments),this.__session_container__=null}setSessionContainer(){this.__session_container__=[...arguments]}getSessionContainer(){if(typeof this.__session_container__>"u"||this.__session_container__===null)throw new Error("You need to set a session container first: sessionData.setSessionContainer(...arguments)");return this.__session_container__}getSessionData(...r){let f=sessionStorage.getItem(`${this.index(r)}`),p;return f!==null&&(p=JSON.parse(f)),(typeof p>"u"||p===null)&&(p={}),p}index(...r){if(typeof kn.SessionUserToken>"u")throw new Error('You need to import SessionUserToken first: Import ("org.qcobjects.cloud.auth.session.usertoken")');return`session_${btoa(kn.SessionUserToken.getGlobalUserToken(r))}`}save(...r){let f=(0,Pt._DataStringify)(this.sessionData);sessionStorage.setItem(`${this.index(r)}`,f)}get(r,f){let p=this.getSessionData(this.getSessionContainer());return typeof p[r]<"u"?p[r]:f}set(r,f){let p=this.getSessionContainer(),u=this.getSessionData(p);this.sessionData=u,this.sessionData[r]=f,this.save(p)}},"SessionData")])})()});var Ro=V((Mt,lt)=>{Object.defineProperty(Mt,"__esModule",{value:!0});var Fn=J(),Gn=typeof lt=="object"&&typeof lt.exports=="object"?lt.exports=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}:typeof global=="object"?global:typeof window=="object"?window:{};c(function w(r){"use strict";if(typeof Object.defineProperty<"u"&&typeof r<"u")try{Object.defineProperty(r,"__qcobjects_sdk__",{enumerable:!0,configurable:!1,writable:!1,value:w})}catch{typeof r.__qcobjects_sdk__<"u"&&(r.__qcobjects_sdk__.__loaded__=!0)}if(typeof r.__qcobjects_sdk__.__loaded__>"u"){if(r.__qcobjects_sdk__.__loaded__=!0,typeof r>"u")throw Error("Top context empty: It should either global, module or window");let f=Fn.GlobalSettings.__start__.bind(r),p=[];p=[new Promise(u=>{Jt(),en(),Ct(),tn(),nn(),rn(),an(),dn(),un(),pn(),mn(),bn(),wn(),_n(),Re(),Nn(),Tn(),En(),Mn(),Et(),Ln(),u()})],r._sdk_=Promise.all(p).then(()=>{Fn.CONFIG.set("useSDK",!0),f()})}},"__qcobjects_sdk__")(Gn);Mt.default=Gn});return Ro();})();
|
|
696
|
+
//# sourceMappingURL=QCObjects-SDK.js.map
|