@gudhub/core 1.1.133 → 1.1.134

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.
@@ -330,6 +330,15 @@ export default async function createAngularModuleInstance(gudhub, module_id, mod
330
330
  resolve(null);
331
331
  })
332
332
  },
333
+
334
+ //*************** GET DICTIONARY ****************//
335
+
336
+ getDictionary: function () {
337
+ if (importedClass.getDictionary) {
338
+ return importedClass.getDictionary();
339
+ }
340
+ return [];
341
+ },
333
342
  }
334
343
 
335
344
  // We need these methods in browser environment only
@@ -222,6 +222,15 @@ export default async function createClassInstance(gudhub, module_id, js_url, css
222
222
  getWindowHTML(scope) {
223
223
  return importedClass.getWindowHTML(scope);
224
224
  },
225
+
226
+ //*************** GET DICTIONARY ****************//
227
+
228
+ getDictionary() {
229
+ if (importedClass.getDictionary) {
230
+ return importedClass.getDictionary();
231
+ }
232
+ return [];
233
+ },
225
234
  };
226
235
 
227
236
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gudhub/core",
3
- "version": "1.1.133",
3
+ "version": "1.1.134",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -128,7 +128,7 @@ var e=require("buffer").Buffer;Object.defineProperty(exports,"__esModule",{value
128
128
  var global = arguments[3];
129
129
  var t=arguments[3],e="function"==typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&r&&"function"==typeof r.get?r.get:null,o=e&&Map.prototype.forEach,i="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&u&&"function"==typeof u.get?u.get:null,c=i&&Set.prototype.forEach,a="function"==typeof WeakMap&&WeakMap.prototype,f=a?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype,y=p?WeakSet.prototype.has:null,g="function"==typeof WeakRef&&WeakRef.prototype,s=g?WeakRef.prototype.deref:null,b=Boolean.prototype.valueOf,S=Object.prototype.toString,h=Function.prototype.toString,m=String.prototype.match,d=String.prototype.slice,v=String.prototype.replace,j=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,_=Array.prototype.concat,x=Array.prototype.join,W=Array.prototype.slice,k=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"==typeof Symbol&&"object"==typeof Symbol.iterator,$="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,q=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function I(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||w.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-k(-t):k(t);if(n!==t){var o=String(n),i=d.call(e,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=require("./util.inspect"),P=N.custom,R=X(P)?P:null,D={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(t,e,r){var n=r.quoteStyle||e,o=D[n];return o+t+o}function z(t){return v.call(String(t),/"/g,"&quot;")}function F(t){return!$||!("object"==typeof t&&($ in t||void 0!==t[$]))}function H(t){return"[object Array]"===et(t)&&F(t)}function U(t){return"[object Date]"===et(t)&&F(t)}function G(t){return"[object RegExp]"===et(t)&&F(t)}function J(t){return"[object Error]"===et(t)&&F(t)}function K(t){return"[object String]"===et(t)&&F(t)}function Q(t){return"[object Number]"===et(t)&&F(t)}function V(t){return"[object Boolean]"===et(t)&&F(t)}function X(t){if(L)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!T)return!1;try{return T.call(t),!0}catch(e){}return!1}function Y(t){if(!t||"object"!=typeof t||!E)return!1;try{return E.call(t),!0}catch(e){}return!1}module.exports=function e(r,i,u,a){var f=i||{};if(tt(f,"quoteStyle")&&!tt(D,f.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(tt(f,"maxStringLength")&&("number"==typeof f.maxStringLength?f.maxStringLength<0&&f.maxStringLength!==1/0:null!==f.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=!tt(f,"customInspect")||f.customInspect;if("boolean"!=typeof p&&"symbol"!==p)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(tt(f,"indent")&&null!==f.indent&&"\t"!==f.indent&&!(parseInt(f.indent,10)===f.indent&&f.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(tt(f,"numericSeparator")&&"boolean"!=typeof f.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=f.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return ft(r,f);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var g=String(r);return y?I(r,g):g}if("bigint"==typeof r){var s=String(r)+"n";return y?I(r,s):s}var S=void 0===f.depth?5:f.depth;if(void 0===u&&(u=0),u>=S&&S>0&&"object"==typeof r)return H(r)?"[Array]":"[Object]";var h=St(f,u);if(void 0===a)a=[];else if(nt(a,r)>=0)return"[Circular]";function m(t,r,n){if(r&&(a=W.call(a)).push(r),n){var o={depth:f.depth};return tt(f,"quoteStyle")&&(o.quoteStyle=f.quoteStyle),e(t,o,u+1,a)}return e(t,f,u+1,a)}if("function"==typeof r&&!G(r)){var j=rt(r),w=mt(r,m);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(w.length>0?" { "+x.call(w,", ")+" }":"")}if(X(r)){var k=L?v.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(r);return"object"!=typeof r||L?k:yt(k)}if(at(r)){for(var M="<"+O.call(String(r.nodeName)),P=r.attributes||[],B=0;B<P.length;B++)M+=" "+P[B].name+"="+C(z(P[B].value),"double",f);return M+=">",r.childNodes&&r.childNodes.length&&(M+="..."),M+="</"+O.call(String(r.nodeName))+">"}if(H(r)){if(0===r.length)return"[]";var F=mt(r,m);return h&&!bt(F)?"["+ht(F,h)+"]":"[ "+x.call(F,", ")+" ]"}if(J(r)){var Z=mt(r,m);return"cause"in Error.prototype||!("cause"in r)||q.call(r,"cause")?0===Z.length?"["+String(r)+"]":"{ ["+String(r)+"] "+x.call(Z,", ")+" }":"{ ["+String(r)+"] "+x.call(_.call("[cause]: "+m(r.cause),Z),", ")+" }"}if("object"==typeof r&&p){if(R&&"function"==typeof r[R]&&N)return N(r,{depth:S-u});if("symbol"!==p&&"function"==typeof r.inspect)return r.inspect()}if(ot(r)){var pt=[];return o&&o.call(r,function(t,e){pt.push(m(e,r,!0)+" => "+m(t,r))}),st("Map",n.call(r),pt,h)}if(lt(r)){var dt=[];return c&&c.call(r,function(t){dt.push(m(t,r))}),st("Set",l.call(r),dt,h)}if(it(r))return gt("WeakMap");if(ct(r))return gt("WeakSet");if(ut(r))return gt("WeakRef");if(Q(r))return yt(m(Number(r)));if(Y(r))return yt(m(E.call(r)));if(V(r))return yt(b.call(r));if(K(r))return yt(m(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&r===globalThis||void 0!==t&&r===t)return"{ [object globalThis] }";if(!U(r)&&!G(r)){var vt=mt(r,m),jt=A?A(r)===Object.prototype:r instanceof Object||r.constructor===Object,Ot=r instanceof Object?"":"null prototype",wt=!jt&&$&&Object(r)===r&&$ in r?d.call(et(r),8,-1):Ot?"Object":"",_t=(jt||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(wt||Ot?"["+x.call(_.call([],wt||[],Ot||[]),": ")+"] ":"");return 0===vt.length?_t+"{}":h?_t+"{"+ht(vt,h)+"}":_t+"{ "+x.call(vt,", ")+" }"}return String(r)};var Z=Object.prototype.hasOwnProperty||function(t){return t in this};function tt(t,e){return Z.call(t,e)}function et(t){return S.call(t)}function rt(t){if(t.name)return t.name;var e=m.call(h.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function ot(t){if(!n||!t||"object"!=typeof t)return!1;try{n.call(t);try{l.call(t)}catch(e){return!0}return t instanceof Map}catch(r){}return!1}function it(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{y.call(t,y)}catch(e){return!0}return t instanceof WeakMap}catch(r){}return!1}function ut(t){if(!s||!t||"object"!=typeof t)return!1;try{return s.call(t),!0}catch(e){}return!1}function lt(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t);try{n.call(t)}catch(e){return!0}return t instanceof Set}catch(r){}return!1}function ct(t){if(!y||!t||"object"!=typeof t)return!1;try{y.call(t,y);try{f.call(t,f)}catch(e){return!0}return t instanceof WeakSet}catch(r){}return!1}function at(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}function ft(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ft(d.call(t,0,e.maxStringLength),e)+n}var o=B[e.quoteStyle||"single"];return o.lastIndex=0,C(v.call(v.call(t,o,"\\$1"),/[\x00-\x1f]/g,pt),"single",e)}function pt(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+j.call(e.toString(16))}function yt(t){return"Object("+t+")"}function gt(t){return t+" { ? }"}function st(t,e,r,n){return t+" ("+e+") {"+(n?ht(r,n):x.call(r,", "))+"}"}function bt(t){for(var e=0;e<t.length;e++)if(nt(t[e],"\n")>=0)return!1;return!0}function St(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=x.call(Array(t.indent+1)," ")}return{base:r,prev:x.call(Array(e+1),r)}}function ht(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+x.call(t,","+r)+"\n"+e.prev}function mt(t,e){var r=H(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=tt(t,o)?e(t[o],t):""}var i,u="function"==typeof M?M(t):[];if(L){i={};for(var l=0;l<u.length;l++)i["$"+u[l]]=u[l]}for(var c in t)tt(t,c)&&(r&&String(Number(c))===c&&c<t.length||L&&i["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?n.push(e(c,t)+": "+e(t[c],t)):n.push(c+": "+e(t[c],t))));if("function"==typeof M)for(var a=0;a<u.length;a++)q.call(t,u[a])&&n.push("["+e(u[a])+"]: "+e(t[u[a]],t));return n}
130
130
  },{"./util.inspect":"sC8V"}],"XSCy":[function(require,module,exports) {
131
- "use strict";var n=require("object-inspect"),e=require("es-errors/type"),t=function(n,e,t){for(var r,u=n;null!=(r=u.next);u=r)if(r.key===e)return u.next=r.next,t||(r.next=n.next,n.next=r),r},r=function(n,e){if(n){var r=t(n,e);return r&&r.value}},u=function(n,e,r){var u=t(n,e);u?u.value=r:n.next={key:e,next:n.next,value:r}},i=function(n,e){return!!n&&!!t(n,e)},o=function(n,e){if(n)return t(n,e,!0)};module.exports=function(){var t,c={assert:function(t){if(!c.has(t))throw new e("Side channel does not contain "+n(t))},delete:function(n){var e=t&&t.next,r=o(t,n);return r&&e&&e===r&&(t=void 0),!!r},get:function(n){return r(t,n)},has:function(n){return i(t,n)},set:function(n,e){t||(t={next:void 0}),u(t,n,e)}};return c};
131
+ "use strict";var n=require("object-inspect"),e=require("es-errors/type"),t=function(n,e,t){for(var r,u=n;null!=(r=u.next);u=r)if(r.key===e)return u.next=r.next,t||(r.next=n.next,n.next=r),r},r=function(n,e){if(n){var r=t(n,e);return r&&r.value}},u=function(n,e,r){var u=t(n,e);u?u.value=r:n.next={key:e,next:n.next,value:r}},i=function(n,e){return!!n&&!!t(n,e)},o=function(n,e){if(n)return t(n,e,!0)};module.exports=function(){var t,c={assert:function(t){if(!c.has(t))throw new e("Side channel does not contain "+n(t))},delete:function(n){var e=o(t,n);return e&&t&&!t.next&&(t=void 0),!!e},get:function(n){return r(t,n)},has:function(n){return i(t,n)},set:function(n,e){t||(t={next:void 0}),u(t,n,e)}};return c};
132
132
  },{"object-inspect":"nksM","es-errors/type":"aoYB"}],"s18g":[function(require,module,exports) {
133
133
  "use strict";module.exports=Object;
134
134
  },{}],"ZzPn":[function(require,module,exports) {
@@ -310,10 +310,10 @@ function o(e){return module.exports=o="function"==typeof Symbol&&"symbol"==typeo
310
310
  "use strict";function e(o){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(o)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.IS_WEB=void 0;var o=exports.IS_WEB=!["undefined"==typeof window?"undefined":e(window),"undefined"==typeof document?"undefined":e(document)].includes("undefined");
311
311
  },{}],"osSN":[function(require,module,exports) {
312
312
  var global = arguments[3];
313
- var global=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=createAngularModuleInstance;var _axios=_interopRequireDefault(require("axios")),_consts=require("./../consts.js");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof c?r:c,i=Object.create(l.prototype);return _regeneratorDefine2(i,"_invoke",function(n,r,o){var a,c,l,i=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,c=0,l=e,f.n=n,u}};function p(n,r){for(c=n,l=r,t=0;!d&&i&&!o&&t<s.length;t++){var o,a=s[t],p=f.p,_=a[2];n>3?(o=_===r)&&(l=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(c=0,f.v=r,f.n=a[1]):p<_&&(o=n<3||a[0]>r||r>_)&&(a[4]=n,a[5]=r,f.n=_,c=0))}if(o||n>1)return u;throw d=!0,r}return function(o,s,_){if(i>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,_),c=s,l=_;(t=c<2?e:l)||!d;){a||(c?c<3?(c>1&&(f.n=-1),p(c,l)):f.n=l:f.v=l);try{if(i=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==u)break}catch(t){a=e,c=1,l=t}finally{i=1}}return{value:t,done:d}}}(n,o,a),!0),i}var u={};function c(){}function l(){}function i(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,function(){return this}),t),d=i.prototype=c.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=i,_regeneratorDefine2(d,"constructor",i),_regeneratorDefine2(i,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(i,o,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,o,"Generator"),_regeneratorDefine2(d,r,function(){return this}),_regeneratorDefine2(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:f}})()}function _regeneratorDefine2(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(_regeneratorDefine2=function(e,t,n,r){function a(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))})(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,o,a,u){try{var c=e[a](u),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){asyncGeneratorStep(a,r,o,u,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,u,c,"throw",e)}u(void 0)})}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $q={when:function(e){return new Promise(function(t){t(e)})}},factoryReturns={},angular={module:function(){return angular},directive:function(){return angular},factory:function(e,t){try{"object"===_typeof(t)?factoryReturns[e]=t[t.length-1]($q):factoryReturns[e]=t($q)}catch(n){console.log("Errror in data type: ",e),console.log(n)}return angular},service:function(){return angular},run:function(){return angular},filter:function(){return angular},controller:function(){return angular},value:function(){return angular},element:function(){return angular},injector:function(){return angular},invoke:function(){return angular}};function createAngularModuleInstance(e,t,n,r,o){return _createAngularModuleInstance.apply(this,arguments)}function _createAngularModuleInstance(){return _createAngularModuleInstance=_asyncToGenerator(_regenerator().m(function _callee5(gudhub,module_id,module_url,angularInjector,nodeWindow){var angularModule,importedClass,module,_module,setGlobal,proxy,response,code,encodedCode,_module2,result,_t2,_t3,_t4;return _regenerator().w(function(_context5){for(;;)switch(_context5.p=_context5.n){case 0:if(_context5.p=0,!_consts.IS_WEB){_context5.n=7;break}if(!window.angular){_context5.n=4;break}if(angularInjector.has(module_id)){_context5.n=1;break}return _context5.n=1,angularInjector.get("$ocLazyLoad").load(module_url);case 1:return _context5.n=2,angularInjector.get(module_id);case 2:return angularModule=_context5.v,_context5.n=3,_axios.default.get(module_url);case 3:module=_context5.v,module=module.data;try{eval(module)}catch(error){console.error("ERROR WHILE EVAL() IN GHCONSTRUCTOR. MODULE ID: ".concat(module_id)),console.log(error)}importedClass=factoryReturns[module_id],_context5.n=6;break;case 4:return _context5.n=5,_axios.default.get(module_url);case 5:_module=_context5.v,_module=_module.data;try{eval(_module)}catch(err){console.log("Error while importing module: ".concat(module_id)),console.log(err)}importedClass=factoryReturns[module_id];case 6:_context5.n=15;break;case 7:if(setGlobal=function(e,t){var n=Object.getOwnPropertyDescriptor(global,e);if(n)if(n.writable||"function"==typeof n.set)try{global[e]=t}catch(r){}else;else try{Object.defineProperty(global,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}catch(r){}},proxy=new Proxy(nodeWindow,{get:function(e,t){var n=e[t];if("symbol"!==_typeof(n))return n},set:function(e,t,n){return"symbol"!==_typeof(n)&&(e[t]=n,setGlobal(t,n),!0)}}),!Object.prototype.hasOwnProperty.call(global,"window")&&(setGlobal("window",proxy),setGlobal("document",nodeWindow.document),setGlobal("Element",nodeWindow.Element),setGlobal("CharacterData",nodeWindow.CharacterData),setGlobal("this",proxy),setGlobal("self",proxy),setGlobal("Blob",nodeWindow.Blob),setGlobal("Node",nodeWindow.Node),setGlobal("navigator",nodeWindow.navigator),setGlobal("HTMLElement",nodeWindow.HTMLElement),setGlobal("XMLHttpRequest",nodeWindow.XMLHttpRequest),setGlobal("WebSocket",nodeWindow.WebSocket),setGlobal("crypto",nodeWindow.crypto),setGlobal("DOMParser",nodeWindow.DOMParser),setGlobal("angular",angular),global.document))try{global.document.queryCommandSupported=function(){return!1}}catch(_){}return _context5.p=8,_context5.n=9,_axios.default.get(module_url);case 9:return response=_context5.v,code=response.data,encodedCode=encodeURIComponent(code),encodedCode="data:text/javascript;charset=utf-8,"+encodedCode,_context5.p=10,_context5.n=11,import(encodedCode);case 11:_module2=_context5.v,_context5.n=13;break;case 12:_context5.p=12,_t2=_context5.v,console.log("Error while importing module: ".concat(module_id)),console.log(_t2);case 13:_module2&&_module2.default?importedClass=new _module2.default:console.error("Module ".concat(module_id," didn't export a default class")),_context5.n=15;break;case 14:_context5.p=14,_t3=_context5.v,console.error("Error fetching module code:",_t3);case 15:return result={type:module_id,getTemplate:function(e,t,n,r,o,a){var u="false"!==n;return importedClass.getTemplate(e,t,u,r,o,a)},getDefaultValue:function(e,t,n,r){return new Promise(function(){var o=_asyncToGenerator(_regenerator().m(function o(a){var u,c;return _regenerator().w(function(o){for(;;)switch(o.n){case 0:if(!(u=importedClass.getDefaultValue)){o.n=2;break}return o.n=1,u(e,t,n,r);case 1:c=o.v,a(c),o.n=3;break;case 2:a(null);case 3:return o.a(2)}},o)}));return function(e){return o.apply(this,arguments)}}())},getSettings:function(e,t,n){return importedClass.getSettings(e,t,n)},filter:{getSearchOptions:function(e){var t=importedClass;return t.filter&&t.filter.getSearchOptions?importedClass.filter.getSearchOptions(e)||null:[]},getDropdownValues:function(){var e=importedClass;return e.filter&&e.filter.getDropdownValues?e.filter.getDropdownValues()||null:[]}},getInterpretation:function(e,t,n,r,o,a){return new Promise(function(){var u=_asyncToGenerator(_regenerator().m(function u(c){var l,i,s,d,f;return _regenerator().w(function(u){for(;;)switch(u.p=u.n){case 0:return l=importedClass,u.p=1,u.n=2,l.getInterpretation(gudhub,e,a,o,r,n);case 2:return i=u.v,s=i.find(function(e){return e.id==t})||i.find(function(e){return"default"==e.id}),u.n=3,s.content();case 3:d=u.v,c({html:d}),u.n=5;break;case 4:u.p=4,f=u.v,console.log("ERROR IN ".concat(module_id),f),c({html:"<span>no interpretation</span>"});case 5:return u.a(2)}},u,null,[[1,4]])}));return function(e){return u.apply(this,arguments)}}())},getInterpretationsList:function(e,t,n,r){return importedClass.getInterpretation(e,t,n,r)},getInterpretatedValue:function(e,t,n,r){return new Promise(function(){var o=_asyncToGenerator(_regenerator().m(function o(a){var u,c;return _regenerator().w(function(o){for(;;)switch(o.n){case 0:if(!(u=importedClass.getInterpretatedValue)){o.n=2;break}return o.n=1,u(e,t,n,r);case 1:c=o.v,a(c),o.n=3;break;case 2:a(e);case 3:return o.a(2)}},o)}));return function(e){return o.apply(this,arguments)}}())},onMessage:function(e,t,n){return new Promise(function(){var r=_asyncToGenerator(_regenerator().m(function r(o){var a,u;return _regenerator().w(function(r){for(;;)switch(r.n){case 0:if(!(a=importedClass.onMessage)){r.n=2;break}return r.n=1,a(e,t,n);case 1:u=r.v,o(u);case 2:o(null);case 3:return r.a(2)}},r)}));return function(e){return r.apply(this,arguments)}}())}},_consts.IS_WEB&&(result.extendController=function(e){angularModule.getActionScope(e)},result.runAction=function(e){try{angularModule.runAction(e)}catch(t){}},result.getWindowScope=function(e){return angularModule.getWindowScope(e)},result.getWindowHTML=function(e){return angularModule.getWindowHTML(e)}),_context5.a(2,result);case 16:_context5.p=16,_t4=_context5.v,console.log(_t4),console.log("Failed in createAngularModuleInstance (ghconstructor). Module id: ".concat(module_id,"."));case 17:return _context5.a(2)}},_callee5,null,[[10,12],[8,14],[0,16]])})),_createAngularModuleInstance.apply(this,arguments)}
313
+ var global=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=createAngularModuleInstance;var _axios=_interopRequireDefault(require("axios")),_consts=require("./../consts.js");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(n,r,o,a){var l=r&&r.prototype instanceof c?r:c,i=Object.create(l.prototype);return _regeneratorDefine2(i,"_invoke",function(n,r,o){var a,c,l,i=0,s=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return a=t,c=0,l=e,f.n=n,u}};function p(n,r){for(c=n,l=r,t=0;!d&&i&&!o&&t<s.length;t++){var o,a=s[t],p=f.p,g=a[2];n>3?(o=g===r)&&(l=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=p&&((o=n<2&&p<a[1])?(c=0,f.v=r,f.n=a[1]):p<g&&(o=n<3||a[0]>r||r>g)&&(a[4]=n,a[5]=r,f.n=g,c=0))}if(o||n>1)return u;throw d=!0,r}return function(o,s,g){if(i>1)throw TypeError("Generator is already running");for(d&&1===s&&p(s,g),c=s,l=g;(t=c<2?e:l)||!d;){a||(c?c<3?(c>1&&(f.n=-1),p(c,l)):f.n=l:f.v=l);try{if(i=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=e}else if((t=(d=f.n<0)?l:n.call(r,f))!==u)break}catch(t){a=e,c=1,l=t}finally{i=1}}return{value:t,done:d}}}(n,o,a),!0),i}var u={};function c(){}function l(){}function i(){}t=Object.getPrototypeOf;var s=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,function(){return this}),t),d=i.prototype=c.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,i):(e.__proto__=i,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=i,_regeneratorDefine2(d,"constructor",i),_regeneratorDefine2(i,"constructor",l),l.displayName="GeneratorFunction",_regeneratorDefine2(i,o,"GeneratorFunction"),_regeneratorDefine2(d),_regeneratorDefine2(d,o,"Generator"),_regeneratorDefine2(d,r,function(){return this}),_regeneratorDefine2(d,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:a,m:f}})()}function _regeneratorDefine2(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}(_regeneratorDefine2=function(e,t,n,r){function a(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))})(e,t,n,r)}function asyncGeneratorStep(e,t,n,r,o,a,u){try{var c=e[a](u),l=c.value}catch(e){return void n(e)}c.done?t(l):Promise.resolve(l).then(r,o)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function u(e){asyncGeneratorStep(a,r,o,u,c,"next",e)}function c(e){asyncGeneratorStep(a,r,o,u,c,"throw",e)}u(void 0)})}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $q={when:function(e){return new Promise(function(t){t(e)})}},factoryReturns={},angular={module:function(){return angular},directive:function(){return angular},factory:function(e,t){try{"object"===_typeof(t)?factoryReturns[e]=t[t.length-1]($q):factoryReturns[e]=t($q)}catch(n){console.log("Errror in data type: ",e),console.log(n)}return angular},service:function(){return angular},run:function(){return angular},filter:function(){return angular},controller:function(){return angular},value:function(){return angular},element:function(){return angular},injector:function(){return angular},invoke:function(){return angular}};function createAngularModuleInstance(e,t,n,r,o){return _createAngularModuleInstance.apply(this,arguments)}function _createAngularModuleInstance(){return _createAngularModuleInstance=_asyncToGenerator(_regenerator().m(function _callee5(gudhub,module_id,module_url,angularInjector,nodeWindow){var angularModule,importedClass,module,_module,setGlobal,proxy,response,code,encodedCode,_module2,result,_t2,_t3,_t4;return _regenerator().w(function(_context5){for(;;)switch(_context5.p=_context5.n){case 0:if(_context5.p=0,!_consts.IS_WEB){_context5.n=7;break}if(!window.angular){_context5.n=4;break}if(angularInjector.has(module_id)){_context5.n=1;break}return _context5.n=1,angularInjector.get("$ocLazyLoad").load(module_url);case 1:return _context5.n=2,angularInjector.get(module_id);case 2:return angularModule=_context5.v,_context5.n=3,_axios.default.get(module_url);case 3:module=_context5.v,module=module.data;try{eval(module)}catch(error){console.error("ERROR WHILE EVAL() IN GHCONSTRUCTOR. MODULE ID: ".concat(module_id)),console.log(error)}importedClass=factoryReturns[module_id],_context5.n=6;break;case 4:return _context5.n=5,_axios.default.get(module_url);case 5:_module=_context5.v,_module=_module.data;try{eval(_module)}catch(err){console.log("Error while importing module: ".concat(module_id)),console.log(err)}importedClass=factoryReturns[module_id];case 6:_context5.n=15;break;case 7:if(setGlobal=function(e,t){var n=Object.getOwnPropertyDescriptor(global,e);if(n)if(n.writable||"function"==typeof n.set)try{global[e]=t}catch(r){}else;else try{Object.defineProperty(global,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}catch(r){}},proxy=new Proxy(nodeWindow,{get:function(e,t){var n=e[t];if("symbol"!==_typeof(n))return n},set:function(e,t,n){return"symbol"!==_typeof(n)&&(e[t]=n,setGlobal(t,n),!0)}}),!Object.prototype.hasOwnProperty.call(global,"window")&&(setGlobal("window",proxy),setGlobal("document",nodeWindow.document),setGlobal("Element",nodeWindow.Element),setGlobal("CharacterData",nodeWindow.CharacterData),setGlobal("this",proxy),setGlobal("self",proxy),setGlobal("Blob",nodeWindow.Blob),setGlobal("Node",nodeWindow.Node),setGlobal("navigator",nodeWindow.navigator),setGlobal("HTMLElement",nodeWindow.HTMLElement),setGlobal("XMLHttpRequest",nodeWindow.XMLHttpRequest),setGlobal("WebSocket",nodeWindow.WebSocket),setGlobal("crypto",nodeWindow.crypto),setGlobal("DOMParser",nodeWindow.DOMParser),setGlobal("angular",angular),global.document))try{global.document.queryCommandSupported=function(){return!1}}catch(_){}return _context5.p=8,_context5.n=9,_axios.default.get(module_url);case 9:return response=_context5.v,code=response.data,encodedCode=encodeURIComponent(code),encodedCode="data:text/javascript;charset=utf-8,"+encodedCode,_context5.p=10,_context5.n=11,import(encodedCode);case 11:_module2=_context5.v,_context5.n=13;break;case 12:_context5.p=12,_t2=_context5.v,console.log("Error while importing module: ".concat(module_id)),console.log(_t2);case 13:_module2&&_module2.default?importedClass=new _module2.default:console.error("Module ".concat(module_id," didn't export a default class")),_context5.n=15;break;case 14:_context5.p=14,_t3=_context5.v,console.error("Error fetching module code:",_t3);case 15:return result={type:module_id,getTemplate:function(e,t,n,r,o,a){var u="false"!==n;return importedClass.getTemplate(e,t,u,r,o,a)},getDefaultValue:function(e,t,n,r){return new Promise(function(){var o=_asyncToGenerator(_regenerator().m(function o(a){var u,c;return _regenerator().w(function(o){for(;;)switch(o.n){case 0:if(!(u=importedClass.getDefaultValue)){o.n=2;break}return o.n=1,u(e,t,n,r);case 1:c=o.v,a(c),o.n=3;break;case 2:a(null);case 3:return o.a(2)}},o)}));return function(e){return o.apply(this,arguments)}}())},getSettings:function(e,t,n){return importedClass.getSettings(e,t,n)},filter:{getSearchOptions:function(e){var t=importedClass;return t.filter&&t.filter.getSearchOptions?importedClass.filter.getSearchOptions(e)||null:[]},getDropdownValues:function(){var e=importedClass;return e.filter&&e.filter.getDropdownValues?e.filter.getDropdownValues()||null:[]}},getInterpretation:function(e,t,n,r,o,a){return new Promise(function(){var u=_asyncToGenerator(_regenerator().m(function u(c){var l,i,s,d,f;return _regenerator().w(function(u){for(;;)switch(u.p=u.n){case 0:return l=importedClass,u.p=1,u.n=2,l.getInterpretation(gudhub,e,a,o,r,n);case 2:return i=u.v,s=i.find(function(e){return e.id==t})||i.find(function(e){return"default"==e.id}),u.n=3,s.content();case 3:d=u.v,c({html:d}),u.n=5;break;case 4:u.p=4,f=u.v,console.log("ERROR IN ".concat(module_id),f),c({html:"<span>no interpretation</span>"});case 5:return u.a(2)}},u,null,[[1,4]])}));return function(e){return u.apply(this,arguments)}}())},getInterpretationsList:function(e,t,n,r){return importedClass.getInterpretation(e,t,n,r)},getInterpretatedValue:function(e,t,n,r){return new Promise(function(){var o=_asyncToGenerator(_regenerator().m(function o(a){var u,c;return _regenerator().w(function(o){for(;;)switch(o.n){case 0:if(!(u=importedClass.getInterpretatedValue)){o.n=2;break}return o.n=1,u(e,t,n,r);case 1:c=o.v,a(c),o.n=3;break;case 2:a(e);case 3:return o.a(2)}},o)}));return function(e){return o.apply(this,arguments)}}())},onMessage:function(e,t,n){return new Promise(function(){var r=_asyncToGenerator(_regenerator().m(function r(o){var a,u;return _regenerator().w(function(r){for(;;)switch(r.n){case 0:if(!(a=importedClass.onMessage)){r.n=2;break}return r.n=1,a(e,t,n);case 1:u=r.v,o(u);case 2:o(null);case 3:return r.a(2)}},r)}));return function(e){return r.apply(this,arguments)}}())},getDictionary:function(){return importedClass.getDictionary?importedClass.getDictionary():[]}},_consts.IS_WEB&&(result.extendController=function(e){angularModule.getActionScope(e)},result.runAction=function(e){try{angularModule.runAction(e)}catch(t){}},result.getWindowScope=function(e){return angularModule.getWindowScope(e)},result.getWindowHTML=function(e){return angularModule.getWindowHTML(e)}),_context5.a(2,result);case 16:_context5.p=16,_t4=_context5.v,console.log(_t4),console.log("Failed in createAngularModuleInstance (ghconstructor). Module id: ".concat(module_id,"."));case 17:return _context5.a(2)}},_callee5,null,[[10,12],[8,14],[0,16]])})),_createAngularModuleInstance.apply(this,arguments)}
314
314
  },{"axios":"O4Aa","./../consts.js":"UV2u"}],"DsUm":[function(require,module,exports) {
315
315
  var global = arguments[3];
316
- var t=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var e=r(require("axios")),n=require("./../consts.js");function r(t){return t&&t.__esModule?t:{default:t}}function o(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function u(n,r,o,a){var u=r&&r.prototype instanceof f?r:f,s=Object.create(u.prototype);return c(s,"_invoke",function(n,r,o){var c,a,u,f=0,s=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return c=e,a=0,u=t,p.n=n,i}};function d(n,r){for(a=n,u=r,e=0;!l&&f&&!o&&e<s.length;e++){var o,c=s[e],d=p.p,y=c[2];n>3?(o=y===r)&&(u=c[(a=c[4])?5:(a=3,3)],c[4]=c[5]=t):c[0]<=d&&((o=n<2&&d<c[1])?(a=0,p.v=r,p.n=c[1]):d<y&&(o=n<3||c[0]>r||r>y)&&(c[4]=n,c[5]=r,p.n=y,a=0))}if(o||n>1)return i;throw l=!0,r}return function(o,s,y){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&d(s,y),a=s,u=y;(e=a<2?t:u)||!l;){c||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(f=2,c){if(a||(o="next"),e=c[o]){if(!(e=e.call(c,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=c.return)&&e.call(c),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);c=t}else if((e=(l=p.n<0)?u:n.call(r,p))!==i)break}catch(e){c=t,a=1,u=e}finally{f=1}}return{value:e,done:l}}}(n,o,a),!0),s}var i={};function f(){}function s(){}function l(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(c(e={},r,function(){return this}),e),d=l.prototype=f.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,c(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=l,c(d,"constructor",l),c(l,"constructor",s),s.displayName="GeneratorFunction",c(l,a,"GeneratorFunction"),c(d),c(d,a,"Generator"),c(d,r,function(){return this}),c(d,"toString",function(){return"[object Generator]"}),(o=function(){return{w:u,m:y}})()}function c(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,e,n,r){function a(e,n){c(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))})(t,e,n,r)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n,r,o,c,a){try{var u=t[c](a),i=u.value}catch(t){return void n(t)}u.done?e(i):Promise.resolve(i).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var c=t.apply(e,n);function a(t){u(c,r,o,a,i,"next",t)}function i(t){u(c,r,o,a,i,"throw",t)}a(void 0)})}}function f(t,e,n,r,o){return s.apply(this,arguments)}function s(){return(s=i(o().m(function r(c,u,f,s,l){var p,d,y,m,v,g,h,b,w,S;return o().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,p=function(e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(r){if(r.writable||"function"==typeof r.set)try{t[e]=n}catch(o){}}else try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0,enumerable:!0})}catch(o){}},f||console.error("JS link must be provided for this data type - ".concat(u)),d=!n.IS_WEB&&l?new Proxy(l,{get:function(t,e){var n=t[e];if("symbol"!==a(n))return n},set:function(t,e,n){return"symbol"!==a(n)&&(t[e]=n,p(e,n),!0)}}):null,y=function(r){if(!n.IS_WEB&&!Object.prototype.hasOwnProperty.call(t,"window")&&l&&d&&(p("window",d),p("document",l.document),p("Element",l.Element),p("CharacterData",l.CharacterData),p("this",d),p("self",d),p("Blob",l.Blob),p("Node",l.Node),p("navigator",l.navigator),p("HTMLElement",l.HTMLElement),p("XMLHttpRequest",l.XMLHttpRequest),p("WebSocket",l.WebSocket),p("crypto",l.crypto),p("DOMParser",l.DOMParser),p("customElements",l.customElements),t.document))try{t.document.queryCommandSupported=function(){return!1}}catch(c){}return new Promise(function(){var t=i(o().m(function t(n,c){var a,i,f;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.default.get(r);case 1:a=t.v,t.n=3;break;case 2:return t.p=2,f=t.v,console.log("Failed to fetch: ".concat(r," in ghconstructor. Module id: ").concat(u)),t.a(2,c(f));case 3:if(a&&"string"==typeof a.data){t.n=4;break}return t.a(2,c(new Error("Empty or invalid JS for ".concat(u," from ").concat(r))));case 4:i=encodeURIComponent(a.data),n("data:text/javascript;charset=utf-8,"+i);case 5:return t.a(2)}},t,null,[[0,2]])}));return function(e,n){return t.apply(this,arguments)}}())},r.n=1,y(f);case 1:return m=r.v,r.p=2,r.n=3,import(m);case 3:v=r.v,r.n=5;break;case 4:r.p=4,w=r.v,console.log("Error while importing module: ".concat(u)),console.log(w);case 5:if(v&&v.default){r.n=6;break}return console.error("Module ".concat(u," didn't export a default class")),r.a(2,null);case 6:return g=new v.default(u),s&&n.IS_WEB&&((h=document.createElement("link")).href=s,h.setAttribute("data-module",u),h.setAttribute("rel","stylesheet"),document.getElementsByTagName("head")[0].appendChild(h)),b={type:u,getTemplate:function(t,e,n,r,o,c){var a="false"!==n;return g.getTemplate(t,e,a,r,o,c)},getDefaultValue:function(t,e,n,r){return new Promise(function(){var c=i(o().m(function c(a){var u,i;return o().w(function(o){for(;;)switch(o.n){case 0:if(!(u=g.getDefaultValue)){o.n=2;break}return o.n=1,u(t,e,n,r);case 1:i=o.v,a(i),o.n=3;break;case 2:a(null);case 3:return o.a(2)}},c)}));return function(t){return c.apply(this,arguments)}}())},getSettings:function(t,e,n){return g.getSettings(t,e,n)},filter:{getSearchOptions:function(t){var e=g;return e.filter&&e.filter.getSearchOptions?g.filter.getSearchOptions(t):[]},getDropdownValues:function(){var t=g;return t.filter&&t.filter.getDropdownValues?t.filter.getDropdownValues():[]}},getInterpretation:function(t,e,n,r,a,f){return new Promise(function(){var s=i(o().m(function i(s){var l,p,d,y,m;return o().w(function(o){for(;;)switch(o.p=o.n){case 0:return l=g,o.p=1,o.n=2,l.getInterpretation(c,t,f,a,r,n);case 2:return p=o.v,d=p.find(function(t){return t.id==e})||p.find(function(t){return"default"==t.id}),o.n=3,d.content();case 3:y=o.v,s({html:y}),o.n=5;break;case 4:o.p=4,m=o.v,console.log("ERROR IN ".concat(u),m),s({html:"<span>no interpretation</span>"});case 5:return o.a(2)}},i,null,[[1,4]])}));return function(t){return s.apply(this,arguments)}}())},getInterpretationsList:function(t,e,n,r){return g.getInterpretation(t,e,n,r)},getInterpretatedValue:function(t,e,n,r){return new Promise(function(){var c=i(o().m(function c(a){var u,i;return o().w(function(o){for(;;)switch(o.n){case 0:if(!(u=g.getInterpretatedValue)){o.n=2;break}return o.n=1,u(t,e,n,r);case 1:i=o.v,a(i),o.n=3;break;case 2:a(t);case 3:return o.a(2)}},c)}));return function(t){return c.apply(this,arguments)}}())},onMessage:function(t,e,n){return new Promise(function(){var r=i(o().m(function r(c){var a,u;return o().w(function(r){for(;;)switch(r.n){case 0:if(!(a=g.onMessage)){r.n=2;break}return r.n=1,a(t,e,n);case 1:u=r.v,c(u);case 2:c(null);case 3:return r.a(2)}},r)}));return function(t){return r.apply(this,arguments)}}())},extendController:function(t){g.getActionScope(t)},runAction:function(t){try{g.runAction(t)}catch(e){}},getWindowScope:function(t){return g.getWindowScope(t)},getWindowHTML:function(t){return g.getWindowHTML(t)}},r.a(2,b);case 7:r.p=7,S=r.v,console.log(S),console.log("Failed in createClassInstance (ghconstructor). Module id: ".concat(u,". JS url: ").concat(f));case 8:return r.a(2)}},r,null,[[2,4],[0,7]])}))).apply(this,arguments)}
316
+ var t=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=f;var e=r(require("axios")),n=require("./../consts.js");function r(t){return t&&t.__esModule?t:{default:t}}function o(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function u(n,r,o,a){var u=r&&r.prototype instanceof f?r:f,s=Object.create(u.prototype);return c(s,"_invoke",function(n,r,o){var c,a,u,f=0,s=o||[],l=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return c=e,a=0,u=t,p.n=n,i}};function d(n,r){for(a=n,u=r,e=0;!l&&f&&!o&&e<s.length;e++){var o,c=s[e],d=p.p,y=c[2];n>3?(o=y===r)&&(u=c[(a=c[4])?5:(a=3,3)],c[4]=c[5]=t):c[0]<=d&&((o=n<2&&d<c[1])?(a=0,p.v=r,p.n=c[1]):d<y&&(o=n<3||c[0]>r||r>y)&&(c[4]=n,c[5]=r,p.n=y,a=0))}if(o||n>1)return i;throw l=!0,r}return function(o,s,y){if(f>1)throw TypeError("Generator is already running");for(l&&1===s&&d(s,y),a=s,u=y;(e=a<2?t:u)||!l;){c||(a?a<3?(a>1&&(p.n=-1),d(a,u)):p.n=u:p.v=u);try{if(f=2,c){if(a||(o="next"),e=c[o]){if(!(e=e.call(c,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,a<2&&(a=0)}else 1===a&&(e=c.return)&&e.call(c),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);c=t}else if((e=(l=p.n<0)?u:n.call(r,p))!==i)break}catch(e){c=t,a=1,u=e}finally{f=1}}return{value:e,done:l}}}(n,o,a),!0),s}var i={};function f(){}function s(){}function l(){}e=Object.getPrototypeOf;var p=[][r]?e(e([][r]())):(c(e={},r,function(){return this}),e),d=l.prototype=f.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,c(t,a,"GeneratorFunction")),t.prototype=Object.create(d),t}return s.prototype=l,c(d,"constructor",l),c(l,"constructor",s),s.displayName="GeneratorFunction",c(l,a,"GeneratorFunction"),c(d),c(d,a,"Generator"),c(d,r,function(){return this}),c(d,"toString",function(){return"[object Generator]"}),(o=function(){return{w:u,m:y}})()}function c(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,e,n,r){function a(e,n){c(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(a("next",0),a("throw",1),a("return",2))})(t,e,n,r)}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n,r,o,c,a){try{var u=t[c](a),i=u.value}catch(t){return void n(t)}u.done?e(i):Promise.resolve(i).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var c=t.apply(e,n);function a(t){u(c,r,o,a,i,"next",t)}function i(t){u(c,r,o,a,i,"throw",t)}a(void 0)})}}function f(t,e,n,r,o){return s.apply(this,arguments)}function s(){return(s=i(o().m(function r(c,u,f,s,l){var p,d,y,m,v,g,h,b,w,S;return o().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,p=function(e,n){var r=Object.getOwnPropertyDescriptor(t,e);if(r){if(r.writable||"function"==typeof r.set)try{t[e]=n}catch(o){}}else try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0,enumerable:!0})}catch(o){}},f||console.error("JS link must be provided for this data type - ".concat(u)),d=!n.IS_WEB&&l?new Proxy(l,{get:function(t,e){var n=t[e];if("symbol"!==a(n))return n},set:function(t,e,n){return"symbol"!==a(n)&&(t[e]=n,p(e,n),!0)}}):null,y=function(r){if(!n.IS_WEB&&!Object.prototype.hasOwnProperty.call(t,"window")&&l&&d&&(p("window",d),p("document",l.document),p("Element",l.Element),p("CharacterData",l.CharacterData),p("this",d),p("self",d),p("Blob",l.Blob),p("Node",l.Node),p("navigator",l.navigator),p("HTMLElement",l.HTMLElement),p("XMLHttpRequest",l.XMLHttpRequest),p("WebSocket",l.WebSocket),p("crypto",l.crypto),p("DOMParser",l.DOMParser),p("customElements",l.customElements),t.document))try{t.document.queryCommandSupported=function(){return!1}}catch(c){}return new Promise(function(){var t=i(o().m(function t(n,c){var a,i,f;return o().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,e.default.get(r);case 1:a=t.v,t.n=3;break;case 2:return t.p=2,f=t.v,console.log("Failed to fetch: ".concat(r," in ghconstructor. Module id: ").concat(u)),t.a(2,c(f));case 3:if(a&&"string"==typeof a.data){t.n=4;break}return t.a(2,c(new Error("Empty or invalid JS for ".concat(u," from ").concat(r))));case 4:i=encodeURIComponent(a.data),n("data:text/javascript;charset=utf-8,"+i);case 5:return t.a(2)}},t,null,[[0,2]])}));return function(e,n){return t.apply(this,arguments)}}())},r.n=1,y(f);case 1:return m=r.v,r.p=2,r.n=3,import(m);case 3:v=r.v,r.n=5;break;case 4:r.p=4,w=r.v,console.log("Error while importing module: ".concat(u)),console.log(w);case 5:if(v&&v.default){r.n=6;break}return console.error("Module ".concat(u," didn't export a default class")),r.a(2,null);case 6:return g=new v.default(u),s&&n.IS_WEB&&((h=document.createElement("link")).href=s,h.setAttribute("data-module",u),h.setAttribute("rel","stylesheet"),document.getElementsByTagName("head")[0].appendChild(h)),b={type:u,getTemplate:function(t,e,n,r,o,c){var a="false"!==n;return g.getTemplate(t,e,a,r,o,c)},getDefaultValue:function(t,e,n,r){return new Promise(function(){var c=i(o().m(function c(a){var u,i;return o().w(function(o){for(;;)switch(o.n){case 0:if(!(u=g.getDefaultValue)){o.n=2;break}return o.n=1,u(t,e,n,r);case 1:i=o.v,a(i),o.n=3;break;case 2:a(null);case 3:return o.a(2)}},c)}));return function(t){return c.apply(this,arguments)}}())},getSettings:function(t,e,n){return g.getSettings(t,e,n)},filter:{getSearchOptions:function(t){var e=g;return e.filter&&e.filter.getSearchOptions?g.filter.getSearchOptions(t):[]},getDropdownValues:function(){var t=g;return t.filter&&t.filter.getDropdownValues?t.filter.getDropdownValues():[]}},getInterpretation:function(t,e,n,r,a,f){return new Promise(function(){var s=i(o().m(function i(s){var l,p,d,y,m;return o().w(function(o){for(;;)switch(o.p=o.n){case 0:return l=g,o.p=1,o.n=2,l.getInterpretation(c,t,f,a,r,n);case 2:return p=o.v,d=p.find(function(t){return t.id==e})||p.find(function(t){return"default"==t.id}),o.n=3,d.content();case 3:y=o.v,s({html:y}),o.n=5;break;case 4:o.p=4,m=o.v,console.log("ERROR IN ".concat(u),m),s({html:"<span>no interpretation</span>"});case 5:return o.a(2)}},i,null,[[1,4]])}));return function(t){return s.apply(this,arguments)}}())},getInterpretationsList:function(t,e,n,r){return g.getInterpretation(t,e,n,r)},getInterpretatedValue:function(t,e,n,r){return new Promise(function(){var c=i(o().m(function c(a){var u,i;return o().w(function(o){for(;;)switch(o.n){case 0:if(!(u=g.getInterpretatedValue)){o.n=2;break}return o.n=1,u(t,e,n,r);case 1:i=o.v,a(i),o.n=3;break;case 2:a(t);case 3:return o.a(2)}},c)}));return function(t){return c.apply(this,arguments)}}())},onMessage:function(t,e,n){return new Promise(function(){var r=i(o().m(function r(c){var a,u;return o().w(function(r){for(;;)switch(r.n){case 0:if(!(a=g.onMessage)){r.n=2;break}return r.n=1,a(t,e,n);case 1:u=r.v,c(u);case 2:c(null);case 3:return r.a(2)}},r)}));return function(t){return r.apply(this,arguments)}}())},extendController:function(t){g.getActionScope(t)},runAction:function(t){try{g.runAction(t)}catch(e){}},getWindowScope:function(t){return g.getWindowScope(t)},getWindowHTML:function(t){return g.getWindowHTML(t)},getDictionary:function(){return g.getDictionary?g.getDictionary():[]}},r.a(2,b);case 7:r.p=7,S=r.v,console.log(S),console.log("Failed in createClassInstance (ghconstructor). Module id: ".concat(u,". JS url: ").concat(f));case 8:return r.a(2)}},r,null,[[2,4],[0,7]])}))).apply(this,arguments)}
317
317
  },{"axios":"O4Aa","./../consts.js":"UV2u"}],"Htuh":[function(require,module,exports) {
318
318
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GHConstructor=void 0;var t=n(require("./createAngularModuleInstance.js")),e=n(require("./createClassInstance.js"));function n(t){return t&&t.__esModule?t:{default:t}}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(){var t,e,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function a(n,r,o,i){var a=r&&r.prototype instanceof s?r:s,f=Object.create(a.prototype);return u(f,"_invoke",function(n,r,o){var u,i,a,s=0,f=o||[],l=!1,h={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(e,n){return u=e,i=0,a=t,h.n=n,c}};function y(n,r){for(i=n,a=r,e=0;!l&&s&&!o&&e<f.length;e++){var o,u=f[e],y=h.p,p=u[2];n>3?(o=p===r)&&(a=u[(i=u[4])?5:(i=3,3)],u[4]=u[5]=t):u[0]<=y&&((o=n<2&&y<u[1])?(i=0,h.v=r,h.n=u[1]):y<p&&(o=n<3||u[0]>r||r>p)&&(u[4]=n,u[5]=r,h.n=p,i=0))}if(o||n>1)return c;throw l=!0,r}return function(o,f,p){if(s>1)throw TypeError("Generator is already running");for(l&&1===f&&y(f,p),i=f,a=p;(e=i<2?t:a)||!l;){u||(i?i<3?(i>1&&(h.n=-1),y(i,a)):h.n=a:h.v=a);try{if(s=2,u){if(i||(o="next"),e=u[o]){if(!(e=e.call(u,a)))throw TypeError("iterator result is not an object");if(!e.done)return e;a=e.value,i<2&&(i=0)}else 1===i&&(e=u.return)&&e.call(u),i<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),i=1);u=t}else if((e=(l=h.n<0)?a:n.call(r,h))!==c)break}catch(e){u=t,i=1,a=e}finally{s=1}}return{value:e,done:l}}}(n,o,i),!0),f}var c={};function s(){}function f(){}function l(){}e=Object.getPrototypeOf;var h=[][r]?e(e([][r]())):(u(e={},r,function(){return this}),e),y=l.prototype=s.prototype=Object.create(h);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,u(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=l,u(y,"constructor",l),u(l,"constructor",f),f.displayName="GeneratorFunction",u(l,i,"GeneratorFunction"),u(y),u(y,i,"Generator"),u(y,r,function(){return this}),u(y,"toString",function(){return"[object Generator]"}),(o=function(){return{w:a,m:p}})()}function u(t,e,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(u=function(t,e,n,r){function i(e,n){u(t,e,function(t){return this._invoke(e,n,t)})}e?o?o(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))})(t,e,n,r)}function i(t,e,n,r,o,u,i){try{var a=t[u](i),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function a(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var u=t.apply(e,n);function a(t){i(u,r,o,a,c,"next",t)}function c(t){i(u,r,o,a,c,"throw",t)}a(void 0)})}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=h(t,"string");return"symbol"==r(e)?e:e+""}function h(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var y=exports.GHConstructor=function(){return f(function t(e){c(this,t),this.gudhub=e,this.cache={},this.modulesQueue={},this.angularInjector,this.nodeWindow},[{key:"getInstance",value:function(){var t=a(o().m(function t(e){return o().w(function(t){for(;;)switch(t.n){case 0:if(!this.getCached(e)){t.n=1;break}return t.a(2,this.getCached(e));case 1:if(!this.modulesQueue[e]){t.n=3;break}return t.n=2,this.modulesQueue[e];case 2:t.n=4;break;case 3:return this.modulesQueue[e]=this.createInstance(e),t.n=4,this.modulesQueue[e];case 4:return t.a(2,this.getCached(e))}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"pupToCache",value:function(t,e){this.cache[t]=e}},{key:"getCached",value:function(t){return this.cache[t]}},{key:"initAngularInjector",value:function(t){this.angularInjector=t}},{key:"initJsdomWindow",value:function(t){this.nodeWindow=t}},{key:"createInstance",value:function(){var n=a(o().m(function n(r){var u,i;return o().w(function(n){for(;;)switch(n.n){case 0:if(u=this.gudhub.storage.getModuleUrl(r)){n.n=1;break}return console.log("Cannot find module: ".concat(r)),n.a(2);case 1:if("gh_element"!==u.type){n.n=5;break}if("angular"!==u.technology){n.n=3;break}return n.n=2,(0,t.default)(this.gudhub,r,u.url,this.angularInjector,this.nodeWindow);case 2:i=n.v,n.n=5;break;case 3:if("class"!==u.technology){n.n=5;break}return n.n=4,(0,e.default)(this.gudhub,r,u.js,u.css,this.nodeWindow);case 4:i=n.v;case 5:return i&&this.pupToCache(r,i),n.a(2,i)}},n,this)}));return function(t){return n.apply(this,arguments)}}()}])}();
319
319
  },{"./createAngularModuleInstance.js":"osSN","./createClassInstance.js":"DsUm"}],"q0my":[function(require,module,exports) {