qcobjectsnewapp 2.5.21-ts → 2.5.22-ts
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/package.json +1 -2
- package/public/js/init.js +1 -1
- package/public/js/init.js.map +2 -2
- package/public/js/packages/com.qcobjects.services.github.js +1 -1
- package/public/js/packages/com.qcobjects.services.github.js.map +2 -2
- package/public/js/packages/org.quickcorp.custom.js +1 -1
- package/public/js/packages/org.quickcorp.custom.js.map +2 -2
- package/src/js/packages/com.qcobjects.services.github.ts +4 -4
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
@import url("${a}") (aspect-ratio: 4/3) and (min-width:460px);
|
|
19
19
|
@import url("${a}") (aspect-ratio: 3/2) and (min-width:460px);
|
|
20
20
|
`,portrait:u};return Object.hasOwn(p,s)?p[s]:""},"layout");ee.setProcessor(r);let e=l((i,s,a,...u)=>{let d=[...u].map(function(h){return{[h.split("=")[0]]:h.split("=")[1]}}).reduce(function(h,m){return Object.assign(h,m)}),p=[...Object.keys(d)].map(function(h){return`${h}=${d[h]}`}).join(" ");return`<component name="${s}" componentClass="${a}" ${p}></component>`},"component");ee.setProcessor(e);let t=l((i,s,a,...u)=>{let d=[...u].map(function(h){return{[h.split("=")[0]]:h.split("=")[1]}}).reduce(function(h,m){return Object.assign(h,m)}),p=[...Object.keys(d)].map(function(h){return`${h}=${d[h]}`}).join(" ");return`<quick-component name="${s}" componentClass="${a}" ${p}></quick-component>`},"quick_component");ee.setProcessor(t);let o=l((i,s,a)=>lt(s).map(function(u){return a.replace("{{index}}",u.toString())}).join(""),"repeat");ee.setProcessor(o)})()},"setDefaultProcessors")}}),Ue,_n=y({"src/findPackageNodePath.ts"(){"use strict";W(),Re(),S(),R(),Ue=l(function(n){let r=null;if(!g){let e=null;try{let s=tt("node:fs");s&&typeof s.existsSync=="function"&&(e=s)}catch(s){c.debug(`findPackageNodePath could not load node:fs: ${s}`)}let t=typeof De<"u"&&Array.isArray(De.paths)?De.paths:[],o=typeof process<"u"&&typeof process.cwd=="function"?process.cwd():"",i=[`${b.get("projectPath")}${b.get("relativeImportPath")}`,`${b.get("basePath")}${b.get("relativeImportPath")}`,`${b.get("projectPath")}`,`${b.get("basePath")}`,`${b.get("relativeImportPath")}`,`${o}${b.get("relativeImportPath")}`,`${o}/node_modules/`,`${o}/node_modules`,`${o}`,"node_modules","./",""].concat(t).filter(s=>typeof s=="string"&&s!=="undefined");e!==null?(i=i.filter(s=>e.existsSync(s+"/"+n)),i.length>0?(r=i[0],c.info(n+" is Installed.")):(r="",c.info(`${n} is not in a standard path.`))):(r=`${o}/node_modules`,c.debug(`findPackageNodePath could not verify ${n}, assuming ${r}`))}return r},"findPackageNodePath"),E(Ue)}}),ut,yn=y({"src/Import.ts"(){"use strict";fe(),W(),Z(),X(),_n(),S(),R(),oe(),ut=l(function(n,r,e){e!==void 0&&c.debug(`[Import] Setting external=${e.toString()} resource to import: ${n}`),e?c.debug(`[Import] Registering external resource to import: ${n}`):c.debug(`[Import] Registering local resource to import: ${n}`);let t;return g?(t=new Promise(function(o,i){let s=l(function(){let u=!1,d=0;for(let p in k)d++;return d<nt.length?u=!1:u=!0,u},"allPackagesImported"),a=l(function(u){nt.push(r),s()&&nt.map(d=>me.push(d)),g&&b.get("removePackageScriptAfterLoading")&&u.target.remove(),o.call(t,{_imported_:u.target,_package_name_:n})},"readyImported");if(!Object.hasOwn(k,n)){let u=G("script");u.type=b.get("sourceType","text/javascript"),u.async=!!b.get("asynchronousImportsLoad"),u.onreadystatechange=function(){u.readyState==="complete"&&a(u)},u.onload=a,u.onerror=function(d){c.debug(`An error ocurred: ${d}.`),i.call(t,{_imported_:u,_package_name_:n})},u.src=e?b.get("remoteImportsPath")+n+".js":V+b.get("relativeImportPath")+n+".js",document.getElementsByTagName("head")[0].appendChild(u)}}),t.catch(function(){c.debug("Import: Error loading a package ")})):t=new Promise(function(o,i){try{let s=Ue(n),a="";if(s!==null)a=s+"/"+n;else{let u=Ue(n+".js");u!==null?a=u+"/"+n+".js":a=V+b.get("relativeImportPath")+n}try{o.call(t,{_imported_:ae(`${a}`),_package_name_:n})}catch(u){i.call(t,{_imported_:null,_package_name_:n,error:u})}}catch(s){i.call(t,{_imported_:null,_package_name_:n,error:s})}}).catch(function(o){c.debug("Something happened when importing "+n),console.warn(o)}),t.catch(function(o){c.warn(A(o))}),t},"Import"),ut.prototype.toString=function(){return"Import(packagename,ready,external) { [QCObjects native code] }"}}}),D,bn=y({"src/mathFunctions.ts"(){"use strict";D=l(function(n){return isNaN(n)?new Number(0):new Number(n)},"__to_number")}}),wn,Vn=y({"src/NamespaceRef.ts"(){"use strict";yt(),j(),wn=l(function(n){let e=(P(n)||[]).filter(t=>_t(t)).map(t=>({[t.__definition.__classType]:t})).reduce((t,o)=>Object.assign(t,o));return n.split(".").map(t=>({[t]:e})).reverse().reduce((t,o)=>(o[Object.keys(o).join(".")]=t,o))},"NamespaceRef")}}),ge,Cn,it,zn=y({"src/Ready.ts"(){"use strict";W(),R(),oe(),F(),ge=l(n=>{g?me.push(n.bind(window)):typeof global<"u"&&me.push(n.bind(global))},"Ready"),Cn=ge,it=l(n=>{let r=l(()=>{me.map(function(e,t){typeof e=="function"&&(e(),me.splice(t,1))})},"_execReady");b.get("delayForReady")>0?g?setTimeout(r.bind(window),b.get("delayForReady")):typeof global<"u"&&setTimeout(r.bind(global),b.get("delayForReady")):r.call(T)},"_Ready")}}),Rt,Xn,Yn=y({"src/ArrayCollection.ts"(){"use strict";var n,r;Y(),S(),pe(),bn(),Rt=(n=class extends Array{unique(){return this.filter(function(t,o,i){return i.indexOf(t)===o})}table(){console.table(this)}sum(){return this.reduce((t,o)=>D(t)+D(o),0)}avg(){return this.length<1?0:this.reduce((t,o)=>(D(t)+D(o))/2)}min(){return this.reduce((t,o)=>D(t)<=D(o)?t:o,1/0)}max(){return this.reduce((t,o)=>D(t)>=D(o)?t:o,0)}sortBy(t,o){let i=o?(function(s,a){return a[t]<s[t]?1:-1}):(function(s,a){return a[t]>s[t]?1:-1});return this.sort(i)}matrix(t,o){return Array.from({length:t},l(()=>o,"x_func"))}matrix2d(t,o){let i=l(function(){return o},"y_func");return Array.from({length:t},l(function(){return Array.from({length:t},i)},"x_func"))}matrix3d(t,o){let i=l(function(){return Array.from({length:t},function(){return o})},"y_func");return Array.from({length:t},l(function(){return Array.from({length:t},i)},"x_func"))}},f(n,"ArrayList"),l(n,"ArrayList"),n),Xn=(r=class{constructor(){this.source=q(Rt,[])}changed(t,o){c.debug("VALUE CHANGED"),c.debug(t),c.debug(o)}push(t){let o=this;return c.debug("VALUE ADDED"),c.debug(t),o.source.push(t)}pop(){let t=this;return c.debug("VALUE POPPED"),t.source.pop()}_new_(t){let o=this,i=0;o.source=q(M("ArrayList"),t);for(let s of Object.keys(o.source))isNaN(s)||(c.debug("binding "+s.toString()),(function(a){Object.defineProperty(o,a,{set(u){c.debug("setting "+a+"="+u),o.source[a]=u,o.changed(a,u)},get(){return o.source[a]}})})(s),i++);o.source.length=i,Object.defineProperty(o,"length",{get(){return o.source.length}})}},f(r,"ArrayCollection"),l(r,"ArrayCollection"),r)}}),Nt,jt,Zn=y({"src/Tag.ts"(){"use strict";var n;Y(),pe(),j(),R(),Yn(),Nt=(n=class extends Rt{show(){this.map(function(e){return e.style.opacity=1})}hide(){this.map(function(e){return e.style.opacity=0})}effect(...e){let t=[...e].slice(1),o=e[0],i;(typeof o).toLowerCase()==="string"&&(i=M(o)),this.map(function(s){return i.apply.apply(i,[s].concat(t))})}findElements(e){let t=q(M("TagElements"));if(g)for(let o of Object.keys(this))typeof o=="number"&&typeof this[o]!="function"&&Object.hasOwn(this[o],"subelements")&&t.push(this[o].subelements(e));return t}},f(n,"TagElements"),l(n,"TagElements"),n),jt=l(function(r,e){let t=q(Nt);if(g){let o=document.subelements(r),i=[];for(let s=0;s<o.length;s++)typeof e<"u"&&Object.hasOwn(o[s],"innerHTML")&&(o[s].innerHTML=e),i.indexOf(s)<0&&(t.push(o[s]),i.push(s))}return t},"Tag"),P("com.qcobjects",[Nt,jt])}}),En,eo=y({"src/shortCode.ts"(){"use strict";kt(),En=l(()=>{let r=J.encrypt((Math.random()*1e3).toString().replace(".",""),new Date().getTime().toString());return[...J.encrypt((Math.random()*1e3).toString().replace(".",""),new Date(new Date().getTime()-1e3*1e3).getTime().toString())].map((o,i)=>[...r][i]===o?null:o).filter(o=>o!==null).join("")},"shortCode")}}),Lt,to=y({"src/super.ts"(){"use strict";Y(),Lt=l(function(n,r){return M(n)[r]},"_super_"),Lt.prototype.toString=function(){return"_super_(className,classMethodName,params) { [QCObjects native code] }"}}}),On,no=y({"src/waitUntil.ts"(){"use strict";S(),On=l((n,r)=>{let e=l((t,o)=>{let s=0;var a=setInterval(function(){o()?(clearInterval(a),t(),c.debug("Ejecuting "+t.name+" after wait")):s<2e3?(s+=1,c.debug("WAIT UNTIL "+t.name+" is true, "+s.toString()+" cycles")):(c.debug("Max execution time for "+t.name+" expression until true"),clearInterval(a))},1)},"_waitUntil");setTimeout(function(){e(n,r)},1)},"waitUntil")}}),Le,oo=y({"src/subelements.ts"(){"use strict";Le=l(f(function(r){return[...this.querySelectorAll(r)]},"subelements2"),"subelements")}}),jn,ro,xo=y({"src/loadSDK.ts"(){"use strict";W(),_n(),yn(),S(),R(),F(),jn=l(()=>{if(typeof T._sdk_<"u"){c.debug("The SDK is already present in this bundle, skipping the dynamic import");return}b.get("useSDK")&&(function(){let n=b.get("remoteImportsPath"),r=!b.get("useLocalSDK");b.set("remoteImportsPath",b.get("remoteSDKPath"));let e=!1,t="QCObjects-SDK";if(g)e=!0;else{let o=Ue("qcobjects-sdk");o!==null?(t="qcobjects-sdk",e=!0):o!==""?(t="node_modules/qcobjects-sdk/QCObjects-SDK",e=!0):e=!1}e?(c.info("Importing SDK... "+t),Zt&&typeof tt<"u"?ae("qcobjects-sdk")?c.debug("QCObjects SDK was loaded OK."):c.debug("QCObjects SDK could not be imported."):ut(t,function(){r?c.debug("QCObjects-SDK.js loaded from remote location"):c.debug("QCObjects-SDK.js loaded from local"),b.set("remoteImportsPath",n)},r)?.catch(o=>{throw new Error(`An error ocurred when trying to import: ${o}`)})):c.debug("SDK has not been imported as it is not available at the moment")})()},"loadSDK"),ro=jn}}),$o=To({"src/MainProcess.ts"(){"use strict";F(),qt(),Jn(),re(),on(),Y(),ln(),Gt(),dn(),W(),Z(),Kn(),Re(),yn(),ue(),yt(),S(),bn(),Vn(),pe(),mt(),j(),R(),zn(),Ft(),Zn(),Ke(),bt(),z(),eo(),X(),Ht(),to(),no(),oo(),un(),xo(),mn(),l(f((function n(r){if(typeof Object.defineProperty<"u"&&typeof r<"u")try{Object.defineProperty(r,"__qcobjects__",{enumerable:!0,configurable:!1,writable:!1,value:n})}catch(e){c.debug(`An error ocurred: ${e}`),typeof r.__qcobjects__<"u"&&(r.__qcobjects__.loaded=!0)}typeof r.__qcobjects__.loaded>"u"&&(r.__qcobjects__.loaded=!0,g&&(Element.prototype.subelements=Le,Document.prototype.subelements=Le,HTMLElement.prototype.subelements=Le,typeof ShadowRoot<"u"&&(ShadowRoot.prototype.subelements=Le)),c.debugEnabled=!1,c.infoEnabled=!0,g&&(Element.prototype.find=function(e){let t=this,o=[],i=document.subelements(e);return i.map((s,a)=>(typeof i[a]<"u"&&i[a].parentNode.tagName===t.parentNode.tagName&&o.push(ne(s,new Object)),s)),o}),g&&(Element.prototype.append=l(f(function(t){Me(t)||typeof t.body<"u"?this.appendChild(t.body):this.appendChild(t)},"QC_Append"),"QC_Append"),Element.prototype.render=l(f(function(t){let o=this,i=l((s,a)=>{if(typeof document.implementation.createHTMLDocument<"u"){let u=document.implementation.createHTMLDocument("");u.body.innerHTML=a,u.body.subelements("*").map(d=>s.append(d))}},"_appendVDOM");if(typeof this.innerHTML<"u")try{this.innerHTML+=t}catch(s){c.debug(`An error ocurred: ${s}`),i(o,t)}else i(o,t)},"QC_Render"),"QC_Render")),E(On),E(Lt),E(He),E(M),E(G),E(En),E(H),E(te),P("com.qcobjects",[$e]),g&&(Element.prototype.Cast=l(f(function(t){return ne(this,t)},"QC_Cast"),"QC_Cast")),g?(window.onload=it,$t&&document.addEventListener("deviceready",it,hn)):global.onload=it,g&&window.addEventListener("popstate",function(e){e.stopImmediatePropagation(),e.stopPropagation(),_e.route().catch(t=>{throw new Error(`An error ocurred when trying to load initial routes. ${t}`)})}),E(Ct),E(ct),E(dt),E(Qe),E(A),E(_t),E(Me),E(wn),Array.prototype.unique=function(){return this.filter(function(e,t,o){return o.indexOf(e)===t})},Array.unique=function(e){return e.unique()},N(Array.unique),N(Array.prototype.unique),Array.prototype.table=function(){console.table(this)},Array.table=function(e){e.table()},N(Array.table),N(Array.prototype.table),Array.prototype.sum=function(){return this.reduce(function(e,t){return D(e)+D(t)},0)},Array.sum=function(e){return e.sum()},N(Array.sum),N(Array.prototype.sum),Array.prototype.avg=function(){return this.length<1?0:this.reduce(function(e,t){return(D(e)+D(t))/2})},Array.avg=function(e){return e.avg()},N(Array.avg),N(Array.prototype.avg),Array.prototype.min=function(){return this.reduce(function(e,t){return D(e)<=D(t)?e:t},1/0)},Array.min=function(e){return e.min()},N(Array.min),N(Array.prototype.min),Array.prototype.max=function(){return this.reduce(function(e,t){return D(e)>=D(t)?e:t},0)},Array.max=function(e){return e.max()},N(Array.max),N(Array.prototype.max),Array.prototype.sortBy=function(e,t=!0){let o=t?(function(i,s){return s[e]<i[e]?1:-1}):(function(i,s){return s[e]>i[e]?1:-1});return this.sort(o)},Array.sortBy=function(e,t,o=!0){return e.sortBy(t,o)},N(Array.sortBy),N(Array.prototype.sortBy),Array.prototype.matrix=function(e,t=0){return Array.from({length:e},l(function(i=void 0){return t},"x_func"))},Array.matrix=function(e,t,o=0){return e.matrix(t,o)},N(Array.matrix),N(Array.prototype.matrix),Array.prototype.matrix2d=function(e,t=0){let o=l(function(s){return t},"y_func");return Array.from({length:e},l(function(s){return Array.from({length:e},o)},"x_func"))},Array.matrix2d=function(e,t,o=0){return e.matrix2d(t,o)},N(Array.matrix2d),N(Array.prototype.matrix2d),Array.prototype.matrix3d=function(e,t=0){let o=l(function(s){return Array.from({length:e},function(){return t})},"y_func");return Array.from({length:e},l(function(s){return Array.from({length:e},o)},"x_func"))},Array.matrix3d=function(e,t,o=0){return e.matrix3d(t,o)},N(Array.matrix3d),N(Array.prototype.matrix3d),String.prototype.list=function(){let e=this;return lt(0,e.length-1).map(function(t){return e[t]})},N(String.prototype.list),gn(),ge(function(){typeof r._sdk_<"u"?c.debug("The SDK is already present in this bundle, skipping the dynamic import"):ro(),b.get("useSDK")||Fe.__start__().catch(e=>{throw Error(e)})}),E(E),E(ut),E(P),E(xe),E(q),E(jt),E(ge),E(Cn),E(g),E(K),E(Fe),g&&qe(function(){ge(function(){(function(e){let t=!1,o=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),i=Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth);function s(a){let u=Math.round(e.scrollY*100/o),d=Math.round(e.scrollX*100/i),p=new CustomEvent("scrollpercent",{detail:{percentX:d,percentY:u}});a.target.dispatchEvent(p);let h="defaultscroll";[0,5,10,25,50,75,90,95,100].filter(function(w){return w===u}).map(function(w){h="percentY"+u.toString();let C=new CustomEvent(h,{detail:{percentX:d,percentY:u}});return a.target.dispatchEvent(C),w})}f(s,"scrollDispatcher"),l(s,"scrollDispatcher"),document.addEventListener("scroll",function(a){t||(requestAnimationFrame(function(){s(a),t=!1}),t=!0)})})(r)})},[]),g||(typeof r._fireAsyncLoad<"u"&&an.call(r),typeof r.onload<"u"&&r.onload.call(r)),(function(e){let t=l(function(){Object.freeze(Object.prototype),Object.freeze(Object)},"__freeze__");e&&b.get("secureObjects",!1)?ge(function(){t()}):b.get("secureObjects",!1)&&t()})(g))}),"__qcobjects__"),"__qcobjects__")(T)}}),so={};Ln(so,{ArrayCollection:f(()=>Xn,"ArrayCollection"),ArrayList:f(()=>Rt,"ArrayList"),AssignPolyfill:f(()=>Do,"AssignPolyfill"),BackendMicroservice:f(()=>io,"BackendMicroservice"),CONFIG:f(()=>b,"CONFIG"),Class:f(()=>xe,"Class"),ClassFactory:f(()=>M,"ClassFactory"),ComplexStorageCache:f(()=>He,"ComplexStorageCache"),Component:f(()=>_e,"Component"),ComponentURI:f(()=>dt,"ComponentURI"),ConfigService:f(()=>It,"ConfigService"),Controller:f(()=>uo,"Controller"),DDO:f(()=>go,"DDO"),DefaultTemplateHandler:f(()=>ao,"DefaultTemplateHandler"),Effect:f(()=>Sn,"Effect"),Export:f(()=>E,"Export"),GlobalSettings:f(()=>Fe,"GlobalSettings"),Import:f(()=>ut,"Import"),InheritClass:f(()=>L,"InheritClass"),JSONService:f(()=>St,"JSONService"),Logger:f(()=>Tt,"Logger"),NamespaceRef:f(()=>wn,"NamespaceRef"),New:f(()=>q,"New"),ObjectName:f(()=>Qe,"ObjectName"),Package:f(()=>P,"Package"),Processor:f(()=>$e,"Processor"),Ready:f(()=>ge,"Ready"),RegisterClass:f(()=>vn,"RegisterClass"),RegisterWidget:f(()=>Ut,"RegisterWidget"),RegisterWidgets:f(()=>An,"RegisterWidgets"),Service:f(()=>At,"Service"),SourceCSS:f(()=>lo,"SourceCSS"),SourceJS:f(()=>co,"SourceJS"),Tag:f(()=>jt,"Tag"),TagElements:f(()=>Nt,"TagElements"),Timer:f(()=>mo,"Timer"),Toggle:f(()=>_o,"Toggle"),TransitionEffect:f(()=>ho,"TransitionEffect"),VO:f(()=>po,"VO"),View:f(()=>fo,"View"),_Cast:f(()=>ne,"_Cast"),_CastProps:f(()=>le,"_CastProps"),_ComponentWidget_:f(()=>ft,"_ComponentWidget_"),_Crypt:f(()=>J,"_Crypt"),_DOMCreateElement:f(()=>G,"_DOMCreateElement"),_DataStringify:f(()=>A,"_DataStringify"),_LegacyCopy:f(()=>Dt,"_LegacyCopy"),_QC_CLASSES:f(()=>B,"_QC_CLASSES"),_QC_PACKAGES:f(()=>k,"_QC_PACKAGES"),_QC_PACKAGES_IMPORTED:f(()=>nt,"_QC_PACKAGES_IMPORTED"),_QC_READY_LISTENERS:f(()=>me,"_QC_READY_LISTENERS"),_Ready:f(()=>it,"_Ready"),__attributeNotSet_:f(()=>vt,"__attributeNotSet_"),__booleanAttribute_:f(()=>rt,"__booleanAttribute_"),__getType__:f(()=>H,"__getType__"),__instanceID:f(()=>ie,"__instanceID"),__is_raw_class__:f(()=>We,"__is_raw_class__"),__make_global__:f(()=>gt,"__make_global__"),__to_number:f(()=>D,"__to_number"),__top__:f(()=>Qn,"__top__"),_buildComponentsFromElements_:f(()=>Pt,"_buildComponentsFromElements_"),_fireAsyncLoad:f(()=>an,"_fireAsyncLoad"),_methods_:f(()=>K,"_methods_"),_protected_code_:f(()=>N,"_protected_code_"),_require_:f(()=>ae,"_require_"),_super_:f(()=>Lt,"_super_"),_tag_filter_:f(()=>Bt,"_tag_filter_"),_top:f(()=>T,"_top"),asyncLoad:f(()=>qe,"asyncLoad"),captureFalseTouch:f(()=>hn,"captureFalseTouch"),componentLoader:f(()=>ct,"componentLoader"),componentsStack:f(()=>Be,"componentsStack"),findPackageNodePath:f(()=>Ue,"findPackageNodePath"),get:f(()=>Q,"get"),getDocumentLayout:f(()=>Ho,"getDocumentLayout"),global:f(()=>T,"global"),isBrowser:f(()=>g,"isBrowser"),isNodeCommonJS:f(()=>Zt,"isNodeCommonJS"),isQCObjects_Class:f(()=>_t,"isQCObjects_Class"),isQCObjects_Object:f(()=>Me,"isQCObjects_Object"),is_a:f(()=>te,"is_a"),is_phonegap:f(()=>$t,"is_phonegap"),logger:f(()=>c,"logger"),qcobjects:f(()=>ko,"qcobjects"),range:f(()=>lt,"range"),ready:f(()=>Cn,"ready"),resetTop:f(()=>Mt,"resetTop"),serviceLoader:f(()=>Ct,"serviceLoader"),set:f(()=>Ge,"set"),setDefaultProcessors:f(()=>gn,"setDefaultProcessors"),shortCode:f(()=>En,"shortCode"),subelements:f(()=>Le,"subelements"),waitUntil:f(()=>On,"waitUntil")});De.exports=Io(so);var Do={};typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:l(f(function(r,e){"use strict";if(r===null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(r);for(let o=1;o<arguments.length;o++){let i=arguments[o];if(i!==null)for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},"assign"),"assign"),writable:!0,configurable:!0});F();var ko=Po($o());F();oe();Z();X();ue();S();R();oo();ht();nn();qt();tn();mt();z();bt();Ht();no();re();yt();j();Y();Re();on();$();to();eo();Ke();pe();zn();Jn();Ft();dn();Gt();Vn();Kn();Zn();yn();fe();Z();wt();$();S();j();var ye,io=(ye=class extends L{constructor({domain:r=Je,basePath:e=V,body:t=null,stream:o=null,request:i=null}){super({domain:r,basePath:e,body:t,stream:o,request:i}),c.debug("Initializing BackendMicroservice...");let s=this;typeof this.body>"u"&&(this.body=null),typeof t<"u"&&(this.body=t),this.cors(),s.stream=o,o?.on("data",d=>{let p=i?.method.toLowerCase(),h={post:s.post.bind(s)};Object.hasOwn(h,p)&&h[p].call(s,d)});let a=i?.method.toLowerCase(),u={get:s.get.bind(s),head:s.head.bind(s),put:s.put.bind(s),delete:s.delete.bind(s),connect:s.connect.bind(s),options:s.options.bind(s),trace:s.trace.bind(s),patch:s.patch.bind(s)};Object.hasOwn(u,a)&&u[a].call(s)}cors(){if(this.route.cors){c.debug("Validating CORS...");let{allow_origins:r,allow_credentials:e,allow_methods:t,allow_headers:o}=this.route.cors,i=this;if(typeof i.headers!="object"&&(i.headers={}),typeof i.route.responseHeaders!="object"&&(i.route.responseHeaders={}),typeof r<"u")if(c.debug("CORS: allow_origins available. Validating origins..."),r==="*"||typeof i.request.headers.origin>"u"||[...r].indexOf(i.request.headers.origin)!==-1)c.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";else{c.debug("CORS: Origin is not allowed: "+i.request.headers.origin),c.debug("CORS: Forcing to finish the response..."),this.body={};try{this.done()}catch(s){c.debug(`It was not possible to finish the call to the microservice: ${s}`)}}else c.debug("CORS: no allow_origins available. Allowing all origins..."),c.debug("CORS: Adding header Access-Control-Allow-Origin=*"),i.route.responseHeaders["Access-Control-Allow-Origin"]="*";typeof e<"u"?(c.debug(`CORS: allow_credentials present. Allowing ${e}...`),i.route.responseHeaders["Access-Control-Allow-Credentials"]=e.toString()):(c.debug("CORS: No allow_credentials present. Allowing all credentials."),i.route.responseHeaders["Access-Control-Allow-Credentials"]="true"),typeof t<"u"?(c.debug(`CORS: allow_methods present. Allowing ${t}...`),i.route.responseHeaders["Access-Control-Allow-Methods"]=[...t].join(",")):(c.debug("CORS: No allow_methods present. Allowing only GET, OPTIONS and POST"),i.route.responseHeaders["Access-Control-Allow-Methods"]="GET, OPTIONS, POST"),typeof o<"u"?(c.debug(`CORS: allow_headers present. Allowing ${o}...`),i.route.responseHeaders["Access-Control-Allow-Headers"]=[...o].join(",")):(c.debug("CORS: No allow_headers present. Allowing all headers..."),i.route.responseHeaders["Access-Control-Allow-Headers"]="*")}else c.debug("No CORS validation available. You can specify cors in CONFIG.backend.routes[].cors")}head(r){c.debug(`[BackendMicroservice.head] Data received: ${A(r)}`),this.done()}get(r){c.debug(`[BackendMicroservice.get] Data received: ${A(r)}`),this.done()}post(r){c.debug(`[BackendMicroservice.post] Data received: ${A(r)}`),this.done()}put(r){c.debug(`[BackendMicroservice.put] Data received: ${A(r)}`),this.done()}delete(r){c.debug(`[BackendMicroservice.delete] Data received: ${A(r)}`),this.done()}connect(r){c.debug(`[BackendMicroservice.connect] Data received: ${A(r)}`),this.done()}options(r){c.debug(`[BackendMicroservice.options] Data received: ${A(r)}`),this.done()}trace(r){c.debug(`[BackendMicroservice.trace] Data received: ${A(r)}`),this.done()}patch(r){c.debug(`[BackendMicroservice.patch] Data received: ${A(r)}`),this.done()}finishWithBody(r){try{c.debug("[BackendMicroservice.finishWithBody] Ending the stream..."),c.debug(`[BackendMicroservice.finishWithBody] type of body is: ${typeof this.body}`),typeof this.body!="string"&&(this.body=A(this.body)),c.debug(`[BackendMicroservice.finishWithBody]
|
|
21
|
-
body: ${this.body} `),r?.write(this.body),r?.end(),c.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(e){c.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${e}`)}}done(){c.debug("[BackendMicroservice.done] Finalizing the response...");let r=this,e=r.stream;try{if(c.debug("[BackendMicroservice.done] Sending response headers..."),r.route.responseHeaders)c.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(r.route.responseHeaders).join(",")}`),e.respond(r.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(t){c.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${t}`)}if(r.body!==null)try{c.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),r.finishWithBody.call(r,e)}catch(t){c.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${t}`)}else c.debug("[BackendMicroservice.done] No body present. Ending stream..."),e.end()}},f(ye,"BackendMicroservice"),l(ye,"BackendMicroservice"),ye);P("com.qcobjects.api",[io]);ln();kt();S();Ke();xt();oe();var vn=l(function(n,r){return ot(n,r)},"RegisterClass");gt(vn);var ce,ao=(ce=class{constructor({component:r,template:e}){this.template="",this.__definition={},this.component=r,this.template=e}assign(r){let 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");let t=e.component.processorHandler;t.component=e.component;let o=typeof e.template<"u"?e.template:"";typeof r=="object"?[...Object.keys(r)].map(i=>{let s=r[i];if(typeof s=="string"||typeof s=="number"||!isNaN(s))try{s=ee.processObject.bind(t).call(t,s,e.component),o=o.replace(new RegExp(`{{${i}}}`,"g"),s)}catch(a){throw c.warn(`${e.component?.name} could not parse processors.`),Error(`${e.component?.name} could not parse processors. Reason: ${a.message}`)}return i}):c.debug(`${e.component?.name}.data is not an object`);try{o=ee.processObject.call(t,o,e.component)}catch(i){throw c.warn(`${e.component?.name} could not parse processors.`),Error(`${e.component?.name} could not parse processors. Reason: ${i.message}`)}return o}},f(ce,"DefaultTemplateHandler"),l(ce,"DefaultTemplateHandler"),ce.__definition={},ce);vn(ao,"com.qcobjects");fe();re();wt();X();$();j();S();var be,co=(be=class extends L{constructor(r){super(r),this.domain=Je,this.basePath=V,this.type="text/javascript",this.containerTag="body",this.url="",this.data={},this.async=!1,this.external=!1,this.status=!1,this.body=G("script")}set(r,e){this[r]=e}get(r,e){return this[r]||e}done(){}fail(){}rebuild(){let r=this;try{document.getElementsByTagName(r.containerTag)[0].appendChild((function(e,t,o){return e.type=o.type,e.src=t,e.crossOrigin=Object.hasOwn(o,"crossOrigin")?o.crossOrigin:"anonymous",e.async=o.async,e.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},e.onload=function(i){o.status=!0,o.done.call(o,i)},e.onerror=function(i){o.status=!1,o.fail.call(o,i)},o.body=e,e}).call(this,G("script"),this.external?this.url:this.basePath+this.url,r))}catch(e){r.status=!1,c.debug(`An error ocurred: ${e}`),r.fail()}}Cast(r){return ne(this,r)}_new_(r){this.__new__(r),this.rebuild()}},f(be,"SourceJS"),l(be,"SourceJS"),be);P("com.qcobjects",[co]);fe();re();wt();X();$();R();j();var we,lo=(we=class extends L{constructor(r){super(r),this.domain=Je,this.basePath=V,this.url="",this.data={},this.async=!1,this.external=!1,this.body=G("link")}fail(){throw new Error("Method not implemented.")}Cast(r){return ne(this,r)}set(r,e){this[r]=e}get(r,e){return this[r]||e}done(){}rebuild(){let r=this;g&&window.document.getElementsByTagName("head")[0].appendChild((function(e,t,o){return e.type="text/css",e.rel="stylesheet",e.href=t,e.crossOrigin="anonymous",e.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},e.onload=o.done,o.body=e,e}).call(this,G("link"),this.external?this.url:this.basePath+this.url,r))}},f(we,"SourceCSS"),l(we,"SourceCSS"),we);P("com.qcobjects",[lo]);un();X();Re();ue();R();var Ce,qo=(Ce=class{attachInternals(){throw new Error("Method not implemented.")}click(){throw new Error("Method not implemented.")}hidePopover(){throw new Error("Method not implemented.")}showPopover(){throw new Error("Method not implemented.")}togglePopover(r){throw new Error("Method not implemented.")}addEventListener(r,e,t){throw new Error("Method not implemented.")}removeEventListener(r,e,t){throw new Error("Method not implemented.")}attachShadow(r){throw new Error("Method not implemented.")}checkVisibility(r){throw new Error("Method not implemented.")}closest(r){throw new Error("Method not implemented.")}computedStyleMap(){throw new Error("Method not implemented.")}getAttribute(r){throw new Error("Method not implemented.")}getAttributeNS(r,e){throw new Error("Method not implemented.")}getAttributeNames(){throw new Error("Method not implemented.")}getAttributeNode(r){throw new Error("Method not implemented.")}getAttributeNodeNS(r,e){throw new Error("Method not implemented.")}getBoundingClientRect(){throw new Error("Method not implemented.")}getClientRects(){throw new Error("Method not implemented.")}getElementsByClassName(r){throw new Error("Method not implemented.")}getElementsByTagName(r){throw new Error("Method not implemented.")}getElementsByTagNameNS(r,e){throw new Error("Method not implemented.")}getHTML(r){throw new Error("Method not implemented.")}hasAttribute(r){throw new Error("Method not implemented.")}hasAttributeNS(r,e){throw new Error("Method not implemented.")}hasAttributes(){throw new Error("Method not implemented.")}hasPointerCapture(r){throw new Error("Method not implemented.")}insertAdjacentElement(r,e){throw new Error("Method not implemented.")}insertAdjacentHTML(r,e){throw new Error("Method not implemented.")}insertAdjacentText(r,e){throw new Error("Method not implemented.")}matches(r){throw new Error("Method not implemented.")}releasePointerCapture(r){throw new Error("Method not implemented.")}removeAttribute(r){throw new Error("Method not implemented.")}removeAttributeNS(r,e){throw new Error("Method not implemented.")}removeAttributeNode(r){throw new Error("Method not implemented.")}requestFullscreen(r){throw new Error("Method not implemented.")}requestPointerLock(r){throw new Error("Method not implemented.")}scroll(r,e){throw new Error("Method not implemented.")}scrollBy(r,e){throw new Error("Method not implemented.")}scrollIntoView(r){throw new Error("Method not implemented.")}scrollTo(r,e){throw new Error("Method not implemented.")}setAttribute(r,e){throw new Error("Method not implemented.")}setAttributeNS(r,e,t){throw new Error("Method not implemented.")}setAttributeNode(r){throw new Error("Method not implemented.")}setAttributeNodeNS(r){throw new Error("Method not implemented.")}setHTMLUnsafe(r){throw new Error("Method not implemented.")}setPointerCapture(r){throw new Error("Method not implemented.")}toggleAttribute(r,e){throw new Error("Method not implemented.")}webkitMatchesSelector(r){throw new Error("Method not implemented.")}appendChild(r){throw new Error("Method not implemented.")}cloneNode(r){throw new Error("Method not implemented.")}compareDocumentPosition(r){throw new Error("Method not implemented.")}contains(r){throw new Error("Method not implemented.")}getRootNode(r){throw new Error("Method not implemented.")}hasChildNodes(){throw new Error("Method not implemented.")}insertBefore(r,e){throw new Error("Method not implemented.")}isDefaultNamespace(r){throw new Error("Method not implemented.")}isEqualNode(r){throw new Error("Method not implemented.")}isSameNode(r){throw new Error("Method not implemented.")}lookupNamespaceURI(r){throw new Error("Method not implemented.")}lookupPrefix(r){throw new Error("Method not implemented.")}normalize(){throw new Error("Method not implemented.")}removeChild(r){throw new Error("Method not implemented.")}replaceChild(r,e){throw new Error("Method not implemented.")}dispatchEvent(r){throw new Error("Method not implemented.")}animate(r,e){throw new Error("Method not implemented.")}getAnimations(r){throw new Error("Method not implemented.")}after(...r){throw new Error("Method not implemented.")}before(...r){throw new Error("Method not implemented.")}remove(){throw new Error("Method not implemented.")}replaceWith(...r){throw new Error("Method not implemented.")}append(...r){throw new Error("Method not implemented.")}prepend(...r){throw new Error("Method not implemented.")}querySelector(r){throw new Error("Method not implemented.")}querySelectorAll(r){throw new Error("Method not implemented.")}replaceChildren(...r){throw new Error("Method not implemented.")}blur(){throw new Error("Method not implemented.")}focus(r){throw new Error("Method not implemented.")}},f(Ce,"QCObjectsWidgetNode"),l(Ce,"QCObjectsWidgetNode"),Ce),ft,Ee,Oe;g?ft=(Ee=class extends HTMLElement{constructor(){super();let r=this,e=r.nodeName.toLowerCase(),t=G("quick-component"),o=r.getAttributeNames();t.setAttribute("name",e),r.hasAttribute("shadowed")||t.setAttribute("shadowed","true"),o.forEach(s=>{r.hasAttribute(s)&&(t.setAttribute(s,r?.getAttribute(s)),r.removeAttribute(s))}),r.getAttributeNames().filter(function(s){return s.startsWith("data-")}).map(function(s){return s.split("-")[1]}).forEach(function(s){t.setAttribute("data-"+s,r?.getAttribute("data-"+s)),r.removeAttribute("data-"+s)}),[...r.children].forEach(s=>{t.appendChild(s.cloneNode(!0)),s.remove()}),r.parentElement?(r.parentElement?.append(t),r.remove()):r.append(t)}},f(Ee,"_ComponentWidget_"),l(Ee,"_ComponentWidget_"),Ee):ft=(Oe=class extends qo{constructor(){throw super(),new Error("Class not implemented.")}},f(Oe,"_ComponentWidget_"),l(Oe,"_ComponentWidget_"),Oe);E(ft);var Ut=l(n=>{if(g)customElements.define(n,class extends ft{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),An=l((...n)=>{[...n].filter(function(e){return typeof e=="string"}).map(function(e){return Ut(e)})},"RegisterWidgets");N(Ut);N(An);E(Ut);E(An);W();Y();z();$();S();pe();j();R();var ve,uo=(ve=class extends L{constructor({component:r,dependencies:e}){if(super({component:r,dependencies:e}),this.dependencies=[],this.component=r,this.dependencies=e,typeof this.component>"u"||this.component===null)throw Error(`${H(this)} must be called with a component`)}fail(...r){throw new Error("Method not implemented.")}routingSelectedAttr(r){return this.component?.routingSelected.map(e=>e[r]).filter(function(e){return e}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(r,e){if(g)try{this.isTouchable()?(this.component?.componentRoot?.subelements(r))[0].addEventListener("touchstart",e,{passive:!0}):(this.component?.componentRoot?.subelements(r))[0].addEventListener("click",e,{passive:!0})}catch(t){c.debug(`An error ocurred: ${t}.`),c.debug("No button to assign press event")}}createRoutingController(){let r=this,e=r.component,t=r.routingSelectedAttr("controllerclass");if(typeof t<"u"){let o=M(t);typeof o<"u"&&e!==null&&(e.routingController=q(o,{component:e}),typeof e.routingController<"u"&&Object.hasOwn(e.routingController,"done")&&typeof e.routingController.done=="function"&&e.routingController.done.call(e.routingController))}}done(){}},f(ve,"Controller"),l(ve,"Controller"),ve);P("com.qcobjects.controllers",[uo]);z();$();j();var Ae,fo=(Ae=class extends L{constructor({component:r=void 0,dependencies:e=[]}){if(super({component:r,dependencies:e}),typeof this.component>"u"||this.component==="null")throw Error(`${H(this)} must be called with a component`)}},f(Ae,"View"),l(Ae,"View"),Ae);P("com.qcobjects.views",[fo]);Wn();$();j();var Se,po=(Se=class extends L{},f(Se,"VO"),l(Se,"VO"),Se);P("com.qcobjects.valueObjects",[po]);$();j();ue();Y();var de,Sn=(de=class extends L{constructor(){super(...arguments),this.duration=1e3}done(...r){throw new Error("Method not implemented.")}apply(...r){throw new Error("Method not implemented.")}static animate(r){de.prototype.animate.call({},r)}animate({timing:r,draw:e,duration:t}){let o=this,i=performance.now();requestAnimationFrame(l(f(function s(a){let u=(a-i)/t;u>1&&(u=1);let d=r(u);e(Math.round(d*100)),u<1?requestAnimationFrame(s):typeof o<"u"&&o!==null&&Object.hasOwn(o,"done")&&(typeof o.done).toLowerCase()==="function"&&o.done.call(o)},"animate"),"animate"))}},f(de,"_Effect"),l(de,"Effect"),de);P("com.qcobjects.effects.base",[Sn]);K(M("Effect")).map(n=>(N(n),n));S();j();Y();var Ne,ho=(Ne=class extends Sn{constructor(){super(...arguments),this.duration=385,this.defaultParams={alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1},this.fitToHeight=!1,this.fitToWidth=!1}apply({alphaFrom:r,alphaTo:e,angleFrom:t,angleTo:o,radiusFrom:i,radiusTo:s,scaleFrom:a,scaleTo:u}){let d=this;c.info("EXECUTING TransitionEffect ");let p=d.component.componentRoot,h=typeof p<"u"&&p!==null&&typeof p.getBoundingClientRect!="function"?p.host??p:p;typeof p<"u"&&p!==null&&(d.fitToHeight&&(h.height=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollHeight:h.getBoundingClientRect().height),d.fitToWidth&&(h.width=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollWidth:h.getBoundingClientRect().width),d.component.shadowed?p.host.style.display="block":p.style.display="block",d.effects.map(m=>{let w=M(m);if(typeof w>"u")return c.debug(`Transition effect ${m} was not found`),m;let C=w.apply,_,O=d;if(typeof C=="function")_=C;else try{let U=new w({});typeof U.apply=="function"&&(_=U.apply.bind(U),O=U)}catch(U){c.debug(`Transition effect ${m} could not be instantiated: ${U}`)}if(typeof _!="function")return c.debug(`Transition effect ${m} does not declare an apply() method`),m;let v=d.component.shadowed?p.host:p,x={alphaFrom:r,alphaTo:e,angleFrom:t,angleTo:o,radiusFrom:i,radiusTo:s,scaleFrom:a,scaleTo:u};return _.call(O,v,...Object.values(x)),m}))}},f(Ne,"TransitionEffect"),l(Ne,"TransitionEffect"),Ne);P("com.qcobjects.effects.transitions.base",[ho]);$();j();var Te,mo=(Te=class extends L{constructor(){super(...arguments),this.duration=1e3,this.alive=!0}thread({timing:r,intervalInterceptor:e,duration:t}){let o=this,i=performance.now();requestAnimationFrame(l(f(function s(a){let u=a-i,d=u/t;d>1&&(d=1);let p=r(d,u);e(Math.round(p*100)),(d<1||t===-1)&&o.alive&&requestAnimationFrame(s)},"thread"),"thread"))}},f(Te,"Timer"),l(Te,"Timer"),Te);P("com.qcobjects.timing",[mo]);cn();mn();Yn();Re();$();S();mt();var Pe,go=(Pe=class extends L{constructor({instance:r,name:e,fget:t,fset:o,value:i}){super({instance:r,name:e,fget:t,fset:o,value:i}),this._new_({instance:r,name:e,fget:t,fset:o,value:i})}_new_({instance:r,name:s,fget:t,fset:o}){var s=typeof s>"u"?Qe(this):s;Object.defineProperty(r,s,{set(a){let u=a;c.debug("value changed "+s);let d;typeof o<"u"&&typeof o=="function"?d=o(u):d=u,r["_"+s]=d},get(){let a=r["_"+s];c.debug("returning value "+s);let u=l(p=>typeof p=="object"&&Object.hasOwn(p,"value")?p.value:p,"is_ddo"),d;return typeof t<"u"&&typeof t=="function"?d=t(u(a)):d=u(a),d}})}},f(Pe,"DDO"),l(Pe,"DDO"),Pe);E(go);$();S();j();var Ie,_o=(Ie=class extends L{constructor(r,e,t){super({positive:r,negative:e,args:t}),this._toggle=!1,this._inverse=!0,this._positive=null,this._negative=null,this._dispatched=null,this._args={},this._new_({positive:r,negative:e,args:t})}changeToggle(){this._toggle=!this._toggle}_new_({positive:r,negative:e,args:t}){this._positive=r,this._negative=e,this._args=t}fire(){let r=this;var e=new Promise(function(t,o){return typeof r._positive=="function"&&typeof r._negative=="function"?(r._inverse?r._dispatched=r._toggle?r._negative.bind(r):r._positive.bind(r):r._dispatched=r._toggle?r._positive.bind(r):r._negative.bind(r),r._dispatched?.call(r,r._args),t.call(e,r)):(c.debug("Toggle functions are not declared"),o.call(e,r)),r}).then(function(t){return t.changeToggle(),t}).catch(function(t){return c.debug(t.toString()),r}).finally(()=>r);return e}},f(Ie,"Toggle"),l(Ie,"Toggle"),Ie);P("com.qcobjects.tools.essentials",[_o]);_n();var Ho=l(function(){let n=l((t,o)=>t>o?"landscape":null,"h"),r=l((t,o)=>o>t?"portrait":null,"v"),e=l((t,o)=>t===o?"square":null,"square");return[n(document.documentElement.clientWidth,document.documentElement.clientHeight),r(document.documentElement.clientWidth,document.documentElement.clientHeight),e(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(t=>t!==null).pop()},"getDocumentLayout");bn();F();xt();F()});var Fo=Nn(bo=>{Object.defineProperty(bo,"__esModule",{value:!0});var Ve=yo(),ze,Xe,Ye,Ze;(0,Ve.Package)("com.qcobjects.services.github",[(ze=class extends Ve.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json",charset:"utf-8"},this.url="https://api.github.com/orgs/QuickCorp/repos",this.withCredentials=!1}done({request:r,service:e}){let t=JSON.parse(e.template).reverse().map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,repo_stargazers_count:o.stargazers_count,repo_watchers_count:o.watchers_count}});return e.template=JSON.stringify({result:t}),super.done({request:r,service:e})}},f(ze,"GitHubService"),ze),(Xe=class extends Ve.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json",charset:"utf-8"},this.url="https://api.github.com/search/repositories?q=qcobjects",this.withCredentials=!1}done({request:r,service:e}){Ve.logger.debug(String(r));let t=JSON.parse(e.template).items.map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,repo_stargazers_count:o.stargazers_count,repo_watchers_count:o.watchers_count}});return e.template=JSON.stringify({result:t}),super.done({request:r,service:e})}},f(Xe,"GitHubTagService"),Xe),(Ye=class extends Ve.Service{constructor(){super(...arguments),this.name="qcobjects_version_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json",charset:"utf-8"},this.url="https://api.github.com/repos/QuickCorp/QCObjects/tags",this.withCredentials=!1}done({service:r}){let e=JSON.parse(r.template)[0];r.template={version:e.name}}},f(Ye,"QCObjectsVersionService"),Ye),(Ze=class extends Ve.Service{constructor(){super(...arguments),this.name="qcobjects_stars_forks_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json",charset:"utf-8"},this.url="https://api.github.com/repos/QuickCorp/QCObjects",this.withCredentials=!1}done({service:r}){let e=JSON.parse(r.template);r.template={forks:e.forks_count,stars:e.stargazers_count,watchers:e.watchers_count,size:Math.round(e.size/1e3)}}},f(Ze,"QCObjectsStarsForksService"),Ze)])});return Fo();})();
|
|
21
|
+
body: ${this.body} `),r?.write(this.body),r?.end(),c.debug("[BackendMicroservice.finishWithBody] Stream ended.")}catch(e){c.debug(`[BackendMicroservice.finishWithBody] Something went wrong ending the stream: ${e}`)}}done(){c.debug("[BackendMicroservice.done] Finalizing the response...");let r=this,e=r.stream;try{if(c.debug("[BackendMicroservice.done] Sending response headers..."),r.route.responseHeaders)c.debug(`[BackendMicroservice.done] Response headers present: ${Object.keys(r.route.responseHeaders).join(",")}`),e.respond(r.route.responseHeaders);else throw Error("[BackendMicroservice.done] No headers present.")}catch(t){c.debug(`[BackendMicroservice.done] Something went wrong sending response headers: ${t}`)}if(r.body!==null)try{c.debug("[BackendMicroservice.done] A body of message is present. Finalizing the response..."),r.finishWithBody.call(r,e)}catch(t){c.debug(`[BackendMicroservice.done] Something went wrong finalizing the response: ${t}`)}else c.debug("[BackendMicroservice.done] No body present. Ending stream..."),e.end()}},f(ye,"BackendMicroservice"),l(ye,"BackendMicroservice"),ye);P("com.qcobjects.api",[io]);ln();kt();S();Ke();xt();oe();var vn=l(function(n,r){return ot(n,r)},"RegisterClass");gt(vn);var ce,ao=(ce=class{constructor({component:r,template:e}){this.template="",this.__definition={},this.component=r,this.template=e}assign(r){let 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");let t=e.component.processorHandler;t.component=e.component;let o=typeof e.template<"u"?e.template:"";typeof r=="object"?[...Object.keys(r)].map(i=>{let s=r[i];if(typeof s=="string"||typeof s=="number"||!isNaN(s))try{s=ee.processObject.bind(t).call(t,s,e.component),o=o.replace(new RegExp(`{{${i}}}`,"g"),s)}catch(a){throw c.warn(`${e.component?.name} could not parse processors.`),Error(`${e.component?.name} could not parse processors. Reason: ${a.message}`)}return i}):c.debug(`${e.component?.name}.data is not an object`);try{o=ee.processObject.call(t,o,e.component)}catch(i){throw c.warn(`${e.component?.name} could not parse processors.`),Error(`${e.component?.name} could not parse processors. Reason: ${i.message}`)}return o}},f(ce,"DefaultTemplateHandler"),l(ce,"DefaultTemplateHandler"),ce.__definition={},ce);vn(ao,"com.qcobjects");fe();re();wt();X();$();j();S();var be,co=(be=class extends L{constructor(r){super(r),this.domain=Je,this.basePath=V,this.type="text/javascript",this.containerTag="body",this.url="",this.data={},this.async=!1,this.external=!1,this.status=!1,this.body=G("script")}set(r,e){this[r]=e}get(r,e){return this[r]||e}done(){}fail(){}rebuild(){let r=this;try{document.getElementsByTagName(r.containerTag)[0].appendChild((function(e,t,o){return e.type=o.type,e.src=t,e.crossOrigin=Object.hasOwn(o,"crossOrigin")?o.crossOrigin:"anonymous",e.async=o.async,e.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},e.onload=function(i){o.status=!0,o.done.call(o,i)},e.onerror=function(i){o.status=!1,o.fail.call(o,i)},o.body=e,e}).call(this,G("script"),this.external?this.url:this.basePath+this.url,r))}catch(e){r.status=!1,c.debug(`An error ocurred: ${e}`),r.fail()}}Cast(r){return ne(this,r)}_new_(r){this.__new__(r),this.rebuild()}},f(be,"SourceJS"),l(be,"SourceJS"),be);P("com.qcobjects",[co]);fe();re();wt();X();$();R();j();var we,lo=(we=class extends L{constructor(r){super(r),this.domain=Je,this.basePath=V,this.url="",this.data={},this.async=!1,this.external=!1,this.body=G("link")}fail(){throw new Error("Method not implemented.")}Cast(r){return ne(this,r)}set(r,e){this[r]=e}get(r,e){return this[r]||e}done(){}rebuild(){let r=this;g&&window.document.getElementsByTagName("head")[0].appendChild((function(e,t,o){return e.type="text/css",e.rel="stylesheet",e.href=t,e.crossOrigin="anonymous",e.onreadystatechange=function(){this.readyState==="complete"&&o.done.call(o)},e.onload=o.done,o.body=e,e}).call(this,G("link"),this.external?this.url:this.basePath+this.url,r))}},f(we,"SourceCSS"),l(we,"SourceCSS"),we);P("com.qcobjects",[lo]);un();X();Re();ue();R();var Ce,qo=(Ce=class{attachInternals(){throw new Error("Method not implemented.")}click(){throw new Error("Method not implemented.")}hidePopover(){throw new Error("Method not implemented.")}showPopover(){throw new Error("Method not implemented.")}togglePopover(r){throw new Error("Method not implemented.")}addEventListener(r,e,t){throw new Error("Method not implemented.")}removeEventListener(r,e,t){throw new Error("Method not implemented.")}attachShadow(r){throw new Error("Method not implemented.")}checkVisibility(r){throw new Error("Method not implemented.")}closest(r){throw new Error("Method not implemented.")}computedStyleMap(){throw new Error("Method not implemented.")}getAttribute(r){throw new Error("Method not implemented.")}getAttributeNS(r,e){throw new Error("Method not implemented.")}getAttributeNames(){throw new Error("Method not implemented.")}getAttributeNode(r){throw new Error("Method not implemented.")}getAttributeNodeNS(r,e){throw new Error("Method not implemented.")}getBoundingClientRect(){throw new Error("Method not implemented.")}getClientRects(){throw new Error("Method not implemented.")}getElementsByClassName(r){throw new Error("Method not implemented.")}getElementsByTagName(r){throw new Error("Method not implemented.")}getElementsByTagNameNS(r,e){throw new Error("Method not implemented.")}getHTML(r){throw new Error("Method not implemented.")}hasAttribute(r){throw new Error("Method not implemented.")}hasAttributeNS(r,e){throw new Error("Method not implemented.")}hasAttributes(){throw new Error("Method not implemented.")}hasPointerCapture(r){throw new Error("Method not implemented.")}insertAdjacentElement(r,e){throw new Error("Method not implemented.")}insertAdjacentHTML(r,e){throw new Error("Method not implemented.")}insertAdjacentText(r,e){throw new Error("Method not implemented.")}matches(r){throw new Error("Method not implemented.")}releasePointerCapture(r){throw new Error("Method not implemented.")}removeAttribute(r){throw new Error("Method not implemented.")}removeAttributeNS(r,e){throw new Error("Method not implemented.")}removeAttributeNode(r){throw new Error("Method not implemented.")}requestFullscreen(r){throw new Error("Method not implemented.")}requestPointerLock(r){throw new Error("Method not implemented.")}scroll(r,e){throw new Error("Method not implemented.")}scrollBy(r,e){throw new Error("Method not implemented.")}scrollIntoView(r){throw new Error("Method not implemented.")}scrollTo(r,e){throw new Error("Method not implemented.")}setAttribute(r,e){throw new Error("Method not implemented.")}setAttributeNS(r,e,t){throw new Error("Method not implemented.")}setAttributeNode(r){throw new Error("Method not implemented.")}setAttributeNodeNS(r){throw new Error("Method not implemented.")}setHTMLUnsafe(r){throw new Error("Method not implemented.")}setPointerCapture(r){throw new Error("Method not implemented.")}toggleAttribute(r,e){throw new Error("Method not implemented.")}webkitMatchesSelector(r){throw new Error("Method not implemented.")}appendChild(r){throw new Error("Method not implemented.")}cloneNode(r){throw new Error("Method not implemented.")}compareDocumentPosition(r){throw new Error("Method not implemented.")}contains(r){throw new Error("Method not implemented.")}getRootNode(r){throw new Error("Method not implemented.")}hasChildNodes(){throw new Error("Method not implemented.")}insertBefore(r,e){throw new Error("Method not implemented.")}isDefaultNamespace(r){throw new Error("Method not implemented.")}isEqualNode(r){throw new Error("Method not implemented.")}isSameNode(r){throw new Error("Method not implemented.")}lookupNamespaceURI(r){throw new Error("Method not implemented.")}lookupPrefix(r){throw new Error("Method not implemented.")}normalize(){throw new Error("Method not implemented.")}removeChild(r){throw new Error("Method not implemented.")}replaceChild(r,e){throw new Error("Method not implemented.")}dispatchEvent(r){throw new Error("Method not implemented.")}animate(r,e){throw new Error("Method not implemented.")}getAnimations(r){throw new Error("Method not implemented.")}after(...r){throw new Error("Method not implemented.")}before(...r){throw new Error("Method not implemented.")}remove(){throw new Error("Method not implemented.")}replaceWith(...r){throw new Error("Method not implemented.")}append(...r){throw new Error("Method not implemented.")}prepend(...r){throw new Error("Method not implemented.")}querySelector(r){throw new Error("Method not implemented.")}querySelectorAll(r){throw new Error("Method not implemented.")}replaceChildren(...r){throw new Error("Method not implemented.")}blur(){throw new Error("Method not implemented.")}focus(r){throw new Error("Method not implemented.")}},f(Ce,"QCObjectsWidgetNode"),l(Ce,"QCObjectsWidgetNode"),Ce),ft,Ee,Oe;g?ft=(Ee=class extends HTMLElement{constructor(){super();let r=this,e=r.nodeName.toLowerCase(),t=G("quick-component"),o=r.getAttributeNames();t.setAttribute("name",e),r.hasAttribute("shadowed")||t.setAttribute("shadowed","true"),o.forEach(s=>{r.hasAttribute(s)&&(t.setAttribute(s,r?.getAttribute(s)),r.removeAttribute(s))}),r.getAttributeNames().filter(function(s){return s.startsWith("data-")}).map(function(s){return s.split("-")[1]}).forEach(function(s){t.setAttribute("data-"+s,r?.getAttribute("data-"+s)),r.removeAttribute("data-"+s)}),[...r.children].forEach(s=>{t.appendChild(s.cloneNode(!0)),s.remove()}),r.parentElement?(r.parentElement?.append(t),r.remove()):r.append(t)}},f(Ee,"_ComponentWidget_"),l(Ee,"_ComponentWidget_"),Ee):ft=(Oe=class extends qo{constructor(){throw super(),new Error("Class not implemented.")}},f(Oe,"_ComponentWidget_"),l(Oe,"_ComponentWidget_"),Oe);E(ft);var Ut=l(n=>{if(g)customElements.define(n,class extends ft{});else throw new Error("RegisterWidget is not implemented for non browser ecosystems yet.")},"RegisterWidget"),An=l((...n)=>{[...n].filter(function(e){return typeof e=="string"}).map(function(e){return Ut(e)})},"RegisterWidgets");N(Ut);N(An);E(Ut);E(An);W();Y();z();$();S();pe();j();R();var ve,uo=(ve=class extends L{constructor({component:r,dependencies:e}){if(super({component:r,dependencies:e}),this.dependencies=[],this.component=r,this.dependencies=e,typeof this.component>"u"||this.component===null)throw Error(`${H(this)} must be called with a component`)}fail(...r){throw new Error("Method not implemented.")}routingSelectedAttr(r){return this.component?.routingSelected.map(e=>e[r]).filter(function(e){return e}).pop()}isTouchable(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}onpress(r,e){if(g)try{this.isTouchable()?(this.component?.componentRoot?.subelements(r))[0].addEventListener("touchstart",e,{passive:!0}):(this.component?.componentRoot?.subelements(r))[0].addEventListener("click",e,{passive:!0})}catch(t){c.debug(`An error ocurred: ${t}.`),c.debug("No button to assign press event")}}createRoutingController(){let r=this,e=r.component,t=r.routingSelectedAttr("controllerclass");if(typeof t<"u"){let o=M(t);typeof o<"u"&&e!==null&&(e.routingController=q(o,{component:e}),typeof e.routingController<"u"&&Object.hasOwn(e.routingController,"done")&&typeof e.routingController.done=="function"&&e.routingController.done.call(e.routingController))}}done(){}},f(ve,"Controller"),l(ve,"Controller"),ve);P("com.qcobjects.controllers",[uo]);z();$();j();var Ae,fo=(Ae=class extends L{constructor({component:r=void 0,dependencies:e=[]}){if(super({component:r,dependencies:e}),typeof this.component>"u"||this.component==="null")throw Error(`${H(this)} must be called with a component`)}},f(Ae,"View"),l(Ae,"View"),Ae);P("com.qcobjects.views",[fo]);Wn();$();j();var Se,po=(Se=class extends L{},f(Se,"VO"),l(Se,"VO"),Se);P("com.qcobjects.valueObjects",[po]);$();j();ue();Y();var de,Sn=(de=class extends L{constructor(){super(...arguments),this.duration=1e3}done(...r){throw new Error("Method not implemented.")}apply(...r){throw new Error("Method not implemented.")}static animate(r){de.prototype.animate.call({},r)}animate({timing:r,draw:e,duration:t}){let o=this,i=performance.now();requestAnimationFrame(l(f(function s(a){let u=(a-i)/t;u>1&&(u=1);let d=r(u);e(Math.round(d*100)),u<1?requestAnimationFrame(s):typeof o<"u"&&o!==null&&Object.hasOwn(o,"done")&&(typeof o.done).toLowerCase()==="function"&&o.done.call(o)},"animate"),"animate"))}},f(de,"_Effect"),l(de,"Effect"),de);P("com.qcobjects.effects.base",[Sn]);K(M("Effect")).map(n=>(N(n),n));S();j();Y();var Ne,ho=(Ne=class extends Sn{constructor(){super(...arguments),this.duration=385,this.defaultParams={alphaFrom:0,alphaTo:1,angleFrom:180,angleTo:0,radiusFrom:0,radiusTo:30,scaleFrom:0,scaleTo:1},this.fitToHeight=!1,this.fitToWidth=!1}apply({alphaFrom:r,alphaTo:e,angleFrom:t,angleTo:o,radiusFrom:i,radiusTo:s,scaleFrom:a,scaleTo:u}){let d=this;c.info("EXECUTING TransitionEffect ");let p=d.component.componentRoot,h=typeof p<"u"&&p!==null&&typeof p.getBoundingClientRect!="function"?p.host??p:p;typeof p<"u"&&p!==null&&(d.fitToHeight&&(h.height=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollHeight:h.getBoundingClientRect().height),d.fitToWidth&&(h.width=typeof h.offsetParent=="object"&&h.offsetParent!==null?h.offsetParent?.scrollWidth:h.getBoundingClientRect().width),d.component.shadowed?p.host.style.display="block":p.style.display="block",d.effects.map(m=>{let w=M(m);if(typeof w>"u")return c.debug(`Transition effect ${m} was not found`),m;let C=w.apply,_,O=d;if(typeof C=="function")_=C;else try{let U=new w({});typeof U.apply=="function"&&(_=U.apply.bind(U),O=U)}catch(U){c.debug(`Transition effect ${m} could not be instantiated: ${U}`)}if(typeof _!="function")return c.debug(`Transition effect ${m} does not declare an apply() method`),m;let v=d.component.shadowed?p.host:p,x={alphaFrom:r,alphaTo:e,angleFrom:t,angleTo:o,radiusFrom:i,radiusTo:s,scaleFrom:a,scaleTo:u};return _.call(O,v,...Object.values(x)),m}))}},f(Ne,"TransitionEffect"),l(Ne,"TransitionEffect"),Ne);P("com.qcobjects.effects.transitions.base",[ho]);$();j();var Te,mo=(Te=class extends L{constructor(){super(...arguments),this.duration=1e3,this.alive=!0}thread({timing:r,intervalInterceptor:e,duration:t}){let o=this,i=performance.now();requestAnimationFrame(l(f(function s(a){let u=a-i,d=u/t;d>1&&(d=1);let p=r(d,u);e(Math.round(p*100)),(d<1||t===-1)&&o.alive&&requestAnimationFrame(s)},"thread"),"thread"))}},f(Te,"Timer"),l(Te,"Timer"),Te);P("com.qcobjects.timing",[mo]);cn();mn();Yn();Re();$();S();mt();var Pe,go=(Pe=class extends L{constructor({instance:r,name:e,fget:t,fset:o,value:i}){super({instance:r,name:e,fget:t,fset:o,value:i}),this._new_({instance:r,name:e,fget:t,fset:o,value:i})}_new_({instance:r,name:s,fget:t,fset:o}){var s=typeof s>"u"?Qe(this):s;Object.defineProperty(r,s,{set(a){let u=a;c.debug("value changed "+s);let d;typeof o<"u"&&typeof o=="function"?d=o(u):d=u,r["_"+s]=d},get(){let a=r["_"+s];c.debug("returning value "+s);let u=l(p=>typeof p=="object"&&Object.hasOwn(p,"value")?p.value:p,"is_ddo"),d;return typeof t<"u"&&typeof t=="function"?d=t(u(a)):d=u(a),d}})}},f(Pe,"DDO"),l(Pe,"DDO"),Pe);E(go);$();S();j();var Ie,_o=(Ie=class extends L{constructor(r,e,t){super({positive:r,negative:e,args:t}),this._toggle=!1,this._inverse=!0,this._positive=null,this._negative=null,this._dispatched=null,this._args={},this._new_({positive:r,negative:e,args:t})}changeToggle(){this._toggle=!this._toggle}_new_({positive:r,negative:e,args:t}){this._positive=r,this._negative=e,this._args=t}fire(){let r=this;var e=new Promise(function(t,o){return typeof r._positive=="function"&&typeof r._negative=="function"?(r._inverse?r._dispatched=r._toggle?r._negative.bind(r):r._positive.bind(r):r._dispatched=r._toggle?r._positive.bind(r):r._negative.bind(r),r._dispatched?.call(r,r._args),t.call(e,r)):(c.debug("Toggle functions are not declared"),o.call(e,r)),r}).then(function(t){return t.changeToggle(),t}).catch(function(t){return c.debug(t.toString()),r}).finally(()=>r);return e}},f(Ie,"Toggle"),l(Ie,"Toggle"),Ie);P("com.qcobjects.tools.essentials",[_o]);_n();var Ho=l(function(){let n=l((t,o)=>t>o?"landscape":null,"h"),r=l((t,o)=>o>t?"portrait":null,"v"),e=l((t,o)=>t===o?"square":null,"square");return[n(document.documentElement.clientWidth,document.documentElement.clientHeight),r(document.documentElement.clientWidth,document.documentElement.clientHeight),e(document.documentElement.clientWidth,document.documentElement.clientHeight)].filter(t=>t!==null).pop()},"getDocumentLayout");bn();F();xt();F()});var Fo=Nn(bo=>{Object.defineProperty(bo,"__esModule",{value:!0});var Ve=yo(),ze,Xe,Ye,Ze;(0,Ve.Package)("com.qcobjects.services.github",[(ze=class extends Ve.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/orgs/QuickCorp/repos",this.withCredentials=!1}done({request:r,service:e}){let t=JSON.parse(e.template).reverse().map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,repo_stargazers_count:o.stargazers_count,repo_watchers_count:o.watchers_count}});return e.template=JSON.stringify({result:t}),super.done({request:r,service:e})}},f(ze,"GitHubService"),ze),(Xe=class extends Ve.JSONService{constructor(){super(...arguments),this.name="myservice",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/search/repositories?q=qcobjects",this.withCredentials=!1}done({request:r,service:e}){Ve.logger.debug(String(r));let t=JSON.parse(e.template).items.map(function(o){return{id:o.id,description:o.description,title:o.name,url:o.html_url,repo_stargazers_count:o.stargazers_count,repo_watchers_count:o.watchers_count}});return e.template=JSON.stringify({result:t}),super.done({request:r,service:e})}},f(Xe,"GitHubTagService"),Xe),(Ye=class extends Ve.Service{constructor(){super(...arguments),this.name="qcobjects_version_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/repos/QuickCorp/QCObjects/tags",this.withCredentials=!1}done({service:r}){let e=JSON.parse(r.template)[0];r.template={version:e.name}}},f(Ye,"QCObjectsVersionService"),Ye),(Ze=class extends Ve.Service{constructor(){super(...arguments),this.name="qcobjects_stars_forks_service",this.external=!0,this.cached=!1,this.method="GET",this.headers={"Content-Type":"application/json"},this.url="https://api.github.com/repos/QuickCorp/QCObjects",this.withCredentials=!1}done({service:r}){let e=JSON.parse(r.template);r.template={forks:e.forks_count,stars:e.stargazers_count,watchers:e.watchers_count,size:Math.round(e.size/1e3)}}},f(Ze,"QCObjectsStarsForksService"),Ze)])});return Fo();})();
|
|
22
22
|
//# sourceMappingURL=com.qcobjects.services.github.js.map
|