@steedos-widgets/amis-lib 0.0.1

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.
Files changed (34) hide show
  1. package/README.md +23 -0
  2. package/dist/amis-lib.umd.js +314 -0
  3. package/dist/amis-lib.umd.min.js +314 -0
  4. package/dist/cjs/tsconfig.tsbuildinfo +1 -0
  5. package/dist/index.cjs.js +315 -0
  6. package/dist/index.cjs.js.map +1 -0
  7. package/dist/index.d.ts +9 -0
  8. package/dist/index.esm.js +315 -0
  9. package/dist/index.esm.js.map +1 -0
  10. package/dist/types/config/index.d.ts +8 -0
  11. package/dist/types/index.d.ts +9 -0
  12. package/dist/types/lib/amis.d.ts +9 -0
  13. package/dist/types/lib/apps.d.ts +2 -0
  14. package/dist/types/lib/buttons.d.ts +11 -0
  15. package/dist/types/lib/converter/amis/api.d.ts +54 -0
  16. package/dist/types/lib/converter/amis/fields/index.d.ts +54 -0
  17. package/dist/types/lib/converter/amis/fields/list.d.ts +43 -0
  18. package/dist/types/lib/converter/amis/fields/lookup.d.ts +185 -0
  19. package/dist/types/lib/converter/amis/fields/sections.d.ts +22 -0
  20. package/dist/types/lib/converter/amis/fields/table.d.ts +34 -0
  21. package/dist/types/lib/converter/amis/form.d.ts +22 -0
  22. package/dist/types/lib/converter/amis/graphql.d.ts +22 -0
  23. package/dist/types/lib/converter/amis/index.d.ts +320 -0
  24. package/dist/types/lib/converter/amis/tpl.d.ts +11 -0
  25. package/dist/types/lib/converter/amis/util.d.ts +1 -0
  26. package/dist/types/lib/expression.d.ts +2 -0
  27. package/dist/types/lib/notification.d.ts +2 -0
  28. package/dist/types/lib/objects.d.ts +709 -0
  29. package/dist/types/lib/page.d.ts +1 -0
  30. package/dist/types/lib/public.env.d.ts +4 -0
  31. package/dist/types/lib/record.d.ts +3 -0
  32. package/dist/types/lib/router.d.ts +52 -0
  33. package/dist/types/lib/steedos.client.d.ts +13 -0
  34. package/package.json +62 -0
