UNPKG

equinox-web-components

Version:

Equinox design for the web using StencilJS

1 lines 676 B
System.register([],(function(r){"use strict";return{execute:function(){var t=r("g",(function(r){if(r){return r.split(" ").length>=2?r.match(/\b(\w)/g).join(""):r.substr(0,2)}else{return""}}));var e=r("d",(function(r,t){if(t===void 0){t="unknown"}try{r=r.split("&quot;").join('"');return JSON.parse(r)}catch(e){console.log(r,e);alert("Error while trying to parse JSON in "+t+" component")}}));var n=r("f",(function(r,t,e,o){if(o===void 0){o=""}console.log(r,t,e);var i;if(!r||typeof r!=="object")return;if(r[t]===e)return o+"['"+t+"']";for(var u=0,c=Object.keys(r);u<c.length;u++){var f=c[u];if(f===t&&r[f]===e){i=o}else{i=n(r[f],t,e,o+"['"+f+"']")}if(i)break}return i}))}}}));