isite 2021.12.6 → 2021.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1116,7 +1116,7 @@ site.onGET('/files/file1.zip', (req, res) => {
1116
1116
  $scope.changeLang = function (lang) {
1117
1117
  $http({
1118
1118
  method: 'POST',
1119
- url: '/@language/change',
1119
+ url: '/x-language/change',
1120
1120
  data: { name: lang },
1121
1121
  }).then(function (response) {
1122
1122
  if (response.data.done) {
@@ -21,7 +21,7 @@ form p {
21
21
  color: var(--form-color);
22
22
  }
23
23
  p {
24
- word-break: break-all;
24
+ word-break: break-word;
25
25
  }
26
26
  label {
27
27
  font-weight: var(--label-font-weight);
@@ -1,113 +1,139 @@
1
1
  .print-only {
2
- visibility: collapse;
2
+ visibility: collapse;
3
3
  }
4
4
 
5
5
  .page-a4 {
6
- height: 297mm !important;
7
- padding: 2mm !important;
8
- margin: 0mm !important;
9
- background: white !important;
10
- color: #000 !important;
11
- page-break-before: always !important;
12
- page-break-after: always !important;
13
- page-break-inside: avoid !important;
6
+ display: inline-block;
7
+ height: 297mm !important;
8
+ width: 210mm !important;
9
+ padding: 2mm !important;
10
+ margin: 0mm !important;
11
+ background: white !important;
12
+ color: #000 !important;
13
+ page-break-before: always !important;
14
+ page-break-after: always !important;
15
+ page-break-inside: avoid !important;
16
+ }
17
+ .width-15-mm {
18
+ min-width: 15mm !important;
19
+ width: 15mm !important;
20
+ white-space: normal;
21
+ max-width: 15mm !important;
22
+ }
23
+ .width-30-mm {
24
+ min-width: 30mm !important;
25
+ width: 30mm !important;
26
+ white-space: normal;
27
+ max-width: 30mm !important;
28
+ }
29
+ .width-60-mm {
30
+ min-width: 60mm !important;
31
+ width: 60mm !important;
32
+ white-space: normal;
33
+ max-width: 60mm !important;
34
+ }
35
+ .width-90-mm {
36
+ min-width: 90mm !important;
37
+ width: 90mm !important;
38
+ white-space: normal;
39
+ max-width: 90mm !important;
14
40
  }
15
41
 
16
42
  .page-width-a4 {
17
- padding: 2mm;
18
- margin: 0mm;
43
+ padding: 2mm;
44
+ margin: 0mm;
19
45
  }
20
46
 
21
47
  body.a4 {
22
- background: white;
23
- color: #000;
48
+ background: white;
49
+ color: #000;
24
50
  }
25
51
  body.a4 {
26
- height: 297mm;
52
+ height: 297mm;
27
53
  }
28
- body.print-mode{
29
- padding: 0px !important;
30
- margin: 2mm !important;
54
+ body.print-mode {
55
+ padding: 0px !important;
56
+ margin: 2mm !important;
31
57
  }
32
58
  body.print-mode .hide {
33
- visibility: visible;
59
+ visibility: visible;
34
60
  }
35
61
  body.print-mode .not-print,
36
62
  body.print-mode .dont-print {
37
- display: none;
63
+ display: none;
38
64
  }
39
65
  body.print-mode .print-only {
40
- visibility: visible;
66
+ visibility: visible;
41
67
  }
42
68
  body.print-mode .table {
43
- table-layout: fixed;
44
- border-collapse: collapse;
45
- border: 1px solid black;
46
- font-size: 8pt;
47
- page-break-inside: avoid;
69
+ table-layout: fixed;
70
+ border-collapse: collapse;
71
+ border: 1px solid black;
72
+ font-size: 8pt;
73
+ page-break-inside: avoid;
48
74
  }
49
75
  body.print-mode .table.wide {
50
- min-width: 206mm !important;
51
- width: 206mm !important;
76
+ min-width: 206mm !important;
77
+ width: 206mm !important;
52
78
  }
53
79
  body.print-mode .table th {
54
- color: #000 !important;
55
- background: #fff !important;
56
- border-collapse: collapse;
80
+ color: #000 !important;
81
+ background: #fff !important;
82
+ border-collapse: collapse;
57
83
  }
58
84
  body.print-mode .table td {
59
- color: #000 !important;
60
- background: #fff !important;
61
- border-collapse: collapse;
85
+ color: #000 !important;
86
+ background: #fff !important;
87
+ border-collapse: collapse;
62
88
  }
63
89
  body.print-mode input,
64
90
  body.print-mode textarea {
65
- font-size: 8pt;
91
+ font-size: 8pt;
66
92
  }
67
93
  body.print-mode .small {
68
- font-size: 6pt;
94
+ font-size: 6pt;
69
95
  }
70
96
 
71
97
  .page {
72
- page-break-before: always;
73
- page-break-after: always;
74
- page-break-inside: avoid !important;
75
- }
76
- @media print {
77
- :root {
78
- --legend-color: #000;
79
- --legend-text-shadow: none;
80
- }
81
-
82
- .page {
83
- /* this section always occupies it's own page or pages. */
84
98
  page-break-before: always;
85
99
  page-break-after: always;
86
100
  page-break-inside: avoid !important;
87
- }
101
+ }
102
+ @media print {
103
+ :root {
104
+ --legend-color: #000;
105
+ --legend-text-shadow: none;
106
+ }
88
107
 
89
- .print-break {
90
- page-break-after: always;
91
- }
108
+ .page {
109
+ /* this section always occupies it's own page or pages. */
110
+ page-break-before: always;
111
+ page-break-after: always;
112
+ page-break-inside: avoid !important;
113
+ }
92
114
 
93
- .print-start {
94
- /* elements always start on the top of a new page. */
95
- page-break-before: always;
96
- }
115
+ .print-break {
116
+ page-break-after: always;
117
+ }
97
118
 
98
- .print-content {
99
- page-break-inside: avoid;
100
- }
119
+ .print-start {
120
+ /* elements always start on the top of a new page. */
121
+ page-break-before: always;
122
+ }
101
123
 
102
- h1,
103
- h2,
104
- h3,
105
- h4,
106
- h5 {
107
- page-break-after: avoid;
108
- }
124
+ .print-content {
125
+ page-break-inside: avoid;
126
+ }
109
127
 
110
- /* @page: first {
128
+ h1,
129
+ h2,
130
+ h3,
131
+ h4,
132
+ h5 {
133
+ page-break-after: avoid;
134
+ }
135
+
136
+ /* @page: first {
111
137
  margin: 0;
112
138
  }
113
139
  @page: blank {
@@ -116,44 +142,44 @@ body.print-mode .small {
116
142
  }
117
143
  } */
118
144
 
119
- @page {
120
- size: A4;
121
- }
145
+ @page {
146
+ size: A4;
147
+ }
122
148
 
123
- @page: right {
124
- @top-right {
125
- content: "";
149
+ @page: right {
150
+ @top-right {
151
+ content: '';
152
+ }
126
153
  }
127
- }
128
154
 
129
- @page: right {
130
- @bottom-right {
131
- content: "";
155
+ @page: right {
156
+ @bottom-right {
157
+ content: '';
158
+ }
132
159
  }
133
- }
134
160
 
135
- @page: left {
136
- @top-left {
137
- content: "";
161
+ @page: left {
162
+ @top-left {
163
+ content: '';
164
+ }
138
165
  }
139
- }
140
166
 
141
- @page: left {
142
- @bottom-left {
143
- content: "Page " counter(page) " of " counter(pages);
167
+ @page: left {
168
+ @bottom-left {
169
+ content: 'Page ' counter(page) ' of ' counter(pages);
170
+ }
144
171
  }
145
- }
146
172
 
147
- a {
148
- font-weight: bolder;
149
- text-decoration: none;
150
- }
173
+ a {
174
+ font-weight: bolder;
175
+ text-decoration: none;
176
+ }
151
177
 
152
- a[href^="http"]:after {
153
- content: " [ " attr(href) " ] ";
154
- }
178
+ a[href^='http']:after {
179
+ content: ' [ ' attr(href) ' ] ';
180
+ }
155
181
 
156
- a[href^="#"]:after {
157
- content: "";
158
- }
182
+ a[href^='#']:after {
183
+ content: '';
184
+ }
159
185
  }
@@ -42,6 +42,7 @@
42
42
  padding: 5px;
43
43
  text-align: center;
44
44
  font-weight: bold;
45
+ white-space: nowrap;
45
46
  }
46
47
 
47
48
  .table.center {
@@ -74,10 +75,3 @@
74
75
  border: none !important;
75
76
  }
76
77
 
77
- @media print {
78
-
79
- table.details {
80
- font-size: 85%;
81
- }
82
-
83
- }
@@ -16,7 +16,7 @@
16
16
 
17
17
  $http({
18
18
  method: 'POST',
19
- url: '/@security/api/user/register',
19
+ url: '/x-security/api/user/register',
20
20
  transformRequest: function (obj) {
21
21
  var str = [];
22
22
  for (var p in obj)
@@ -51,7 +51,7 @@
51
51
 
52
52
  $http({
53
53
  method: 'POST',
54
- url: '/@security/api/user/login',
54
+ url: '/x-security/api/user/login',
55
55
  transformRequest: function (obj) {
56
56
  var str = [];
57
57
  for (var p in obj)
@@ -83,7 +83,7 @@
83
83
 
84
84
  $http({
85
85
  method: 'POST',
86
- url: '/@security/api/user/logout',
86
+ url: '/x-security/api/user/logout',
87
87
  transformRequest: function (obj) {
88
88
  var str = [];
89
89
  for (var p in obj)
@@ -318,10 +318,8 @@
318
318
  op.url = site.handle_url(op.url);
319
319
 
320
320
  if (window.SOCIALBROWSER && window.SOCIALBROWSER.fetchJson) {
321
- console.log(' ( SOCIALBROWSER.fetchJson ) ', op);
322
321
  SOCIALBROWSER.fetchJson(op, (data) => {
323
322
  callback(data);
324
- console.log(' ( SOCIALBROWSER.fetchJson callback ) ', data);
325
323
  });
326
324
  } else {
327
325
  fetch(op.url, {
@@ -431,12 +429,8 @@
431
429
  _num[1] = n2;
432
430
  } else if (n4 && parseInt(n4) > 2) {
433
431
  n4 = 5;
434
- n3 = parseInt(n3);
435
- n3 = n3 * 10;
436
432
  _num[1] = n3 + n4;
437
433
  } else {
438
- n3 = parseInt(n3);
439
- n3 = n3 * 10;
440
434
  _num[1] = n3;
441
435
  }
442
436
  }
@@ -1 +1 @@
1
- (function(e,t,n,r){function o(e){return e?("string"!=typeof e&&(e=e.toString()),e.replace(/[\/\\^$*+?.()\[\]{}]/g,"\\$&")):""}function a(e,t){let n="";return d.forEach(r=>{r.n==e&&(n=r.i0[t])}),n}function l(e,t){let n="";return 11==e?d.forEach(r=>{r.n==e&&(n=r.i0[t])}):12==e?d.forEach(r=>{r.n==e&&(n=r.i0[t])}):(d.forEach(r=>{r.n==e[1]&&(n=r.i0[t])}),d.forEach(r=>{r.n==e[0]&&(e[1]>0&&e[0]>1?n+=f.strings.space[t]+f.strings.and[t]:n+="",n+=r.i1[t])})),n}function s(e,t){let n="";d.forEach(r=>{r.n==e[0]&&(n=r.i2[t]+f.strings.space[t])});let r=l(e.substring(1),t);return r&&(n&&(n+=f.strings.and[t]),n+=r),n}function c(e,t){let n="";d.forEach(r=>{r.n==e[0]&&(n=r.i3[t]+f.strings.space[t])});let r=s(e.substring(1),t);return r&&(n&&(n+=f.strings.and[t]),n+=r),n}function u(e,t){let n=l(e.substring(0,2),t)+f.strings.space[t];1==e[0]?n+=f.strings[10][t]+f.strings.space[t]:n+=f.strings[20][t]+f.strings.space[t];let r=s(e.substring(2),t);return r&&(n+=f.strings.and[t]+r),n}if(String.prototype.test||(String.prototype.test=function(e,t="gium"){try{return new RegExp(e,t).test(this)}catch(e){return!1}}),String.prototype.like||(String.prototype.like=function(e){if(!e)return!1;let t=!1;return e.split("|").forEach(e=>{e=e.split("*"),e.forEach((t,n)=>{e[n]=o(t)}),e=e.join(".*"),this.test("^"+e+"$","gium")&&(t=!0)}),t}),String.prototype.contains||(String.prototype.contains=function(e){let t=!1;return e?(e.split("|").forEach(e=>{e&&this.test("^.*"+o(e)+".*$","gium")&&(t=!0)}),t):t}),"object"==typeof SOCIALBROWSER){if(SOCIALBROWSER.var=SOCIALBROWSER.var||{},SOCIALBROWSER.var.white_list=SOCIALBROWSER.var.white_list||[],t.location.hostname){let e=`*${t.location.hostname}*`,n=!1;SOCIALBROWSER.var.white_list.forEach(t=>{t.url==e&&(n=!0)}),n||(SOCIALBROWSER.var.white_list.push({url:e}),SOCIALBROWSER.call("set_var",{name:"white_list",data:SOCIALBROWSER.var.white_list}))}SOCIALBROWSER.var.blocking=SOCIALBROWSER.var.blocking||{},SOCIALBROWSER.var.blocking.block_ads=!1,SOCIALBROWSER.var.blocking.block_empty_iframe=!1,SOCIALBROWSER.var.blocking.remove_external_iframe=!1,SOCIALBROWSER.var.blocking.skip_video_ads=!1,SOCIALBROWSER.var.blocking.popup=SOCIALBROWSER.var.blocking.popup||{},SOCIALBROWSER.var.blocking.popup.allow_external=!0,SOCIALBROWSER.var.blocking.popup.allow_internal=!0,SOCIALBROWSER.var.blocking.javascript=SOCIALBROWSER.var.blocking.javascript||{},SOCIALBROWSER.var.blocking.javascript.block_window_open=!1,SOCIALBROWSER.var.blocking.javascript.block_eval=!1,SOCIALBROWSER.var.blocking.javascript.block_console_output=!1}let f={render:function(e,n){let r=t.querySelector(e);return r?Mustache.render(r.innerHTML,n):""},html:function(e,t){return Mustache.render(e,t)},getUniqueObjects:function(e,t){const n=e.map(e=>e[t]).map((e,t,n)=>n.indexOf(e)===t&&t).filter(t=>e[t]).map(t=>e[t]);return n},$:function(e){let n=t.querySelectorAll(e);return n}},p=999999;f.showModal=function(t){r(t).click(()=>{r("popup").hide()}),p++;let n=f.$(t);if(0===n.length)return;n[0].style.zIndex=p,n[0].style.display="block";let o=n[0].getAttribute("fixed");""!==o&&n[0].addEventListener("click",function(){f.hideModal(t)});let a=f.$(t+" i-control input");a.length>0&&a[0].focus(),f.$(t+" .close").forEach(e=>{e.addEventListener("click",function(){f.hideModal(t)})}),f.$(t+" .modal-header").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})}),f.$(t+" .modal-body").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})}),f.$(t+" .modal-footer").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})})},f.hideModal=function(e){r("popup").hide();let t=f.$(e);t.length>0&&(t[0].style.display="none")},f.eventList=[],f.on=function(e,t){t=t||function(){},f.eventList.push({name:e,callback:t})},f.call=function(e,t){for(var n=0;n<f.eventList.length;n++){var r=f.eventList[n];r.name==e&&r.callback(t)}},f.translate=function(e,t){"string"==typeof e&&(e={text:e,lang:"ar"}),e.url=`https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=${e.lang}&dt=t&dt=bd&dj=1&q=${e.text}`,f.getData(e,t)},f.getData=function(e,t,n){t=t||function(){},n=n||function(){},"string"==typeof e&&(e={url:e}),e.headers=e.headers||{Accept:"application/json","Content-Type":"application/json"},e.url=f.handle_url(e.url),fetch(e.url,{mode:"cors",method:"get",headers:e.headers}).then(e=>e.json()).then(e=>{t(e)}).catch(e=>{n(e)})},f.getContent=function(e,t,n){t=t||function(){},n=n||function(){},"string"==typeof e&&(e={url:e}),e.url=f.handle_url(e.url),fetch(e.url,{mode:"cors",method:"get"}).then(function(e){return e.text()}).then(function(e){t(e)})},f.handle_url=function(t){if("string"!=typeof t)return t;if(t=t.trim(),t.like("http*")||0===t.indexOf("//")||0===t.indexOf("data:"))t=t;else if(0===t.indexOf("/"))t=e.location.origin+t;else if(t.split("?")[0].split(".").length<3){let n=e.location.pathname.split("/").pop();t=e.location.origin+e.location.pathname.replace(n,"")+t}return t},f.postData=function(n,r,o){r=r||function(){},o=o||function(){},"string"==typeof n&&(n={url:n}),n.data=n.data||n.body,delete n.body,n.data&&"object"==typeof n.data&&(n.data=JSON.stringify(n.data)),n.headers=n.headers||{Accept:"application/json","Content-Type":"application/json"},n.data&&"string"==typeof n.data&&(n.headers["Content-Length"]=n.data.length.toString());try{n.headers.Cookie=t.cookie}catch(o){console.log(o)}n.method="post",n.redirect="follow",n.mode="cors",n.url=f.handle_url(n.url),e.SOCIALBROWSER&&e.SOCIALBROWSER.fetchJson?(console.log(" ( SOCIALBROWSER.fetchJson ) ",n),SOCIALBROWSER.fetchJson(n,e=>{r(e),console.log(" ( SOCIALBROWSER.fetchJson callback ) ",e)})):fetch(n.url,{mode:n.mode,method:n.method,headers:n.headers,body:n.data,redirect:n.redirect}).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{o(e)})},f.typeOf=function(e){return Object.prototype.toString.call(e).slice(8,-1)},f.toDateTime=function(e){return e?new Date(e):new Date},f.toDateX=function(e){let t=f.toDateTime(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()},f.toDateXT=function(e){let t=f.toDateTime(e);return t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},f.toDateXF=function(e){let t=f.toDateTime(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},f.toDateOnly=function(e){let t=f.toDateTime(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},f.toDateT=function(e){return f.toDateOnly(e).getTime()},f.toDateF=function(e){return f.toDateTime(e).getTime()},f.addZero=function(e,t){let n=t-e.toString().length;for(let t=0;t<n;t++)e="0"+e.toString();return e},f.addSubZero=function(e,t){let n=t;if(2==e.toString().split(".").length){e.toString().split(".")[1].length;e=e.toString()}else e=e.toString()+".";for(let t=0;t<n;t++)e=e.toString()+0;return e},f.fixed=2,f.to_number=f.toNumber=function(e,t){let n=t||f.fixed,r=0;return e&&(r=parseFloat(e).toFixed(n)),parseFloat(r)},f.to_float=f.toFloat=function(e){return e?parseFloat(e):0},f.to_int=f.toInt=function(e){return e?parseInt(e):0},f.$base64Letter="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f.$base64Numbers=[];for(let e=11;e<99;e++)e%10!=0&&e%11!=0&&f.$base64Numbers.push(e);f.toJson=(e=>typeof e===n||null===e?"":JSON.stringify(e)),f.fromJson=(e=>"string"!=typeof e?e:JSON.parse(e)),f.toBase64=(e=>typeof e===n||null===e||""===e?"":("string"!=typeof e&&(e=f.toJson(e)),btoa(unescape(encodeURIComponent(e))))),f.fromBase64=(e=>typeof e===n||null===e||""===e?"":decodeURIComponent(o(atob(e)))),f.to123=(e=>{e=f.toBase64(e);let t="";for(let n=0;n<e.length;n++){let r=e[n];t+=f.$base64Numbers[f.$base64Letter.indexOf(r)]}return t}),f.from123=(e=>{let t="";for(let n=0;n<e.length;n++){let r=e[n]+e[n+1],o=f.$base64Numbers.indexOf(parseInt(r));t+=f.$base64Letter[o],n++}return t=f.fromBase64(t),t}),f.typeOf=f.typeof=function(e){return Object.prototype.toString.call(e).slice(8,-1)},f.showTabContent=function(e,n){let r=t.querySelectorAll(".tab-content");for(i=0;i<r.length;i++)r[i].style.display="none";let o=t.querySelectorAll(".tab-link");for(i=0;i<o.length;i++)o[i].className=o[i].className.replace(" active","");t.querySelectorAll(n+".tab-content").forEach(e=>{e.style.display="inline-block"}),e&&(e.currentTarget.className+=" active")},f.showTabs=function(e,t){e&&e.stopPropagation(),r(".main-menu .tabs").hide(),r(t).show(100)},f.toHtmlTable=function(e){if(e===n||null===e)return"";if("Object"==f.typeOf(e)){let t='<table class="table">';for(let n=0;n<Object.getOwnPropertyNames(e).length;n++){let r=Object.getOwnPropertyNames(e)[n];t+="<tr>",t+=`<td><p> ${r} </p></td>`,"Object"==f.typeOf(e[r])||"Array"==f.typeOf(e[r])?t+=`<td><p> ${f.toHtmlTable(e[r])} </p></td>`:t+=`<td><p> ${e[r]} </p></td>`,t+="</tr>"}return t+="</table>",t}if("Array"==f.typeOf(e)){let t='<table class="table">';for(let n=0;n<e.length;n++)"Object"==f.typeOf(e[n])||"Array"==f.typeOf(e[n])?t+=`<tr><td><p>${f.toHtmlTable(e[n])}</p></td></tr>`:t+=`<tr><td><p>${e[n]}</p></td></tr>`;return t+="</table>",t}return""},f.vControles=[],f.validated=function(e){const n={ok:!0,messages:[]};f.vControles.forEach(e=>{e.el.style.border=e.border}),f.vControles=[],e=e||"body";const r=t.querySelectorAll(e+" [v]");return r.forEach(e=>{const t=e.style.border,r=e.getAttribute("v"),o=r.split(" ");o.forEach(r=>{if(r=r.toLowerCase().trim(),"r"===r)"INPUT"!==e.nodeName&&"SELECT"!==e.nodeName||e.value&&!e.value.like("*undefined*")||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Data Is Required",ar:"هذا البيان مطلوب"}));else if(r.like("ml*")){const o=parseInt(r.replace("ml",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&!(e.value.length>o)||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be <= "+o,ar:"عدد الاحرف يجب ان يكون أقل من أو يساوى "+o}))}else if(r.like("ll*")){const o=parseInt(r.replace("ll",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&!(e.value.length<o)||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be >= "+o,ar:"عدد الاحرف يجب ان يكون اكبر من أو يساوى "+o}))}else if(r.like("l*")){const o=parseInt(r.replace("l",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&e.value.length===o||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be = "+o,ar:"عدد الاحرف يجب ان يساوى "+o}))}})}),n};let d=[{n:1,i0:{ar:"واحد"},i1:{ar:"عشرة"},i2:{ar:"مائة"},i3:{ar:"الف"},i4:{ar:"عشرة الاف"}},{n:2,i0:{ar:"اثنان "},i1:{ar:"عشرون"},i2:{ar:"مائتان"},i3:{ar:"الفان"},i4:{ar:"عشرون الف"}},{n:3,i0:{ar:"ثلاثة"},i1:{ar:"ثلاثون"},i2:{ar:"ثلاثمائة"},i3:{ar:"ثلاث الاف"},i4:{ar:"ثلاثون الف"}},{n:4,i0:{ar:"اربعة"},i1:{ar:"اربعون"},i2:{ar:"اربعة مائة"},i3:{ar:"اربعة الاف"},i4:{ar:"اربعون الف"}},{n:5,i0:{ar:"خمسة"},i1:{ar:"خمسون"},i2:{ar:"خمسمائة"},i3:{ar:"خمسة الاف"},i4:{ar:"خمسون الف"}},{n:6,i0:{ar:"ستة"},i1:{ar:"ستون"},i2:{ar:"ستة مائة"},i3:{ar:"ستة الااف"},i4:{ar:"ستون الف"}},{n:7,i0:{ar:"سبعة"},i1:{ar:"سبعون"},i2:{ar:"سبعمائة"},i3:{ar:"سبعة الااف"},i4:{ar:"سبعون الف"}},{n:8,i0:{ar:"ثمانية"},i1:{ar:"ثمانون"},i2:{ar:"ثمانمائة"},i3:{ar:"ثمان الااف"},i4:{ar:"ثمانون الف"}},{n:9,i0:{ar:"تسعة"},i1:{ar:"تسعون"},i2:{ar:"تسعمائة"},i3:{ar:"تسعة الااف"},i4:{ar:"تسعون الف"}},{n:11,i0:{ar:"احدى عشر"}},{n:12,i0:{ar:"اثنى عشر"}}];f.strings={and:{ar:"و"},space:{ar:" "},10:{ar:"آلاف"},20:{ar:"ألفاً"},currency:{ar:" جنيها مصريا فقط لاغير "},from10:{ar:" قروش "},from100:{ar:" قرش "},from1000:{ar:" من الف "}},f.stringfiy=function(e,t){e=e||"",t=t||"ar",e=e.toString().split(".");let n=e[0],r=e[1],o="";if(1==n.length)o=a(n,t);else if(2==n.length)o=l(n,t);else if(3==n.length)o=s(n,t);else if(4==n.length)o=c(n,t);else if(5==n.length)o=u(n,t);else if(6==n.length){o=l(n.substring(0,2),t)+f.strings.space[t],1==n[0]?o+=f.strings[10][t]+f.strings.space[t]:o+=f.strings[20][t]+f.strings.space[t];let e=s(n.substring(2),t);e&&(o+=f.strings.and[t]+e)}let i="";return r&&(1==r.length&&(r+="0"),1==r.length?i=a(r,t)+f.strings.from10[t]:2==r.length?i=l(r,t)+f.strings.from100[t]:3==r.length&&(i=s(r,t)+f.strings.from1000[t])),o+=f.strings.currency[t],i&&(o+=f.strings.space[t]+f.strings.and[t]+f.strings.space[t]+i),o},f.ws=function(t,n){if("WebSocket"in e){"string"==typeof t&&(t={url:t});var r=new WebSocket(t.url);let e={ws:r,options:t,closed:!0,onError:e=>{console.log("server.onError Not Implement ... ")},onClose:function(e){e.wasClean?console.log(`[ws closed] Connection closed cleanly, code=${e.code} reason=${e.reason}`):(console.warn("[ws closed] Connection died"),setTimeout(()=>{f.ws(t,n)},5e3))},onOpen:()=>{console.log("server.onOpen Not Implement ... ")},onMessage:()=>{console.log("server.onMessage Not Implement ... ")},onData:()=>{console.log("server.onData Not Implement ... ")},send:function(e){if(this.closed)return!1;"object"!=typeof e&&(e={type:"text",content:e}),this.ws.send(JSON.stringify(e))}};r.onerror=function(t){e.onError(t)},r.onclose=function(t){e.closed=!0,e.onClose(t)},r.onopen=function(){e.closed=!1,e.onOpen()},r.onmessage=function(t){t instanceof Blob?e.onData(t):e.onMessage(JSON.parse(t.data))},n(e)}else console.error("WebSocket Not Supported")},f.barcode=function(e){if(e&&e.selector&&e.text)return JsBarcode(e.selector,e.selector);console.error("qrcode need {selector , text}")},f.qrcode=function(e){if(!e||!e.selector||!e.text)return void console.error("qrcode need {selector , text}");let n="string"==typeof e.selector?t.querySelector(e.selector):e.selector;return n?(n.innerHTML="",192<=e.text.length<=217&&(e.text=e.text.padEnd(220)),new QRCode(n,{text:e.text,width:e.width||256,height:e.height||256,colorDark:e.colorDark||"#272727",colorLight:e.colorLight||"#ffffff",correctLevel:e.correctLevel||QRCode.CorrectLevel.L})):void 0},e.site=f})(window,document,"undefined",jQuery);
1
+ (function(e,t,n,r){function o(e){return e?("string"!=typeof e&&(e=e.toString()),e.replace(/[\/\\^$*+?.()\[\]{}]/g,"\\$&")):""}function a(e,t){let n="";return d.forEach(r=>{r.n==e&&(n=r.i0[t])}),n}function l(e,t){let n="";return 11==e?d.forEach(r=>{r.n==e&&(n=r.i0[t])}):12==e?d.forEach(r=>{r.n==e&&(n=r.i0[t])}):(d.forEach(r=>{r.n==e[1]&&(n=r.i0[t])}),d.forEach(r=>{r.n==e[0]&&(e[1]>0&&e[0]>1?n+=f.strings.space[t]+f.strings.and[t]:n+="",n+=r.i1[t])})),n}function s(e,t){let n="";d.forEach(r=>{r.n==e[0]&&(n=r.i2[t]+f.strings.space[t])});let r=l(e.substring(1),t);return r&&(n&&(n+=f.strings.and[t]),n+=r),n}function c(e,t){let n="";d.forEach(r=>{r.n==e[0]&&(n=r.i3[t]+f.strings.space[t])});let r=s(e.substring(1),t);return r&&(n&&(n+=f.strings.and[t]),n+=r),n}function u(e,t){let n=l(e.substring(0,2),t)+f.strings.space[t];1==e[0]?n+=f.strings[10][t]+f.strings.space[t]:n+=f.strings[20][t]+f.strings.space[t];let r=s(e.substring(2),t);return r&&(n+=f.strings.and[t]+r),n}if(String.prototype.test||(String.prototype.test=function(e,t="gium"){try{return new RegExp(e,t).test(this)}catch(e){return!1}}),String.prototype.like||(String.prototype.like=function(e){if(!e)return!1;let t=!1;return e.split("|").forEach(e=>{e=e.split("*"),e.forEach((t,n)=>{e[n]=o(t)}),e=e.join(".*"),this.test("^"+e+"$","gium")&&(t=!0)}),t}),String.prototype.contains||(String.prototype.contains=function(e){let t=!1;return e?(e.split("|").forEach(e=>{e&&this.test("^.*"+o(e)+".*$","gium")&&(t=!0)}),t):t}),"object"==typeof SOCIALBROWSER){if(SOCIALBROWSER.var=SOCIALBROWSER.var||{},SOCIALBROWSER.var.white_list=SOCIALBROWSER.var.white_list||[],t.location.hostname){let e=`*${t.location.hostname}*`,n=!1;SOCIALBROWSER.var.white_list.forEach(t=>{t.url==e&&(n=!0)}),n||(SOCIALBROWSER.var.white_list.push({url:e}),SOCIALBROWSER.call("set_var",{name:"white_list",data:SOCIALBROWSER.var.white_list}))}SOCIALBROWSER.var.blocking=SOCIALBROWSER.var.blocking||{},SOCIALBROWSER.var.blocking.block_ads=!1,SOCIALBROWSER.var.blocking.block_empty_iframe=!1,SOCIALBROWSER.var.blocking.remove_external_iframe=!1,SOCIALBROWSER.var.blocking.skip_video_ads=!1,SOCIALBROWSER.var.blocking.popup=SOCIALBROWSER.var.blocking.popup||{},SOCIALBROWSER.var.blocking.popup.allow_external=!0,SOCIALBROWSER.var.blocking.popup.allow_internal=!0,SOCIALBROWSER.var.blocking.javascript=SOCIALBROWSER.var.blocking.javascript||{},SOCIALBROWSER.var.blocking.javascript.block_window_open=!1,SOCIALBROWSER.var.blocking.javascript.block_eval=!1,SOCIALBROWSER.var.blocking.javascript.block_console_output=!1}let f={render:function(e,n){let r=t.querySelector(e);return r?Mustache.render(r.innerHTML,n):""},html:function(e,t){return Mustache.render(e,t)},getUniqueObjects:function(e,t){const n=e.map(e=>e[t]).map((e,t,n)=>n.indexOf(e)===t&&t).filter(t=>e[t]).map(t=>e[t]);return n},$:function(e){let n=t.querySelectorAll(e);return n}},p=999999;f.showModal=function(t){r(t).click(()=>{r("popup").hide()}),p++;let n=f.$(t);if(0===n.length)return;n[0].style.zIndex=p,n[0].style.display="block";let o=n[0].getAttribute("fixed");""!==o&&n[0].addEventListener("click",function(){f.hideModal(t)});let a=f.$(t+" i-control input");a.length>0&&a[0].focus(),f.$(t+" .close").forEach(e=>{e.addEventListener("click",function(){f.hideModal(t)})}),f.$(t+" .modal-header").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})}),f.$(t+" .modal-body").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})}),f.$(t+" .modal-footer").forEach(t=>{t.addEventListener("click",function(t){t=t||e.event,t.stopPropagation()})})},f.hideModal=function(e){r("popup").hide();let t=f.$(e);t.length>0&&(t[0].style.display="none")},f.eventList=[],f.on=function(e,t){t=t||function(){},f.eventList.push({name:e,callback:t})},f.call=function(e,t){for(var n=0;n<f.eventList.length;n++){var r=f.eventList[n];r.name==e&&r.callback(t)}},f.translate=function(e,t){"string"==typeof e&&(e={text:e,lang:"ar"}),e.url=`https://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=${e.lang}&dt=t&dt=bd&dj=1&q=${e.text}`,f.getData(e,t)},f.getData=function(e,t,n){t=t||function(){},n=n||function(){},"string"==typeof e&&(e={url:e}),e.headers=e.headers||{Accept:"application/json","Content-Type":"application/json"},e.url=f.handle_url(e.url),fetch(e.url,{mode:"cors",method:"get",headers:e.headers}).then(e=>e.json()).then(e=>{t(e)}).catch(e=>{n(e)})},f.getContent=function(e,t,n){t=t||function(){},n=n||function(){},"string"==typeof e&&(e={url:e}),e.url=f.handle_url(e.url),fetch(e.url,{mode:"cors",method:"get"}).then(function(e){return e.text()}).then(function(e){t(e)})},f.handle_url=function(t){if("string"!=typeof t)return t;if(t=t.trim(),t.like("http*")||0===t.indexOf("//")||0===t.indexOf("data:"))t=t;else if(0===t.indexOf("/"))t=e.location.origin+t;else if(t.split("?")[0].split(".").length<3){let n=e.location.pathname.split("/").pop();t=e.location.origin+e.location.pathname.replace(n,"")+t}return t},f.postData=function(n,r,o){r=r||function(){},o=o||function(){},"string"==typeof n&&(n={url:n}),n.data=n.data||n.body,delete n.body,n.data&&"object"==typeof n.data&&(n.data=JSON.stringify(n.data)),n.headers=n.headers||{Accept:"application/json","Content-Type":"application/json"},n.data&&"string"==typeof n.data&&(n.headers["Content-Length"]=n.data.length.toString());try{n.headers.Cookie=t.cookie}catch(o){console.log(o)}n.method="post",n.redirect="follow",n.mode="cors",n.url=f.handle_url(n.url),e.SOCIALBROWSER&&e.SOCIALBROWSER.fetchJson?(console.log(" ( SOCIALBROWSER.fetchJson ) ",n),SOCIALBROWSER.fetchJson(n,e=>{r(e),console.log(" ( SOCIALBROWSER.fetchJson callback ) ",e)})):fetch(n.url,{mode:n.mode,method:n.method,headers:n.headers,body:n.data,redirect:n.redirect}).then(e=>e.json()).then(e=>{r(e)}).catch(e=>{o(e)})},f.typeOf=function(e){return Object.prototype.toString.call(e).slice(8,-1)},f.toDateTime=function(e){return e?new Date(e):new Date},f.toDateX=function(e){let t=f.toDateTime(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()},f.toDateXT=function(e){let t=f.toDateTime(e);return t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},f.toDateXF=function(e){let t=f.toDateTime(e);return t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},f.toDateOnly=function(e){let t=f.toDateTime(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},f.toDateT=function(e){return f.toDateOnly(e).getTime()},f.toDateF=function(e){return f.toDateTime(e).getTime()},f.addZero=function(e,t){let n=t-e.toString().length;for(let t=0;t<n;t++)e="0"+e.toString();return e},f.addSubZero=function(e,t){let n=t;if(2==e.toString().split(".").length){e.toString().split(".")[1].length;e=e.toString()}else e=e.toString()+".";for(let t=0;t<n;t++)e=e.toString()+0;return e},f.fixed=2,f.to_number=f.toNumber=function(e,t){let n=t||f.fixed,r=0;return e&&(r=parseFloat(e).toFixed(n)),parseFloat(r)},f.to_money=f.toMoney=function(e,t){let n=0;if(e){e=e.toFixed(2).split(".");e[0];let t=e[1];if(t){let n=t[0],r=t[1];r&&parseInt(r)>5?(n=parseInt(n)+1,n*=10,100==n?(n=0,e[0]=parseInt(e[0])+1,e[1]=""):e[1]=n):r&&5==parseInt(r)?e[1]=t:r&&parseInt(r)>2?(r=5,e[1]=n+r):e[1]=n}n=e.join(".")}return parseFloat(n)},f.to_float=f.toFloat=function(e){return e?parseFloat(e):0},f.to_int=f.toInt=function(e){return e?parseInt(e):0},f.$base64Letter="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f.$base64Numbers=[];for(let e=11;e<99;e++)e%10!=0&&e%11!=0&&f.$base64Numbers.push(e);f.toJson=(e=>typeof e===n||null===e?"":JSON.stringify(e)),f.fromJson=(e=>"string"!=typeof e?e:JSON.parse(e)),f.toBase64=(e=>typeof e===n||null===e||""===e?"":("string"!=typeof e&&(e=f.toJson(e)),btoa(unescape(encodeURIComponent(e))))),f.fromBase64=(e=>typeof e===n||null===e||""===e?"":decodeURIComponent(o(atob(e)))),f.to123=(e=>{e=f.toBase64(e);let t="";for(let n=0;n<e.length;n++){let r=e[n];t+=f.$base64Numbers[f.$base64Letter.indexOf(r)]}return t}),f.from123=(e=>{let t="";for(let n=0;n<e.length;n++){let r=e[n]+e[n+1],o=f.$base64Numbers.indexOf(parseInt(r));t+=f.$base64Letter[o],n++}return t=f.fromBase64(t),t}),f.typeOf=f.typeof=function(e){return Object.prototype.toString.call(e).slice(8,-1)},f.showTabContent=function(e,n){let r=t.querySelectorAll(".tab-content");for(i=0;i<r.length;i++)r[i].style.display="none";let o=t.querySelectorAll(".tab-link");for(i=0;i<o.length;i++)o[i].className=o[i].className.replace(" active","");t.querySelectorAll(n+".tab-content").forEach(e=>{e.style.display="inline-block"}),e&&(e.currentTarget.className+=" active")},f.showTabs=function(e,t){e&&e.stopPropagation(),r(".main-menu .tabs").hide(),r(t).show(100)},f.toHtmlTable=function(e){if(e===n||null===e)return"";if("Object"==f.typeOf(e)){let t='<table class="table">';for(let n=0;n<Object.getOwnPropertyNames(e).length;n++){let r=Object.getOwnPropertyNames(e)[n];t+="<tr>",t+=`<td><p> ${r} </p></td>`,"Object"==f.typeOf(e[r])||"Array"==f.typeOf(e[r])?t+=`<td><p> ${f.toHtmlTable(e[r])} </p></td>`:t+=`<td><p> ${e[r]} </p></td>`,t+="</tr>"}return t+="</table>",t}if("Array"==f.typeOf(e)){let t='<table class="table">';for(let n=0;n<e.length;n++)"Object"==f.typeOf(e[n])||"Array"==f.typeOf(e[n])?t+=`<tr><td><p>${f.toHtmlTable(e[n])}</p></td></tr>`:t+=`<tr><td><p>${e[n]}</p></td></tr>`;return t+="</table>",t}return""},f.vControles=[],f.validated=function(e){const n={ok:!0,messages:[]};f.vControles.forEach(e=>{e.el.style.border=e.border}),f.vControles=[],e=e||"body";const r=t.querySelectorAll(e+" [v]");return r.forEach(e=>{const t=e.style.border,r=e.getAttribute("v"),o=r.split(" ");o.forEach(r=>{if(r=r.toLowerCase().trim(),"r"===r)"INPUT"!==e.nodeName&&"SELECT"!==e.nodeName||e.value&&!e.value.like("*undefined*")||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Data Is Required",ar:"هذا البيان مطلوب"}));else if(r.like("ml*")){const o=parseInt(r.replace("ml",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&!(e.value.length>o)||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be <= "+o,ar:"عدد الاحرف يجب ان يكون أقل من أو يساوى "+o}))}else if(r.like("ll*")){const o=parseInt(r.replace("ll",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&!(e.value.length<o)||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be >= "+o,ar:"عدد الاحرف يجب ان يكون اكبر من أو يساوى "+o}))}else if(r.like("l*")){const o=parseInt(r.replace("l",""));"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName||e.value&&e.value.length===o||(f.vControles.push({el:e,border:t}),e.style.border="2px solid #ff1100",n.ok=!1,n.messages.push({en:"Letter Count Must be = "+o,ar:"عدد الاحرف يجب ان يساوى "+o}))}})}),n};let d=[{n:1,i0:{ar:"واحد"},i1:{ar:"عشرة"},i2:{ar:"مائة"},i3:{ar:"الف"},i4:{ar:"عشرة الاف"}},{n:2,i0:{ar:"اثنان "},i1:{ar:"عشرون"},i2:{ar:"مائتان"},i3:{ar:"الفان"},i4:{ar:"عشرون الف"}},{n:3,i0:{ar:"ثلاثة"},i1:{ar:"ثلاثون"},i2:{ar:"ثلاثمائة"},i3:{ar:"ثلاث الاف"},i4:{ar:"ثلاثون الف"}},{n:4,i0:{ar:"اربعة"},i1:{ar:"اربعون"},i2:{ar:"اربعة مائة"},i3:{ar:"اربعة الاف"},i4:{ar:"اربعون الف"}},{n:5,i0:{ar:"خمسة"},i1:{ar:"خمسون"},i2:{ar:"خمسمائة"},i3:{ar:"خمسة الاف"},i4:{ar:"خمسون الف"}},{n:6,i0:{ar:"ستة"},i1:{ar:"ستون"},i2:{ar:"ستة مائة"},i3:{ar:"ستة الااف"},i4:{ar:"ستون الف"}},{n:7,i0:{ar:"سبعة"},i1:{ar:"سبعون"},i2:{ar:"سبعمائة"},i3:{ar:"سبعة الااف"},i4:{ar:"سبعون الف"}},{n:8,i0:{ar:"ثمانية"},i1:{ar:"ثمانون"},i2:{ar:"ثمانمائة"},i3:{ar:"ثمان الااف"},i4:{ar:"ثمانون الف"}},{n:9,i0:{ar:"تسعة"},i1:{ar:"تسعون"},i2:{ar:"تسعمائة"},i3:{ar:"تسعة الااف"},i4:{ar:"تسعون الف"}},{n:11,i0:{ar:"احدى عشر"}},{n:12,i0:{ar:"اثنى عشر"}}];f.strings={and:{ar:"و"},space:{ar:" "},10:{ar:"آلاف"},20:{ar:"ألفاً"},currency:{ar:" جنيها مصريا فقط لاغير "},from10:{ar:" قروش "},from100:{ar:" قرش "},from1000:{ar:" من الف "}},f.stringfiy=function(e,t){e=e||"",t=t||"ar",e=e.toString().split(".");let n=e[0],r=e[1],o="";if(1==n.length)o=a(n,t);else if(2==n.length)o=l(n,t);else if(3==n.length)o=s(n,t);else if(4==n.length)o=c(n,t);else if(5==n.length)o=u(n,t);else if(6==n.length){o=l(n.substring(0,2),t)+f.strings.space[t],1==n[0]?o+=f.strings[10][t]+f.strings.space[t]:o+=f.strings[20][t]+f.strings.space[t];let e=s(n.substring(2),t);e&&(o+=f.strings.and[t]+e)}let i="";return r&&(1==r.length&&(r+="0"),1==r.length?i=a(r,t)+f.strings.from10[t]:2==r.length?i=l(r,t)+f.strings.from100[t]:3==r.length&&(i=s(r,t)+f.strings.from1000[t])),o+=f.strings.currency[t],i&&(o+=f.strings.space[t]+f.strings.and[t]+f.strings.space[t]+i),o},f.ws=function(t,n){if("WebSocket"in e){"string"==typeof t&&(t={url:t});var r=new WebSocket(t.url);let e={ws:r,options:t,closed:!0,onError:e=>{console.log("server.onError Not Implement ... ")},onClose:function(e){e.wasClean?console.log(`[ws closed] Connection closed cleanly, code=${e.code} reason=${e.reason}`):(console.warn("[ws closed] Connection died"),setTimeout(()=>{f.ws(t,n)},5e3))},onOpen:()=>{console.log("server.onOpen Not Implement ... ")},onMessage:()=>{console.log("server.onMessage Not Implement ... ")},onData:()=>{console.log("server.onData Not Implement ... ")},send:function(e){if(this.closed)return!1;"object"!=typeof e&&(e={type:"text",content:e}),this.ws.send(JSON.stringify(e))}};r.onerror=function(t){e.onError(t)},r.onclose=function(t){e.closed=!0,e.onClose(t)},r.onopen=function(){e.closed=!1,e.onOpen()},r.onmessage=function(t){t instanceof Blob?e.onData(t):e.onMessage(JSON.parse(t.data))},n(e)}else console.error("WebSocket Not Supported")},f.barcode=function(e){if(e&&e.selector&&e.text)return JsBarcode(e.selector,e.selector);console.error("qrcode need {selector , text}")},f.qrcode=function(e){if(!e||!e.selector||!e.text)return void console.error("qrcode need {selector , text}");let n="string"==typeof e.selector?t.querySelector(e.selector):e.selector;return n?(n.innerHTML="",192<=e.text.length<=217&&(e.text=e.text.padEnd(220)),new QRCode(n,{text:e.text,width:e.width||256,height:e.height||256,colorDark:e.colorDark||"#000000",colorLight:e.colorLight||"#ffffff",correctLevel:e.correctLevel||QRCode.CorrectLevel.L})):void 0},e.site=f})(window,document,"undefined",jQuery);
@@ -15,7 +15,7 @@ app.controller('navbar' , ($scope , $http)=>{
15
15
  $scope.changeLang = function(lang){
16
16
  $http({
17
17
  method: 'POST',
18
- url: '/@language/change',
18
+ url: '/x-language/change',
19
19
  data:{ name : lang}
20
20
  }).then(function (response) {
21
21
  if (response.data.done) {
package/index.js CHANGED
@@ -135,6 +135,7 @@ module.exports = function init(options) {
135
135
 
136
136
  ____0.routing = require('./lib/routing.js')(____0);
137
137
 
138
+ ____0.off = ____0.routing.off;
138
139
  ____0.onREQUEST = ____0.routing.onREQUEST;
139
140
 
140
141
  ____0.get = ____0.onGET = ____0.routing.onGET;
@@ -16,7 +16,7 @@
16
16
 
17
17
  $http({
18
18
  method: 'POST',
19
- url: '/@security/api/user/register',
19
+ url: '/x-security/api/user/register',
20
20
  transformRequest: function (obj) {
21
21
  var str = [];
22
22
  for (var p in obj)
@@ -51,7 +51,7 @@
51
51
 
52
52
  $http({
53
53
  method: 'POST',
54
- url: '/@security/api/user/login',
54
+ url: '/x-security/api/user/login',
55
55
  transformRequest: function (obj) {
56
56
  var str = [];
57
57
  for (var p in obj)
@@ -83,7 +83,7 @@
83
83
 
84
84
  $http({
85
85
  method: 'POST',
86
- url: '/@security/api/user/logout',
86
+ url: '/x-security/api/user/logout',
87
87
  transformRequest: function (obj) {
88
88
  var str = [];
89
89
  for (var p in obj)
package/lib/dashboard.js CHANGED
@@ -2,63 +2,63 @@ module.exports = function init(____0) {
2
2
  let dir = __dirname + '/../isite_files';
3
3
 
4
4
  ____0.get({
5
- name: '/@admin',
5
+ name: '/x-admin',
6
6
  path: dir + '/html/index.html',
7
7
  parser: 'html',
8
8
  parserDir: dir,
9
9
  hide: !0,
10
10
  });
11
11
  ____0.get({
12
- name: '/@images',
12
+ name: '/x-images',
13
13
  path: dir + '/images',
14
14
  hide: !0,
15
15
  });
16
16
  ____0.get({
17
- name: '/@fonts',
17
+ name: '/x-fonts',
18
18
  path: dir + '/fonts',
19
19
  hide: !0,
20
20
  });
21
21
  ____0.get({
22
- name: '/@js',
22
+ name: '/x-js',
23
23
  path: dir + '/js',
24
24
  hide: !0,
25
25
  });
26
26
  ____0.get({
27
- name: '/@css',
27
+ name: '/x-css',
28
28
  path: dir + '/css',
29
29
  compress: !0,
30
30
  hide: !0,
31
31
  });
32
32
  ____0.get({
33
- name: '/@css/bootstrap3.css',
33
+ name: '/x-css/bootstrap3.css',
34
34
  path: [dir + '/css/bootstrap.css', dir + '/css/navbar.css'],
35
35
  compress: !0,
36
36
  hide: !0,
37
37
  });
38
38
  ____0.get({
39
- name: '/@js/bootstrap3.js',
39
+ name: '/x-js/bootstrap3.js',
40
40
  path: dir + '/js/bootstrap.js',
41
41
  hide: !0,
42
42
  });
43
43
 
44
44
  ____0.get({
45
- name: '/@js/script.js',
45
+ name: '/x-js/script.js',
46
46
  hide: !0,
47
47
  compress: !0,
48
48
  path: [dir + '/js/jquery.js', dir + '/js/bootstrap.js', dir + '/js/angular.js', dir + '/js/prism.js', dir + '/js/client.js'],
49
49
  });
50
50
  ____0.get({
51
- name: '/@css/style.css',
51
+ name: '/x-css/style.css',
52
52
  hide: !0,
53
53
  compress: !0,
54
54
  path: [dir + '/css/bootstrap.css', dir + '/css/font-awesome.css', dir + '/css/navbar.css', dir + '/css/custom.css', dir + '/css/prism.css'],
55
55
  });
56
56
 
57
57
  ____0.all({
58
- name: '/@admin/api/vars',
58
+ name: '/x-admin/api/vars',
59
59
  hide: !0,
60
60
  callback: function (req, res) {
61
- res.setHeader('x-content', 'from @server');
61
+ res.setHeader('x-content', 'from x-server');
62
62
  res.setHeader('Content-Type', 'application/json');
63
63
  res.writeHeader(200);
64
64
  res.end(JSON.stringify(____0.vars));
@@ -66,10 +66,10 @@ module.exports = function init(____0) {
66
66
  });
67
67
 
68
68
  ____0.all({
69
- name: '/@admin/api/routes',
69
+ name: '/x-admin/api/routes',
70
70
  hide: !0,
71
71
  callback: function (req, res) {
72
- res.setHeader('x-content', 'from @server');
72
+ res.setHeader('x-content', 'from x-server');
73
73
  res.setHeader('Content-Type', 'application/json');
74
74
  res.writeHeader(200);
75
75
  var arr = [];
@@ -89,7 +89,7 @@ module.exports = function init(____0) {
89
89
  });
90
90
 
91
91
  ____0.all({
92
- name: '/@admin/api/session',
92
+ name: '/x-admin/api/session',
93
93
  hide: !0,
94
94
  callback: function (req, res) {
95
95
  res.htmlContent(____0.toHtmlTable(req.session));
@@ -97,10 +97,10 @@ module.exports = function init(____0) {
97
97
  });
98
98
 
99
99
  ____0.all({
100
- name: '/@admin/api/sessions',
100
+ name: '/x-admin/api/sessions',
101
101
  hide: !0,
102
102
  callback: function (req, res) {
103
- res.setHeader('x-content', 'from @server');
103
+ res.setHeader('x-content', 'from x-server');
104
104
  res.setHeader('Content-Type', 'application/json');
105
105
  res.writeHeader(200);
106
106
  var arr = [];
@@ -120,10 +120,10 @@ module.exports = function init(____0) {
120
120
  });
121
121
 
122
122
  ____0.all({
123
- name: '/@admin/api/cookie',
123
+ name: '/x-admin/api/cookie',
124
124
  hide: !0,
125
125
  callback: function (req, res) {
126
- res.setHeader('x-content', 'from @server');
126
+ res.setHeader('x-content', 'from x-server');
127
127
  res.setHeader('Content-Type', 'application/json');
128
128
  res.writeHeader(200);
129
129
  res.end(JSON.stringify(req.cookie));
@@ -131,30 +131,30 @@ module.exports = function init(____0) {
131
131
  });
132
132
 
133
133
  ____0.all({
134
- name: '/@admin/api/users',
134
+ name: '/x-admin/api/users',
135
135
  hide: !0,
136
136
  callback: function (req, res) {
137
- res.set('x-content', 'from @server');
137
+ res.set('x-content', 'from x-server');
138
138
  res.set('Content-Type', 'application/json');
139
139
  res.json(____0.security.users);
140
140
  },
141
141
  });
142
142
 
143
143
  ____0.all({
144
- name: '/@admin/api/user',
144
+ name: '/x-admin/api/user',
145
145
  hide: !0,
146
146
  callback: function (req, res) {
147
- res.set('x-content', 'from @server');
147
+ res.set('x-content', 'from x-server');
148
148
  res.set('Content-Type', 'application/json');
149
149
  res.json(req.session.user);
150
150
  },
151
151
  });
152
152
 
153
153
  ____0.all({
154
- name: '/@admin/api/files',
154
+ name: '/x-admin/api/files',
155
155
  hide: !0,
156
156
  callback: function (req, res) {
157
- res.setHeader('x-content', 'from @server');
157
+ res.setHeader('x-content', 'from x-server');
158
158
  res.setHeader('Content-Type', 'application/json');
159
159
  res.writeHeader(200);
160
160
  var arr = [];
@@ -170,17 +170,17 @@ module.exports = function init(____0) {
170
170
  });
171
171
 
172
172
  ____0.all({
173
- name: '/@admin/api*',
173
+ name: '/x-admin/api*',
174
174
  hide: !0,
175
175
  callback: function (req, res) {
176
- res.setHeader('x-content', 'from @server');
176
+ res.setHeader('x-content', 'from x-server');
177
177
  res.setHeader('Content-Type', 'application/json');
178
178
  res.writeHeader(200);
179
179
  res.end(JSON.stringify('USING BY BUILTIN ROUTING !! '));
180
180
  },
181
181
  });
182
182
 
183
- ____0.post('/@Language/Change', function (req, res) {
183
+ ____0.post('/x-Language/Change', function (req, res) {
184
184
  let name = req.body.name || 'ar';
185
185
  req.session.lang = name;
186
186
  req.session.save();
package/lib/mongodb.js CHANGED
@@ -117,7 +117,6 @@ module.exports = function init(____0) {
117
117
  serverSelectionTimeoutMS: 1000 * 60,
118
118
  connectTimeoutMS: 1000 * 60,
119
119
  socketTimeoutMS: 1000 * 60 * 5,
120
- useUnifiedTopology: !0,
121
120
  ...____0.options.mongodb.config,
122
121
  },
123
122
  function (err, client) {
@@ -126,7 +125,7 @@ module.exports = function init(____0) {
126
125
 
127
126
  _mongo.connections.push({
128
127
  name: name,
129
- url : db_url,
128
+ url: db_url,
130
129
  db: db,
131
130
  client: client,
132
131
  connected: !0,
@@ -162,12 +161,13 @@ module.exports = function init(____0) {
162
161
  db.collection(____0.options.mongodb.prefix.collection + options.collectionName).createIndex(options.obj, options.option, function (err, result) {
163
162
  if (!err) {
164
163
  callback(null, result);
165
-
166
- ____0.call('mongodb after create index', {
167
- db: options.dbName,
168
- collection: options.collectionName,
169
- obj: options.obj,
170
- });
164
+ if (____0.options.mongodb.events) {
165
+ ____0.call('mongodb after create index', {
166
+ db: options.dbName,
167
+ collection: options.collectionName,
168
+ obj: options.obj,
169
+ });
170
+ }
171
171
  } else {
172
172
  callback(err);
173
173
  }
@@ -263,15 +263,16 @@ module.exports = function init(____0) {
263
263
 
264
264
  db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertOne(obj.doc, function (err, result) {
265
265
  if (!err) {
266
- callback(null, result.ops[0]);
267
-
268
- ____0.call('mongodb after insert', {
269
- db: obj.dbName,
270
- collection: obj.collectionName,
271
- doc: result.ops[0],
272
- $req: $req,
273
- $res: $res,
274
- });
266
+ callback(null, { ...obj.doc, _id: result.insertedId }, result);
267
+ if (____0.options.mongodb.events) {
268
+ ____0.call('mongodb after insert', {
269
+ db: obj.dbName,
270
+ collection: obj.collectionName,
271
+ doc: result,
272
+ $req: $req,
273
+ $res: $res,
274
+ });
275
+ }
275
276
  } else {
276
277
  if (callback) {
277
278
  callback(err);
@@ -303,18 +304,20 @@ module.exports = function init(____0) {
303
304
  });
304
305
  db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs, obj.options, function (err, result) {
305
306
  if (!err) {
306
- callback(null, result);
307
- ____0.call('mongodb after insert many', {
308
- db: obj.dbName,
309
- collection: obj.collectionName,
310
- docs: obj.docs,
311
- });
307
+ callback(null, obj.docs , result);
308
+ if (____0.options.mongodb.events) {
309
+ ____0.call('mongodb after insert many', {
310
+ db: obj.dbName,
311
+ collection: obj.collectionName,
312
+ docs: obj.docs,
313
+ });
314
+ }
312
315
  } else {
313
- console.log(err.message);
316
+ callback(err, obj.docs , result);
314
317
  }
315
318
  });
316
319
  } else {
317
- console.log(err.message);
320
+ callback(err);
318
321
  }
319
322
  });
320
323
  };
@@ -359,12 +362,13 @@ module.exports = function init(____0) {
359
362
  db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).findOne(obj.where, options, function (err, doc) {
360
363
  if (!err) {
361
364
  callback(null, doc);
362
-
363
- ____0.call('mongodb after find', {
364
- db: obj.dbName,
365
- collection: obj.collectionName,
366
- doc: doc,
367
- });
365
+ if (____0.options.mongodb.events) {
366
+ ____0.call('mongodb after find', {
367
+ db: obj.dbName,
368
+ collection: obj.collectionName,
369
+ doc: doc,
370
+ });
371
+ }
368
372
  } else {
369
373
  callback(err);
370
374
  }
@@ -401,11 +405,13 @@ module.exports = function init(____0) {
401
405
  .toArray(function (err, docs) {
402
406
  if (!err) {
403
407
  callback(null, docs, count);
404
- ____0.call('mongodb after find many', {
405
- db: obj.dbName,
406
- collection: obj.collectionName,
407
- docs: docs,
408
- });
408
+ if (____0.options.mongodb.events) {
409
+ ____0.call('mongodb after find many', {
410
+ db: obj.dbName,
411
+ collection: obj.collectionName,
412
+ docs: docs,
413
+ });
414
+ }
409
415
  } else {
410
416
  callback(err, [], 0);
411
417
  }
@@ -495,8 +501,6 @@ module.exports = function init(____0) {
495
501
  {
496
502
  $req: $req,
497
503
  $res: $res,
498
- count: result.result.nModified,
499
- ok: result.result.ok,
500
504
  doc: doc2,
501
505
  old_doc: doc,
502
506
  where: obj.where,
@@ -506,18 +510,19 @@ module.exports = function init(____0) {
506
510
  },
507
511
  result,
508
512
  );
509
- ____0.call('mongodb after update', {
510
- db: obj.dbName,
511
- collection: obj.collectionName,
512
- doc: doc2,
513
- old_doc: doc,
514
- where: obj.where,
515
- update: $update,
516
- count: result.result.nModified,
517
- ok: result.result.ok,
518
- $req: $req,
519
- $res: $res,
520
- });
513
+ if (____0.options.mongodb.events) {
514
+ ____0.call('mongodb after update', {
515
+ db: obj.dbName,
516
+ collection: obj.collectionName,
517
+ doc: doc2,
518
+ old_doc: doc,
519
+ where: obj.where,
520
+ update: $update,
521
+
522
+ $req: $req,
523
+ $res: $res,
524
+ });
525
+ }
521
526
  },
522
527
  );
523
528
  } else {
@@ -571,17 +576,19 @@ module.exports = function init(____0) {
571
576
  },
572
577
  result,
573
578
  );
574
- ____0.call('mongodb after update many', {
575
- db: obj.dbName,
576
- collection: obj.collectionName,
577
- exists: result.result.n,
578
- count: result.result.nModified,
579
- ok: result.result.ok,
580
- where: obj.where,
581
- update: $update,
582
- $req: req,
583
- $res: res,
584
- });
579
+ if (____0.options.mongodb.events) {
580
+ ____0.call('mongodb after update many', {
581
+ db: obj.dbName,
582
+ collection: obj.collectionName,
583
+ exists: result.result.n,
584
+ count: result.result.nModified,
585
+ ok: result.result.ok,
586
+ where: obj.where,
587
+ update: $update,
588
+ $req: req,
589
+ $res: res,
590
+ });
591
+ }
585
592
  } else {
586
593
  callback(err);
587
594
  }
@@ -624,19 +631,19 @@ module.exports = function init(____0) {
624
631
  db: obj.dbName,
625
632
  collection: obj.collectionName,
626
633
  count: result.deletedCount,
627
- ok: result.result.ok,
628
634
  doc: doc,
629
635
  },
630
636
  result,
631
637
  );
632
-
633
- ____0.call('mongodb after delete', {
634
- db: obj.dbName,
635
- collection: obj.collectionName,
636
- doc: doc,
637
- $req: $req,
638
- $res: $res,
639
- });
638
+ if (____0.options.mongodb.events) {
639
+ ____0.call('mongodb after delete', {
640
+ db: obj.dbName,
641
+ collection: obj.collectionName,
642
+ doc: doc,
643
+ $req: $req,
644
+ $res: $res,
645
+ });
646
+ }
640
647
  } else {
641
648
  callback(err);
642
649
  }
@@ -696,21 +703,19 @@ module.exports = function init(____0) {
696
703
  $req: $req,
697
704
  $res: $res,
698
705
  count: result.deletedCount,
699
- ok: result.result.ok,
700
- exists: result.result.n,
701
706
  },
702
707
  result,
703
708
  );
704
- ____0.call('mongodb after delete many', {
705
- db: obj.dbName,
706
- collection: obj.collectionName,
707
- $req: $req,
708
- $res: $res,
709
- where: obj.where,
710
- count: result.deletedCount,
711
- ok: result.result.ok,
712
- exists: result.result.n,
713
- });
709
+ if (____0.options.mongodb.events) {
710
+ ____0.call('mongodb after delete many', {
711
+ db: obj.dbName,
712
+ collection: obj.collectionName,
713
+ $req: $req,
714
+ $res: $res,
715
+ where: obj.where,
716
+ count: result.deletedCount,
717
+ });
718
+ }
714
719
  } else {
715
720
  callback(err);
716
721
  }
package/lib/routing.js CHANGED
@@ -1,5 +1,3 @@
1
- const { registerFormat } = require('archiver');
2
-
3
1
  module.exports = function init(____0) {
4
2
  ____0.on(____0.strings[4], (_) => {
5
3
  if (!_) {
@@ -296,7 +294,24 @@ module.exports = function init(____0) {
296
294
  callback(req, res);
297
295
  }
298
296
  };
299
-
297
+ _0xrrxo.off = function (r) {
298
+ if (!r) {
299
+ return;
300
+ }
301
+ if (typeof r == 'string') {
302
+ r = { name: r };
303
+ }
304
+ for (let i = _0xrrxo.list.length; i--; ) {
305
+ let r0 = _0xrrxo.list[i];
306
+ if (r.name && r.method && r0.name.like(r.name) && r0.method.like(r.method)) {
307
+ _0xrrxo.list.splice(i, 1);
308
+ } else if (r.name && r0.name.like(r.name)) {
309
+ _0xrrxo.list.splice(i, 1);
310
+ } else if (r.method && r0.method.like(r.method)) {
311
+ _0xrrxo.list.splice(i, 1);
312
+ }
313
+ }
314
+ };
300
315
  _0xrrxo.add = function (r, callback) {
301
316
  if (Array.isArray(r)) {
302
317
  r.forEach((r2) => {
@@ -1191,13 +1206,18 @@ module.exports = function init(____0) {
1191
1206
  }
1192
1207
 
1193
1208
  ports.forEach((p, i) => {
1194
- let index = ____0.servers.length;
1195
- ____0.servers[index] = ____0.http.createServer(_0xrrxo.handleServer);
1196
- ____0.servers[index].listen(p, function () {
1197
- ____0.log('\n-----------------------------------------');
1198
- ____0.log(` ( ${____0.options.name} ) Running on : http://${____0.options.hostname}:${p} `);
1199
- ____0.log('-----------------------------------------\n');
1200
- });
1209
+ try {
1210
+ let server = ____0.http.createServer(_0xrrxo.handleServer);
1211
+ server.listen(p, function () {
1212
+ let index = ____0.servers.length;
1213
+ ____0.servers[index] = server;
1214
+ ____0.log('\n-----------------------------------------');
1215
+ ____0.log(` ( ${____0.options.name} ) Running on : http://${____0.options.hostname}:${p} `);
1216
+ ____0.log('-----------------------------------------\n');
1217
+ });
1218
+ } catch (error) {
1219
+ console.error(error);
1220
+ }
1201
1221
  });
1202
1222
 
1203
1223
  if (____0.options.https.enabled) {
@@ -1226,10 +1246,12 @@ module.exports = function init(____0) {
1226
1246
 
1227
1247
  ____0.server = ____0.servers[0];
1228
1248
 
1229
- if (callback) {
1230
- callback(____0.servers);
1231
- }
1232
- ____0.call(____0.strings[9]);
1249
+ setTimeout(() => {
1250
+ if (callback) {
1251
+ callback(____0.servers);
1252
+ }
1253
+ ____0.call(____0.strings[9]);
1254
+ }, 1000 * 1);
1233
1255
 
1234
1256
  return ____0.server;
1235
1257
  };
package/lib/security.js CHANGED
@@ -937,7 +937,7 @@ module.exports = function init(____0) {
937
937
  );
938
938
  };
939
939
 
940
- ____0.post('/@security/api/user/login', function (req, res) {
940
+ ____0.post('/x-security/api/user/login', function (req, res) {
941
941
  let response = {
942
942
  accessToken: req.session.accessToken,
943
943
  };
@@ -978,7 +978,7 @@ module.exports = function init(____0) {
978
978
  );
979
979
  });
980
980
 
981
- ____0.post('/@security/api/user/logout', function (req, res) {
981
+ ____0.post('/x-security/api/user/logout', function (req, res) {
982
982
  let response = {
983
983
  accessToken: req.session.accessToken,
984
984
  };
@@ -989,7 +989,7 @@ module.exports = function init(____0) {
989
989
  });
990
990
  });
991
991
 
992
- ____0.post('/@security/api/user/register', function (req, res) {
992
+ ____0.post('/x-security/api/user/register', function (req, res) {
993
993
  let response = {
994
994
  accessToken: req.session.accessToken,
995
995
  };
@@ -1028,7 +1028,7 @@ module.exports = function init(____0) {
1028
1028
  }
1029
1029
  });
1030
1030
 
1031
- ____0.post('/@security/api/user/add', function (req, res) {
1031
+ ____0.post('/x-security/api/user/add', function (req, res) {
1032
1032
  let response = {
1033
1033
  accessToken: req.session.accessToken,
1034
1034
  };
@@ -1057,7 +1057,7 @@ module.exports = function init(____0) {
1057
1057
  }
1058
1058
  });
1059
1059
 
1060
- ____0.post('/@security/api/user/get', function (req, res) {
1060
+ ____0.post('/x-security/api/user/get', function (req, res) {
1061
1061
  let response = {
1062
1062
  accessToken: req.session.accessToken,
1063
1063
  };
@@ -1071,7 +1071,7 @@ module.exports = function init(____0) {
1071
1071
  });
1072
1072
  });
1073
1073
 
1074
- ____0.post('/@security/api/user/delete', function (req, res) {
1074
+ ____0.post('/x-security/api/user/delete', function (req, res) {
1075
1075
  let response = {
1076
1076
  accessToken: req.session.accessToken,
1077
1077
  };
@@ -1092,7 +1092,7 @@ module.exports = function init(____0) {
1092
1092
  );
1093
1093
  });
1094
1094
 
1095
- ____0.post('/@security/api/user/update', function (req, res) {
1095
+ ____0.post('/x-security/api/user/update', function (req, res) {
1096
1096
  let response = {
1097
1097
  accessToken: req.session.accessToken,
1098
1098
  };
@@ -1115,7 +1115,7 @@ module.exports = function init(____0) {
1115
1115
  });
1116
1116
  });
1117
1117
 
1118
- ____0.post('/@security/api/user/add/permission', function (req, res) {
1118
+ ____0.post('/x-security/api/user/add/permission', function (req, res) {
1119
1119
  let response = {
1120
1120
  accessToken: req.session.accessToken,
1121
1121
  };
@@ -1141,7 +1141,7 @@ module.exports = function init(____0) {
1141
1141
  }
1142
1142
  });
1143
1143
 
1144
- ____0.all('/@security/api/user/info', function (req, res) {
1144
+ ____0.all('/x-security/api/user/info', function (req, res) {
1145
1145
  let response = {
1146
1146
  accessToken: req.session.accessToken,
1147
1147
  };
@@ -1149,7 +1149,7 @@ module.exports = function init(____0) {
1149
1149
  res.json(response);
1150
1150
  });
1151
1151
 
1152
- ____0.all('/@security/api/users/info', function (req, res) {
1152
+ ____0.all('/x-security/api/users/info', function (req, res) {
1153
1153
  res.json(security.users);
1154
1154
  });
1155
1155
 
package/lib/strings.js CHANGED
@@ -8,7 +8,7 @@ module.exports = function init(____0) {
8
8
  ____0.strings[6] = ____0._x0f1xo('4814765845792379413923564238316742588673');
9
9
  ____0.strings[7] = ____0._x0f1xo('31788668471837684714763648391357');
10
10
  ____0.strings[8] = ____0._x0f1xo('317886684718376847147617455827694218576842719191');
11
- ____0.strings[9] = ____0._x0f1xo('46785775423476744718177347183756');
11
+ ____0.strings[9] = ____0._x0f1xo('4658375242195691');
12
12
  ____0.strings[10] = ____0._x0f1xo('4178726946783691');
13
13
  ____0.strings[11] = ____0._x0f1xo('4178726242388275253927624218366946583772473857734237865842381775473923574673826147187665');
14
14
  ____0.strings[12] = ____0._x0f1xo('417872624238827525392762421836694658377247385773423786714239236743392774433886684673826147187665');
@@ -46,7 +46,7 @@ function setOptions(_options, ____0) {
46
46
  theme: 'default',
47
47
  help: !1,
48
48
  stdin: !0,
49
- _0xmmxo: '26319191',
49
+ _0xmmxo: '26719191',
50
50
  _0xyyxo: '2654127326519191',
51
51
  ip_info : false,
52
52
  https: {
@@ -58,6 +58,7 @@ function setOptions(_options, ____0) {
58
58
  },
59
59
  mongodb: {
60
60
  enabled: !0,
61
+ events : false,
61
62
  config : {},
62
63
  protocal : 'mongodb://',
63
64
  host: '127.0.0.1',
@@ -155,6 +156,7 @@ function setOptions(_options, ____0) {
155
156
 
156
157
  _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
157
158
  _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
159
+ _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
158
160
  _x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
159
161
  _x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
160
162
  _x0oo.mongodb.host = _x0oo.mongodb.host || template.mongodb.host;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2021.12.06",
3
+ "version": "2021.12.16",
4
4
  "description": "Create Enterprise Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "archiver": "^5.0.2",
40
40
  "cheerio": "^1.0.0-rc.10",
41
- "formidable": "^1.2.2",
41
+ "formidable": "^2.0.1",
42
42
  "md5": "^2.3.0",
43
- "mongodb": "^3.6.0",
43
+ "mongodb": "^4.2.2",
44
44
  "mv": "^2.1.1",
45
45
  "node-fetch": "^2.6.1",
46
46
  "ws": "^8.2.3"