@@ -0,0 +1,314 @@
1
+ !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("lodash")):"function"==typeof define&&define.amd?define(["exports","lodash"],a):a((e="undefined"!=typeof globalThis?globalThis:e||self)["amis-lib"]={},e._$1)}(this,function(e,s){window;function q(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function B(t){var i;return t&&t.__esModule?t:(i=Object.create(null),t&&Object.keys(t).forEach(function(e){var a;"default"!==e&&(a=Object.getOwnPropertyDescriptor(t,e),Object.defineProperty(i,e,a.get?a:{enumerable:!0,get:function(){return t[e]}}))}),i.default=t,Object.freeze(i))}var y=B(s),c=q(s);const a={},i=()=>Builder.settings.context||Builder.settings;async function l(e,a={credentials:"include"}){const t={"Content-Type":"application/json"};var i=n();if(!i)throw new Error(401);t.Authorization=i,a.headers=Object.assign({},t,a.headers);const r=await fetch(""+p()+e,a);if(401===r.status)throw new Error(401);i=await r.json();if(i.errors)throw console.error(i.errors),new Error("Failed to fetch API");return i}function o(){try{const a=i().tenantId;var e;return(window.location.search&&!a&&(e=new URLSearchParams(window.location.search),a=e.get("X-Space-Id")),a)?a:null}catch(e){console.error(e)}}function d(){try{var e=i().authToken;return e?e:null}catch(e){console.error(e)}}function n(){try{var e=i(),a=e.tenantId,t=e.authToken;return a&&t?`Bearer ${a},`+t:null}catch(e){console.error(e)}}function u(e){return""+p()+e}function p(e){var a=i();return a.rootUrl||("undefined"!=typeof window?window.localStorage.getItem("steedos:rootUrl"):"")||e}const t=()=>s.cloneDeep(a);async function m(e,a){0!=a&&(a=!0);let t=["_id"],i=[],r=[];for(const n of r=y.isArray(e)?e:y.values(e)){var l;n.name.indexOf(".")<0&&(a&&("lookup"==n.type||"master_detail"==n.type)&&n.reference_to?(l=(await j(n.reference_to)).NAME_FIELD_KEY||"name",t.push(`${n.name}:${n.name}__expand{_id,${l}${n.reference_to_field?","+n.reference_to_field:""}}`)):t.push(n.alias?n.alias+":"+n.name:n.name),"date"!==n.type&&"datetime"!=n.type&&"boolean"!=n.type||t.push(""+n.name),"date"!==n.type&&"datetime"!=n.type&&"boolean"!=n.type&&"select"!=n.type&&"file"!=n.type||i.push(""+n.name))}return i=y.uniq(i),t=y.uniq(t),0<i.length?`${t.join(",")},_display{${i.join(",")}}`:""+t.join(" ")}async function r(e,a,t,i){let r="",l=(a&&(r=`(filters:["${e.idFieldName}", "=", "${a}"])`),"data");return i&&(i.alias&&(l=i.alias),i.filters&&(r=`(filters:${i.filters})`),i.queryOptions&&(r=`(${i.queryOptions})`)),{query:`{${l}:${e.name}${r}{${await m(t)}}}`}}function L(e){return`
2
+ const formData = api.data.$;
3
+ for (key in formData){
4
+ // image、select等字段清空值后保存的空字符串转换为null。
5
+ if(formData[key] === ''){
6
+ formData[key] = null;
7
+ }
8
+ }
9
+ const objectName = api.data.objectName;
10
+ const fieldsName = Object.keys(formData);
11
+ delete formData.created;
12
+ delete formData.created_by;
13
+ delete formData.modified;
14
+ delete formData.modified_by;
15
+ delete formData._display;
16
+ ${function(e){let a=[],t={};return e.forEach(e=>{"image"===e.type&&(a.push(e.name),t[e.name]={name:e.name,multiple:e.multiple})}),a.length?`
17
+ let imgFieldsKeys = ${JSON.stringify(a)};
18
+ let imgFields = ${JSON.stringify(t)};
19
+ imgFieldsKeys.forEach((item)=>{
20
+ let imgFieldValue = formData[item];
21
+ if(imgFieldValue && imgFieldValue.length){
22
+ // 因为表单初始化接口的接收适配器中为image字段值添加了url前缀(为了字段编辑时正常显示图片),所以保存时移除(为了字段值保存时正常保存id,而不是url)。
23
+ if(imgFields[item].multiple){
24
+ if(imgFieldValue instanceof Array){
25
+ formData[item] = imgFieldValue.map((value)=>{
26
+ let itemValue = value?.split('/');
27
+ return itemValue[itemValue.length - 1];
28
+ });
29
+ }
30
+ }else{
31
+ let imgValue = imgFieldValue.split('/');
32
+ formData[item] = imgValue[imgValue.length - 1];
33
+ }
34
+ }
35
+ })
36
+ `:""}(e)}
37
+ ${function(e){let a=[],t={};return e.forEach(e=>{"file"===e.type&&(a.push(e.name),t[e.name]={name:e.name,multiple:e.multiple})}),a.length?`
38
+ let fileFieldsKeys = ${JSON.stringify(a)};
39
+ let fileFields = ${JSON.stringify(t)};
40
+ fileFieldsKeys.forEach((item)=>{
41
+ let fileFieldValue = formData[item];
42
+ if(fileFieldValue){
43
+ // 因为表单初始化接口的接收适配器中为file字段值重写了值及格式(为了字段编辑时正常显示附件名、点击附件名正常下载),所以保存时还原(为了字段值保存时正常保存id)。
44
+ if(fileFields[item].multiple){
45
+ if(fileFieldValue instanceof Array && fileFieldValue.length){
46
+ formData[item] = fileFieldValue.map((value)=>{
47
+ if(typeof value === 'object'){
48
+ return value.value;
49
+ }else{
50
+ return value;
51
+ }
52
+ });
53
+ }
54
+ }else{
55
+ formData[item] = typeof fileFieldValue === 'object' ? fileFieldValue.value : fileFieldValue;
56
+ }
57
+ }
58
+ })
59
+ `:""}(e)}
60
+ let query = \`mutation{record: \${objectName}__insert(doc: {__saveData}){_id}}\`;
61
+ if(formData.recordId && formData.recordId !='new'){
62
+ query = \`mutation{record: \${objectName}__update(id: "\${formData._id}", doc: {__saveData}){_id}}\`;
63
+ };
64
+ delete formData._id;
65
+ let __saveData = JSON.stringify(JSON.stringify(formData));
66
+ `}async function f(e,a,t,i){var r=i.limit||10;let l=`(top: ${r})`,n=(a&&(l=`(filters:["_id", "=", "${a}"], top: ${r})`),"data");return i&&(i.alias&&(n=i.alias),i.filters&&(l=`(filters:${i.filters})`),i.queryOptions&&(l=`(${i.queryOptions})`)),{orderBy:"${orderBy}",orderDir:"${orderDir}",pageNo:"${page}",pageSize:"${perPage}",query:`{${n}:${e.name}${l}{${await m(t,i.expand)}},count:${e.name}__count(filters:{__filters})}`}}function g(e){if(!e)return"${context.rootUrl}/graphql"}const b={getAppPath({formFactor:e,appId:a}){return`/${"SMALL"===e?"mapp":"app"}/`+a},getPagePath(){},getObjectListViewPath({formFactor:e,appId:a,objectName:t,listViewName:i}){return`/${"SMALL"===e?"mapp":"app"}/${a}/${t}/grid/`+i},getObjectDetailPath({formFactor:e,appId:a,objectName:t,recordId:i}){return`/${"SMALL"===e?"mapp":"app"}/${a}/${t}/view/`+i},getObjectRelatedViewPath({formFactor:e,appId:a,masterObjectName:t,masterRecordId:i,objectName:r,foreignKey:l}){return`/${"SMALL"===e?"mapp":"app"}/${a}/${t}/${i}/${r}/grid?related_field_name=`+l}};function h(e){return`<div>\${_display.${e.name}}</div>`}function $(e){return`<div>\${_display.${e.name}}</div>`}function v(e){return`<div>\${_display.${e.name}}</div>`}function w(e,a){var t;return e.reference_to?e.multiple?(t=b.getObjectDetailPath({formFactor:a.formFactor,appId:a.appId,objectName:e.reference_to,recordId:"<%=item._id%>"}),`
67
+ <% if (data.${e.name} && data.${e.name}.length) { %><% data.${e.name}.forEach(function(item) { %> <a href="${t}"><%=item.name%></a> <% }); %><% } %>
68
+ `):`<a href="${b.getObjectDetailPath({formFactor:a.formFactor,appId:a.appId,objectName:e.reference_to,recordId:`\${${e.name}._id}`})}">\${${e.name}.name}</a>`:v(e)}function P(e){return`<% if (data.${e.name}) { %>
69
+ <span class="slds-icon_container slds-icon-utility-check slds-current-color" title="<%=data._display.${e.name}%>">
70
+ <span class="slds-assistive-text"><%=data._display.${e.name}%></span>
71
+ </span>
72
+ <% } %>`}function U(e){return`<% if (data.${e.name}) { %>
73
+ <span>······</span>
74
+ <% } %>`}function F(e,a){if(e.is_name||e.name===a.labelFieldName)return t=e,"cms_files"===(i=a).objectName?`<a href="\${context.rootUrl}/api/files/files/\${versions[0]}?download=true">\${${t.name}}</a>`:`<a href="${b.getObjectDetailPath({formFactor:i.formFactor,appId:i.appId,objectName:i.tabId,recordId:`\${${i.idFieldName}}`})}">\${${t.name}}</a>`;var t,i;switch(e.type){case"password":return U(e);case"boolean":return P(e);case"select":return v(e);case"date":return h(e);case"datetime":return $(e);case"lookup":case"master_detail":return w(e,a)}}var S={newRecordMode:"modal",editRecordMode:"modal",perPage:20};function Y(e,a){return{mode:"table",name:"thelist",draggable:!1,headerToolbar:["reload"],defaultParams:{perPage:(a=a||{}).top||S.perPage},columns:function(e,i){const r=[{name:"_index",type:"text",width:32,placeholder:""}];return y.each(e,function(a){if(!a.is_name&&a.name!==i.labelFieldName||"cms_files"!==i.objectName){var t=F(a,i);let e=t?"tpl":"text";a.hidden||a.extra||r.push({name:a.name,label:a.label,sortable:a.sortable,width:a.width,type:e,tpl:t,toggled:a.toggled})}else r.push({type:"button",label:`\${${a.name}}`,type:"button",actionType:"ajax",api:{url:"${context.rootUrl}/api/files/files/${versions[0]}?download=true",method:"get",headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"},responseType:"blob",dataType:"form-data"},id:"u:6c8291d1029f",level:"link"})}),r}(e,a),syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:`\${${a.labelFieldName}}`,autoFillHeight:!1}}async function J(e,a,t){const i=[];let{globalFilter:r,filter:l}=t;y.isArray(l)&&(l=y.map(l,function(e){return e.operation?[e.field,e.operation,e.value]:e})),y.each(a,function(e){e.searchable&&i.push(e.name)});t=e.key_field||"_id";const n=await async function(e,a,t,i){e=await f(e,a,t,i);return{method:"post",url:g(),data:e,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}(e,null,a,{alias:"rows",queryOptions:'filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"'});return n.data.$term="$term",n.data.$self="$$",n.data.filter="$filter",n.requestAdaptor=`
75
+ const selfData = JSON.parse(JSON.stringify(api.data.$self));
76
+ ${r?`var filters = ${JSON.stringify(r)};`:"var filters = [];"}
77
+ if(_.isEmpty(filters)){
78
+ filters = api.data.filter || [${JSON.stringify(l)}];
79
+ }else{
80
+ filters = [filters, 'and', api.data.filter || [${JSON.stringify(l)}]]
81
+ }
82
+ var pageSize = api.data.pageSize || 10;
83
+ var pageNo = api.data.pageNo || 1;
84
+ var skip = (pageNo - 1) * pageSize;
85
+ var orderBy = api.data.orderBy || '';
86
+ var orderDir = api.data.orderDir || '';
87
+ var sort = orderBy + ' ' + orderDir;
88
+ var allowSearchFields = ${JSON.stringify(i)};
89
+ if(api.data.$term){
90
+ filters = [["name", "contains", "'+ api.data.$term +'"]];
91
+ }else if(selfData.op === 'loadOptions' && selfData.value){
92
+ filters = [["${t.name}", "=", selfData.value]];
93
+ }
94
+
95
+ var searchableFilter = [];
96
+ _.each(selfData, (value, key)=>{
97
+ if(!_.isEmpty(value) || _.isBoolean(value)){
98
+ if(_.startsWith(key, '__searchable__between__')){
99
+ searchableFilter.push([\`\${key.replace("__searchable__between__", "")}\`, "between", value])
100
+ }else if(_.startsWith(key, '__searchable__')){
101
+ if(_.isString(value)){
102
+ searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "contains", value])
103
+ }else{
104
+ searchableFilter.push([\`\${key.replace("__searchable__", "")}\`, "=", value])
105
+ }
106
+ }
107
+ }
108
+ });
109
+
110
+ if(searchableFilter.length > 0){
111
+ if(filters.length > 0 ){
112
+ filters = [filters, 'and', searchableFilter];
113
+ }else{
114
+ searchableFilter = filters;
115
+ }
116
+ }
117
+
118
+ if(allowSearchFields){
119
+ allowSearchFields.forEach(function(key){
120
+ const keyValue = selfData[key];
121
+ if(keyValue){
122
+ filters.push([key, "contains", keyValue]);
123
+ }
124
+ })
125
+ }
126
+
127
+ if(selfData.__keywords && allowSearchFields){
128
+ const keywordsFilters = [];
129
+ allowSearchFields.forEach(function(key, index){
130
+ const keyValue = selfData.__keywords;
131
+ if(keyValue){
132
+ keywordsFilters.push([key, "contains", keyValue]);
133
+ if(index < allowSearchFields.length - 1){
134
+ keywordsFilters.push('or');
135
+ }
136
+ }
137
+ })
138
+ filters.push(keywordsFilters);
139
+ }
140
+ api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', pageSize).replace('{__skip}', skip).replace('{__sort}', sort.trim());
141
+ return api;
142
+ `,n.adaptor=`
143
+ _.each(payload.data.rows, function(item, index){
144
+ item._index = index + 1;
145
+ })
146
+ window.postMessage(Object.assign({type: "listview.loaded"}), "*")
147
+ return payload;
148
+ `,n}function R(e,i){const r=[];return _.each(e,function(e){var a=F(e,i);let t=a?"tpl":"text";e.hidden||e.extra||r.push({name:e.name,label:e.label,sortable:e.sortable,width:e.width,type:t,tpl:a,toggled:e.toggled})}),{type:"hbox",columns:r}}function z(e){return{perPage:e.top||10}}const k=async t=>{let i=t.reference_to;if(i){"users"===i&&(i="space_users",t.reference_to_field="user");var r=await j(i);let e=null,a=t.reference_to_field;return a=a||r.idFieldName||"_id",e="_id"===a?{name:"_id",label:"ID",type:"text",toggled:!1}:r.fields[a]||{name:a},{objectName:i,valueField:e,labelField:r.fields[r.NAME_FIELD_KEY||"name"]}}};async function C(i,r,l){var n=await k(i);if(n){var o,s=await j(n.objectName);const d=[];let e=0;const c=[],u=[],p=(y.each(s.fields,(e,a)=>{"_id"==a||e.hidden||(y.has(e,"name")||(e.name=a),u.push(e))}),y.each(y.sortBy(u,"sort_no"),function(a){e<5&&(y.find(d,function(e){return e.name===a.name})||(e++,d.push(a),a.searchable&&c.push(a.name)))}),{[n.labelField.name]:n.labelField,[n.valueField.name]:n.valueField}),m=(y.each(d,e=>{e.hidden||(p[e.name]=e)}),await K({name:n.objectName},null,p,{expand:!0,alias:"rows",queryOptions:'filters: {__filters}, top: {__top}, skip: {__skip}, sort: "{__sort}"'}));m.data.$term="$term",m.data.$self="$$",m.requestAdaptor=`
149
+ const selfData = JSON.parse(JSON.stringify(api.data.$self));
150
+ var filters = [];
151
+ var pageSize = api.data.pageSize || 10;
152
+ var pageNo = api.data.pageNo || 1;
153
+ var skip = (pageNo - 1) * pageSize;
154
+ var orderBy = api.data.orderBy || '';
155
+ var orderDir = api.data.orderDir || '';
156
+ var sort = orderBy + ' ' + orderDir;
157
+ var allowSearchFields = ${JSON.stringify(c)};
158
+ if(api.data.$term){
159
+ filters = [["name", "contains", "'+ api.data.$term +'"]];
160
+ }else if(selfData.op === 'loadOptions' && selfData.value){
161
+ filters = [["${n.valueField.name}", "=", selfData.value]];
162
+ }
163
+ if(allowSearchFields){
164
+ allowSearchFields.forEach(function(key){
165
+ const keyValue = selfData[key];
166
+ if(keyValue){
167
+ filters.push([key, "contains", keyValue]);
168
+ }
169
+ })
170
+ }
171
+ api.data.query = api.data.query.replace(/{__filters}/g, JSON.stringify(filters)).replace('{__top}', pageSize).replace('{__skip}', skip).replace('{__sort}', sort.trim());
172
+ return api;
173
+ `;let a=20,t=(s.paging&&!1===s.paging.enabled&&(a=1e3),null);t="SMALL"===l.formFactor?(s=d,{mode:"list",name:"thelist",draggable:!(o={top:a,...l,actions:!1}),headerToolbar:["reload"],defaultParams:z(o),syncLocation:!1,keepItemSelectionOnPageChange:!0,checkOnItemClick:!1,labelTpl:"${name}",listItem:{body:[...R(s,o).columns],actions:!1===o.actions?null:[{icon:"fa fa-eye",label:"查看",type:"button",actionType:"link",link:b.getObjectDetailPath({formFactor:o.formFactor,appId:o.appId,objectName:o.tabId,recordId:"${_id}"})}]}}):Y(d,{top:a,...l});const f={type:O("picker",r),labelField:n.labelField.name,valueField:n.valueField.name,modalMode:"dialog",source:m,size:"lg",pickerSchema:t,joinValues:!1,extractValue:!0};return i.multiple&&(f.multiple=!0,f.extractValue=!0),r&&(f.tpl=w(i,l)),f}}async function H(e,a,t){var i=await k(e);let r,l=((r=i?await K({name:i.objectName},null,{[i.labelField.name]:Object.assign({},i.labelField,{alias:"label"}),[i.valueField.name]:Object.assign({},i.valueField,{alias:"value"})},{expand:!1,alias:"options",queryOptions:"filters: {__filters}, top: {__top}"}):{method:"post",url:g(),data:{query:'{objects(filters: ["_id", "=", "-1"]){_id}}',$:"$$"}}).data.$term="$term",r.data.$value=`$${e.name}.`+(i?i.valueField.name:"_id"),y.each(e.depend_on,function(e){r.data[e]="$"+e}),r.data.$="$$",r.data.rfield="${object_name}",r.requestAdaptor=`
174
+ var filters = '[]';
175
+ var top = 10;
176
+ if(api.data.$term){
177
+ filters = '["name", "contains", "'+ api.data.$term +'"]';
178
+ }else if(api.data.$value){
179
+ filters = '["_id", "=", "'+ api.data.$value +'"]';
180
+ }
181
+ api.data.query = api.data.query.replace(/{__filters}/g, filters).replace('{__top}', top);
182
+ return api;
183
+ `,i?i.labelField.name:""),n=i?i.valueField.name:"";e._optionsFunction&&(r.adaptor=`
184
+ payload.data.options = eval(${e._optionsFunction})(api.data);
185
+ return payload;
186
+ `,l="label",n="value");const o={type:O("select",a),joinValues:!1,extractValue:!0,labelField:l,valueField:n,autoComplete:r};return!y.has(e,"defaultValue")||y.isString(e.defaultValue)&&e.defaultValue.startsWith("{")||(o.value=e.defaultValue),e.multiple&&(o.multiple=!0,o.extractValue=!0),a&&(o.tpl=w(e,t)),o}async function K(e,a,t,i){e=await f(e,a,t,i);return{method:"post",url:g(),data:e,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function W(e,a,t){var i=await k(e);return(i&&1==(await j(i.objectName)).enable_enhanced_lookup?C:H)(e,a,t)}const x=["created","created_by","modified","modified_by"],Z=["text","date","file","image","datetime","time","number","currency","percent","password","url","email"];function O(e,a){return a?y.includes(["text"],e)?"static-"+e:"static":y.includes(Z,e)?"input-"+e:e}function G(a,e){const t=Object.assign({subFields:[]},a);e=y.filter(e,function(e){return e.name.startsWith(a.name+".")});return t.subFields=e,t}function X(a,e){const t=Object.assign({subFields:[]},a);e=y.filter(e,function(e){return e.name.startsWith(a.name+".")});return t.subFields=e,t}async function N(r,l,e){let a=null;if(!y.includes(x,r.name)||1==e.showSystemFields){var t,n={name:e.fieldNamePrefix?""+e.fieldNamePrefix+r.name:r.name,label:r.label,labelRemark:r.inlineHelpText,required:(y.has(e,"required")?e:r).required};let i={};switch(r.type){case"text":i.type=O("text",l);break;case"textarea":i.type=O("textarea",l),i.tpl=`<b><%=data.${r.name}%></b>`;break;case"html":i={type:"editor",language:"html",value:r.defaultValue||""};break;case"select":i={type:O("select",l),joinValues:!1,options:function(e){const a=e.data_type||"text",t=[];return y.each(e.options,e=>{switch(a){case"number":t.push({label:e.label,value:Number(e.value)});break;case"text":t.push({label:e.label,value:String(e.value)});break;case"boolean":t.push({label:e.label,value:"false"!==e.value})}}),t}(r),extractValue:!0,clearable:!0,labelField:"label",valueField:"value",tpl:l?v(r):null},!y.has(r,"defaultValue")||y.isString(r.defaultValue)&&r.defaultValue.startsWith("{")||(t=r.data_type||"text",null!=r.defaultValue&&("text"===t?i.value=String(r.defaultValue):"number"===t?i.value=Number(r.defaultValue):"boolean"===t&&(i.value="false"!==r.defaultValue))),r.multiple&&(i.multiple=!0,i.extractValue=!0);break;case"boolean":i={type:O("checkbox",l),option:r.inlineHelpText,tpl:l?P(r):null};break;case"input-date-range":i={type:"input-date-range",inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:l?h(r):null};break;case"date":i={type:O("date",l),inputFormat:"YYYY-MM-DD",format:"YYYY-MM-DDT00:00:00.000[Z]",tpl:l?h(r):null};break;case"input-datetime-range":i={type:"input-datetime-range",inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSS[Z]",tpl:l?$(r):null,utc:!0};break;case"datetime":i={type:O("datetime",l),inputFormat:"YYYY-MM-DD HH:mm",format:"YYYY-MM-DDTHH:mm:ss.SSS[Z]",tpl:l?$(r):null,utc:!0};break;case"input-time-range":i={type:"input-time-range",inputFormat:"HH:mm",timeFormat:"1970-01-01THH:mm:00.000[Z]",format:"1970-01-01THH:mm:00.000[Z]",tpl:l?$(r):null};break;case"time":i={type:O("time",l),inputFormat:"HH:mm",timeFormat:"1970-01-01THH:mm:00.000[Z]",format:"1970-01-01THH:mm:00.000[Z]",tpl:l?$(r):null};break;case"number":case"currency":i={type:O("number",l),min:r.min,max:r.max,precision:r.scale};break;case"input-array":i=Object.assign({},r,n);break;case"input-range":i={type:"input-range",min:r.min,max:r.max,value:[0,0],multiple:!0,showInput:!0};break;case"percent":i={type:O("number",l),min:r.min,max:r.max,precision:r.scale};break;case"password":i={type:O("password",l),tpl:l?U(r):null};break;case"lookup":case"master_detail":i=await W(r,l,e);break;case"autonumber":break;case"url":i={type:O("url",l)};break;case"email":i={type:O("email",l)};break;case"image":a=u("/api/files/images/"),i={type:O("image",l),receiver:{method:"post",url:"${context.rootUrl}/s3/images",adaptor:`
187
+ var rootUrl = ${JSON.stringify(a)};
188
+ payload = {
189
+ status: response.status == 200 ? 0 : response.status,
190
+ msg: response.statusText,
191
+ data: {
192
+ value: payload._id,
193
+ filename: payload.original.name,
194
+ url: rootUrl + payload._id,
195
+ }
196
+ }
197
+ return payload;
198
+ `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}},r.multiple&&(i.multiple=!0,i.joinValues=!1,i.extractValue=!0);break;case"file":a=u("/api/files/files/"),i={type:O("file",l),receiver:{method:"post",url:"${context.rootUrl}/s3/files",adaptor:`
199
+ var rootUrl = ${JSON.stringify(a)};
200
+ payload = {
201
+ status: response.status == 200 ? 0 : response.status,
202
+ msg: response.statusText,
203
+ data: {
204
+ value: payload._id,
205
+ name: payload.original.name,
206
+ url: rootUrl + payload._id,
207
+ }
208
+ }
209
+ return payload;
210
+ `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}},r.multiple&&(i.multiple=!0,i.joinValues=!1,i.extractValue=!0);break;case"formula":case"summary":break;case"code":i={type:"editor",language:r.language,value:r.defaultValue||""};break;case"toggle":i={type:"switch"};break;case"grid":i={type:"input-table",strictMode:!1,affixHeader:!1,editable:!l,addable:!l,removable:!l,draggable:!l,columns:[]},y.each(r.subFields,function(e){var a=e.name.replace(r.name+".$.","").replace(r.name+".","");const t=N(Object.assign({},e,{name:a}),l);t&&(delete t.name,delete t.label,i.columns.push({name:a,label:e.label,quickEdit:!l&&t}))})}return y.isEmpty(i)?void 0:(r.is_wide?i.className="col-span-2 m-1":i.className="m-1",l&&(i.className=i.className+" slds-form-element_readonly"),i.labelClassName="text-left",l&&(i.quickEdit=!1),r.visible_on&&(i.visibleOn="$"+r.visible_on.substring(1,r.visible_on.length-1).replace(/formData./g,"")),Object.assign({},n,i))}}const Q=100;async function ee(e,a,t){return{method:"post",url:g()+"?rf="+(new Date).getTime(),cache:Q,adaptor:function(e){let t="";return e=y.filter(e,function(e){return e.name.indexOf(".")<0&&("select"==e.type&&e.options||("lookup"==e.type||"master_detail"==e.type)&&!e.reference_to)}),y.each(e,function(e){var a;y.includes(x,e.name)||(e.name,e.options?(a=JSON.stringify({options:e.options}),t+=`var ${e.name}Options= (${a}).options;`):e.optionsFunction&&(t+=`var ${e.name}Options = eval(${e.optionsFunction.toString()})(api.data);`),e.multiple?t+=`data.${e.name}__label = _.map(_.filter(${e.name}Options, function(option){return _.includes(data.${e.name}, option.value)}), 'label');`:t=(t+=`var ${e.name}Selected = _.find(${e.name}Options, function(option){return data.${e.name} == option.value});`)+`data.${e.name}__label = ${e.name}Selected ? ${e.name}Selected.label:null;`)}),`
211
+ if(payload.data.data){
212
+ var data = payload.data.data[0];
213
+ ${t}
214
+ payload.data = data;
215
+ window.postMessage(Object.assign({type: "record.loaded"}, {record: data}), "*")
216
+ }
217
+ return payload;
218
+ `}(t),data:await r(e,a,t),headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}async function ae(e,a,t){return{method:"post",url:g(),sendOn:"!!this.recordId",cache:Q,adaptor:`
219
+ if(payload.data.data){
220
+ var data = payload.data.data[0];
221
+ if(data){
222
+ ${function(e){e=y.filter(e,function(e){return e.name.indexOf(".")<0&&("lookup"==e.type||"master_detail"==e.type)&&e.reference_to});let t="";return y.each(e,function(e){var a;y.includes(x,e.name)||(a=e.reference_to_field||"_id",e.multiple?t+=`data.${e.name} = _.map(data.${e.name}, '${a}');`:t+=`data.${e.name} = data.${e.name} ? data.${e.name}.${a}:null;`)}),t}(t)}
223
+ ${function(e){let a=[],t={};var i=u("/api/files/images/");return e.forEach(e=>{"image"===e.type&&(a.push(e.name),t[e.name]={name:e.name,multiple:e.multiple})}),a.length?`
224
+ // image字段值添加URL前缀
225
+ let imgFieldsKeys = ${JSON.stringify(a)};
226
+ let imgFields = ${JSON.stringify(t)};
227
+ let rootUrl = ${JSON.stringify(i)};
228
+ imgFieldsKeys.forEach((item)=>{
229
+ let imgFieldValue = data[item];
230
+ if(imgFieldValue && imgFieldValue.length){
231
+ if(imgFields[item].multiple){
232
+ if(imgFieldValue instanceof Array){
233
+ data[item] = imgFieldValue.map((value)=>{ return rootUrl + value});
234
+ }
235
+ }else{
236
+ data[item] = rootUrl + imgFieldValue;
237
+ }
238
+ }
239
+ })
240
+ `:""}(t)}
241
+ ${function(e){let a=[],t={};var i=u("/api/files/files/");return e.forEach(e=>{"file"===e.type&&(a.push(e.name),t[e.name]={name:e.name,multiple:e.multiple})}),a.length?`
242
+ // file字段值重写以便编辑时正常显示附件名、点击附件名正常下载附件
243
+ let fileFieldsKeys = ${JSON.stringify(a)};
244
+ let fileFields = ${JSON.stringify(t)};
245
+ let fileRootUrl = ${JSON.stringify(i)};
246
+ fileFieldsKeys.forEach((item)=>{
247
+ let fileFieldValue = data[item];
248
+ if(fileFieldValue && fileFieldValue.length){
249
+ const fileFieldNames = data._display[item].split(',');
250
+ if(fileFields[item].multiple){
251
+ if(fileFieldValue instanceof Array){
252
+ data[item] = fileFieldValue.map((value, index)=>{
253
+ return {
254
+ value: value,
255
+ name: fileFieldNames[index],
256
+ url: fileRootUrl + value + "?download=true",
257
+ state: "uploaded"
258
+ }
259
+ });
260
+ }
261
+ }else{
262
+ data[item] = {
263
+ value: fileFieldValue,
264
+ name: fileFieldNames[0],
265
+ url: fileRootUrl + fileFieldValue + "?download=true",
266
+ state: "uploaded"
267
+ };
268
+ }
269
+ }
270
+ })
271
+ `:""}(t)}
272
+ //初始化接口返回的字段移除字段值为null的字段
273
+ for (key in data){
274
+ if(data[key] === null){
275
+ delete data[key];
276
+ }
277
+ }
278
+ };
279
+ payload.data = data;
280
+ delete payload.extensions;
281
+ }
282
+ return payload;
283
+ `,data:await r(e,a,t),headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}function te(e,a,t){return{method:"post",url:g(),data:{objectName:"${objectName}",$:"$$",recordId:"${recordId}",modalName:"${modalName}"},requestAdaptor:`
284
+ ${L(t)}
285
+ api.data = {query: query.replace('{__saveData}', __saveData)};
286
+ return api;
287
+ `,responseData:{recordId:"${record._id}"},adaptor:`
288
+ return payload;
289
+ `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}}}const ie=e=>{let i=[];return i.length=0,y.forEach(e.fields,(e,a)=>{y.has(e,"name")||(e.name=a)}),y.forEach(y.sortBy(e.fields,"sort_no"),e=>{e.group&&"null"!=e.group&&"-"!=e.group||(e.group="通用");var a=e.name,t=/\w+\.\w+/.test(a);"grid"!=e.type&&"object"!=e.type||(e.is_wide=!0),t||e.hidden||i.push(Object.assign({name:a},e,{permission:{allowEdit:!0}}))}),i},re=async(a,e,t,i)=>{var r,e=y.filter(e,{group:t});if(e.length!=y.filter(e,["hidden",!0]).length){const l=[];for(const n of e){let e=n;"grid"===n.type?e=await X(n,a):"object"===n.type&&(e=await G(n,a)),e.name.indexOf(".")<0&&((r=await N(e,e.readonly,i))&&l.push(r))}return{type:"fieldSet",title:t,collapsable:!0,body:l}}},le=async(e,a,t)=>{var i=ie(a);const r=[];for(const n in y.groupBy(i,"group")){var l=await re(e,i,n,t);0<l.body.length&&r.push(l)}return r};async function ne(e,a,t){return le(e,a,t)}function oe(e){return[{type:"button",level:"danger",label:"批量删除",actionType:"ajax",confirmText:"确定要删除吗",id:"batchDelete",api:(e=e.name,{method:"post",url:g(),requestAdaptor:`
290
+ var ids = api.data.ids.split(",");
291
+ var deleteArray = [];
292
+ ids.forEach((id,index)=>{
293
+ deleteArray.push(\`delete__\${index}:${e}__delete(id: "\${id}")\`);
294
+ })
295
+ api.data = {query: \`mutation{\${deleteArray.join(',')}}\`};
296
+ return api;
297
+ `,data:{ids:"${ids}"},headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}})}]}async function se(e,a,t){var i=oe(e);const r={toolbar:[],footerToolbar:["statistics","pagination"],headerToolbar:"SMALL"===t.formFactor?["bulkActions",{type:"reload",align:"right"},{type:"search-box",align:"right",name:"__keywords",placeholder:"请输入关键字",mini:!0}]:["filter-toggler","bulkActions",{type:"search-box",align:"right",name:"__keywords",placeholder:"请输入关键字",mini:!0}],bulkActions:i,bodyClassName:""};let l=null;i="listview_"+e.name;if("SMALL"===t.formFactor)delete r.bulkActions,delete r.headerToolbar,delete r.footerToolbar,l=Object.assign({},function(e,a){let t=null;var i=_.find(e,e=>e.name===a.labelFieldName);return i&&(t=F(i,a)),{mode:"cards",name:"cards",draggable:!1,headerToolbar:["statistics","pagination"],defaultParams:z(a),syncLocation:!1,keepItemSelectionOnPageChange:!1,checkOnItemClick:!1,labelTpl:`\${${a.labelFieldName}}`,card:{type:"card",header:{title:t},body:[...R(_.filter(e,e=>e.name!=a.labelFieldName),a).columns]}}}(a,Object.assign({idFieldName:e.idFieldName,labelFieldName:e.NAME_FIELD_KEY||"name"},t,{actions:!1})),{type:"crud",primaryField:"_id",id:i,name:i,keepItemSelectionOnPageChange:!1,api:await J(e,a,t)},r);else{const n=Y(a,Object.assign({idFieldName:e.idFieldName,labelFieldName:e.NAME_FIELD_KEY||"name"},t));delete n.mode,l=Object.assign({},n,{type:"crud",primaryField:"_id",id:i,name:i,keepItemSelectionOnPageChange:!0,api:await J(e,a,t)},r)}return{type:"service",bodyClassName:"",name:"page",data:{context:{rootUrl:p(),tenantId:o(),authToken:d()}},body:l}}const de=e=>{var a=t();return{mode:e,user:a,spaceId:a.spaceId,userId:a.userId}};const ce=(e,a,t)=>{e=e.replace(/\./g,"_");t=(e=>{const a=["_id"];return e.push("record_permissions"),s.each(e,e=>{-1<e.indexOf(".")&&(e=e.split(".")[0]),a.push(""+e)}),""+a.join(" ")})(t);let i="";const r=[`id: "${a}"`];return`{record:${e}__findOne${i=0<r.length?`(${r.join(",")})`:i}{${t}}}`},ue=async(e,a,t)=>{return(await l("/graphql",{method:"post",body:JSON.stringify({query:ce(e,a,t)})})).data.record};const I={},pe=(e,a)=>{I[e]=a},me=e=>c.default.cloneDeep(I[e]),fe=e=>c.default.has(I,e);async function j(a,e){if(a){if(!fe(a)||e){var i,e=`/service/api/@${a.replace(/\./g,"_")}/uiSchema`;let t=null;try{t=await l(e,{method:"get"}),pe(a,t);for(const r in t.fields)!t.fields||"lookup"!==(i=t.fields[r]).type&&"master_detail"!==i.type||!i.reference_to||await j(i.reference_to)||delete t.fields[r];s.each(t.list_views,(e,a)=>{e.name=a,s.has(e,"columns")||(e.columns=t.list_views.all.columns)})}catch(e){console.error("getUISchema",a,e),pe(a,null)}}return me(a)}}async function D(e,a){return(await j(e))?.fields[a]}async function V(e,a,t,i={}){const r=await j(a);var l=c.default.find(r.list_views,(e,a)=>a===t);if(!l)return{uiSchema:r};r.fields;const n=[];var o=((e,a)=>{let t=[];return t="SMALL"===a?s.isEmpty(e.mobile_columns)?s.slice(e.columns,0,4):e.mobile_columns:e.columns})(l,i.formFactor),o=(l&&o&&c.default.each(o,function(e){c.default.isString(e)&&r.fields[e]?n.push(r.fields[e]):c.default.isObject(e)&&r.fields[e.field]&&n.push(Object.assign({},r.fields[e.field],{width:e.width,wrap:e.wrap}))}),l&&l.extra_columns&&c.default.each(l.extra_columns,function(e){c.default.isString(e)?n.push({extra:!0,name:e}):c.default.isObject(e)&&n.push({extra:!0,name:e.field})}),o=n,await se(r,o,{tabId:a,appId:e,objectName:a,...i,filter:l.filters}));return{uiSchema:r,amisSchema:o}}const ye="__G_L_O_B_A_L__",ge=function(e){var a,t;return"string"==typeof e&&(a=/^{{(function.+)}}$/,t=/^{{(.+=>.+)}}$/,!("string"!=typeof e||!e.match(/^{{(.+)}}$/)||e.match(a)||e.match(t)))},_e=function(a,e,t,i,r={}){var l,n;if(void 0===e&&(e={}),n="string"!=typeof(n=t)||1===(n=n.split(".")).length?"#":(n.pop(),n.join(".")),l=e,n=("#"!==(n=n)&&n?"string"==typeof n?y.get(l,n):void console.error("path has to be a string"):l||{})||{},"string"!=typeof a)return a;l=a.substring(2,a.length-2),r=`
298
+ var $user=${JSON.stringify(r)}; return `+l.replace(/\bformData\b/g,JSON.stringify(e).replace(/\bglobal\b/g,ye)).replace(/\bglobal\b/g,JSON.stringify(i)).replace(new RegExp("\\b"+ye+"\\b","g"),"global").replace(/rootValue/g,JSON.stringify(n));try{return Function(r)()}catch(e){return console.log(e,a,t),a}},be=()=>({now:new Date}),A=(a,e)=>{if(a._visible&&(c.default.startsWith(c.default.trim(a._visible),"function")?(window.eval("var fun = "+a._visible),a.visible=fun):ge(a._visible)&&(a.visible=e=>{_e(a._visible,e.record,"#",be(),e.userSession)})),!c.default.isFunction(a.visible))return a.visible;try{return a.visible(e)}catch(e){}},T={standard_new:(e,a)=>{const{appId:t,listViewId:i,uiSchema:r,formFactor:l,data:n,router:o,options:s={}}=a;a=S.newRecordMode;SteedosUI?.Object.newRecord({onSubmitted:()=>{SteedosUI.getRef(i).getComponentByName("page.listview_"+r.name).handleAction({},{actionType:"reload"})},onCancel:()=>{SteedosUI.getRef(i).getComponentByName("page.listview_"+r.name).handleAction({},{actionType:"reload"})},appId:t,formFactor:l,name:SteedosUI.getRefId({type:a+"-form"}),title:"新建 "+r.label,objectName:r.name,data:n,recordId:"new",type:a,options:s,router:o})},standard_edit:(e,a)=>{var t=S.newRecordMode;const{appId:i,recordId:r,uiSchema:l,formFactor:n,router:o,options:s={}}=a;SteedosUI?.Object.editRecord({appId:i,name:SteedosUI.getRefId({type:t+"-form"}),title:"编辑 "+l.label,objectName:l.name,recordId:r,type:t,options:s,router:o,formFactor:n,onSubmitted:()=>{SteedosUI.getRef(SteedosUI.getRefId({type:"detail",appId:i,name:l.name})).getComponentById("detail_"+r).reload()}})},standard_delete:(e,a)=>{},standard_delete_many:(e,a)=>{var{listViewId:a,uiSchema:t}=a;const i=SteedosUI?.getRef(a).getComponentByName("page.listview_"+t.name);c.default.isEmpty(i.props.store.toJSON().selectedItems)?i.handleAction({},{actionType:"toast",toast:{items:[{position:"top-right",body:"请选择要删除的项"}]}}):i.handleBulkAction(i.props.store.toJSON().selectedItems,[],{},i.props.bulkActions[0])}},E=(a,t)=>{const i=a.permissions.disabled_actions;let e=c.default.sortBy(c.default.values(a.actions),"sort");return c.default.has(a,"allow_customActions")&&(e=c.default.filter(e,e=>c.default.include(a.allow_customActions,e.name))),c.default.has(a,"exclude_actions")&&(e=c.default.filter(e,e=>!c.default.include(a.exclude_actions,e.name))),c.default.each(e,e=>{t.isMobile&&-1<["record","record_only"].indexOf(e.on)&&"standard_edit"!=e.name&&("record_only"==e.on?e.on="record_only_more":e.on="record_more")}),t.isMobile&&-1<["cms_files","cfs.files.filerecord"].indexOf(a.name)&&c.default.map(e,e=>{"standard_edit"===e.name&&(e.on="record_more"),"download"===e.name&&(e.on="record")}),c.default.filter(e,e=>c.default.indexOf(i,e.name)<0)};const M={};e.absoluteUrl=u,e.execute=(e,a)=>{if(e.todo)return c.default.isString(e.todo)&&c.default.startsWith(c.default.trim(e.todo),"function")&&(window.eval("var fun = "+e.todo),e.todo=fun),c.default.isFunction(e.todo)?e.todo.apply({},[a]):void 0},e.fetchAPI=l,e.getApp=async function(e){return await l(`/service/api/apps/${e}/menus`)},e.getApps=async function(){return await l("/service/api/apps/menus")},e.getAuthToken=d,e.getAuthorization=n,e.getButtons=E,e.getEnv=e=>M[e],e.getEnvs=()=>M,e.getField=D,e.getFileSrc=function(e){return p()+"/api/files/files/"+e},e.getFormSchema=async function(e,a){var t,i,r,e=await j(e);return t=e,i=(a=a).recordId,r=c.default.values(t.fields),{uiSchema:e,amisSchema:await{type:"page",bodyClassName:"p-0",regions:["body"],name:"page_edit_"+i,data:{global:de("edit"),recordId:i,objectName:t.name,context:{rootUrl:p(),tenantId:o(),authToken:d()}},initApi:null,initFetch:null,body:[{type:"form",mode:"SMALL"===a.formFactor?"normal":"horizontal",persistData:!1,promptPageLeave:!0,name:"form_edit_"+i,debug:!1,title:"",submitText:"",api:await te(0,0,r),initApi:await ae(t,i,r),initFetch:"new"!=i,body:await ne(r,t,a),panelClassName:"m-0 sm:rounded-lg shadow-none",bodyClassName:"p-0",className:"p-4 sm:p-0 steedos-amis-form"}]}}},e.getImageSrc=function(e){return p()+"/api/files/images/"+e},e.getListSchema=V,e.getListViewButtons=(a,t)=>{var e=E(a,t);const i=c.default.filter(e,e=>"list"==e.on&&A(e,t)),r=c.default.find(e,e=>"standard_new"==e.name);return"cms_files"!=a.name&&a.permissions.allowCreate&&r&&0<r._visible.indexOf("Steedos.StandardObjects.Base.Actions.standard_new.visible.apply")&&i.push({label:r.label,name:r.name,on:r.on,type:r.type,todo:e=>T.standard_new.call({},e,{listViewId:t.listViewId,appId:t.app_id,uiSchema:a,formFactor:t.formFactor,router:t.router,data:t.data,options:"SMALL"===t.formFactor?{props:{width:"100%",style:{width:"100%"},bodyStyle:{padding:"0px",paddingTop:"0px"}}}:null})}),i},e.getNotifications=async()=>{var e=t(),e=`
299
+ {
300
+ notifications(filters: ["owner","=","${e.userId}"], sort: "created desc,name", top : 10){
301
+ _id,name,body,related_to,related_name,url,owner,is_read,from,created
302
+ },
303
+ unReadCount: notifications__count(filters: [["owner","=","${e.userId}"], ["is_read", "!=", true]])
304
+ }
305
+ `;return(await l("/graphql",{method:"POST",body:JSON.stringify({query:e})})).data},e.getObjectDetailButtons=(a,t)=>{var e=E(a,t);const i=c.default.filter(e,e=>("record"==e.on||"record_only"==e.on)&&A(e,t)),r=c.default.find(e,e=>"standard_edit"==e.name);return t.permissions?.allowEdit&&r&&0<r._visible.indexOf("Steedos.StandardObjects.Base.Actions.standard_edit.visible.apply")&&i.push({label:r.label,name:r.name,on:r.on,type:r.type,todo:e=>T.standard_edit.call({},e,{recordId:t.recordId,appId:t.app_id,uiSchema:a,formFactor:t.formFactor,router:t.router,options:"SMALL"===t.formFactor?{props:{width:"100%",style:{width:"100%"},bodyStyle:{padding:"0px",paddingTop:"0px"}}}:null})}),c.default.sortBy(i,"sort")},e.getObjectDetailMoreButtons=(e,a)=>{e=E(e,a);const t=c.default.filter(e,e=>("record_more"==e.on||"record_only_more"==e.on)&&A(e,a)),i=c.default.find(e,e=>"standard_delete"==e.name);return a.permissions?.allowDelete&&i&&0<i._visible.indexOf("Steedos.StandardObjects.Base.Actions.standard_delete.visible.apply")&&t.push({label:i.label,name:i.name,on:i.on,type:"amis_action",confirmText:"确定要删除此项目?",sort:i.sort,amis_actions:[{args:{api:{method:"post",url:g(),requestAdaptor:`
306
+ var deleteArray = [];
307
+ deleteArray.push(\`delete:${a.objectName}__delete(id: "${a.recordId}")\`);
308
+ api.data = {query: \`mutation{\${deleteArray.join(',')}}\`};
309
+ return api;
310
+ `,headers:{Authorization:"Bearer ${context.tenantId},${context.authToken}"}},messages:{success:"删除成功",failed:"删除失败"}},actionType:"ajax"}]}),c.default.sortBy(t,"sort")},e.getObjectRelated=async function(e,a,t,i,r,l){let n=null;var o=await D(t,i),o=(n=o._reference_to||o.reference_to&&!c.default.isString(o.reference_to)?[[i+"/o","=",a],[i+"/ids","=",r]]:[""+i,"=",r],await j(a,l));return{masterObjectName:a,object_name:t,foreign_key:i,schema:await V(e,t,"all",{globalFilter:n,formFactor:l}),record:await ue(a,r,[o.NAME_FIELD_KEY]),masterObjectUISchema:o}},e.getObjectRelateds=async function(a,t,i,r){var e=await j(t);const l=[],n=[].concat(e.details||[]);e.enable_files&&n.push("cms_files.parent");for(const d of n){var o=d.split(".");let e=null;var s=await D(o[0],o[1]);e=s._reference_to||s.reference_to&&!c.default.isString(s.reference_to)?[[o[1]+"/o","=",t],[o[1]+"/ids","=",i]]:[""+o[1],"=",i],l.push({masterObjectName:t,object_name:o[0],foreign_key:o[1],schema:await V(a,o[0],"all",{globalFilter:e,formFactor:r})})}return l},e.getPage=async function(e,a,t="",i,r="LARGE"){return await l(`/api/pageSchema/app?app=${a}&objectApiName=${t}&recordId=${i}&pageId=${e}&formFactor=`+r)},e.getRecord=ue,e.getRecordPermissions=async(e,a)=>{return await l(`/service/api/@${e}/recordPermissions/`+a,{method:"GET"})},e.getRelatedsCount=async(a,e)=>{const t=[];s.each(e,e=>{t.push(`${e.object_name}: ${e.object_name}__count(filters: [["${e.foreign_key}","=","${a}"]])`)});e=`
311
+ {
312
+ ${t.join(",")}
313
+ }
314
+ `;return(await l("/graphql",{method:"POST",body:JSON.stringify({query:e})})).data},e.getRootUrl=p,e.getSearchableFieldsFilterSchema=async function(e){const a=[];for(var t of e)if(!c.default.includes(["grid","avatar","image","object","[object]","[Object]","[grid]","[text]","audio","file"],t.type)){delete t.defaultValue,delete t.required,delete t.is_wide,delete t.readonly,delete t.hidden,delete t.omit;const i=await async function(a,e,t){let i=a,r=("grid"===i.type?i=await X(a,e):"object"===a.type&&(i=await G(a,e)),"__searchable__");if(i.name.indexOf(".")<0){let e=s.cloneDeep(i);s.includes(["textarea","html","code","autonumber"],i.type)&&(e.type="text"),"number"!==i.type&&"currency"!==i.type||(e.type="input-array",e.inline=!0,e.addable=!1,e.removable=!1,e.value=[null,null],e.items={type:"input-number"},e.is_wide=!0,r+="between__"),"date"===i.type&&(e.type="input-date-range",e.is_wide=!0,r+="between__"),"datetime"===i.type&&(e.type="input-datetime-range",e.is_wide=!0,r+="between__"),"time"===i.type&&(e.type="input-time-range",e.is_wide=!0,r+="between__"),"users"===i.reference_to&&(e.reference_to="space_users",e.reference_to_field="user"),e.readonly=!1,e.disabled=!1,e.multiple=!0,e.is_wide=!1,e.defaultValue=void 0;a=await N(e,!1,Object.assign({},t,{fieldNamePrefix:r,required:!1,showSystemFields:!0}));if(a)return a}}(t,e,{});i&&(i.className="min-w-[200px] pr-4 max-w-[350px] grow",a.push(i))}return{title:"",type:"form",name:"listview-filter-form",mode:"normal",wrapWithPanel:!1,className:"flex flex-row w-full flex-wrap mb-3",body:a}},e.getSteedosAuth=t,e.getTenantId=o,e.getUISchema=j,e.getViewSchema=async function(e,a,t){var i,r,e=await j(e);return i=e,a=a,t=t,r=c.default.values(i.fields),{uiSchema:e,amisSchema:await{type:"service",name:"page_readonly_"+a,id:"detail_"+a,data:{global:de("read"),context:{rootUrl:p(),tenantId:o(),authToken:d()}},api:await ee(i,a,r),body:[{type:"form",mode:"SMALL"===t.formFactor?"normal":"horizontal",persistData:!1,promptPageLeave:!1,name:"form_readonly_"+a,debug:!1,title:"",data:{formData:"$$"},wrapWithPanel:!1,body:await ne(s.map(r,e=>{e.readonly=!0}),i,t),className:"steedos-amis-form",actions:[]}]}}},e.isExpression=ge,e.markReadAll=async()=>l("/api/v4/notifications/all/markReadAll",{method:"POST"}),e.parseSingleExpression=_e,e.setEnv=(e,a)=>{M[e]=a},e.setEnvs=e=>{s.map(e,(e,a)=>{M[a]=e})},e.setRootUrl=function(e){s.endsWith(e,"/")&&(e=e.substring(0,e.length-1)),localStorage.setItem("steedos:rootUrl",e)},e.setSteedosAuth=e=>{Object.assign(a,e)},e.standardButtonsTodo=T,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/tslib/tslib.d.ts","../../../../node_modules/@types/lodash/common/common.d.ts","../../../../node_modules/@types/lodash/common/array.d.ts","../../../../node_modules/@types/lodash/common/collection.d.ts","../../../../node_modules/@types/lodash/common/date.d.ts","../../../../node_modules/@types/lodash/common/function.d.ts","../../../../node_modules/@types/lodash/common/lang.d.ts","../../../../node_modules/@types/lodash/common/math.d.ts","../../../../node_modules/@types/lodash/common/number.d.ts","../../../../node_modules/@types/lodash/common/object.d.ts","../../../../node_modules/@types/lodash/common/seq.d.ts","../../../../node_modules/@types/lodash/common/string.d.ts","../../../../node_modules/@types/lodash/common/util.d.ts","../../../../node_modules/@types/lodash/index.d.ts","../../src/lib/steedos.client.js","../../src/lib/converter/amis/graphql.js","../../src/lib/router.jsx","../../src/lib/converter/amis/tpl.js","../../src/config/index.js","../../src/lib/converter/amis/fields/table.js","../../src/lib/converter/amis/fields/list.js","../../src/lib/converter/amis/fields/lookup.js","../../src/lib/converter/amis/fields/index.js","../../src/lib/converter/amis/api.js","../../src/lib/converter/amis/fields/sections.js","../../src/lib/converter/amis/form.js","../../src/lib/converter/amis/index.js","../../src/lib/record.js","../../src/lib/objects.js","../../src/lib/apps.js","../../src/lib/expression.js","../../src/lib/buttons.js","../../src/lib/notification.js","../../src/lib/page.js","../../src/lib/public.env.js","../../src/index.ts","../../../../node_modules/@types/estree/index.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/hoist-non-react-statics/index.d.ts","../../../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../../../node_modules/@types/istanbul-lib-report/index.d.ts","../../../../node_modules/@types/istanbul-reports/index.d.ts","../../../../node_modules/jest-diff/build/cleanupsemantic.d.ts","../../../../node_modules/jest-diff/build/types.d.ts","../../../../node_modules/jest-diff/build/difflines.d.ts","../../../../node_modules/jest-diff/build/printdiffs.d.ts","../../../../node_modules/jest-diff/build/index.d.ts","../../../../node_modules/pretty-format/build/types.d.ts","../../../../node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/json5/index.d.ts","../../../../node_modules/@types/minimatch/index.d.ts","../../../../node_modules/@types/minimist/index.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/normalize-package-data/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/redux/index.d.ts","../../../../node_modules/@types/react-redux/index.d.ts","../../../../node_modules/@types/requirejs/index.d.ts","../../../../node_modules/@types/resolve/index.d.ts","../../../../node_modules/@types/scheduler/index.d.ts","../../../../node_modules/@types/systemjs/index.d.ts","../../../../node_modules/@types/warning/index.d.ts","../../../../node_modules/@types/yargs-parser/index.d.ts","../../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"9b087de7268e4efc5f215347a62656663933d63c0b1d7b624913240367b999ea","affectsGlobalScope":true},{"version":"3260e3386d9535b804205bdddb5618a9a27735bd22927f48ad54363abcd23d45","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"4576b4e61049f5ffd7c9e935cf88832e089265bdb15ffc35077310042cbbbeea","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","6702a1cd8818cb22ee95c85dcf2c31c117bde892e1afd2bc254bd720f4c6263c","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","ae9930989ed57478eb03b9b80ad3efa7a3eacdfeff0f78ecf7894c4963a64f93","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},{"version":"58f4103bafedd21cdf07ba86229720af04da14b7a6d04aceaf5fc4a5cae5a7e2","signature":"c22e73a33ec5b2f64c52455046eb66974dff833661843ff09acf89b49c79c0f1"},{"version":"77c0c4f61a7a73790f8699cb6a7aeb1bc052b7660ea13496a1e0d34cd1a2e414","signature":"f98d08f8673e3af33f31b564d2e8b0ae58a1fb0429052d23d5fdab07125da60d"},{"version":"80c36a8e28295ef24de41a6ad6278469faa054bd5261b0c0b85e329de5fd1c29","signature":"dd049e5050771bd6e1ae3c64b2a749e998d9d8913c7700b6e4d710d69ac6841a"},{"version":"e2df13624d4c16827be58607e3d197c24c332d76c4aabfd318c050d5be6d62c2","signature":"57d468774201eb86a91973658ec087bcd8123dc665e152c093d4c706714689de"},{"version":"c8f8f25af483aa85ea06a72b8e3bb041bb2fd096ed8384614993ca087bbdf925","signature":"91653a4e6bc495f7b20991621017fe9deeb4fbe2e00128e74e4fed47d1e5d5ce"},{"version":"e23ada7ca036071a99f9b78028879d3d1475ddbf6dfbb0285d8a43d03995f6c9","signature":"23af9c84a30fc95554ca4cacf593b163661a94aff7d6573e0655cbae1c53a9bd"},{"version":"466eee2a717549f24c5cfd2ee90411a601a6611aeca5295a1fb7b36b5caffd25","signature":"943551b8fd51879cc772f0912da203a5d7cb0e8e5e18013a920973271e94e99e"},{"version":"90ee99a728e04580ad127db28dd65e6d2ae8f19f0371e0a79ab34849671d4cf7","signature":"d7a7fe84fc1b45ba34509f838a8203bef6f6a316526ccfd58400971c4dd0e382"},{"version":"b202a7e342858e6989f420b156baa72fd4b436281c1a213704029fa2b85bb052","signature":"5d1839f33ca9b55d13a9ebfd4ca744c4a8bea189f2e5afdce3368adbbdc6a042"},{"version":"1913223ddf245837e694d383de8189888b0bc661ae6c1cc55ec84dd08da14ad5","signature":"abc112334a3e3733f508333c1189a829efd5a1309d3930e05dddc86ea5777eed"},{"version":"66333b504222e5cad9b3b41f6885319300baaf9c0235fc0c4f964025c6c8f80f","signature":"63d5d7451b1f08c4aa3496bd6e03f7b74f1f2f7a05e224b535af521ffe31c229"},{"version":"d9f84990a281df1e0227b2b7b9e8f0aa1f20ed1f8c3a2f8eab090143d33314b4","signature":"86491d128bfe49c5ab6357659db0b74ae402320d6af6f198eac77d58502e7d88"},{"version":"6826850fc326b669df499327b8d9563e8b4eef42bb46ecb01a92c7d5d7413804","signature":"f469b9fe4ff62d1b3ecb18978f547129cd417b2a33ba35385c7d0cce2874ff34"},{"version":"a3f37b884f581c463b8275e6a107138174016a81215c7267db703d38b73fbcbe","signature":"ec9ee06766d8c7941794aa8c83e5db5e604431b590cdf7aceba9da5ed33c223a"},{"version":"efc2ab7a900d1ca338bea426b079a615d774bbf5672493f8d187ef0b5c8350fa","signature":"6cbe031703ac7de613556bff3f9225d4c08398ddf76d18c8646128272149398f"},{"version":"6b1318d281ae3d0f2d0b46178cd893ceea9bf299cfcf638b0919c7f4abc94439","signature":"0f57c2701238840b4396e148f59c76413768e9874c7201ea83b9551badd8f010"},{"version":"81772994cf27510f6145cbd0864efc54212a0ef2fc928cbcf50bbaee83dc0712","signature":"76408fe38dc721e560389c9a73623034607eca4746df282fe44fc7b1aa5d42fe"},{"version":"6409a17b4a5b824c09a8ae31dfb0cf01e0c6c5cea79dd7656a1670706c098d9e","signature":"7a6ddd1f84d2264dde4066a49ff0b8b885f7237016b03d250d3e65003dc3a0bd"},{"version":"50ca5a3da6018089492dab1489e008997e1b047b78ac9c4ccced35af58e0b5be","signature":"ad7534b8c97c85a02a1026d1e4c6f5c409a624d177d6c2a2e7eb83b62ff685bb"},{"version":"171a1045d8a15239381f38ab64f3fbb61dd74264dfbe672b41fcd9e7d3625658","signature":"8019ce3e23025c8019078d0a8a5e2edc61f1ab7f4197eb86d25cae0fe9a555dd"},{"version":"b1843f652a8b21781a4163583f0d65bed7ce8e9048103c536a274a396e7efb6c","signature":"18d2e352c4bd9e24b7777dab2cde224b1761eacfa6018abd3a965bc016934a1b"},{"version":"8eac8815656a16ddab8be00d2071bd501143811cabc940f5a0860186108bc0c4","signature":"561b320c4d7379898f136310003a441879c7839e0b41eaf7ee6b00e8e5268b04"},"89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b",{"version":"bbdf156fea2fabed31a569445835aeedcc33643d404fcbaa54541f06c109df3f","affectsGlobalScope":true},"ba7617784f6b9aeac5e20c5eea869bbc3ef31b905f59c796b0fd401dae17c111","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"78e92f26901faf513581b3db36496e55a25e24ba3e60aa3ab9d48185452a3ab1","affectsGlobalScope":true},"bfe1b52cf71aea9bf8815810cc5d9490fa9617313e3d3c2ee3809a28b80d0bb4","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"002d6d5f044365b3fbfba0ba9be3bb57cac09b81547c8df4b0795755d2081d90","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"bae4ea23beb8397755b935cb84d3cdc6cdb0b1b4a329b90de9fc6c8774d71994","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","68915895d4a136df5cf5f90aaa41d8e1e47ec047e7781a150b5d0cf273dbb7a9","acfbb5aaef964e1d441f961a1846197f03241dba3c63b1e4d1903684888ef465","09416dd69576b03a3f485adf329a02f043e4a481e060ef5b208194e488d31fd9","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"76527127c8b749bee5977408861ce3ee56ec19ddcea8704c628f98ca610283e6","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","cb92bc2e42b261e4299025756f1beb826b3d9666a3f0d46f8a7254ca512f57e4","cb4f3f03480e1727eae46400606cecaa97f550186ff8fa909ebc00db4180531b",{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","556bf5c36deb62cffa1bf697c1789fe008ec82db0273025001db66732714e9d9","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","0830071706fa0e477fb5e95f0955cc1062b5948b146b7d4e03a126f12ad6085f",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2d526e6f21d8cc66ac11ada32874e95ae88d870c6c9d3d9d4e03b1d1f9ad7b8e","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","d2ec52f565f0570e90b659811347bd689f8c6039b11eaaccd0f243759d46da6e","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a12806a1bde5e9f137bb79728d87a4ceaedf04e95efc9967d3288a3c252d9a7b","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b",{"version":"fd624f7d7b264922476685870f08c5e1c6d6a0f05dee2429a9747b41f6b699d4","affectsGlobalScope":true},"1781e7a2a01c07c7295d3ce885d5d2905bec6449725937e3b8776c9b5ab4bf5b",{"version":"1ec24ec5af45659a0f2a2e83c5a8c86c4a43afad32db9d251718ae4e08a50468","affectsGlobalScope":true},"2880728492d6a6baa55411d14cc42fa55714a24b1d1d27ff9a8a610abd47c761","74b0245c42990ed8a849df955db3f4362c81b13f799ebc981b7bec2d5b414a57",{"version":"ccfb041f2f384c73f64b08c9cb99d49cbdcc00ff0c25b7f186abe866638e48da","affectsGlobalScope":true},"abd79d61be476addd783d0e0bace2e3c02bb3e38ec23bdfd236adc421b038939","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","09c4b2e2d3070239d563fc690f0cc5db04a2d9b66a23e61aef8b5274e3e9910c"],"options":{"declaration":true,"declarationDir":"../types","emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"inlineSources":true,"jsx":1,"module":99,"noEmitHelpers":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":false,"target":1},"fileIdsList":[[135,158,170],[97,135,158,170],[99,135,158,170],[100,135,158,170],[106,108,135,158,170],[57,59,60,61,62,63,64,65,66,67,68,69,135,158,170],[57,58,60,61,62,63,64,65,66,67,68,69,135,158,170],[58,59,60,61,62,63,64,65,66,67,68,69,135,158,170],[57,58,59,61,62,63,64,65,66,67,68,69,135,158,170],[57,58,59,60,62,63,64,65,66,67,68,69,135,158,170],[57,58,59,60,61,63,64,65,66,67,68,69,135,158,170],[57,58,59,60,61,62,64,65,66,67,68,69,135,158,170],[57,58,59,60,61,62,63,65,66,67,68,69,135,158,170],[57,58,59,60,61,62,63,64,66,67,68,69,135,158,170],[57,58,59,60,61,62,63,64,65,67,68,69,135,158,170],[57,58,59,60,61,62,63,64,65,66,68,69,135,158,170],[57,58,59,60,61,62,63,64,65,66,67,69,135,158,170],[57,58,59,60,61,62,63,64,65,66,67,68,135,158,170],[113,135,158,170],[116,135,158,170],[117,122,135,158,170],[118,128,129,135,136,146,157,158,170],[118,119,128,135,136,158,170],[120,135,158,170],[121,122,129,135,137,158,170],[122,135,146,154,158,170],[123,125,128,135,136,158,170],[124,135,158,170],[125,126,135,158,170],[127,128,135,158,170],[128,135,158,170],[128,129,130,135,146,157,158,170],[128,129,130,135,146,149,158,170],[135,158,162,170],[131,135,136,146,157,158,170],[128,129,131,132,135,136,146,154,157,158,170],[131,133,135,146,154,157,158,170],[113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,170],[128,134,135,158,170],[135,157,158,170],[125,128,135,136,146,158,170],[135,137,158,170],[135,138,158,170],[116,135,139,158,170],[135,140,156,158,162,170],[135,141,158,170],[135,142,158,170],[128,135,143,144,158,170],[135,143,145,158,160,170],[128,135,146,147,148,149,158,170],[135,146,148,158,170],[135,146,147,158,170],[135,149,158,170],[135,150,158,170],[128,135,152,153,158,170],[135,152,153,158,170],[122,135,136,146,154,158,170],[135,155,158,170],[135,136,156,158,170],[117,131,135,142,157,158,170],[122,135,158,170],[135,146,158,159,170],[135,158,160,170],[135,158,161,170],[117,122,128,130,135,139,146,157,158,160,162,170],[135,146,158,163,170],[97,98,135,158,168,170],[93,94,95,96,135,158,170],[135,158],[135,158,165,170],[135,158,170,175],[102,103,135,158,170],[102,103,104,105,135,158,170],[107,135,158,170],[56,135,158,170],[56,70,83,84,85,86,87,88,89,90,135,158,170],[56,70,135,158,170],[56,69,71,74,86,135,158,170],[56,69,70,71,78,135,158,170],[56,69,70,73,77,78,135,158,170],[56,72,73,135,158,170],[56,69,71,73,75,76,78,84,135,158,170],[56,69,78,135,158,170],[56,69,71,73,74,82,135,158,170],[56,80,135,158,170],[56,69,84,135,158,170],[56,69,70,75,76,79,81,135,158,170],[56,72,135,158,170],[56,69,135,158,170],[56,69,70,78,82,83,135,158,170],[56,69,70,135,158,170],[70,83,84,85,86,87,88,89,90]],"referencedMap":[[92,1],[98,2],[99,1],[100,3],[101,4],[109,5],[110,1],[58,6],[59,7],[57,8],[60,9],[61,10],[62,11],[63,12],[64,13],[65,14],[66,15],[67,16],[68,17],[69,18],[111,1],[112,1],[113,19],[114,19],[116,20],[117,21],[118,22],[119,23],[120,24],[121,25],[122,26],[123,27],[124,28],[125,29],[126,29],[127,30],[128,31],[129,32],[130,33],[115,34],[164,1],[131,35],[132,36],[133,37],[165,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,48],[145,49],[146,50],[148,51],[147,52],[149,53],[150,54],[151,1],[152,55],[153,56],[154,57],[155,58],[156,59],[157,60],[158,61],[159,62],[160,63],[161,64],[162,65],[163,66],[166,1],[167,1],[95,1],[169,67],[93,1],[97,68],[170,69],[171,70],[172,1],[96,1],[173,1],[174,1],[175,1],[176,71],[94,1],[102,1],[104,72],[106,73],[105,72],[103,1],[108,74],[107,1],[168,1],[56,1],[11,1],[12,1],[14,1],[13,1],[2,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[3,1],[4,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[34,1],[35,1],[36,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[74,75],[91,76],[85,77],[87,78],[79,79],[78,80],[76,81],[77,82],[80,83],[75,84],[81,85],[71,86],[82,87],[73,88],[86,89],[88,77],[84,90],[89,77],[90,89],[83,91],[72,75],[70,89]],"exportedModulesMap":[[92,1],[98,2],[99,1],[100,3],[101,4],[109,5],[110,1],[58,6],[59,7],[57,8],[60,9],[61,10],[62,11],[63,12],[64,13],[65,14],[66,15],[67,16],[68,17],[69,18],[111,1],[112,1],[113,19],[114,19],[116,20],[117,21],[118,22],[119,23],[120,24],[121,25],[122,26],[123,27],[124,28],[125,29],[126,29],[127,30],[128,31],[129,32],[130,33],[115,34],[164,1],[131,35],[132,36],[133,37],[165,38],[134,39],[135,40],[136,41],[137,42],[138,43],[139,44],[140,45],[141,46],[142,47],[143,48],[144,48],[145,49],[146,50],[148,51],[147,52],[149,53],[150,54],[151,1],[152,55],[153,56],[154,57],[155,58],[156,59],[157,60],[158,61],[159,62],[160,63],[161,64],[162,65],[163,66],[166,1],[167,1],[95,1],[169,67],[93,1],[97,68],[170,69],[171,70],[172,1],[96,1],[173,1],[174,1],[175,1],[176,71],[94,1],[102,1],[104,72],[106,73],[105,72],[103,1],[108,74],[107,1],[168,1],[56,1],[11,1],[12,1],[14,1],[13,1],[2,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[3,1],[4,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[34,1],[35,1],[36,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[91,92]],"semanticDiagnosticsPerFile":[92,98,99,100,101,109,110,58,59,57,60,61,62,63,64,65,66,67,68,69,111,112,113,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,115,164,131,132,133,165,134,135,136,137,138,139,140,141,142,143,144,145,146,148,147,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,166,167,95,169,93,97,170,171,172,96,173,174,175,176,94,102,104,106,105,103,108,107,168,56,11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,74,91,85,87,79,78,76,77,80,75,81,71,82,73,86,88,84,89,90,83,72,70]},"version":"4.8.2"}