oadp-material
Version:
oadp-material
6 lines • 314 kB
JavaScript
!function e(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.BizComps=n():t.BizComps=n()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function t(){return e.default}:function t(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=351)}({0:function(e,t){e.exports=window.React},1:function(e,t){e.exports=window.Next},22:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},3:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},343:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(22))},351:function(e,t,n){e.exports=n(511)},352:function(e,t,n){},353:function(e,t,n){},354:function(e,t,n){},355:function(e,t,n){},356:function(e,t,n){},357:function(e,t,n){},358:function(e,t,n){},359:function(e,t,n){},360:function(e,t,n){},361:function(e,t,n){},362:function(e,t,n){},363:function(e,t,n){},364:function(e,t,n){},365:function(e,t,n){},366:function(e,t,n){},367:function(e,t,n){},368:function(e,t,n){},369:function(e,t,n){},370:function(e,t,n){},371:function(e,t,n){},372:function(e,t,n){},373:function(e,t,n){},374:function(e,t,n){},375:function(e,t,n){},376:function(e,t,n){},377:function(e,t,n){},378:function(e,t,n){},379:function(e,t,n){},380:function(e,t,n){},381:function(e,t,n){},382:function(e,t,n){},383:function(e,t,n){},384:function(e,t,n){},385:function(e,t,n){},386:function(e,t,n){},387:function(e,t,n){},388:function(e,t,n){},389:function(e,t,n){},390:function(e,t,n){},391:function(e,t,n){},392:function(e,t,n){},393:function(e,t,n){},394:function(e,t,n){},395:function(e,t,n){},396:function(e,t,n){},397:function(e,t,n){},398:function(e,t,n){},399:function(e,t,n){},400:function(e,t,n){},47:function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),i="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},a=2;function l(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&c()}function l(){i(a)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=e}return c}var c=20,u=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e;this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){var t;return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},h=S(0,0,0,0);function y(e){return parseFloat(e)||0}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r;return t+y(e["border-"+n+"-width"])}),0)}function v(e){for(var t,n={},r=0,o=["top","right","bottom","left"];r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=y(a)}return n}function m(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=p(e).getComputedStyle(e),o=v(r),i=o.left+o.right,a=o.top+o.bottom,l=y(r.width),c=y(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=g(r,"left","right")+i),Math.round(c+a)!==n&&(c-=g(r,"top","bottom")+a)),!O(e)){var u=Math.round(l+i)-t,s=Math.round(c+a)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(s)&&(c-=s)}return S(o.left,o.top,l,c)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function O(e){return e===p(e).document.documentElement}function x(e){return r?w(e)?m(e):b(e):h}function E(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return d(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var j=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),T=function(){function e(e,t){var n=E(t);d(this,{target:e,contentRect:n})}return e}(),C=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new j(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new T(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),P="undefined"!=typeof WeakMap?new WeakMap:new n,k=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new C(t,n,this);P.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){k.prototype[e]=function(){var t;return(t=P.get(this))[e].apply(t,arguments)}}));var L=void 0!==o.ResizeObserver?o.ResizeObserver:k;t.default=L}.call(this,n(22))},5:function(e,t,n){var r,o;
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=l(t,r));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(o=function(){return i}.apply(t,r=[]))||(e.exports=o)}()},511:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Kf})),n.d(t,"OadpButton",(function(){return T})),n.d(t,"OadpButtonBar",(function(){return _})),n.d(t,"OadpForm",(function(){return z})),n.d(t,"OadpFormItem",(function(){return V})),n.d(t,"OadpInput",(function(){return ee})),n.d(t,"OadpSelect",(function(){return Qe})),n.d(t,"OadpDatePicker2",(function(){return ot})),n.d(t,"OadpSwitch",(function(){return ft})),n.d(t,"OadpNumberPicker",(function(){return mt})),n.d(t,"OadpRadio",(function(){return jt})),n.d(t,"OadpRadioGroup",(function(){return Nt})),n.d(t,"OadpCheckbox",(function(){return Ft})),n.d(t,"OadpCheckboxGroup",(function(){return $t})),n.d(t,"OadpUpload",(function(){return Zt})),n.d(t,"OadpIframe",(function(){return ln})),n.d(t,"OadpImg",(function(){return hn})),n.d(t,"OadpAttribute",(function(){return On})),n.d(t,"OadpFilter",(function(){return ui})),n.d(t,"OadpTable",(function(){return gi})),n.d(t,"OadpTableColumn",(function(){return Ei})),n.d(t,"OadpTab",(function(){return Li})),n.d(t,"OadpTabItem",(function(){return Di})),n.d(t,"OadpPagination",(function(){return Ui})),n.d(t,"OadpContainer",(function(){return Qi})),n.d(t,"OadpBusinessTable",(function(){return oa})),n.d(t,"OadpBusinessForm",(function(){return fa})),n.d(t,"OadpCard",(function(){return ma})),n.d(t,"OadpCardHeader",(function(){return ja})),n.d(t,"OadpCardBulletHeader",(function(){return Na})),n.d(t,"OadpCardDivider",(function(){return Fa})),n.d(t,"OadpEntityForm",(function(){return $a})),n.d(t,"OadpEntityTable",(function(){return vl})),n.d(t,"OadpEntityPagination",(function(){return Sl})),n.d(t,"OadpEntityFilter",(function(){return Al})),n.d(t,"OadpEntityButtonSettingTable",(function(){return sc})),n.d(t,"OadpEntityButtonCreate",(function(){return Lc})),n.d(t,"OadpEntityButtonReadFast",(function(){return nu})),n.d(t,"OadpEntityButtonReadCondition",(function(){return qu})),n.d(t,"OadpEntityButtonReadRule",(function(){return js})),n.d(t,"OadpEntityButtonUpdate",(function(){return Ns})),n.d(t,"OadpEntityButtonDelete",(function(){return Fs})),n.d(t,"OadpEntityButtonBatchDelete",(function(){return $s})),n.d(t,"OadpAttributeText",(function(){return Zs})),n.d(t,"OadpAttributeRefer",(function(){return Tf})),n.d(t,"OadpAttributeNumber",(function(){return _f})),n.d(t,"OadpAttributeBoolean",(function(){return zf})),n.d(t,"OadpAttributeDatetime",(function(){return Vf})),n.d(t,"bizCssPrefix",(function(){return Xf}));var r={};n.r(r),n.d(r,"OadpButton",(function(){return T})),n.d(r,"OadpButtonBar",(function(){return _})),n.d(r,"OadpForm",(function(){return z})),n.d(r,"OadpFormItem",(function(){return V})),n.d(r,"OadpInput",(function(){return ee})),n.d(r,"OadpSelect",(function(){return Qe})),n.d(r,"OadpDatePicker2",(function(){return ot})),n.d(r,"OadpSwitch",(function(){return ft})),n.d(r,"OadpNumberPicker",(function(){return mt})),n.d(r,"OadpRadio",(function(){return jt})),n.d(r,"OadpRadioGroup",(function(){return Nt})),n.d(r,"OadpCheckbox",(function(){return Ft})),n.d(r,"OadpCheckboxGroup",(function(){return $t})),n.d(r,"OadpUpload",(function(){return Zt})),n.d(r,"OadpIframe",(function(){return ln})),n.d(r,"OadpImg",(function(){return hn})),n.d(r,"OadpAttribute",(function(){return On})),n.d(r,"OadpFilter",(function(){return ui})),n.d(r,"OadpTable",(function(){return gi})),n.d(r,"OadpTableColumn",(function(){return Ei})),n.d(r,"OadpTab",(function(){return Li})),n.d(r,"OadpTabItem",(function(){return Di})),n.d(r,"OadpPagination",(function(){return Ui})),n.d(r,"OadpContainer",(function(){return Qi})),n.d(r,"OadpBusinessTable",(function(){return oa})),n.d(r,"OadpBusinessForm",(function(){return fa})),n.d(r,"OadpCard",(function(){return ma})),n.d(r,"OadpCardHeader",(function(){return ja})),n.d(r,"OadpCardBulletHeader",(function(){return Na})),n.d(r,"OadpCardDivider",(function(){return Fa})),n.d(r,"OadpEntityForm",(function(){return $a})),n.d(r,"OadpEntityTable",(function(){return vl})),n.d(r,"OadpEntityPagination",(function(){return Sl})),n.d(r,"OadpEntityFilter",(function(){return Al})),n.d(r,"OadpEntityButtonSettingTable",(function(){return sc})),n.d(r,"OadpEntityButtonCreate",(function(){return Lc})),n.d(r,"OadpEntityButtonReadFast",(function(){return nu})),n.d(r,"OadpEntityButtonReadCondition",(function(){return qu})),n.d(r,"OadpEntityButtonReadRule",(function(){return js})),n.d(r,"OadpEntityButtonUpdate",(function(){return Ns})),n.d(r,"OadpEntityButtonDelete",(function(){return Fs})),n.d(r,"OadpEntityButtonBatchDelete",(function(){return $s})),n.d(r,"OadpAttributeText",(function(){return Zs})),n.d(r,"OadpAttributeRefer",(function(){return Tf})),n.d(r,"OadpAttributeNumber",(function(){return _f})),n.d(r,"OadpAttributeBoolean",(function(){return zf})),n.d(r,"OadpAttributeDatetime",(function(){return Vf})),n.d(r,"bizCssPrefix",(function(){return Xf}));var o=n(0),i=n.n(o),a=n(1),l=n(352);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=["name","id","label","field","type","size","disabled","text","onClick","style","__designMode"];function s(e,t){if(null==e)return{};var n,r,o=f(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){var t=g(e,"string");return"symbol"==c(t)?t:t+""}function g(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function v(e,t,n){return t=O(t),m(e,w()?Reflect.construct(t,n||[],O(e).constructor):t.apply(e,n))}function m(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return b(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function t(){return!!e})()}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}function E(e,t){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var S,j,T=function(e){function t(e){return d(this,t),v(this,t,[e])}return x(t,e),h(t,[{key:"render",value:function e(){var t=this.props,n=t.name,r=t.id,i=t.label,l=t.field,c=t.type,f=t.size,d=t.disabled,p=t.text,h=t.onClick,y=t.style,g=t.__designMode,v=s(t,u);return"design"===g&&(h=function e(t){console.log("design mode oadp-button click")}),Object(o.createElement)(a.Button,Object.assign({type:c,size:f,disabled:d,text:p,style:y,onClick:h},v),i)}}])}(o.Component),C=n(353),P=["style","direction","justify","align"];function k(e,t){if(null==e)return{};var n,r,o=L(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function L(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var A=function e(t){var n=t.style,r=t.direction,i=void 0===r?"row":r,l=t.justify,c=void 0===l?"end":l,u=t.align,s=void 0===u?"center":u,f=k(t,P);return Object(o.createElement)(a.Box,Object.assign({style:n,direction:i,justify:c,align:s},f))};A.displayName="\u6309\u94ae\u680f";var N,_=A,R=n(354),B=["value","field","size","labelAlign","labelTextAlign","inline","fullWidth","responsive","isPreview","useLabelForErrorMessage","preferMarginToDisplayHelp","colon","disabled"];function I(e,t){if(null==e)return{};var n,r,o=D(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var M,F,z=function e(t){var n=t.value,r=t.field,i=t.size,l=t.labelAlign,c=t.labelTextAlign,u=t.inline,s=t.fullWidth,f=t.responsive,d=t.isPreview,p=t.useLabelForErrorMessage,h=t.preferMarginToDisplayHelp,y=t.colon,g=t.disabled,v=I(t,B);return Object(o.createElement)(a.Form,Object.assign({value:n,field:r,size:i,labelAlign:l,labelTextAlign:c,inline:u,fullWidth:s,responsive:f,isPreview:d,useLabelForErrorMessage:p,preferMarginToDisplayHelp:h,colon:y,disabled:g},v))},W=n(355),q=["label","name","valueName","help","extra","size","labelAlign","labelTextAlign","colSpan","labelWidth","validateState","hasFeedback","fullWidth","isPreview","useLabelForErrorMessage","preferMarginToDisplayHelp","colon","disabled","required","asterisk","requiredMessage","requiredTrigger","min","max","minmaxMessage","minmaxTrigger","minLength","maxLength","minmaxLengthMessage","minmaxLengthTrigger","length","lengthMessage","lengthTrigger","pattern","patternMessage","patternTrigger","format","formatMessage","formatTrigger","validator","validatorTrigger","autoValidate","children","style"];function H(e,t){if(null==e)return{};var n,r,o=U(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function U(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var G,$,V=function e(t){var n=t.label,r=t.name,i=t.valueName,l=t.help,c=t.extra,u=t.size,s=t.labelAlign,f=t.labelTextAlign,d=t.colSpan,p=t.labelWidth,h=t.validateState,y=t.hasFeedback,g=t.fullWidth,v=t.isPreview,m=t.useLabelForErrorMessage,b=t.preferMarginToDisplayHelp,w=t.colon,O=t.disabled,x=t.required,E=t.asterisk,S=t.requiredMessage,j=t.requiredTrigger,T=t.min,C=t.max,P=t.minmaxMessage,k=t.minmaxTrigger,L=t.minLength,A=t.maxLength,N=t.minmaxLengthMessage,_=t.minmaxLengthTrigger,R=t.length,B=t.lengthMessage,I=t.lengthTrigger,D=t.pattern,M=t.patternMessage,F=t.patternTrigger,z=t.format,W=t.formatMessage,U=t.formatTrigger,G=t.validator,$=t.validatorTrigger,V=t.autoValidate,X=t.children,Y=t.style,K=H(t,q);return Object(o.createElement)(a.Form.Item,Object.assign({label:n,name:r,valueName:i,help:l,extra:c,size:u,labelAlign:s,labelTextAlign:f,colSpan:d,labelWidth:p,validateState:h,hasFeedback:y,fullWidth:g,isPreview:x,useLabelForErrorMessage:m,preferMarginToDisplayHelp:b,colon:w,disabled:O,required:x,asterisk:E,requiredMessage:S,requiredTrigger:j,min:T,max:C,minmaxMessage:P,minmaxTrigger:k,minLength:L,maxLength:A,minmaxLengthMessage:N,minmaxLengthTrigger:_,length:R,lengthMessage:B,lengthTrigger:I,pattern:D,patternMessage:M,patternTrigger:F,format:z,formatMessage:W,formatTrigger:U,validator:G,validatorTrigger:$,autoValidate:V,style:Y},K),X)},X=n(356),Y=["name","label","required","placeholder","defaultValue","disabled"];function K(e,t){if(null==e)return{};var n,r,o=Q(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Q(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var J,Z,ee=function e(t){var n=t.name,r=t.label,i=t.required,l=t.placeholder,c=t.defaultValue,u=t.disabled,s=K(t,Y);return Object(o.createElement)(a.Input,Object.assign({name:n,label:r,placeholder:l,defaultValue:c,required:i,disabled:u,width:100,hasClear:!0,trim:!0},s))},te=n(357);const ne=undefined;var re={getCookieValueByKey:e=>{const t=e+"=",n=undefined,r=decodeURIComponent(document.cookie).split(";");for(let e=0;e<r.length;e++){let n=r[e];for(;" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t)){const e=undefined;return n.substring(t.length,n.length)}}return""}};const oe=undefined;var ie={getToken:()=>{const e="d2admin-1.24.0-token",t=undefined;return re.getCookieValueByKey(e)},getUserName:()=>"demo",getUserId:()=>"demo",getUserRole:()=>"demo"};const ae={fetchWithToken:(e,t,n,r)=>{console.log(`fetchWithToken begin with url: ${e} and data: `,n);const o=ie.getToken();var i=new Headers;return i.append("Authorization","Bearer "+o),i.append("Content-Type","application/json;charset=UTF-8"),console.log(`fetchWithToken end with url: ${e} and data: `,n),window.fetch(e,{method:t,headers:i,body:JSON.stringify(n),redirect:"follow"}).then(e=>e.json()).then(r).catch(e=>console.error(e))},asyncPostWithToken:async(e,t)=>{console.log(`selectPageListByCondition begin with url: ${e} and condition: `,t);const n=ie.getToken();var r=new Headers;return r.append("Authorization","Bearer "+n),r.append("Content-Type","application/json;charset=UTF-8"),await window.fetch(e,{method:"POST",headers:r,body:JSON.stringify(t),redirect:"follow"}).then(e=>e.json()).then(e=>(console.log(e),e)).catch(e=>console.log("error",e))},postWithToken:(e,t,n)=>{ae.fetchWithToken(e,"POST",t,n)},deleteWithToken:(e,t)=>{console.log("deleteWithToken begin with url: "+e);const n=ie.getToken();var r=new Headers;return r.append("Authorization","Bearer "+n),r.append("Content-Type","application/json;charset=UTF-8"),console.log("deleteWithToken end with url: "+e),window.fetch(e,{method:"DELETE",headers:r,redirect:"follow"}).then(e=>e.json()).then(t).catch(e=>console.error(e))},putWithToken:(e,t,n)=>{console.log(`putWithToken begin with url: ${e} and data: `,t),ae.fetchWithToken(e,"PUT",t,n),console.log(`putWithToken end with url: ${e} and data: `,t)},asyncGetWithToken:async e=>{console.log("asyncGetWithToken begin with url: "+e);const t=ie.getToken();var n=new Headers;return n.append("Authorization","Bearer "+t),n.append("Content-Type","application/json;charset=UTF-8"),await window.fetch(e,{method:"GET",headers:n}).then(e=>e.json()).then(e=>(console.log("asyncGetWithToken end response with ",e),e))},getWithToken:(e,t)=>{console.log("getWithToken begin with url: "+e);const n=ie.getToken();var r=new Headers;return r.append("Authorization","Bearer "+n),r.append("Content-Type","application/json;charset=UTF-8"),console.log("getWithToken end with url: "+e),fetch(e,{method:"GET",headers:r}).then(e=>e.json()).then(t).catch(e=>{console.error("Error:",e)})}};var le=ae;const ce=undefined;var ue={insertOne:(e,t,n)=>{console.log(`insertOne begin with modelLogicName: ${e} and data: `,t);const r="/api/v1/data/"+e;le.postWithToken(r,t,n),console.log(`insertOne end with modelLogicName: ${e} and data:`,t)},insertList:(e,t)=>{console.log(`insertList begin with modelLogicName: ${e} and data: ${t}`),console.log(`insertList end with modelLogicName: ${e} and data: ${t}`)},updateOneById:(e,t,n,r)=>{console.log(`updateOneById begin with modelLogicName: ${e} and data: ${n}`);const o="/api/v1/data/"+e+"/"+t;le.putWithToken(o,n,r),console.log(`updateOneById end with modelLogicName: ${e} and data: ${n}`)},deleteOneById:(e,t,n)=>{console.log(`deleteOneById begin with modelLogicName: ${e} and id: ${t}`);const r="/api/v1/data/"+e+"/"+t;le.deleteWithToken(r,n),console.log(`deleteOneById end with modelLogicName: ${e} and id: ${t}`)},batchDeleteByIdListString:(e,t,n)=>{console.log(`batchDeleteByIdListString begin with modelLogicName: ${e} and id: ${t}`);const r="/api/v1/data/"+e+"/batchDelete/"+t;le.deleteWithToken(r,n),console.log(`batchDeleteByIdListString end with modelLogicName: ${e} and id: ${t}`)},selectOneById:(e,t,n)=>{console.log(`selectOneById begin with modelLogicName: ${e} and id: ${t}`);const r="/api/v1/data/"+e+"/"+t;le.getWithToken(r,n),console.log(`selectOneById end with modelLogicName: ${e} and id: ${t}`)},selectOneWithReferById:(e,t,n)=>{console.log(`selectOneById begin with modelLogicName: ${e} and id: ${t}`);const r="/api/v1/data/"+e+"/"+t+"/withRefer";le.getWithToken(r,n),console.log(`selectOneById end with modelLogicName: ${e} and id: ${t}`)},asyncSelectOneWithReferById:async(e,t)=>{console.log(`selectOneById begin with modelLogicName: ${e} and id: ${t}`);const n="/api/v1/data/"+e+"/"+t+"/withRefer";return await le.asyncGetWithToken(n)},asyncSelectOneWithReferAndAggregateById:async(e,t)=>{console.log(`selectOneWithReferAndAggregateById begin with modelLogicName: ${e} and id: ${t}`);const n="/api/v1/data/"+e+"/"+t+"/withReferAndAggregate";return await le.asyncGetWithToken(n)},asyncSelectPageListWithReferWithAggregateByCondition:async(e,t)=>{console.log(`asyncSelectPageListWithReferByCondition begin with modelLogicName: ${e} and condition: `,t);const n=`/api/v1/data/${e}/withReferWithAggregatePaging`;return await le.asyncPostWithToken(n,t)},selectPageListByCondition:(e,t,n)=>{console.log(`selectPageListByCondition begin with modelLogicName: ${e} and condition: `,t);const r=`/api/v1/data/${e}/paging`;le.postWithToken(r,t,n),console.log(`selectPageListByCondition end with modelLogicName: ${e} and condition: `,t)},selectPageListWithReferByCondition:(e,t,n)=>{console.log(`selectPageListWithReferByCondition begin with modelLogicName: ${e} and condition: `,t);const r=`/api/v1/data/${e}/withReferPaging`;le.postWithToken(r,t,n),console.log(`selectPageListWithReferByCondition end with modelLogicName: ${e} and condition: `,t)},asyncSelectOneById:async(e,t)=>{console.log(`selectOneById begin with modelLogicName: ${e} and id: ${t}`);const n="/api/v1/data/"+e+"/"+t;return await le.asyncGetWithToken(n)},asyncSelectOneByPrimaryKey:async(e,t,n)=>{console.log(`selectOneById begin with modelLogicName: ${e} and value: ${n}`);const r="/api/v1/data/selectOneByPrimaryKey/"+e+"/"+t+"/"+n;return await le.asyncGetWithToken(r)},asyncSelectPageListByCondition:async(e,t)=>{console.log(`selectPageListByCondition begin with modelLogicName: ${e} and condition: `,t);const n=`/api/v1/data/${e}/paging`;return await le.asyncPostWithToken(n,t)},asyncSelectPageListWithReferByCondition:async(e,t)=>{console.log(`asyncSelectPageListWithReferByCondition begin with modelLogicName: ${e} and condition: `,t);const n=`/api/v1/data/${e}/withReferPaging`;return await le.asyncPostWithToken(n,t)}};const se=undefined;var fe={getEntityById:e=>{console.log("getEntityById begin with id: "+e),console.log("getEntityById end with id: "+e)},selectEntityWithReferById:(e,t)=>{console.log("selectEntityWithReferById begin with id: "+e);try{ue.selectOneWithReferById("entity",e,t)}catch(e){return console.error("selectEntityWithReferById \u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}},asyncSelectEntityWithReferById:async e=>{console.log("asyncSelectEntityWithReferById begin with id: "+e);try{const t=await ue.asyncSelectOneWithReferById("entity",e);return t.code?(console.error("asyncSelectEntityWithReferById \u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u5931\u8d25\uff1a",t),null):(console.log("asyncSelectEntityWithReferById end with id: "+e,t),t.data)}catch(e){return console.error("asyncSelectEntityWithReferById \u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}},asyncSelectEntityWithReferAndAggregateById:async e=>{console.log("asyncSelectEntityWithReferAndAggregateById begin with id: "+e);try{const t=await ue.asyncSelectOneWithReferAndAggregateById("entity",e);return t.code?(console.error("\u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u5931\u8d25\uff1a",t),null):(console.log("asyncSelectEntityWithReferAndAggregateById end with id: "+e,t),t.data)}catch(e){return console.error("\u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}},asyncSelectAttributeById:async e=>{console.log("asyncSelectAttributeById begin with id: "+e);try{const t=await ue.asyncSelectOneById("attribute",e);return t.code?(console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u5931\u8d25\uff1a",t),null):(console.log("asyncSelectAttributeById end with id: "+e,t),t.data)}catch(e){return console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}},asyncSelectAttributeWithReferById:async e=>{console.log("asyncSelectAttributeWithReferById begin with id: "+e);try{const t=await ue.asyncSelectOneWithReferById("attribute",e);return t.code?(console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u5931\u8d25\uff1a",t),null):(console.log("asyncSelectAttributeWithReferById end with id: "+e,t),t.data)}catch(e){return console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}},asyncSelectAttributeListWithReferByEntityId:async e=>{console.log("asyncSelectAttributeListWithReferByEntityId begin with entityId: "+e);try{const t={model:"attribute",condition:{attribute:"entityId",operator:"equals",value:e},orderBy:[{attribute:"createAt",operator:"desc"}],pageNum:1,pageSize:1e4},n=await ue.asyncSelectPageListWithReferByCondition("attribute",t);return n.code?(console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u5931\u8d25\uff1a",n),null):(console.log("asyncSelectAttributeListWithReferByEntityId end with id: "+e,n),n.data)}catch(e){return console.error("\u83b7\u53d6\u5c5e\u6027\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e),null}}},de=n(74),pe=n.n(de);const he=undefined;var ye={getTableSelectRow:e=>{const t=pe()('[entity_table_data_div_id="'+e+'"]');if(0==t.length)return void console.log("entityPageUtil getTableSelectRow entityTableDataDivElement is null, tableComponentRefId: ",e);const n=t.attr("table_select_row_ids");if(console.log("entityPageUtil getTableSelectRow idListString",n),n)return n;console.log("entityPageUtil getTableSelectRow idListString is null")},getTableShowColumnList:e=>{const t=pe()('[entity_table_data_div_id="'+e+'"]');if(0==t.length)return void console.log("entityPageUtil getTableShowColumnList entityTableDataDivElement is null, tableComponentRefId: ",e);const n=t.attr("table_attribute_show_datasource");if(console.log("entityPageUtil getTableShowColumnList showColumnListString",n),!n)return void console.log("entityPageUtil getTableShowColumnList showColumn is null");const r=undefined;return n.split(",").map(e=>e.trim())}};const ge=undefined;var ve={openByIframeId:(e,t,n,r)=>{console.log(`openByIframeId begin with iframeId: ${e} url: ${t} width: ${n} height: ${r}`),console.log("\u6253\u5f00\u5730\u5740\uff1a",t);const o=document.createElement("iframe");o.id=e,o.src=t,o.style.borderRadius="5px",o.style.borderWidth="1px",o.style.borderColor="rgb(220, 222, 227)",o.style.borderStyle="solid",o.style.position="fixed",o.style.top="50%",o.style.left="50%",o.style.transform="translate(-50%, -50%)",o.style.width=n,o.style.height=r,o.style.backgroundColor="white",o.style.zIndex="1000",document.body.appendChild(o),console.log(`openByIframeId end with iframeId: ${e} url: ${t} width: ${n} height: ${r}`)},closeByIframeId:e=>{console.log("closeByIframeId begin with iframeId: "+e);const t=window.parent.document.getElementById(e);t?(console.log("closeByIframeId end with iframeId: "+e),t.remove()):console.log("closeByIframeId end get detailIframe is null")}},me=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}};let be=null;function we(){return be||(be=me()),be}window.__CORE_EVENT_BUS__||(window.__CORE_EVENT_BUS__=we());const Oe=undefined;var xe=window.__CORE_EVENT_BUS__;const Ee={onCreate:(e,t)=>{if(console.log("eventUtil onCreate begin with :",e,t),!(t&&t.schema&&t.schema.props&&t.schema.props.page))return void console.log("eventUtil onUpdate extParams.schema.props.page is null");let n="http://localhost:5556/preview.html?pageId="+t.schema.props.page;ve.openByIframeId("detail-iframe",n,"100%","100%"),console.log("onCreate end ")},onUpdate:(e,t)=>{if(console.log("eventUtil onUpdate begin with :",e,t),!(t&&t.schema&&t.schema.props&&t.schema.props.page))return void console.log("eventUtil onUpdate extParams.schema.props.page is null");let n="http://localhost:5556/preview.html?pageId="+t.schema.props.page;t&&t.record?(t.record.id&&(n+="&dataId="+t.record.id),t.tableId&&console.log("customEvent with :",{tableId:t.tableId,force:!0}),ve.openByIframeId("detail-iframe",n,"100%","100%"),console.log("onUpdate end ")):console.log("eventUtil onUpdate extParams.record is null")},onDelete:(e,t)=>{console.log("eventUtil onDelete begin with :",e,t),t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId?t&&t.record&&t.record.id?(fe.selectEntityWithReferById(t.schema.props.entity,e=>{console.log("response",e),e&&0==e.code&&e.data&&e.data.logicalName?ue.deleteOneById(e.data.logicalName,t.record.id,e=>{console.log("response",e),e.code?console.error("\u5220\u9664\u5931\u8d25\uff1a",e):(console.log("\u5220\u9664\u6210\u529f\uff1a",e),t.schema.props.tableComponentRefId&&Ee.refreshOadpEntityTableDataSource({tableComponentRefId:t.schema.props.tableComponentRefId}))}):console.error("\u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e)}),console.log("onDelete end ")):console.log("eventUtil onDelete extParams.record.id is null"):console.log("eventUtil onDelete extParams.schema.props.entity is null")},onRead:(e,t)=>{console.log("eventUtil onRead begin with :",e,t),t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId?t&&t.record&&t.record.id?(fe.selectEntityWithReferById(t.schema.props.entity,e=>{console.log("response",e),e&&0==e.code&&e.data&&e.data.logicalName?ue.deleteOneById(e.data.logicalName,t.record.id,e=>{console.log("response",e),e.code?console.error("\u5220\u9664\u5931\u8d25\uff1a",e):(console.log("\u5220\u9664\u6210\u529f\uff1a",e),t.schema.props.tableComponentRefId&&Ee.refreshOadpEntityTableDataSource({tableComponentRefId:t.schema.props.tableComponentRefId}))}):console.error("\u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e)}),console.log("onRead end ")):console.log("eventUtil onRead extParams.record.id is null"):console.log("eventUtil onRead extParams.schema.props.entity is null")},onReadFast:async(e,t)=>{console.log("eventUtil onReadFast begin with :",e,t);const n=e;if(!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onReadFast extParams.schema.props.entity or extParams.schema.props.tableComponentRefId is null");const r=t.schema.props.entity,o=t.schema.props.queryAttributeList;let i=[{attribute:"code",operator:"like",value:n},{attribute:"name",operator:"like",value:n}];if(o&&o.length>0){const e=await fe.asyncSelectAttributeListWithReferByEntityId(r);if(!e||!e.list)return void console.log("eventUtil onReadFast attributeData is undefined");o.forEach(t=>{const r=e.list.find(e=>e.id===t);r&&i.push({attribute:r.logicalName,operator:"like",value:n})})}let a={tableComponentRefId:t.schema.props.tableComponentRefId,readFastCondition:n?{operator:"or",value:i}:null};Ee.refreshOadpEntityTableDataSource(a),console.log("eventUtil onReadFast end ")},onReadRule:(e,t)=>{console.log("eventUtil onReadRule begin with :",e,t);const n=e;if(!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onReadRule extParams.schema.props.entity or extParams.schema.props.tableComponentRefId is null");let r={tableComponentRefId:t.schema.props.tableComponentRefId,readFastCondition:n};Ee.refreshOadpEntityTableDataSource(r),console.log("onReadRule end ")},onPageNumChange:(e,t)=>{console.log("eventUtil onPageNumChange begin with :",e,t);const n=e;if(!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onPageNumChange extParams.schema.props.entity or extParams.schema.props.tableComponentRefId is null");let r={tableComponentRefId:t.schema.props.tableComponentRefId,pageNum:n};Ee.refreshOadpEntityTableDataSource(r),console.log("onPageNumChange end ")},onPageSizeChange:(e,t)=>{console.log("eventUtil onPageSizeChange begin with :",e,t);const n=e;if(!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onPageSizeChange extParams.schema.props.entity or extParams.schema.props.tableComponentRefId is null");let r={tableComponentRefId:t.schema.props.tableComponentRefId,pageSize:n};Ee.refreshOadpEntityTableDataSource(r),console.log("onPageSizeChange end ")},onBatchDelete:(e,t)=>{if(console.log("eventUtil onBatchDelete begin with :",e,t),!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onBatchDelete extParams.schema.props.entity is null");const n=t.schema.props.tableComponentRefId,r=ye.getTableSelectRow(n);r?(fe.selectEntityWithReferById(t.schema.props.entity,e=>{console.log("response",e),e&&0==e.code&&e.data&&e.data.logicalName?ue.batchDeleteByIdListString(e.data.logicalName,r,e=>{console.log("response",e),e.code?console.error("\u5220\u9664\u5931\u8d25\uff1a",e):(console.log("\u5220\u9664\u6210\u529f\uff1a",e),t.schema.props.tableComponentRefId&&Ee.refreshOadpEntityTableDataSource({tableComponentRefId:t.schema.props.tableComponentRefId}))}):console.error("\u83b7\u53d6\u5b9e\u4f53\u6570\u636e\u65f6\u53d1\u751f\u9519\u8bef\uff1a",e)}),console.log("onBatchDelete end ")):console.log("eventUtil onBatchDelete idListString is null")},onTableSetting:(e,t)=>{console.log("eventUtil onTableSetting begin with :",e,t),console.log("eventUtil onTableSetting ",pe()('[__id="'+t.schema.props.tableComponentRefId+'"]'));const n=e;if(!(t&&t.schema&&t.schema.props&&t.schema.props.entity&&t.schema.props.tableComponentRefId))return void console.log("eventUtil onTableSetting extParams.schema.props.entity or extParams.schema.props.tableComponentRefId is null");let r={tableComponentRefId:t.schema.props.tableComponentRefId,readFastCondition:n};Ee.refreshOadpEntityTableDataSource(r),console.log("onTableSetting end ")},refreshOadpEntityTableDataSource:e=>{console.log("refreshOadpEntityTableDataSource with :",e),xe.emit("refreshOadpEntityTableDataSource",e)},refreshOadpEntityTableColumn:e=>{console.log("refreshOadpEntityTableColumn with :",e),xe.emit("refreshOadpEntityTableColumn",e)}};var Se=Ee;const je=undefined;var Te={getUrlParameterValueByKey:e=>{if(!e)return"";const t=new URLSearchParams(window.location.search);if(!t)return"";if(!t.has(e))return"";const n=undefined;return t.get(e)}};function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Pe=["name","attribute","value","defaultValue","field","label","placeholder","size","mode","hasBorder","hasArrow","hasClear","required","readOnly","disabled"];function ke(e,t){if(null==e)return{};var n,r,o=Le(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Le(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){_e(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _e(e,t,n){return(t=ze(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Re=function e(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function e(t,n,r){return t[n]=r}}function s(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),l=new L(r||[]);return o(a,"_invoke",{value:T(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",h="executing",y="completed",g={};function v(){}function m(){}function b(){}var w={};u(w,a,(function(){return this}));var O=Object.getPrototypeOf,x=O&&O(O(A([])));x&&x!==n&&r.call(x,a)&&(w=x);var E=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(o,i,a,l){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,s=u.value;return s&&"object"==Ce(s)&&r.call(s,"__await")?t.resolve(s.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var i;o(this,"_invoke",{value:function e(r,o){function a(){return new t((function(e,t){n(r,o,e,t)}))}return i=i?i.then(a,a):a()}})}function T(t,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var c=C(l,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?y:p,u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=y,r.method="throw",r.arg=u.arg)}}}function C(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(Ce(t)+" is not iterable")}return m.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:m,configurable:!0}),m.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},S(j.prototype),u(j.prototype,l,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new j(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(E),u(E,c,"Generator"),u(E,a,(function(){return this})),u(E,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=A,L.prototype={constructor:L,reset:function t(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!n)for(var o in this)"t"===o.charAt(0)&&r.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=e)},stop:function e(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function t(n){if(this.done)throw n;var o=this;function i(t,r){return c.type="throw",c.arg=n,o.next=t,r&&(o.method="next",o.arg=e),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var l=this.tryEntries[a],c=l.completion;if("root"===l.tryLoc)return i("end");if(l.tryLoc<=this.prev){var u=r.call(l,"catchLoc"),s=r.call(l,"finallyLoc");if(u&&s){if(this.prev<l.catchLoc)return i(l.catchLoc,!0);if(this.prev<l.finallyLoc)return i(l.finallyLoc)}else if(u){if(this.prev<l.catchLoc)return i(l.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return i(l.finallyLoc)}}}},abrupt:function e(t,n){for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i