@gudhub/core 1.1.36 → 1.1.37
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.
|
@@ -800,7 +800,7 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
800
800
|
type: 'automation'
|
|
801
801
|
},
|
|
802
802
|
{
|
|
803
|
-
name: '
|
|
803
|
+
name: 'TwilioSMS',
|
|
804
804
|
url: file_server_url + '/' + automation_modules_path + 'twilio_sms.js',
|
|
805
805
|
type: 'automation'
|
|
806
806
|
},
|
|
@@ -808,6 +808,11 @@ export default function generateModulesList(async_modules_path, file_server_url,
|
|
|
808
808
|
name: 'UpdateItemsApi',
|
|
809
809
|
url: file_server_url + '/' + automation_modules_path + 'update_items_api.js',
|
|
810
810
|
type: 'automation'
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: 'GoogleCalendar',
|
|
814
|
+
url: file_server_url + '/' + automation_modules_path + 'google_calendar.js',
|
|
815
|
+
type: 'automation'
|
|
811
816
|
}
|
|
812
817
|
]
|
|
813
818
|
}
|
|
@@ -302,6 +302,14 @@ export default class AppsTemplateService {
|
|
|
302
302
|
let appTemplate = self.prepareAppTemplate(source_app);
|
|
303
303
|
appTemplate.app_name = appTemplate.app_name + ' New';
|
|
304
304
|
appTemplate.privacy = 1;
|
|
305
|
+
if(pack.data_to_change) {
|
|
306
|
+
if(pack.data_to_change.name) {
|
|
307
|
+
appTemplate.app_name = pack.data_to_change.name;
|
|
308
|
+
}
|
|
309
|
+
if(pack.data_to_change.icon) {
|
|
310
|
+
appTemplate.icon = pack.data_to_change.icon;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
305
313
|
self.resetViewsIds(appTemplate);
|
|
306
314
|
|
|
307
315
|
self.gudhub.createNewApp(appTemplate).then(created_app => {
|
|
@@ -106,15 +106,18 @@ export class GudHubHttpsService {
|
|
|
106
106
|
return this.requestPromises[hesh].promise;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
let method = request.method.toLowerCase()
|
|
109
|
+
let method = request.method ? request.method.toLowerCase() : 'get';
|
|
110
110
|
let url = request.url;
|
|
111
|
-
let headers = request.
|
|
111
|
+
let headers = request.headers || {};
|
|
112
|
+
if(request.form) {
|
|
113
|
+
headers['Content-Type'] = 'application/x-www-form-urlencoded';
|
|
114
|
+
}
|
|
112
115
|
|
|
113
116
|
const promise = new Promise(async (resolve, reject) => {
|
|
114
117
|
try {
|
|
115
|
-
const { data } = await axios[method](url, qs.stringify(request.form) || request.body, {
|
|
118
|
+
const { data } = await axios[method](url, method === 'post' ? (qs.stringify(request.form) || request.body) : { headers }, method === 'post' ? {
|
|
116
119
|
headers
|
|
117
|
-
});
|
|
120
|
+
} : {});
|
|
118
121
|
resolve(data);
|
|
119
122
|
} catch(error) {
|
|
120
123
|
console.log("ERROR -> GUDHUB HTTP SERVICE -> SIMPLE POST :", error.message);
|
package/package.json
CHANGED
package/umd/library.min.js
CHANGED
|
@@ -98,13 +98,13 @@ var t="function"==typeof Map&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t
|
|
|
98
98
|
},{"./utils":"Qri1"}],"hIRQ":[function(require,module,exports) {
|
|
99
99
|
"use strict";var r=require("./stringify"),e=require("./parse"),s=require("./formats");module.exports={formats:s,parse:e,stringify:r};
|
|
100
100
|
},{"./stringify":"mwZo","./parse":"snX5","./formats":"XaX2"}],"hDvy":[function(require,module,exports) {
|
|
101
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GudHubHttpsService=void 0;var e=n(require("axios")),t=require("./utils.js"),r=n(require("qs"));function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,s,o,i){try{var u=e[o](i),a=u.value}catch(c){return void r(c)}u.done?t(a):Promise.resolve(a).then(n,s)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){s(i,n,o,u,a,"next",e)}function a(e){s(i,n,o,u,a,"throw",e)}u(void 0)})}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var c=function(){function n(e){i(this,n),this.root=e,this.requestPromises=[]}return a(n,[{key:"init",value:function(e){this.getToken=e}},{key:"get",value:function(){var r=o(regeneratorRuntime.mark(function r(n){var s,o,i,u=this;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getToken();case 2:if(s=r.sent,o=this.getHashCode(n),!this.requestPromises[o]){r.next=6;break}return r.abrupt("return",this.requestPromises[o].promise);case 6:return i=new Promise(function(r,o){var i;n.externalResource?i=n.url:(i=u.root+n.url,i="".concat(i).concat(/\?/.test(i)?"&":"?","token=").concat(s).concat((0,t.convertObjToUrlParams)(n.params))),e.default.get(i).then(function(e){r(e.data)}).catch(function(e){console.log("ERROR -> GUDHUB HTTP SERVICE -> GET :",e.message),console.log("Request message: ",n),e.response&&e.response.data&&console.log("Error response data: ",e.response.data),o(e)})}),this.pushPromise(i,o),r.abrupt("return",i);case 9:case"end":return r.stop()}},r,this)}));return function(e){return r.apply(this,arguments)}}()},{key:"post",value:function(){var t=o(regeneratorRuntime.mark(function t(n){var s,o,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=this.getHashCode(n),t.next=3,this.getToken();case 3:if(n.form.token=t.sent,!this.requestPromises[s]){t.next=6;break}return t.abrupt("return",this.requestPromises[s].promise);case 6:return o=new Promise(function(t,s){e.default.post(i.root+n.url,r.default.stringify(n.form),{headers:n.headers||{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){t(e.data)}).catch(function(e){console.log("ERROR -> GUDHUB HTTP SERVICE -> POST :",e.message),console.log("Request message: ",n),s(e)})}),this.pushPromise(o,s),t.abrupt("return",o);case 9:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"axiosRequest",value:function(t){var n=this.getHashCode(t);if(this.requestPromises[n])return this.requestPromises[n].promise;var s=t.method.toLowerCase()
|
|
101
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GudHubHttpsService=void 0;var e=n(require("axios")),t=require("./utils.js"),r=n(require("qs"));function n(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,s,o,i){try{var u=e[o](i),a=u.value}catch(c){return void r(c)}u.done?t(a):Promise.resolve(a).then(n,s)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function u(e){s(i,n,o,u,a,"next",e)}function a(e){s(i,n,o,u,a,"throw",e)}u(void 0)})}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,r){return t&&u(e.prototype,t),r&&u(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var c=function(){function n(e){i(this,n),this.root=e,this.requestPromises=[]}return a(n,[{key:"init",value:function(e){this.getToken=e}},{key:"get",value:function(){var r=o(regeneratorRuntime.mark(function r(n){var s,o,i,u=this;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getToken();case 2:if(s=r.sent,o=this.getHashCode(n),!this.requestPromises[o]){r.next=6;break}return r.abrupt("return",this.requestPromises[o].promise);case 6:return i=new Promise(function(r,o){var i;n.externalResource?i=n.url:(i=u.root+n.url,i="".concat(i).concat(/\?/.test(i)?"&":"?","token=").concat(s).concat((0,t.convertObjToUrlParams)(n.params))),e.default.get(i).then(function(e){r(e.data)}).catch(function(e){console.log("ERROR -> GUDHUB HTTP SERVICE -> GET :",e.message),console.log("Request message: ",n),e.response&&e.response.data&&console.log("Error response data: ",e.response.data),o(e)})}),this.pushPromise(i,o),r.abrupt("return",i);case 9:case"end":return r.stop()}},r,this)}));return function(e){return r.apply(this,arguments)}}()},{key:"post",value:function(){var t=o(regeneratorRuntime.mark(function t(n){var s,o,i=this;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return s=this.getHashCode(n),t.next=3,this.getToken();case 3:if(n.form.token=t.sent,!this.requestPromises[s]){t.next=6;break}return t.abrupt("return",this.requestPromises[s].promise);case 6:return o=new Promise(function(t,s){e.default.post(i.root+n.url,r.default.stringify(n.form),{headers:n.headers||{"Content-Type":"application/x-www-form-urlencoded"}}).then(function(e){t(e.data)}).catch(function(e){console.log("ERROR -> GUDHUB HTTP SERVICE -> POST :",e.message),console.log("Request message: ",n),s(e)})}),this.pushPromise(o,s),t.abrupt("return",o);case 9:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}()},{key:"axiosRequest",value:function(t){var n=this.getHashCode(t);if(this.requestPromises[n])return this.requestPromises[n].promise;var s=t.method?t.method.toLowerCase():"get",i=t.url,u=t.headers||{};t.form&&(u["Content-Type"]="application/x-www-form-urlencoded");var a=new Promise(function(){var n=o(regeneratorRuntime.mark(function n(o,a){var c,f;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.default[s](i,"post"===s?r.default.stringify(t.form)||t.body:{headers:u},"post"===s?{headers:u}:{});case 3:c=n.sent,f=c.data,o(f),n.next=13;break;case 8:n.prev=8,n.t0=n.catch(0),console.log("ERROR -> GUDHUB HTTP SERVICE -> SIMPLE POST :",n.t0.message),console.log("Request message: ",t),a(n.t0);case 13:case"end":return n.stop()}},n,null,[[0,8]])}));return function(e,t){return n.apply(this,arguments)}}());return this.pushPromise(a,n),a}},{key:"pushPromise",value:function(e,t){var r=this;this.requestPromises[t]={promise:e,hesh:t,callback:e.then(function(){r.destroyPromise(t)})}}},{key:"destroyPromise",value:function(e){this.requestPromises=this.requestPromises.filter(function(t){return t.hesh!==e})}},{key:"getHashCode",value:function(e){var t=0,n=r.default.stringify(e);if(0==n.length)return t;for(var s=0;s<n.length;s++){t=(t<<5)-t+n.charCodeAt(s),t&=t}return"h"+t}}]),n}();exports.GudHubHttpsService=c;
|
|
102
102
|
},{"axios":"O4Aa","./utils.js":"EgeI","qs":"hIRQ"}],"Lc8J":[function(require,module,exports) {
|
|
103
103
|
"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(e)}function e(o){var e="";for(var t in o)o.hasOwnProperty(t)&&o[t]&&(e+="."+o[t]);return e?e.substring(1):"any"}function t(e,t,n){return null==e||"string"!=typeof e?(console.log("Listener type is \"undefined\" or not have actual 'type' for subscribe"),!1):null==t||"object"!==o(t)?(console.log("Listener destination is \"undefined\" or not have actual 'type' for subscribe"),!1):"function"==typeof n||(console.log("Listener is not a function for subscribe!"),!1)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkParams=t,exports.createId=e;
|
|
104
104
|
},{}],"E3xI":[function(require,module,exports) {
|
|
105
105
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PipeService=void 0;var e=require("./utils.js");function r(e){return i(e)||n(e)||s(e)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e){if(Array.isArray(e))return o(e)}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,s=new Array(r);t<r;t++)s[t]=e[t];return s}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function u(e,r){for(var t=0;t<r.length;t++){var s=r[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function c(e,r,t){return r&&u(e.prototype,r),t&&u(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=function(){function t(){a(this,t),this.subscribers={},this.messageBox={}}return c(t,[{key:"on",value:function(r,t,s){var n=this;return(0,e.checkParams)(r,t,s)&&r.split(" ").map(function(r){return r+":"+(0,e.createId)(t)}).forEach(function(e){n.subscribers[e]||(n.subscribers[e]=new Set),n.subscribers[e].add(s),n.checkMessageBox(e)}),this}},{key:"emit",value:function(r,t,s,n){var i=this;return r.split(" ").forEach(function(o){var a=o+":"+(0,e.createId)(t);if(i.subscribers[a]){if(0==i.subscribers[a].size)return i.messageBox[a]=[r,t,s,n,!1],i;i.subscribers[a].forEach(function(e){e(null,s,n)})}else i.messageBox[a]=[r,t,s,n,!1]}),this}},{key:"onRoot",value:function(e,r,t){return this.on(e,r,t)}},{key:"destroy",value:function(r,t,s){var n=this;return r.split(" ").forEach(function(r){var i=r+":"+(0,e.createId)(t);n.subscribers[i]&&s&&n.subscribers[i].delete(s),n.subscribers[i]&&!s&&delete n.subscribers[i]}),this}},{key:"checkMessageBox",value:function(e){var t=this;this.cleanMesssageBox(),this.messageBox[e]&&setTimeout(function(){t.messageBox[e]&&(t.emit.apply(t,r(t.messageBox[e])),t.messageBox[e][4]=!0)},0)}},{key:"cleanMesssageBox",value:function(){for(var e in this.messageBox)this.messageBox[e][4]&&delete this.messageBox[e]}}]),t}();exports.PipeService=l;
|
|
106
106
|
},{"./utils.js":"Lc8J"}],"FJWL":[function(require,module,exports) {
|
|
107
|
-
"use strict";function e(e,t,a){return[{name:"text",url:t+"/"+e+"text_data.js",type:"gh_element",technology:"angular"},{name:"text_opt",url:t+"/"+e+"text_options_data.js",type:"gh_element",technology:"angular"},{name:"number",url:t+"/"+e+"number_data.js",type:"gh_element",technology:"angular"},{name:"task_board",url:t+"/"+e+"task_board_data.js",type:"gh_element",technology:"angular"},{name:"visualizer",url:t+"/"+e+"visualizer_data.js",type:"gh_element",technology:"angular"},{name:"enterprice_visualizer",url:t+"/"+e+"enterprice_visualizer_data.js",type:"gh_element",technology:"angular"},{name:"email",url:t+"/"+e+"email_data.js",type:"gh_element",technology:"angular"},{name:"date",url:t+"/"+e+"date_data.js",type:"gh_element",technology:"angular"},{name:"radio_button",url:t+"/"+e+"radio_button_data.js",type:"gh_element",technology:"angular"},{name:"radio_icon",url:t+"/"+e+"radio_icon_data.js",type:"gh_element",technology:"angular"},{name:"twilio_phone",url:t+"/"+e+"twilio_phone_data.js",type:"gh_element",technology:"angular"},{name:"twilio_autodialer",url:t+"/"+e+"twillio_autodialer_data.js",type:"gh_element",technology:"angular"},{name:"color",url:t+"/"+e+"color_data.js",type:"gh_element",technology:"angular"},{name:"charts",url:t+"/"+e+"charts_data.js",type:"gh_element",technology:"angular"},{name:"funnel_chart",url:t+"/"+e+"funnel_chart_data.js",type:"gh_element",technology:"angular"},{name:"add_items_from_template",url:t+"/"+e+"add_items_from_template_data.js",type:"gh_element",technology:"angular"},{name:"item_ref",url:t+"/"+e+"itemRef_data.js",type:"gh_element",technology:"angular"},{name:"calendar",js:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js",css:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css",type:"gh_element",technology:"class"},{name:"data_ref",url:t+"/"+e+"data_ref_data.js",type:"gh_element",technology:"angular"},{name:"table",url:t+"/"+e+"table_data.js",type:"gh_element",technology:"angular"},{name:"tile",url:t+"/"+e+"tile_data.js",type:"gh_element",technology:"angular"},{name:"file",url:t+"/"+e+"file_data.js",type:"gh_element",technology:"angular"},{name:"image",url:t+"/"+e+"image_data.js",type:"gh_element",technology:"angular"},{name:"text_editor",url:t+"/"+e+"text_editor_data.js",type:"gh_element",technology:"angular"},{name:"tinymse",url:t+"/"+e+"tinymse_data.js",type:"gh_element",technology:"angular"},{name:"duration",url:t+"/"+e+"duration_data.js",type:"gh_element",technology:"angular"},{name:"user",url:t+"/"+e+"user_data.js",type:"gh_element",technology:"angular"},{name:"app",url:t+"/"+e+"application_data.js",type:"gh_element",technology:"angular"},{name:"field",url:t+"/"+e+"field_data.js",type:"gh_element",technology:"angular"},{name:"available",url:t+"/"+e+"available_data.js",type:"gh_element",technology:"angular"},{name:"view_list",url:t+"/"+e+"view_list_data.js",type:"gh_element",technology:"angular"},{name:"calculator",url:t+"/"+e+"calculator_data.js",type:"gh_element",technology:"angular"},{name:"string_join",url:t+"/"+e+"string_joiner_data.js",type:"gh_element",technology:"angular"},{name:"signature",url:t+"/"+e+"signature_data.js",type:"gh_element",technology:"angular"},{name:"sendEmail",url:t+"/"+e+"send_email_data.js",type:"gh_element",technology:"angular"},{name:"boolean",url:t+"/"+e+"boolean_data.js",type:"gh_element",technology:"angular"},{name:"product_gallery",url:t+"/"+e+"product_gallery_data.js",type:"gh_element",technology:"angular"},{name:"online_inventory",url:t+"/"+e+"online_inventory_data.js",type:"gh_element",technology:"angular"},{name:"3d_edges",url:t+"/"+e+"3d_edges_data.js",type:"gh_element",technology:"angular"},{name:"color_list",url:t+"/"+e+"color_list_data.js",type:"gh_element",technology:"angular"},{name:"go_to_link",url:t+"/"+e+"go_to_link_data.js",type:"gh_element",technology:"angular"},{name:"go_to_view",url:t+"/"+e+"go_to_view_data.js",type:"gh_element",technology:"angular"},{name:"range",url:t+"/"+e+"range_data.js",type:"gh_element",technology:"angular"},{name:"barcode",url:t+"/"+e+"barcode_data.js",type:"gh_element",technology:"angular"},{name:"item_remote_add",url:t+"/"+e+"item_remote_add_data.js",type:"gh_element",technology:"angular"},{name:"item_remote_update",url:t+"/"+e+"item_remote_update_data.js",type:"gh_element",technology:"angular"},{name:"timeline",url:t+"/"+e+"timeline_data.js",type:"gh_element",technology:"angular"},{name:"delete_item",url:t+"/"+e+"delete_action.js",type:"gh_element",technology:"angular"},{name:"print_doc",url:t+"/"+e+"print_doc_action.js",type:"gh_element",technology:"angular"},{name:"open_item",url:t+"/"+e+"open_item_action.js",type:"gh_element",technology:"angular"},{name:"edit_template",url:t+"/"+e+"edit_template_action.js",type:"gh_element",technology:"angular"},{name:"open_app",url:t+"/"+e+"open_app_action.js",type:"gh_element",technology:"angular"},{name:"user_settings",url:t+"/"+e+"user_settings_action.js",type:"gh_element",technology:"angular"},{name:"app_sharing",url:t+"/"+e+"sharing_action.js",type:"gh_element",technology:"angular"},{name:"app_constructor",url:t+"/"+e+"app_constructor_action.js",type:"gh_element",technology:"angular"},{name:"export_csv",url:t+"/"+e+"export_csv.js",type:"gh_element",technology:"angular"},{name:"import_csv",url:t+"/"+e+"import_csv.js",type:"gh_element",technology:"angular"},{name:"add_items",url:t+"/"+e+"add_items_action.js",type:"gh_element",technology:"angular"},{name:"update_items",url:t+"/"+e+"update_items_action.js",type:"gh_element",technology:"angular"},{name:"install_app",url:t+"/"+e+"install_app_action.js",type:"gh_element",technology:"angular"},{name:"search_action",url:t+"/"+e+"search_action.js",type:"gh_element",technology:"angular"},{name:"filter_table",url:t+"/"+e+"filter_table_action.js",type:"gh_element",technology:"angular"},{name:"slider",url:t+"/"+e+"slider_data.js",type:"gh_element",technology:"angular"},{name:"clone_item",url:t+"/"+e+"clone_item_action.js",type:"gh_element",technology:"angular"},{name:"close",url:t+"/"+e+"close_action.js",type:"gh_element",technology:"angular"},{name:"phone",url:t+"/"+e+"phone_data.js",type:"gh_element",technology:"angular"},{name:"link",url:t+"/"+e+"link_data.js",type:"gh_element",technology:"angular"},{name:"sheduling",url:t+"/"+e+"sheduling_data.js",type:"gh_element",technology:"angular"},{name:"qrcode",url:t+"/"+e+"qrcode_data.js",type:"gh_element",technology:"angular"},{name:"graph2d",url:t+"/"+e+"graph2d_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool",url:t+"/"+e+"quote_tool_data.js",type:"gh_element",technology:"angular"},{name:"cards",url:t+"/"+e+"cards_data.js",type:"gh_element",technology:"angular"},{name:"jsonConstructor",url:t+"/"+e+"json_constructor_data.js",type:"gh_element",technology:"angular"},{name:"button",js:"https://gudhub.com/modules/button_action/button_action.js",type:"gh_element",technology:"class"},{name:"editorjs",js:"https://gudhub.com/modules/Editor-Js/dist/main.js",css:"https://gudhub.com/modules/Editor-Js/dist/style.css",type:"gh_element",technology:"class"},{name:"filter_advanced",url:t+"/"+e+"filter_advanced_data.js",type:"gh_element",technology:"angular"},{name:"code_editor",url:t+"/"+e+"code_editor_data.js",type:"gh_element",technology:"angular"},{name:"icon",url:t+"/"+e+"icon_data.js",type:"gh_element",technology:"angular"},{name:"quoteRequest",url:t+"/"+e+"quote_request_data.js",type:"gh_element",technology:"angular"},{name:"view_container",url:t+"/"+e+"view_container_data.js",type:"gh_element",technology:"angular"},{name:"element_ref",url:t+"/"+e+"element_ref_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool_objects_renderer",url:t+"/"+e+"quote_tool_objects_renderer_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool_objects_renderer_generator",url:t+"/"+e+"quote_tool_objects_renderer_generator_data.js",type:"gh_element",technology:"angular"},{name:"trigger",url:t+"/"+e+"trigger_data.js",type:"gh_element",technology:"angular"},{name:"voting",url:t+"/"+e+"voting_data.js",type:"gh_element",technology:"angular"},{name:"view_tabs",url:t+"/"+e+"view_tabs.js",type:"gh_element",technology:"angular"},{name:"filter_tabs",url:t+"/"+e+"filter_tabs.js",type:"gh_element",technology:"angular"},{name:"gps_coords",url:t+"/"+e+"gps_coords.js",type:"gh_element",technology:"angular"},{name:"google_map",url:t+"/"+e+"google_map_data.js",type:"gh_element",technology:"angular"},{name:"data_migrations",url:t+"/"+e+"data_migrations.js",type:"gh_element",technology:"angular"},{name:"additional_settings",url:t+"/"+e+"gh_additional_settings_data.js",type:"gh_element",technology:"angular"},{name:"send_request",url:t+"/"+e+"send_request_data.js",type:"gh_element",technology:"angular"},{name:"webcam",url:t+"/"+e+"webcam_data.js",type:"gh_element",technology:"angular"},{name:"json_viewer",url:t+"/"+e+"json_viewer_data.js",type:"gh_element",technology:"angular"},{name:"notifications",url:t+"/"+e+"notifications_data.js",type:"gh_element",technology:"angular"},{name:"api",url:t+"/"+e+"api_data.js",type:"gh_element",technology:"angular"},{name:"smart_input",url:t+"/"+e+"smart_input_data.js",type:"gh_element",technology:"angular"},{name:"json_editor",url:t+"/"+e+"json_editor_data.js",type:"gh_element",technology:"angular"},{name:"grapes_html_editor",url:t+"/"+e+"grapes_html_editor_data.js",type:"gh_element",technology:"angular"},{name:"quiz",url:t+"/"+e+"quiz_data.js",type:"gh_element",technology:"angular"},{name:"markdown_viewer",url:t+"/"+e+"markdown_viewer_data.js",type:"gh_element",technology:"angular"},{name:"password_input",url:t+"/"+e+"password_input_data.js",type:"gh_element",technology:"angular"},{name:"vs_code",url:t+"/"+e+"vs_code_data.js",type:"gh_element",technology:"angular"},{name:"nested_list",js:"https://gudhub.com/modules/Nested-List/dist/main.js",css:"https://gudhub.com/modules/Nested-List/dist/style.css",type:"gh_element",technology:"class"},{name:"countertop_smart_quote",url:t+"/"+e+"countertop_smart_quote_data.js",type:"gh_element",technology:"angular"},{name:"markdown_viewer_web_component",js:"https://gudhub.com/modules/markdown-it-gh-element/dist/main.js",css:"https://gudhub.com/modules/markdown-it-gh-element/dist/style.css",type:"gh_element",technology:"class"},{name:"API",url:t+"/"+a+"api_node.js",type:"automation"},{name:"Calculator",url:t+"/"+a+"calculator.js",type:"automation"},{name:"CompareItems",url:t+"/"+a+"compare_items.js",type:"automation"},{name:"Constants",url:t+"/"+a+"constants.js",type:"automation"},{name:"CreateFiles",url:t+"/"+a+"create_files.js",type:"automation"},{name:"CreateItemsApi",url:t+"/"+a+"create_item_api.js",type:"automation"},{name:"FaceDetector",url:t+"/"+a+"face_detector.js",type:"automation"},{name:"FileDuplicate",url:t+"/"+a+"file_duplicate.js",type:"automation"},{name:"Filter",url:t+"/"+a+"filter_node.js",type:"automation"},{name:"GetItemByItemRef",url:t+"/"+a+"get_item_by_item_ref.js",type:"automation"},{name:"GetItems",url:t+"/"+a+"get_items.js",type:"automation"},{name:"GhElementNode",url:t+"/"+a+"gh_element_node.js",type:"automation"},{name:"IfCondition",url:t+"/"+a+"if_condition.js",type:"automation"},{name:"ItemConstructor",url:t+"/"+a+"item_constructor.js",type:"automation"},{name:"ItemDestructor",url:t+"/"+a+"item_destructor.js",type:"automation"},{name:"JSONScheme",url:t+"/"+a+"json_scheme.js",type:"automation"},{name:"MergeItems",url:t+"/"+a+"merge_items.js",type:"automation"},{name:"MessageConstructor",url:t+"/"+a+"message_constructor.js",type:"automation"},{name:"ObjectToItem",url:t+"/"+a+"obj_to_item.js",type:"automation"},{name:"ObjectConstructor",url:t+"/"+a+"object_constructor.js",type:"automation"},{name:"ObjectDestructor",url:t+"/"+a+"object_destructor.js",type:"automation"},{name:"PopulateElement",url:t+"/"+a+"populate_element.js",type:"automation"},{name:"PopulateItems",url:t+"/"+a+"populate_items.js",type:"automation"},{name:"PopulateWithDate",url:t+"/"+a+"populate_with_date.js",type:"automation"},{name:"PopulateWithItemRef",url:t+"/"+a+"populate_with_item_ref.js",type:"automation"},{name:"PopUpForm",url:t+"/"+a+"popup_form.js",type:"automation"},{name:"QuizForm",url:t+"/"+a+"quiz_form.js",type:"automation"},{name:"QuizNode",url:t+"/"+a+"quiz_node.js",type:"automation"},{name:"Request",url:t+"/"+a+"request_node.js",type:"automation"},{name:"Response",url:t+"/"+a+"response_node.js",type:"automation"},{name:"SmartInput",url:t+"/"+a+"smart_input.js",type:"automation"},{name:"Trigger",url:t+"/"+a+"trigger_node.js",type:"automation"},{name:"TwilioSms",url:t+"/"+a+"twilio_sms.js",type:"automation"},{name:"UpdateItemsApi",url:t+"/"+a+"update_items_api.js",type:"automation"}]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
|
|
107
|
+
"use strict";function e(e,t,a){return[{name:"text",url:t+"/"+e+"text_data.js",type:"gh_element",technology:"angular"},{name:"text_opt",url:t+"/"+e+"text_options_data.js",type:"gh_element",technology:"angular"},{name:"number",url:t+"/"+e+"number_data.js",type:"gh_element",technology:"angular"},{name:"task_board",url:t+"/"+e+"task_board_data.js",type:"gh_element",technology:"angular"},{name:"visualizer",url:t+"/"+e+"visualizer_data.js",type:"gh_element",technology:"angular"},{name:"enterprice_visualizer",url:t+"/"+e+"enterprice_visualizer_data.js",type:"gh_element",technology:"angular"},{name:"email",url:t+"/"+e+"email_data.js",type:"gh_element",technology:"angular"},{name:"date",url:t+"/"+e+"date_data.js",type:"gh_element",technology:"angular"},{name:"radio_button",url:t+"/"+e+"radio_button_data.js",type:"gh_element",technology:"angular"},{name:"radio_icon",url:t+"/"+e+"radio_icon_data.js",type:"gh_element",technology:"angular"},{name:"twilio_phone",url:t+"/"+e+"twilio_phone_data.js",type:"gh_element",technology:"angular"},{name:"twilio_autodialer",url:t+"/"+e+"twillio_autodialer_data.js",type:"gh_element",technology:"angular"},{name:"color",url:t+"/"+e+"color_data.js",type:"gh_element",technology:"angular"},{name:"charts",url:t+"/"+e+"charts_data.js",type:"gh_element",technology:"angular"},{name:"funnel_chart",url:t+"/"+e+"funnel_chart_data.js",type:"gh_element",technology:"angular"},{name:"add_items_from_template",url:t+"/"+e+"add_items_from_template_data.js",type:"gh_element",technology:"angular"},{name:"item_ref",url:t+"/"+e+"itemRef_data.js",type:"gh_element",technology:"angular"},{name:"calendar",js:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/main.js",css:"https://gudhub.com/modules/FullCalendar-Gh-Element/dist/style.css",type:"gh_element",technology:"class"},{name:"data_ref",url:t+"/"+e+"data_ref_data.js",type:"gh_element",technology:"angular"},{name:"table",url:t+"/"+e+"table_data.js",type:"gh_element",technology:"angular"},{name:"tile",url:t+"/"+e+"tile_data.js",type:"gh_element",technology:"angular"},{name:"file",url:t+"/"+e+"file_data.js",type:"gh_element",technology:"angular"},{name:"image",url:t+"/"+e+"image_data.js",type:"gh_element",technology:"angular"},{name:"text_editor",url:t+"/"+e+"text_editor_data.js",type:"gh_element",technology:"angular"},{name:"tinymse",url:t+"/"+e+"tinymse_data.js",type:"gh_element",technology:"angular"},{name:"duration",url:t+"/"+e+"duration_data.js",type:"gh_element",technology:"angular"},{name:"user",url:t+"/"+e+"user_data.js",type:"gh_element",technology:"angular"},{name:"app",url:t+"/"+e+"application_data.js",type:"gh_element",technology:"angular"},{name:"field",url:t+"/"+e+"field_data.js",type:"gh_element",technology:"angular"},{name:"available",url:t+"/"+e+"available_data.js",type:"gh_element",technology:"angular"},{name:"view_list",url:t+"/"+e+"view_list_data.js",type:"gh_element",technology:"angular"},{name:"calculator",url:t+"/"+e+"calculator_data.js",type:"gh_element",technology:"angular"},{name:"string_join",url:t+"/"+e+"string_joiner_data.js",type:"gh_element",technology:"angular"},{name:"signature",url:t+"/"+e+"signature_data.js",type:"gh_element",technology:"angular"},{name:"sendEmail",url:t+"/"+e+"send_email_data.js",type:"gh_element",technology:"angular"},{name:"boolean",url:t+"/"+e+"boolean_data.js",type:"gh_element",technology:"angular"},{name:"product_gallery",url:t+"/"+e+"product_gallery_data.js",type:"gh_element",technology:"angular"},{name:"online_inventory",url:t+"/"+e+"online_inventory_data.js",type:"gh_element",technology:"angular"},{name:"3d_edges",url:t+"/"+e+"3d_edges_data.js",type:"gh_element",technology:"angular"},{name:"color_list",url:t+"/"+e+"color_list_data.js",type:"gh_element",technology:"angular"},{name:"go_to_link",url:t+"/"+e+"go_to_link_data.js",type:"gh_element",technology:"angular"},{name:"go_to_view",url:t+"/"+e+"go_to_view_data.js",type:"gh_element",technology:"angular"},{name:"range",url:t+"/"+e+"range_data.js",type:"gh_element",technology:"angular"},{name:"barcode",url:t+"/"+e+"barcode_data.js",type:"gh_element",technology:"angular"},{name:"item_remote_add",url:t+"/"+e+"item_remote_add_data.js",type:"gh_element",technology:"angular"},{name:"item_remote_update",url:t+"/"+e+"item_remote_update_data.js",type:"gh_element",technology:"angular"},{name:"timeline",url:t+"/"+e+"timeline_data.js",type:"gh_element",technology:"angular"},{name:"delete_item",url:t+"/"+e+"delete_action.js",type:"gh_element",technology:"angular"},{name:"print_doc",url:t+"/"+e+"print_doc_action.js",type:"gh_element",technology:"angular"},{name:"open_item",url:t+"/"+e+"open_item_action.js",type:"gh_element",technology:"angular"},{name:"edit_template",url:t+"/"+e+"edit_template_action.js",type:"gh_element",technology:"angular"},{name:"open_app",url:t+"/"+e+"open_app_action.js",type:"gh_element",technology:"angular"},{name:"user_settings",url:t+"/"+e+"user_settings_action.js",type:"gh_element",technology:"angular"},{name:"app_sharing",url:t+"/"+e+"sharing_action.js",type:"gh_element",technology:"angular"},{name:"app_constructor",url:t+"/"+e+"app_constructor_action.js",type:"gh_element",technology:"angular"},{name:"export_csv",url:t+"/"+e+"export_csv.js",type:"gh_element",technology:"angular"},{name:"import_csv",url:t+"/"+e+"import_csv.js",type:"gh_element",technology:"angular"},{name:"add_items",url:t+"/"+e+"add_items_action.js",type:"gh_element",technology:"angular"},{name:"update_items",url:t+"/"+e+"update_items_action.js",type:"gh_element",technology:"angular"},{name:"install_app",url:t+"/"+e+"install_app_action.js",type:"gh_element",technology:"angular"},{name:"search_action",url:t+"/"+e+"search_action.js",type:"gh_element",technology:"angular"},{name:"filter_table",url:t+"/"+e+"filter_table_action.js",type:"gh_element",technology:"angular"},{name:"slider",url:t+"/"+e+"slider_data.js",type:"gh_element",technology:"angular"},{name:"clone_item",url:t+"/"+e+"clone_item_action.js",type:"gh_element",technology:"angular"},{name:"close",url:t+"/"+e+"close_action.js",type:"gh_element",technology:"angular"},{name:"phone",url:t+"/"+e+"phone_data.js",type:"gh_element",technology:"angular"},{name:"link",url:t+"/"+e+"link_data.js",type:"gh_element",technology:"angular"},{name:"sheduling",url:t+"/"+e+"sheduling_data.js",type:"gh_element",technology:"angular"},{name:"qrcode",url:t+"/"+e+"qrcode_data.js",type:"gh_element",technology:"angular"},{name:"graph2d",url:t+"/"+e+"graph2d_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool",url:t+"/"+e+"quote_tool_data.js",type:"gh_element",technology:"angular"},{name:"cards",url:t+"/"+e+"cards_data.js",type:"gh_element",technology:"angular"},{name:"jsonConstructor",url:t+"/"+e+"json_constructor_data.js",type:"gh_element",technology:"angular"},{name:"button",js:"https://gudhub.com/modules/button_action/button_action.js",type:"gh_element",technology:"class"},{name:"editorjs",js:"https://gudhub.com/modules/Editor-Js/dist/main.js",css:"https://gudhub.com/modules/Editor-Js/dist/style.css",type:"gh_element",technology:"class"},{name:"filter_advanced",url:t+"/"+e+"filter_advanced_data.js",type:"gh_element",technology:"angular"},{name:"code_editor",url:t+"/"+e+"code_editor_data.js",type:"gh_element",technology:"angular"},{name:"icon",url:t+"/"+e+"icon_data.js",type:"gh_element",technology:"angular"},{name:"quoteRequest",url:t+"/"+e+"quote_request_data.js",type:"gh_element",technology:"angular"},{name:"view_container",url:t+"/"+e+"view_container_data.js",type:"gh_element",technology:"angular"},{name:"element_ref",url:t+"/"+e+"element_ref_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool_objects_renderer",url:t+"/"+e+"quote_tool_objects_renderer_data.js",type:"gh_element",technology:"angular"},{name:"quote_tool_objects_renderer_generator",url:t+"/"+e+"quote_tool_objects_renderer_generator_data.js",type:"gh_element",technology:"angular"},{name:"trigger",url:t+"/"+e+"trigger_data.js",type:"gh_element",technology:"angular"},{name:"voting",url:t+"/"+e+"voting_data.js",type:"gh_element",technology:"angular"},{name:"view_tabs",url:t+"/"+e+"view_tabs.js",type:"gh_element",technology:"angular"},{name:"filter_tabs",url:t+"/"+e+"filter_tabs.js",type:"gh_element",technology:"angular"},{name:"gps_coords",url:t+"/"+e+"gps_coords.js",type:"gh_element",technology:"angular"},{name:"google_map",url:t+"/"+e+"google_map_data.js",type:"gh_element",technology:"angular"},{name:"data_migrations",url:t+"/"+e+"data_migrations.js",type:"gh_element",technology:"angular"},{name:"additional_settings",url:t+"/"+e+"gh_additional_settings_data.js",type:"gh_element",technology:"angular"},{name:"send_request",url:t+"/"+e+"send_request_data.js",type:"gh_element",technology:"angular"},{name:"webcam",url:t+"/"+e+"webcam_data.js",type:"gh_element",technology:"angular"},{name:"json_viewer",url:t+"/"+e+"json_viewer_data.js",type:"gh_element",technology:"angular"},{name:"notifications",url:t+"/"+e+"notifications_data.js",type:"gh_element",technology:"angular"},{name:"api",url:t+"/"+e+"api_data.js",type:"gh_element",technology:"angular"},{name:"smart_input",url:t+"/"+e+"smart_input_data.js",type:"gh_element",technology:"angular"},{name:"json_editor",url:t+"/"+e+"json_editor_data.js",type:"gh_element",technology:"angular"},{name:"grapes_html_editor",url:t+"/"+e+"grapes_html_editor_data.js",type:"gh_element",technology:"angular"},{name:"quiz",url:t+"/"+e+"quiz_data.js",type:"gh_element",technology:"angular"},{name:"markdown_viewer",url:t+"/"+e+"markdown_viewer_data.js",type:"gh_element",technology:"angular"},{name:"password_input",url:t+"/"+e+"password_input_data.js",type:"gh_element",technology:"angular"},{name:"vs_code",url:t+"/"+e+"vs_code_data.js",type:"gh_element",technology:"angular"},{name:"nested_list",js:"https://gudhub.com/modules/Nested-List/dist/main.js",css:"https://gudhub.com/modules/Nested-List/dist/style.css",type:"gh_element",technology:"class"},{name:"countertop_smart_quote",url:t+"/"+e+"countertop_smart_quote_data.js",type:"gh_element",technology:"angular"},{name:"markdown_viewer_web_component",js:"https://gudhub.com/modules/markdown-it-gh-element/dist/main.js",css:"https://gudhub.com/modules/markdown-it-gh-element/dist/style.css",type:"gh_element",technology:"class"},{name:"API",url:t+"/"+a+"api_node.js",type:"automation"},{name:"Calculator",url:t+"/"+a+"calculator.js",type:"automation"},{name:"CompareItems",url:t+"/"+a+"compare_items.js",type:"automation"},{name:"Constants",url:t+"/"+a+"constants.js",type:"automation"},{name:"CreateFiles",url:t+"/"+a+"create_files.js",type:"automation"},{name:"CreateItemsApi",url:t+"/"+a+"create_item_api.js",type:"automation"},{name:"FaceDetector",url:t+"/"+a+"face_detector.js",type:"automation"},{name:"FileDuplicate",url:t+"/"+a+"file_duplicate.js",type:"automation"},{name:"Filter",url:t+"/"+a+"filter_node.js",type:"automation"},{name:"GetItemByItemRef",url:t+"/"+a+"get_item_by_item_ref.js",type:"automation"},{name:"GetItems",url:t+"/"+a+"get_items.js",type:"automation"},{name:"GhElementNode",url:t+"/"+a+"gh_element_node.js",type:"automation"},{name:"IfCondition",url:t+"/"+a+"if_condition.js",type:"automation"},{name:"ItemConstructor",url:t+"/"+a+"item_constructor.js",type:"automation"},{name:"ItemDestructor",url:t+"/"+a+"item_destructor.js",type:"automation"},{name:"JSONScheme",url:t+"/"+a+"json_scheme.js",type:"automation"},{name:"MergeItems",url:t+"/"+a+"merge_items.js",type:"automation"},{name:"MessageConstructor",url:t+"/"+a+"message_constructor.js",type:"automation"},{name:"ObjectToItem",url:t+"/"+a+"obj_to_item.js",type:"automation"},{name:"ObjectConstructor",url:t+"/"+a+"object_constructor.js",type:"automation"},{name:"ObjectDestructor",url:t+"/"+a+"object_destructor.js",type:"automation"},{name:"PopulateElement",url:t+"/"+a+"populate_element.js",type:"automation"},{name:"PopulateItems",url:t+"/"+a+"populate_items.js",type:"automation"},{name:"PopulateWithDate",url:t+"/"+a+"populate_with_date.js",type:"automation"},{name:"PopulateWithItemRef",url:t+"/"+a+"populate_with_item_ref.js",type:"automation"},{name:"PopUpForm",url:t+"/"+a+"popup_form.js",type:"automation"},{name:"QuizForm",url:t+"/"+a+"quiz_form.js",type:"automation"},{name:"QuizNode",url:t+"/"+a+"quiz_node.js",type:"automation"},{name:"Request",url:t+"/"+a+"request_node.js",type:"automation"},{name:"Response",url:t+"/"+a+"response_node.js",type:"automation"},{name:"SmartInput",url:t+"/"+a+"smart_input.js",type:"automation"},{name:"Trigger",url:t+"/"+a+"trigger_node.js",type:"automation"},{name:"TwilioSMS",url:t+"/"+a+"twilio_sms.js",type:"automation"},{name:"UpdateItemsApi",url:t+"/"+a+"update_items_api.js",type:"automation"},{name:"GoogleCalendar",url:t+"/"+a+"google_calendar.js",type:"automation"}]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
|
|
108
108
|
},{}],"CSHe":[function(require,module,exports) {
|
|
109
109
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Storage=void 0;var t=e(require("./ModulesList.js"));function e(t){return t&&t.__esModule?t:{default:t}}function r(t){return u(t)||s(t)||i(t)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function s(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t){if(Array.isArray(t))return a(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function o(t,e,r,n,i,s,u){try{var a=t[s](u),o=a.value}catch(p){return void r(p)}a.done?e(o):Promise.resolve(o).then(n,i)}function p(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var s=t.apply(e,r);function u(t){o(s,n,i,u,a,"next",t)}function a(t){o(s,n,i,u,a,"throw",t)}u(void 0)})}}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function d(t,e,r){return e&&v(t.prototype,e),r&&v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var y=function(){function e(r,n,i){h(this,e),this.apps_list=[],this.users_list=[],this.user={},this.modulesList=(0,t.default)(r,n,i),this.ghComponentsPromises=[]}return d(e,[{key:"getMainStorage",value:function(){return this}},{key:"getAppsList",value:function(){return this.apps_list}},{key:"getUser",value:function(){return this.user}},{key:"getUsersList",value:function(){return this.users_list}},{key:"getModulesList",value:function(t){return void 0===t?this.modulesList:this.modulesList.filter(function(e){return e.type===t})}},{key:"getModuleUrl",value:function(t){return this.modulesList.find(function(e){return e.name==t})}},{key:"setUser",value:function(t){this.user=t,this.users_list.push(t)}},{key:"updateUser",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.avatar_128&&(t.avatar_128=t.avatar_128+"?"+(new Date).getTime()),t.avatar_512&&(t.avatar_512=t.avatar_512+"?"+(new Date).getTime()),this.user=l(l({},this.user),t),this.users_list=this.users_list.filter(function(e){return e.user_id!=t.user_id}),this.users_list.push(this.user)}},{key:"unsetUser",value:function(){this.user={}}},{key:"getApp",value:function(t){for(var e=0;e<this.apps_list.length;e++)if(this.apps_list[e].app_id==t)return this.apps_list[e]}},{key:"unsetApps",value:function(){this.apps_list=[]}},{key:"updateApp",value:function(t){return this.apps_list=this.apps_list.map(function(e){return e.app_id==t.app_id?t:e}),this.apps_list}},{key:"deleteApp",value:function(t){return this.apps_list=this.apps_list.filter(function(e){return e.app_id!=t}),this.apps_list}},{key:"updateItemsInApp",value:function(){var t=p(regeneratorRuntime.mark(function t(e,r){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getApp(r);case 2:return(n=t.sent)&&(n.items_list=updateItems(e,n.items_list,this.pipeService.emit.bind(this.pipeService),r),this.updateApp(n)),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()},{key:"addItemsToApp",value:function(){var t=p(regeneratorRuntime.mark(function t(e,n){var i,s;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getApp(n);case 2:return(i=t.sent)&&((s=i.items_list).push.apply(s,r(e)),this.updateApp(i),this.pipeService.emit("gh_items_update",{app_id:n},e)),t.abrupt("return",i);case 5:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()},{key:"deleteItemsInApp",value:function(){var t=p(regeneratorRuntime.mark(function t(e,r){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getApp(r);case 2:return(n=t.sent)&&(n.items_list=n.items_list.filter(function(t){return!e.find(function(e){return e.item_id==t.item_id})}),this.updateApp(n)),t.abrupt("return",n);case 5:case"end":return t.stop()}},t,this)}));return function(e,r){return t.apply(this,arguments)}}()}]),e}();exports.Storage=y;
|
|
110
110
|
},{"./ModulesList.js":"FJWL"}],"p58b":[function(require,module,exports) {
|
|
@@ -169,7 +169,7 @@ var e,t=arguments[3],n=require("process");!function(n){if("object"==typeof expor
|
|
|
169
169
|
},{}],"nKaW":[function(require,module,exports) {
|
|
170
170
|
"use strict";function e(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function r(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e(Object(n),!0).forEach(function(e){c(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function t(e){return a(e)||i(e)||u(e)||n()}function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,r){if(e){if("string"==typeof e)return o(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,r):void 0}}function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function a(e){if(Array.isArray(e))return o(e)}function o(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function s(e,r,t,n,u,i,a){try{var o=e[i](a),c=o.value}catch(s){return void t(s)}o.done?r(c):Promise.resolve(c).then(n,u)}function p(e){return function(){var r=this,t=arguments;return new Promise(function(n,u){var i=e.apply(r,t);function a(e){s(i,n,u,a,o,"next",e)}function o(e){s(i,n,u,a,o,"throw",e)}a(void 0)})}}function f(e,n,u,i){function a(e,r,t){return o.apply(this,arguments)}function o(){return(o=p(regeneratorRuntime.mark(function e(r,t,n){var u;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=null,"array"!==r.type){e.next=13;break}if(!Number(r.is_static)){e.next=10;break}return e.t0=Array,e.next=6,b(r.childs,t,n);case 6:e.t1=e.sent,u=new e.t0(e.t1),e.next=13;break;case 10:return e.next=12,s(r,t,n);case 12:u=e.sent;case 13:if("object"!==r.type){e.next=23;break}if(!Number(r.current_item)){e.next=20;break}return e.next=17,l(r,t);case 17:u=e.sent,e.next=23;break;case 20:return e.next=22,b(r.childs,t,n);case 22:u=e.sent;case 23:if("property"!==r.type){e.next=27;break}return e.next=26,y(r,t,n);case 26:u=e.sent;case 27:return e.abrupt("return",c({},r.property_name,u));case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}function s(e,r,t){return f.apply(this,arguments)}function f(){return(f=p(regeneratorRuntime.mark(function e(r,n,i){var a,o,c,s,f;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.gudhub.getApp(Number(r.app_id));case 2:return a=e.sent,e.next=5,g(r.filter,a.items_list,i,n);case 5:return o=e.sent,r.isSortable&&r.field_id_to_sort&&""!==r.field_id_to_sort&&(c=o.flatMap(function(e){var t=e.fields.find(function(e){return e.field_id==r.field_id_to_sort});return t&&""!=t.field_value?e:[]}),s=o.filter(function(e){if(!c.includes(e))return e}),c=c.sort(function(e,t){return"desc"==r.sortType?t.fields.find(function(e){return e.field_id==r.field_id_to_sort}).field_value-e.fields.find(function(e){return e.field_id==r.field_id_to_sort}).field_value:e.fields.find(function(e){return e.field_id==r.field_id_to_sort}).field_value-t.fields.find(function(e){return e.field_id==r.field_id_to_sort}).field_value}),o=[].concat(t(c),t(s))),f=o.map(function(){var e=p(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",b(r.childs,t,a));case 1:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}()),e.abrupt("return",Promise.all(f));case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function l(e,r){return d.apply(this,arguments)}function d(){return(d=p(regeneratorRuntime.mark(function e(r,t){var n,i;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.gudhub.getApp(r.app_id);case 2:return n=e.sent,i=n.items_list||[],e.abrupt("return",b(r.childs,t||i[0],n));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function b(e,r,t){return m.apply(this,arguments)}function m(){return(m=p(regeneratorRuntime.mark(function e(t,n,u){var i,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.map(function(){var e=p(regeneratorRuntime.mark(function e(r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a(r,n,u));case 1:case"end":return e.stop()}},e)}));return function(r){return e.apply(this,arguments)}}());case 2:return i=e.sent,e.next=5,Promise.all(i);case 5:return o=e.sent,e.abrupt("return",o.reduce(function(e,t){return r(r({},e),t)},{}));case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e,r,t){return _.apply(this,arguments)}function _(){return(_=p(regeneratorRuntime.mark(function e(r,n,i){var a,o,c,s,p;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.property_type,e.next="static"===e.t0?3:"variable"===e.t0?4:"field_id"===e.t0?9:"function"===e.t0?10:(e.t0,20);break;case 3:return e.abrupt("return",r.static_field_value);case 4:e.t1=r.variable_type,e.next="app_id"===e.t1?7:(e.t1,8);break;case 7:return e.abrupt("return",i.app_id);case 8:return e.abrupt("return","".concat(i.app_id,".").concat(n.item_id));case 9:return e.abrupt("return",r.field_id);case 10:if("function"!=typeof r.function){e.next=15;break}return a=r.function.apply(r,[n,i].concat(t(r.args))),e.abrupt("return",a);case 15:return o=new Function("item, app","return (async "+r.function+")(item, app)"),e.next=18,o(n,i);case 18:return c=e.sent,e.abrupt("return",c);case 20:if(!Boolean(Number(r.interpretation))){e.next=27;break}return e.next=23,u.gudhub.getInterpretationById(Number(i.app_id),Number(n.item_id),Number(r.field_id),"value");case 23:return s=e.sent,e.abrupt("return",s);case 27:return e.next=29,u.gudhub.getFieldValue(Number(i.app_id),Number(n.item_id),Number(r.field_id));case 29:return p=e.sent,e.abrupt("return",p);case 31:case"end":return e.stop()}},e)}))).apply(this,arguments)}function h(e,r,t,n,u){return v.apply(this,arguments)}function v(){return(v=p(regeneratorRuntime.mark(function e(r,n,a,o,c){var s;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.gudhub.prefilter(JSON.parse(JSON.stringify(r)),n,a,o,i);case 2:return s=e.sent,e.abrupt("return",u.gudhub.filter(c,[].concat(t(s),t(r))));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}function g(){return x.apply(this,arguments)}function x(){return(x=p(regeneratorRuntime.mark(function e(){var r,n,u,i,a=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>0&&void 0!==a[0]?a[0]:[],n=a.length>1&&void 0!==a[1]?a[1]:[],u=a.length>2&&void 0!==a[2]?a[2]:{},i=a.length>3&&void 0!==a[3]?a[3]:{},e.abrupt("return",r.length?h(r,u.app_id,u.app_id,i.item_id,n):t(n));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}return a(e,n)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.compiler=f;
|
|
171
171
|
},{}],"zqOZ":[function(require,module,exports) {
|
|
172
|
-
"use strict";function e(e,n,i,t,a,o,r){try{var
|
|
172
|
+
"use strict";function e(e,n,i,t,a,o,r){try{var c=e[o](r),p=c.value}catch(u){return void i(u)}c.done?n(p):Promise.resolve(p).then(t,a)}function n(n){return function(){var i=this,t=arguments;return new Promise(function(a,o){var r=n.apply(i,t);function c(n){e(r,a,o,c,p,"next",n)}function p(n){e(r,a,o,c,p,"throw",n)}c(void 0)})}}function i(e){return(i="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)}function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function o(e,n,i){return n&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var r=function(){function e(n){t(this,e),this.gudhub=n,this.appsConnectingMap={apps:[],fields:[],items:[],views:[]}}return o(e,[{key:"createAppsFromTemplate",value:function(e,n,t){var a=this,o=this;return new Promise(function(r){var c=100/(6*e.apps.length),p=0;o.createApps(e,function(e){p+=1,t.call(a,{percent:p*c,status:e})}).then(function(e){o.createItems(e,n,function(e){"string"==typeof e?(p+=1,t.call(a,{percent:p*c,status:e})):"object"===i(e)&&t.call(a,{status:"Done",apps:e})}).then(function(){r()})})})}},{key:"createItems",value:function(e,n,i){var t=this;return new Promise(function(a){var o=n||1e5,r=t,c=[],p=[];e.forEach(function(e){p.push(new Promise(function(n){r.gudhub.getApp(r._searchOldAppId(e.app_id,r.appsConnectingMap.apps)).then(function(a){i&&i.call(t,"GET APP: ".concat(a.app_name," (Items steps)"));var p=JSON.parse(JSON.stringify(a)),u=p.items_list.map(function(e){return{index_number:e.index_number,item_id:0,fields:[]}}).filter(function(e,n){return n<=o});r.gudhub.addNewItems(e.app_id,u).then(function(o){i&&i.call(t,"ADD NEW ITEMS: ".concat(a.app_name," (Items steps)")),0===o.length&&(i&&i.call(t,"NO ITEMS TO REPLACE VALUE: ".concat(a.app_name," (Items steps)")),n()),e.items_list=o,r._updateMap(e.items_list,p.items_list),r._addFieldValue(p.items_list,e.items_list,r.appsConnectingMap),c.push(e),r.appsConnectingMap.apps.length===c.length&&(c.forEach(function(e){e.items_list.forEach(function(e){e.fields.forEach(function(e){r.appsConnectingMap.fields.forEach(function(n){e.field_id===n.old_field_id&&(e.field_id=n.new_field_id,e.element_id=n.new_field_id)})})})}),r.deleteField(c),r.replaceValue(c,r.appsConnectingMap).then(function(){i&&i.call(t,"REPLACE VALUE: ".concat(a.app_name," (Items steps)")),c.forEach(function(e){var i=e.items_list.map(function(e){return e.fields.forEach(function(e){delete e.data_id}),e});r.gudhub.updateItems(e.app_id,i).then(function(){n()})})}))})})}))}),Promise.all(p).then(function(){var n=e.map(function(e){return e.app_id});i.call(t,n),a()})})}},{key:"deleteField",value:function(e){e.forEach(function(e){e.items_list.forEach(function(n){n.fields=n.fields.filter(function(n){return e.field_list.findIndex(function(e){return e.field_id==n.field_id})>-1})})})}},{key:"replaceValue",value:function(e,i){var t=this;return new Promise(function(){var a=n(regeneratorRuntime.mark(function n(a){var o,r;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:o=[],r=t,e.forEach(function(e){e.field_list.forEach(function(n){"item_ref"===n.data_type&&r._replaceValueItemRef(e,n,i),o.push(new Promise(function(i){r.gudhub.ghconstructor.getInstance(n.data_type).then(function(t){return void 0===t?(console.log("ERROR WHILE GETTING INSTANCE OF ",n.data_type),void i({type:n.data_type})):"file"==t.getTemplate().constructor?r.gudhub.util.fileInstallerHelper(e.app_id,e.items_list,n.field_id).then(function(e){i(e)}):void("document"==t.getTemplate().constructor?r.documentInstallerHelper(e.app_id,e.items_list,n.field_id).then(function(e){i(t)}):i(t))})}))})}),o.length>0?Promise.all(o).then(function(e){a(e)}):a(result);case 4:case"end":return n.stop()}},n)}));return function(e){return a.apply(this,arguments)}}())}},{key:"documentInstallerHelper",value:function(e,i,t){var a=this;return new Promise(function(){var o=n(regeneratorRuntime.mark(function n(o){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:i.forEach(function(n){var i=n.item_id,r=n.fields.find(function(e){return e.element_id===t});r&&r.field_value&&r.field_value.length>0&&a.gudhub.getDocument({_id:r.field_value}).then(function(n){a.gudhub.createDocument({app_id:e,item_id:i,element_id:t,data:n.data}).then(function(e){r.field_value=e._id,o()})})});case 1:case"end":return n.stop()}},n)}));return function(e){return o.apply(this,arguments)}}())}},{key:"_replaceValueItemRef",value:function(e,n,i){e.items_list.forEach(function(e){e.fields.forEach(function(e){if(e.field_id===n.field_id&&e.field_value){var t=e.field_value.split(",");t.forEach(function(e,n){var a=e.split(".");i.apps.forEach(function(e){a[0]==e.old_app_id&&(a[0]=e.new_app_id)}),i.items.forEach(function(e){a[1]==e.old_item_id&&(a[1]=e.new_item_id)}),t[n]=a.join(".")}),e.field_value=t.join(",")}})})}},{key:"_addFieldValue",value:function(e,n,i){n.forEach(function(n){i.items.forEach(function(i){n.item_id===i.new_item_id&&e.forEach(function(e){i.old_item_id===e.item_id&&(n.fields=e.fields)})})})}},{key:"_updateMap",value:function(e,n){var i=this;n.forEach(function(n){e.forEach(function(e){n.index_number===e.index_number&&i.appsConnectingMap.items.push({old_item_id:n.item_id,new_item_id:e.item_id})})})}},{key:"_searchOldAppId",value:function(e,n){var i=0;return n.forEach(function(n){n.new_app_id===e&&(i=n.old_app_id)}),i}},{key:"createApps",value:function(e,n){var i=this,t=this,a={step_size:100/(3*e.apps.length),apps:[]};return new Promise(function(o){var r={},c=[],p=[];e.apps.forEach(function(u){t.gudhub.getApp(u).then(function(u){n&&n.call(i,"GET APP: ".concat(u.app_name," (App steps)"));var l=JSON.parse(JSON.stringify(u));r[l.app_id]=l,a.apps.push(l.icon);var f=t.prepareAppTemplate(l);f.app_name=f.app_name+" New",f.privacy=1,e.data_to_change&&(e.data_to_change.name&&(f.app_name=e.data_to_change.name),e.data_to_change.icon&&(f.icon=e.data_to_change.icon)),t.resetViewsIds(f),t.gudhub.createNewApp(f).then(function(a){n&&n.call(i,"CREATE NEW APP: ".concat(u.app_name," (App steps)")),c.push(a),t.mapApp(l,a,t.appsConnectingMap),e.apps.length==c.length&&(t.connectApps(c,t.appsConnectingMap,r),c.forEach(function(a){t.gudhub.updateApp(a).then(function(t){n&&n.call(i,"UPDATE APP: ".concat(u.app_name," (App steps)")),p.push(t),e.apps.length==p.length&&o(p)})}))})})})})}},{key:"mapApp",value:function(e,n,i){i.apps.push({old_app_id:e.app_id,new_app_id:n.app_id,old_view_init:e.view_init,new_view_init:n.view_init}),e.field_list.forEach(function(e){n.field_list.forEach(function(n){e.name_space==n.name_space&&i.fields.push({name_space:e.name_space,old_field_id:e.field_id,new_field_id:n.field_id})})}),e.views_list.forEach(function(e){n.views_list.forEach(function(n){e.name==n.name&&i.views.push({name:e.name,old_view_id:e.view_id,new_view_id:n.view_id})})})}},{key:"crawling",value:function(e,n){var i=null===e?[]:Object.keys(e),t=this;i.length>0&&i.forEach(function(i){var a=e[i];void 0!==a&&"string"!=typeof e&&(n(i,a,e),t.crawling(a,n))})}},{key:"resetViewsIds",value:function(e){e.view_init=0,this.crawling(e.views_list,function(e,n,i){"view_id"!=e&&"container_id"!=e||(i[e]=0)})}},{key:"connectApps",value:function(e,n,i){var t=this;return e.forEach(function(e){n.apps.forEach(function(i){e.view_init===i.new_view_init&&n.views.forEach(function(n){i.old_view_init===n.old_view_id&&(e.view_init=n.new_view_id)})}),t.crawling(e.field_list,function(a,o,r){if(-1!==a.indexOf("field_id")||-1!==a.indexOf("FieldId")||-1!==a.indexOf("destination_field")){var c=String(o).split(","),p=[];n.fields.forEach(function(e){c.forEach(function(n){n==e.old_field_id&&p.push(e.new_field_id)})}),p.length&&(r[a]=p.join(","))}if(-1==a.indexOf("app_id")&&-1==a.indexOf("AppId")&&-1==a.indexOf("destination_app")||n.apps.forEach(function(e){o==e.old_app_id&&(r[a]=e.new_app_id)}),-1!==a.indexOf("view_id")&&n.views.forEach(function(e){o==e.old_view_id&&(r[a]=e.new_view_id)}),-1!==a.indexOf("src")&&isFinite(o)){var u=n.apps.find(function(n){return n.new_app_id===e.app_id}).old_app_id,l=t.findPath(i[u].views_list,"container_id",o);r[a]="".concat(t.getValueByPath(e.views_list,l,"container_id"))}})}),e}},{key:"getValueByPath",value:function(e,n,i){var t=e;return n.split(".").forEach(function(e){t=t[e]}),t[i]}},{key:"findPath",value:function(e,n,t){var a=!1,o=!1,r=[];return this.crawling(e,function(e,c,p){o&&r.reverse().forEach(function(e){o&&(e.delete=!0,e.parent===p&&(o=!1,(r=r.filter(function(e){return!e.delete})).reverse()))}),a||("object"===i(p[e])&&r.push({prop:e,parent:p}),c==t&&n===e?a=!0:Object.keys(p).pop()===e&&"object"!==i(p[e])&&(o=!0))}),r.map(function(e){return e.prop}).join(".")}},{key:"prepareAppTemplate",value:function(e){var n=JSON.parse(JSON.stringify(e));return this.crawling(n.views_list,function(e,n,i){"element_id"==e&&(i.element_id=-Number(n),i.create_element=-Number(n))}),n.field_list.forEach(function(e){e.create_field=-Number(e.field_id),e.element_id=-Number(e.field_id),e.field_id=-Number(e.field_id),e.field_value=""}),n.items_list=[],delete n.app_id,delete n.icon.id,delete n.group_id,delete n.trash,delete n.last_update,delete n.file_list,n}}]),e}();exports.default=r;
|
|
173
173
|
},{}],"E7yc":[function(require,module,exports) {
|
|
174
174
|
"use strict";function e(e){return i(e)||r(e)||n(e)||t()}function t(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function i(e){if(Array.isArray(e))return o(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.FileHelper=void 0;var f=function(){function t(e){u(this,t),this.gudhub=e}return a(t,[{key:"fileInstallerHelper",value:function(t,n,r){var i=this;return new Promise(function(o){var u=[[]],l=Promise.resolve(),a=[];n.forEach(function(e){var n=e.item_id,i=e.fields.find(function(e){return e.element_id===r});i&&i.field_value&&i.field_value.split(".").forEach(function(e){var i={source:e,destination:{app_id:t,item_id:n,element_id:r}};10!==u[u.length-1].length?u[u.length-1].push(i):u.push([i])})}),u.forEach(function(t){l=l.then(function(){return i.gudhub.duplicateFile(t)}).then(function(t){a=[].concat(e(a),e(t))})}),l.then(function(){n.forEach(function(e){var t=e.item_id,n=e.fields.find(function(e){return e.element_id===r});n&&n.field_value&&(n.field_value="",a.forEach(function(e){e.item_id===t&&(n.field_value=n.field_value.split(",").filter(function(e){return e}).concat(e.file_id).join(","))}))}),o()})})}}]),t}();exports.FileHelper=f;
|
|
175
175
|
},{}],"AefJ":[function(require,module,exports) {
|