3 lines
232 KiB
JavaScript
3 lines
232 KiB
JavaScript
define("admin.js", function(require, module, exports, window,document,frames,self,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,fetch,XMLHttpRequest,WebSocket,webkit,ttJSCore,Reporter,print,indexedDB){
|
|
(tt["webpackJsonp"]=tt["webpackJsonp"]||[]).push([[3],{1:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(142),t),a(n(511),t),a(n(112),t),a(n(145),t),a(n(217),t),a(n(223),t),a(n(596),t),a(n(631),t),a(n(167),t)},100:function(e,t,n){"use strict";var r=n(93),a=n(4),i=n(50),o=n(43),c=n(49),u=n(45),s=n(51);function l(e){var t,n,r,a=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);a--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new d(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function d(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return d=function(e){this.s=e,this.n=e.next},d.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new d(e)}var f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},h=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||f(t,e,n)},g=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},v=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.OuUserStore=t.initOuUserStore=void 0;var m=n(3),_=v(n(117)),y=v(n(775)),b=n(1),E=n(324),M=n(325),O=n(181),I=n(154),S={initData:{},checkedList:[],enterInviteUser:!1,currentCheckedId:""};t.initOuUserStore=u(u({},S),{},{ouStore:E.initialOuStore,searchStore:M.initialSearchStore});var P=function(){function e(t){var n=this;o(this,e),this.scopeType=I.SCOPE_TYPE.ALL,this.preCheckedList=[],this.checkedList=[],this.currentCheckedId="",this.enterInviteUser=!1,this.updateStore=function(e){for(var t in e){var r=t;n[r]=e[r]}},this.init=function(){var e=i(a.mark((function e(t){var r,i,o,c;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=n.initData,i=r.pickerType,o=r.search,c=null,!i){e.next=8;break}if(e.t0=n.ouStore,!e.t0){e.next=8;break}return e.next=7,n.ouStore.init(t);case 7:c=e.sent;case 8:if(!o){e.next=14;break}if(e.t1=n.searchStore,!e.t1){e.next=14;break}return e.next=13,n.searchStore.initWithSearch();case 13:c=e.sent;case 14:return e.abrupt("return",c);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.reset=function(){n.updateStore(S),n.ouStore&&n.ouStore.reset(),n.searchStore&&n.searchStore.reset()},this.revealInTree=function(){var e=i(a.mark((function e(t,r){var i,o,c,u,s,d,f,p,h,g,v,m,_;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n.initData.getPathFromRoot,o=n.ouStore.getOuStructure,t&&t!==b.DEFAULT_DEPARTMENT_ID&&i){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,i({deptId:t});case 6:if(c=e.sent,c&&c.length){e.next=9;break}return e.abrupt("return");case 9:if(u=c[c.length-1],u.id===b.DEFAULT_DEPARTMENT_ID||u.visible){e.next=12;break}return e.abrupt("return",!1);case 12:e.prev=12,s=0,d=!0,f=!1,e.prev=16,h=l(c);case 18:return e.next=20,h.next();case 20:return g=e.sent,d=g.done,e.next=24,g.value;case 24:if(v=e.sent,d){e.next=39;break}if(m=v,m.id!==b.DEFAULT_DEPARTMENT_ID||!r){e.next=29;break}return e.abrupt("continue",36);case 29:return e.next=31,o(m.id);case 31:if(_=e.sent,_){e.next=34;break}return e.abrupt("return");case 34:if(++s!==c.length||_.visible){e.next=36;break}return e.abrupt("return",!1);case 36:d=!0,e.next=18;break;case 39:e.next=45;break;case 41:e.prev=41,e.t0=e["catch"](16),f=!0,p=e.t0;case 45:if(e.prev=45,e.prev=46,d||null==h.return){e.next=50;break}return e.next=50,h.return();case 50:if(e.prev=50,!f){e.next=53;break}throw p;case 53:return e.finish(50);case 54:return e.finish(45);case 55:e.next=59;break;case 57:e.prev=57,e.t1=e["catch"](12);case 59:case"end":return e.stop()}}),e,null,[[12,57],[16,41,45,55],[46,,50,54]])})));return function(t,n){return e.apply(this,arguments)}}(),this.updateCheckedList=function(){var e=i(a.mark((function e(t){var i,o,c,s,l,d,f;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n.initData,o=i.isMulti,c=i.getUserPath,s=t.checked,l=t.userDeptPath,d=void 0===l?[]:l,t.type!==I.NODE_TYPE_NEW.USER||0!==d.length){e.next=7;break}return e.next=6,c({userIDs:[t.id]});case 6:f=e.sent;case 7:(0,m.runInAction)((function(){if(t.checked=!s,f&&(t.userDeptPath=f&&f[t.id]&&(0,O.getUserDeptPath)(f[t.id])||[]),s){var e=(0,_.default)(n.checkedList,{id:t.id});n.checkedList.splice(e,1)}else{n.currentCheckedId=t.id;var a=o?(0,y.default)([].concat(r(n.checkedList),[t]),"id"):[t];n.checkedList=a}var i=n.ouStore,c=i.currentOu,l=i.ouList,d=void 0===l?[]:l,p=c&&c.id===t.id;if(s||o){var h=(0,_.default)(n.ouStore.ouList,["id",t.id]);h>=0&&n.ouStore.ouList[h]&&(n.ouStore.ouList[h].checked=!s),p&&(n.ouStore.currentOu=u(u({},c),{},{checked:!s}))}else n.ouStore.currentOu=u(u({},c),{},{checked:p||!1}),d.forEach((function(e){e.checked=e.id===t.id}));n.ouStore.ouList=r(n.ouStore.ouList),n.checkedList=r(n.checkedList)}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.loadMoreOu=function(){var e=n.ouStore,t=n.checkedList,r=n.searchStore,a=e.hasMore,i=e.loadMore,o=e.ouListMoreLoading,c=e.userHasMore,u=r.search;u||o||!(a||void 0===a&&c)||i(t)},this.initData=t,this.checkedList=(0,O.getInitCheckedList)(t),this.scopeType=1===this.checkedList.length&&(0,O.getCorrectDeptId)(this.checkedList[0].id)===b.DEFAULT_DEPARTMENT_ID?I.SCOPE_TYPE.ALL:I.SCOPE_TYPE.PART,this.ouStore=new E.OuStore(t),this.searchStore=new M.SearchStore(t)}return c(e,[{key:"ouPicker",get:function(){var e=this.initData.pickerType;return(0,O.isOuPicker)(e)}}]),e}();p([m.observable,g("design:type",String)],P.prototype,"scopeType",void 0),p([m.observable,g("design:type",Array)],P.prototype,"checkedList",void 0),p([m.observable,g("design:type",Object)],P.prototype,"currentCheckedId",void 0),p([m.observable,g("design:type",Object)],P.prototype,"enterInviteUser",void 0),p([m.computed,g("design:type",Object),g("design:paramtypes",[])],P.prototype,"ouPicker",null),p([m.action,g("design:type",Object)],P.prototype,"updateStore",void 0),p([m.action,g("design:type",Object)],P.prototype,"updateCheckedList",void 0),t.OuUserStore=P,h(n(324),t),h(n(325),t),h(n(181),t),h(n(154),t)},101:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDI4IDI4Ij4KICAgIDxwYXRoIGZpbGw9IiM4Rjk1OUUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwLjQzNCAxNS40MzVMMTAuNDIyIDI1LjQ0N2MtLjU1NS41NTUtMS40NS41Ni0yLjAwNi4wMDMtLjU1NC0uNTUzLS41NDYtMS40NTkuMDAyLTIuMDA2bDkuMDEzLTkuMDEzLTkuMDEzLTkuMDEzYy0uNTU0LS41NTUtLjU2LTEuNDUtLjAwMi0yLjAwNi41NTMtLjU1NCAxLjQ1OC0uNTQ2IDIuMDA2LjAwMmwxMC4wMTIgMTAuMDEyYy41NTUuNTU1LjU2IDEuNDUuMDAyIDIuMDA2bC0uMDAyLjAwM3oiLz4KPC9zdmc+Cg=="},112:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(216),t),a(n(262),t),a(n(143),t),a(n(164),t),a(n(518),t),a(n(519),t),a(n(527),t),a(n(528),t)},129:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.METHOD_TYPE=void 0,function(e){e["GET"]="get",e["POST"]="post",e["PUT"]="put",e["DELETE"]="delete"}(t.METHOD_TYPE||(t.METHOD_TYPE={}))},13:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(792),t),a(n(183),t),a(n(335),t)},130:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(749),t)},133:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(815),t)},14:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(632),t),a(n(153),t),a(n(129),t),a(n(307),t),a(n(656),t)},142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MEMBER_LIMIT=t.LIST_SIZE=t.E2E=t.emptyArr=t.IphonexBottom=t.MAX_BTN_COUNT=t.IMAGE_CROPPED=t.ENTER_WAIT_TIME=t.LOGIN_THRESHOLD=t.LOGIN_TIME_OUT=t.REQUEST_TIME_OUT=t.EXPIRE_TIME=t.COOKIE=t.FIRST_ID=t.DEFAULT_PARENT_ID=t.DEFAULT_DEPARTMENT_ID=void 0,t.DEFAULT_DEPARTMENT_ID="-1",t.DEFAULT_PARENT_ID="-2",t.FIRST_ID="0",t.COOKIE="cookie",t.EXPIRE_TIME="expireTime",t.REQUEST_TIME_OUT=1e4,t.LOGIN_TIME_OUT=864e5,t.LOGIN_THRESHOLD=3e5,t.ENTER_WAIT_TIME=1200,t.IMAGE_CROPPED="image-cropped",t.MAX_BTN_COUNT=3,t.IphonexBottom=34,t.emptyArr=[],t.E2E="e2e",t.LIST_SIZE=40,t.MEMBER_LIMIT=40},143:function(e,t,n){"use strict";var r=n(73);Object.defineProperty(t,"__esModule",{value:!0}),t.$app=t.$currentPage=void 0;var a=n(16),i=[];t.$currentPage={get:function(e){var t=(0,a.getCurrentInstance)().page||(0,a.getCurrentPages)().pop();return null==e?t:t.data[e]},getUrl:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e=e||this.get();var n=e&&e["__route__"]||"";return t?"/"+n:n},getUrlWithArgs:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e=e||this.get();var n=e&&e["__route__"]||"",r=e&&e.options||{},a=n+"?";for(var i in r){var o=r[i];a+=i+"="+o+"&"}return a=a.substring(0,a.length-1),t?"/"+a:a},getPagesLength:function(){return(0,a.getCurrentPages)().length},getCacheUrl:function(){return"".concat(this.getUrl(),"-").concat(this.getPagesLength()-1)},getPrePage:function(e){var t=Math.max(e,0),n=Math.max(this.getPagesLength()-1-t,0);return(0,a.getCurrentPages)()[n]},updatePages:function(){i=(0,a.getCurrentPages)()},getPrePageCacheUrl:function(){var e=i.length,t=this.getUrl(i[e-1]);return"".concat(t,"-").concat(e-1)},_setData:function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.setData(r({},t,n)),a&&e.$component.forceUpdate()},setPreData:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._setData(this.getPrePage(1),e,t,n)},setData:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._setData(this.get(),e,t,n)}},t.$app={get:function(e){var t=(0,a.getApp)();return null==e?t:t[e]},set:function(e,t){var n=(0,a.getApp)();n&&(n[e]=t)}}},144:function(e,t,n){"use strict";var r=n(43),a=n(51),i=n(58),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.noopAsync=t.Deferred=t.toFixed=t.isGenerator=t.isGeneratorFunction=t.isPromise=t.compose=t.compareVersion=t.isImage=t.isEndWith=t.addUnsetProp=t.addHiddenProp=t.wait=t.getUid=t.padZero=t.ellipsisStr=t.getByteLength=t.splitIntl=t.simpleCacheWrap=t.multiCalc=t.firstToLowercase=void 0;var c=o(n(121)),u=o(n(38)),s=n(142);function l(e){return e.charAt(0).toLowerCase()+e.slice(1)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){if(!t||!0===t||Array.isArray(t))return e;var n=0;return(0,c.default)(t)?n=Object.entries(t).reduce((function(e,t){var n=i(t,2),r=n[0],a=n[1];return a?isNaN(+r)?e:e+ +r:e}),0):isNaN(+t)||(n=+t),e+n}),0)}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return void 0===e?"":JSON.stringify(e)},n=new Map;return function(r){var a=t(r),i=n.get(a);return i||(i=e(r),n.set(a,i),i)}}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"|";return(e||"").split(t).map((function(e){return e.trim()}))}function h(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=0,n=0,r=e.length;n<r;n++){var a=e.charCodeAt(n);t+=a>=1&&a<=126||a>=65376&&a<=65439?1:2}return t}function g(e,t){for(var n=0,r="",a=0;;a+=1){var i=e.charCodeAt(a);if(n+=i>=1&&i<=126||i>=65376&&i<=65439?1:2,!(n<=t))break;r+=e.charAt(a)}return r+"..."}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return isNaN(+e)?"":(e+"").padStart(t,"0")}function m(){return Math.random().toString(36).slice(-8)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=new Promise((function(n,r){return setTimeout((function(){var e="function"===typeof t?t():t;return e instanceof Error?r(e):n(e)}),e)}));return r.url=n,r}function y(e,t,n){Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n})}function b(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return n},set:function(){console.warn("prop ".concat(t.toString()," is not reassignable"))}})}function E(e,t){return"string"===typeof t?(e+"").endsWith(t):t.some((function(t){return(e+"").endsWith(t)}))}function M(e){return"string"===typeof e&&(/\.(svg|gif|jpe?g|png|tiff|webp|bmp)$/i.test(e)||/^(data:image)/i.test(e))}t.firstToLowercase=l,t.multiCalc=d,t.simpleCacheWrap=f,t.splitIntl=p,t.getByteLength=h,t.ellipsisStr=g,t.padZero=v,t.getUid=m,t.wait=_,t.addHiddenProp=y,t.addUnsetProp=b,t.isEndWith=E,t.isImage=M;var O=function(e,t){var n=parseFloat(e),r=parseFloat(t),a=e.replace(n+".",""),i=t.replace(r+".","");return n===r?a>=i:n>r};function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length<=1?1===t.length?t[0]:function(e){return e}:t.reduceRight((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function S(e){return e&&["function","object"].includes(a(e))&&"function"===typeof e.then}function P(e){if(!e)return!1;var t=e.constructor;return!!t&&(!![t.name,t.displayName].includes("GeneratorFunction")||T(t.prototype))}function T(e){return e&&"function"===typeof e.next&&"function"===typeof e.throw}function D(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return 10*Math.round(r/10)/n}t.compareVersion=O,t.compose=I,t.isPromise=S,t.isGeneratorFunction=P,t.isGenerator=T,t.toFixed=D;var A=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r(this,e),this.timer=null,this.promise=new Promise((function(e,r){t.status="pending",t.resolve=function(n){e(n),t.status="fulfilled",t.onComplete()},t.reject=function(e){r(e),t.status="rejected",t.onComplete()},n&&(t.timer=setTimeout((function(){return t.reject("defer timeout")}),s.REQUEST_TIME_OUT))})),this.onComplete=function(){clearTimeout(t.timer),t.resolve=u.default,t.reject=u.default}};t.Deferred=A,t.noopAsync=Promise.resolve.bind(Promise),t.noopAsync._name="noopAsync";var N=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length)return 1===t.length?t[0]:t};t.pipe=N},145:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(144),t),a(n(529),t),a(n(530),t)},153:function(e,t,n){"use strict";var r=n(4),a=n(50),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateModuleApi=t.httpMethodCreators=t.httpMethods=void 0;var o=n(16),c=i(n(268)),u=i(n(294)),s=i(n(52)),l=i(n(127)),d=i(n(64)),f=n(129),p=n(307),h=n(1),g=Object.values(f.METHOD_TYPE),v=function(){return new Promise((function(e){return tt.getDeviceID({success:function(t){e(t.deviceID)},fail:function(){e("0")}})}))};function m(e,t){return _.apply(this,arguments)}function _(){return _=a(r.mark((function e(t,n){var a,i,s,g,m,_,y,b,E,M;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=n.url,i=n.query,s=n.data,g=void 0===s?{}:s,m=n.config,_=void 0===m?{}:m,y=a,t===f.METHOD_TYPE.GET&&(i=Object.assign({_t:(new Date).getTime()},i)),a="".concat(a.startsWith("/")?a:"/"+a).concat(i?"?"+c.default.stringify(i,{arrayFormat:"brackets"}):""),e.prev=4,e.next=7,v();case 7:p.defaultConfig.header["device-id"]=e.sent,h.isIpad?p.defaultConfig.header["device-platform"]="TerminalType_Ipad":h.isIOS?p.defaultConfig.header["device-platform"]="TerminalType_IOS":h.isAndroid?p.defaultConfig.header["device-platform"]="TerminalType_Android":h.isPC?p.defaultConfig.header["device-platform"]="TerminalType_PC":p.defaultConfig.header["device-platform"]="TerminalType_Unknown",p.defaultConfig.header["x-request-version"]="v2",e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](4),console.warn("header error",e.t0);case 15:return b="",e.t1=u.default,e.t2={},e.t3=p.defaultConfig,e.t4=_,e.t5=t.toUpperCase(),e.next=23,p.defaultConfig.baseUrl;case 23:if(e.t6=e.sent,e.t7=a,e.t8=e.t6+e.t7,e.t9=g,e.t10=y,e.t11=function(e){b=(e||{}).trace},e.t12=function(e){b=(e||{}).trace},e.t13={method:e.t5,url:e.t8,data:e.t9,originalUrl:e.t10,success:e.t11,fail:e.t12},E=(0,e.t1)(e.t2,e.t3,e.t4,e.t13),M=function(){return(0,o.request)((0,l.default)(E,"baseUrl")).catch((function(e){var n=e||{},r=n.report,a=void 0===r||r,i=n.response,o=i||{},c=o.statusCode,u=(0,d.default)(e)?e:new Error(e+"");if(u.message&&h.amToast.error(u.message),403!==c&&a&&(u._message&&(u.message=u._message),h.slardar.reportError(u,{url:"".concat(t," ").concat(y),statusCode:c,env:h.isOversea?"Lark":"Feishu",msg:"".concat(u.message||"no msg"),traceId:b,gadgetVersion:h.gadgetVersion})),u.slardarMessage=c>=500?"error":"other",u.trace=b,u.gadgetVersion=h.gadgetVersion||"",u.request&&delete u.request.header,u.response){var s=u.response.header||{};u.response.header={"lob-logid":s["lob-logid"],"request-id":s["request-id"],"x-request-id":s["x-request-id"]}}throw u}))},h.cacheStore.cacheDataHas(h.PRELOAD+y)){e.next=35;break}return e.abrupt("return",M());case 35:return e.abrupt("return",h.cacheStore.cacheDataGet(h.PRELOAD+y,!0).catch(M));case 36:case"end":return e.stop()}}),e,null,[[4,12]])}))),_.apply(this,arguments)}function y(e){return function(t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e((0,u.default)({url:t},n,r))}}}function b(e){return(0,s.default)(e,(function(e,n,r){var a=n.method,i=n.url,o=n.isManual,c=void 0!==o&&o,u=n.latest,s=void 0!==u&&u;!c&&(e[r]=t.httpMethodCreators[a](i,{config:{latest:s}}))}),{})}t.httpMethods=g.reduce((function(e,t){return e[t]=function(){var e=a(r.mark((function e(n){var a;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m(t,n);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0={};case 5:return a=e.t0,a.url=n.url,e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),e}),{}),t.httpMethodCreators=g.reduce((function(e,n){return e[n]=y(t.httpMethods[n]),e}),{}),t.generateModuleApi=b},154:function(e,t,n){"use strict";var r,a,i,o=n(73);Object.defineProperty(t,"__esModule",{value:!0}),t.SCOPE_TYPE=t.MaxUserDelete=t.MaxUserDept=t.SearchConfig=t.PickerConfig=t.defaultInitValue=t.PICKER_MODAL_TYPE=t.SEARCH_PERMISSION_TYPE=t.SEARCH_TYPE_NEW=t.NODE_TYPE_NEW=void 0,function(e){e[e["OU"]=1]="OU",e[e["GROUP"]=2]="GROUP",e[e["USER"]=3]="USER"}(t.NODE_TYPE_NEW||(t.NODE_TYPE_NEW={})),function(e){e[e["OU_USER"]=0]="OU_USER",e[e["USER"]=1]="USER",e[e["OU"]=2]="OU",e[e["GROUP"]=3]="GROUP",e[e["ALL"]=4]="ALL"}(a=t.SEARCH_TYPE_NEW||(t.SEARCH_TYPE_NEW={})),function(e){e[e["NONE"]=0]="NONE",e[e["PERMISSION"]=1]="PERMISSION"}(t.SEARCH_PERMISSION_TYPE||(t.SEARCH_PERMISSION_TYPE={})),function(e){e["OU"]="OU",e["USER"]="USER",e["MULTI_OU"]="MULTI_OU",e["MULTI_USER"]="MULTI_USER",e["CONTACT"]="CONTACT",e["OU_USER"]="OU_USER"}(i=t.PICKER_MODAL_TYPE||(t.PICKER_MODAL_TYPE={})),t.defaultInitValue={ous:[],groups:[],users:[]},t.PickerConfig=(r={},o(r,i.OU,{pickerType:i.OU,searchType:a.OU,isMulti:!1,needUser:!1,ouCheck:!0,userCheck:!1,tenantCheck:!0}),o(r,i.USER,{pickerType:i.USER,searchType:a.USER,isMulti:!1,needUser:!0,ouCheck:!1,userCheck:!1,tenantCheck:!1}),o(r,i.MULTI_OU,{pickerType:i.MULTI_OU,searchType:a.OU,isMulti:!0,needUser:!1,ouCheck:!0,userCheck:!1,tenantCheck:!0}),o(r,i.MULTI_USER,{pickerType:i.MULTI_USER,searchType:a.USER,isMulti:!0,needUser:!0,ouCheck:!1,userCheck:!0,tenantCheck:!1}),o(r,i.OU_USER,{pickerType:i.OU_USER,searchType:a.OU_USER,isMulti:!0,needUser:!0,ouCheck:!0,userCheck:!0,tenantCheck:!0}),o(r,i.CONTACT,{pickerType:i.CONTACT,searchType:a.OU_USER,isMulti:!1,needUser:!0,ouCheck:!1,userCheck:!1,tenantCheck:!0}),r),t.SearchConfig={isMulti:!1,needUser:!1,ouCheck:!1,userCheck:!1,tenantCheck:!1},t.MaxUserDept=50,t.MaxUserDelete=100,function(e){e["PART"]="Part",e["ALL"]="All"}(t.SCOPE_TYPE||(t.SCOPE_TYPE={}))},161:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmTabNav=void 0;var a=n(887);Object.defineProperty(t,"AmTabNav",{enumerable:!0,get:function(){return r(a).default}})},164:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStatusBarHeight=t.getWindowHeight=t.getWindowWidth=t.isAndroid=t.isIOS=t.isPC=t.isIpad=t.isIphoneX=t.checkIsIpx=t.SYS_APP_VERSION=t.SYS_MODEL=t.SYS_INFO=void 0;var r=n(16);function a(){var e=t.SYS_INFO,n=e.system,r=void 0===n?"":n,a=e.screenWidth,i=void 0===a?0:a,o=e.screenHeight,c=void 0===o?0:o,u=/iOS/;return c/i>1.78&&u.test(r)}t.SYS_INFO=r.getSystemInfoSync&&(0,r.getSystemInfoSync)()||{},t.SYS_MODEL=t.SYS_INFO.model,t.SYS_APP_VERSION=t.SYS_INFO.version,console.log("systemInfo",t.SYS_INFO),t.checkIsIpx=a,t.isIphoneX=/iPhone X/i.test(t.SYS_MODEL)||/iPhone 11/i.test(t.SYS_MODEL)||/iPhone 12/i.test(t.SYS_MODEL)||/iphone\sx/i.test(t.SYS_MODEL)||/iphone/i.test(t.SYS_MODEL)&&/unknown/.test(t.SYS_MODEL)||/iphone\s11/.test(t.SYS_MODEL)||/iphone\s12/.test(t.SYS_MODEL)||a();var i="ios",o="apple",c="iphone",u="android";function s(e){return e&&e.length>0?e.trim().toLowerCase():""}function l(e,t,n){return s(t)===o||s(e).indexOf(i)>=0||s(n).indexOf(c)>=0}function d(){var e=t.SYS_INFO,n=e.system,r=void 0===n?"":n,a=e.brand,i=void 0===a?"":a,o=e.model,c=void 0===o?"":o,d=e.platform,f=void 0===d?"":d;return l(r,i,c)&&s(f)!==u}function f(){var e=t.SYS_INFO.platform,n=void 0===e?"":e;return s(n)===u}t.isIpad=/iPad/i.test(t.SYS_MODEL)||/ipad/i.test(t.SYS_MODEL),t.isPC="PC"===t.SYS_MODEL,t.isIOS=d(),t.isAndroid=f();var p=function(){var e=r.getSystemInfoSync&&(0,r.getSystemInfoSync)()||{};return e.windowWidth};t.getWindowWidth=p;var h=function(){var e=r.getSystemInfoSync&&(0,r.getSystemInfoSync)()||{};return e.windowHeight};t.getWindowHeight=h;var g=function(){var e=r.getSystemInfoSync&&(0,r.getSystemInfoSync)()||{};return e.screenHeight-e.statusBarHeight};t.getStatusBarHeight=g},166:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(51),o=this&&this.__decorate||function(e,t,n,r){var a,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(c=(o<3?a(c):o>3?a(t,n,c):a(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},c=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.globalStore=t.GlobalStore=void 0;var s=n(3),l=n(164),d=n(167),f=n(145),p=n(142),h=u(n(54)),g=u(n(38)),v=n(112),m=function(){function e(){var n=this;r(this,e),this.forceLoading=!1,this.initWithCheck=g.default,this.resetForceLoading=(0,h.default)((function(){n._fallbackReset.cancel(),n.updateStore({forceLoading:!1})}),500),this._fallbackReset=(0,h.default)((function(){return n.updateStore({forceLoading:!1})}),p.REQUEST_TIME_OUT),this.globalHide=!1,this.globalEntering=null,this.isEnterNativePage=!1,this.hasShowGlobalVerify=!1,this.envVars={},this.initLoading=!1,this.pickerLoading=!1,this.hasGlobalVerify=!1,this.globalWindowWidth=(0,l.getWindowWidth)(),this.globalWindowHeight=(0,l.getWindowHeight)(),this.globalStatusBarHeight=(0,l.getStatusBarHeight)(),this.globalInitCallback=null,this.updateStore=function(e){for(var t in e){var r=t;n[r]=e[r]}},this.globalReset=function(e){var r=t.globalStore.globalEntering||{},a=r.cancel,i=void 0===a?g.default:a;i(),n.globalEntering=null},this.startPasswordVerify=function(){var e=t.globalStore.hasShowGlobalVerify,r=void 0!==e&&e;r||(n.updateStore({hasShowGlobalVerify:!0}),tt.startPasswordVerify({success:function(){n.updateStore({hasGlobalVerify:!0,hasShowGlobalVerify:!1})},fail:function(){n.updateStore({hasShowGlobalVerify:!1})}}))},(0,f.addUnsetProp)(this,"ambx",new d.Ambx(this)),(0,v.getEnvVars)().then((function(e){n.updateStore({envVars:e})}))}return a(e,[{key:"globalLoading",get:function(){return this.ambx.loading}}]),e}();o([s.computed,c("design:type",Object),c("design:paramtypes",[])],m.prototype,"globalLoading",null),o([s.observable,c("design:type",Object)],m.prototype,"forceLoading",void 0),o([s.observable,c("design:type",Object)],m.prototype,"envVars",void 0),o([s.observable,c("design:type",Object)],m.prototype,"initLoading",void 0),o([s.observable,c("design:type",Object)],m.prototype,"pickerLoading",void 0),o([s.observable,c("design:type",Object)],m.prototype,"hasGlobalVerify",void 0),o([s.observable,c("design:type",Object)],m.prototype,"globalWindowWidth",void 0),o([s.observable,c("design:type",Object)],m.prototype,"globalWindowHeight",void 0),o([s.observable,c("design:type",Object)],m.prototype,"globalStatusBarHeight",void 0),o([s.action,c("design:type",Object)],m.prototype,"updateStore",void 0),t.GlobalStore=m,t.globalStore=new m},167:function(e,t,n){"use strict";var r=n(4),a=n(93),i=n(50),o=n(45),c=n(43),u=n(49),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAmbx=t.Ambx=void 0;var f=n(0),p=n(3),h=n(18),g=d(n(94)),v=d(n(64)),m=d(n(38)),_=n(569),y=n(582),b=n(142),E=n(145),M=d(n(121));l(n(583),t);var O=Symbol("ambx:preload-req"),I=function(){function e(t,n){var r=this;c(this,e),this.context=t,this.preloadFn=null,this.requests=[],this.recordCallback=m.default,this.bind=function(e,t){return(0,_.createAction)(e,o(o({},t),{},{ambx:r,context:r.context}))},this.setConfig=function(e){(0,g.default)(e,"observe")&&(r.observe=e.observe),(0,g.default)(e,"preload")&&r.startPreload(e.preload),(0,g.default)(e,"context")&&(r.context=e.context)},this.startPreload=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!r.preloadFn&&e){r.preload=e;var t=new Promise((function(e){setTimeout(e,"boolean"===typeof r.preload?b.REQUEST_TIME_OUT:+r.preload),r.preloadFn=function(){r.preload=!1,r.preloadFn=null,e(null)}}));t._config={name:O},r.load(t)}};var a=n||{},i=a.name,u=void 0===i?"@Ambx-".concat((0,E.getUid)()):i,s=a.observe,l=void 0===s||s,d=a.preload,f=void 0!==d&&d;this.name=u,this.atom=(0,p.createAtom)(u),this.setConfig({preload:f,observe:l})}return u(e,[{key:"load",value:function(){var e=i(r.mark((function e(t){var n,i,c,u,s,l,d,f,h,g,_,y,b,M,I,S,P,T,D=this;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return n=t._config||{},i=n.name,c=void 0===i?"ambx:".concat((0,E.getUid)(),"-effect"):i,u=n.onError,s=void 0===u?m.default:u,l=n.onComplete,d=void 0===l?m.default:l,f=n.args,h=void 0===f?[]:f,g=n.autoCatch,_=void 0===g||g,y=this.requests,b=y.length,M=y.preObserve,I=Promise.resolve(t),S={action:c,async:(0,E.isPromise)(t)},this.requests.push(I),b||(0,E.isPromise)(t)?!M&&this.observe&&this.atom.reportChanged():this.observe=!1,c!==O&&this.preloadFn&&this.preloadFn(),this.requests.preObserve=this.observe,P=!0,T=null,e.prev=12,e.next=15,I;case 15:T=e.sent,e.next=29;break;case 18:if(e.prev=18,e.t0=e["catch"](12),P=!1,T=(0,v.default)(e.t0)?e.t0:new Error(e.t0+""),S.error=T,!_){e.next=27;break}console.error("ambx catch ".concat(c),e.t0),e.next=29;break;case 27:throw this.finish(I),T;case 29:return(0,p.runInAction)(c,(function(){P?"function"===typeof T&&(T=T.call(D.context)):s.call.apply(s,[D.context,T].concat(a(h))),d.call.apply(d,[D.context,T].concat(a(h)))})),e.next=32,Promise.resolve();case 32:return(0,p.runInAction)((function(){D.recordCallback(o(o({},S),{},{endLoop:!0})),D.finish(I),D.recordCallback=m.default})),e.abrupt("return",T);case 34:case"end":return e.stop()}}),e,this,[[12,18]])})));function t(t){return e.apply(this,arguments)}return t}()},{key:"finish",value:function(e){this.requests.splice(this.requests.indexOf(e),1),this.requests.length||(this.observe&&this.atom.reportChanged(),this.observe=!0,this.requests.preObserve=!1)}},{key:"loading",get:function(){return this.atom.reportObserved(),!!this.observe&&!!this.requests.length}}]),e}();function S(e,t,n){if(t&&!(0,M.default)(t))throw new Error("ambx: invalid ambx props: ".concat(t,", hooks fail"));var r=(0,f.useMemo)((function(){return new I(null,t)}),[]),a=(0,f.useMemo)((function(){return o(o({},n),{},{$ambx:r})}),[n]),i=(0,h.useLocalStore)(e,a);return(0,f.useEffect)((function(){(0,E.addUnsetProp)(i,"$ambx",r),r.setConfig({context:i})}),[n]),{store:i,loading:r.loading,bind:r.bind,record:function(e,t){return(0,y.createRecord)(e,o(o({},t),{},{ambx:r,context:i}))}}}t.Ambx=I,I.action=_.actionFactory,I.record=y.recordFactory,t.useAmbx=S,l(n(584),t)},179:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(43),o=n(51),c=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":o(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(c=(i<3?a(c):i>3?a(t,n,c):a(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},u=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":o(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.userStore=t.UserStore=void 0;var l=n(3),d=n(308),f=n(1),p=n(14),h=s(n(156)),g=s(n(54)),v=function e(){var t=this;i(this,e),this.currentUser={},this.loginStatus="none",this.forced=!1,this.updateStore=function(e){for(var n in e){var r=n;t[r]=e[r]}},this.init=function(){var e=a(r.mark((function e(n){var a;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.userApi.userBaseInfo();case 2:a=e.sent,(0,l.runInAction)((function(){(0,h.default)(t.currentUser,a)||(t.currentUser=a||{}),n.update(a)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.reset=(0,g.default)((function(){console.log("reset login",t.loginStatus),d._miniapp._am_init_payload.safeInit=!1,t.forced=!1,"reLogin"===t.loginStatus&&(t.loginStatus="login"),f.globalStore.updateStore({forceLoading:!1})}),4e3)};c([l.observable,u("design:type",Object)],v.prototype,"currentUser",void 0),t.UserStore=v,t.userStore=new v},181:function(e,t,n){"use strict";var r=n(58),a=n(45),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDisabled=t.getUserDeptPath=t.isOuPicker=t.getOuList=t.addSearchOuListNodes=t.setParentIDforUser=t.setOuInfo=t.getCorrectDeptId=t.getInitCheckedList=t.generateBaseData=void 0;var o=n(1),c=i(n(117)),u=n(154),s=function(e,t){return"visible"in e||(e.visible=!0),"depName"in e&&(e.name=e.depName||""),Object.assign(e,t),e};t.generateBaseData=s;var l=function(e){var n=e.value,r=void 0===n?[]:n;return r.forEach((function(e){(0,t.generateBaseData)(e,{checked:!0})})),r};t.getInitCheckedList=l;var d=function(e){return e===o.FIRST_ID?o.DEFAULT_DEPARTMENT_ID:e};t.getCorrectDeptId=d;var f=function(e,n){var r=e.id,i=e.parentID;return a(a({},e),{},{type:u.NODE_TYPE_NEW.OU,loaded:!0,checked:(0,c.default)(n,{id:r})>=0||!1,halfChecked:!1,children:[],parentID:(0,t.getCorrectDeptId)(i)})};t.setOuInfo=f;var p=function(e){e.pathNodes&&e.pathNodes.length>0&&(e.parentID=e.pathNodes[e.pathNodes.length-1].parentID===o.DEFAULT_PARENT_ID?o.DEFAULT_DEPARTMENT_ID:e.pathNodes[e.pathNodes.length-1].id)};t.setParentIDforUser=p;var h=function(e){var n=e.checkedList,r=void 0===n?[]:n,a=e.ous,i=e.users,o=new Map;r.forEach((function(e){var t=e.id;o.set(t,e)})),a&&a.length>0&&a.forEach((function(e){e.type=u.NODE_TYPE_NEW.OU,e.checked=o.has(e.id),e.parentID=(0,t.getCorrectDeptId)(e.parentID)})),i&&i.length>0&&i.forEach((function(e){e.type=u.NODE_TYPE_NEW.USER,e.checked=o.has(e.id),e.visible=!0,(0,t.setParentIDforUser)(e)}))};t.addSearchOuListNodes=h;var g=function(e,n,r,i,o,c){var s=new Map;c&&c.length>0&&c.forEach((function(e){var t=e.id;s.set(t,e)}));var l=[];return e&&e.length>0&&e.forEach((function(e){var t=e.id;l.push(a(a({},e),{},{checked:s.has(t)}))})),n&&n.length>0&&n.forEach((function(e){var t=a(a({},e),{},{type:u.NODE_TYPE_NEW.OU,parentID:i,pathNodes:o,checked:s.has(e.id)});l.push(t)})),r&&r.length>0&&r.forEach((function(e){var n=a(a({},e),{},{type:u.NODE_TYPE_NEW.USER,parentID:i,pathNodes:o,visible:!0,checked:s.has(e.id),userDeptPath:(0,t.getUserDeptPath)(e.pathNodes)});l.push(n)})),l};t.getOuList=g;var v=function(e){return e===u.PICKER_MODAL_TYPE.OU||e===u.PICKER_MODAL_TYPE.MULTI_OU};t.isOuPicker=v;var m=function(e){if(e&&e.length>0)return e.map((function(e){var n=e.slice(-1),a=r(n,1),i=a[0];return{name:i.depName,id:(0,t.getCorrectDeptId)(i.id),visible:!("visible"in i)||i.visible,path:e.map((function(e){return e.depName}))}}))};t.getUserDeptPath=m;var _=function(e,t){var n=t.pathNodes,r=void 0===n?[]:n,a=r.filter((function(t){var n=t.id;return e.indexOf(n)>=0}));return e.indexOf(t.id)>=0||a&&a.length>0};t.getDisabled=_},182:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iLTI1NiAtMjU2IDE1MzYgMTUzNiI+PHJlY3QgeD0iLTI1NiIgeT0iLTI1NiIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0iI2NjYyIvPjxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik04NTguNSA3NjMuNmEzNzQgMzc0IDAgMDAtODAuNi0xMTkuNSAzNzUuNjMgMzc1LjYzIDAgMDAtMTE5LjUtODAuNmMtLjQtLjItLjgtLjMtMS4yLS41QzcxOS41IDUxOCA3NjAgNDQ0LjcgNzYwIDM2MmMwLTEzNy0xMTEtMjQ4LTI0OC0yNDhTMjY0IDIyNSAyNjQgMzYyYzAgODIuNyA0MC41IDE1NiAxMDIuOCAyMDEuMS0uNC4yLS44LjMtMS4yLjUtNDQuOCAxOC45LTg1IDQ2LTExOS41IDgwLjZhMzc1LjYzIDM3NS42MyAwIDAwLTgwLjYgMTE5LjVBMzcxLjcgMzcxLjcgMCAwMDEzNiA5MDEuOGE4IDggMCAwMDggOC4yaDYwYzQuNCAwIDcuOS0zLjUgOC03LjggMi03Ny4yIDMzLTE0OS41IDg3LjgtMjA0LjMgNTYuNy01Ni43IDEzMi04Ny45IDIxMi4yLTg3LjlzMTU1LjUgMzEuMiAyMTIuMiA4Ny45Qzc3OSA3NTIuNyA4MTAgODI1IDgxMiA5MDIuMmMuMSA0LjQgMy42IDcuOCA4IDcuOGg2MGE4IDggMCAwMDgtOC4yYy0xLTQ3LjgtMTAuOS05NC4zLTI5LjUtMTM4LjJ6TTUxMiA1MzRjLTQ1LjkgMC04OS4xLTE3LjktMTIxLjYtNTAuNFMzNDAgNDA3LjkgMzQwIDM2MmMwLTQ1LjkgMTcuOS04OS4xIDUwLjQtMTIxLjZTNDY2LjEgMTkwIDUxMiAxOTBzODkuMSAxNy45IDEyMS42IDUwLjRTNjg0IDMxNi4xIDY4NCAzNjJjMCA0NS45LTE3LjkgODkuMS01MC40IDEyMS42UzU1Ny45IDUzNCA1MTIgNTM0eiIvPjwvc3ZnPg=="},183:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIELD_TYPE=t.FORM_MODE=void 0,function(e){e[e["DISABLE"]=0]="DISABLE",e[e["READ_ONLY"]=1]="READ_ONLY",e[e["READ"]=2]="READ",e[e["EDIT"]=3]="EDIT"}(t.FORM_MODE||(t.FORM_MODE={})),function(e){e["TEXT"]="text",e["NUMBER"]="number",e["DIGIT"]="digit",e["SWITCH"]="switch",e["CHECKBOX"]="checkbox",e["SECTION"]="section",e["TOP_TITLE"]="toptitle",e["BOTTOM_DES"]="bottomdes",e["RADIO_GROUP"]="radiogroup",e["RADIO"]="radio",e["CUSTOM"]="allCustom",e["PARTIAL_CUSTOM"]="partialCustom"}(t.FIELD_TYPE||(t.FIELD_TYPE={}))},21:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultRootStore=t.cacheStore=t.CacheStore=t.globalStore=t.GlobalStore=void 0;var i=n(1),o=n(235),c=n(239),u=n(179);a(n(667),t),a(n(235),t),a(n(239),t),a(n(179),t),a(n(715),t);var s=n(1);Object.defineProperty(t,"GlobalStore",{enumerable:!0,get:function(){return s.GlobalStore}}),Object.defineProperty(t,"globalStore",{enumerable:!0,get:function(){return s.globalStore}}),Object.defineProperty(t,"CacheStore",{enumerable:!0,get:function(){return s.CacheStore}}),Object.defineProperty(t,"cacheStore",{enumerable:!0,get:function(){return s.cacheStore}}),t.defaultRootStore={globalStore:i.globalStore,userStore:u.userStore,permStore:o.permStore,tenantStore:c.tenantStore,cacheStore:i.cacheStore}},213:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmTag=void 0;var a=n(883);Object.defineProperty(t,"AmTag",{enumerable:!0,get:function(){return r(a).default}})},216:function(e,t,n){"use strict";var r,a=n(4),i=n(45),o=n(50);function c(){return u.apply(this,arguments)}function u(){return u=o(a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!r){e.next=2;break}return e.abrupt("return",r);case 2:return r=new Promise((function(e){tt.getEnvVariable({success:function(t){var n;console.info("tt.getEnvVariable",t.config);var r=null!==(n=t.config)&&void 0!==n?n:{},a=i(i({},r),{},{isPrivate:!!r.isPrivate});e(a)},fail:function(t){console.info("tt.getEnvVariable failed",t),e({})}})})),e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function s(){return l.apply(this,arguments)}function l(){return l=o(a.mark((function e(){var t,n,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:if(t=e.sent,n=t.domain,r=t.isPrivate,!r){e.next=11;break}if(!n){e.next=10;break}return e.abrupt("return","https://".concat(n,"/lark/suite/admin"));case 10:console.error("Failed to get domain from tt.getEnvVariable");case 11:return e.abrupt("return","https://internal-api.feishu.cn/lark/suite/admin");case 12:case"end":return e.stop()}}),e)}))),l.apply(this,arguments)}function d(){return f.apply(this,arguments)}function f(){return f=o(a.mark((function e(){var t,n,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:if(t=e.sent,n=t.root_domain,r=t.isPrivate,!r){e.next=11;break}if(!n){e.next=10;break}return e.abrupt("return","https://accounts.".concat(n));case 10:console.error("Failed to get root_domain from tt.getEnvVariable");case 11:return e.abrupt("return","https://accounts.feishu.cn");case 12:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),t.getLoginUrl=t.getBaseUrl=t.getEnvVars=t.gadgetVersion=t.isOversea=t.isOnlineProd=t.isOnline=t.isProd=t.isDev=t.bytedanceEnv=void 0,t.bytedanceEnv="cn-online",t.isDev=!1,t.isProd=!t.isDev,t.isOnline=t.bytedanceEnv.endsWith("online"),t.isOnlineProd=t.isOnline&&t.isProd,t.isOversea=t.bytedanceEnv.startsWith("va-"),t.gadgetVersion="0.0.0",t.getEnvVars=c,t.getBaseUrl=s,t.getLoginUrl=d},217:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(531),t),a(n(166),t),a(n(593),t),a(n(594),t)},22:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalManager=t.AmModalWrapper=t.AmModal=void 0;var a=n(314);Object.defineProperty(t,"AmModal",{enumerable:!0,get:function(){return r(a).default}});var i=n(740);Object.defineProperty(t,"AmModalWrapper",{enumerable:!0,get:function(){return r(i).default}});var o=n(242);Object.defineProperty(t,"ModalManager",{enumerable:!0,get:function(){return o.ModalManager}})},223:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(273),t),a(n(576),t),a(n(577),t),a(n(581),t)},235:function(e,t,n){"use strict";var r=n(4),a=n(93),i=n(58),o=n(50),c=n(43),u=n(51),s=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},l=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.permStore=t.PermStore=void 0;var f=n(3),p=n(14),h=d(n(156)),g=d(n(95)),v=n(1),m=function e(){var t=this;c(this,e),this.fakedPermissions=[],this.featureSwitch={},this.builtinPermissions=[],this.permissions=[],this.init=o(r.mark((function e(){var n,o,c,u,s;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([p.userPermApi.getUserPermission({query:{permissionType:"tenant"}}),p.userPermApi.getSwitchSetting({query:{q:""}}).catch((function(){return{}}))]);case 2:n=e.sent,o=i(n,2),c=o[0].permissions,u=o[1],s=t.getPermissionsBySwitch(u),(0,f.runInAction)((function(){t.builtinPermissions=c,t.fakedPermissions=s,t.featureSwitch=u;var e=[].concat(a(t.builtinPermissions),a(t.fakedPermissions)),n=(0,f.toJS)(t.permissions)||[],r=n.indexOf(v.PERMISSION.ADMIN_MANAGER);r>=0&&n.splice(r),n.length===e.length&&(0,h.default)(n.sort(),e.sort())||(t.permissions=e)}));case 8:case"end":return e.stop()}}),e)}))),this.getPermissionsBySwitch=function(e){var t=[];return e["suite.admin.enable_certification"]&&t.push(v.PERMISSION.ENABLE_CERTICICATION),(v.isIOS||!v.isIOS&&(0,v.compareVersion)(v.SYS_APP_VERSION,"3.27.2"))&&t.push(v.PERMISSION.ENABLE_HELPCONTACT),e["admin.ou.multi"]&&t.push(v.PERMISSION.MULTI_OU),e["admin.contacts.related.org"]&&t.push(v.PERMISSION.B2B),e["suite.admin.jobtitle"]&&t.push(v.PERMISSION.JOB_TITLE),e["suite.admin.mini.addpasswordverify"]&&t.push(v.PERMISSION.ADMIN_MINI_ADDPASSWORDVERIFY),e["suite.admin.b2b_search_only"]&&t.push(v.PERMISSION.ADMIN_MINI_EDIT_RELATED_ACTION),e["suite.admin.new_transfer_api"]&&t.push(v.PERMISSION.ADMIN_MINI_NEW_TRANSFER_API),e["ccm.wenjuan.transfer_resigned_resource"]&&t.push(v.PERMISSION.TRANSFER_RESOURECE_SURVEY),e["suite.admin.organization.multidepleader"]&&t.push(v.PERMISSION.MULTI_DEPT_SUPERVISOR),e["suite.admin.user.user_resurrection"]&&t.push(v.PERMISSION.USER_RESURRECTION),e["suite.admin.sessionauth"]&&tt.setStorageSync("useAccountsLogin",!0),e["suite.admin.fusion"]&&t.push(v.PERMISSION.ADMIN_FUSION),e["suite_admin.orm.adminpermission.collabotion_tenants_permission"]&&t.push(v.PERMISSION.RELATED_ORGANIZATION_FG),e["lark.admin.orm.partner_tenant_allow_group_connect"]&&t.push(v.PERMISSION.RELATED_ORGANIZATION_GROUP),e.GUILock&&Object.keys(e.GUILock).forEach((function(n){e.GUILock[n]&&t.push("GUI_LOCK_".concat((0,g.default)(n).toUpperCase()))})),t},this.update=function(e){var n=t.permissions.indexOf(v.PERMISSION.ADMIN_MANAGER);e&&e.isSuperAdmin?-1===n&&t.permissions.push(v.PERMISSION.ADMIN_MANAGER):n>=0&&t.permissions.splice(n,1);var r=t.permissions.indexOf(v.PERMISSION.IS_SENIOR_ADMIN);e&&e.isSeniorAdmin?-1===r&&t.permissions.push(v.PERMISSION.IS_SENIOR_ADMIN):r>=0&&t.permissions.splice(r,1)},this.has=function(e){return t.permissions.includes(e)},this.hasFg=function(e){return t.featureSwitch[e]}};s([f.observable,l("design:type",Array)],m.prototype,"fakedPermissions",void 0),s([f.observable,l("design:type",Object)],m.prototype,"featureSwitch",void 0),s([f.observable,l("design:type",Array)],m.prototype,"builtinPermissions",void 0),s([f.observable,l("design:type",Array)],m.prototype,"permissions",void 0),s([f.action,l("design:type",Object)],m.prototype,"update",void 0),t.PermStore=m,t.permStore=new m},239:function(e,t,n){"use strict";var r=n(45),a=n(58),i=n(4),o=n(50),c=n(43),u=n(49),s=n(51),l=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},d=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.tenantStore=t.TenantStore=void 0;var f=n(3),p=n(14),h=n(1),g={NOT_CERT:0,CERTIFICATED:1,CERT_EXPIRED:2},v=function(){function e(){var t=this;c(this,e),this.tenantInfo={id:"",name:"",avatarUrl:"",displayID:"",currentQuota:5e3,allEmployeeNum:0,certSeatsLimit:0,planName:"",suiteName:""},this.hasCompanyPerm=!1,this.pendingProposalCount=0,this.init=function(){var e=o(i.mark((function e(n){return i.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.hasCompanyPerm=n.has(h.PERMISSION.Static_companyInfoManage),e.next=3,t.getTenantInfo();case 3:if(!(n.has(h.PERMISSION.ADMIN_MANAGER)||n.has(h.PERMISSION.RELATED_ORGANIZATION_FG)&&n.has(h.PERMISSION.RELATED_ORGANIZATION_LIST))){e.next=6;break}return e.next=6,t.getPendingProposalCount();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getTenantInfo=o(i.mark((function e(){var n,o,c,u,s,l,d,h,g,v,m,_,y,b;return i.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.hasCompanyPerm){e.next=11;break}return e.next=3,Promise.all([p.tenantApi.getTenantInfo(),p.tenantApi.getTenantBaseInfo(),t.getPackageLimit()]);case 3:n=e.sent,o=a(n,3),c=o[0],u=o[1],s=o[2],(0,f.runInAction)((function(){t.tenantInfo=r(r(r(r({},t.tenantInfo),u),c),s)})),e.next=20;break;case 11:return e.next=13,Promise.all([p.tenantApi.getHomeInfo({query:{cardTypes:"company"}}),p.tenantApi.getTenantBaseInfo(),t.getPackageLimit()]);case 13:l=e.sent,d=a(l,3),h=d[0].companyInfo,g=d[1],v=d[2],m=h.displayID,_=void 0===m?"":m,y=h.domain,b=void 0===y?"":y,(0,f.runInAction)((function(){t.tenantInfo=r(r(r(r({},t.tenantInfo),g),v),{},{displayID:_,domain:b})}));case 20:case"end":return e.stop()}}),e)}))),this.updateTenantInfo=function(){var e=o(i.mark((function e(n){var a;return i.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p.tenantApi.postTenantInfo({data:r(r({},t.tenantInfo),n)});case 2:return a=e.sent,t.getTenantInfo(),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getPackageLimit=function(){return p.tenantApi.getPackageLimitedInfo({query:{type:"chat_number_limit"}})},this.getPendingProposalCount=o(i.mark((function e(){var n,r;return i.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.tenantApi.getPendingProposalCount();case 3:n=e.sent,r=n.count,(0,f.runInAction)((function(){t.pendingProposalCount=r})),e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})))}return u(e,[{key:"certificateInfo",get:function(){var e=this.tenantInfo,t=e.certificateStatus,n=void 0===t?0:t,r=e.expireTime,a=void 0===r?0:r,i=e.nextTime,o=void 0===i?0:i,c=e.remainingDays,u=void 0===c?0:c,s=e.allEmployeeNum,l=e.certSeatsLimit,d=void 0===l?0:l,f=n===g.CERTIFICATED,p=!(n!==g.CERTIFICATED||!o)&&u<=(a-o)/86400;return{certificated:f,shouldYearlyAuth:p,expireTime:(0,h.formatTime)(a-86400),outLimited:s>=d&&!f}}}]),e}();l([f.observable,d("design:type",Object)],v.prototype,"tenantInfo",void 0),l([f.observable,d("design:type",Object)],v.prototype,"hasCompanyPerm",void 0),l([f.observable,d("design:type",Object)],v.prototype,"pendingProposalCount",void 0),l([f.computed,d("design:type",Object),d("design:paramtypes",[])],v.prototype,"certificateInfo",null),l([f.action,d("design:type",Object)],v.prototype,"init",void 0),l([f.action,d("design:type",Object)],v.prototype,"getTenantInfo",void 0),l([f.action,d("design:type",Object)],v.prototype,"updateTenantInfo",void 0),t.TenantStore=v,t.tenantStore=new v},242:function(e,t,n){"use strict";var r=n(73),a=n(93),i=n(45),o=n(43),c=n(49),u=n(51),s=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},l=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalManager=t.ModalStore=void 0;var f=n(3),p=d(n(94)),h=d(n(127)),g=d(n(243)),v=d(n(102)),m=n(1),_=n(39),y=0,b=function(){function e(){var t=this;o(this,e),this.currentID=0,this.modalSeqs={},this.finalClose=!1,this.loading=!1,this.reset=function(){y=0,(0,f.set)(t.modalSeqs,t.curPageUrl,[]),t.currentID=0,t.loading=!1,t.finalClose=!1},this.setLoading=function(e){t.loading=e},this.show=function(e){var n=t.curPageUrl;if(t.loading)return(0,h.default)((0,v.default)(t.modalSeqs[n],(function(e){return e.id===t.currentID})),"modalProps");t.setLoading(!0),y+=1,t.currentID=y,t.modalSeqs[n]||(t.modalSeqs[n]=[]);var o=y,c=(0,p.default)(e,"delay")?setInterval((0,f.action)((function(){var e=(0,v.default)(t.modalSeqs[n],(function(e){return e.id===o}))||{},r=e.modalProps;r._delayCount?r._delayCount-=1:clearInterval(c)})),1e3):null;return t.modalSeqs=i(i({},t.modalSeqs),{},r({},n,[].concat(a(t.modalSeqs[n]),[{id:y,delayTimer:c,modalProps:i(i({},(0,h.default)(e,"delay")),{},{_delayCount:+(e.delay||0),_close:t.close,visible:!0})}]))),{id:y,delayTimer:c}},this.confirm=function(e){return t.show(i({okText:_.comLangStore.getLocale("SuiteAdminMP_Common_GotIt"),showCancel:!1},e))},this.close=function(e){var n=e||{},r=n.id,a=void 0===r?t.currentID:r,i=n.page,o=void 0===i?t.curPageUrl:i;if(t.hasOpenedModal(o)){var c=(0,f.toJS)(t.modalSeqs[o])||[];(0,g.default)(c,[a],(function(e,t){var n=e.id===t;return n&&null!==e.delayTimer&&clearInterval(e.delayTimer),n})),(0,f.set)(t.modalSeqs,o,c),t.finalClose&&t.setFinalClose(!1)}},this.setFinalClose=function(e){var n=t.modalSeqs[t.curPageUrl]||[];e&&n&&1===n.length?t.finalClose=e:t.finalClose=!1}}return c(e,[{key:"hasOpenedModal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.curPageUrl;return this.modalSeqs[e].length>0}},{key:"curPageUrl",get:function(){return m.$currentPage.getUrl(null,!1)}}]),e}();s([f.observable,l("design:type",Object)],b.prototype,"currentID",void 0),s([f.observable,l("design:type",Object)],b.prototype,"modalSeqs",void 0),s([f.observable,l("design:type",Object)],b.prototype,"finalClose",void 0),s([f.action,l("design:type",Object)],b.prototype,"reset",void 0),s([f.action,l("design:type",Object)],b.prototype,"show",void 0),s([f.action,l("design:type",Object)],b.prototype,"confirm",void 0),s([f.action,l("design:type",Object)],b.prototype,"close",void 0),s([f.action,l("design:type",Object)],b.prototype,"setFinalClose",void 0),t.ModalStore=b,t.ModalManager=new b},244:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=n(2),o=r(n(31)),c=r(n(38)),u=n(39),s=function(e){var t=e.close,n=e.style,r=e.onClick,s=void 0===r?c.default:r,l=function(e){e.preventDefault(),s()};return a.default.createElement(i.View,{className:(0,o.default)("".concat(u.PREFIX,"-mask g-mask"),{open:!t,close:t}),style:n,onClick:l})};s.defaultProps={close:!1},t.default=s},245:function(e,t,n){"use strict";var r=n(73),a=n(93),i=n(45),o=n(43),c=n(49),u=n(51),s=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},l=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionSheetManager=t.ActionSheetStore=void 0;var f=n(3),p=d(n(94)),h=d(n(127)),g=d(n(243)),v=d(n(102)),m=n(1),_=0,y=function(){function e(){var t=this;o(this,e),this.currentID=0,this.acitionSheetSeqs={},this.loading=!1,this.reset=function(){_=0,(0,f.set)(t.acitionSheetSeqs,t.curPageUrl,[]),t.currentID=0,t.loading=!1},this.setLoading=function(e){t.loading=e},this.show=function(e){var n=t.curPageUrl;if(t.loading)return(0,h.default)((0,v.default)(t.acitionSheetSeqs[n],(function(e){return e.id===t.currentID})),"actionSheetProps");t.setLoading(!0),_+=1,t.currentID=_,t.acitionSheetSeqs[n]||(t.acitionSheetSeqs[n]=[]);var o=_,c=[],u=[];return e.data.forEach((function(e,r){(0,p.default)(e,"delay")?(c[r]=setInterval((0,f.action)((function(){var e=(0,v.default)(t.acitionSheetSeqs[n],(function(e){return e.id===o}))||{},a=e.actionSheetProps;if(a._dataExtra[r].delayCount){var i=(0,f.toJS)(a._dataExtra);i[r].delayCount-=1,a._dataExtra=i}else clearInterval(c[r])})),1e3),u[r]={delayCount:+(e.delay||0)}):(c[r]=null,u[r]={})})),t.acitionSheetSeqs=i(i({},t.acitionSheetSeqs),{},r({},n,[].concat(a(t.acitionSheetSeqs[n]),[{id:_,delayTimers:c,actionSheetProps:i(i({},e),{},{_dataExtra:u,visible:!0,close:t.close})}]))),{id:_,delayTimers:c}},this.close=function(e){var n=(0,f.toJS)(t.acitionSheetSeqs[t.curPageUrl])||[];(0,g.default)(n,[e||t.currentID],(function(e,t){var n=e.id===t;return n&&e.delayTimers.forEach((function(e){null!==e&&clearInterval(e)})),n})),(0,f.set)(t.acitionSheetSeqs,t.curPageUrl,n)}}return c(e,[{key:"hasOpenedActionSheet",get:function(){return this.acitionSheetSeqs[this.curPageUrl].length>0}},{key:"curPageUrl",get:function(){return m.$currentPage.getUrl(null,!1)}}]),e}();s([f.observable,l("design:type",Object)],y.prototype,"currentID",void 0),s([f.observable,l("design:type",Object)],y.prototype,"acitionSheetSeqs",void 0),s([f.action,l("design:type",Object)],y.prototype,"reset",void 0),s([f.action,l("design:type",Object)],y.prototype,"show",void 0),s([f.action,l("design:type",Object)],y.prototype,"close",void 0),t.ActionSheetStore=y,t.ActionSheetManager=new y},246:function(e,t,n){"use strict";var r=n(73),a=n(93),i=n(45),o=n(43),c=n(49),u=n(51),s=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},l=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionModalManager=t.ActionModalStore=void 0;var f=n(3),p=d(n(127)),h=d(n(243)),g=d(n(102)),v=n(1),m=0,_=function(){function e(){var t=this;o(this,e),this.currentID=0,this.actionModalSeqs={},this.loading=!1,this.reset=function(){m=0,(0,f.set)(t.actionModalSeqs,t.curPageUrl,[]),t.currentID=0,t.loading=!1},this.setLoading=function(e){t.loading=e},this.show=function(e){var n=t.curPageUrl;if(t.loading)return(0,p.default)((0,g.default)(t.actionModalSeqs[n],(function(e){return e.id===t.currentID})),"actionModalProps");t.setLoading(!0),m+=1,t.currentID=m,t.actionModalSeqs[n]||(t.actionModalSeqs[n]=[]);var o=[];return t.actionModalSeqs=i(i({},t.actionModalSeqs),{},r({},n,[].concat(a(t.actionModalSeqs[n]),[{id:m,delayTimers:o,actionModalProps:i(i({},e),{},{visible:!0,close:t.close})}]))),{id:m,delayTimers:o}},this.close=function(e){var n=(0,f.toJS)(t.actionModalSeqs[t.curPageUrl])||[];(0,h.default)(n,[e||t.currentID],(function(e,t){var n=e.id===t;return n&&e.delayTimers.forEach((function(e){null!==e&&clearInterval(e)})),n})),(0,f.set)(t.actionModalSeqs,t.curPageUrl,n)}}return c(e,[{key:"hasOpenedActionModal",get:function(){return this.actionModalSeqs[this.curPageUrl].length>0}},{key:"curPageUrl",get:function(){return v.$currentPage.getUrl(null,!1)}}]),e}();s([f.observable,l("design:type",Object)],_.prototype,"currentID",void 0),s([f.observable,l("design:type",Object)],_.prototype,"actionModalSeqs",void 0),s([f.action,l("design:type",Object)],_.prototype,"reset",void 0),s([f.action,l("design:type",Object)],_.prototype,"show",void 0),s([f.action,l("design:type",Object)],_.prototype,"close",void 0),t.ActionModalStore=_,t.ActionModalManager=new _},25:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmOuUserCheckList=t.AmOuUserSearch=t.AmOuUser=t.AmPickerTag=t.AmPicker=void 0;var o=n(773);Object.defineProperty(t,"AmPicker",{enumerable:!0,get:function(){return i(o).default}});var c=n(801);Object.defineProperty(t,"AmPickerTag",{enumerable:!0,get:function(){return i(c).default}});var u=n(322);Object.defineProperty(t,"AmOuUser",{enumerable:!0,get:function(){return i(u).default}});var s=n(334);Object.defineProperty(t,"AmOuUserSearch",{enumerable:!0,get:function(){return i(s).default}});var l=n(333);Object.defineProperty(t,"AmOuUserCheckList",{enumerable:!0,get:function(){return i(l).default}}),a(n(100),t)},250:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmSwitch=void 0;var a=n(794);Object.defineProperty(t,"AmSwitch",{enumerable:!0,get:function(){return r(a).default}})},262:function(e,t,n){"use strict";var r=n(43);Object.defineProperty(t,"__esModule",{value:!0}),t.customEvents=t.events=void 0;var a=n(16);t.events=new a.Events;var i=function e(){var n=this;r(this,e),this.eventMap=new Map,this.on=function(e,r){n.eventMap.has(e)&&t.events.off(e),t.events.on(e,r),n.eventMap.set(e,r)},this.off=function(e){t.events.off(e),n.eventMap.delete(e)}};t.customEvents=new i},27:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(748),t)},273:function(e,t,n){"use strict";var r=n(51),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getAmbxInstance=t.isNormalizeConfig=t.createDecoratorForEnhancer=t.createPropDecorator=void 0;var i=n(145),o=n(167),c=a(n(121)),u=a(n(248));function s(e){return function(){var t;function n(n,r,a){return e(n,r,a,t)}for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return l(a)?(t=[],n.apply(void 0,a)):(t=a,n)}}function l(e){return(2===e.length||3===e.length)&&"string"===typeof e[1]||4===e.length&&!0===e[3]}function d(e){return s((function(t,n,r,a){if(n)return r?r.get||r.set?r:{configurable:!0,get:function(){var t=r.value||r.initializer&&r.initializer.call(this);return e(t,a[0],this,n)},set:function(){console.warn("@xxx field is not reassignable")}}:void Object.defineProperty(t,n,{configurable:!0,get:function(){},set:function(t){(0,i.addHiddenProp)(this,n,e(t,a[0],this,n))}})}))}t.createPropDecorator=s,t.createDecoratorForEnhancer=d;var f=function(e,t){if(!(0,c.default)(e))return!1;var n=Object.keys(e);return!n.every((function(e){return!t[e]}))&&!n.some((function(n){var a=t[n];return!(!a||"any"===a)&&!(Array.isArray(a)?a:[a]).includes(r(e[n]))}))};t.isNormalizeConfig=f;var p=function(e,t){var n=t||{},r=n.ambx,a="string"===typeof r?(e||{})[r]:r;return a||(0,u.default)(e).find((function(e){return e instanceof o.Ambx}))};t.getAmbxInstance=p},28:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmVerifyWrapper=void 0;var a=n(755);Object.defineProperty(t,"AmVerifyWrapper",{enumerable:!0,get:function(){return r(a).default}})},307:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.URL_PREFIX=void 0;var r=n(1);t.URL_PREFIX="https://internal-api.feishu.cn/lark/suite/admin",t.defaultConfig={baseUrl:(0,r.getBaseUrl)(),header:{"Content-Type":"application/json;charset=utf-8","Cache-Control":"no-cache",pragma:"no-cache","X-Requested-With":"XMLHttpRequest","X-Timezone-Offset":(new Date).getTimezoneOffset(),"x-i18n-locale":(0,r.getCurrentLang)()},timeout:r.REQUEST_TIME_OUT}},308:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._miniapp=void 0,t._miniapp={_am_init_payload:{}}},311:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=t.resolvedApp=void 0;var r=n(340),a=n(1),i=n(721);function o(e){var n=e.isPrivate,o=[new r.CacheMiddleware("suite-admin-mini__storage"),new r.SystemBaseMiddleware,c(),u(),new r.ServicesMiddlewareV2,new r.LoginMiddleware({useTripartiteLogin:!tt.getStorageSync("useAccountsLogin"),loginThreshold:{SYNC_LOGIN_INTERVAL:a.LOGIN_TIME_OUT-a.LOGIN_THRESHOLD,ASYNC_LOGIN_INTERVAL:null}}),new r.HostMiddleware({useKaChannel:n}),new r.InitMiddleware({useLogin:!0,useInitServices:!0}),new i.AdminMiddleware].filter(Boolean),s=r.miniprogramApp.applyMiddlewares(o);return t.resolvedApp=s,s}function c(){var e=a.isOversea?"mon-va.byteoversea.com":"mon.zijieapi.com",t=a.isOnlineProd?"production":"test",n=a.isOversea?"suite_admin_mini":"suite_admin_mobile";return new r.SlardarMiddlewareV2({bid:n,env:t,domain:e,plugins:{hookRequest:{ignoreUrls:["/settings/switch"]}}})}function u(){var e=a.isOversea?3043:3042,t=a.isOversea?"https://mcs.byteoversea.net":"https://mcs.bytedance.net";return new r.TeaMiddlewareV2({teaInitParams:{app_id:e,report_channel:a.isOversea?"va":"cn",event_verify_url:a.isOnlineProd?void 0:t,disable_storage:!1,log:!a.isProd},teaConfigParams:{_staging_flag:a.isOnlineProd?0:1}})}t.resolvedApp=void 0,t.createApp=o},314:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(43),o=n(49),c=n(80),u=n(81),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return l(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),h=n(2),g=f(n(38)),v=f(n(31)),m=n(39),_=n(55),y=n(242);n(739);var b=function(e){c(n,e);var t=u(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),e.state={loading:!1,enterClose:!1},e.handleClose=function(){if(e.state.enterClose){var t=e.props,n=t._close,r=t.modalId;n&&n({id:r})}},e.handleCancel=function(){var t=a(r.mark((function t(n){var a,i;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.state.loading,i=e.props.onCancel,n.stopPropagation(),!a){t.next=5;break}return t.abrupt("return");case 5:if(e.setState({loading:!0}),t.prev=6,t.t0=i,!t.t0){t.next=11;break}return t.next=11,i();case 11:return t.prev=11,y.ModalManager.setFinalClose(!0),e.setState({loading:!1,enterClose:!0}),t.finish(11);case 15:case"end":return t.stop()}}),t,null,[[6,,11,15]])})));return function(e){return t.apply(this,arguments)}}(),e.handleOk=function(){var t=a(r.mark((function t(n){var a,i;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=e.state.loading,i=e.props.onOk,n.stopPropagation(),!e.okDisabled&&!a){t.next=5;break}return t.abrupt("return");case 5:if(e.setState({loading:!0}),t.prev=6,t.t0=i,!t.t0){t.next=11;break}return t.next=11,i();case 11:return t.prev=11,y.ModalManager.setFinalClose(!0),e.setState({loading:!1,enterClose:!0}),t.finish(11);case 15:case"end":return t.stop()}}),t,null,[[6,,11,15]])})));return function(e){return t.apply(this,arguments)}}(),e.renderModalFooter=function(){var t=e.props,n=t.footer,r=t.showOk,a=t.showCancel,i=t.cancelText,o=void 0===i?m.comLangStore.getLocale("SuiteAdminMP_Common_Cancel"):i,c=t.okText,u=void 0===c?m.comLangStore.getLocale("SuiteAdminMP_Common_Confirm"):c,s=t.okColor,l=t._delayCount,d=e.state.loading;return"none"===n?null:"default"===n?p.default.createElement(h.View,{className:"content-footer"},a&&p.default.createElement(h.View,{className:"footer-btn cancel",onClick:e.handleCancel},p.default.createElement(h.Text,{className:"wrapper"},o)),r&&p.default.createElement(h.View,{className:(0,v.default)("footer-btn ok",{disable:e.okDisabled,loading:d}),onClick:e.handleOk},p.default.createElement(h.View,{className:"wrapper"},p.default.createElement(_.AmSingleSpin,{className:"delete-loading",size:"small",color:s,spinning:d,tip:l?"".concat(u," (").concat(l,"s)"):u})))):p.default.createElement(h.View,{className:"content-footer"},n)},e}return o(n,[{key:"componentWillUnmount",value:function(){y.ModalManager.loading&&y.ModalManager.setLoading(!1),this.handleClose()}},{key:"render",value:function(){var e=this,t=this.props,n=t.visible,r=t.title,a=t.className,i=t.style,o=t.content,c=this.state.enterClose;return p.default.createElement(h.View,{className:(0,v.default)("".concat(m.PREFIX,"-modal"),{visible:n},a),style:i},p.default.createElement(h.View,{className:(0,v.default)("".concat(m.PREFIX,"-modal-content g-mask-content-modal"),{open:!c,close:c}),onAnimationEnd:function(){y.ModalManager.loading&&y.ModalManager.setLoading(!1),e.handleClose()}},r&&p.default.createElement(h.View,{className:"content-header"},p.default.createElement(h.View,{className:"content-header-title"},r)),p.default.createElement(h.View,{className:"content-body"},o||this.props.children),this.renderModalFooter()))}},{key:"okDisabled",get:function(){return this.props.okDisabled||!!this.props._delayCount}}]),n}(p.Component);b.defaultProps={visible:!1,title:"",content:"",okDisabled:!1,okColor:"primary",onOk:g.default,onCancel:g.default,maskClosable:!1,footer:"default",showOk:!0,showCancel:!0},t.default=b},318:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(43),o=n(49),c=n(80),u=n(81),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return l(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmActionSheet=void 0;var p=d(n(0)),h=n(2),g=n(84),v=f(n(38)),m=f(n(31)),_=n(39),y=f(n(244)),b=n(245);n(743);var E=function(e){c(n,e);var t=u(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),e.state={enterClose:!1},e.handleItemClick=function(){var t=a(r.mark((function t(n,a,i){return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!i){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,a&&e.handleCloseAnimation(),t.next=6,n();case 6:return t.prev=6,!a&&e.handleCloseAnimation(),t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[2,,6,9]])})));return function(e,n,r){return t.apply(this,arguments)}}(),e.handleCloseAnimation=function(t){t&&t.stopPropagation(),e.setState({enterClose:!0})},e.handleClose=a(r.mark((function t(){var n,a,i,o,c;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state.enterClose,!n){t.next=11;break}if(a=e.props,i=a.onCancel,o=a.close,c=a.actionSheetId,t.prev=3,t.t0=i,!t.t0){t.next=8;break}return t.next=8,i();case 8:return t.prev=8,o&&o(c),t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[3,,8,11]])}))),e.renderActionFooter=function(){var t=e.props,n=t.footer,r=t.cancelText,a=void 0===r?_.comLangStore.getLocale("SuiteAdminMP_Common_Cancel"):r,i=t.actionSheetId;return"none"===n?null:"function"===typeof n?p.default.createElement(h.View,{className:"content-footer"},n(i)):n?p.default.createElement(h.View,{className:"content-footer"},n):p.default.createElement(h.View,{className:"content-footer"},p.default.createElement(h.View,{className:"content-footer-blank"}),p.default.createElement(h.View,{className:(0,m.default)("content-footer-btn"),"data-id":"action-sheet-cancel",onClick:e.handleCloseAnimation,hoverClass:"g-active"},a))},e}return o(n,[{key:"componentWillUnmount",value:function(){b.ActionSheetManager.loading&&b.ActionSheetManager.setLoading(!1),this.handleClose()}},{key:"render",value:function(){var e=this,t=this.props,n=t.visible,r=t.data,a=t.title,i=t.className,o=t.maskClosable,c=t.maskStyle,u=t._dataExtra,s=void 0===u?[]:u,l=this.state.enterClose;return p.default.createElement(h.View,{className:(0,m.default)("".concat(_.PREFIX,"-action-sheet g-mask-container"),i,{visible:n})},p.default.createElement(y.default,{style:c,close:l,onClick:o?this.handleCloseAnimation:v.default}),p.default.createElement(h.View,{className:(0,m.default)("".concat(_.PREFIX,"-action-content g-mask-content-action"),{open:!l,close:l}),onAnimationEnd:function(){b.ActionSheetManager.loading&&b.ActionSheetManager.setLoading(!1),e.handleClose()}},a&&p.default.createElement(h.View,{className:"content-header g-flex g-flex-center b-bottom-svg-1px"},p.default.createElement(h.View,{className:"content-header-title"},a)),p.default.createElement(h.View,{className:(0,m.default)("content-body",{"whole-border-radius":!a})},r.map((function(t,n){var i=t.text,o=t.style,c=t.className,u=t.color,l=void 0===u?"default":u,d=t.badge,f=t.syncClose,y=void 0!==f&&f,b=t.disabled,E=void 0!==b&&b,M=t.onClick,O=void 0===M?v.default:M,I="action-item-".concat(n),S=E||!!s[n].delayCount,P=p.default.createElement(h.Text,{style:o,className:(0,m.default)("action-item-text",l)},s[n].delayCount?"".concat(i," (").concat(s[n].delayCount,"s)"):i);return p.default.createElement(h.View,{key:I,"data-id":I,className:(0,m.default)("action-item g-flexbox g-align-center",c,{"b-bottom-svg-1px":n!==r.length-1,"first-border-radius":0===n&&!a,disable:S}),onClick:function(){return e.handleItemClick(O,y,S)},hoverClass:S?"":"g-active"},d?"number"===typeof d?p.default.createElement(g.AmBadge,{count:d},P):(0,_.renderElementOrInstance)(d,{children:P}):P)})),this.props.children),this.renderActionFooter()))}}]),n}(p.Component);t.AmActionSheet=E,E.defaultProps={visible:!1,title:"",data:[],onCancel:v.default,close:v.default,maskClosable:!1}},322:function(e,t,n){"use strict";var r=n(73),a=n(43),i=n(49),o=n(80),c=n(81),u=n(51),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),d=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return l(t,e),t},p=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=f(n(0)),v=n(16),m=n(2),_=n(18),y=n(3),b=h(n(54)),E=n(1),M=h(n(774)),O=h(n(331)),I=n(82),S=n(100),P=n(39);n(332);var T=function(e){o(n,e);var t=c(n);function n(){var e;return a(this,n),e=t.apply(this,arguments),e.handleSearch=function(t){var n=e.props.ouUserStore,r=n.searchStore,a=n.checkedList;r.resetSearchRes(),r.search=t,t&&r.searchOuGroupUser({listSize:E.LIST_SIZE,isSearh:!0,checkedList:a})},e.handleClear=function(){e.handleSearch("")},e.handleCancle=function(){var t=e.props,n=t.ouUserStore,r=t.onCancelSearch,a=n.searchStore.setSearch;a(null),r&&r()},e}return i(n,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.onSelect,a=e.onExpand,i=e.onClickMore,o=e.ouUserStore,c=e.headHeight,u=void 0===c?0:c,s=e.footHeight,l=void 0===s?0:s,d=e.needSearch,f=void 0===d||d,p=e.noScope,h=void 0===p||p,_=o.searchStore,y=o.scopeType,T=_.search,D=_.setSearch,A=P.comLangStore.getLocale,N=(0,E.multiCalc)(u,r({},P.SearchHeight,f));return g.default.createElement(m.View,{style:t,className:"am-picker g-flexbox-column"},g.default.createElement(m.View,{className:"g-header",style:{top:(0,v.pxTransform)(u),height:f?(0,v.pxTransform)(P.SearchHeight):0,borderTop:h||y!==S.SCOPE_TYPE.PART?"":"1px solid #dee0e3"}},f&&g.default.createElement(I.AmSearchInput,{initValue:T||"",cancelText:A("SuiteAdminMP_Common_Cancel"),placeholderText:A("SuiteAdminMP_Common_SearchPlaceholder"),onClear:this.handleClear,onSearch:(0,b.default)(this.handleSearch,300),onFocus:function(){null===T&&D("")},onCancel:null!==T?this.handleCancle:null})),g.default.createElement(m.View,{className:"am-picker-container",style:{marginTop:f?(0,v.pxTransform)(N):0}},f&&null!==T&&g.default.createElement(O.default,{ouUserStore:o,onSelect:n,headHeight:N,footHeight:l,onClickMore:i}),g.default.createElement(M.default,{headHeight:N,style:{display:f&&null!==T?"none":""},footHeight:l,ouUserStore:o,onSelect:n,onExpand:a})))}}]),n}(g.Component);T.defaultProps={ouUserStore:S.initOuUserStore},d([y.action,p("design:type",Object)],T.prototype,"handleSearch",void 0),T=d([_.observer],T),t.default=T},324:function(e,t,n){"use strict";var r=n(45),a=n(58),i=n(93),o=n(4),c=n(50),u=n(43),s=n(51),l=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},d=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.OuStore=t.initialOuStore=void 0;var f=n(3),p=n(1),h=n(181),g=n(154);t.initialOuStore={initData:{},rootOu:null,currentOu:{},ouList:[],memberOffset:0,memberLimit:20,hasMore:!1,userHasMore:!1};var v=function e(n){var s=this;u(this,e),this.ouListLoading=!1,this.ouListMoreLoading=!1,this.init=c(o.mark((function e(){var t,n=arguments;return o.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:p.DEFAULT_DEPARTMENT_ID,e.abrupt("return",s.getOuStructure(t||p.DEFAULT_DEPARTMENT_ID,s.initData.value||[]));case 2:case"end":return e.stop()}}),e)}))),this.updateStore=function(e){for(var t in e){var n=t;s[n]=e[n]}},this.reset=function(){s.updateStore(t.initialOuStore)},this.setOuAndListInfo=function(e){var t=e.currentOu,n=e.ouList,r=e.hasMore,a=e.memberOffset,o=e.userHasMore;s.currentOu=t,s.ouList=i(n),s.hasMore=r,s.userHasMore=o,(r||void 0===r&&o)&&(s.memberOffset=a)},this.getOuStructure=c(o.mark((function e(){var t,n,i,c,u,l,d,v,m,_,y,b,E,M,O,I,S,P,T,D,A,N=arguments;return o.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=N.length>0&&void 0!==N[0]?N[0]:p.DEFAULT_DEPARTMENT_ID,n=N.length>1&&void 0!==N[1]?N[1]:[],i=!(N.length>2&&void 0!==N[2])||N[2],c=null,e.prev=4,s.ouListLoading=i,u=s.initData,l=u.needUser,d=u.getSubList,v=u.getOuInfo,m=0,e.next=10,Promise.all([d({parentID:t,memberOffset:m,memberLimit:s.memberLimit,subType:l?0:1}),v({ouId:t})]);case 10:_=e.sent,y=a(_,2),b=y[0],E=b.ous,M=void 0===E?[]:E,O=b.users,I=void 0===O?[]:O,S=b.pathNodes,P=void 0===S?[]:S,T=b.hasMore,D=b.userHasMore,A=y[1],c=A,(0,f.runInAction)((function(){s.ouListLoading=!1,t===p.DEFAULT_DEPARTMENT_ID&&(s.rootOu=r(r({},c),{},{type:g.NODE_TYPE_NEW.OU}));var e=(0,h.setOuInfo)(c,n),a=(0,h.getOuList)([],M,I,t,P,n),i=m+s.memberLimit;s.setOuAndListInfo({currentOu:e,ouList:a,hasMore:T,memberOffset:i,userHasMore:D})})),e.next=29;break;case 26:e.prev=26,e.t0=e["catch"](4),(0,f.runInAction)((function(){s.ouListLoading=!1}));case 29:return e.abrupt("return",c);case 30:case"end":return e.stop()}}),e,null,[[4,26]])}))),this.loadMore=c(o.mark((function e(){var t,n,r,a,i,c,u,l,d,p,g,v,m,_,y,b,E,M=arguments;return o.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=M.length>0&&void 0!==M[0]?M[0]:[],e.prev=1,s.ouListMoreLoading=!0,n=s.currentOu,r=s.memberOffset,a=s.memberLimit,i=s.initData,c=s.ouList,u=i.needUser,l=i.getSubList,d=s.currentOu.id,p=void 0===d?"":d,e.next=8,l({parentID:p,memberOffset:r,memberLimit:a,subType:u?0:1});case 8:g=e.sent,v=g.ous,m=g.users,_=g.pathNodes,y=void 0===_?[]:_,b=g.hasMore,E=g.userHasMore,(0,f.runInAction)((function(){var e=(0,h.getOuList)(c,v,m,p,y,t);s.ouListMoreLoading=!1,s.setOuAndListInfo({currentOu:n,ouList:e,hasMore:b,userHasMore:E,memberOffset:r+a})})),e.next=21;break;case 18:e.prev=18,e.t0=e["catch"](1),s.ouListMoreLoading=!1;case 21:case"end":return e.stop()}}),e,null,[[1,18]])}))),this.reset(),this.initData=n};l([f.observable,d("design:type",Object)],v.prototype,"rootOu",void 0),l([f.observable,d("design:type",Object)],v.prototype,"currentOu",void 0),l([f.observable,d("design:type",Array)],v.prototype,"ouList",void 0),l([f.observable,d("design:type",Number)],v.prototype,"memberOffset",void 0),l([f.observable,d("design:type",Number)],v.prototype,"memberLimit",void 0),l([f.observable,d("design:type",Boolean)],v.prototype,"hasMore",void 0),l([f.observable,d("design:type",Boolean)],v.prototype,"userHasMore",void 0),l([f.observable,d("design:type",Object)],v.prototype,"ouListLoading",void 0),l([f.observable,d("design:type",Object)],v.prototype,"ouListMoreLoading",void 0),l([f.action,d("design:type",Object)],v.prototype,"updateStore",void 0),l([f.action,d("design:type",Object)],v.prototype,"setOuAndListInfo",void 0),l([f.action,d("design:type",Object)],v.prototype,"getOuStructure",void 0),l([f.action,d("design:type",Object)],v.prototype,"loadMore",void 0),t.OuStore=v},325:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(43),o=n(51),c=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,c=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":o(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(c=(i<3?a(c):i>3?a(t,n,c):a(t,n))||c);return i>3&&c&&Object.defineProperty(t,n,c),c},u=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":o(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchStore=t.initialSearchStore=void 0;var s=n(3),l=n(1),d=n(181),f=n(154);t.initialSearchStore={search:null,searchOus:[],ouHasMore:!1,ouNextOffset:0,ouListLoading:!1,ouListMoreLoading:!1,searchUsers:[],userHasMore:!1,userNextOffset:0,userListLoading:!1,userListMoreLoading:!1,initData:{}};var p=function e(n){var o=this;i(this,e),this.isSearchMore=!1,this.preRes={},this.updateStore=function(e){for(var t in e){var n=t;o[n]=e[n]}},this.reset=function(){o.updateStore(t.initialSearchStore)},this.initWithSearch=a(r.mark((function e(){var t;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=o.initData.search,o.search=t||null,!o.search){e.next=6;break}return e.next=5,o.searchOuGroupUser({listSize:l.LIST_SIZE,isSearh:!0,checkedList:[]});case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)}))),this.setSearch=function(e){o.search=e,null===e&&o.resetSearchRes()},this.resetSearchRes=function(){o.searchUsers=[],o.userHasMore=!1,o.userNextOffset=0,o.searchOus=[],o.ouHasMore=!1,o.ouNextOffset=0},this.searchOuGroupUser=function(){var e=a(r.mark((function e(t){var n,a,i,c,u,p,h,g,v,m,_,y,b,E;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.listSize,a=void 0===n?l.LIST_SIZE:n,i=t.isSearh,c=void 0!==i&&i,u=t.checkedList,p=o.initData.getSearchData,h=o.search||"",g=o.searchType,v=g===f.SEARCH_TYPE_NEW.OU_USER||g===f.SEARCH_TYPE_NEW.USER,m=g===f.SEARCH_TYPE_NEW.OU_USER||g===f.SEARCH_TYPE_NEW.OU,o.userListLoading=c&&v,o.ouListLoading=c&&m,o.userListMoreLoading=!c&&v,o.ouListMoreLoading=!c&&m,_=g===f.SEARCH_TYPE_NEW.OU_USER?0:g===f.SEARCH_TYPE_NEW.USER?o.userNextOffset:o.ouNextOffset,e.prev=11,e.next=14,p({query:h,offset:_,count:a,searchType:g});case 14:y=e.sent,b=y.ouList,E=y.userList,(0,s.runInAction)("async searchDeptAndUser",(function(){if(o.ouListLoading=!1,o.ouListMoreLoading=!1,o.userListLoading=!1,o.userListMoreLoading=!1,o.search){if(b){var e=b.ous,t=void 0===e?[]:e;(0,d.addSearchOuListNodes)({checkedList:u,ous:t}),c?c&&(o.searchOus=t):o.searchOus=o.searchOus.concat(t),o.ouHasMore=b.hasMore,o.ouNextOffset=b.nextOffset}if(E){var n=E.users,r=void 0===n?[]:n;(0,d.addSearchOuListNodes)({checkedList:u,users:r}),c?c&&(o.searchUsers=r):o.searchUsers=o.searchUsers.concat(r),o.userHasMore=E.hasMore,o.userNextOffset=E.nextOffset}}else o.resetSearchRes()})),e.next=23;break;case 20:e.prev=20,e.t0=e["catch"](11),(0,s.runInAction)((function(){o.ouListLoading=!1,o.ouListMoreLoading=!1,o.userListLoading=!1,o.userListMoreLoading=!1}));case 23:case"end":return e.stop()}}),e,null,[[11,20]])})));return function(t){return e.apply(this,arguments)}}(),this.reset(),this.initData=n,this.searchType=n.searchType};c([s.observable,u("design:type",Object)],p.prototype,"search",void 0),c([s.observable,u("design:type",Number)],p.prototype,"searchType",void 0),c([s.observable,u("design:type",Object)],p.prototype,"isSearchMore",void 0),c([s.observable,u("design:type",Array)],p.prototype,"searchOus",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"ouHasMore",void 0),c([s.observable,u("design:type",Number)],p.prototype,"ouNextOffset",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"ouListLoading",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"ouListMoreLoading",void 0),c([s.observable,u("design:type",Array)],p.prototype,"searchUsers",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"userHasMore",void 0),c([s.observable,u("design:type",Number)],p.prototype,"userNextOffset",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"userListLoading",void 0),c([s.observable,u("design:type",Boolean)],p.prototype,"userListMoreLoading",void 0),c([s.action,u("design:type",Object)],p.prototype,"updateStore",void 0),c([s.action,u("design:type",Object)],p.prototype,"initWithSearch",void 0),c([s.action,u("design:type",Object)],p.prototype,"setSearch",void 0),c([(0,s.action)("resetSearch"),u("design:type",Object)],p.prototype,"resetSearchRes",void 0),c([s.action,u("design:type",Object)],p.prototype,"searchOuGroupUser",void 0),t.SearchStore=p},326:function(e,t,n){"use strict";var r=n(58),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(0)),s=n(18),l=c(n(38)),d=n(2),f=c(n(31)),p=n(1),h=n(100),g=c(n(101)),v=c(n(182)),m=c(n(327)),_=c(n(328)),y=c(n(329)),b=c(n(330));n(779);var E=function(e){var t=e.ouItem,n=e.needBottom,a=e.onSelect,i=e.onCheck,o=e.pickerType,c=e.isSearch,s=void 0!==c&&c,l=e.userCheck,E=void 0!==l&&l,M=e.ouCheck,O=void 0!==M&&M,I=e.tenantCheck,S=void 0!==I&&I,P=e.indentation,T=void 0!==P&&P,D=e.isRootOu,A=void 0!==D&&D,N=e.disabled,L=void 0!==N&&N,w=e.disabledTip,C=e.isDeleteDeptOrUser,j=t.id,x=t.type,R=t.name,k=t.avatar,U=t.visible,F=t.checked,V=t.hasChild,Y=t.pathNodes,z=void 0===Y?[]:Y,H=L||C&&C(j),G=(0,u.useState)(!1),B=r(G,2),W=B[0],Z=B[1],q=x===h.NODE_TYPE_NEW.USER&&E||x===h.NODE_TYPE_NEW.OU&&O&&(j!==p.DEFAULT_DEPARTMENT_ID||S),X=(0,h.isOuPicker)(o),Q=t.type===h.NODE_TYPE_NEW.OU&&!A&&!s&&!H&&(!X||!!V),K=s&&x===h.NODE_TYPE_NEW.USER,$=z&&z.length>0&&z[z.length-1].depName||"",J=function(e){var t=e.disabled,n=e.needCheck,r=e.needExpand,o=e.visible,c=e.ouItem;if(t)w&&"function"===typeof w&&w();else{if(n&&!r&&o)return void i(c);if(!r&&!s&&c.type===h.NODE_TYPE_NEW.OU)return;a(c)}},ee=function(e){var t=e.visible,n=e.disabled,r=e.ouItem;t&&!n&&i(r)},te=!U||H?F?_.default:y.default:F?m.default:b.default;return u.default.createElement(d.View,{className:(0,f.default)("am-picker-ou-item g-flexbox g-align-center",{disabled:!U||H,indentation:T,search:s,nocheck:!q}),hoverClass:"g-active",onClick:J.bind(null,{disabled:H,needCheck:q,needExpand:Q,visible:U,ouItem:t})},q&&u.default.createElement(d.View,{onClick:function(e){e.stopPropagation()}},u.default.createElement(d.View,{className:"am-picker-ou-item-check g-flex-center",onClick:ee.bind(null,{visible:U,disabled:H,ouItem:t})},u.default.createElement(d.Image,{className:"am-picker-ou-item-check-input",src:te}))),x===h.NODE_TYPE_NEW.USER&&u.default.createElement(d.View,{className:(0,f.default)("g-avatar am-picker-ou-item-avatar g-flex-center",{"am-picker-ou-item-avatar-search":s})},u.default.createElement(d.Image,{className:(0,f.default)("g-avatar-img am-picker-ou-item-avatar-img",{"with-background":!W,"am-picker-ou-item-avatar-search-img":s}),src:k||v.default,onLoad:function(){return Z(!0)}})),u.default.createElement(d.View,{className:(0,f.default)("am-picker-ou-item-content g-flexbox g-flex g-align-center",{"b-bottom-svg-1px":n})},x===h.NODE_TYPE_NEW.OU?u.default.createElement(d.View,{className:"am-picker-ou-item-ou g-flexbox g-flex g-align-center"},u.default.createElement(d.View,{className:"am-picker-ou-item-name g-ellipsis"},"".concat(R)),Q&&u.default.createElement(d.Image,{className:"am-picker-ou-item-expand",src:g.default})):u.default.createElement(d.View,{className:(0,f.default)("g-flex g-ellipsis am-picker-ou-item-name",{hasdes:K})},R,K&&u.default.createElement(d.View,{className:"g-ellipsis am-picker-ou-item-des"},$))))};E.defaultProps={ouItem:{},onClick:l.default},t.default=(0,s.observer)(E)},327:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiMzMzcwRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTE4IDBjOS45NDEgMCAxOCA4LjA1OSAxOCAxOHMtOC4wNTkgMTgtMTggMThTMCAyNy45NDEgMCAxOCA4LjA1OSAwIDE4IDB6bTguNTA4IDExLjg3OWMtLjM5LS4zOS0xLjAyMy0uMzktMS40MTQgMGwtOS4xOTQgOS4xOS00LjI0My00LjI0MmMtLjM5LS4zOS0xLjAyMy0uMzktMS40MTQgMEw4LjgzIDE4LjI0Yy0uMzkuMzktLjM5IDEuMDI0IDAgMS40MTRsNi4zNjQgNi4zNjRjLjM5LjM5IDEuMDI0LjM5IDEuNDE0IDBsMS40MTQtMS40MTQuMDIyLS4wMjIgOS44NzgtOS44NzguMDgzLS4wOTRjLjMwNS0uMzkyLjI3OC0uOTYtLjA4My0xLjMyeiIvPgo8L3N2Zz4K"},328:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiNjM2M2Y2IiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTE4IDBjOS45NDEgMCAxOCA4LjA1OSAxOCAxOHMtOC4wNTkgMTgtMTggMThTMCAyNy45NDEgMCAxOCA4LjA1OSAwIDE4IDB6bTguNTA4IDExLjg3OWMtLjM5LS4zOS0xLjAyMy0uMzktMS40MTQgMGwtOS4xOTQgOS4xOS00LjI0My00LjI0MmMtLjM5LS4zOS0xLjAyMy0uMzktMS40MTQgMEw4LjgzIDE4LjI0Yy0uMzkuMzktLjM5IDEuMDI0IDAgMS40MTRsNi4zNjQgNi4zNjRjLjM5LjM5IDEuMDI0LjM5IDEuNDE0IDBsMS40MTQtMS40MTQuMDIyLS4wMjIgOS44NzgtOS44NzguMDgzLS4wOTRjLjMwNS0uMzkyLjI3OC0uOTYtLjA4My0xLjMyeiIvPgo8L3N2Zz4K"},329:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiNlNGU1ZTciIGQ9Ik0xOCAzNmM5Ljk0MSAwIDE4LTguMDU5IDE4LTE4UzI3Ljk0MSAwIDE4IDAgMCA4LjA1OSAwIDE4czguMDU5IDE4IDE4IDE4em0wLTIuN0M5LjU1IDMzLjMgMi43IDI2LjQ1IDIuNyAxOCAyLjcgOS41NSA5LjU1IDIuNyAxOCAyLjdjOC40NSAwIDE1LjMgNi44NSAxNS4zIDE1LjMgMCA4LjQ1LTYuODUgMTUuMy0xNS4zIDE1LjN6Ii8+Cjwvc3ZnPgo="},330:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiNDM0M2Q0IiIGQ9Ik0xOCAzNmM5Ljk0MSAwIDE4LTguMDU5IDE4LTE4UzI3Ljk0MSAwIDE4IDAgMCA4LjA1OSAwIDE4czguMDU5IDE4IDE4IDE4em0wLTIuN0M5LjU1IDMzLjMgMi43IDI2LjQ1IDIuNyAxOCAyLjcgOS41NSA5LjU1IDIuNyAxOCAyLjdjOC40NSAwIDE1LjMgNi44NSAxNS4zIDE1LjMgMCA4LjQ1LTYuODUgMTUuMy0xNS4zIDE1LjN6Ii8+Cjwvc3ZnPgo="},331:function(e,t,n){"use strict";var r=n(93),a=n(45),i=n(43),o=n(49),c=n(80),u=n(81),s=n(51),l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),d=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),f=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return d(t,e),t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=p(n(0)),v=n(16),m=n(18),_=n(2),y=h(n(31)),b=h(n(102)),E=n(100),M=h(n(101)),O=h(n(326)),I=n(130),S=n(55),P=n(39),T=h(n(38));n(785);var D=function(e){c(n,e);var t=u(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),e.handleItemClick=function(t){e.props.onSelect(t)},e.handleItemCheck=function(t){var n=e.props.ouUserStore;n.updateCheckedList(t)},e.handleScrollToLower=function(){var t=e.props.ouUserStore,n=t.searchStore,r=t.checkedList,a=n.ouHasMore,i=n.ouListMoreLoading,o=n.userHasMore,c=n.searchOuGroupUser,u=n.userListMoreLoading,s=n.searchType;(s===E.SEARCH_TYPE_NEW.OU&&!i&&a||s===E.SEARCH_TYPE_NEW.USER&&!u&&o)&&c({checkedList:r})},e.handleClickMore=function(t,n){var r=e.props.onClickMore;r&&r(t,n)},e.renderSearchList=function(t,n){var r=e.props.ouUserStore,i=r.searchStore.initData,o=i.userCheck,c=i.ouCheck,u=i.tenantCheck,s=i.pickerType,l=i.disabledIds,d=void 0===l?[]:l,f=i.disabledTip;return n.map((function(n){var r=n.id,i=(0,b.default)(t,{id:r}),l=i?a(a({},n),i):a(a({},n),{},{checked:!1});return g.default.createElement(O.default,{key:r,ouItem:l,onSelect:e.handleItemClick,needBottom:!1,onCheck:e.handleItemCheck,isSearch:!0,userCheck:o,ouCheck:c,tenantCheck:u,pickerType:s,disabled:(0,E.getDisabled)(d,l),disabledTip:f})}))},e.renderMoreList=function(t,n,r,a,i){var o=P.comLangStore.getLocale,c=a.slice(0,3),u=a.length>3;return g.default.createElement(_.View,{className:"am-picker-search-list-mixed-container"},g.default.createElement(_.View,{className:"am-picker-search-list-mixed-top g-flexbox g-align-center"},g.default.createElement(_.View,{className:(0,y.default)("am-picker-search-list-mixed-icon",{mem:n===E.SEARCH_TYPE_NEW.USER,dept:n===E.SEARCH_TYPE_NEW.OU})}),g.default.createElement(_.Text,{className:"am-picker-search-list-mixed-title"},r)),e.renderSearchList(i,c),u&&g.default.createElement(_.View,{className:"am-picker-search-list-mixed-more b-top-svg-1px g-flex-between",onClick:e.handleClickMore.bind(null,n,t)},g.default.createElement(_.Text,{className:"am-picker-search-list-mixed-more-text"},o("SuiteAdminMP_Common_SeeMore")),g.default.createElement(_.Image,{className:"am-picker-search-list-mixed-icon",src:M.default})))},e.renderMixedList=function(t,n,r,a){var i=P.comLangStore.getLocale;return g.default.createElement(_.View,{className:"am-picker-search-list-mixed"},r.length>0&&e.renderMoreList(t,E.SEARCH_TYPE_NEW.USER,i("SuiteAdminMP_Common_Users"),r,a),n.length>0&&e.renderMoreList(t,E.SEARCH_TYPE_NEW.OU,i("SuiteAdminMP_Common_Depts"),n,a))},e}return o(n,[{key:"render",value:function(){var e=this.props,t=e.ouUserStore,n=e.footHeight,a=void 0===n?0:n,i=e.headHeight,o=void 0===i?0:i,c=t.checkedList,u=void 0===c?[]:c,s=t.searchStore,l=P.comLangStore.getLocale,d=s.search,f=s.searchOus,p=void 0===f?[]:f,h=s.ouListLoading,m=s.ouListMoreLoading,y=s.searchUsers,b=void 0===y?[]:y,M=s.userListLoading,O=s.userListMoreLoading,T=s.searchType,D=T===E.SEARCH_TYPE_NEW.OU_USER?[].concat(r(b),r(p)):T===E.SEARCH_TYPE_NEW.USER?b:p,A=D.length,N=T===E.SEARCH_TYPE_NEW.OU_USER&&(M||h)||T===E.SEARCH_TYPE_NEW.USER&&M||T===E.SEARCH_TYPE_NEW.OU&&h,L=T===E.SEARCH_TYPE_NEW.USER&&O||T===E.SEARCH_TYPE_NEW.OU&&m,w={height:"calc(100vh - ".concat((0,v.pxTransform)(a+o),")")};return g.default.createElement(S.AmSpin,{spinning:N,style:w},g.default.createElement(_.View,{className:"am-picker-search-list"},0===A?!N&&!!d&&g.default.createElement(_.View,{className:"am-picker-search-list-empty g-flexbox-column g-align-center g-flex"},g.default.createElement(_.View,{className:"am-picker-search-list-empty-image"}),g.default.createElement(_.Text,{className:"am-picker-search-list-empty-text"},l("SuiteAdminMP_Common_SearchEmpty"))):T===E.SEARCH_TYPE_NEW.OU_USER?this.renderMixedList(d,p,b,u):g.default.createElement(I.AmScrollView,{style:{height:"100%"},onScrollToLower:this.handleScrollToLower,moreLoading:L},this.renderSearchList(u,D))))}}]),n}(g.Component);D.defaultProps={ouUserStore:E.initOuUserStore,onSelect:T.default},D=f([m.observer],D),t.default=D},332:function(e,t,n){},333:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=n(2),o=n(3),c=r(n(31)),u=r(n(790)),s=r(n(38));function l(e){var t=e.list,n=void 0===t?[]:t,r=e.currentCheckedId,l=e.className,d=e.onDelete,f=void 0===d?s.default:d,p="checkitem";return a.default.createElement(i.ScrollView,{className:(0,c.default)("am-picker-checklist",l),scrollX:!0,scrollWithAnimation:!0,scrollIntoView:"".concat(p,"-").concat(r)},n.map((function(e){var t=e.id,n=e.name,r=e.visible,s="".concat(p,"-").concat(t);return a.default.createElement(i.View,{id:s,key:s,className:"am-picker-checklist-item",onClick:function(){return f((0,o.toJS)(e))}},a.default.createElement(i.Text,null,n),r&&a.default.createElement(i.Image,{className:(0,c.default)("am-picker-checklist-icon",{disabled:!r}),src:u.default}))})))}n(791),l.defaultProps={list:[],onDelete:s.default},t.default=l},334:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(80),o=n(81),c=n(51),u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),l=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":c(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return s(t,e),t},f=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":c(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=d(n(0)),g=n(16),v=n(2),m=n(3),_=n(18),y=p(n(54)),b=n(1),E=p(n(331)),M=n(100),O=n(82),I=n(39);n(332);var S=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),e=t.apply(this,arguments),e.handleSearch=function(t){var n=e.props.ouUserStore,r=n.searchStore,a=n.checkedList;r.resetSearchRes(),r.search=t,t&&r.searchOuGroupUser({listSize:b.LIST_SIZE,isSearh:!0,checkedList:a})},e.handleClear=function(){e.handleSearch("")},e}return a(n,[{key:"render",value:function(){var e=this.props,t=e.onSelect,n=e.ouUserStore,r=e.headHeight,a=void 0===r?0:r,i=e.footHeight,o=void 0===i?0:i,c=e.onCancel,u=n.searchStore,s=u.search,l=u.setSearch,d=I.comLangStore.getLocale;return h.default.createElement(v.View,{className:"am-picker g-flexbox-column",style:{paddingTop:(0,g.pxTransform)(a),height:"calc(100vh - ".concat((0,g.pxTransform)(o+a),")"),backgroundColor:"#fff"}},h.default.createElement(O.AmSearchInput,{initValue:s||"",cancelText:d("SuiteAdminMP_Common_Cancel"),placeholderText:d("SuiteAdminMP_Common_SearchPlaceholder"),onClear:this.handleClear,onSearch:(0,y.default)(this.handleSearch,300),onFocus:function(){null===s&&l("")},onCancel:function(){c&&"function"===typeof c?c():(l(null),b.$history.back())}}),h.default.createElement(v.View,{className:"am-picker-container g-flex"},h.default.createElement(E.default,{ouUserStore:n,onSelect:t,headHeight:a+I.SearchHeight,footHeight:o})))}}]),n}(h.Component);S.defaultProps={ouUserStore:M.initOuUserStore},l([m.action,f("design:type",Object)],S.prototype,"handleSearch",void 0),S=l([_.observer],S),t.default=S},335:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(58),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldExtra=t.executeQuery=t.isValuelessField=t.isOmitField=void 0;var c=n(16),u=o(n(94)),s=n(183);function l(e){return!e||!e.name||e.custom&&!(0,u.default)(e,"value")||[s.FIELD_TYPE.SECTION,s.FIELD_TYPE.TOP_TITLE,s.FIELD_TYPE.BOTTOM_DES].includes(e.type)}function d(e){return!e||!e.name||!(0,u.default)(e,"value")}function f(e,t,n){!Array.isArray(t)&&(t=[t]),t.forEach((function(t){(0,c.createSelectorQuery)().in(e).selectAll(t).boundingClientRect().exec((function(e){var t=i(e,1),r=t[0];r&&r.length&&r[0].width&&(r.forEach((function(e){var t=e||{},r=t.width;!n.includes(+r)&&n.push(+r)})),n.sort((function(e,t){return t-e})))}))}))}t.isOmitField=l,t.isValuelessField=d,t.executeQuery=f;var p=function(){function e(t){r(this,e);var n=t||{},a=n._value,i=n.noBorder,o=void 0!==i&&i,c=n.index,u=n.queue,s=n.ellipsisValue;this._value=a,this.noBorder=o,this.index=c,this.queue=u,this.ellipsisValue=s||function(){return""}}return a(e,[{key:"destroy",value:function(){this.field=null,this.queue=[],this._value="",this.ellipsisValue=null}},{key:"update",value:function(e){this.field=e;var t=this.field,n=t.type,r=t.noBorder,a=t.style,i=t.value,o=void 0===i?"":i,c=t.suffix,u="string"===typeof o&&!this._value;Object.assign(this,u&&{_value:this.ellipsisValue(o,+!!c)},{noBorder:this.index===this.queue.length-1||!!r}),[s.FIELD_TYPE.SECTION,s.FIELD_TYPE.TOP_TITLE,s.FIELD_TYPE.BOTTOM_DES].includes(n)&&this.index>0&&(!a||"none"!==a.display)&&(this.queue[this.index-1].noBorder=!0)}},{key:"shouldUpdateByStatus",value:function(e){var t=this.field||{},n=t.value,r=void 0===n?"":n,a=t.suffix,i=r;if("edit"===e){if(r===this._value)return!1}else{var o=this.ellipsisValue(r,+!!a);if(r===o)return!1;i=o}return this._value=i,!0}}]),e}();t.FieldExtra=p},336:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(43),o=n(49),c=n(80),u=n(81),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return l(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmActionModal=void 0;var p=d(n(0)),h=n(2),g=f(n(38)),v=f(n(31)),m=f(n(244)),_=n(246),y=n(39);n(808);var b=function(e){c(n,e);var t=u(n);function n(){var e;return i(this,n),e=t.apply(this,arguments),e.state={enterClose:!1},e.handleCloseAnimation=function(t){t&&t.stopPropagation(),e.setState({enterClose:!0})},e.handleClose=a(r.mark((function t(){var n,a,i,o,c;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state.enterClose,!n){t.next=11;break}if(a=e.props,i=a.onCancel,o=a.close,c=a.actionModalId,t.prev=3,t.t0=i,!t.t0){t.next=8;break}return t.next=8,i();case 8:return t.prev=8,o&&o(c),t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[3,,8,11]])}))),e.renderActionFooter=function(){var t=e.props.footer,n=void 0===t?p.default.createElement(h.View,null):t;return n},e}return o(n,[{key:"componentWillUnmount",value:function(){_.ActionModalManager.loading&&_.ActionModalManager.setLoading(!1),this.handleClose()}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props,n=t.visible,r=t.header,a=t.content,i=t.footer,o=t.className,c=t.maskClosable,u=t.maskStyle,s=this.state.enterClose;return p.default.createElement(h.View,{className:(0,v.default)("".concat(y.PREFIX,"-action-modal g-mask-container"),{visible:n})},p.default.createElement(m.default,{style:u,close:s,onClick:c?this.handleCloseAnimation:g.default}),p.default.createElement(h.View,{className:(0,v.default)("g-mask-content-action",{open:!s,close:s},o),onAnimationEnd:function(){_.ActionModalManager.loading&&_.ActionModalManager.setLoading(!1),e.handleClose()}},r,a,i))}}]),n}(p.Component);t.AmActionModal=b,b.defaultProps={visible:!1,title:"",onCancel:g.default,close:g.default,maskClosable:!1}},383:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmCopyToClipBoard=void 0;var a=n(747);Object.defineProperty(t,"AmCopyToClipBoard",{enumerable:!0,get:function(){return r(a).default}})},39:function(e,t,n){"use strict";var r=n(45),a=n(51),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.renderElementOrInstance=t.isForwardRef=t.measureTextWidth=t.comLangStore=t.ChecklistHeight=t.ItemHeight=t.BreadHeight=t.SearchHeight=t.ScopeHeight=t.PageBottomBlank=t.FootWrapHeight=t.FootHeight=t.PREFIX=void 0;var s=c(n(0)),l=n(1),d=u(n(31));t.PREFIX="am",t.FootHeight=44,t.FootWrapHeight=64,t.PageBottomBlank=4,t.ScopeHeight=109,t.SearchHeight=52,t.BreadHeight=36,t.ItemHeight=52,t.ChecklistHeight=60;var f=n(728);Object.defineProperty(t,"comLangStore",{enumerable:!0,get:function(){return f.comLangStore}});var p={};function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:14,r="".concat(t,"-").concat(n);if(p[r])return p[r];if(!e||!e.setFontSize||!e.measureText)return(0,l.logger)("warn","measureTextWidth error",e),t.length*n;e.setFontSize(n);var a=e.measureText(t).width;return p[r]=a,a}t.measureTextWidth=h;var g=Symbol.for("react.forward_ref"),v=function(e){var t=void 0;if("object"===a(e)&&null!==e){var n=e.$$typeof,r=e.type&&e.type.$$typeof;t=r===g?r:n}return t===g};function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;if("function"===typeof e||(0,t.isForwardRef)(e)){var a=e;return s.default.createElement(a,r({},n))}var i=e.props,o=i.style,c=i.className;return n?(0,s.cloneElement)(e,r(r({},n),{},{className:(0,d.default)(c,n.className),style:r(r({},o),n.style)})):e}t.isForwardRef=v,t.renderElementOrInstance=m},40:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(768),t)},42:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(318),t),a(n(744),t),a(n(245),t)},445:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(853),t)},452:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmAvatar=void 0;var a=n(860);Object.defineProperty(t,"AmAvatar",{enumerable:!0,get:function(){return r(a).default}})},511:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(512),t),a(n(513),t),a(n(514),t),a(n(515),t)},512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PERMISSION=void 0,function(e){e["COMPANY"]="-1",e["USER_DEPARTMENT"]="-2",e["CALENDAR"]="-3",e["APP_MANAGE"]="-4",e["APP_LIST"]="-6",e["SECURITY"]="-7",e["STATS"]="-8",e["ROLE"]="-9",e["BILLING"]="-10",e["VIDEO_CONFERENCE"]="-12",e["HELPDESK"]="-14",e["SLACK_IMPORT"]="-99",e["GROUP"]="-13",e["RESOURCE"]="-15",e["ADMIN_MANAGER"]="ADMIN_MANAGER",e["IS_SENIOR_ADMIN"]="IS_SENIOR_ADMIN",e["MULTI_OU"]="MULTI_OU",e["ENABLE_CERTICICATION"]="ENABLE_CERTICICATION",e["ENABLE_HELPCONTACT"]="ENABLE_HELPCONTACT",e["GUI_LOCK_ADD_USER"]="GUI_LOCK_ADD_USER",e["GUI_LOCK_UPDATE_USER"]="GUI_LOCK_UPDATE_USER",e["GUI_LOCK_EMPLOYEES_MOVE"]="GUI_LOCK_EMPLOYEES_MOVE",e["GUI_LOCK_EMPLOYEES_DEPART"]="GUI_LOCK_EMPLOYEES_DEPART",e["GUI_LOCK_ADD_DEPARTMENT"]="GUI_LOCK_ADD_DEPARTMENT",e["GUI_LOCK_UPDATE_DEPARTMENT"]="GUI_LOCK_UPDATE_DEPARTMENT",e["GUI_LOCK_DELETE_DEPARTMENT"]="GUI_LOCK_DELETE_DEPARTMENT",e["GUI_LOCK_SET_DEPARTMENT_LEADER"]="GUI_LOCK_SET_DEPARTMENT_LEADER",e["B2B"]="B2B",e["JOB_TITLE"]="JOB_TITLE",e["ADMIN_MINI_ADDPASSWORDVERIFY"]="ADMIN_MINI_ADDPASSWORDVERIFY",e["ADMIN_MINI_EDIT_RELATED_ACTION"]="ADMIN_MINI_EDIT_RELATED_ACTION",e["ADMIN_MINI_NEW_TRANSFER_API"]="ADMIN_MINI_NEW_TRANSFER_API",e["TRANSFER_RESOURECE_SURVEY"]="TRANSFER_RESOURECE_SURVEY",e["MULTI_DEPT_SUPERVISOR"]="MULTI_DEPT_SUPERVISOR",e["USER_RESURRECTION"]="USER_RESURRECTION",e["ADMIN_FUSION"]="ADMIN_FUSION",e["RELATED_ORGANIZATION_FG"]="RELATED_ORGANIZATION",e["RELATED_ORGANIZATION_LIST"]="Related_OrganizationList",e["RELATED_ORGANIZATION_GLOBAL_SETTING"]="Related_OrganizationGlobalSetting",e["RELATED_ORGANIZATION_APPLICATION"]="Related_OrganizationApplication",e["RELATED_ORGANIZATION_GROUP"]="RELATED_ORGANIZATION_GROUP",e["Static_companyInfoManage"]="Static_companyInfoManage",e["Static_companyAddrManage"]="Static_companyAddrManage"}(t.PERMISSION||(t.PERMISSION={}))},514:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeleteType=t.LimitType=t.VerifyStatus=t.CertificateStatus=void 0,function(e){e[e["UNCERTIFICATED"]=0]="UNCERTIFICATED",e[e["CERTIFICATED"]=1]="CERTIFICATED",e[e["EXPIRED"]=2]="EXPIRED",e[e["TEAM_CERTIFICATED"]=3]="TEAM_CERTIFICATED"}(t.CertificateStatus||(t.CertificateStatus={})),function(e){e[e["UNSUBMIT"]=0]="UNSUBMIT",e[e["SUBMITED"]=1]="SUBMITED",e[e["VERIFYSUCCESS"]=2]="VERIFYSUCCESS",e[e["VERIFYFAILED"]=3]="VERIFYFAILED"}(t.VerifyStatus||(t.VerifyStatus={})),function(e){e[e["UNLIMIT"]=0]="UNLIMIT",e[e["CERT_LIMIT"]=1]="CERT_LIMIT",e[e["PACKAGE_LIMIT"]=2]="PACKAGE_LIMIT"}(t.LimitType||(t.LimitType={})),function(e){e[e["Direct"]=1]="Direct",e[e["Timeout"]=2]="Timeout",e[e["None"]=3]="None"}(t.DeleteType||(t.DeleteType={}))},515:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminUserRole=void 0,t.AdminUserRole="2"},518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultRoutes=void 0;var r=function(e,t){return"pages/".concat(e[t],"/index")};t.defaultRoutes={index:"index",help:"help",noAuth:"no-auth",noLogin:"no-login",getFullUrl:function(e){return"/".concat(r(this,e))},getRoute:function(e){return r(this,e)}}},519:function(e,t,n){"use strict";var r=n(45),a=n(4),i=n(50),o=n(43),c=n(49),u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.amToast=void 0;var s=u(n(121)),l=n(144),d=u(n(525)),f=u(n(526)),p=n(143),h=18,g={success:d.default,error:f.default},v=function(){function e(t){o(this,e),this.visible=!1;var n=t||{},r=n.maxCount,a=n.during;this.maxCount=r||3,this.during=a||2100}return c(e,null,[{key:"create",value:function(t){return this.instance||(this.instance=new e(t)),this.instance}},{key:"show",value:function(){var e=i(a.mark((function e(t){var n,r,i,o,c,u,d,f,v,m=this;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if((0,s.default)(t)&&!this.instance.visible){e.next=2;break}return e.abrupt("return");case 2:if(this.instance.visible=!0,n=t.title,r=void 0===n?"":n,i=t.during,o=void 0===i?this.instance.during:i,c=t.icon,u=void 0===c?"none":c,d=t.onShow,f=g[u]||u,v=2*h+("none"!==f?-2:0),p.$currentPage.setData("__amToast__",{visible:!0,title:r,icon:f,isWrap:(0,l.getByteLength)(r)>v&&"none"===f}),this.instance.timer=setTimeout((function(){m.hide()}),o),e.t0=d,!e.t0){e.next=12;break}return e.next=12,d();case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"success",value:function(t,n,a){return e.show(r({title:t,during:n},Object.assign({},a,{icon:"success"})))}},{key:"error",value:function(t,n,a){return e.show(r({title:t,during:n},Object.assign({},a,{icon:"error"})))}},{key:"info",value:function(t,n,a){return e.show(r({title:t,during:n},Object.assign({},a,{icon:"none"})))}},{key:"hide",value:function(){var e=i(a.mark((function e(t){var n,r,i,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.instance.visible){e.next=2;break}return e.abrupt("return");case 2:if(this.instance.timer&&clearTimeout(this.instance.timer),n=t||{},r=n.isPre,i=void 0!==r&&r,o=n.onHide,i?p.$currentPage.setPreData("__amToast__",{visible:!1}):p.$currentPage.setData("__amToast__",{visible:!1}),this.instance.visible=!1,e.t0=o,!e.t0){e.next=10;break}return e.next=10,o();case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),e}();t.amToast=v},525:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICAgIDxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwIDEuNjY3YzEwLjEyNSAwIDE4LjMzMyA4LjIwOCAxOC4zMzMgMTguMzMzIDAgMTAuMTI1LTguMjA4IDE4LjMzMy0xOC4zMzMgMTguMzMzQzkuODc1IDM4LjMzMyAxLjY2NyAzMC4xMjUgMS42NjcgMjAgMS42NjcgOS44NzUgOS44NzUgMS42NjcgMjAgMS42Njd6TTIwIDVDMTEuNzE2IDUgNSAxMS43MTYgNSAyMGMwIDguMjg0IDYuNzE2IDE1IDE1IDE1IDguMjg0IDAgMTUtNi43MTYgMTUtMTUgMC04LjI4NC02LjcxNi0xNS0xNS0xNXptNy40OTUgOS4zNzJsMi4zNTcgMi4zNTctMTEuNzg1IDExLjc4NS03LjI4LTcuMjggMi4zNTctMi4zNTYgNC45MjIgNC45MjIgOS40MjktOS40Mjh6Ii8+Cjwvc3ZnPgo="},526:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwSDIwVjIwSDB6Ii8+CiAgICAgICAgPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTEwIDE3LjVjNC4xNDIgMCA3LjUtMy4zNTggNy41LTcuNSAwLTQuMTQyLTMuMzU4LTcuNS03LjUtNy41LTQuMTQyIDAtNy41IDMuMzU4LTcuNSA3LjUgMCA0LjE0MiAzLjM1OCA3LjUgNy41IDcuNXptMCAxLjY2N0M0LjkzNyAxOS4xNjcuODMzIDE1LjA2My44MzMgMTBTNC45MzcuODMzIDEwIC44MzMgMTkuMTY3IDQuOTM3IDE5LjE2NyAxMCAxNS4wNjMgMTkuMTY3IDEwIDE5LjE2N3pNMTAgOC44MmwyLjM1Ny0yLjM1NyAxLjE3OSAxLjE3OUwxMS4xNzkgMTBsMi4zNTcgMi4zNTctMS4xNzkgMS4xNzlMMTAgMTEuMTc5bC0yLjM1NyAyLjM1Ny0xLjE3OS0xLjE3OUw4LjgyMSAxMCA2LjQ2NCA3LjY0M2wxLjE3OS0xLjE3OUwxMCA4LjgyMXoiLz4KICAgIDwvZz4KPC9zdmc+Cg=="},527:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logger=void 0;var r=n(216),a=function(e){if(r.isDev){for(var t,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];(t=console)[e].apply(t,a)}};t.logger=a},528:function(e,t,n){"use strict";var r=n(58);Object.defineProperty(t,"__esModule",{value:!0}),t.AppName=t.getAppName=t.getFallbackLocale=t.getCurrentLang=t.DEFAULT_LANG=t.transformToApiLanguage=t.normalizeLanguage=t.LANGUAGE_MAP=void 0;var a,i=n(216),o=n(164);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("_"),n=r(t,2),i=n[0],o=n[1];return"zh"===i&&"cn"!==o.toLocaleLowerCase()&&(i=o),a[i.toLocaleLowerCase()]||a.en}function u(e){return e.toLowerCase().replace("-","_").toLocaleLowerCase()}function s(){var e=t.DEFAULT_LANG||(0,t.getFallbackLocale)();return e}(function(e){e["id"]="id-ID",e["in"]="id-ID",e["de"]="de-DE",e["en"]="en-US",e["es"]="es-ES",e["fr"]="fr-FR",e["it"]="it-IT",e["pt"]="pt-BR",e["vi"]="vi-VN",e["ru"]="ru-RU",e["hi"]="hi-IN",e["th"]="th-TH",e["ko"]="ko-KR",e["ja"]="ja-JP",e["zh"]="zh-CN",e["hk"]="zh-HK",e["tw"]="zh-TW"})(a=t.LANGUAGE_MAP||(t.LANGUAGE_MAP={})),t.normalizeLanguage=c,t.transformToApiLanguage=u,t.DEFAULT_LANG=c(o.SYS_INFO.language),t.getCurrentLang=s;var l=function(){return a.en};t.getFallbackLocale=l;var d=function(){return i.isOversea?"Lark":t.DEFAULT_LANG===a.zh?"\u98de\u4e66":"Feishu"};t.getAppName=d,t.AppName=(0,t.getAppName)()},529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shakify=void 0;var r=n(144),a={},i=Symbol("store-instance");function o(e){var t=Object.keys(e);return t.forEach((function(t){var n=e[t];c((0,r.firstToLowercase)(t),n,a)})),a}function c(e,t,n){Object.defineProperty(n,e,{get:function(){return"function"!==typeof t?t[i]=t:t[i]||(t[i]=new t),t[i]},set:function(){throw new Error("the ".concat(e," in root store is read only!"))}})}t.shakify=o},530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUrl=t.validateEmail=t.validateMobile=void 0;var r=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,a=new RegExp("^http://(?:www.|(?!www))[a-zA-Z0-9-]+.[^s]{2,}|^https://(?:www.|(?!www))[a-zA-Z0-9]+.[^s]{2,}|^sslocal://microapp(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(t=t.trim(),e){case"+86":if(11!==t.length||!t.startsWith("1"))return!1;break;default:}return!0}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.trim(),r.test(e.toLowerCase())}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.trim(),a.test(e)}t.validateMobile=i,t.validateEmail=o,t.validateUrl=c},531:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(51),o=this&&this.__decorate||function(e,t,n,r){var a,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(c=(o<3?a(c):o>3?a(t,n,c):a(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},c=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.cacheStore=t.CacheStore=t.PRELOAD_DATA=void 0;var u=n(3),s=n(99),l=n(112),d=n(143);t.PRELOAD_DATA="preloadData";var f=function(){function e(){var t=this;r(this,e),this.cacheData={},this.cachePage={},this.deleteDepts=[],this.deleteUsers=[],this.isDeleteDeptOrUser=function(e){return t.deleteDepts.indexOf(e)>=0||t.deleteUsers.indexOf(e)>=0},this.updateStore=function(e){for(var n in e){var r=n;t[r]=e[r]}},this.updateCacheData=function(e){var n=d.$currentPage.getPrePageCacheUrl();(0,l.logger)("info","updateCacheData",e,n,t.cacheData),e!==s.OPEN_TYPE.NAVIGATEBACK&&e!==s.OPEN_TYPE.REDIRECTTO||!t.cacheDataHas(n)||delete t.cacheData[n],e!==s.OPEN_TYPE.APPLAUNCH&&e!==s.OPEN_TYPE.RELAUNCH&&e!==s.OPEN_TYPE.AUTORELAUNCH||(t.cacheData={})},this.cacheDataSet=function(e,n){t.cacheData[e]=n},this.cacheDataGet=function(e,n){var r=t.cacheData[e];return n&&delete t.cacheData[e],r},this.cacheDataHas=function(e){return e in t.cacheData},this.cacheDataGetAll=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=Object.keys(t.cacheData).filter((function(t){return t.startsWith(e)}));return n.map((function(e){return t.cacheData[e]}))}}return a(e,[{key:"reset",value:function(){this.cacheData={},this.deleteDepts=[],this.deleteUsers=[]}},{key:"pageCacheData",get:function(){return this.cacheDataGet(d.$currentPage.getCacheUrl())||{}}}]),e}();o([u.observable,c("design:type",Array)],f.prototype,"deleteDepts",void 0),o([u.observable,c("design:type",Array)],f.prototype,"deleteUsers",void 0),o([u.action,c("design:type",Function),c("design:paramtypes",[]),c("design:returntype",void 0)],f.prototype,"reset",null),o([u.action,c("design:type",Object)],f.prototype,"updateStore",void 0),o([u.action,c("design:type",Object)],f.prototype,"updateCacheData",void 0),o([u.action,c("design:type",Object)],f.prototype,"cacheDataSet",void 0),t.CacheStore=f,t.cacheStore=new f},55:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(729),t),a(n(732),t)},569:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.actionFactory=t.createAction=t.isActionConfig=void 0;var a=n(3),i=n(223),o=n(145),c=r(n(38)),u=r(n(94)),s=r(n(54)),l=function(e){return(0,i.isNormalizeConfig)(e,{ambx:"any",name:"string",observe:"boolean",preload:["boolean","number"],autoCatch:"boolean",debounce:"number",context:"any",onError:"function",onComplete:"function"})};t.isActionConfig=l;var d=function(e,n,r){if(n&&!(0,t.isActionConfig)(n))throw new Error("ambx: invalid action config: ".concat(n,", bind fail"));var l=(0,o.getUid)();function d(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];var d,f=n||{},p=f.name,h=void 0===p?e.name?"ambx:".concat(e.name,"-effect"):"ambx:".concat(l,"-effect"):p,g=f.observe,v=f.autoCatch,m=void 0===v||v,_=f.onComplete,y=void 0===_?c.default:_,b=f.onError,E=void 0===b?c.default:b,M=f.context,O=M||r||this,I=(0,i.getAmbxInstance)(O,n);return I&&(0,u.default)(n,"observe")&&I.setConfig({observe:g}),d=(0,a.runInAction)(e.name?"ambx:".concat(e.name,"-exec"):"ambx:".concat(l,"-exec"),(function(){return e.apply(O,o)})),I?(d=d||{},d._config={name:h,args:o,autoCatch:m,onError:E,onComplete:y},I.load(d)):d}return(0,u.default)(n,"debounce")?(0,s.default)(d,n.debounce):d};t.createAction=d;var f=(0,i.createDecoratorForEnhancer)(t.createAction);function p(e,n,r){var a=arguments.length;return 1===a&&"function"===typeof e?(0,t.createAction)(e):2===a&&(0,t.isActionConfig)(n)?(0,t.createAction)(e,n):f(e,n,r)}t.actionFactory=p},576:function(e,t,n){"use strict";var r=n(4),a=n(50);Object.defineProperty(t,"__esModule",{value:!0}),t.WithSafeTrigger=void 0;var i=n(3),o=n(262),c=n(144);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.pipe;function t(){var e=this;this.triggered||(0,i.runInAction)((function(){return e.triggered=!0}))}return function(n){var c=n.prototype.componentWillUnmount;n.prototype.componentWillUnmount=a(r.mark((function n(){var a,i,u,s,l=arguments;return r.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(a=e(this),t.apply(a),o.events.off(a.trigger),i=l.length,u=new Array(i),s=0;s<i;s++)u[s]=l[s];if(n.t0=c,!n.t0){n.next=8;break}return n.next=8,c.apply(this,u);case 8:case"end":return n.stop()}}),n,this)})));var u=n.prototype.componentDidHide;n.prototype.componentDidHide=a(r.mark((function n(){var a,i,o,c,s=arguments;return r.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(a=e(this),t.apply(a),i=s.length,o=new Array(i),c=0;c<i;c++)o[c]=s[c];if(n.t0=u,!n.t0){n.next=7;break}return n.next=7,u.apply(this,o);case 7:case"end":return n.stop()}}),n,this)})));var s=n.prototype.componentDidShow;return n.prototype.componentDidShow=a(r.mark((function t(){var n,a,o,c,u=arguments;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(n=e(this),n.triggered&&(0,i.runInAction)((function(){return n.triggered=!1})),a=u.length,o=new Array(a),c=0;c<a;c++)o[c]=u[c];if(t.t0=s,!t.t0){t.next=7;break}return t.next=7,s.apply(this,o);case 7:case"end":return t.stop()}}),t,this)}))),n}}t.WithSafeTrigger=u},577:function(e,t,n){"use strict";var r=n(4),a=n(50),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.safeNav=t.useSafeNav=t.WithSafeNav=void 0;var o=n(0),c=n(166),u=n(273),s=i(n(54)),l=n(142);function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"WithNav";return function(t){var n=t.prototype.componentDidMount;return t.prototype.componentDidMount=a(r.mark((function t(){var a,i,o,c=this,u=arguments;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(Object.getOwnPropertyNames(this).filter((function(t){return t.endsWith(e)})).forEach((function(e){var t=c[e];c[e]=g(t,c)})),a=u.length,i=new Array(a),o=0;o<a;o++)i[o]=u[o];if(t.t0=n,!t.t0){t.next=6;break}return t.next=6,n.apply(this,i);case 6:case"end":return t.stop()}}),t,this)}))),t}}function f(e,t){return(0,o.useCallback)(g(e),t)}t.WithSafeNav=d,t.useSafeNav=f;var p=(0,u.createDecoratorForEnhancer)((function(e){return g(e)})),h=function(e,t,n){var r=arguments.length;return 1===r&&"function"===typeof e?g(e):p(e,t,n)};function g(e,t){var n=(0,s.default)(a(r.mark((function a(){var i,o,u,s=arguments;return r.wrap((function(r){while(1)switch(r.prev=r.next){case 0:for(r.prev=0,c.globalStore.globalEntering=n,i=s.length,o=new Array(i),u=0;u<i;u++)o[u]=s[u];return r.next=5,e.apply(t,o);case 5:r.next=10;break;case 7:r.prev=7,r.t0=r["catch"](0),console.log("global enter error",r.t0);case 10:case"end":return r.stop()}}),a,null,[[0,7]])}))),l.ENTER_WAIT_TIME,{leading:!0,trailing:!1});return n}t.safeNav=h},581:function(e,t,n){"use strict";var r=n(4),a=n(45),i=n(50);Object.defineProperty(t,"__esModule",{value:!0}),t.slardarActionEnd=t.slardarActionStart=t.slardarActionRecord=t.WithSlardarFirstPage=t.LIFE_CYCLE_MAP=t.slardarDecorator=void 0;var o,c=n(112),u=n(217),s=function(e,t){var n=e.key,o=e.tags,s=void 0===o?{}:o,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return i(r.mark((function e(){var i,o,d,f,p=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=Date.now(),o=0,d="success",e.prev=3,e.next=6,t.apply(void 0,p);case 6:f=e.sent,o=Date.now()-i,d=f?f.slardarMessage||"other":"success",(0,c.logger)("info","slardarDecorator normal",o,n,f,d,s),u.slardar.reportCustomEvent({name:n,metrics:{duration:o},categories:a(a({},s),{},{result:d,appName:c.isOversea?"Lark":"Feishu"})}),e.next=19;break;case 13:e.prev=13,e.t0=e["catch"](3),o=Date.now()-i,d=e.t0&&e.t0.slardarMessage||"other",(0,c.logger)("info","slardarDecorator catch",o,n,e.t0.slardarMessage,d,s),u.slardar.reportCustomEvent({name:n,metrics:{duration:o},categories:a(a({},s),{},{result:d,appName:c.isOversea?"Lark":"Feishu"})});case 19:if(!l||"success"===d){e.next=21;break}return e.abrupt("return",!0);case 21:case"end":return e.stop()}}),e,null,[[3,13]])})))};function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.WILLMOUNT;return function(n){if(n.isInited=!1,n.isSlardarReported=!1,e===o.WILLMOUNT){var a=n.prototype.componentWillMount;n.prototype.componentWillMount=i(r.mark((function e(){var t,i,o,c=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n.isInited=!0,n.isSlardarReported=!1,t=c.length,i=new Array(t),o=0;o<t;o++)i[o]=c[o];if(e.t0=a,!e.t0){e.next=7;break}return e.next=7,a.apply(this,i);case 7:case"end":return e.stop()}}),e,this)})))}if(e===o.DIDMOUNT){var u=n.prototype.componentDidMount;n.prototype.componentDidMount=i(r.mark((function e(){var t,a,i,o=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n.isInited=!0,n.isSlardarReported=!1,t=o.length,a=new Array(t),i=0;i<t;i++)a[i]=o[i];if(e.t0=u,!e.t0){e.next=7;break}return e.next=7,u.apply(this,a);case 7:case"end":return e.stop()}}),e,this)})))}var s=n.prototype.componentDidUpdate;n.prototype.componentDidUpdate=function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];s&&s.apply(this,r),n.isInited&&!n.isSlardarReported&&(n.isSlardarReported=!0,(0,t.slardarActionEnd)({key:c.$currentPage.getUrl()}))};var l=n.prototype.componentWillUnmount;return n.prototype.componentWillUnmount=i(r.mark((function e(){var t,a,i,o=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(n.isInited=!1,n.isSlardarReported=!1,t=o.length,a=new Array(t),i=0;i<t;i++)a[i]=o[i];l&&l.apply(this,a);case 4:case"end":return e.stop()}}),e,this)}))),n}}t.slardarDecorator=s,function(e){e["WILLMOUNT"]="willMount",e["DIDMOUNT"]="didMount"}(o=t.LIFE_CYCLE_MAP||(t.LIFE_CYCLE_MAP={})),t.WithSlardarFirstPage=l,t.slardarActionRecord={};var d=function(e){u.slardar.slardarPages.includes(e)&&(t.slardarActionRecord[e]=Date.now(),(0,c.logger)("info","slardarActionStart",e,t.slardarActionRecord[e]))};t.slardarActionStart=d;var f=function(e){var n=e.key,r=e.tags,i=void 0===r?{}:r;if(u.slardar.slardarPages.includes(n))try{if(t.slardarActionRecord[n]){var o=Date.now()-t.slardarActionRecord[n];(0,c.logger)("info","slardarActionEnd",o,n,i),u.slardar.reportCustomEvent({name:n,metrics:{duration:o},categories:a(a({},i),{},{appName:c.isOversea?"Lark":"Feishu"})})}else c.isDev&&(0,c.logger)("info","slardar\u4e0a\u62a5\uff0c\u9700\u8981\u5148\u8c03\u7528start")}catch(e){u.slardar.reportError(e,{resp:"key: ".concat(n,", slardar\u4e0a\u62a5\u5931\u8d25")})}};t.slardarActionEnd=f},582:function(e,t,n){"use strict";var r=n(73),a=n(45),i=n(43),o=n(49),c=this;Object.defineProperty(t,"__esModule",{value:!0}),t.recordFactory=t.createRecord=t.Recorder=t.isRecordConfig=void 0;var u=n(3),s=n(223),l=function(e){return(0,s.isNormalizeConfig)(e,{ambx:"any",prop:"string",context:"any",onReaction:"function"})};t.isRecordConfig=l;var d=Symbol("not-collect"),f={action:"",error:null,async:!1,endLoop:!1},p=function(){function e(t,n){var r=this;i(this,e),this.context=t,this.props=n,this.collect=function(){r.cache=r.props.map((function(e){return(0,u.toJS)(r.context[e])})),console.log("record collect",r.cache)},this.consume=(0,u.action)((function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];r.cache[0]!==d&&(e&&r.props.forEach((function(e,t){r.context[e]=r.cache[t]})),r.reset())})),this.reset()}return o(e,[{key:"reset",value:function(){this.cache=[d],this.config=f}},{key:"setConfig",value:function(e){this.config=a(a({},f),e)}},{key:"action",get:function(){return this.config.action}},{key:"error",get:function(){return this.config.error}},{key:"async",get:function(){return this.config.async}},{key:"endLoop",get:function(){return this.config.endLoop}}]),e}();t.Recorder=p;var h=function(e,n,a,i){if("function"===typeof e&&i)throw new Error("ambx: reaction decorator can not decorate method");if(!(0,t.isRecordConfig)(n))throw new Error("ambx: invalid record config: ".concat(n,", bind fail"));var o=n||{},l=o.props,d=o.onReaction,f=o.context,h=f||a||c,g=(0,s.getAmbxInstance)(h,n),v=new p(h,Array.isArray(l)?l:[l]),m=0;i&&(0,u.extendObservable)(h,r({},i,e));var _=(0,u.reaction)(i?function(){return h[i]}:e,(function(e,t){if(e&&!m)return m+=1,d.call(h,e,v,t);if(!e&&m){var n=function(n){v.setConfig(n),d.call(h,e,v,t),v.consume(!1),m=0};g?g.recordCallback=n:n({endLoop:!1})}}));return i?e:_};t.createRecord=h;var g=(0,s.createDecoratorForEnhancer)(t.createRecord);function v(e,n,r){var a=arguments.length;return 2===a&&(0,t.isRecordConfig)(n)?(0,t.createRecord)(e,n):g(e,n,r)}t.recordFactory=v},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},584:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(51),o=this&&this.__decorate||function(e,t,n,r){var a,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(c=(o<3?a(c):o>3?a(t,n,c):a(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},c=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":i(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useAmbxStore=t.AmbxStore=void 0;var s=n(3),l=n(0),d=u(n(187)),f=n(167),p=function(){function e(t){var n=this;r(this,e),this.ambxs={},this.initAmbxStore=function(e){n.ambxs={},e.forEach((function(e){var t=e.key,r=e.config,a=void 0===r?{}:r;n.ambxs[t]=new f.Ambx(n,a)}))},this.getAmbx=function(e){return n.ambxs[e]},this.getLoading=function(e){return n.ambxs[e]&&n.ambxs[e].loading},this.bind=function(e,t){return n.ambxs[e]?n.ambxs[e].bind(t):(console.log("\u6ca1\u6709\u627e\u5230\u8be5key\u5bf9\u5e94\u7684ambx"),t)},this.initAmbxStore(t)}return a(e,[{key:"ambxLoading",get:function(){var e=this,t={};return Object.keys(this.ambxs).forEach((function(n){t[n]=e.getLoading(n)})),t}}]),e}();o([s.computed,c("design:type",Object),c("design:paramtypes",[])],p.prototype,"ambxLoading",null),o([s.action,c("design:type",Object)],p.prototype,"initAmbxStore",void 0),t.AmbxStore=p;var h=function(e){var t=(0,l.useMemo)((function(){var t=e.map((function(e){return(0,d.default)(e,"key","config")})),n=(0,s.observable)(new p(t)),r={};return e.forEach((function(e){var t=e.key,a=e.fn,i=n.bind(t,a);r[t]=i})),{ambxStore:n,ambxLoadingfns:r}}),[]),n=t.ambxStore,r=t.ambxLoadingfns;return{loadings:n.ambxLoading,loadingfns:r}};t.useAmbxStore=h},593:function(e,t,n){"use strict";var r=n(58),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatCountdown=t.formatTime=t.genDateValue=t.today=void 0;var i=a(n(83));function o(e){var n=(e||t.today).split("-"),a=r(n,3),i=a[0],o=a[1],c=a[2];return[+i-1901,+o-1,+c-1]}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD";return e?(0,i.default)(1e3*e).format(t):""}t.today=(0,i.default)().format("YYYY-MM-DD"),t.genDateValue=o,t.formatTime=c;var u=[60,60,24,1/0];function s(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=[0,0,0,0],r=0;r<t-1;r++)n[r]=e%u[r],e=Math.floor(e/u[r]);n[t-1]=e;while(n.length){var a=n[n.length-1];if(!(a<=0))break;n.pop()}return n.length||n.push(0),n.filter((function(e){return!!e})).reverse().join(":")}t.formatCountdown=s},594:function(e,t,n){"use strict";var r=n(126),a=n(93),i=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.reportEvent=t.slardar=t._miniApp=t.setReportAPI=void 0;var o=n(112),c={events:[],customEvents:[],errors:[]},u={reportEvent:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c.events.push(t)},reportCustomEvent:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c.customEvents.push(t)},reportError:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];c.errors.push(t)},slardarPages:[]};function s(e){var t;u=i(i(i({},u),e),{},{slardarPages:(null!==(t=e.slardarPages)&&void 0!==t?t:[]).map((function(e){return o.defaultRoutes.getFullUrl(e)}))}),c.events.forEach((function(t){return e.reportEvent.apply(e,a(t))})),c.customEvents.forEach((function(t){return e.reportCustomEvent.apply(e,a(t))})),c.errors.forEach((function(t){return e.reportError.apply(e,a(t))})),c.events=[],c.customEvents=[],c.errors=[]}t.setReportAPI=s,t._miniApp={},t.slardar={reportError:u.reportError,reportCustomEvent:u.reportCustomEvent,slardarPages:[]};var l=function(e,n){var i=n||{},o=i._type,c=void 0===o?"view":o,s=r(i,["_type"]);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{u.reportEvent(e,t)}catch(e){console.error("reportEvent failed",e)}}var d="madmin",f=[d,e,c].join("_"),p=e.startsWith(d)?e:f;if(l(p,s),t.reportEvent.prev){var h="string"===typeof t.reportEvent.prev?[t.reportEvent.prev]:t.reportEvent.prev;l.apply(void 0,a(h)),t.reportEvent.prev=null}};t.reportEvent=l},596:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(45),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectPreloadApis=t.$history=t.updateHistory=void 0;var s=n(16),l=u(n(187)),d=n(597),f=n(99),p=n(164),h=n(144),g=n(166),v=u(n(38));c(n(99),t);var m={go:function(){var e=this[f.HISTORY_CONFIG],t=e.url,n=e.params;return(0,s.navigateTo)(i({url:t},(0,l.default)(n,"success","fail","complete")))},back:function(){var e=this[f.HISTORY_CONFIG],t=e.url,n=e.params;return(0,s.navigateBack)(i({delta:t},(0,l.default)(n,"success","fail","complete")))},replace:function(){var e=this[f.HISTORY_CONFIG],t=e.url,n=e.params;return(0,s.redirectTo)(i({url:t},(0,l.default)(n,"success","fail","complete")))},reload:function(){var e=this[f.HISTORY_CONFIG],t=e.url,n=e.params;return(0,s.reLaunch)(i({url:t},(0,l.default)(n,"success","fail","complete")))},openSchema:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t){var n=this,i=t.ios,o=t.android;if(!(p.isIOS&&(0,h.compareVersion)(p.SYS_APP_VERSION,i)||!p.isIOS&&(0,h.compareVersion)(p.SYS_APP_VERSION,o)))return"function"===typeof e.fail&&e.fail({msg:"version error"}),"function"===typeof e.complete&&e.complete({msg:"version error"}),!0;var c=e.complete,u=void 0===c?v.default:c;e.complete=a(r.mark((function e(){var t,a,i,o=arguments;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(g.globalStore.globalReset(),t=o.length,a=new Array(t),i=0;i<t;i++)a[i]=o[i];return e.next=4,u.apply(n,a);case 4:case"end":return e.stop()}}),e)}))),g.globalStore.updateStore({isEnterNativePage:!0}),tt.openSchema(e)}else g.globalStore.updateStore({isEnterNativePage:!0}),tt.openSchema(e)}};function _(e){g.globalStore.globalReset(),(0,d.updatePreload)(e),(0,d.updateSequence)(e),(0,d.updateWaiter)(e)}t.updateHistory=_;var y=(0,h.compose)(d.waiter,d.sequence,d.preload,d.config)(m);t.$history=(0,d.binder)(y);var b=function(e){t.$history[f.HISTORY_PRELOAD]=e};t.injectPreloadApis=b},597:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(598),t),a(n(627),t),a(n(628),t),a(n(629),t),a(n(630),t)},598:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(126),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;var c=n(143),u=n(99),s=n(166),l=n(112),d=o(n(38)),f=o(n(127));function p(e){return/^\/pages\/.*?\/index/.test(e)?e:"/pages/".concat(e,"/index")}function h(e){var t=e.slardarActionStart||d.default;return e.genPatchConfig=function(e,n,r){var a=c.$currentPage.getUrl(null,!1),o=r||{},s=o.query,l=o.safeBack,d=i(o,["query","safeBack"]);s=s||{};var h="",g="",v="";switch(l=l&&e===u.NAV_TYPE.BACK,e){case u.NAV_TYPE.BACK:h=null==n?1:+n;var m=c.$currentPage.getPrePage(+h);g=c.$currentPage.getUrl(m),v=c.$currentPage.getUrlWithArgs(m),l=l&&h>=c.$currentPage.getPagesLength();break;case u.NAV_TYPE.RELOAD:n=p(!0===n?c.$currentPage.getUrl():n),g=n,v=h=(0,u.concatQuery)(n,s);break;default:n=p(n),t(n),g=n,v=h=(0,u.concatQuery)(n,s)}return g.includes("pages/help/index")&&(d=(0,f.default)(d,"success","fail","complete")),{type:e,url:h,page:g,pageWithArgs:v,query:s,curPage:a,safeBack:l,params:d}},Object.values(u.NAV_TYPE).forEach((function(t){var n=e[t];e[t]=a(r.mark((function i(){var o,c,f,p,h,g,v,m,_,y,b=arguments;return r.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(i.prev=0,o=b.length,c=new Array(o),f=0;f<o;f++)c[f]=b[f];return p=c[0],h=c[1],g=e.genPatchConfig(t,p,h),v=g.params.complete,m=void 0===v?d.default:v,_=g.curPage,y=g.safeBack,y&&setTimeout((function(){e.replace(l.defaultRoutes.index)}),100),g.params.complete=a(r.mark((function t(){var n,a,i,o=arguments;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(s.globalStore.globalReset({curPage:_}),n=o.length,a=new Array(n),i=0;i<n;i++)a[i]=o[i];return t.next=4,m.apply(e,a);case 4:e[u.HISTORY_CONFIG]={};case 5:case"end":return t.stop()}}),t)}))),e[u.HISTORY_CONFIG]=g,i.next=10,n.apply(e,c);case 10:return i.abrupt("return",i.sent);case 13:i.prev=13,i.t0=i["catch"](0),console.error("history catch",i.t0);case 16:case"end":return i.stop()}}),i,null,[[0,13]])})))})),e}t.config=h},627:function(e,t,n){"use strict";var r=n(45),a=n(126);Object.defineProperty(t,"__esModule",{value:!0}),t.updatePreload=t.preload=void 0;var i=n(217),o=n(112),c=n(99);function u(e){return[c.NAV_TYPE.GO,c.NAV_TYPE.REPLACE].forEach((function(t){var n=e[t];e[t]=function(){var t=e[c.HISTORY_CONFIG],u=t.page,s=t.params,l=t.query,d=e[c.HISTORY_PRELOAD]||{},f=s.preload,p=s.preloadParams,h=a(s,["preload","preloadParams"]);(d[u]||[]).forEach((function(e){var t=Date.now(),n=e(r(r(r(r({},l),h),p),{},{preload:f||{}})),a=n,o=a.url;n=n.then((function(e){return i.slardar.reportCustomEvent({name:"PreloadApi",metrics:{duration:Date.now()-t},categories:{url:n.url}}),e})),n.report=!1,i.cacheStore.cacheDataSet(c.PRELOAD+o,n)})),f&&i.cacheStore.cacheDataSet("".concat(u,"-").concat(o.$currentPage.getPagesLength()),f);for(var g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return n.apply(e,v)}})),e}function s(e){i.cacheStore.updateCacheData(e)}t.preload=u,t.updatePreload=s},628:function(e,t,n){"use strict";var r=n(126),a=n(45);Object.defineProperty(t,"__esModule",{value:!0}),t.updateSequence=t.sequence=void 0;var i=n(99),o={index:-1,data:null,seq:[],walked:!1},c=a({},o);function u(e){return e.sequence=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"next"!==t[0]&&Object.assign(c,{seq:t,index:0});var a=c.seq[c.index];if(a){var o="function"===typeof a?a(c.data):a,u=o.type,s=void 0===u?i.NAV_TYPE.GO:u,l=o.url,d=r(o,["type","url"]);this[s](l,d)}},e.next=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;c.data=e,this.sequence("next")},e}function s(e){var t=(0,i.getNavType)(e),n=c,r=n.index,u=n.seq;if(~r)switch(t){case i.NAV_TYPE.GO:c.index+=1;break;case i.NAV_TYPE.BACK:r?Object.assign(c,{index:r-1,data:null}):c=a({},o);break;case i.NAV_TYPE.REPLACE:r?(u.splice(r-1,1),Object.assign(c,{seq:u,index:r-1})):c.index+=1;break;case i.NAV_TYPE.RELOAD:r?Object.assign(c,{index:0,seq:[u[r]]}):c.index+=1;break}}t.sequence=u,t.updateSequence=s},629:function(e,t,n){"use strict";var r=n(4),a=n(50),i=n(45),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateWaiter=t.waiter=void 0;var c=o(n(94)),u=n(143),s=n(99),l={timer:null,type:null,cancelable:!0,nextUrl:""},d={time:1e3,cancelable:!0},f=i({},l);function p(e){return Object.values(s.NAV_TYPE).forEach((function(t){var n=e[t];e[t]=function(){for(var o=arguments.length,p=new Array(o),h=0;h<o;h++)p[h]=arguments[h];var g=e[s.HISTORY_CONFIG],v=g.page,m=g.params;if(!(0,c.default)(m,"wait"))return n.apply(e,p);var _=m.wait,y=!0===_?d:"number"===typeof _?i(i({},d),{},{time:_}):_,b=y.time,E=y.cancelable;Object.assign(f,{timer:setTimeout(a(r.mark((function t(){var a,o,c;return r.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a=f,o=a.timer,c=a.nextUrl,o&&clearTimeout(o),f=i({},l),u.$currentPage.getUrl()!==c){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,n.apply(e,p);case 7:case"end":return t.stop()}}),t)}))),b),type:t,cancelable:E,nextUrl:v})}})),e}function h(e){if(f.type===(0,s.getNavType)(e)){var t=f,n=t.timer,r=t.cancelable;r&&n&&(clearTimeout(n),f=i({},l))}}t.waiter=p,t.updateWaiter=h},630:function(e,t,n){"use strict";var r=n(93);Object.defineProperty(t,"__esModule",{value:!0}),t.binder=void 0;var a=n(99);function i(e){return[].concat(r(Object.values(a.NAV_TYPE)),["openSchema","sequence","next"]).forEach((function(t){var n=e[t];"function"===typeof n&&(e[t]=n.bind(e))})),e}t.binder=i},631:function(e,t,n){"use strict";var r=n(58);Object.defineProperty(t,"__esModule",{value:!0}),t.useUnmount=t.useForceUpdate=void 0;var a=n(0);function i(){var e=(0,a.useState)(0),t=r(e,2),n=t[1];return(0,a.useCallback)((function(){return n((function(e){return e+1}))}),[])}function o(e){(0,a.useEffect)((function(){return e}),[])}t.useForceUpdate=i,t.useUnmount=o},632:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(633),t),a(n(653),t),a(n(654),t),a(n(655),t)},633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userApi=t.TENANT_TAG=t.USER_TAG=void 0;var r=n(129),a=n(153);(function(e){e[e["STANDARD"]=0]="STANDARD",e[e["UNDEFINED"]=1]="UNDEFINED",e[e["SIMPLE"]=2]="SIMPLE"})(t.USER_TAG||(t.USER_TAG={})),function(e){e["TenantTag_STANDARD"]="TenantTag_STANDARD",e["TenantTag_UNDEFINED"]="TenantTag_UNDEFINED",e["TenantTag_SIMPLE"]="TenantTag_SIMPLE"}(t.TENANT_TAG||(t.TENANT_TAG={}));var i={login:{method:r.METHOD_TYPE.GET,url:"/login",isLogin:!0},userBaseInfo:{method:r.METHOD_TYPE.GET,url:"/userBaseInfo/"}};t.userApi=(0,a.generateModuleApi)(i)},653:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userPermApi=void 0;var r=n(129),a=n(153),i={getUserPermission:{method:r.METHOD_TYPE.GET,url:"/employees/permissions/"},getSwitchSetting:{method:r.METHOD_TYPE.GET,url:"/settings/switch/"}};t.userPermApi=(0,a.generateModuleApi)(i)},654:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tenantApi=void 0;var r=n(129),a=n(153),i={getTenantInfo:{method:r.METHOD_TYPE.GET,url:"/tenant/"},postTenantInfo:{method:r.METHOD_TYPE.POST,url:"/tenant/"},getTenantBaseInfo:{method:r.METHOD_TYPE.GET,url:"/tenantBaseInfo/"},postTenantDelete:{method:r.METHOD_TYPE.POST,url:"/tenant/delete"},getHomeInfo:{method:r.METHOD_TYPE.GET,url:"/homeEntrance/card"},getTenantDeleteType:{method:r.METHOD_TYPE.GET,url:"/tenant/deleteType"},getPackageLimitedInfo:{method:r.METHOD_TYPE.GET,url:"/license/next"},getPendingProposalCount:{method:r.METHOD_TYPE.GET,url:"/collaboration/pendingProposalCount"}};t.tenantApi=(0,a.generateModuleApi)(i)},655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contactModuleApi=t.PERM_RESOURCE=void 0;var r=n(153),a=n(129);(function(e){e["DEPT"]="department",e["ROLE"]="role",e["APPLICATION"]="application",e["TENANTS_LISTS"]="cTenantsLists",e["TENANTS_CONFIGURATION"]="cTenantsConfiguration",e["APP_CONNENT"]="appConnect"})(t.PERM_RESOURCE||(t.PERM_RESOURCE={}));var i={getOuInfo:{method:a.METHOD_TYPE.GET,url:"/contact/search/ouInfo"},getSubListFilterByUser:{method:a.METHOD_TYPE.GET,url:"/contact/search/subListFilterByUserByApp"},searchForSelect:{method:a.METHOD_TYPE.GET,url:"/contact/search/searchForSelect",latest:!0},getAllPathsByUserId:{method:a.METHOD_TYPE.POST,url:"/contact/search/getAllPathsByUserId"},getEmployeeTypeEnums:{method:a.METHOD_TYPE.GET,url:"/contact/enum/"},getAllSettings:{method:a.METHOD_TYPE.GET,url:"/contact/fields/info"}};t.contactModuleApi=(0,r.generateModuleApi)(i)},656:function(e,t,n){"use strict";(function(e){var r=n(58),a=n(43),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.injectRequest=t.interceptors=t.loginErrorHandler=t.specialCodes=t.GenericErrorRiskControl=t.GenericErrCodeMermberIDDuplicate=t.GenericErrCode86MobileAndEmailTogetherExist=t.GenericErrCodeFeiShuMobileOnlySupport86=t.GenericErrCodeLarkMobileNotSupport86=t.ErrMemberTypeDeleted=t.ErrExceedMaxTenantDeptLevelLimit=t.ErrExceedMaxTenantDeptLimit=t.ErrRepeatDeptName=t.ErrRepeatDeptNameEditParentDept=void 0;var o=n(16),c=n(1),u=n(657);t.ErrRepeatDeptNameEditParentDept=20076,t.ErrRepeatDeptName=20600,t.ErrExceedMaxTenantDeptLimit=20131,t.ErrExceedMaxTenantDeptLevelLimit=20132,t.ErrMemberTypeDeleted=20800,t.GenericErrCodeLarkMobileNotSupport86=21500,t.GenericErrCodeFeiShuMobileOnlySupport86=21501,t.GenericErrCode86MobileAndEmailTogetherExist=21502,t.GenericErrCodeMermberIDDuplicate=20319,t.GenericErrorRiskControl=12003,t.specialCodes=[t.ErrRepeatDeptNameEditParentDept,t.ErrRepeatDeptName,t.ErrExceedMaxTenantDeptLimit,t.ErrExceedMaxTenantDeptLevelLimit,t.ErrMemberTypeDeleted,t.GenericErrCodeLarkMobileNotSupport86,t.GenericErrCodeFeiShuMobileOnlySupport86,t.GenericErrCode86MobileAndEmailTogetherExist,t.GenericErrCodeMermberIDDuplicate,t.GenericErrorRiskControl];var s={msgNetworkError:"Network error",msgNetworkTimeout:"Network timeout"},l={},d=function(){function e(){var n=this;a(this,e),this.headerInterceptor=function(e){var t=e.requestParams;return Object.entries(l).forEach((function(e){var n=r(e,2),a=n[0],i=n[1],o="function"===typeof i?i():i;o&&(t.header[a]=o)})),e.proceed(t)},this.loginInterceptor=function(e){var n=e.requestParams;return e.proceed(n).then((function(e){var r=(0,t.loginErrorHandler)(e,n);return r instanceof Error?Promise.reject(r):r}))},this.customErrorInterceptor=function(e){var n=e.requestParams,r=n||{},a=r.customErrorNotify;return e.proceed(n).then((function(e){var r=e||{},i=r.data,o=s,c=o.msgNetworkError,u=i||{},l=u.code,d=u.message,f=void 0===d?c:d;if(void 0!==l&&0!==l){var p=new Error;return p.request=n,p.response=e,t.specialCodes.includes(l)&&"function"===typeof a?(p.report=!1,a(n||{},e||{}),p._message="custom notify: ".concat(f)):p.message=f,Promise.reject(p)}return e}))},this.errorInterceptor=function(e){var t=e.requestParams,n=t||{},r=n.errorNotify,a=n.errorNotifys,i=n.customErrorNotify;return e.proceed(t).then((function(e){var n=e||{},o=n.statusCode,c=n.data,l=void 0===c?{}:c;if(o>=200&&o<300)return e;var d=new Error;if(d.request=t,d.response=e,"function"===typeof i)return d.report=!1,i(t||{},e||{}),d._message="custom notify: ".concat(l.message),Promise.reject(d);u.getNotifyString.config(t||{},e||{});var f=s,p=f.msgNetworkError,h=p;if(l.message)h=l.message;else if(a){var g=a[o]||a[l.code];h=(0,u.getNotifyString)(g)}else r&&(h=(0,u.getNotifyString)(r));return d[!1!==r?"message":"_message"]=h,Promise.reject(d)}))},this.returnInterceptor=function(e){var t=e.requestParams,n=t||{},r=n.successNotify;return e.proceed(t).then((function(e){var n=e||{},a=n.data,i=a||{},o=i.code,s=i.data,l=i.message;if(r){u.getNotifyString.config(t||{},e||{});var d=(0,u.getNotifyString)(r,l);d&&c.amToast.success(d)}return void 0!=o?s:a}))},this.timeoutInterceptor=function(e){var t,n=e.requestParams,r=new Promise((function(r,a){var i=setTimeout((function(){i=null,"function"===typeof t.abort&&t.abort();var e=new Error;e.response={statusCode:0};var r=s,o=r.msgNetworkTimeout;e.message=o,e._message="timeout, abort ".concat(n.originalUrl),a(e)}),n.timeout);t=e.proceed(n),t.then((function(e){i&&(clearTimeout(i),r(e))})).catch((function(e){i&&clearTimeout(i),a(e)}))}));return"function"===typeof t.abort&&(r.abort=t.abort),r},this.urlInProcess=new Map,this.latestInterceptor=function(e){var t,r=e.requestParams,a=r.latest,i=void 0!==a&&a,o=r.originalUrl,c=new Promise((function(a,c){if(delete r.latest,t=e.proceed(r),i){var u=n.urlInProcess.get(o);"function"===typeof u&&u(),n.urlInProcess.set(o,t.abort)}t.then((function(e){i&&n.urlInProcess.delete(o),a(e)})).catch((function(e){i&&n.urlInProcess.delete(o),c(e)}))}));return"function"===typeof t.abort&&(c.abort=t.abort),c},this.initInterceptors()}return i(e,[{key:"initInterceptors",value:function(){(0,o.addInterceptor)(this.returnInterceptor),(0,o.addInterceptor)(this.customErrorInterceptor),(0,o.addInterceptor)(this.errorInterceptor),(0,o.addInterceptor)(this.loginInterceptor),(0,o.addInterceptor)(this.timeoutInterceptor),(0,o.addInterceptor)(this.latestInterceptor),(0,o.addInterceptor)(this.headerInterceptor)}}]),e}(),f=function(t,n){var r=t||{},a=r.statusCode,i=r.data,o=s,u=o.msgNetworkError,l=i||{},d=l.code,f=l.message,p=void 0===f?u:f,h=new Error,g="";try{g=String(a)}catch(e){}if(400===a&&d>=99991600&&d<=99991699)h._errorHandler="reLogin",c.slardar.reportCustomEvent({name:"InterceptorNoCookie",metrics:{count:1},categories:{statusCode:g,eventName:"InterceptorNoCookie",handler:"reLogin",cookieLength:"0"}});else if(401===a)10002===d?h._errorHandler="reLogin":10003===d&&(h._errorHandler="reLoad");else{if(403!==a)return 200===a&&20876===d?(c.amToast.error(e("SuiteAdminMP_Member_Error_HaveYouTriedTurningItOffAndOnAgain")),t):t;h._errorHandler="noAuth"}return h._errorHandler&&setTimeout((function(){c.globalStore.initWithCheck({handler:h._errorHandler})}),10),h.request=n,h.response=t,h.message=p,h};t.loginErrorHandler=f,t.interceptors=new d;var p=function(e,t){s=e,Object.assign(l,t||{})};t.injectRequest=p}).call(this,n(30)["default"])},657:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifyString=void 0;var r=function(e,n){return!0===e?n||"ok":("function"===typeof e?e(t.getNotifyString.request,t.getNotifyString.response):e)+""};t.getNotifyString=r,t.getNotifyString.config=function(e,n){t.getNotifyString.request=e,t.getNotifyString.response=n}},66:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmMenu=void 0;var o=n(752);Object.defineProperty(t,"AmMenu",{enumerable:!0,get:function(){return i(o).default}}),a(n(754),t)},667:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(668),t),a(n(714),t)},668:function(e,t,n){"use strict";(function(e){var r=n(73),a=n(4),i=n(50),o=n(43),c=n(49),u=n(51),s=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},l=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LangStore=void 0;var f=n(3),p=d(n(341)),h=d(n(670)),g=d(n(294)),v=d(n(38)),m=n(1),_=function(){function t(e){var n=this;o(this,t),this.locale=m.DEFAULT_LANG,this.t=p.default.t,this.defaultLang={},this.config=null,this.updateLocale=function(){var e=i(a.mark((function e(t){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.locale=t,e.next=3,p.default.setLangWithPromise(n.locale);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.load=function(){var e=i(a.mark((function e(t,r,i){var o,c,u;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=new h.default({apiKey:t,namespace:r,locale:n.locale,zoneHost:m.isOversea?"https://starling-oversea.byteoversea.com":"https://starling.snssdk.com",TEAChannelDomain:m.isOversea?"https://maliva-mcs.byteoversea.com":"https://mcs.snssdk.com",fallbackLang:i,mode:m.isDev?"test":"normal"}),e.next=3,o.load();case 3:c=e.sent,u=(0,g.default)(n.defaultLang,c),n.defaultLang=u,p.default.addResourceBundle(n.locale,"translation",u,!0,!0),n.invokeLocaleCallback(u);case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),this.invokeLocaleCallback=function(e){var t=n.config||{},r=t.loadedCallback,a=void 0===r?v.default:r;a(e)},this.updateI18n=function(){n.t=p.default.t},this.locale=(0,m.getCurrentLang)(),this.config=e,this.init()}return c(t,[{key:"polyfillIntl",value:function(){e.Intl||(e.Intl=n(671),n(674),n(679),n(705),n(713))}},{key:"init",value:function(){var e=this,t=this.config,n=t.api_key,a=t.namespace,i=t.fallbackLocales,o=t.I18nMapLoader;this.defaultLang=o[this.locale],this.polyfillIntl(),this.invokeLocaleCallback(this.defaultLang),p.default.init({lng:this.locale,debug:m.isDev,fallbackLng:i,thirdParamFallback:!0,resources:r({},this.locale,{translation:this.defaultLang})},(function(){p.default.i18nInstance.instance.store.on("added",e.updateI18n),e.load(n,a,i)}))}}]),t}();s([f.observable,l("design:type",String)],_.prototype,"locale",void 0),s([f.observable,l("design:type",Object)],_.prototype,"t",void 0),s([f.action,l("design:type",Object)],_.prototype,"updateLocale",void 0),s([f.action,l("design:type",Object)],_.prototype,"updateI18n",void 0),t.LangStore=_}).call(this,n(78))},68:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(336),t),a(n(809),t),a(n(246),t)},714:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIntlWithFallback=void 0;var r=n(341),a=n(1);function i(e){var t=e.processOptions,n=e.fallbackTexts,a=void 0===n?{}:n,i=e.langStore,o=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t(n);var o=a[e];return i&&i.t?i.t(e,n,o):r.I18n.t(e,n,o)};return o}var o=function(e){return e.APP_DISPLAY_NAME=a.AppName,e},c=function(e,t){return i({processOptions:o,fallbackTexts:e,langStore:t})};t.createIntlWithFallback=c},715:function(e,t,n){"use strict";var r=n(4),a=n(50),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.initMiniApp=void 0;var o,c,u,s,l=n(1),d=i(n(54)),f=i(n(38)),p=n(308),h=n(179),g=n(311),v=l.globalStore.ambx;t.initMiniApp=v.bind(function(){var e=a(r.mark((function e(t){var n,a,i,d,h,m,_,y,b,E,M,O,I,S,P,T;return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(c){e.next=4;break}return e.next=3,(0,l.getEnvVars)();case 3:c=e.sent;case 4:if(u){e.next=8;break}return e.next=7,(0,l.getLoginUrl)();case 7:u=e.sent;case 8:if(s){e.next=12;break}return e.next=11,(0,l.getBaseUrl)();case 11:s=e.sent;case 12:return o=(0,g.createApp)(c),o.configEnvs({isProd:l.isOnlineProd,appId:"cli_9eeb505c0df5500d",suiteAppId:"13",loginHost:u,host:s,isVa:l.isOversea,appVersion:l.gadgetVersion}),n=p._miniapp._am_init_payload||{},a=t||{},i=a.force,d=void 0!==i&&i,h=a.loading,m=void 0!==h&&h,_=a.onSuccess,y=void 0===_?f.default:_,b=a.safeInit,E=void 0===b?n.safeInit:b,M=a.slardarPages,O=void 0===M?n.slardarPages:M,I=a.device_id,S=void 0===I?n.device_id:I,P=a.fromAppLinkQuery,T=void 0===P?n.fromAppLinkQuery:P,l.globalStore.updateStore({initLoading:m}),v.setConfig({observe:m}),p._miniapp._am_init_payload={slardarPages:O,safeInit:E,device_id:S,fromAppLinkQuery:T},o.setInitParams(O||[],E||!1,S||"",T||{},y),e.prev=20,e.next=23,o.init(d);case 23:e.next=29;break;case 25:e.prev=25,e.t0=e["catch"](20),console.warn("app.init failed",e.t0),2!==o.getLoginMode()&&tt.setStorageSync("useAccountsLogin",!1);case 29:case"end":return e.stop()}}),e,null,[[20,25]])})));return function(t){return e.apply(this,arguments)}}(),{name:"initMiniApp",onError:function(e){e=e||{},console.log("init error",e.response,e._errorHandler,e._force,e.request),e._errorHandler||this.initWithCheck({handler:"reLogin",force:e._force})}});var m={reLogin:(0,d.default)((function(){(0,t.initMiniApp)({force:!0,onSuccess:function(){l.$history.reload(!0)}})}),500,{leading:!0,trailing:!1}),retry:(0,d.default)((function(e){(0,t.initMiniApp)({force:!0,onSuccess:function(){return l.$history.replace(e||l.defaultRoutes.getFullUrl("index"))}})}),500,{leading:!0,trailing:!1}),noAuth:(0,d.default)((function(){(0,t.initMiniApp)({force:!0})}),500,{leading:!0,trailing:!1}),reLoad:(0,d.default)((function(){h.userStore.updateStore({loginStatus:"reLogin"}),l.$history.reload(!0),h.userStore.reset()}),1500)};l.globalStore.initWithCheck=function(e){var t=e.handler,n=e.query,r=e.force,a=void 0!==r&&r;return"reLoad"===t?m.reLoad():("noAuth"!==t&&h.userStore.updateStore({loginStatus:"none"}),"retry"!==t&&(h.userStore.forced||a)?(this.resetForceLoading(),void("noAuth"===t?l.$currentPage.getUrl()!==l.defaultRoutes.getFullUrl("noAuth")&&l.$history.replace(l.defaultRoutes.noAuth):(null===o||void 0===o||o.removeLoginTs(),l.$currentPage.getUrl()!==l.defaultRoutes.getFullUrl("noLogin")&&l.$history.reload(l.defaultRoutes.noLogin,{query:{redirect:l.$currentPage.getUrlWithArgs()}})))):(this.resetForceLoading.cancel(),h.userStore.reset.cancel(),h.userStore.updateStore({forced:!0}),this.updateStore({forceLoading:!0}),this._fallbackReset(),void m[t](n)))}},721:function(e,t,n){"use strict";var r=n(45),a=n(4),i=n(50),o=n(43),c=n(49),u=n(80),s=n(81);Object.defineProperty(t,"__esModule",{value:!0}),t.AdminMiddleware=void 0;var l=n(340),d=n(14),f=n(1),p=n(235),h=n(239),g=n(179),v=n(727),m=function(e){u(n,e);var t=s(n);function n(){var e;return o(this,n),e=t.apply(this,arguments),e.safeInit=!1,e.slardarPages=[],e.deviceId="",e.fromAppLinkQuery={},e.onSuccess=function(){},e}return c(n,[{key:"apply",value:function(){var e=this,t=this.innerApp;t.addMethod("setInitParams",(function(t,n,r,a,i){e.safeInit=n,e.slardarPages=t,e.deviceId=r,e.fromAppLinkQuery=a,e.onSuccess=i})),t.retryLogin.hooks.isSessionError.tab("admin",(function(e){return e>=99991600&&e<=99991699})),t.configHookMethod("init",(function(t){t.hooks.afterLogin.tab("admin",i(a.mark((function t(){return a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:(0,v.afterLogin)({slardarPages:e.slardarPages});case 1:case"end":return t.stop()}}),t)})))),t.hooks.failLogin.tab("admin",function(){var e=i(a.mark((function e(t){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:console.warn("init error",t.response,t._errorHandler,t._force,t.request);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),t.hooks.initStatusChange.tab("admin",(function(e){var t={none:"none",initStart:"initStart",initSuccess:"login",reInitSuccess:"reLogin"};g.userStore.updateStore({loginStatus:t[e]})}))})),t.configHookMethod("login",(function(e){e.hooks.resolveRequestLoginCookie.tab("admin",(function(e,t){2!==t?(d.defaultConfig.header["X-Larkgw-Use-Lark-Session"]="1",d.defaultConfig.header["X-Use-Account-Login"]="true"):(d.defaultConfig.header["X-Larkgw-Use-Lark-Session"]&&delete d.defaultConfig.header["X-Larkgw-Use-Lark-Session"],d.defaultConfig.header["X-Use-Account-Login"]&&delete d.defaultConfig.header["X-Use-Account-Login"])}))})),t.configHookMethod("configServices",(function(t){t.hooks.requestUniqueId.tab("admin",i(a.mark((function t(){var n,r,i,o,c,u,s,l;return a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p.permStore.init();case 3:return t.next=5,g.userStore.init(p.permStore);case 5:if(n=g.userStore.currentUser,r=n.id,i=void 0===r?"":r,o=n.hashID,c=void 0===o?"":o,u=n.isCreator,s=n.isSuperAdmin,l=n.isSeniorAdmin,!(u||s||l)&&e.safeInit){t.next=9;break}return t.next=9,h.tenantStore.init(p.permStore);case 9:if(f.globalStore.resetForceLoading(),e.onSuccess(),g.userStore.reset(),f.globalStore.updateStore({initLoading:!1}),!f.globalStore.globalInitCallback){t.next=17;break}return t.next=16,f.globalStore.globalInitCallback();case 16:f.globalStore.globalInitCallback=null;case 17:return t.abrupt("return",c||i);case 20:t.prev=20,t.t0=t["catch"](0),console.warn("\u767b\u5f55\u4fe1\u606f\u5931\u8d25",t.t0),f.globalStore.updateStore({initLoading:!1});case 24:case"end":return t.stop()}}),t,null,[[0,20]])})))),t.hooks.configTea.tab("admin",i(a.mark((function t(){return a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",r({tenant_id:h.tenantStore.tenantInfo.id,device_id:e.deviceId},e.fromAppLinkQuery));case 1:case"end":return t.stop()}}),t)}))))}))}}]),n}(l.BaseMiddleware);t.AdminMiddleware=m},727:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.afterLogin=void 0;var r=n(162),a=n(1),i=n(311);function o(e){(0,a.setReportAPI)({reportEvent:function(e,t){var n;return null===(n=null===i.resolvedApp||void 0===i.resolvedApp?void 0:i.resolvedApp.setEvent)||void 0===n?void 0:n.call(i.resolvedApp,e,t)},reportCustomEvent:function(e){var t;return null===(t=r.Slardar.sendEvent)||void 0===t?void 0:t.call(r.Slardar,e)},reportError:function(e){var t;return null===(t=r.Slardar.captureException)||void 0===t?void 0:t.call(r.Slardar,e)},slardarPages:e.slardarPages})}t.afterLogin=o},728:function(e,t,n){"use strict";var r=n(43),a=n(51),i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,c=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":a(Reflect))&&"function"===typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c},o=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":a(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.comLangStore=void 0;var c=n(3),u=function e(){var t=this;r(this,e),this.locales={},this.setLocale=function(e,n){t.locales[e]=n},this.setLocales=function(e){t.locales=e},this.getLocale=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locales[e]||e;return"string"===typeof r?r.replace(/\{([^}]+)\}/g,(function(e,t,r){return n[t]})):"function"===typeof r?r(n):""}};i([c.observable,o("design:type",Object)],u.prototype,"locales",void 0),i([c.action,o("design:type",Object)],u.prototype,"setLocale",void 0),i([c.action,o("design:type",Object)],u.prototype,"setLocales",void 0),t.comLangStore=new u},729:function(e,t,n){"use strict";var r=n(58),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmSpin=void 0;var u=o(n(0)),s=n(18),l=n(2),d=n(1),f=n(21),p=n(730),h=c(n(31)),g=n(39),v=c(n(38));n(731);var m=Symbol("currentSpinPage"),_=function(){return d.$currentPage.getUrl(null,!1)},y=function(e){var t=e.asyncSpinning,n=e.spinning,a=e.tip,i=e.size,o=e.color,c=e.className,y=e.style,b=(0,u.useMemo)((function(){var e="function"===typeof t,n=function(n){return(e?t:v.default)(n)};return(0,d.addHiddenProp)(n,m,_()),[e,n,function(){return e&&n[m]===_()}]}),[]),E=r(b,3),M=E[0],O=E[1],I=E[2],S=(0,p.useNormalizedSpin)({isPageInit:M,initFn:O,checkCurPage:I},f.userStore.loginStatus);return(0,s.useObserver)((function(){var r=S.forceSpinning||(M?S.asyncSpinning:t),s=r||S.delayCovering;return u.default.createElement(l.View,{className:(0,h.default)("".concat(g.PREFIX,"-spinner"),c),style:y},(r||n)&&u.default.createElement(l.View,{className:"".concat(g.PREFIX,"-spinner-loading"),style:{backgroundColor:s?"#f5f6f7":""}},u.default.createElement(l.View,{className:(0,h.default)("spin-wrapper",{tip:a},"s-".concat(o))},u.default.createElement(l.View,{className:(0,h.default)("spin",i)}),a&&u.default.createElement(l.View,{className:"text"},a))),!s&&u.default.createElement(l.View,{className:(0,h.default)("".concat(g.PREFIX,"-spinner-container"),{loading:n})},e.children))}))};t.AmSpin=y,t.AmSpin.defaultProps={asyncSpinning:!1,spinning:!1,color:"primary",size:"default"}},730:function(e,t,n){"use strict";var r=n(4),a=n(50),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useNormalizedSpin=t.DELAY_TIME_OUT=void 0;var o=n(0),c=n(18),u=n(1),s=i(n(54));t.DELAY_TIME_OUT=200;var l=u.globalStore.ambx,d=function(e,n){var i=e.isPageInit,d=e.initFn,f=e.checkCurPage,p=(0,c.useLocalStore)((function(){var e=u.globalStore.initLoading,r="reLogin"!==n&&!e,a=(0,s.default)((function(){var e=this;l.bind(u.noopAsync,{observe:!0,onComplete:function(){e.timeout=!0}})()}),t.DELAY_TIME_OUT);return{get forceSpinning(){return(!i||f())&&u.globalStore.forceLoading},get pageLoading(){return f()&&u.globalStore.globalLoading},get asyncSpinning(){return r?this.timeout&&this.pageLoading:this.pageLoading},get delayCovering(){return i&&r&&!this.timeout},timeout:!1,update:a,cancel:function(){a.cancel()},withLogin:e,shouldDelay:r}}));return(0,o.useLayoutEffect)((function(){if(i){var e=p.withLogin,t=p.shouldDelay;e&&"reLogin"!==n?u.globalStore.globalInitCallback=function(){return d(!0)}:l.bind(a(r.mark((function e(){return r.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d(!1);case 2:return t&&p.cancel(),e.abrupt("return",(function(){return t&&(p.timeout=!0)}));case 4:case"end":return e.stop()}}),e)}))),{observe:!t})()}}),[]),(0,o.useEffect)((function(){if(i)return p.update(),p.cancel}),[]),p};t.useNormalizedSpin=d},731:function(e,t,n){},732:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmSingleSpin=void 0;var a=r(n(0)),i=n(2),o=r(n(31)),c=n(39),u=function(e){var t=e.spinning,n=e.tip,r=e.className,u=e.size,s=e.style,l=e.color;return a.default.createElement(i.View,{className:(0,o.default)("".concat(c.PREFIX,"-single-spinner"),r),style:s},a.default.createElement(i.View,{className:(0,o.default)("".concat(c.PREFIX,"-single-spinner-loading g-flex-center"),"s-".concat(l))},t&&a.default.createElement(i.View,{className:(0,o.default)("spin",u)}),n&&a.default.createElement(i.Text,{className:"text"},n)))};t.AmSingleSpin=u,t.AmSingleSpin.defaultProps={spinning:!0,color:"primary",size:"default"}},739:function(e,t,n){},740:function(e,t,n){"use strict";var r=n(45),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(n(0)),o=n(2),c=n(18),u=a(n(31)),s=n(39),l=a(n(314)),d=a(n(244)),f=n(242),p=function(e){var t=e.pageKey,n=void 0===t?"":t,a=f.ModalManager,c=a.modalSeqs,p=void 0===c?[]:c,h=a.finalClose,g=void 0!==h&&h,v=p[n]||[];return i.default.createElement(o.View,{className:(0,u.default)("".concat(s.PREFIX,"-modal-wrapper"))},v.length>0&&i.default.createElement(d.default,{close:g}),v.map((function(e){var t=e.id,n=e.modalProps;return i.default.createElement(l.default,r(r({key:t,modalId:t},n),{},{needMask:!1}))})))};t.default=(0,c.observer)(p)},742:function(e,t,n){},743:function(e,t,n){},744:function(e,t,n){"use strict";var r=n(45),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmActionSheetWrapper=void 0;var i=a(n(0)),o=n(2),c=n(18),u=a(n(31)),s=n(39),l=n(318),d=n(245),f=function(e){var t=e.pageKey,n=void 0===t?"":t,a=d.ActionSheetManager,c=a.acitionSheetSeqs,f=c[n]||[];return i.default.createElement(o.View,{className:(0,u.default)("".concat(s.PREFIX,"-acition-sheet-wrapper"))},f.map((function(e){var t=e.id,n=e.actionSheetProps;return i.default.createElement(l.AmActionSheet,r(r({key:t,actionSheetId:t},n),{},{maskClosable:!0}))})))};f.defaultProps={},t.AmActionSheetWrapper=(0,c.observer)(f)},747:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=r(n(16)),o=n(2),c=r(n(38)),u=n(1),s=n(39),l=function(e){var t=e.text,n=e.onCopy,r=e.copySuccess,c=void 0===r?s.comLangStore.getLocale("SuiteAdminMP_Common_CopySuccess"):r,l=function(){i.default.setClipboardData({data:t,success:function(e){n&&n(e),u.amToast.success(c)}})};return a.default.createElement(o.View,{onClick:l},e.children)};l.defaultProps={text:"",onCopy:c.default},t.default=l},748:function(e,t,n){"use strict";var r=n(45),a=n(73),i=n(126),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmLayout=t.FOOT_TYPE=void 0;var c,u=o(n(0)),s=n(2),l=n(1),d=n(130),f=n(55),p=o(n(31)),h=n(39),g=n(16);n(751),function(e){e["NONE"]="none",e["WRAP"]="wrap",e["MULTI"]="multi"}(c=t.FOOT_TYPE||(t.FOOT_TYPE={}));var v=function(e){var t,n=e.className,o=e.style,v=e.headerHeight,m=void 0===v?0:v,_=e.footerType,y=e.contentFull,b=e.asyncSpinning,E=e.spinning,M=i(e,["className","style","headerHeight","footerType","contentFull","asyncSpinning","spinning"]),O=(0,l.multiCalc)(+m,(t={},a(t,h.FootWrapHeight,_===c.WRAP),a(t,h.FootHeight,_===c.MULTI),a(t,l.IphonexBottom,l.isIphoneX),t)),I=40,S=r({className:(0,p.default)("".concat(h.PREFIX,"-layout"),n),style:r(r({},o),{},{height:"calc(100vh - ".concat((0,g.pxTransform)(O),")"),top:(0,g.pxTransform)(+m-(y?I:0))})},M);return u.default.createElement(f.AmSpin,{asyncSpinning:b,spinning:E,size:"large",style:{height:"100vh"}},y?u.default.createElement(s.View,r({},S)):u.default.createElement(d.AmScrollView,r({},S)))};t.AmLayout=v,t.AmLayout.defaultProps={asyncSpinning:!1,spinning:!1,headerHeight:0,footerType:c.NONE,contentFull:!1}},749:function(e,t,n){"use strict";var r=n(45),a=n(126),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmScrollView=void 0;var o=i(n(0)),c=n(2),u=n(55),s=n(39),l=n(16),d=i(n(31));n(750);var f=function(e){var t=e.className,n=e.style,i=e.moreLoading,f=e.children,p=a(e,["className","style","moreLoading","children"]);return o.default.createElement(c.ScrollView,r(r({className:(0,d.default)("".concat(s.PREFIX,"-scroll-view"),t),style:n},p),{},{scrollY:!0,upperThreshold:20,lowerThreshold:20}),f,i?o.default.createElement(u.AmSingleSpin,{size:"small",className:"scroll-spin"}):o.default.createElement(c.View,{style:{height:(0,l.pxTransform)(s.PageBottomBlank)}}))};t.AmScrollView=f,t.AmScrollView.defaultProps={moreLoading:!1}},750:function(e,t,n){},751:function(e,t,n){},752:function(e,t,n){"use strict";var r=n(73),a=n(45),i=n(4),o=n(50),c=n(43),u=n(49),s=n(80),l=n(81),d=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),f=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return f(t,e),t},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var g=p(n(0)),v=n(2),m=h(n(31)),_=n(1),y=n(39),b=h(n(101));n(753);var E=function(e){s(n,e);var t=l(n);function n(e){var r;c(this,n),r=t.call(this,e),r.handlClickMenu=function(){var e=o(i.mark((function e(t){var n,a,o;return i.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.onClickItem,a=!0,!n){e.next=6;break}return e.next=5,n(t);case 5:a=e.sent;case 6:if(o=r.props.onClickMenu,!a||!o){e.next=9;break}return e.abrupt("return",o(t));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var a={},u=function e(t){a[r.getMenuKey(t)]={iconLoadedFail:!1},t.children&&t.children.forEach((function(t){return e(t)}))};return e.menus.forEach((function(e){return u(e)})),r.state={menuStatus:a},r}return u(n,[{key:"getMenuKey",value:function(e){return"".concat(e.key,"-").concat(e.path)}},{key:"setMenuStatus",value:function(e,t){this.setState(a(a({},this.state),{},{menuStatus:a(a({},this.state.menuStatus),{},r({},this.getMenuKey(e),t))}))}},{key:"componentDidMount",value:function(){this.props.menuDidMount&&this.props.menuDidMount()}},{key:"renderMenu",value:function(e){var t=this,n=this.props,a=n.needIcon,i=void 0!==a&&a,o=n.needSubmoduleBorder,c=void 0!==o&&o;return e?e.map((function(n,a){var o=n.key,u=void 0===o?"menu-item-".concat(a):o,s=n.title,l=n.children,d=n.content,f=n.labeldes,p=n.bottomContent,h=n.icon,y=n.defaultIcon,E=n.entered,M=void 0!==E&&E,O=n.disabled,I=void 0!==O&&O,S=n.className,P=void 0===S?"":S,T=i?h:void 0,D="function"===typeof s?s():s,A=t.getMenuKey(n),N=t.state.menuStatus[A]||{};return l?g.default.createElement(v.View,{className:(0,m.default)("sub-module g-flexbox-column",r({"no-title":!D&&0!==a,"b-top-svg-1px":c&&!(D&&0!==a),"b-bottom-svg-1px":c},P,P)),key:u},D&&g.default.createElement(v.Text,{className:"title"},D),t.renderMenu(l)):g.default.createElement(v.View,{className:(0,m.default)("entrance",r({disabled:I},P,P)),hoverClass:M&&!I?"g-active":"",onClick:function(){n.entered&&n.path?(0,_.safeNav)((function(){return t.handlClickMenu(n)}))():t.handlClickMenu(n)},key:u},g.default.createElement(v.View,{className:(0,m.default)("g-flexbox g-align-center")},T&&g.default.createElement(v.Image,{className:(0,m.default)(["menu-icon","g-flex-none"]),src:N.iconLoadedFail?y:h,onError:function(){t.setMenuStatus(n,{iconLoadedFail:!0})}}),g.default.createElement(v.View,{className:(0,m.default)("entrance-container g-flex-between g-flex g-fix-flex",{"b-bottom-svg-1px":a!==e.length-1})},g.default.createElement(v.View,{className:"entrance-title",id:"".concat(_.E2E,"-title-").concat(u)},!!D&&g.default.createElement(v.View,{className:"entrance-title-text g-ellipsis"},D),!!f&&("function"===typeof f?f():f)),g.default.createElement(v.View,{className:(0,m.default)("g-flexbox g-align-center g-flex-right g-flex g-fix-flex")},d&&"function"===typeof d?g.default.createElement(v.View,{id:"".concat(_.E2E,"-").concat(u),className:"g-flexbox g-align-center g-flex-right g-flex g-fix-flex"},d(n)):"string"===typeof d?g.default.createElement(v.Text,{className:"entrance-content g-ellipsis",id:"".concat(_.E2E,"-").concat(u)},d):null,M&&g.default.createElement(v.Image,{className:"entrance-icon",src:b.default})))),!!p&&g.default.createElement(v.View,{className:"entrance-bottom"},"function"===typeof p?p():p))})):null}},{key:"render",value:function(){var e=this.props,t=e.menus,n=e.className,r=e.style;return g.default.createElement(v.View,{className:(0,m.default)("".concat(y.PREFIX,"-menu"),n),style:r},this.renderMenu(t))}}]),n}(g.Component);t.default=E},753:function(e,t,n){},754:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},755:function(e,t,n){"use strict";(function(e){var r=n(43),a=n(49),i=n(80),o=n(81),c=n(51),u=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),l=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":c(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&u(t,e,n);return s(t,e),t},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=d(n(0)),h=n(18),g=n(2),v=f(n(756)),m=n(1),_=n(21);n(757);var y=function(t){i(c,t);var n=o(c);function c(){return r(this,c),n.apply(this,arguments)}return a(c,[{key:"render",value:function(){var t=this.props,n=t.globalStore,r=t.tenantStore,a=t.permStore,i=n.hasGlobalVerify,o=n.startPasswordVerify,c=r.tenantInfo,u=a.has(m.PERMISSION.ADMIN_MINI_ADDPASSWORDVERIFY);return p.default.createElement(p.default.Fragment,null,u&&!i&&p.default.createElement(g.View,{className:"verify-content"},p.default.createElement(g.Image,{className:"verify-img",src:v.default}),p.default.createElement(g.View,{className:"verify-text"},e("SuiteAdminMP_TwoStep_TenantVerifyId",{TenantName:p.default.createElement(g.Text,{className:"tenant-name"},c.name)})),p.default.createElement(g.Button,{type:"primary",className:"verify-button",onClick:o},p.default.createElement(g.Text,{className:"button-text"},e("SuiteAdminMP_TwoStep_StartVerifyButton")))))}}]),c}(p.Component);y.defaultProps={globalStore:m.globalStore,tenantStore:_.tenantStore,permStore:_.permStore},y=l([h.observer],y),t.default=y}).call(this,n(30)["default"])},756:function(e,t,n){e.exports=n.p+"_/node_modules/@lark/admin-mini-components-next/lib/images/index-certifate.svg"},757:function(e,t,n){},768:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmMultiFooter=t.AmWrapButton=void 0;var a=r(n(0)),i=n(2),o=n(84),c=n(1),u=r(n(31)),s=n(39),l=r(n(38));n(769);var d=function(e,t){var n=t.disabled,r=t.wrap,c=t.btnHoverDisabled;return a.default.createElement(a.default.Fragment,null,e.map((function(e,t,d){var f=d.length,p=e.text,h=void 0===p?s.comLangStore.getLocale("SuiteAdminMP_Common_Done"):p,g=e.type,v=void 0===g?"default":g,m=e.badge,_=e.loading,y=e.disabled,b=e.onClick,E=n||y;return a.default.createElement(i.Button,{key:"".concat(h,"-").concat(t),className:(0,u.default)("".concat(s.PREFIX,r?"-wrap-item":"-footer-item"),v,{disabled:E,"b-half-right-1px":!r&&t!==f-1}),loading:_,onClick:E||_?l.default:b,hoverClass:c?"":"btn-hover"},m?"number"===typeof m?a.default.createElement(o.AmBadge,{count:m},h):(0,s.renderElementOrInstance)(m,{children:h}):h)})))},f=function(e){var t=e.data,n=e.position,r=e.disabled,o=e.className,l=e.style,f="bottom"===n,p=Array.isArray(t)?t:[t];return a.default.createElement(i.View,{className:(0,u.default)("".concat(s.PREFIX,"-wrap-button g-flex-between"),n,{"g-footer":f,multi:p.length>1,"fix-iphonex-button":c.isIphoneX&&f},o),style:l},d(p,{disabled:r,wrap:!0}))};t.AmWrapButton=f,t.AmWrapButton.defaultProps={data:[],disabled:!1,position:"normal"};var p=function(e){var t=e.data,n=e.disabled,r=e.className,o=e.style,l=e.btnHoverDisabled,f=Array.isArray(t)?t:[t];return a.default.createElement(i.View,{className:(0,u.default)("".concat(s.PREFIX,"-multi-footer g-flexbox g-footer"),r,{"fix-iphonex-button":c.isIphoneX}),style:o},d(f,{disabled:n,btnHoverDisabled:l}))};t.AmMultiFooter=p,t.AmMultiFooter.defaultProps={data:[],disabled:!1}},769:function(e,t,n){},773:function(e,t,n){"use strict";var r=n(73),a=n(43),i=n(49),o=n(80),c=n(81),u=n(51),s=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),d=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":u(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return l(t,e),t},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var h=f(n(0)),g=n(18),v=n(3),m=n(2),_=p(n(31)),y=n(1),b=p(n(322)),E=p(n(333)),M=n(40),O=p(n(334)),I=n(100),S=n(39),P=n(13);n(800);var T=function(e){o(n,e);var t=c(n);function n(){var e;return a(this,n),e=t.apply(this,arguments),e.handleConfirm=function(){var t=e.props,n=t.onConfirm,r=t.ouUserStore;n&&n((0,v.toJS)(r.checkedList))},e.handleDelete=function(t){var n=e.props,r=n.onDelete,a=n.ouUserStore,i=!r||r(t);i&&a.updateCheckedList(t)},e.handleClickMore=function(t,n){var r=e.props.ouUserStore.searchStore,a=r.updateStore,i=r.searchOus,o=r.ouHasMore,c=r.ouNextOffset,u=r.searchUsers,s=r.userHasMore,l=r.userNextOffset;a({isSearchMore:!0,searchType:t,search:n,preRes:{search:n,searchOus:i,ouHasMore:o,ouNextOffset:c,searchUsers:u,userHasMore:s,userNextOffset:l}})},e.handleCancleClickMore=function(){var t=e.props.ouUserStore.searchStore,n=t.updateStore,r=t.preRes,a=r.search,i=r.searchOus,o=r.ouHasMore,c=r.ouNextOffset,u=r.searchUsers,s=r.userHasMore,l=r.userNextOffset;n({isSearchMore:!1,searchType:I.SEARCH_TYPE_NEW.OU_USER,search:a,searchOus:i,ouHasMore:o,ouNextOffset:c,searchUsers:u,userHasMore:s,userNextOffset:l})},e.handleScopeChange=function(t){var n=t.value,r=e.props.ouUserStore,a=r.updateStore,i=r.ouStore.rootOu,o=void 0===i?{}:i,c=r.scopeType,u=r.preCheckedList,s=r.checkedList;n!==c&&a({scopeType:n,preCheckedList:n===I.SCOPE_TYPE.ALL?s:[],checkedList:n===I.SCOPE_TYPE.ALL?[o]:u})},e}return i(n,[{key:"render",value:function(){var e,t=this.props,n=t.allowEmpty,a=t.onSelect,i=t.pickerLoading,o=void 0!==i&&i,c=t.ouUserStore,u=t.noScope,s=void 0===u||u,l=c.checkedList,d=void 0===l?[]:l,f=c.currentCheckedId,p=c.scopeType,g=c.initData,v=g.pickerType,T=g.confirmBtnText,D=void 0===T?"":T,A=c.searchStore.isSearchMore,N=S.comLangStore.getLocale,L=!n&&(!d||0===d.length),w=(0,y.multiCalc)((e={},r(e,S.ChecklistHeight,v!==I.PICKER_MODAL_TYPE.USER),r(e,y.IphonexBottom,y.isIphoneX&&v!==I.PICKER_MODAL_TYPE.USER),e)),C=(0,y.multiCalc)(r({},S.ScopeHeight,!s));return h.default.createElement(m.View,{className:"am-picker-page"},!s&&h.default.createElement(P.AmForm,{className:"am-picker-page-scope g-header",formData:[{type:P.FIELD_TYPE.SECTION},{name:"radio",type:P.FIELD_TYPE.RADIO,label:S.comLangStore.getLocale("SuiteAdminMP_B2B_AllMembers"),value:I.SCOPE_TYPE.ALL,noBorder:!0},{type:P.FIELD_TYPE.SECTION},{name:"radio",type:P.FIELD_TYPE.RADIO,label:S.comLangStore.getLocale("SuiteAdminMP_B2B_PartMembers"),value:I.SCOPE_TYPE.PART,noBorder:!0},{name:"radiogroup",type:P.FIELD_TYPE.RADIO_GROUP,value:p}],onChange:this.handleScopeChange}),h.default.createElement(b.default,{style:{display:A||!s&&p===I.SCOPE_TYPE.ALL?"none":""},ouUserStore:c,headHeight:C,footHeight:w,onSelect:a,onClickMore:this.handleClickMore,noScope:s}),A&&h.default.createElement(O.default,{ouUserStore:c,onCancel:this.handleCancleClickMore,headHeight:C,footHeight:w}),v===I.PICKER_MODAL_TYPE.OU&&h.default.createElement(M.AmWrapButton,{data:{text:N("SuiteAdminMP_Common_Confirm"),onClick:this.handleConfirm,disabled:L,type:"primary",loading:o},position:"bottom"}),(v===I.PICKER_MODAL_TYPE.MULTI_OU||v===I.PICKER_MODAL_TYPE.OU_USER||v===I.PICKER_MODAL_TYPE.MULTI_USER)&&h.default.createElement(m.View,{className:(0,_.default)("g-footer am-picker-page-footer multi g-flex-between",{"fix-iphonex-button":y.isIphoneX})},h.default.createElement(m.View,{className:"am-picker-page-checkedList g-flex"},h.default.createElement(E.default,{list:d,onDelete:this.handleDelete,currentCheckedId:f})),h.default.createElement(m.Button,{className:(0,_.default)("am-picker-page-btn multi g-flex-none",{disabled:L}),type:"primary",onClick:this.handleConfirm,disabled:L,loading:o},o?"":D||N("SuiteAdminMP_Common_Confirm"))))}}]),n}(h.Component);T=d([g.observer],T),t.default=T},774:function(e,t,n){"use strict";var r=n(45),a=n(73),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=u(n(0)),l=c(n(16)),d=n(2),f=n(18),p=n(100),h=n(1),g=u(n(326)),v=n(780),m=n(55),_=n(39);n(784);var y=function(e){var t=function(){var t=e.ouUserStore,n=t.ouPicker,r=t.ouStore,a=r.currentOu,i=void 0===a?{}:a,o=i.pathNodes,c=void 0===o?[]:o,u=i.name,s=i.id,l=c.map((function(e){var t=e.id,n=e.depName,r=e.parentID;return{id:r===h.DEFAULT_PARENT_ID?h.DEFAULT_DEPARTMENT_ID:t,name:n,disabled:!1}}));return n||(l=l.concat([{id:s,name:u,disabled:!0}])),l},n=function(t){var n=e.ouUserStore,r=n.ouStore,a=n.checkedList,i=r.getOuStructure,o=t.id;i(o,a),l.default.pageScrollTo({scrollTop:0,duration:0})},i=function(t){e.onSelect(t)},o=function(t){var n=e.ouUserStore,r=n.ouStore,a=n.checkedList,i=r.getOuStructure;e.onExpand&&e.onExpand(t),i(t.id,a)},c=function(e){var t=e.type;t===p.NODE_TYPE_NEW.USER?i(e):t===p.NODE_TYPE_NEW.OU&&o(e)},u=function(t){var n=e.ouUserStore,r=n.initData,a=r.maxCount,i=r.onMaxCount,o=n.updateCheckedList,c=n.checkedList,u=void 0===c?[]:c;a&&!t.checked&&u&&u.length>=a&&i&&"function"===typeof i?i():o(t)},f=function(t,n,r){var a=e.ouUserStore,i=a.initData,o=a.ouPicker,s=i.userCheck,l=i.ouCheck,d=i.tenantCheck,f=i.pickerType,h=i.disabledIds,g=void 0===h?[]:h,v=i.disabledTip;return{ouItem:t,onSelect:c,onCheck:u,userCheck:s,ouCheck:l,tenantCheck:d,pickerType:f,indentation:o,needBottom:!n||r!==n.length-1,disabled:(0,p.getDisabled)(g,t),disabledTip:v}},y=e.style,b=e.ouUserStore,E=b.ouStore,M=b.ouPicker,O=e.footHeight,I=void 0===O?0:O,S=e.headHeight,P=void 0===S?0:S,T=_.comLangStore.getLocale,D=E.ouListLoading,A=E.currentOu,N=E.ouListMoreLoading,L=E.ouList,w=A.id,C=t(),j=C&&C.length>0,x=(0,h.multiCalc)(I,P,a({},_.BreadHeight,j)),R={height:"calc(100vh - ".concat((0,l.pxTransform)(x),")")},k=L.length,U=f(A);return s.default.createElement(d.View,{className:"am-picker-ou-list g-flexbox-column",style:r(r({},y),{},{marginTop:j?(0,l.pxTransform)(_.BreadHeight):0})},j&&s.default.createElement(v.AmBreadcrumbs,{className:"g-header",style:{top:(0,l.pxTransform)(P)},data:C,scrollIntoView:w,onItemClick:n}),!0===D?s.default.createElement(m.AmSpin,{spinning:D,style:R}):s.default.createElement(d.View,{className:"am-picker-ou-list-container"},M&&s.default.createElement(g.default,r(r({},U),{},{indentation:!1,isRootOu:!0})),0===k?!1===D&&s.default.createElement(d.View,{className:"am-picker-ou-list-empty g-flexbox-column g-align-center"},s.default.createElement(d.View,{className:"am-picker-ou-list-empty-back"}),T("SuiteAdminMP_Common_DeptEmpty")):s.default.createElement(d.View,{style:{paddingBottom:(0,l.pxTransform)(I)}},L.map((function(e,t){var n=f(e,L,t);return s.default.createElement(g.default,r({key:e.id},n))})),N&&s.default.createElement(d.View,{className:"g-flex-center am-picker-ou-list-loading"},s.default.createElement(m.AmSingleSpin,{size:"small"})))))};y.defaultProps={ouUserStore:p.initOuUserStore},t.default=(0,f.observer)(y)},779:function(e,t,n){},780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmBreadcrumbs=void 0;var a=n(781);Object.defineProperty(t,"AmBreadcrumbs",{enumerable:!0,get:function(){return r(a).default}})},781:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=n(2),o=r(n(31)),c=n(39),u=r(n(782));n(783);var s=function(e){var t=e.className,n=e.style,r=e.scrollIntoView,s=void 0===r?"":r,l=e.data,d=void 0===l?[]:l,f=e.onItemClick,p=d.length;return a.default.createElement(i.View,{className:"".concat(c.PREFIX,"-breadcrumbs ").concat(t),style:n},a.default.createElement(i.ScrollView,{className:"".concat(c.PREFIX,"-breadcrumbs-container"),scrollX:!0,scrollWithAnimation:!0,scrollIntoView:"breaditem-".concat(s)},d.map((function(e,t){var n=e||{},r=n.id,s=n.name,l=n.disabled,d=void 0!==l&&l,h="breaditem-".concat(r);return a.default.createElement(i.View,{key:h,id:h,className:"".concat(c.PREFIX,"-breadcrumbs-item g-ellipsis")},a.default.createElement(i.Text,{className:(0,o.default)("item-text g-ellipsis",{disabled:d}),"data-id":r,"data-name":s,onClick:function(){!d&&f&&f(e)}},s),t!==p-1&&a.default.createElement(i.View,{className:"item-separator",key:"separator-".concat(r)},a.default.createElement(i.Image,{className:"item-separator-icon",src:u.default})))}))))};s.defaultProps={data:[]},t.default=s},782:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOCIgaGVpZ2h0PSIyOCIgdmlld0JveD0iMCAwIDI4IDI4Ij4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbC1ydWxlPSJub256ZXJvIiBkPSJNMCAwSDI4VjI4SDB6IiB0cmFuc2Zvcm09InJvdGF0ZSgtOTAgMTQgMTQpIi8+CiAgICAgICAgPHBhdGggZmlsbD0iI0MzQzZDQiIgZD0iTTE0IDE4LjUwOGw5LjQ4Ny05LjQ4N2MuMjI4LS4yMjguNTk3LS4yMjguODI1IDBsLjgyNS44MjVjLjIyOC4yMjguMjI4LjU5NyAwIC44MjVMMTQuODI1IDIwLjk4M2MtLjQ1Ni40NTUtMS4xOTQuNDU1LTEuNjUgMEwyLjg2MyAxMC42N2MtLjIyOC0uMjI4LS4yMjgtLjU5NyAwLS44MjVsLjgyNS0uODI1Yy4yMjgtLjIyOC41OTctLjIyOC44MjUgMEwxNCAxOC41MDh6IiB0cmFuc2Zvcm09InJvdGF0ZSgtOTAgMTQgMTQpIi8+CiAgICA8L2c+Cjwvc3ZnPgo="},783:function(e,t,n){},784:function(e,t,n){},785:function(e,t,n){},786:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=r(n(31)),o=n(2),c=n(39),u=r(n(787)),s=n(788);n(789);var l=function(e){var t=e.className,n=e.initValue,r=void 0===n?"":n,l=e.placeholderText,d=void 0===l?c.comLangStore.getLocale("SuiteAdminMP_Common_SearchPlaceholder"):l,f=e.cancelText,p=void 0===f?c.comLangStore.getLocale("SuiteAdminMP_Common_Cancel"):f,h=(0,s.useInput)(r),g=h.value,v=h.onInput,m=h.reset,_=h.focus,y=h.onFocus,b=e.onSearch,E=e.onClear,M=e.onFocus,O=e.onCancel,I="function"===typeof O;return a.default.createElement(o.View,{className:(0,i.default)("".concat(c.PREFIX,"-search-input g-flex-between"),t,{"has-cancel":I})},a.default.createElement(o.View,{className:(0,i.default)("".concat(c.PREFIX,"-search-input-container g-flex-between g-flex"),{"has-cancel":I})},a.default.createElement(o.View,{className:"".concat(c.PREFIX,"-search-input-content g-flexbox g-align-center g-flex")},a.default.createElement(o.View,{className:"".concat(c.PREFIX,"-search-input-search-icon")}),a.default.createElement(o.Input,{type:"text",className:"".concat(c.PREFIX,"-search-input-text g-flex"),placeholder:d,onInput:function(e){var t=e.detail.value,n=void 0===t?"":t;v(e),b(n.trim())},value:g,onFocus:function(){y(!0),"function"===typeof M&&M()}})),_.current&&!!g&&a.default.createElement(o.Image,{className:"".concat(c.PREFIX,"-search-input-cancle-icon"),src:u.default,onClick:function(){y(!1),m(),E()}})),a.default.createElement(o.Text,{className:"".concat(c.PREFIX,"-search-input-cancle"),onClick:function(){y(!1),v({detail:{value:""}}),I&&O()},style:{display:I?"":"none"}},p))};t.default=l},787:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj4KICAgIDxwYXRoIGZpbGw9IiM4Rjk1OUUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTIwLjUgMkMzMC43MTcgMiAzOSAxMC4yODMgMzkgMjAuNVMzMC43MTcgMzkgMjAuNSAzOSAyIDMwLjcxNyAyIDIwLjUgMTAuMjgzIDIgMjAuNSAyem02LjI2NiAxMS4xOTJjLS4zMjgtLjMyOC0uODYtLjMyOC0xLjE4OSAwbC01LjAwMyA1LjAwNC01LjAwMy01LjAwNGMtLjMyOS0uMzI4LS44NjEtLjMyOC0xLjE5IDBsLTEuMTg5IDEuMTljLS4zMjguMzI4LS4zMjguODYgMCAxLjE4OWw1LjAwNCA1LjAwMy01LjAwNCA1LjAwM2MtLjMyOC4zMjktLjMyOC44NjEgMCAxLjE5bDEuMTkgMS4xODljLjMyOC4zMjguODYuMzI4IDEuMTg5IDBsNS4wMDMtNS4wMDMgNS4wMDMgNS4wMDNjLjMyOS4zMjguODYxLjMyOCAxLjE5IDBsMS4xODktMS4xOWMuMzI4LS4zMjguMzI4LS44NiAwLTEuMTg5bC01LjAwMy01LjAwMyA1LjAwMy01LjAwM2MuMzI4LS4zMjkuMzI4LS44NjEgMC0xLjE5eiIvPgo8L3N2Zz4K"},788:function(e,t,n){"use strict";var r=n(58),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useInput=void 0;var i=n(0),o=a(n(64)),c=function(e){var t=(0,i.useState)(e),n=r(t,2),a=n[0],c=n[1],u=(0,i.useRef)(!1),s=function(e){(0,o.default)(e)?c(e["detail"].value):c(a)},l=function(e){u.current=e},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return c(e)};return{value:a,reset:d,onInput:s,focus:u,onFocus:l,bind:{value:a,onInput:s}}};t.useInput=c},789:function(e,t,n){},790:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuMDAwMDQgNS4wNTcxOEwxMC40Nzg0IDAuNTc4ODMyQzEwLjYwODYgMC40NDg2NTcgMTAuODE5NiAwLjQ0ODY1NyAxMC45NDk4IDAuNTc4ODMyTDExLjQyMTIgMS4wNTAyNEMxMS41NTE0IDEuMTgwNDEgMTEuNTUxNCAxLjM5MTQ3IDExLjQyMTIgMS41MjE2NEw2Ljk0Mjg1IDUuOTk5OThMMTEuNDIxMiAxMC40NzgzQzExLjU1MTQgMTAuNjA4NSAxMS41NTE0IDEwLjgxOTYgMTEuNDIxMiAxMC45NDk3TDEwLjk0OTggMTEuNDIxMUMxMC44MTk2IDExLjU1MTMgMTAuNjA4NiAxMS41NTEzIDEwLjQ3ODQgMTEuNDIxMUw2LjAwMDA0IDYuOTQyNzlMMS41MjE3IDExLjQyMTFDMS4zOTE1MyAxMS41NTEzIDEuMTgwNDcgMTEuNTUxMyAxLjA1MDMgMTEuNDIxMUwwLjU3ODg5MyAxMC45NDk3QzAuNDQ4NzE5IDEwLjgxOTYgMC40NDg3MTkgMTAuNjA4NSAwLjU3ODg5MyAxMC40NzgzTDUuMDU3MjQgNS45OTk5OEwwLjU3ODg5MyAxLjUyMTY0QzAuNDQ4NzE5IDEuMzkxNDcgMC40NDg3MTkgMS4xODA0MSAwLjU3ODg5MyAxLjA1MDI0TDEuMDUwMyAwLjU3ODgzMkMxLjE4MDQ3IDAuNDQ4NjU3IDEuMzkxNTMgMC40NDg2NTcgMS41MjE3IDAuNTc4ODMyTDYuMDAwMDQgNS4wNTcxOFoiIGZpbGw9IiM4Rjk1OUUiLz4KPC9zdmc+"},791:function(e,t,n){},792:function(e,t,n){"use strict";var r=n(45),a=n(58),i=n(43),o=n(49),c=n(80),u=n(81),s=n(51),l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),d=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),f=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},p=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return d(t,e),t},h=this&&this.__metadata||function(e,t){if("object"===("undefined"===typeof Reflect?"undefined":s(Reflect))&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)},g=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmForm=void 0;var v=p(n(0)),m=n(18),_=n(16),y=n(2),b=n(793),E=g(n(31)),M=g(n(94)),O=g(n(251)),I=g(n(127)),S=n(1),P=n(39),T=n(183),D=n(335);n(799);var A=function(e){c(n,e);var t=u(n);function n(e){var o;return i(this,n),o=t.call(this,e),o.radioGroups={},o.isControlled=!1,o.source=[],o.extraManager=[],o.ctx=null,o.measureMap=null,o.update=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(o.source=e,e.length){var t={formMode:o.props.mode};e.length!==o.extraManager.length&&(o.extraManager.forEach((function(e){return e.destroy})),o.extraManager=Array.from({length:e.length}),o.radioGroups={}),e.forEach((function(e,n){var r=e.type,a=e.name,i=void 0===a?"":a,c=e.value,u=void 0===c?"":c,s=o.extraManager[n]?o.extraManager[n]:o.extraManager[n]=new D.FieldExtra({index:n,queue:o.extraManager,ellipsisValue:o.ellipsisValue});s.update(e),(0,D.isValuelessField)(e)||(r!==T.FIELD_TYPE.RADIO_GROUP?t[i]=u:o.radioGroups[i.slice(0,-5)]=u)})),Object.entries(o.radioGroups).forEach((function(e){var n=a(e,2),r=n[0],i=n[1];return t[r]=i}))}},o.ellipsisValue=function(e,t){if(!e)return e;if(o.measureMap&&o.measureMap[0]>10&&o.ctx){var n=o.measureMap[t];return o.ctx.measureText(e).width<n?e:(0,S.ellipsisStr)(e,19)}return(0,S.getByteLength)(e)<22?e:(0,S.ellipsisStr)(e,19)},o.onValidate=function(){var e=!1,t=o.onSerialize(!0);return o.source.some((function(n){var r=n.required,a=n.value,i=n.rules,c=n.label,u=void 0===c?"":c;if((0,D.isOmitField)(n))return!1;if("string"===typeof a&&(a=a.trim()),r&&!a)return e="string"===typeof r?r:P.comLangStore.getLocale("SuiteAdminMP_Common_IsRequired",{name:u}),!0;if(i&&(r||a)){var s=o.validateRules(i,a,t);"string"===typeof s&&(e=s)}return!!e})),"string"!==typeof e||e},o.onSerialize=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e){var t=o.onValidate();if(!0!==t)return t}return o.source.reduce((function(e,t){if((0,D.isOmitField)(t))return e;var n=t.type,r=t.name,a=void 0===r?"":r,i=t.value;return n!==T.FIELD_TYPE.RADIO_GROUP?n===T.FIELD_TYPE.RADIO&&(0,M.default)(o.radioGroups,a)||(e[a]="string"===typeof i?i.trim():i):e[a]=o.radioGroups[a]||"",e}),{})},o.validateRules=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=!1;return e.some((function(e){return!e.validator(t,n)&&(r=e.help||"Error",!0)})),"string"!==typeof r||r},o.handleChange=function(e,t){var n=o.props.onChange,a=o.state.data;if(!((0,D.isOmitField)(o.source[t])||e.mode<T.FORM_MODE.READ)){var i=r(r({},e),{},{index:t});o.isControlled||(Object.assign(a[t],i),o.setState({data:a})),n&&n(i)}},o.handleItemClick=function(e,t,n,r){if(!(n<T.FORM_MODE.READ)){var a=t.onClick,i=t.name;a&&a(e,(function(e){return o.handleChange({value:e,mode:n,name:i},r)}))}},o.handleItemChange=function(e,t,n,r){if(!(n<T.FORM_MODE.READ)){var a=t.name,i=void 0===a?"":a;o.handleChange({value:e,mode:n,name:i},r)}},o.handleFocus=function(e,t){e<T.FORM_MODE.READ||o.extraManager[t].shouldUpdateByStatus("edit")&&o.forceUpdate()},o.handleBlur=function(e,t){e<T.FORM_MODE.READ||o.extraManager[t].shouldUpdateByStatus("read")&&o.forceUpdate()},o.state={data:(0,O.default)(e.defaultFormData)||[]},o.isControlled=(0,M.default)(e,"formData"),o.update(o.isControlled?o.props.formData:o.state.data),o}return o(n,[{key:"componentDidMount",value:function(){this.ctx=(0,_.createCanvasContext)("am-canvas"),this.ctx.setFontSize(14)}},{key:"componentWillUpdate",value:function(e,t){this.update(this.isControlled?e.formData:t.data)}},{key:"componentDidUpdate",value:function(e,t){this.measureMap&&this.source.length&&(this.measureMap=[],(0,D.executeQuery)((0,_.getCurrentInstance)().page,".am-form .item-input",this.measureMap))}},{key:"render",value:function(){var e=this,t=this.props,n=t.mode,a=void 0===n?T.FORM_MODE.EDIT:n,i=t.className,o=t.style;return v.default.createElement(y.View,{className:(0,E.default)("".concat(P.PREFIX,"-form"),i),style:o},this.source.map((function(t,n){if((0,v.isValidElement)(t))return(0,P.renderElementOrInstance)(t,{key:"formitem-".concat(n),index:n});var i=t.type,o=t.mode,c=void 0===o?T.FORM_MODE.EDIT:o,u=t.forceMode,s=t.name,l=void 0===s?"":s,d=t.value,f=t.custom,p=e.extraManager[n],h=p.noBorder,g=p._value,m="formitem-".concat(l,"-").concat(n),_=null!=u?u:c<=a?c:a,y=_===T.FORM_MODE.EDIT,E=(0,M.default)(e.radioGroups,l),O=r(r({},(0,I.default)(t,"forceMode","rules")),{},{index:n,mode:_,noBorder:h});return f?v.default.createElement(b.FormCustomItem,r(r({key:m},O),{},{onClick:function(r){return e.handleItemClick(r,t,_,n)}})):i===T.FIELD_TYPE.SWITCH?v.default.createElement(b.FormSwitchItem,r(r({key:m},O),{},{value:!!d,onClick:function(){return e.handleItemChange(!d,t,_,n)}})):[T.FIELD_TYPE.RADIO,T.FIELD_TYPE.CHECKBOX].includes(i)?v.default.createElement(b.FormRadioItem,r(r({key:m},O),{},{value:E?e.radioGroups[l]===d:!!d,onClick:function(){return e.handleItemChange(E?d:!d,t,_,n)}})):[T.FIELD_TYPE.RADIO_GROUP,T.FIELD_TYPE.SECTION,T.FIELD_TYPE.TOP_TITLE,T.FIELD_TYPE.BOTTOM_DES].includes(i)?v.default.createElement(b.FormOtherItem,r({key:m},t)):v.default.createElement(b.FormInputItem,r(r({key:m},O),{},{value:y?g:d,onChange:function(r){return e.handleItemChange(r.detail.value,t,_,n)},onClick:function(r){return e.handleItemClick(r,t,_,n)},onFocus:function(){return e.handleFocus(_,n)},onBlur:function(){return e.handleBlur(_,n)}}))})),v.default.createElement(y.Canvas,{className:"am-canvas",canvasId:"am-canvas"}))}}]),n}(v.Component);A.defaultProps={mode:T.FORM_MODE.EDIT,defaultFormData:null},A=f([m.observer,h("design:paramtypes",[Object])],A),t.AmForm=A},793:function(e,t,n){"use strict";var r=n(45),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormOtherItem=t.FormRadioItem=t.FormSwitchItem=t.FormCustomItem=t.FormInputItem=void 0;var i=a(n(0)),o=n(2),c=n(250),u=n(84),s=n(1),l=n(39),d=a(n(31)),f=n(183),p=a(n(798)),h=a(n(101)),g=n(16),v=function(e){var t=e.label,n=e.desc,r=e.required,a=e.prefix,c=e.isLabelFull,s=void 0!==c&&c,f=e.e2eId,p=void 0===f?"":f,h=i.default.createElement(o.Block,null,t&&i.default.createElement(o.View,{className:"item-info"},i.default.createElement(u.AmBadge,{required:!!r},t)),m(a));return i.default.createElement(o.View,{id:p,className:(0,d.default)("".concat(l.PREFIX,"-form-item-label g-align-center"),{full:s})},n?i.default.createElement(o.View,{className:"g-flexbox-column"},i.default.createElement(o.View,{className:"g-flex-left"},h),i.default.createElement(o.View,{className:"item-desc"},n)):h)},m=function(e){if(!e)return null;if((0,s.isImage)(e))return i.default.createElement(o.Image,{className:"item-prefix i-small",src:e});if((0,p.default)(e))return i.default.createElement(o.View,{className:"item-s-prefix text"},e);var t=e||{},n=t.content,r=t.style;return i.default.createElement(o.View,{className:"item-tag g-flex-none",style:r},n)},_=function(e){return e?!0===e||(0,s.isImage)(e)?i.default.createElement(o.Image,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-suffix i-small")),src:!0===e?h.default:e}):i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-suffix text g-ellipsis"))},e):null},y=function(e){var t=e.type,n=e.mode,r=void 0===n?f.FORM_MODE.EDIT:n,a=e.suffix,c=e.noBorder,u=e.style,s=e.value,p=e.maxLength,h=void 0===p?64:p,g=e.placeholder,m=e.onClick,y=e.onChange,b=e.onFocus,E=e.onBlur,M=e.className,O=r===f.FORM_MODE.EDIT,I=r===f.FORM_MODE.DISABLE,S=r>=f.FORM_MODE.READ;return i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item g-flexbox g-align-center"),{"b-bottom-svg-1px":!c},M),style:u,onClick:m},v(e),i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-content g-flex g-flexbox g-align-center"),{input:O})},O?i.default.createElement(o.Input,{type:t,className:"item-input g-flex",onInput:y,value:s,placeholder:S?g:"",placeholderStyle:"color: #bbbfc4",maxlength:h,onFocus:b,onBlur:E}):i.default.createElement(o.View,{className:(0,d.default)("item-text g-flex g-ellipsis",{disabled:I,empty:!s&&!!g})},s||(S?g:"")),_(a)))};t.FormInputItem=y;var b=function(e){var t=e.type,n=e.suffix,r=e.noBorder,a=e.style,c=e.children,u=e.custom,s=e.onClick,p=c||(0,l.renderElementOrInstance)(u);return t===f.FIELD_TYPE.PARTIAL_CUSTOM?i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item g-flexbox g-align-center custom"),{"b-bottom-svg-1px":!r}),style:a,onClick:s},v(e),i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-content g-flex g-flexbox g-align-center"))},p,_(n))):i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-custom-item"),{"b-bottom-svg-1px":!r}),onClick:s,style:a},p)};t.FormCustomItem=b;var E=function(e){var t=e.mode,n=void 0===t?f.FORM_MODE.EDIT:t,r=e.noBorder,a=e.style,u=e.value,s=e.onClick,p=n===f.FORM_MODE.DISABLE;return i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item g-flexbox g-align-center switch"),{"b-bottom-svg-1px":!r}),style:a},v(e),i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-content g-flex"))},i.default.createElement(c.AmSwitch,{disabled:p,checked:u,onChange:s,style:{height:"100%",paddingLeft:(0,g.pxTransform)(20),paddingRight:(0,g.pxTransform)(18)}})))};t.FormSwitchItem=E;var M=function(e){var t=e.type,n=e.mode,a=void 0===n?f.FORM_MODE.EDIT:n,u=e.suffix,s=e.noBorder,p=e.style,h=e.value,g=e.onClick,m=a===f.FORM_MODE.DISABLE;return i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item g-flexbox g-align-center radio"),{"b-bottom-svg-1px":!s,disabled:m}),style:p,onClick:g},i.default.createElement(o.View,{className:"radio-wrapper"},i.default.createElement(c.AmSwitch,{type:t===f.FIELD_TYPE.RADIO?"circle":"checkbox",checked:h,disabled:m,style:{height:"100%"}})),v(r(r({},e),{},{isLabelFull:!u})),i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-item-content g-flex g-flexbox g-align-center"),{hidden:!u})},_(u)))};t.FormRadioItem=M;var O=function(e){var t=e.type,n=e.style,r=e.label,a=void 0===r?"":r;return t===f.FIELD_TYPE.SECTION?i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-section"),{blank:0===a.length}),style:n},a):t===f.FIELD_TYPE.TOP_TITLE?i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-toptitle b-top-svg-1px")),style:n},i.default.createElement(o.Text,{className:"toptitle-content"},a)):t===f.FIELD_TYPE.BOTTOM_DES?i.default.createElement(o.View,{className:(0,d.default)("".concat(l.PREFIX,"-form-bottomdes")),style:n},a):null};t.FormOtherItem=O},794:function(e,t,n){"use strict";var r=n(58),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(0)),s=n(2),l=c(n(31)),d=c(n(94)),f=n(39),p=c(n(795)),h=c(n(796)),g=c(n(327)),v=c(n(328)),m=c(n(329)),_=c(n(330));n(797);var y={checkbox:{check:g.default,checkDisable:v.default,uncheck:_.default,uncheckDisable:m.default},circle:{check:p.default,checkDisable:h.default,uncheck:_.default,uncheckDisable:m.default}},b=function(e){var t=e.checked,n=e.defaultChecked,a=void 0!==n&&n,i=e.disabled,o=e.type,c=e.onChange,p=e.className,h=e.style,g=(0,u.useState)(a),v=r(g,2),m=v[0],_=v[1],b=(0,d.default)(e,"checked"),E=b?t:m,M="switch"===o,O=M?"":y[o]["".concat(E?"check":"uncheck").concat(i?"Disable":"")],I=function(e){i||(e.detail.value=!E,!b&&_(!E),c&&c(e))};return u.default.createElement(s.View,{className:(0,l.default)("".concat(f.PREFIX,"-switch"),p),style:h,onClick:I},M?u.default.createElement(s.View,{className:(0,l.default)("".concat(f.PREFIX,"-").concat(o,"-input"),{checked:E,disabled:i})}):u.default.createElement(s.Image,{className:"".concat(f.PREFIX,"-checkbox-input i-large"),src:O}))};b.defaultProps={type:"switch",disabled:!1},t.default=b},795:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiMzMzcwRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTE4IDBjOS45NDEgMCAxOCA4LjA1OSAxOCAxOHMtOC4wNTkgMTgtMTggMThTMCAyNy45NDEgMCAxOCA4LjA1OSAwIDE4IDB6bTAgMTFjLTMuODY2IDAtNyAzLjEzNC03IDdzMy4xMzQgNyA3IDcgNy0zLjEzNCA3LTctMy4xMzQtNy03LTd6Ii8+Cjwvc3ZnPgo="},796:function(e,t){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij4KICAgIDxwYXRoIGZpbGw9IiNDM0M2Q0IiIGQ9Ik0xOCAwYzkuOTQxIDAgMTggOC4wNTkgMTggMThzLTguMDU5IDE4LTE4IDE4UzAgMjcuOTQxIDAgMTggOC4wNTkgMCAxOCAwem0wIDExYy0zLjg2NiAwLTcgMy4xMzQtNyA3czMuMTM0IDcgNyA3IDctMy4xMzQgNy03LTMuMTM0LTctNy03eiIvPgo8L3N2Zz4K"},797:function(e,t,n){},799:function(e,t,n){},800:function(e,t,n){},801:function(e,t,n){"use strict";var r=n(43),a=n(49),i=n(80),o=n(81),c=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),u=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&c(t,e,n);return u(t,e),t},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var d=s(n(0)),f=n(3),p=n(2),h=n(802),g=n(16),v=n(39),m=l(n(31));n(803);var _=0,y="...",b=50,E=function(e){i(n,e);var t=o(n);function n(e){var a;return r(this,n),a=t.call(this,e),a.canvasId="am-picker-tag-canvas-".concat(_),a.getShowList=function(){var e=a.props,t=e.ouList,n=void 0===t?[]:t,r=e.maxRowCount,i=e.containerWidth,o=void 0===i?343:i;if(!r||0===o)return n;a.canvasContext=(0,g.createCanvasContext)(a.canvasId);var c=[],u=o,s=1,l=16+(0,v.measureTextWidth)(a.canvasContext,y);return(0,f.toJS)(n).forEach((function(e,t){if(u<=0&&(u=o,s+=1),!(s>r)){var i=e.name,d=b+(0,v.measureTextWidth)(a.canvasContext,i),f=Math.min(d,o-l);if(s<r){c.push(e),s+=f<=u?0:1;var p=f<=u?u:o;u=p-f}else s===r&&(t===n.length-1&&c.length===n.length-1&&f<=u||f<=u-l)&&(u-=f,c.push(e))}})),c},_+=1,a}return a(n,[{key:"render",value:function(){var e=this.props,t=e.ouList,n=void 0===t?[]:t,r=e.className,a=e.style,i=e.maxRowCount,o=e.onEdit,c=e.topTip,u=e.needBorder,s=void 0!==u&&u,l=n.length,f=this.getShowList(),g=v.comLangStore.getLocale;return d.default.createElement(p.View,{className:(0,m.default)("am-picker-tag",r,s&&"b-top-svg-1px b-bottom-svg-1px"),style:a},d.default.createElement(p.View,{className:"g-flex-between"},c&&d.default.createElement(p.View,{className:"am-picker-tag-title"},c),"function"===typeof o&&d.default.createElement(p.View,{className:"am-picker-tag-edit",onClick:o},g("SuiteAdminMP_Common_Edit"))),d.default.createElement(p.View,{className:"g-flexbox am-picker-tag-container"},f.map((function(e){return d.default.createElement(h.TagItem,{key:e.id,ouItem:e})})),!!i&&f.length<l&&d.default.createElement(h.TagItem,{ouItem:{name:y},isMore:!0})),d.default.createElement(p.Canvas,{canvasId:this.canvasId,style:{display:"none"}}))}}]),n}(d.Component);t.default=E},802:function(e,t,n){"use strict";var r=n(58),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TagItem=void 0;var u,s=o(n(0)),l=n(2),d=c(n(31)),f=c(n(182)),p=n(100);(function(e){e[e["VALID"]=1]="VALID",e[e["EXPIRED"]=2]="EXPIRED"})(u||(u={}));var h=function(e){var t=e.isMore,n=void 0!==t&&t,a=e.ouItem,i=a.type,o=a.name,c=a.avatar,h=a.status,g=(0,s.useState)(!1),v=r(g,2),m=v[0],_=v[1],y=i===p.NODE_TYPE_NEW.OU||!!c;return s.default.createElement(l.View,{className:(0,d.default)("g-flexbox g-align-center am-picker-tag-item",{error:h===u.EXPIRED,more:n})},y&&s.default.createElement(l.View,{className:(0,d.default)("am-picker-tag-logo g-avatar g-flex-center")},i===p.NODE_TYPE_NEW.OU?s.default.createElement(l.View,{className:"g-avatar-img dept"}):s.default.createElement(l.Image,{className:(0,d.default)("g-avatar-img",{"with-background":!m}),src:c||f.default,onLoad:function(){return _(!0)}})),s.default.createElement(l.View,{className:"g-flex am-picker-tag-name g-ellipsis"},o))};t.TagItem=h},803:function(e,t,n){},808:function(e,t,n){},809:function(e,t,n){"use strict";var r=n(45),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmActionModalWrapper=void 0;var i=a(n(0)),o=n(2),c=n(18),u=a(n(31)),s=n(39),l=n(336),d=n(246),f=function(e){var t=e.pageKey,n=void 0===t?"":t,a=d.ActionModalManager,c=a.actionModalSeqs,f=c[n]||[];return i.default.createElement(o.View,{className:(0,u.default)("".concat(s.PREFIX,"-action-modal-wrapper"))},f.map((function(e){var t=e.id,n=e.actionModalProps;return i.default.createElement(l.AmActionModal,r(r({key:t,actionModalId:t},n),{},{maskClosable:!0}))})))};f.defaultProps={},t.AmActionModalWrapper=(0,c.observer)(f)},815:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmActionButton=void 0;var a=r(n(0)),i=n(2),o=r(n(31)),c=r(n(38)),u=n(39),s=n(55);n(816);var l=function(e){var t=e.className,n=e.style,r=e.text,l=e.onClick,d=e.loading,f=e.color,p=e.size,h=e.border,g=e.disabled;return a.default.createElement(i.View,{className:(0,o.default)("".concat(u.PREFIX,"-action-button"),t,f,{"b-top-svg-1px":h,"b-bottom-svg-1px":h}),style:n},a.default.createElement(i.Button,{className:"".concat(u.PREFIX,"-action-button-btn"),onClick:g&&d?c.default:l},a.default.createElement(s.AmSingleSpin,{color:f,className:"".concat(u.PREFIX,"-action-button-loading"),size:p,spinning:d,tip:r})))};t.AmActionButton=l,t.AmActionButton.defaultProps={onClick:c.default,loading:!1,color:"primary",size:"small",border:!1,disabled:!1}},816:function(e,t,n){},82:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmSearchInput=void 0;var a=n(786);Object.defineProperty(t,"AmSearchInput",{enumerable:!0,get:function(){return r(a).default}})},84:function(e,t,n){"use strict";var r=n(73),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmBadge=void 0;var i=a(n(0)),o=n(2),c=a(n(31)),u=n(39),s=a(n(94));n(742);var l=function(e){var t=e.count,n=e.text,a=e.dot,l=e.required,d=e.type,f=e.overflowCount,p=e.className,h=e.style,g=(0,s.default)(e,"children"),v="";if(null!=n?v=n:t?v=isNaN(+t)?0:+t<f?+t:"".concat(f,"+"):(l||a)&&(v=!!l||!!a),!v)return g?i.default.createElement(o.View,{className:(0,c.default)("".concat(u.PREFIX,"-badge"),p),style:h},e.children):null;var m=function(){var e;return i.default.createElement(o.View,{className:(0,c.default)(!g&&["".concat(u.PREFIX,"-badge"),p],"".concat(u.PREFIX,"-badge-content"),d,(e={},r(e,l?"required":"dot",!0===v),r(e,"text",!0!==v),r(e,"circle",1===(v+"").length),r(e,"with-child",g),e)),style:g?void 0:h},v)};return g?i.default.createElement(o.View,{className:(0,c.default)("".concat(u.PREFIX,"-badge"),p),style:h},e.children,m()):m()};t.AmBadge=l,t.AmBadge.defaultProps={type:"danger",overflowCount:99}},853:function(e,t,n){"use strict";var r=n(45),a=n(58),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmTouchView=void 0;var s=c(n(0)),l=u(n(31)),d=n(2),f=u(n(94)),p=n(39),h=u(n(182)),g=n(16);n(854);var v=102,m=.5,_={x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},y=function(e){var t=e.aRef,n=e.text,i=e.avatar,o=e.className,c=e.style,u=e.suffix,y=e.suffixType,b=e.onSuffixClick,M=e.distance,O=void 0===M?v:M,I=!!u,S=(0,s.useRef)(0),P=(0,s.useRef)({}),T=(0,s.useRef)(!1),D=(0,s.useState)({}),A=a(D,2),N=A[0],L=A[1],w=(0,s.useState)(!1),C=a(w,2),j=C[0],x=C[1],R=(0,f.default)(e,"avatar");(0,s.useImperativeHandle)(t,(function(){return{onClose:Y,isOpened:!!S.current}}),[S.current]);var k=function(e){if(I){var t=e&&e.touches&&e.touches[0],n=t.clientX,a=t.clientY;P.current=r(r({},P.current),{},{clientStart:{x:n,y:a}})}},U=function(e){if(I){var t=e&&e.touches&&e.touches[0],n=t.clientX,a=t.clientY;P.current=r(r({},P.current),{},{clientMove:{x:n,y:a}});var i=P.current,o=i.clientStart,c=i.clientMove,u=E(o,c);if(o&&!(Math.abs(u)>=30)){var s=o.x-c.x,l=S.current;s>0&&S.current!==O?l=s<O?s:O:s<0&&0!==S.current&&(l=O+s>0?O+s:0),l!==S.current&&(S.current=l,L({transform:"translateX(-".concat((0,g.pxTransform)(l),")")}),T.current||(T.current=!0))}}},F=function(e){if(I&&T.current){var t=S.current>=O*m?O:0;Y(e,t)}},V=function(e){b&&b(),Y(e,0)},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e&&e.stopPropagation&&e.stopPropagation(),P.current={clientMove:_,clientStart:_},T.current=!1,S.current=t,L({transform:"translateX(-".concat((0,g.pxTransform)(t),")")})};return s.default.createElement(d.View,{className:(0,l.default)("".concat(p.PREFIX,"-touch-item g-flexbox"),o),style:Object.assign(N,c),onTouchStart:k,onTouchEnd:F,onTouchMove:U},s.default.createElement(d.View,{className:(0,l.default)("item-wrapper g-flexbox g-flex")},s.default.createElement(d.View,{className:"item-wrapper-main g-flexbox g-align-center"},R&&s.default.createElement(d.View,{className:"g-avatar item-wrapper-main-avatar"},s.default.createElement(d.Image,{className:(0,l.default)("g-avatar-img",{"with-background":!j}),src:i||h.default,onLoad:function(){return x(!0)}})),s.default.createElement(d.View,{className:"item-wrapper-main-content g-flex g-flexbox g-align-center b-bottom-svg-1px"},n||e.children)),u&&s.default.createElement(d.View,{className:(0,l.default)("item-wrapper-suffix g-flex-center",y),style:"flex: 1 0 ".concat((0,g.pxTransform)(O)),onClick:V},"string"===typeof u?u:(0,p.renderElementOrInstance)(u))))};t.AmTouchView=y,t.AmTouchView.defaultProps={suffixType:"",distance:v};var b={x:0,y:0};function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,n=+t.x-+e.x,r=+t.y-+e.y;return 360*Math.atan(r/n)/(2*Math.PI)}},854:function(e,t,n){},860:function(e,t,n){"use strict";var r=n(58),a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(0)),s=n(2),l=c(n(31)),d=c(n(182)),f=function(e){var t=e.avatar,n=e.className,a=(0,u.useState)(!1),i=r(a,2),o=i[0],c=i[1];return u.default.createElement(s.View,{className:(0,l.default)("g-avatar g-flex-center")},u.default.createElement(s.Image,{className:(0,l.default)("g-avatar-img",n,{"with-background":!o}),src:t||d.default,onLoad:function(){return c(!0)}}))};f.defaultProps={avatar:""},t.default=f},883:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=n(2),o=r(n(31));n(884);var c=function(e){var t=e.text,n=void 0===t?"":t,r=e.color,c=void 0===r?"neutral":r,u=e.style,s=e.className;return a.default.createElement(i.View,{className:(0,o.default)(["am-tag","preset-".concat(c),s]),style:u},a.default.createElement(i.Text,null,n))};t.default=c},884:function(e,t,n){},887:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n(0)),i=n(2),o=r(n(31));n(888);var c=function(e){var t=e.tabs,n=void 0===t?[]:t,r=e.onChange,c=void 0===r?function(){}:r,u=e.activeKey,s=void 0===u?n[0]&&n[0].key:u,l=n.findIndex((function(e){var t=e.key;return t===s})),d=100/n.length,f=100*l;return a.default.createElement(i.View,{className:"am-tab-nav g-header g-flexbox-column"},a.default.createElement(i.View,{className:"g-flexbox"},n.map((function(e){var t=e.key,n=e.label;return a.default.createElement(i.View,{key:t,className:(0,o.default)(["tab","ellipsis-text",{"tab-active":t===s}]),onClick:function(){return t!==s&&c(t)}},a.default.createElement(i.Text,{className:o.default["ellipsis-text"]},n))}))),a.default.createElement(i.View,{className:(0,o.default)(["scrollbar"]),style:{width:"".concat(d,"%"),transform:"translateX(".concat(f,"%)")}}))};t.default=c},888:function(e,t,n){},99:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getNavType=t.concatQuery=t.PRELOAD=t.HISTORY_PRELOAD=t.HISTORY_CONFIG=t.OPEN_TYPE=t.NAV_TYPE=void 0;var a,i=r(n(268));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object.getOwnPropertyNames(t).length)return e;var n=i.default.stringify(t);return e+(e.includes("?")?"&":"?")+n}function c(e){switch(e){case"navigateTo":return a.GO;case"navigateBack":return a.BACK;case"redirectTo":return a.REPLACE;case"reLaunch":return a.RELOAD}}(function(e){e["GO"]="go",e["BACK"]="back",e["REPLACE"]="replace",e["RELOAD"]="reload"})(a=t.NAV_TYPE||(t.NAV_TYPE={})),function(e){e["NAVIGATETO"]="navigateTo",e["REDIRECTTO"]="redirectTo",e["NAVIGATEBACK"]="navigateBack",e["SWITCHTAB"]="switchTab",e["APPLAUNCH"]="appLaunch",e["RELAUNCH"]="reLaunch",e["AUTORELAUNCH"]="autoReLaunch"}(t.OPEN_TYPE||(t.OPEN_TYPE={})),t.HISTORY_CONFIG="_by_config_injector_",t.HISTORY_PRELOAD="_by_preload_injector_",t.PRELOAD="_preload_",t.concatQuery=o,t.getNavType=c}}]);
|
|
}); |