/*! For license information please see apaasutils.umd.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("rtXpc"),require("Vue"),require("wangEditor"),require("axios")):"function"==typeof define&&define.amd?define(["rtXpc","Vue","wangEditor","axios"],t):"object"==typeof exports?exports.apaasutils=t(require("rtXpc"),require("Vue"),require("wangEditor"),require("axios")):e.apaasutils=t(e.rtXpc,e.Vue,e.wangEditor,e.axios)}("undefined"!=typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__6f97__,__WEBPACK_EXTERNAL_MODULE__8bbf__,__WEBPACK_EXTERNAL_MODULE__8eed__,__WEBPACK_EXTERNAL_MODULE_cebe__){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({0:function(e,t){},"004b":function(e,t,r){var i=r("f398");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2f80fa6d",i,!0,{sourceMap:!1,shadowMode:!1})},"0072":function(e,t,r){var i=r("26b2");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4055e862",i,!0,{sourceMap:!1,shadowMode:!1})},"0092":function(e,t,r){"use strict";var i=r("9ab4"),a={name:"UploadErrTable",props:{tableData:{type:Array,default:function(){return[]}}},mounted(){this.tableData.length>0&&rt.showErrorToast(this.$_t("platform.attachmentErrtable_uploaderr","附件上传未能完全成功!"))},methods:{_fetchRecords(){return new Promise(e=>{e(this.tableData)})}}},n=r("0c7c"),o=Object(n.a)(a,(function(){var e=this.$createElement,t=this._self._c||e;return t("rc-table",{staticClass:"plat-upload-errTable",attrs:{"show-border":"",stripe:"","header-weight":"medium",height:"300","show-pagination":!1,fetch:this._fetchRecords,sectionable:!1}},[t("rc-table-column",{attrs:{prop:"fileName",width:"120",label:this.$_t("common.filename","文件名")}}),t("rc-table-column",{attrs:{prop:"errMsg",label:this.$_t("platform.batchUploadImage.failureReason","失败原因")}})],1)}),[],!1,null,null,null).exports,s=r("da2d"),l=r("6f97"),d=r.n(l),c=r("1b40"),u=r("fd92");function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=d.a.ELEMENT.Image.components.ImageViewer;let f=class extends(Object(c.c)(s.a)){constructor(...e){super(...e),p(this,"rowNum",void 0),p(this,"isPrint",void 0),p(this,"notekey",void 0),p(this,"canDownload",void 0),p(this,"canDelete",void 0),p(this,"canUpload",void 0),p(this,"disabled",void 0),p(this,"fileSize",void 0),p(this,"fileType",void 0),p(this,"fileExtensions",void 0),p(this,"showStyle",void 0),p(this,"customRequestUrl",void 0),p(this,"hiddenDefaultDiagram",void 0),p(this,"pdfReviewerURL",void 0),p(this,"required",void 0),p(this,"isOpenCollapse",void 0),p(this,"isExpand",void 0),p(this,"fit","contain"),p(this,"loading",!1),p(this,"defaultUrl","api/attachment/query"),p(this,"icon_uploadUrl",rt.getPublicUrl()+"imgs/icon_upload.png"),p(this,"versionUploadUrl",rt.getBaseUrl()+"api/attachment/upload"),p(this,"videoVisible",!1),p(this,"pdfVisible",!1),p(this,"uploadConf",{}),p(this,"currentUrlIndex",0),p(this,"topdfExts",[".ppt",".pptx",".doc",".docx",".xls",".xlsx",".txt"]),p(this,"rules",[]),p(this,"bias"," / "),p(this,"paged",void 0),p(this,"customFileType",""),p(this,"pageSizes",[5,10,20]),p(this,"defaultPageSize",void 0),p(this,"pageSize",5),p(this,"currentPage",1),p(this,"total",0),p(this,"getAttachmentPromise",Promise.resolve())}get isShowNoData(){return null==this.tableData||0==this.tableData.length}handleDefaultPageSizeChanged(e,t){e&&e!=t&&(this.pageSize=e)}get noteKey(){return(this.notekey||"notekey")+rt.newGuid()}get fileSizeValue(){let e=this.$store.state.systemparameter&&parseInt(this.$store.state.systemparameter.FileSizeLimit);return this.fileSize&&this.fileSize<1024*e?this.fileSize/1024:e}get isShowPagination(){return this.paged&&!this.isPrint&&this.computedTotal>5}get computedTotal(){return this.objectId?this.total:this.fileList&&Array.isArray(this.fileList)?this.fileList.filter(e=>e.loadStatus).length:0}set computedTotal(e){this.total=e}handleUpload(){this.$refs.uploadVersion.handleClickFn()}handleSizeChange(e){this.pageSize=e,this.currentPage=1,this.getAttachment()}handleCurrentChange(e){this.currentPage=e,this.getAttachment()}get isShowUploadAttachment(){return this.canUpload&&!this.disabled}get newFileExtensions(){return this.customFileType||this.fileExtensions}get hasError(){return!!this.errorData&&!!this.errorData.length}handleObjectIdChanged(e,t){e!=t&&e&&this.getAttachment(!1)}handleDialogVisibleChanged(e){e||(this.closeDialog(),this.uploadFailed&&this.handleClose(),this.handleClosed())}handleReRenderChanged(){this.getAttachment().then(()=>{this.setRules()})}handleRequired(){this.dispatch()}get reRender(){return{defaultPageSize:this.defaultPageSize,notekey:this.notekey,limitCount:this.limitCount,paged:this.paged,isOverwrite:this.isOverwrite}}mounted(){this.getAttachment().then(()=>{this.setRules()})}setRules(){this.required?this.rules=[{message:this.errorMessage,required:this.required,trigger:"change",validator:(e,t,r)=>{if(!this.isOverwrite&&this.computedTotal{e.style.width=r,e.style["min-height"]=e.clientWidth+"px"})}async getAttachment(e=!0){return await this.getAttachmentPromise,this.getAttachmentPromise=new Promise(async(t,r)=>{if(!this.objectId){this.isOverwrite&&this.fileList.length>0&&(this.fileList=[this.fileList[this.fileList.length-1]]);let e=[];const r=this;let i=0,a=this.fileList.length;if(this.paged){i=(this.currentPage-1)*this.pageSize;let e=this.currentPage*this.pageSize;a=enew Promise((t,i)=>{let a=new FileReader;a.readAsDataURL(e.fileParam.file),a.onload=function(i){t({...e,isAdd:!0,name:r.isOverwrite?r.getFileName(e.fileParam.file.name):e.fileParam.file.name,uid:e.fileParam.file.uid,size:e.fileParam.file.size,url:this.result,previewUrl:this.result})}});for(let t=i;t{this.tableData=e,this.isOverwrite?this.canUploadCount=1:this.canUploadCount=(this.limitCount||1)-this.computedTotal,t()}).catch(()=>{this.tableData=[]})}this.loading=!0;let i=this.customRequestUrl||this.defaultUrl,a=!0;i&&i.split("?").length<=1&&(a=!1),i=i+(a?"&moduleType=":"?moduleType=")+this.objectTypeName+"&objectId="+this.objectId,i+="¬ekey="+(null!=this.notekey?this.notekey:""),i+="&paged="+!(!this.paged||this.isPrint),i+="&pageSize="+this.pageSize,i+="&pageIndex="+this.currentPage;try{const r=await rt.get(i);let a=this.customRequestUrl&&!this.paged?r:r.Data;if(this.computedTotal=r.TotalRecordCount||0,!r.TotalRecordCount&&Array.isArray(a)&&(this.computedTotal=a.length),a&&a.length>0){let e=[];a.forEach(t=>{const r=t&&t.MimeType&&-1!=t.MimeType.indexOf("image");let i=rt.getBaseUrl()+"api/attachment/download/"+this.objectTypeName+"/"+t.Id;t.OssUrl&&(i=this.checkPathIsUrl(t.OssUrl)?t.OssUrl:rt.getBaseUrl()+t.OssUrl),e.push({id:t.Id,url:i,name:t.FileName,size:t.FileSize,isPreview:r,createdby:t.createdby,uploadTime:t.CreatedOn,ossUrl:t.OssUrl,mimeType:t.MimeType,previewUrl:t.previewUrl,provider:t.Provider})}),this.tableData=e,this.$nextTick(()=>{this.setItemStyle()}),this.canUploadCount=(this.limitCount||1)-this.computedTotal}else this.tableData=[],this.canUploadCount=this.limitCount||1;this.isOverwrite&&(this.canUploadCount=1),this.loading=!1,e&&(this.signatures=[]),t(r)}catch(t){this.loading=!1,rt.showErrorToast(t),e&&(this.signatures=[]),r(t),e&&(this.tableData=[])}}),this.getAttachmentPromise}fileupload(){this.checkIsPreview()||(this.isOverwrite||this.checkMaxCount(1))&&(this.dialogVisible=!0)}async filedeleteClick(e,t,r){if(this.checkIsPreview())return;if(r&&r.id||(r=t),rt.showLoadingToast(),!this.objectId){const e=this.fileList.findIndex(e=>e.fileParam.file.uid===r.uid);return-1!==e&&(this.fileList.splice(e,1),this.signatures.splice(e,1)),rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("SUCCESS_DELETE","删除成功")),this.changeCurrentPage(),await this.getAttachment(),void this.dispatch()}const i="api/attachment/delete/"+this.objectTypeName+"/"+r.id;try{await rt.get(i),rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("SUCCESS_DELETE","删除成功")),this.changeCurrentPage(),await this.getAttachment(),this.dispatch();const e=`${this.objectTypeName}-note-${this.notekey}-afterdelete`;this.$bus.$emit(e,r)}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e)}}changeCurrentPage(){1!=this.currentPage&&(this.objectId?this.computedTotal-1:this.computedTotal)<=this.pageSize*(this.currentPage-1)&&this.currentPage--}beforeUpload(e){const t=e.name||"";if(this.fileData.FileName=this.getFileName(t),this.fileData.ModuleType=this.objectTypeName||"",this.fileData.ObjectId=this.objectId||"",this.fileData.ObjectTypeName=this.objectTypeName||"",this.fileData.NodeText=this.notekey||"",this.fileSizeValue&&e.size&&e.size>1024*this.fileSizeValue*1024)return this.hideRemoveConfirm=!0,this.saveErrData(t,this.$_t("Attachment_sizelimit","附件大小被限制在 {0} 以下",{0:this.fileSizeValue.toFixed(2)+"MB"})),!1;if(!this.isOverwrite&&this.checkSameName(t))return this.hideRemoveConfirm=!0,this.saveErrData(t,this.$_t("ExistSameFile","存在同名文件,请勿重复上传")),!1;if("*"!=this.newFileExtensions&&this.newFileExtensions){const e=this.newFileExtensions.split(","),r=t.lastIndexOf("."),i=t.substring(r);if(!e.some(e=>e==i.toLowerCase()))return this.hideRemoveConfirm=!0,this.saveErrData(t,this.$_t("platform.attachmentFileTypeErr","文件类型不正确,格式(")+this.newFileExtensions+this.$_t("platform.attachmentFileTypeError",")")),!1}if(this.$listeners.beforeupload){e.fileCount=this.tableData.length;let r=!0;this.$emit("beforeupload",e,e=>(e?r=!0:(this.saveErrData(t,this.$_t("platform.attachmentVerificationFailed","自定义校验未通过!")),r=!1),r))}}handleRemove(e,t){return new Promise(async(t,r)=>{try{let r,i=this.fileList.findIndex(t=>t.fileParam.file.name===(e.name||""));this.hideRemoveConfirm?r=[...this.fileList].splice(i,1):(this.errorData.splice(i,1),this.signatures.length===this.fileList.length&&this.signatures.splice(i,1),r=this.fileList.splice(i,1)),this.$refs.uploadVersion&&(this.uploadFiles=this.$refs.uploadVersion.uploadFiles),t(r)}catch(e){r(new Error)}finally{this.hideRemoveConfirm=!1}})}setCustomFileType(e){this.customFileType=e}dispatch(){this.setRules(),this.required&&this.$refs.formItem&&this.$refs.formItem.$refs&&this.$refs.formItem.$refs.formItemRef.onFieldChange()}};Object(i.__decorate)([Object(c.d)({default:2})],f.prototype,"rowNum",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"isPrint",void 0),Object(i.__decorate)([Object(c.d)({default:""})],f.prototype,"notekey",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"canDownload",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"canDelete",void 0),Object(i.__decorate)([Object(c.d)({default:!0})],f.prototype,"canUpload",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"disabled",void 0),Object(i.__decorate)([Object(c.d)({default:0})],f.prototype,"fileSize",void 0),Object(i.__decorate)([Object(c.d)({default:0})],f.prototype,"fileType",void 0),Object(i.__decorate)([Object(c.d)({default:"*"})],f.prototype,"fileExtensions",void 0),Object(i.__decorate)([Object(c.d)()],f.prototype,"showStyle",void 0),Object(i.__decorate)([Object(c.d)({default:""})],f.prototype,"customRequestUrl",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"hiddenDefaultDiagram",void 0),Object(i.__decorate)([Object(c.d)({default:""})],f.prototype,"pdfReviewerURL",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"required",void 0),Object(i.__decorate)([Object(c.d)({type:Boolean,default:!1})],f.prototype,"isOpenCollapse",void 0),Object(i.__decorate)([Object(c.d)({type:Boolean,default:!0})],f.prototype,"isExpand",void 0),Object(i.__decorate)([Object(c.d)({default:!1})],f.prototype,"paged",void 0),Object(i.__decorate)([Object(c.d)({default:5})],f.prototype,"defaultPageSize",void 0),Object(i.__decorate)([Object(c.g)("defaultPageSize",{immediate:!0})],f.prototype,"handleDefaultPageSizeChanged",null),Object(i.__decorate)([Object(c.g)("objectId")],f.prototype,"handleObjectIdChanged",null),Object(i.__decorate)([Object(c.g)("dialogVisible")],f.prototype,"handleDialogVisibleChanged",null),Object(i.__decorate)([Object(c.g)("reRender",{deep:!0})],f.prototype,"handleReRenderChanged",null),Object(i.__decorate)([Object(c.g)("required")],f.prototype,"handleRequired",null),f=Object(i.__decorate)([Object(c.a)({name:"RtNotes",components:{uploadErrTable:o,ElImageViewer:h,RtFormItem:u.a}})],f);var m=f,g=(r("f744"),r("babe"),Object(n.a)(m,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{attrs:{"is-open-collapse":e.isOpenCollapse,"is-expand":e.isExpand}},[r("apaas-header",{attrs:{slot:"header",icon:"plat-icon-paper-clip-lined",title:e.title},slot:"header"},[e.isShowUploadAttachment?r("rc-button",{attrs:{"icon-name":"rt-saas-upload-lined",size:"small"},on:{click:e.fileupload}},[e._v(" "+e._s(e.$_t("common.uploadattachment","上传附件"))+" ")]):e._e()],1),r("rc-form-item",{ref:"formItem",attrs:{prop:e.noteKey,rules:e.rules}},[r("input",{staticStyle:{width:"0",padding:"0",visibility:"hidden",border:"0"}}),r("div",{staticClass:"rt-attachment plat-attachment"},[2==e.showStyle?[e.isPrint?r("div",{staticClass:"isPrint"},e._l(e.tableData,(function(t){return r("div",{key:t.id,ref:"printItem",refInFor:!0,staticClass:"isPrintItem"},[r("el-image",{attrs:{src:t.url,fit:e.fit}}),r("div",{staticClass:"image-item",on:{click:function(r){return e.previewFile("",t,[])}}},[r("span",{staticClass:"image-tip"},[e._v(e._s(t.name))])])],1)})),0):[r("div",{staticClass:"attachment-node",attrs:{small:""}},[r("rc-upload-slide-filelist",{attrs:{"object-id":e.objectId,title:e.title,"show-download":e.canDownload&&!!e.objectId,"show-delete":e.canDelete&&e.objectId&&!e.disabled,data:e.tableData,"show-buttons":!1,"title-icon":"plat-icon-paper-clip-lined"},on:{"item-delete":e.filedeleteClick,"item-download":function(t,r){return e.downloadFile(r)},"item-click":e.previewFile}},[r("template",{slot:"right-top"},[e.isShowUploadAttachment?r("rc-button",{attrs:{"icon-name":"rt-saas-upload-lined",size:"small"},on:{click:e.fileupload}},[e._v(" "+e._s(e.$_t("common.uploadattachment","上传附件"))+" ")]):e._e()],1),null==e.tableData||0==e.tableData.length?r("rc-default-image",{class:{"plat-notes-default-image":!e.hiddenDefaultDiagram},attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e.required?r("span",{staticClass:"notes-required"},[r("rc-icon",{attrs:{name:"rt-base-required-lined",size:"10",type:"svg",color:e.PLATFORM_SCSS_VARIABLES.COLOR_DANGER}}),e._v(" "+e._s(e.$_t("Please-attachment","请至少上传"+e.limitMinCount+"个附件",{0:e.limitMinCount.toString()}))+" ")],1):r("span",[e._v(e._s(e.$_t("defaultImage.noAttachment","暂无附件")))])])]):e._e()],2)],1)]]:[r("rc-upload-filelist",{ref:"uploadFilelist",attrs:{title:e.title,data:e.tableData,"object-id":e.objectId,"upload-conf":e.uploadConf,"show-download":e.canDownload&&!!e.objectId,"show-delete":e.canDelete&&e.objectId&&!e.disabled,"show-edit":!1,"show-remark":!1,"show-title":!1,"show-buttons":!1,"title-icon":"plat-icon-paper-clip-lined"},on:{"item-delete":e.filedeleteClick,"item-download":function(t,r){return e.downloadFile(r)},"item-click":e.previewFile}},[e.isShowNoData?r("rc-default-image",{class:{"plat-notes-default-image":!e.hiddenDefaultDiagram},attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e.required?r("span",{staticClass:"notes-required"},[r("rc-icon",{attrs:{name:"rt-base-required-lined",size:"10",type:"svg",color:e.PLATFORM_SCSS_VARIABLES.COLOR_DANGER}}),e._v(" "+e._s(e.$_t("Please-attachment","请至少上传"+e.limitMinCount+"个附件",{0:e.limitMinCount.toString()}))+" ")],1):r("span",[e._v(e._s(e.$_t("defaultImage.noAttachment","暂无附件")))])])]):e._e()],1)],e.isShowPagination?r("rc-pagination",{staticClass:"notes-pagination",attrs:{"current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,total:e.computedTotal,small:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),r("rc-dialog",{attrs:{"append-to-body":!0,"custom-class":"uploadDialog",title:e.hasError&&!e.showUpload?e.$_t("platform.attachmentErrList","错误列表"):e.$_t("common.uploadattachment","上传附件"),width:"50%","close-on-click-modal":!1,"close-on-press-escape":!1,"hide-divider":"header"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e.dialogVisible?r("rc-upload",{directives:[{name:"show",rawName:"v-show",value:e.showUpload,expression:"showUpload"},{name:"loading",rawName:"v-loading",value:e.uploadLoading,expression:"uploadLoading"}],ref:"uploadVersion",staticClass:"upload-demo version-attachment",attrs:{limit:e.canUploadCount,"before-upload":e.beforeUpload,"drag-height":180,"drag-border-radius":10,"http-request":e.customRequest,"drag-bgcolor":"lighter","before-remove":e.handleRemove,"drag-border":"base",multiple:!0,drag:"",paste:"","on-exceed":e.uploadexceed,action:"","on-error":e.handleError,"on-change":e.checkRepeat,accept:e.newFileExtensions,"on-success":e.handleSuccess,data:e.fileData,"click-fn":e.handleUpload}},[r("div",{staticClass:"rtxpc-upload-dragger platform-upload-dragger"},[r("img",{attrs:{src:e.icon_uploadUrl}}),r("div",{staticClass:"platform-upload-text"},[r("span",{staticClass:"platform-upload-text_upload",on:{click:e.handleUpload}},[e._v(e._s(e.$_t("view.click_upload","点击上传")))]),e._v(" "+e._s(e.bias)+" "+e._s(e.$_t("view.drag_paste","拖拽上传 / 粘贴剪切板"))+" ")]),r("div",{staticClass:"platform-upload-placeholder"},[e._v(" "+e._s(e.$_t("single_files","单个文件需小于 {0}",{0:e.fileSizeValue.toFixed(2)})+"MB")+" ")])])]):e._e(),e.hasError?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.showUpload,expression:"!showUpload"}]},[r("uploadErrTable",{attrs:{"table-data":e.errorData}})],1):e._e(),r("template",{slot:"footer"},[r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showUpload&&e.hasError&&e.fileList.length>0,expression:"showUpload && hasError && fileList.length > 0"}],attrs:{type:"primary",loading:e.buttonLoading},on:{click:e.batchUpload}},[e._v(e._s(e.$_t("platform.attachment_upload_rest","上传剩余文件"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.hasError,expression:"hasError"}],on:{click:function(t){e.showUpload=!e.showUpload}}},[e._v(" "+e._s(e.showUpload?e.$_t("platform.attachmentShowerrList","显示错误列表"):e.$_t("platform.attachmentShowUploadresult","显示上传结果"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showUpload&&!e.hasError,expression:"showUpload && !hasError"}],on:{click:function(t){return e.reset(!0,!0)}}},[e._v(e._s(e.$_t("platform.attachmentReset","重 置"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showUpload&&!e.hasError,expression:"showUpload && !hasError"}],attrs:{type:"primary",loading:e.buttonLoading},on:{click:e.batchUpload}},[e._v(e._s(e.$_t("platform.attachmentUpload","上 传"))+" ")])],1)],2),e.imgVisible?r("el-image-viewer",{attrs:{"on-close":e.closeImage,"initial-index":e.currentUrlIndex,"url-list":e.previewUrl}}):e._e(),r("rt-preview-video",{ref:"videoPlayer",attrs:{visible:e.videoVisible},on:{"update:visible":function(t){e.videoVisible=t}}}),r("rt-preview-pdf",{ref:"previewPdf",attrs:{visible:e.pdfVisible,"pdf-reviewer-u-r-l":e.pdfReviewerURL},on:{"update:visible":function(t){e.pdfVisible=t}}}),r("rt-preview-audio",{ref:"audioPlayer",attrs:{url:e.audioPreviewUrl,visible:e.audioVisible},on:{"update:visible":function(t){e.audioVisible=t}}})],2)])],1)}),[],!1,null,"b7476fe0",null));t.a=g.exports},"00b8":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","div")}}n(o,"$bindNodeType",i.b.navbarareas)},"01fe":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Card)}createVNode(e,t){if(!this.children.length)return;const r=new a.e("div");this.buildVNode(r,t),e.addChild(r),this.addChildByPermission(r,t)}collectStickyDic(e){}}s(l,"$bindNodeType",i.b.DialogForm)},"0265":function(e,t,r){"use strict";r("a203")},"0334":function(e,t,r){var i=r("541c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d06464cc",i,!0,{sourceMap:!1,shadowMode:!1})},"04cd":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-logo[data-v-a93f2b56]{width:100%}.plat-logo .nodata-span[data-v-a93f2b56]{display:flex;color:rgba(1,1,1,.25);font-size:14px;align-items:center;justify-content:center;width:100%;height:100%}",""]),e.exports=t},"04d7":function(e,t,r){"use strict";var i=r("9ab4"),a=r("1b40"),n=r("1e17");let o=class extends(Object(a.c)(n.a)){get isQyWxTenant(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.IsQyWxTenant}getFormatedTime(e=new RtDate,t=this.getDateTimeFormat()){return rt.formatDateTimeNew(e,t)}};o=Object(i.__decorate)([a.a],o),t.a=o},"0571":function(e,t,r){"use strict";var i=r("9ab4"),a={props:{errorText:String},render:function(e){return e("div",null,this.errorText?this.errorText:"Unknown Control")}},n=r("0c7c"),o=Object(n.a)(a,void 0,void 0,!1,null,null,null).exports,s={name:"SaasSection",props:{title:{type:String,default:"",required:!0},showLabel:{type:Boolean,default:!0,required:!1},showBar:{type:Boolean,default:!0,required:!1}},data:()=>({}),computed:{},methods:{}},l=Object(n.a)(s,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"saas-pd30"},[this._t("default")],2)}),[],!1,null,null,null).exports,d=r("4b59"),c={name:"RtRelationDialog",mixins:[d.a],props:{visible:{type:Boolean,default:!1},title:{type:String},formId:{type:String},objectTypeName:{type:String},objectId:{type:String},tagData:{required:!1},refreshKey:{type:String},dialogFormId:{type:String}},data:function(){return{dialogVisible:this.visible,titleData:"",dialogFormDataChanged:!1,isOpened:!1}},watch:{visible:function(e){e?(this.dialogFormDataChanged=!1,this.dialogFormId&&(this.$bus.$on("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$on("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))):(this.isOpened=!1,this.dialogFormId&&(this.$bus.$off("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$off("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))),this.dialogVisible=e},dialogVisible:function(e){this.$emit("update",e,this.tagData)}},beforeDestroy(){this.dialogFormId&&(this.$bus.$off("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$off("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))},methods:{beforeClose(e){this.dialogFormDataChanged?this.$confirm(this.$_t("unsaved_changes","您有未保存的更改,是否要离开?"),this.$_t("addresslocation.Tipconfirm","确认提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning"}).then(()=>{this.dialogFormDataChanged=!1,e()}).catch(()=>{}):e()},opened(){this.isOpened=!0},dialogFormDataChange(){this.isOpened&&(this.dialogFormDataChanged=!0)},dialogFormDataClose(){this.dialogFormDataChanged=!1}}},u=(r("6f5c"),Object(n.a)(c,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-dialog",{class:e.isShowClass,attrs:{"append-to-body":"","custom-class":e.customClass,title:e.titleData||e.title,"destroy-on-close":!0,"close-on-click-modal":!1,"show-close":!0,"show-footer":!1,"close-on-press-escape":!1},on:{"before-close":e.beforeClose,opened:e.opened},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e._t("default")],2)}),[],!1,null,"76de9893",null).exports),p=r("b03b"),h={components:{"rt-notes":r("0092").a},props:{fullprop:{type:Object,required:!0,default:function(){return{}}}},render:function(e){return e("rt-notes",{props:this.fullprop},[])}},f={name:"RtGroupnotes",components:{"rt-notes-wrap":Object(n.a)(h,void 0,void 0,!1,null,null,null).exports},props:{editForm:{type:Object,required:!1,default:function(){return{}}},bindValue:{type:String,default:""},rowNum:{type:Number,required:!1,default:2},isPrint:{type:Boolean,required:!1,default:!1},bindAttribute:{type:String,required:!0,default:""},objectId:{type:String,required:!1,default:""},objectTypeName:{type:String,required:!0},canDownload:{type:Boolean,required:!1,default:function(){return!1}},canDelete:{type:Boolean,required:!1,default:function(){return!1}},canUpload:{type:Boolean,required:!1,default:function(){return!0}},isOverwrite:{type:Boolean,required:!1,default:!1},filename:{type:String,required:!1,default:function(){return this.$_t("platform.groupAttachment","分组附件")}},title:{type:String,required:!1,default:function(){return this.$_t("platform.groupAttachment","分组附件")}},disabled:{type:Boolean,default:!1},isPreview:{type:Boolean,default:!1,required:!1},fileSize:{type:Number,default:0,required:!1},fileType:{type:Number,default:0,required:!1},fileExtensions:{type:String,default:"*",required:!1},showStyle:{type:Number,required:!1},customRequestUrl:{type:String,required:!1},isLimitCount:{type:Boolean,default:!1},limitCount:{type:Number,default:1,required:!1},limitMinCount:{type:Number,default:0,required:!1},groupInfoApi:{type:String,default:"",required:!1}},data:()=>({currentProps:{},groupInfo:[]}),watch:{objectId(e,t){e!=t&&e&&this._fetchGroupInfo()},bindValue:{handler(e,t){e!=t&&e&&this._fetchGroupInfo()},deep:!0}},mounted(){this.currentProps=this.deepClone(this.$options.propsData),this._fetchGroupInfo()},methods:{_fetchGroupInfo(){let e=this.bindAttribute,t={};t[e]=this.editForm[e]||"";let r=`${this.groupInfoApi}?id=${this.objectId}&logicalname=${this.objectTypeName}&bindAttributes=${JSON.stringify(t)}`;rt.get(r).then(e=>{e&&e.length>0&&(this.groupInfo=[],e.forEach(e=>{this.groupInfo.push(Object.assign({},this.currentProps,e))}))})},deepClone(e){this.isObject(e)||rt.showErrorToast(this.$_t("platform.groupAttachment_not_object","obj 不是一个对象!"));let t=Array.isArray(e)?[]:{};for(let r in e)"groupInfoApi"!=r&&"bindAttribute"!=r&&"editForm"!=r&&"bindValue"!=r&&(t[r]=this.isObject(e[r])?this.deepClone(e[r]):e[r]);return t},isObject:e=>e&&"object"==typeof e}},m=Object(n.a)(f,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",this._l(this.groupInfo,(function(e){return t("rt-notes-wrap",{key:e.notekey,attrs:{fullprop:e}})})),1)}),[],!1,null,null,null).exports,g=r("04d7"),b={mixins:[g.a],props:["entityname","id"],data:()=>({stateList:[],trackList:[],dialogVisible:!1,newStateList:{}}),computed:{},watch:{id(e,t){null!=e&&e!=t&&this.dialogVisible&&this.dataBind()}},methods:{show(){this.dialogVisible=!0,this.dataBind()},dataBind(){this.id&&(this.getStateList(),this.getTrackList())},getStateList(){rt.get("api/CrmFlow/GetFlowApproveProgressList?entityName="+this.entityname+"&entityId="+this.id).then(e=>{if(null!=e&&e.length>0){var t=[],r=[];e.forEach(e=>{if(-1==e.new_approvalway)(r=[]).push(e),t.push({stepName:"1",steps:r});else if(2==e.new_approvalway)(r=[]).push(e),t.push({stepName:e.new_flowapproval_stepsId,steps:r});else if(3==e.new_approvalway){var i=!1;t.forEach(t=>{t.stepName==e.new_stepName&&(t.steps.push(e),i=!0)}),i||((r=[]).push(e),t.push({stepName:e.new_stepName,steps:r}))}else(r=[]).push(e),t.push({stepName:e.new_flowapproval_stepsId,steps:r})}),this.newStateList=t}}).catch(e=>{rt.showErrorToast(e)})},getTrackList(){rt.get("api/CrmFlow/GetFlowApproveLogList?entityName="+this.entityname+"&entityId="+this.id).then(e=>{this.trackList=e}).catch(e=>{rt.showErrorToast(e)})}}},y=(r("8c6d"),Object(n.a)(b,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"rt-portal-flowListDialog plat-flowList-dialog",attrs:{title:e.$_t("BUTTON_APPROVALPROGRESS","审批进度"),visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.newStateList.length?r("div",{attrs:{id:"approveState"}},e._l(e.newStateList,(function(t,i){return r("div",{key:i,staticClass:"nodelist"},[e._l(t.steps,(function(t,i){return r("div",{key:i,staticClass:"node"},[r("i",{staticClass:"node-icon",class:{"icon-approving":2!==t.new_status&&0!==t.new_status,"icon-approved":2===t.new_status,"icon-submit":0===t.new_status}}),r("ul",[e.isQyWxTenant?r("li",{staticClass:"owner"},[r("rt-ww-open-data",{attrs:{type:"userName",openid:t.new_userName}})],1):r("li",{staticClass:"owner"},[e._v(e._s(t.new_userName))]),r("li",{staticClass:"date"},[e._v(e._s(t.new_date))])])])})),i!==e.newStateList.length-1?r("div",{staticClass:"proce"},[r("span",[e._v("- - - - - - - ")])]):e._e()],2)})),0):e._e(),e.stateList.length>0?r("br"):e._e(),r("h3",[e._v(e._s(e.$_t("approval.approveloglist","历史记录")))]),r("div",{attrs:{id:"approveTrack"}},[r("ul",e._l(e.trackList,(function(t,i){return r("li",{key:t.ew_flowapproval_logId,class:{last:i===e.trackList.length-1}},[r("i",{staticClass:"node-icon",class:{first:0===i}}),r("div",{staticClass:"approveDesc"},[r("span",{staticClass:"date"},[e._v(e._s(t.new_date))]),r("span",{staticClass:"action"},[e._v("["+e._s(t.new_actionName)+"]")]),r("span",{staticClass:"step"},[e._v(e._s(t.new_stepName))]),r("span",{staticClass:"owner"},[e.isQyWxTenant?r("span",[r("rt-ww-open-data",{attrs:{type:"userName",openid:t.new_userName}})],1):r("span",[e._v(e._s(t.new_userName))])])]),r("div",{staticClass:"memo"},[r("span",[e._v(e._s(t.new_memo))])])])})),0)])])}),[],!1,null,"334861e8",null).exports),v={mixins:[g.a],props:["entityname","id","new_name"],data:()=>({selectednew_flowid:"",flowList:[],selectedUserId:[],stepList:[],btnloading:!1,dialogVisible:!1,disabledSubmit:!0,flowLoading:!0}),computed:{isDisabled(){return!rt.isNullOrWhiteSpace(this.new_name)}},watch:{selectednew_flowid:function(e){e?(this.flowLoading=!0,rt.get("api/CrmFlow/GetFlowStepList?flowId="+e+"&entityName="+this.entityname+"&entityId="+this.id).then(e=>{for(var t in e)e[t].ApproveUserId=e[t].new_stepusers[0].systemuserid;this.stepList=e,this.disabledSubmit=!1,this.flowLoading=!1}).catch(e=>{this.disabledSubmit=!0,this.flowLoading=!1,rt.showErrorToast(e)})):this.stepList=[]}},methods:{show(){this.getFlowList(),this.dialogVisible=!0},getFlowList(){this.id&&rt.get("api/CrmFlow/GetFlowList?entityName="+this.entityname+"&entityid="+this.id).then(e=>{if(this.flowList=e,!(null==e||e.length<=0))if(rt.isNullOrWhiteSpace(this.new_name))this.selectednew_flowid=e[0].new_flowid;else for(var t=0;t{this.flowLoading=!1,rt.showErrorToast(e)})},submitFlow(){var e=[];this.stepList.map(t=>{e.push({StepId:t.new_flowstepsid,ApproveUserId:t.ApproveUserId})});var t={EntityId:this.id,EntityTypeName:this.entityname,FlowId:this.selectednew_flowid,ApproveList:e};this.btnloading=!0,rt.post("api/CrmFlow/submit",t).then(e=>{rt.showSuccessToast(e),this.flowList=[],this.selectednew_flowid="",this.dialogVisible=!1,this.$emit("closesubmit"),this.btnloading=!1}).catch(e=>{this.btnloading=!1,rt.showErrorToast(e)})},closeDialog(){this.flowList=[],this.selectednew_flowid="",this.dialogVisible=!1}}},x=(r("cc28"),Object(n.a)(v,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"rt-portal-flowSubmitDialog plat-flowSubmit-dialog",attrs:{title:e.$_t("Flow","签核流程"),"before-close":e.closeDialog,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.flowLoading,expression:"flowLoading"}],staticClass:"rt-portal-Dialog"},[r("div",{staticClass:"rt-portal-DialogContent"},[r("div",{staticClass:"rt-portal-FlowSubmit"},[r("h3",[e._v(" "+e._s(e.$_t("ChooseSignFlow","选择签核流程 (下拉框中可能存在多个可选项目,请注意选择合适的流程)"))+" ")]),r("br"),r("div",[r("el-select",{attrs:{disabled:e.isDisabled},model:{value:e.selectednew_flowid,callback:function(t){e.selectednew_flowid=t},expression:"selectednew_flowid"}},e._l(e.flowList,(function(e){return r("el-option",{key:e.new_flowid,attrs:{value:e.new_flowid,label:e.new_name}})})),1)],1),r("br"),r("br"),r("div",{staticClass:"rt-portal-FlowSteps"},[r("h3",[e._v(" "+e._s(e.$_t("ChooseSignUser","选择签核用户"))+" ")]),e._l(e.stepList,(function(t){return r("div",{key:t.new_name,staticClass:"rt-portal-FlowStep"},[r("br"),r("h4",[e._v(" "+e._s(t.new_name)+" "),1==t.new_approvalway?r("span",[e._v(" "+e._s(e.$_t("ChooseSignUser_default","(下拉框中可能存在多个可选人员,请注意选择合适的下一级呈递人)"))+" ")]):e._e()]),r("br"),2==t.new_approvalway||3==t.new_approvalway||4==t.new_approvalway?r("div",{staticClass:"plat-flow-step"},e._l(t.new_stepusers,(function(i,a){return r("span",{key:i.systemuserid},[e.isQyWxTenant?r("span",[r("rt-ww-open-data",{attrs:{type:"userName",openid:i.fullname}})],1):r("span",[e._v(e._s(i.fullname))]),a{e&&rt.showSuccessToast(this.$_t("approval.collectionsuccess","收藏成功"))}).catch(e=>{rt.showErrorToast(e)}):rt.showErrorToast(this.$_t("approval.enterreviews","请填写评语内容!"))}}},C={components:{CommonReviews:_,CommonReviewsCollection:Object(n.a)(E,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"CommonReviewsCollect"},[t("div",{staticClass:"rt-crm-CommonReviewsBtn",on:{click:this.setCommonReviews}},[t("img",{staticClass:"rt-crm-Icon",attrs:{src:"https://cdn2.fscloud.com.cn/$web/cdn2/saascrm/assets/imgs/new_collect.png"}}),t("span",[this._v(this._s(this.$_t("approval.collection","收藏本条")))])])])}),[],!1,null,null,null).exports},props:["entityName","formId"],data:()=>({dialogVisible:!1,myInApproveStep:{},isProcessing:!1,loading:!1,pageCookie:"",isneedCookie:!1,isMyApproval:!1,isAutoSave:!1,btnloading:!1,approvestepId:null,actionType:1,memo:"",addUsers:[],selectUserId:{},entityId:null,stateList:[],trackList:[],approvedStepList:null,agreeInfo:{memo:""},rejectInfo:{rejectToStepId:"",resubmitTypeId:0,memo:""},communicateInfo:{userList:[],memo:""},transferInfo:{userList:[],memo:""},communicate:{memo:""},allowCommunicate:!1,communicateBy:{UserName:"",Memo:""}}),computed:{title(){return this.myInApproveStep.new_is_communicate?"签核沟通":this.$_t("approval.signprocess","签核处理")},ApproveMemoRequired(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.ApproveMemoRequired},iscommunicate(){return this.myInApproveStep.new_is_communicate&&this.allowCommunicate}},watch:{selectUserId(e){this.selectUserId=e,this.handleDataSelected(this.selectUserId)}},methods:{show(){this.dialogVisible=!0,this.loading=!0,this.GetMyInApproveStep(),this.isAllowCommunicate(),this.retrieveApprovedStepList()},closeDialog(){this.selectUserId={},this.actionType=1,this.agreeInfo={memo:""},this.rejectInfo={rejectToStepId:"",resubmitTypeId:0,memo:""},this.communicateInfo={userList:[],memo:""},this.transferInfo={userList:[],memo:""},this.communicate={memo:""},(this.allowCommunicate=!1)(this.communicateBy={UserName:"",Memo:""}),this.dialogVisible=!1},GetMyInApproveStep(){rt.get("api/CrmFlow/GetMyInApproveStep?formId="+this.formId+"&entityName="+this.entityName).then(e=>{if(this.myInApproveStep=e,this.loading=!1,this.retrieveAddUserList(),this.iscommunicate){this.actionType=5;var t=`/api/dynamic/new_flowapproval_steps?&$filter=new_flowapproval_stepsid eq ${this.myInApproveStep.new_flowapproval_stepsid}&$select=new_communicate_userid,new_communicate_memo`;rt.get(t).then(e=>{if(e&&e.Entities&&e.Entities.length>0){var t=e.Entities[0].new_communicate_userid;t&&t.id&&(this.communicateBy.UserName=t.name),this.communicateBy.Memo=e.Entities[0].new_communicate_memo}}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}}).catch(e=>{this.loading=!1,rt.showErrorToast(e),this.closeDialog()})},isAllowCommunicate:function(){rt.get("api/dynamic/new_systemparameter?&$filter=new_name eq FlowAllowCommunicate &$select=new_value").then(e=>{e&&e.Entities&&e.Entities.length>0&&"1"==e.Entities[0].new_value&&(this.allowCommunicate=!0)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},reload(){if(this.entityName=this.$route.params.etn,this.entityId=this.$route.params.id,this.approvestepId=this.$route.params.stepid,this.iscommunicate=this.$route.params.iscommunicate,this.iscommunicate){this.actionType=5;var e="/api/dynamic/new_flowapproval_steps?&$filter=new_flowapproval_stepsid eq "+this.approvestepId+" &$select=new_communicate_userid,new_communicate_memo";rt.get(e).then(e=>{if(e&&e.Entities&&e.Entities.length>0){var t=e.Entities[0].new_communicate_userid;t&&t.id&&(this.communicateBy.UserName=t.name),this.communicateBy.Memo=e.Entities[0].new_communicate_memo}}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}this.approvestepId&&(this.retrieveApprovedStepList(),this.IsApprovalAutoSave(),this.retrieveIsMyApproval(),this.retrieveAddUserList())},IsApprovalAutoSave(){if(this.approvestepId){let e="api/CrmFlow/IsApprovalAutoSave?ApproveStepId="+this.approvestepId;rt.get(e).then(e=>{this.isAutoSave=e}).catch(e=>{rt.showErrorToast(1+e)})}},GetApprovedStepList(){let e="api/CrmFlow/GetApprovedStepList?entityName="+this.entityName+"&entityId="+this.entityId;rt.get(e).then(e=>{this.btnloading=!1,this.stateList=e}).catch(e=>{this.btnloading=!1,rt.showErrorToast(2+e)})},retrieveApprovedStepList(){let e=`api/CrmFlow/GetApprovedStepList?entityName=${this.entityName}&entityId=${this.formId}`;rt.get(e).then(e=>{e&&e.length>0&&(this.approvedStepList=JSON.parse(e))}).catch(e=>{this.btnloading=!1,rt.showErrorToast(e)})},retrieveIsMyApproval:function(){if(null==this.approvestepId||this.approvestepId.length<1||" "==this.approvestepId)return void(this.isMyApproval=!1);let e="api/CrmFlow/IsMyApprove?ApproveStepId="+this.approvestepId;rt.get(e).then(e=>{this.isMyApproval="True"==e,this.isMyApproval?this.GetApprovedStepList():this.btnloading=!1}).catch(e=>{rt.showErrorToast(e)})},retrieveAddUserList:function(){if(null==this.myInApproveStep.new_flowapproval_stepsid||this.myInApproveStep.new_flowapproval_stepsid.length<1||" "==this.myInApproveStep.new_flowapproval_stepsid)return null;let e="api/CrmFlow/GetApproveStepAddUserList?entityName=new_flowapproval_stepses&approveStepId="+this.myInApproveStep.new_flowapproval_stepsid;rt.get(e).then(e=>{e&&e.length>0&&(this.addUsers=JSON.parse(e))}).catch(e=>{rt.showErrorToast(e)})},approve(){var e="";if(null==this.actionType&&(this.actionType=1),null==this.myInApproveStep.new_flowapproval_stepsid||this.myInApproveStep.new_flowapproval_stepsid.length<1||" "==this.myInApproveStep.new_flowapproval_stepsid)return null;if(1==this.actionType||5==this.actionType){if(this.ApproveMemoRequired&&(null==this.agreeInfo.memo||this.agreeInfo.memo.length<1))return void rt.showErrorToast(this.$_t("approval.enterApprovalMemo","请填写签核意见"));e="api/CrmFlow/FlowAgree";var t={entityName:this.entityName,entityId:this.formId,memo:""};return 1==this.actionType?null!=this.agreeInfo.memo&&this.agreeInfo.memo.length>0&&(t.memo=this.agreeInfo.memo):null!=this.communicate.memo&&this.communicate.memo.length>0&&(t.memo=this.communicate.memo),this.isProcessing=!0,this.btnloading=!0,rt.showLoadingToast(this.$_t("SUBMITTING","正在提交...")),void rt.post(e,t).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(e),this.retrieveIsMyApproval(),this.isMyApproval=!1,this.closeDialog()}).catch(e=>{this.btnloading=!1,rt.hideLoadingToast(),rt.showErrorToast(e),this.isProcessing=!1})}if(2==this.actionType){if(this.ApproveMemoRequired&&(null==this.rejectInfo.memo||this.rejectInfo.memo.length<1))return void rt.showErrorToast(this.$_t("approval.enterApprovalMemo","请填写签核意见"));var r=this.rejectInfo.memo,i=this.rejectInfo.rejectToStepId,a=rt.isNullOrWhiteSpace(i)?0:1,n=this.rejectInfo.resubmitTypeId;e="api/CrmFlow/FlowReject?rejectType="+a+"&rejectToStepId="+i+"&entityName="+this.entityName+"&entityId="+this.formId+"&memo="+r+"&options={ResubmitTypeId:"+n+"}"}else if(3==this.actionType){if(null==this.communicateInfo.userList||this.communicateInfo.userList.length<1)return void rt.showErrorToast(this.$_t("approval.addcommunicateusers","请添加沟通用户"));if(this.ApproveMemoRequired&&(null==this.communicateInfo.memo||this.communicateInfo.memo.length<1))return void rt.showErrorToast(this.$_t("PLEASE_FILL_IN_THE_NOTES","请填写备注"));let t=[];this.communicateInfo.userList.map((function(e){t.push(e.systemuserid)})),e="api/CrmFlow/FlowCommunicate?entityName="+this.entityName+"&entityId="+this.formId+"&userList="+JSON.stringify(t)+"&memo="+this.communicateInfo.memo}else if(4==this.actionType){if(null==this.transferInfo.userList||this.transferInfo.userList.length<1)return void rt.showErrorToast(this.$_t("approval.addtransferusers","请添加转办用户"));if(this.ApproveMemoRequired&&(null==this.transferInfo.memo||this.transferInfo.memo.length<1))return void rt.showErrorToast(this.$_t("PLEASE_FILL_IN_THE_NOTES","请填写备注"));let t=[];this.transferInfo.userList.map((function(e){t.push(e.systemuserid)})),e="api/CrmFlow/FlowTransfer?entityName="+this.entityName+"&entityId="+this.formId+"&userList="+JSON.stringify(t)+"&memo="+this.transferInfo.memo}else rt.showErrorToast(this.$_t("approval.undefindactiontype","未知的actionType"));this.isProcessing=!0,this.btnloading=!0,rt.showLoadingToast(this.$_t("SUBMITTING","正在提交...")),rt.get(e).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(e),this.isMyApproval=!1,this.btnloading=!1,this.closeDialog(),this.$emit("closesubmit")}).catch(e=>{this.btnloading=!1,rt.hideLoadingToast(),rt.showErrorToast(e),this.isProcessing=!1})},chooseAddUser:function(){this.$refs.selectUser.showLookupDialog()},handleDataSelected:function(e){if(!(null==e||null==e.id||e.id.length<1||this.iscommunicate))if(1==this.actionType)try{let t="api/CrmFlow/FlowCountersign?approveStepId="+this.myInApproveStep.new_flowapproval_stepsid+"&userId="+e.id;rt.get(t).then(e=>{this.retrieveAddUserList()}).catch(e=>{rt.showErrorToast(e)})}catch(e){rt.alertDialog(e.message)}else 3==this.actionType?this.communicateInfo.userList.push({systemuserid:e.id,fullname:e.name}):4==this.actionType&&this.transferInfo.userList.push({systemuserid:e.id,fullname:e.name})},deleteAddUser:function(e){this.$confirm(this.$_t("ThisActionDeletePerpetually","此操作将永久删除记录,是否继续?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{try{let t=`api/CrmFlow/CancelFlowCounterSign?approveStepId=${this.myInApproveStep.new_flowapproval_stepsid}&userId=${e.systemuserid}`;rt.get(t).then(e=>{this.retrieveAddUserList()}).catch(e=>{rt.showErrorToast(e)})}catch(e){rt.alertDialog(e.message)}})},deleteCommunicateUser:function(e){this.communicateInfo.userList.splice(e,1)},deleteTransferUser:function(e){this.transferInfo.userList.splice(e,1)},handleCommonReviewsSelected:function(e){if(e&&e.content){var t=e.actionType;if(1==t)this.agreeInfo.memo=e.content;else if(2==t)this.rejectInfo.memo=e.content;else if(3==t)this.communicateInfo.memo=e.content;else if(4==t)this.transferInfo.memo=e.content;else{if(5!=t)throw new Error("未知的actionType");this.communicate.memo=e.content}}}}},N=(r("c8eb"),Object(n.a)(C,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.$_t("Approval.ApprovalList","审批"),"before-close":e.closeDialog,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"Approve"},[r("rt-header",{attrs:{title:e.title}},[r("rt-toolbar")],1),r("rt-content",{attrs:{id:"approvemain"}},[r("div",{attrs:{id:"right"}},[e.iscommunicate?e._e():r("div",{staticClass:"rt-crm-ApproveContent"},[r("ul",{staticClass:"rt-crm-ApproveTabList"},[r("li",{staticClass:"rt-crm-ApproveTab",class:{selected:1==e.actionType},on:{click:function(t){e.actionType=1}}},[r("span",[e._v(e._s(e.$t("approval.agree")))])]),r("li",{staticClass:"rt-crm-ApproveTab",class:{selected:2==e.actionType},on:{click:function(t){e.actionType=2}}},[r("span",[e._v(e._s(e.$t("approval.reject")))])]),r("li",{directives:[{name:"show",rawName:"v-show",value:e.allowCommunicate,expression:"allowCommunicate"}],staticClass:"rt-crm-ApproveTab",class:{selected:3==e.actionType},on:{click:function(t){e.actionType=3}}},[r("span",[e._v(e._s(e.$_t("approval.communicate","沟通")))])]),r("li",{staticClass:"rt-crm-ApproveTab",class:{selected:4==e.actionType},on:{click:function(t){e.actionType=4}}},[r("span",[e._v(e._s(e.$t("approval.transfer")))])])]),1==e.actionType?r("div",{staticClass:"rt-crm-ApproveTabContent"},[r("div",[r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("approval.endorsingopinions"))),e.ApproveMemoRequired?r("span",[e._v("("+e._s(e.$t("common.isrequired"))+")")]):e._e()]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.agreeInfo.memo,expression:"agreeInfo.memo"}],staticClass:"rt-crm-ApproveMemo",attrs:{placeholder:e.$_t("common.fillOut")+e.$t("approval.endorsingopinions")},domProps:{value:e.agreeInfo.memo},on:{input:function(t){t.target.composing||e.$set(e.agreeInfo,"memo",t.target.value)}}}),r("common-reviews",{staticClass:"commonleft",attrs:{"action-type":e.actionType,"commonreviews-selected":e.handleCommonReviewsSelected}}),r("CommonReviewsCollection",{staticClass:"commonright",attrs:{"action-type":e.actionType,content:e.agreeInfo.memo}})],1),r("div",{staticClass:"rt-crm-ApproveSection",staticStyle:{"margin-top":"36px"}},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("approval.signeduser"))+" ")]),e._l(e.addUsers,(function(t){return r("div",{key:t.systemuserid,staticClass:"rt-crm-AddedUser"},[r("div",{staticClass:"rt-crm-Avatar"},[e._v(e._s(t.fullname))]),r("div",{staticClass:"rt-crm-DeleteMask",on:{click:function(r){return e.deleteAddUser(t,1)}}},[r("i")]),r("p",{staticClass:"rt-crm-UserName"},[e._v(e._s(t.fullname))])])})),r("div",{staticClass:"rt-crm-AddUser",on:{click:function(t){return e.chooseAddUser()}}},[r("div",{staticClass:"rt-crm-Avatar"},[e._v("+")]),r("div",{staticClass:"rt-crm-UserName"},[e._v(e._s(e.$t("common.add")))])])],2)])]):e._e(),2==e.actionType?r("div",{staticClass:"rt-crm-ApproveTabContent"},[r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("approval.refute"))+" ")]),r("select",{directives:[{name:"model",rawName:"v-model",value:e.rejectInfo.rejectToStepId,expression:"rejectInfo.rejectToStepId"}],on:{change:function(t){var r=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.rejectInfo,"rejectToStepId",t.target.multiple?r:r[0])}}},[r("option",{attrs:{value:""}},[e._v(" "+e._s(e.$t("new_flowapprovalcrf.new_applyuser"))+" ")]),e._l(e.approvedStepList,(function(t){return r("option",{key:t.new_stepid,domProps:{value:t.new_stepid}},[e._v(" "+e._s(t.new_stepidName)+" ")])}))],2)]),r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("approval.rejectedoption"))+" ")]),r("select",{directives:[{name:"model",rawName:"v-model",value:e.rejectInfo.resubmitTypeId,expression:"rejectInfo.resubmitTypeId"}],on:{change:function(t){var r=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(e.rejectInfo,"resubmitTypeId",t.target.multiple?r:r[0])}}},[r("option",{attrs:{value:"0"}},[e._v(" "+e._s(e.$t("approval.afterrefusedrestart"))+" ")]),r("option",{attrs:{value:"1"}},[e._v(" "+e._s(e.$t("approval.afterrefusedcontinue"))+" ")])])]),r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("approval.endorsingopinions"))),e.ApproveMemoRequired?r("span",[e._v("("+e._s(e.$t("common.isrequired"))+")")]):e._e()]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.rejectInfo.memo,expression:"rejectInfo.memo"}],staticClass:"rt-crm-ApproveMemo",attrs:{placeholder:e.$t("approval.endorsingopinions")+""+e.$t("common.isrequired")},domProps:{value:e.rejectInfo.memo},on:{input:function(t){t.target.composing||e.$set(e.rejectInfo,"memo",t.target.value)}}}),r("common-reviews",{staticClass:"commonleft",attrs:{"action-type":e.actionType,"commonreviews-selected":e.handleCommonReviewsSelected}}),r("CommonReviewsCollection",{staticClass:"commonright",attrs:{"action-type":e.actionType,content:e.rejectInfo.memo}})],1)]):e._e(),3==e.actionType?r("div",{staticClass:"rt-crm-ApproveTabContent"},[r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$_t("approval.communicateusers","沟通用户"))+" ")]),r("div",{staticClass:"rt-crm-AddedUserList"},[e._l(e.communicateInfo.userList,(function(t){return r("div",{key:t.systemuserid,staticClass:"rt-crm-AddedUser"},[r("div",{staticClass:"rt-crm-Avatar"},[e._v(e._s(t.fullname))]),r("div",{staticClass:"rt-crm-DeleteMask",on:{click:function(r){return e.deleteCommunicateUser(t)}}},[r("i")]),r("p",{staticClass:"rt-crm-UserName"},[e._v(e._s(t.fullname))])])})),r("div",{staticClass:"rt-crm-AddUser",on:{click:function(t){return e.chooseAddUser()}}},[r("div",{staticClass:"rt-crm-Avatar"},[e._v("+")]),r("div",{staticClass:"rt-crm-UserName"},[e._v(e._s(e.$t("common.add")))])])],2)]),r("div",{staticClass:"rt-crm-ApproveSection"},[r("h4",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("SER_Notes"))),e.ApproveMemoRequired?r("span",[e._v("("+e._s(e.$t("common.isrequired"))+")")]):e._e()]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.communicateInfo.memo,expression:"communicateInfo.memo"}],staticClass:"rt-crm-ApproveMemo",attrs:{placeholder:e.$t("PLEASE_FILL_IN_THE_NOTES")},domProps:{value:e.communicateInfo.memo},on:{input:function(t){t.target.composing||e.$set(e.communicateInfo,"memo",t.target.value)}}}),r("common-reviews",{staticClass:"commonleft",attrs:{"action-type":e.actionType,"commonreviews-selected":e.handleCommonReviewsSelected}}),r("CommonReviewsCollection",{staticClass:"commonright",attrs:{"action-type":e.actionType,content:e.communicateInfo.memo}})],1)]):e._e(),4==e.actionType?r("div",{staticClass:"rt-crm-ApproveTabContent"},[r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$_t("approval.transferusers","转办给"))+" ")]),r("div",{staticClass:"rt-crm-AddedUserList"},[e._l(e.transferInfo.userList,(function(t,i){return r("div",{key:t.systemuserid,staticClass:"rt-crm-AddedUser"},[r("div",{staticClass:"rt-crm-Avatar"},[e._v(" "+e._s(e._f("surname")(t.fullname))+" ")]),r("div",{staticClass:"rt-crm-DeleteMask",on:{click:function(t){return e.deleteTransferUser(i)}}},[r("i")]),r("p",{staticClass:"rt-crm-UserName"},[e._v(e._s(t.fullname))])])})),r("div",{directives:[{name:"show",rawName:"v-show",value:0==e.transferInfo.userList.length,expression:"transferInfo.userList.length == 0"}],staticClass:"rt-crm-AddUser",on:{click:function(t){return e.chooseAddUser()}}},[r("div",{staticClass:"rt-crm-Avatar"},[e._v("+")]),r("p",{staticClass:"rt-crm-UserName"},[e._v(" "+e._s(e.$t("common.add"))+" ")])]),r("div",{staticStyle:{clear:"both"}})],2)]),r("div",{staticClass:"rt-crm-ApproveSection"},[r("h4",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" "+e._s(e.$t("SER_Notes"))),e.ApproveMemoRequired?r("span",[e._v("("+e._s(e.$t("common.isrequired"))+")")]):e._e()]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.transferInfo.memo,expression:"transferInfo.memo"}],staticClass:"rt-crm-ApproveMemo",attrs:{placeholder:e.$t("PLEASE_FILL_IN_THE_NOTES")},domProps:{value:e.transferInfo.memo},on:{input:function(t){t.target.composing||e.$set(e.transferInfo,"memo",t.target.value)}}}),r("common-reviews",{staticClass:"commonleft",attrs:{"action-type":e.actionType,"commonreviews-selected":e.handleCommonReviewsSelected}}),r("CommonReviewsCollection",{staticClass:"commonright",attrs:{"action-type":e.actionType,content:e.transferInfo.memo}})],1)]):e._e()]),e.iscommunicate?r("div",{staticClass:"rt-crm-ApproveContent"},[r("div",{staticClass:"rt-crm-ApproveTabContent"},[r("div",{staticClass:"rt-crm-ApproveSection"},[r("p",{staticStyle:{"font-size":"16px",color:"#000"}},[e._v(" "+e._s(e.communicateBy.UserName)+" ")]),r("p",{staticStyle:{"font-size":"14px",color:"#555"}},[e._v(" "+e._s(e.communicateBy.Memo)+" ")])]),r("div",[r("div",{staticClass:"rt-crm-ApproveSection"},[r("div",{staticClass:"rt-crm-ApproveSectionTitle"},[e._v(" 处理意见"),e.ApproveMemoRequired?r("span",[e._v("("+e._s(e.$t("common.isrequired"))+")")]):e._e()]),r("textarea",{directives:[{name:"model",rawName:"v-model",value:e.communicate.memo,expression:"communicate.memo"}],staticClass:"rt-crm-ApproveMemo",attrs:{placeholder:"请填写处理意见"},domProps:{value:e.communicate.memo},on:{input:function(t){t.target.composing||e.$set(e.communicate,"memo",t.target.value)}}}),r("common-reviews",{staticClass:"commonleft",attrs:{"action-type":e.actionType,"commonreviews-selected":e.handleCommonReviewsSelected}}),r("CommonReviewsCollection",{staticClass:"commonright",attrs:{"action-type":e.actionType,content:e.communicate.memo}})],1)])])]):e._e()])]),r("rt-lookup",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"selectUser",attrs:{entity:"systemuser","id-field":"systemuserid",disabled:!1,"name-field":"fullname","dialog-display-fields":[{name:"fullname"},{name:"domainname"}],"dialog-order-fields":[{name:"fullname",descending:!1}],"dialog-filter-fields":"fullname,domainname,systemuserid","dialog-condition-fields":"isdisabled eq false"},model:{value:e.selectUserId,callback:function(t){e.selectUserId=t},expression:"selectUserId"}}),r("div",{staticClass:"rt-portal-DialogFooter"},[r("div",{staticClass:"rt-portal-DialogButtons"},[r("el-button",{attrs:{type:"primary",disabled:e.btnloading,loading:e.btnloading},on:{click:e.approve}},[e._v(e._s(e.$_t("BUTTON_SUBMIT","提交")))])],1)])],1)])}),[],!1,null,"271fed23",null).exports),S={name:"PlatInputNumber",props:{placeholder:String,value:[String,Number],datafieldname:String,showPassword:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"text"},resizable:{type:Boolean,default:!0},showSuffixIcon:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},debounce:{type:Number,default:0},max:{type:Number},min:{type:Number},precision:{type:Number}},data:()=>({valuepro:void 0}),watch:{value:{handler:function(e){this.valuepro=null===e?void 0:e},immediate:!0}},methods:{blurHandler(){if(this.value){const e=parseFloat(this.value);isNaN(e)&&this.$emit("input",null,null,this.datafieldname)}else this.$emit("blur")}}},T=(r("4cf4"),Object(n.a)(S,(function(){var e=this.$createElement;return(this._self._c||e)("rc-input-number",this._g(this._b({attrs:{value:this.valuepro,controls:!1,size:"large"},on:{blur:this.blurHandler}},"rc-input-number",this.$props,!1),this.$listeners),[this._t("prefix",null,{slot:"prefix"})],2)}),[],!1,null,"f561cf50",null).exports),k={name:"PlatCardTableRadio",props:{value:{type:[String,Number,Boolean],default:void 0},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},data:()=>({currentValue:void 0,inputValue:void 0}),watch:{value(e){this.currentValue=!!e,this.inputValue=e}},mounted(){if(this.inputValue=this.value,null===this.value||void 0===this.value)return;const e="1"===this.value||!0===this.value;this.currentValue=e},methods:{change(e){this.$emit("change",e)}}},O=Object(n.a)(k,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.disabled?r("rc-input",{attrs:{disabled:e.disabled},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}):r("rc-radio-group",{on:{change:e.change},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}},e._l(e.options,(function(t,i){return r("rc-radio",{key:i+t,attrs:{label:!!t.Value}},[e._v(e._s(t.Text))])})),1)],1)}),[],!1,null,null,null).exports,I={name:"PlatSteps",props:{stepType:{type:Number,default:1,required:!0},entity:{type:String,default:"",required:!1},attribute:{type:String,default:"",required:!1},value:{type:Number,default:0,required:!1},valueField:{type:String,default:"Value"},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},descClass:{type:String,default:""},mode:{type:String,default:"default",validator:e=>["default","evenly"].includes(e)},text:{type:Boolean,default:!0},isTabMode:{type:Boolean,default:!1},isSticky:{type:Boolean,default:!1},formHeaderId:{type:String,default:""},newTabsId:{type:String,default:""},objectId:{type:String,default:""},currentId:{type:String,default:""}},data(){return{stepOptions:[],selectedIndex:void 0,lineStyle:{},descTooltip:[],newMode:this.mode,isLoading:!1}},computed:{hasDesc(){return this.stepOptions.some(e=>e.desc)},currentIndex(){return this.stepOptions&&this.stepOptions.length>0?this.stepOptions.findIndex(e=>e[this.valueField]===this.value):this.value}},watch:{mode:{handler(e){this.newMode=e,this.getNewMode()},deep:!0},stepOptions:{handler(e){this.$nextTick(()=>{this.descTooltip=e.map((e,t)=>!!e.desc&&this.$refs["descItem"+t][0].clientWidth>=this.$refs["descItem"+t][0].scrollWidth)})},immediate:!0,deep:!0},options:{handler(e){this.getStepOptions(e)},deep:!0}},mounted:function(){1===this.stepType?this.bindPicklist():this.getStepOptions(this.options),this.isTabMode&&(this.selectedIndex=this.currentIndex),this.$nextTick(()=>{if("function"==typeof ResizeObserver){const e=new ResizeObserver(()=>{this.getNewMode()});e.observe(this.$refs.rtSteps),this.$once("hook:beforeDestroy",()=>{e.unobserve(this.$refs.rtSteps)})}})},methods:{__setPlatStepsTop(){const e=this.$el;if(this.isSticky){const t=document.querySelector(".vform-header_"+this.formHeaderId+this.objectId);this.$xpc.addResizeObserver(t,this,t=>{const r=t[0].target;e.style.top=r.clientHeight+"px"})}},limitStr(e,t){let r="",i=e.length;if(e.replace(/[^\x00-\xff]/g,"**").length<=t)return{value:e,hasTip:!1};for(let a=0,n=0;a{"number"!=typeof e.offsetWidth||isNaN(e.offsetWidth)||(t+=e.offsetWidth)});const r=this.$el.offsetWidth,i=5;this.newMode=t-r>i?"default":"evenly"}},bindPicklist(){let{params:e,entity:t,attribute:r}=this;e=Object.assign({},e,{entity:t,attribute:r}),this.isLoading=!0,this.$picklist.getPicklistData(e).then(e=>{this.getStepOptions(e),this.isLoading=!1}).catch(e=>{rt.showErrorToast(e.message)})},getStepOptions(e){const t=e.reduce((e,t)=>(t.hasOwnProperty(this.valueField)&&e++,e),0);if(0===t)this.stepOptions=e.map((e,t)=>(e[this.valueField]=t,e)).slice(0,30);else{if(t{this.$bus.$emit("platStepsIsStickyLoad_"+this.newTabsId),this.__setPlatStepsTop()})},stepClick(e){this.disabled||this.isTabMode&&(this.selectedIndex=e,this.$emit("step-click",e))}}},D=(r("311f"),Object(n.a)(I,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"rtSteps",staticClass:"plat-steps-wrap",class:{"plat-step-has-desc":e.hasDesc,"plat-is-evenly":"evenly"===e.newMode,"plat-step-empty":!e.stepOptions.length}},[e.stepOptions.length?r("div",{staticClass:"plat-steps",class:{"plat-step-click":!e.disabled&&e.isTabMode}},e._l(e.stepOptions,(function(t,i){return r("div",{key:i,staticClass:"plat-steps-item-container",class:{"plat-is-first":0===i,"plat-steps-selected":e.selectedIndex==i}},[r("div",{staticClass:"plat-steps-item"},[0!==i?r("svg",{class:{"plat-icon plat-icon-before":!0,"plat-icon-finished":i({})},currentKey:{type:[Number,String],default:""},currentRow:{type:Object,default:()=>({})}},data:()=>({pickOptions:[]}),computed:{renderType(){switch(this.cellprops.dataType){case"lookup":return"lookup";case"picklist":return"picklist";case"picklistarray":return"picklistarray";case"date":case"datetime":return"datetime";case"int":case"float":case"decimal":case"bigint":case"money":return"inputNumber";case"input":case"nvarchar":case"text":return"input";case"image":return"image";case"bit":return"boolean";default:return"notEdit"}},rowContext(){let e=Object.assign({},this.cardTableContext.$data,this.cardTableContext.$props);return this.cardTableContext.$options&&this.cardTableContext.$options.computed&&Object.keys(this.cardTableContext.$options.computed).forEach(t=>{const r=this[t];e[t]=r}),e.row=this.modifiedCurrentRow,e},getIsEditable(){return this.isEditable(this.cellprops,this.rowContext,this.cardTableContext.$props.subgridIsReadonly)},isRequired(){if(!this.getIsEditable)return!1;const{requiredExpression:e,required:t}=this.cellprops||{};let r=t;return e&&(r=this.getFunctionByExpression(e).call(this.rowContext)),r},modifiedCurrentRow:{get(){return this.currentRow},set(e){this.$emit("update:currentRow",e)}},datafieldname(){return this.cellprops.datafieldname},currentVal(){return this.modifiedCurrentRow[this.datafieldname]},notEditableVal(){const e={options:this.cellprops.options,dataType:this.cellprops.dataType||this.cellprops.attributeType,isMillimeter:this.cellprops.isMillimeter,precision:this.cellprops.precision,dateTimeFormat:this.cellprops.dateTimeFormat,displayNumbersByPrecision:this.displayNumbersByPrecision};return this.getText(this.getFieldName(this.cellprops),this.modifiedCurrentRow,e)},isMillimeterNumber(){const{isMillimeter:e,attributeType:t}=this.cellprops||{};return e&&["int","float","decimal","bigint","money"].includes(t)}},mounted(){this.loadOptions()},methods:{renderFormItem(e){const{label:t,displayName:r,RequiredLevel:i,isMask:a,relationshipId:n}=this.cellprops||{},o={props:{prop:`subgridData.${this.currentKey}.${this.datafieldname}`,label:t,rules:this.isRequired?{required:this.isRequired,trigger:"change",message:this.$_t("common.input","请输入")+" "+r}:null}};let s=null;if([$.g.ReadOnly,$.g.CalculateFields].includes(i))return s=this.renderReadonlyText(e),e("rc-form-item",o,[s]);if(a||n)return s=this.renderNotEditControl(e),e("rc-form-item",o,[s]);switch(this.renderType){case"lookup":s=this.renderDefaultLookup(e);break;case"picklist":case"picklistarray":s=this.renderPicklist(e);break;case"inputNumber":s=this.renderInputNumber(e);break;case"datetime":s=this.renderDefaultDateTime(e);break;case"input":s=this.renderDefaultInput(e);break;case"image":s=this.renderImage(e);break;case"boolean":s=this.renderBoolean(e);break;default:s=this.renderNotEditControl(e)}return e("rc-form-item",o,[s])},renderDefaultDateTime(e){const{datetimeformat:t}=this.cellprops||{};return e("rc-date-picker",{props:{value:this.currentVal||null,disabled:!this.getIsEditable,placeholder:this.$_t("common.select","请选择"),clearable:!0,type:"DateOnly"==t?"date":"datetime"},attrs:{format:"DateOnly"==t?this.getDateFormat():this.getDateMinuteFormat()},on:{input:this.baseHandle,click:this.clearHandle}})},renderInputNumber(e){const{precision:t,MaxValue:r,MinValue:i,attributeType:a}=this.cellprops||{},n={props:{disabled:!this.getIsEditable,value:this.currentVal,controls:!1},attrs:{localeFormatCode:this.numberLocaleCode},on:{change:this.baseHandle}};rt.isNil(r)?n.props.max=1e9:n.props.max=j.a.getAvailableValue(r),rt.isNil(i)||(n.props.min=j.a.getAvailableValue(i));let o=j.a.getAvailableValue(t);return"float"!==a&&(o||(o=0),n.props.needZeroFill=this.displayNumbersByPrecision),n.props.precision=o,e("rc-input-number",n)},renderPicklist(e){const t="picklistarray"===this.cellprops.dataType,r={props:{value:this.currentVal,disabled:!this.getIsEditable,options:this.pickOptions,clearable:!0,multiple:t},on:{change:this.baseHandle}};return this.cellprops.options.some(e=>e.Color)&&(r.props.tag=!0),e("rc-picklist",r)},setRequestUrl(e,t){(e.startsWith("{")||e.startsWith("'")||e.startsWith('"'))&&(t.props.requestUrl=this.getFunctionByExpression(e).call(this.modifiedCurrentRow))},renderDefaultLookup(e){const{referencedEntity:t,nameField:r,idField:i,filterAttributeName:a,dependentAttributeDisplayName:n,requestUrl:o,dialogDisplayFields:s,dialogOrderbyFields:l,DefaultViewId:d,dialogFilterFields:c,DependentAttributeName:u,FilterRelationAttrName:p,DefaultViewLogicalName:h}=this.cellprops||{},f={props:{value:this.currentVal||null,entity:t||"",disabled:!this.getIsEditable,nameField:r,idField:i,dialogFilterFields:c,filterAttributeName:a,dependentAttributeDisplayName:n},on:{change:this.lookupChangeHandle}};if(d&&(rt.isNullOrWhiteSpace(o)||this.setRequestUrl(o,f),f.props.requestUrl="api/vlist/ExecuteQuery?queryid="+d),o&&this.setRequestUrl(o,f),f.props.dialogDisplayFields=s,f.props.defaultViewLogicalName=h,f.props.dialogOrderbyFields=l,d?(f.props.dialogFilterFields="",f.props.defaultViewId=d):f.props.dialogFilterFields=c,f.props.requestUrl&&f.props.requestUrl.indexOf("api/vlist/ExecuteQuery")<0&&(f.props.showVlist=!1),u){let e=this.modifiedCurrentRow[u];e&&"object"==typeof e&&e.id?this.$set(f.props,"filterAttributeValue",e.id):this.$set(f.props,"filterAttributeValue",e)}if(f.props.filterAttributeValue){let e=[];if(Array.isArray(f.props.filterAttributeValue)&&f.props.filterAttributeValue.length>0&&f.props.filterAttributeValue.forEach(t=>{e.push(t.id)}),0==e.length){let e=p+" eq "+f.props.filterAttributeValue;this.$set(f.props,"dialogConditionFields",e)}}return e("rt-lookup",f)},renderDefaultInput(e){const{StringMaxLength:t}=this.cellprops||{};return e("rc-input",{props:{value:this.currentVal,disabled:!this.getIsEditable,maxLength:t||5e3},attrs:{maxLength:t||5e3},on:{change:this.baseHandle,click:this.clearHandle}})},renderReadonlyText(e){const{isMask:t}=this.cellprops||{};let r="",i=this.notEditableVal;return t&&(i=i&&i.text),i||!1===i?(r=i,this.isMillimeterNumber&&(r=("number"==typeof i?i:j.a.parseLocaleNumber(i,this.numberLocaleCode)).toLocaleString(this.numberLocaleCode))):r="",r instanceof Object&&(r=r.name||""),e("rc-text",{props:{text:r.toString(),label:""}})},renderNotEditControl(e){const{isMask:t}=this.cellprops||{};let r=this.notEditableVal;return t&&(r=this.notEditableVal&&this.notEditableVal instanceof Object&&this.notEditableVal?this.notEditableVal.text:this.notEditableVal),e("rc-input",{props:{value:r,disabled:!0}})},renderImage(e){return e("RtSaasImageField",{attrs:{value:this.currentVal,disabled:!0},props:{align:this.cellprops.align,attributename:"",entityname:"",objectid:""}})},renderBoolean(e){return e("plat-card-table-radio",{props:{value:this.getIsEditable?this.currentVal:this.notEditableVal,options:this.cellprops.options,disabled:!this.getIsEditable},on:{change:this.baseHandle}})},lookupChangeHandle(e){let t=null;const{nameField:r,idField:i}=this.cellprops||{};t=null!=e&&"object"==typeof e&&i?{id:e[i]||e.$id,name:e[r]||e.$name,logicalname:e.$logicalname}:e,this.$set(this.modifiedCurrentRow,this.datafieldname,t),this.addToSubgridChangedAttr(),this.clearLookupDependField(this.datafieldname),this.execCellChangeHandle(),this.isRequired&&this.validCurrentField(),this.cellprops.events&&this.cellprops.events.some(e=>"setGridCell"===e.name)||this.$emit("attributeMappingCallback",e)},clearLookupDependField(e){const t=this.cardTableContext.dependentRelationshipMapping,r=this.cardTableContext.$props.subgridkey;if(!Object.keys(t).length)return;const i=t[e];this.$set(this.modifiedCurrentRow,i,null),this.$bus.$emit("subgridEditProps_"+r,i),t[i]&&this.clearLookupDependField(i,this.modifiedCurrentRow)},baseHandle(e){e!=this.currentVal&&(void 0===e&&(e=null),this.$set(this.modifiedCurrentRow,this.datafieldname,e),this.addToSubgridChangedAttr(),this.execCellChangeHandle(),this.isRequired&&this.validCurrentField())},clearHandle(){this.baseHandle(null)},execCellChangeHandle(){const{events:e}=this.cellprops||{};Array.isArray(e)&&e.length>0&&e.forEach(e=>{if("setGridCell"===e.name){const t={row:this.modifiedCurrentRow,parentkey:this.cardTableContext.$props.targetEntityType+"_"},r={currentRow:this.modifiedCurrentRow,row:this.modifiedCurrentRow};e.buildHandler?e.buildHandler.call(r,t):this.$emit(this.cardTableContext.$props.targetEntityType+"_saveSubGrid")}})},addToSubgridChangedAttr(){const e=this.cardTableContext.$props.subgridkey;this.$bus.$emit("subgridEditProps_"+e,this.datafieldname),this.$bus.$emit("updateSubgrid_"+e,this.modifiedCurrentRow)},validCurrentField(){this.cardTableContext.$refs&&this.cardTableContext.$refs.cardTableForm&&this.cardTableContext.$refs.cardTableForm.validateField(`subgridData.${this.currentKey}.${this.datafieldname}`,e=>{})},async loadOptions(){const{dataType:e}=this.cellprops||{};if(!["picklist","picklistarray"].includes(e))return;const{displayValueExpression:t,options:r}=this.cellprops||{};try{let e=[];if(Array.isArray(r)&&r.length>0)e=r;else{const t=`api/crmpicklist/options/${this.modifiedCurrentRow.$logicalname||""}/${this.datafieldname}`;e=await rt.get(t)}if(t){const r=this.getFunctionByExpression(t,["options"]).call(this,e);r&&r instanceof Array&&(e=e.filter(e=>r.includes(e.Value)))}if(e&&e.length>0){const t=!0;e.forEach(e=>{if(e.StateCode&&(e.disabled=!0),e.IconSrc="",t){let t=this.SCSS_VARIABLES.COLOR_I1,r=this.SCSS_VARIABLES.NEUTRAL_COLOR_PRIMARY;e.Color&&this.cellprops.showcolor&&("COLOR_I1"!==e.Color&&(r=this.SCSS_VARIABLES.COLOR_TEXT_WHITE),this.SCSS_VARIABLES[e.Color]?t=this.SCSS_VARIABLES[e.Color]:e.Color.startsWith("#")&&(t=e.Color)),e.tagFontColor=r,e.tagBgColor=t}})}this.pickOptions=e}catch(e){rt.showErrorToast(e)}}},render:function(e){return this.cellprops&&0===Object.keys(this.cellprops).length?e(null):this.renderFormItem(e)}},V=Object(n.a)(U,void 0,void 0,!1,null,null,null).exports;function q(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let z=class extends(Object(L.c)(F.a)){constructor(...e){super(...e),q(this,"targetEntityType",void 0),q(this,"index",void 0),q(this,"reverseIndex",void 0),q(this,"row",void 0),q(this,"cellList",void 0),q(this,"totalRows",void 0),q(this,"cardTableCol",void 0),q(this,"getCardRowTitle",void 0),q(this,"formStatus",void 0),q(this,"goToDetail",void 0),q(this,"toolbarSchema",void 0),q(this,"fromEntity",void 0),q(this,"disableJump",void 0),q(this,"isCardTable",!0)}get getCol(){return 24/this.cardTableCol}getCellProps(e){return this.cellList[e-1]}setCurrentRow(e){this.$bus.$emit("operate-cell-update-card"+this.targetEntityType,e)}editByRow(){this.$emit("editByRow",...arguments)}delByRow(){this.$emit("delByRow",...arguments)}grantAccessByRow(){this.$emit("grantAccessByRow",...arguments)}assignByRow(){this.$emit("assignByRow",...arguments)}showFormDialogByRow(){this.$emit("showFormDialogByRow",...arguments)}showDrawer(){this.$emit("cardTableShowDrawer",...arguments)}defaultFunc(){this.$message(this.$_t("platform.vlistcoreButtonType","不适用的按钮操作类型"))}render(e){try{const t=new P.d($.e.PCSubGrid,"card-table-item","card-table-item",$.d.edit,this),r=new P.e("div");try{this.toolbarSchema.createVNode(r,t,"")}catch(e){}const i=()=>{const t=[];for(let r=0;rthis.cellList.length)break;const n=this.getCellProps(a);i.push(e("rc-col",{key:"col_"+a,class:"card-col",props:{span:this.getCol}},[e("plat-card-table-cell",{key:"cell_"+a,props:{cellprops:n,currentKey:this.index,currentRow:this.row},on:{attributeMappingCallback:e=>{let t=n.name;n.entityAlias&&(t=n.entityAlias+"."+n.name),this.$emit("attributeMappingCallback",this.row,e,t,n.referencedEntity)}}})]))}t.push(e("rc-row",{key:`card-row-${this.row.$id}-${r}`},i))}return t};return e("div",{class:"dataListItem",on:{mouseover:()=>{this.setCurrentRow(this.row)}}},[e("div",{class:"plat-card-header"},[e("div",{class:"plat-card-title"},[e("div",{class:"title-wrap"},[e("div",{class:"tooltip-text-btn"},[this.getCardRowTitle(this.row)&&1==this.formStatus?e("div",{class:"plat-card-header-text"},this.getCardRowTitle(this.row)):e("div",{class:"plat-card-header-text"},this.$_t("card_details","明细{0}",{0:this.index+1})),1!=this.formStatus||this.disableJump?null:e("rc-button",{props:{colorType:"neutral-tertiary",text:!0,size:"small"},on:{click:()=>{this.goToDetail(this.row)}}},this.$_t("common.Details","详情"))])])]),Object(R.c)(e,r)]),e("rc-card",{},[e("rc-section",{},[...i()])])])}catch(e){return null}}};Object(i.__decorate)([Object(L.d)({type:String})],z.prototype,"targetEntityType",void 0),Object(i.__decorate)([Object(L.d)({type:Number,required:!0})],z.prototype,"index",void 0),Object(i.__decorate)([Object(L.d)({type:Number,required:!0})],z.prototype,"reverseIndex",void 0),Object(i.__decorate)([Object(L.d)({type:Object,default:()=>({})})],z.prototype,"row",void 0),Object(i.__decorate)([Object(L.d)({type:Array,default:()=>[]})],z.prototype,"cellList",void 0),Object(i.__decorate)([Object(L.d)({type:Number})],z.prototype,"totalRows",void 0),Object(i.__decorate)([Object(L.d)({type:Number,default:3})],z.prototype,"cardTableCol",void 0),Object(i.__decorate)([Object(L.d)({type:Function,required:!0})],z.prototype,"getCardRowTitle",void 0),Object(i.__decorate)([Object(L.d)({type:Number,default:0})],z.prototype,"formStatus",void 0),Object(i.__decorate)([Object(L.d)({type:Function,required:!0})],z.prototype,"goToDetail",void 0),Object(i.__decorate)([Object(L.d)({type:Object,required:!0})],z.prototype,"toolbarSchema",void 0),Object(i.__decorate)([Object(L.d)({type:Object,required:!0})],z.prototype,"fromEntity",void 0),Object(i.__decorate)([Object(L.d)({type:Boolean,default:!1})],z.prototype,"disableJump",void 0),z=Object(i.__decorate)([Object(L.a)({name:"PlatCardTableItem",components:{"plat-card-table-cell":V}})],z);var H=z,G=(r("5b8d"),{name:"PlatCardTable",components:{PlatCardTableItem:Object(n.a)(H,void 0,void 0,!1,null,"6faacdd2",null).exports},mixins:[F.a],props:{dataList:{type:Array,default:()=>[]},cellList:{type:Array,default:()=>[]},targetEntityType:{type:String,default:""},cardTableCol:{type:Number,default:3},cardTableRowTitle:{type:String,default:""},needjump:{type:Boolean,default:!1},hiddenDefaultDiagram:{type:Boolean,default:!1},formStatus:{type:Number,default:0},subgridIsReadonly:{type:Boolean,default:!1},fromEntity:Object,toolbarSchema:Object,disableJump:{type:Boolean,default:!1}},data:()=>({entityList:[]}),computed:{totalRows(){return Math.ceil(this.cellList.length/this.cardTableCol)},rowList(){return this.dataList.length<=5?this.dataList:this.dataList.slice(0,5)},getCol(){return 24/this.cardTableCol},getCardRowTitle(){return e=>{if(!this.cardTableRowTitle)return"";const t=this.cellList.find(e=>e.name===this.cardTableRowTitle);if(!t)return"";const r={options:t.options,dataType:t.dataType||t.attributeType,isMillimeter:t.isMillimeter,precision:t.precision,dateTimeFormat:t.dateTimeFormat,displayNumbersByPrecision:this.displayNumbersByPrecision};return this.getText(this.cardTableRowTitle,e,r)}}},mounted(){},methods:{getCellProps(e){return this.cellList[e-1]},goToDetail(e){e.isAdd?rt.showErrorToast(this.$_t("common.pls_save_info","请先保存数据")):this.$emit("gotoCardTableEditPage",e)}}}),W=(r("238b"),Object(n.a)(G,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-card-table"},[e._l(e.rowList,(function(t,i){return r("plat-card-table-item",e._g({key:t.$id,attrs:{index:i,row:t,"reverse-index":e.rowList.length-1-i,"target-entity-type":e.targetEntityType,"cell-list":e.cellList,"total-rows":e.totalRows,"card-table-col":e.cardTableCol,"form-status":e.formStatus,"from-entity":e.fromEntity,"toolbar-schema":e.toolbarSchema,"get-card-row-title":e.getCardRowTitle,"go-to-detail":e.goToDetail,"disable-jump":e.disableJump}},e.$listeners),[e._t("default")],2)})),e.dataList.length>5?r("rc-alert",{attrs:{"show-icon":"",title:e.$_t("displays_five","子网格卡片风格仅展示前5条数据"),type:"warning",closable:!1}}):e._e(),0==e.rowList.length?r("div",[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(" "+e._s(e.$_t("platform.noData","暂无数据"))+" ")])])],1):e._e()],2)}),[],!1,null,"009f4eb3",null).exports),Q={name:"RtTimelineNotSubgrid",mixins:[B.a],props:{requestUrl:{type:String,required:!1},objectId:{type:String,required:!1},dataList:{type:Array,required:!1},isSubGrid:{type:Boolean,required:!1},hiddenDefaultDiagram:{type:Boolean,default:!1},title:{type:String,default:""}},data:()=>({timeLineList:[]}),computed:{IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},platformNoData(){return this.isSubGrid?"zh-CN"===rt.getDefaultLocal()?this.$_t("platform.noSubGrid","暂无"+this.title,{subGridData:this.title}):this.$_t("platform.noData","暂无数据"):this.$_t("platform.noTimeLineData","暂无时间轴数据")}},watch:{dataList(e,t){this.timeLineList=e}},mounted:function(){this.getTimeLineList(),this.timeLineList=this.dataList||[]},methods:{isNull(e){return["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length&&(!0===this.IsNullValueDisplay||"true"===this.IsNullValueDisplay)?this.NullValueDisplay?this.NullValueDisplay:"--":e},getTimeLineList(){this.requestUrl&&(this.timeLineList=[],rt.get(this.requestUrl).then(e=>{null!=e&&(this.timeLineList=e)}).catch(e=>{rt.showErrorToast(e)}))}}},X=(r("1b46"),Object(n.a)(Q,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"timeline plat-timeline"},[r("rc-section",[e.timeLineList.length>0?r("div",[r("rc-timeline",e._l(e.timeLineList,(function(t,i){return r("rc-timeline-item",{key:i,attrs:{timestamp:t.content,format:"DateOnly"==t.format?e.getDateFormat():e.getDateTimeFormat(),iconColor:0==i?"primary":"info"}},[r("span",{staticClass:"temptime"},[e._v(" "+e._s(e.isNull(t.timestamp))+" ")])])})),1)],1):e._e(),0==e.timeLineList.length?r("div",{staticClass:"rt-saas-nodata"},[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.platformNoData))])])],1):e._e()])],1)}),[],!1,null,"6097c2de",null).exports),K={name:"PlatTabContainer",props:{label:String,labelContent:Function,name:String,closable:Boolean,disabled:Boolean,lazy:Boolean,padding:String}},Y=Object(n.a)(K,(function(){var e=this.$createElement,t=this._self._c||e;return t("rc-tab-pane",this._b({},"rc-tab-pane",this.$props,!1),[t("rc-view",[this._t("default")],2)],1)}),[],!1,null,null,null).exports,J={props:{entityName:{requeired:!1,type:String}},provide:()=>({elFormItem:{}}),data:()=>({dialogFormVisible:!1,loading:!1,multiTip:!1,isPost:!1,objectIds:[],userIds:[],types:{canAppend:"prvappend",AppendTo:"prvappendto",canCreate:"prvcreate",canDelete:"prvdelete",canRead:"prvread",canWrite:"prvwrite",canAssign:"prvassign",canShare:"prvshare"},ShareData:[],tempShareData:[]}),computed:{userRequestUrl(){return this.objectIds&&1==this.objectIds.length?(this.isPost=!0,"api/GrantAccess/GetUsersWithoutGrant"):(this.isPost=!1,"api/crmlookupview/getdata")},requestParams(){return{grantIds:this.ShareData.map(e=>e.userId)}},teamRequestUrl(){return this.objectIds&&1==this.objectIds.length?(this.isPost=!0,"api/GrantAccess/GetTeamsWithoutGrant"):(this.isPost=!1,"api/crmlookupview/getdata")}},methods:{handleTableSelectStatus:e=>!e.isDisabled,closeDialog(){this.dialogFormVisible=!1,this.ShareData=[],this.tempShareData=[]},show(e){e&&e.length>10?rt.showErrorToast(this.$_t("platform.grantAccessRecode","最多操作10条记录")):(this.objectIds=e,this.init())},init(){if(this.ShareData=[],this.objectIds&&this.objectIds.length>1)this.dialogFormVisible=!0,this.multiTip=!0;else{this.loading=!0,this.multiTip=!1;const e="api/GrantAccess/Get";rt.get(e,{objectId:this.objectIds,entityName:this.entityName}).then(e=>{if(null!=e&&e.length>0){const t="api/TeamMember/GetTeamMembers";rt.get(t,{objectId:this.objectIds}).then(t=>{this.userIds=t;for(let r in e)if(Array.isArray(this.userIds)&&this.userIds.length>0){const t=this.userIds.filter(t=>t==e[r].userId).length>0;e[r].isDisabled=!!t}else e[r].isDisabled=!1;this.ShareData=e,this.tempShareData=[...e]}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})}this.dialogFormVisible=!0,this.loading=!1}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})}},AddUser(){this.$refs.userDialog.show()},addUsersCallback(e){e.forEach(e=>{if(0==this.ShareData.filter(t=>t.userId==e.systemuserid).length){const t={userId:e.systemuserid,userName:e.fullname,businessUnitId:e["businessunitid.id"],businessUnitName:e.businessunitid,read:!0,write:!1,delete:!1,append:!1,assign:!1,share:!1};this.ShareData.push(t),this.tempShareData.push(t)}})},AddTeam(){this.$refs.teamDialog.show()},addTeamsCallback(e){e.forEach(e=>{if(0==this.ShareData.filter(t=>t.userId==e.teamid).length){const t={userId:e.teamid,userName:e.name,read:!0,write:!1,delete:!1,append:!1,assign:!1,share:!1};this.ShareData.push(t),this.tempShareData.push(t)}})},DelUser(){const e=this.$refs.shareTable.selection;null!=e&&0!=e.length?(this.loading=!0,e.forEach(e=>{for(let t=0;t{e&&this.ShareData.push(e)}),this.loading=!1):rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"))},ResetUser(){this.init()},DoShare(){if(this.objectIds&&this.objectIds.length>1&&(!this.ShareData||0==this.ShareData.length))return void rt.showErrorToast(this.$_t("share.tip3","请选择用户进行共享"));if(this.ShareData&&this.ShareData.length>0)for(let r=0;r{e[t.userId]=this.getAccessValue(t)});const t={objectIds:this.objectIds,entityName:this.entityName,accessDetails:e};this.loading=!0,rt.post("api/GrantAccess/Save",t).then(()=>{this.loading=!1,rt.showSuccessToast(this.$_t("SharedSuccessfully","共享成功")),this.$emit("ShareCallback"),this.closeDialog()}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})},getAccessValue(e){let t=[];return e.read&&t.push(1),e.write&&t.push(2),e.append&&t.push(4),e.delete&&t.push(65536),e.share&&t.push(262144),e.assign&&t.push(524288),t}}},Z=(r("9bbb"),Object(n.a)(J,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{staticClass:"rtportal plat-grant-access",attrs:{title:e.$_t("BUTTON_SHARE","共享"),visible:e.dialogFormVisible,width:"60%","before-close":e.closeDialog,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("p",[e._v(" "+e._s(e.$_t("share.tip1","选择要与之共享的用户或团队,并为其提供特定权限。"))+e._s(e.$_t("share.tip5","列表无法对协同成员的读和写权限进行编辑,且无法删除作为协同成员的用户。"))+" ")]),r("div",{staticClass:"plat-grant-btns"},[r("el-button",{on:{click:e.ResetUser}},[e._v(e._s(e.$_t("BUTTON_RESET","重置")))]),r("el-button",{on:{click:e.DelUser}},[e._v(e._s(e.$_t("BUTTON_DELETE","删除")))]),r("el-button",{on:{click:e.AddTeam}},[e._v(e._s(e.$_t("BUTTON_ADDTEAM","添加团队")))]),r("el-button",{attrs:{type:"primary"},on:{click:e.AddUser}},[e._v(e._s(e.$_t("BUTTON_ADDUSER","添加用户")))])],1),!e.multiTip||e.ShareData&&e.ShareData.length>0?r("el-table",{ref:"shareTable",attrs:{data:e.ShareData,"max-height":"500"}},[r("el-table-column",{attrs:{width:"60",type:"selection",selectable:e.handleTableSelectStatus}}),r("el-table-column",{attrs:{prop:"userName",label:e.$_t("common.name","名称"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"}},[e._v(" "+e._s(t.row.userName))])]}}],null,!1,1572187724)}),r("el-table-column",{attrs:{width:"150",prop:"businessunitid",label:e.$_t("shared.business","业务部门")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.businessUnitName)+" ")]}}],null,!1,1814769306)}),r("el-table-column",{attrs:{prop:"read",label:e.$_t("dataprivilege.read","读"),type:e.types.canRead},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-checkbox",{attrs:{disabled:t.row.read},model:{value:t.row.read,callback:function(r){e.$set(t.row,"read",r)},expression:"scope.row.read"}})]}}],null,!1,1403539318)}),r("el-table-column",{attrs:{prop:"write",label:e.$_t("dataprivilege.write","写"),type:e.types.canWrite},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-checkbox",{attrs:{disabled:t.row.isDisabled},model:{value:t.row.write,callback:function(r){e.$set(t.row,"write",r)},expression:"scope.row.write"}})]}}],null,!1,1620522145)}),r("el-table-column",{attrs:{prop:"delete",label:e.$_t("dataprivilege.delete","删除"),type:e.types.canDelete},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-checkbox",{model:{value:t.row.delete,callback:function(r){e.$set(t.row,"delete",r)},expression:"scope.row.delete"}})]}}],null,!1,1734625205)}),r("el-table-column",{attrs:{prop:"assign",label:e.$_t("dataprivilege.assign","分派"),type:e.types.canAssign},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-checkbox",{model:{value:t.row.assign,callback:function(r){e.$set(t.row,"assign",r)},expression:"scope.row.assign"}})]}}],null,!1,3395033485)}),r("el-table-column",{attrs:{prop:"share",label:e.$_t("dataprivilege.share","共享"),type:e.types.canShare},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-checkbox",{model:{value:t.row.share,callback:function(r){e.$set(t.row,"share",r)},expression:"scope.row.share"}})]}}],null,!1,2541321697)})],1):e.ShareData&&0!=e.ShareData.length?e._e():r("div",{staticClass:"plat-grant-tip"},[r("p",[e._v(" "+e._s(e.$_t("share.tip2","一次只能查看一个记录的存取权限。要查看存取权限,请回到上一级页面,并只选定一个记录,然后重试。"))+" ")])]),r("div",{staticClass:"plat-grant-btn"},[r("el-button",{attrs:{type:"primary"},on:{click:e.DoShare}},[e._v(e._s(e.$_t("common.determined","确定")))]),r("el-button",{on:{click:e.closeDialog}},[e._v(e._s(e.$_t("BUTTON_CANCEL","取消")))])],1)],1)]),r("div",[r("rt-lookup-multi-dialog",{ref:"userDialog",attrs:{"request-url":e.userRequestUrl,"is-post":e.isPost,"request-params":e.requestParams,"dialog-callback":e.addUsersCallback,entity:"systemuser","name-field":"fullname","display-fields":[{name:"fullname"},{name:"domainname"},{name:"businessunitid"}],title:e.$_t("crm.systemuser","用户管理"),"condition-fields":"isdisabled eq false","orderby-fields":"fullname asc","filter-fields":"fullname,domainname"}}),r("rt-lookup-multi-dialog",{ref:"teamDialog",attrs:{"request-url":e.teamRequestUrl,"is-post":e.isPost,"request-params":e.requestParams,"dialog-callback":e.addTeamsCallback,entity:"team","name-field":"name","display-fields":[{name:"name"},{name:"description"}],title:e.$_t("crm.team","团队管理"),"orderby-fields":"name asc","filter-fields":"name"}})],1)],1)}),[],!1,null,"3f9b0345",null).exports),ee={props:{entityName:{requeired:!1,type:String}},data:()=>({defaultViewLogicalName:"用户",defaultViewId:"",objectIds:[],selectedValue:void 0,operateType:"view"}),computed:{requestUrl(){return this.defaultViewId?"api/vlist/ExecuteQuery?queryid="+this.defaultViewId:void 0}},methods:{show(e,t,r="view"){this.defaultViewId=t||"",this.objectIds=e,this.operateType=r,this.$refs.lookupDialog&&this.$refs.lookupDialog.show()},handleCurrentChange(e){this.selectedValue=e},handleRowDblClick(){this.handleSaveChange()},async handleSaveChange(){const e=this.selectedValue&&this.selectedValue.systemuserid;if(e){rt.showLoadingToast(this.$_t("common.assigning","正在分派..."));try{if("view"==this.operateType){let t=`api/dynamic/BatchAssign?entityName=${this.entityName}&ownerid=${e}`;await rt.post(t,this.objectIds),this.afterAssign()}else if("form"==this.operateType){let t=`api/dynamic/${this.entityName}/${this.objectIds[0]}/${e}/Assign`,r=await rt.post(t);this.afterAssign(r&&!r.IsRead)}}catch(e){rt.showErrorToast(e)}}else rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"))},afterAssign(e=!1){rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("common.assignsuccess","分派成功")),e?this.$router.go(-1):(this.$emit("AssignCallback"),this.$bus.$emit(this.entityName+"_assignCallback"),this.selectedValue=null,this.hideLookupDialog())},handleCancel(){this.objectIds=[],this.hideLookupDialog()},hideLookupDialog(){this.$refs.lookupDialog&&(this.$refs.lookupDialog.dialogVisible=!1)}}},te=Object(n.a)(ee,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rt-lookup-dialog",{ref:"lookupDialog",attrs:{entity:"systemuser","name-field":"fullname","id-field":"systemuserid",title:e.$_t("dataprivilege.assign","分派"),"condition-fields":"isdisabled eq false","show-vlist":!0,"default-view-id":e.defaultViewId,"request-url":e.requestUrl,"default-view-logical-name":e.defaultViewLogicalName,"display-fields":[{name:"domainname",label:e.$_t("systemuser.domainname","账号")},{name:"fullname",label:e.$_t("systemuser.fullname","全名")},{name:"businessunitid",label:e.$_t("systemuser.businessunitid","业务部门")},{name:"mobilephone",label:e.$_t("systemuser.mobile_phone","移动电话")}],"filter-fields":"domainname,fullname,systemuserid,businessunitid,mobilephone","row-dbl-click-fn":e.handleRowDblClick},on:{"current-change":e.handleCurrentChange}},[r("span",{staticClass:"plat-incident-btns",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{staticClass:"plat-incident-cancel",on:{click:e.handleCancel}},[e._v(e._s(e.$_t("BUTTON_CANCEL","取消")))]),r("rc-button",{attrs:{type:"primary"},on:{click:e.handleSaveChange}},[e._v(e._s(e.$_t("BUTTON_FENPAI","分派")))])],1)])}),[],!1,null,null,null).exports,re={mixins:[B.a],props:{objectId:{type:String,required:!1,default:""},objectTypeName:{type:String,required:!0},hiddenDefaultDiagram:{type:Boolean,default:!1},filterValue:{type:String,default:""}},data(){return{isAllData:!1,pageIndex:1,pageSize:1e4,tableData:[],loading:!1,moreData:[],itemData:[],isShow:!1,mainloading:!1,dataTotalCount:0,selectedValues:[],tableRows:[{label:this.$_t("new_autonumber.new_name","实体名称"),name:"displayname"},{label:this.$_t("common.modifiedcontent","修改内容"),name:"new_modifiedcontent"},{label:this.$_t("common.modifiedby","修改者"),name:"new_ownerid"}]}},watch:{objectId(e,t){e&&this.fetchData()}},mounted(){this.objectId&&this.fetchData()},methods:{fetchData(){this.isAllData=!1,this.tableData=[],this.loadData()},loadData:function(){if(this.objectId&&this.objectTypeName&&!this.isAllData){this.mainloading=!0;var e="api/audit?entityName="+this.objectTypeName+"&objectId="+this.objectId+"&pageIndex="+this.pageIndex+"&pageSize="+this.pageSize+"&attributeName="+this.filterValue;rt.get(e).then(e=>{this.mainloading=!1,e.Data&&e.Data.length>0&&(this.tableData=e.Data,this.dataTotalCount=e.TotalRecordCount),this.tableData.length==this.dataTotalCount?this.isAllData=!0:this.isAllData=!1}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})}},rollUp(){this.$refs._queryList.$el&&this.$PlatUtils.eventListenerHook(this,"scroll",()=>{let e=this.$refs._queryList.$el.children[0],t=e.scrollTop,r=e.scrollHeight;t+e.clientHeight>=r&&(this.isAllData||(this.pageIndex++,this.loadData()))},this.$refs._queryList.$el,!0)},showMore:function(){this.isShow=!this.isShow,this.$refs._queryList&&this.$PlatUtils.eventListenerHook(this,"scroll",()=>{let e=this.$refs._queryList,t=e.scrollTop,r=e.scrollHeight;t+e.clientHeight>=r&&(this.isAllData||(this.pageIndex++,this.loadData()))},this.$refs._queryList),this.isShow||(document.getElementById(this.objectTypeName).scrollTop=0)}}},ie=(r("3718"),{name:"RtAudits",components:{"audit-card":Object(n.a)(re,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-audit-card"},[r("rc-timeline",{attrs:{reverse:""}},e._l(e.tableData,(function(t,i){return r("rc-timeline-item",{key:i,attrs:{timestamp:t.createdon,format:e.getDateTimeFormat()}},[r("rc-section",[r("rtNewAttr",{attrs:{item:t}})],1)],1)})),1),e.tableData.length<=0?r("div",{staticClass:"rt-saas-nodata"},[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(" "+e._s(e.$_t("audits.noChangeRecord","暂无变更记录"))+" ")])])],1):e._e()],1)}),[],!1,null,"6c7441ad",null).exports},props:{objectId:{type:String,required:!1,default:""},objectTypeName:{type:String,required:!0},title:{type:String,required:!1,default:function(){return this.$_t("Change_Record","变更记录")}},showStyle:{type:Number,required:!1},hiddenDefaultDiagram:{type:Boolean,default:!1},isOpenCollapse:{type:Boolean,default:!1},isExpand:{type:Boolean,default:!0}},data:()=>({loading:!1,tableData:[],layout:"prev, pager, next, jumper",pageSizes:[5,10,20,30,40,50],totalRecordCount:0,pageInfo:{},filterValue:""}),computed:{isTableDataShow(){return Array.isArray(this.tableData)&&this.tableData.length>0},enableTableCellWordWrap(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"===this.$store.state.systemparameter.EnableTableCellWordWrap}},watch:{},mounted(){this.initData()},methods:{handleSearch(){this.reload()},reload(){this.$refs.tableData&&this.$refs.tableData.fetchData()},initData(){this.reload()},getAuditList(){return new Promise(e=>{if(!this.objectId)return e([]);var t="api/audit?entityName="+this.objectTypeName+"&objectId="+this.objectId+"&pageIndex="+this.pageInfo.pageIndex+"&pageSize="+this.pageInfo.pageSize+"&attributeName="+this.filterValue;rt.get(t).then(t=>(this.tableData=t.Data,this.totalRecordCount=t.TotalRecordCount,this.loading=!1,e(this.tableData))).catch(t=>(this.loading=!1,rt.showErrorToast(t),e([])))})},fetch(e){return this.pageInfo=e,this.getAuditList(1)}}}),ae=Object(n.a)(ie,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{staticClass:"rt-audit plat-audit-list",attrs:{title:e.title,icon:"rt-saas-audit","is-open-collapse":e.isOpenCollapse,"is-expand":e.isExpand}},[r("div",{staticClass:"rt-audit-search",attrs:{slot:"right"},slot:"right"},[r("rc-search",{attrs:{clearable:"",more:!1,type:"dark",placeholder:e.$_t("platform.searchField","搜索字段")},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1),2==e.showStyle?r("div",[r("audit-card",{ref:"tableData",attrs:{"filter-value":e.filterValue,"object-id":e.objectId,"object-type-name":e.objectTypeName,"hidden-default-diagram":e.hiddenDefaultDiagram}})],1):r("div",{staticClass:"rt-table-content"},[r("rc-table",{directives:[{name:"show",rawName:"v-show",value:e.isTableDataShow,expression:"isTableDataShow"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableData",staticClass:"rt-table-item",attrs:{stripe:"","max-height":"500",sectionable:!1,fetch:e.fetch,"empty-text":e.$_t("audits.noChangeRecord","暂无变更记录"),"page-size":10,"page-layout":e.layout,"pager-count":5,"total-record":e.totalRecordCount}},[r("rc-table-column",{attrs:{prop:"displayname","show-overflow-tooltip":!e.enableTableCellWordWrap,label:e.$_t("new_autonumber.new_name","实体名称"),width:"130px"}}),r("rc-table-column",{attrs:{prop:"new_modifiedcontent","show-overflow-tooltip":!e.enableTableCellWordWrap,label:e.$_t("common.modifiedcontent","修改内容"),"min-width":"250px"}}),r("rc-table-column",{attrs:{prop:"new_ownerid","show-overflow-tooltip":!e.enableTableCellWordWrap,label:e.$_t("common.modifiedby","修改者"),width:"130px"}}),r("rc-table-column",{attrs:{prop:"createdon","show-overflow-tooltip":!e.enableTableCellWordWrap,label:e.$_t("common.modifiedon","修改时间"),width:"250px"}})],1),r("rc-default-image",{directives:[{name:"show",rawName:"v-show",value:!e.isTableDataShow,expression:"!isTableDataShow"}],attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(" "+e._s(e.$_t("audits.noChangeRecord","暂无变更记录"))+" ")])])],1)])}),[],!1,null,null,null).exports,ne={props:{value:String|Number,fontSize:{type:Number,default:14},fontWeight:{type:String,default:"normal"},formitemkey:{type:String}},data:()=>({}),computed:{},mounted(){this.$nextTick(()=>{let e=document.getElementsByClassName("print-label");for(let t of e)t.attributes.formitemkey.value==this.formitemkey&&(t.style.cssText="font-size:"+this.fontSize+"px;height:auto!important;vertical-align: middle; font-weight:"+this.fontWeight+"!important;display: inline-block;white-space: pre-wrap;")})},methods:{}},oe=(r("2e72"),Object(n.a)(ne,(function(){var e=this.$createElement;return(this._self._c||e)("span",{staticClass:"print-label plat-print-label",attrs:{formitemkey:this.formitemkey}},[this._v(this._s(this.value))])}),[],!1,null,"0da60300",null).exports),se={name:"RtLogo",props:{logoType:{type:Number,required:!0,default:1},logoSrc:{type:String,required:!0,default:null}},data:()=>({fileUrl:""}),computed:{},watch:{},mounted(){1==this.logoType?this.getLogoImg():this.fileUrl=this.logoSrc},methods:{getLogoImg(){rt.get("api/custom/new_Common/Annotation/GetMainLogoUrl").then(e=>{e&&e.length>0?e.forEach(e=>{var t=e.FileName.indexOf(".");if("logo_register_servicereport"==e.FileName.substring(0,t)){let t=e.url;t&&!(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("ftp://"))&&(t=rt.getBaseUrl()+t),this.fileUrl=t}}):this.fileUrl=""}).catch(e=>{rt.showErrorToast(e)})}}},le=(r("b262"),Object(n.a)(se,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"plat-logo"},[this.fileUrl?t("img",{attrs:{src:this.fileUrl,alt:""}}):t("div",{staticClass:"logo-content"},[t("span",{staticClass:"nodata-span"},[this._v(" "+this._s(this.$_t("platform.logoNotShow","暂无显示"))+" ")])])])}),[],!1,null,"a93f2b56",null).exports),de=r("6f97"),ce=r.n(de),ue=r("da2d"),pe={name:"RtAutograph",components:{ElImageViewer:ce.a.ELEMENT.Image.components.ImageViewer},mixins:[ue.a],props:{objectId:{type:String,required:!0},objectTypeName:{type:String,required:!1,default:"new_srv_workorder"},bindType:{type:String,default:""},fieldName:{type:String,default:""},fieldValue:{type:String,default:""},notekey:{type:String,default:"电子签名"}},data:()=>({fileUrl:"",fileBlobUrl:"",isBlobUrl:!1,loading:!1,previewImageList:[],previewDialogVisible:!1}),computed:{isFieldType(){return"field"===this.bindType},isAnnotationType(){return!this.bindType||"annotation"===this.bindType},mergeProps(){return[this.objectId,this.objectTypeName,this.fieldName,this.fieldValue,this.notekey]}},watch:{mergeProps(){this.init()}},mounted(){this.init()},beforeDestroy(){this.fileBlobUrl&&URL.revokeObjectURL(this.fileBlobUrl)},methods:{async init(){this.isFieldType?this.fileUrl=this.fieldValue:this.isAnnotationType&&await this.getSignatureData(),this.fileUrl&&(this.fileUrl.startsWith("http")?(this.isBlobUrl=!1,this.fileBlobUrl=this.fileUrl):(this.isBlobUrl=!0,this.fileBlobUrl=await rt.getImgUrl(this.fileUrl)))},async getSignatureData(){if(this.objectId){this.loading=!0;const t=this.notekey||"电子签名",r=`api/attachment/GetAllAnnotations?&id=${this.objectId}&entityName=${this.objectTypeName}&nodeText=${t}`;try{const e=await rt.get(r);if(Array.isArray(e)&&e.length>0){const t=e[0];this.fileUrl=t.fileurl}else this.fileUrl=""}catch(e){rt.showErrorToast(e)}finally{this.loading=!1}}},previewImage(){this.previewDialogVisible=!0},closePreviewDialog(){this.previewDialogVisible=!1},downloadImage(e){let t={url:e,name:this.$_t("ELECTRONIC_SIGNATURE","电子签名")+".jpg"};this.downloadFile(t)}}},he=(r("fde9"),Object(n.a)(pe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"plat-autograph apaas-card"},[e.fileUrl?r("div",{staticClass:"autograph-img-wrapper",on:{click:e.previewImage}},[r("img",{staticClass:"plat-autograph-fileUrl",attrs:{src:e.fileBlobUrl}}),r("div",{staticClass:"bottom-func-area"},[r("div",{staticClass:"bottom-func-item"},[r("span",{staticClass:"func-icon-wrapper",on:{click:function(t){return t.stopPropagation(),e.downloadImage(e.fileUrl)}}},[r("rc-icon",{attrs:{name:"rt-saas-download-lined",size:"16",color:"#FFFFFF"}})],1)])])]):r("rc-default-image",{attrs:{size:"medium"}},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(" "+e._s(e.$_t("platform.AutographDescribe","暂无签名"))+" ")])]),e.previewDialogVisible?r("el-image-viewer",{attrs:{"on-close":e.closePreviewDialog,"url-list":[e.fileBlobUrl]}}):e._e()],1)}),[],!1,null,"225b667c",null).exports),fe={props:{entityDisplayName:String,queries:{type:Array,default:function(){return[]}},queryId:{type:String,required:!1,default:""},queryLogicalName:{type:String,required:!1,default:""}},data(){return{dropIndex:0,queryIdParam:this.$route.params.queryId}},computed:{title:function(){var e;return this.entityDisplayName?this.entityDisplayName:this.queryIdParam&&this.queries?(e=this.queries.filter(e=>e.SavedQueryId==this.queryIdParam))&&e.length>0?e[0].name:null:this.queryLogicalName&&this.queries?(e=this.queries.filter(e=>e.LogicalName==this.queryLogicalName))&&e.length>0?e[0].name:null:1==this.queries.length?this.queries[0].name:null}},watch:{dropIndex(e,t){-1==this.queries[e].QueryType?(this.$emit("showUserDefinedQuery"),this.$nextTick(()=>{this.dropIndex=t})):-2==this.queries[e].QueryType?this.$nextTick(()=>{this.dropIndex=t}):e!=t&&-1!==this.queries[t].QueryType&&this.queries[e].SavedQueryId!=this.queryId&&this.$emit("queryChange",this.queries[e].SavedQueryId)}},mounted(){this.queries.forEach((e,t)=>{this.queryId&&this.queryId==e.SavedQueryId&&(this.dropIndex=t)})}},me=(r("5f72"),Object(n.a)(fe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"querySelector plat-query-selector"},[e.queryIdParam&&e.queryIdParam.length>0||1==e.queries.length||e.queryLogicalName.length>0?r("rc-header-title",{attrs:{title:e.title}}):r("rc-list-dropdown",{attrs:{"menu-list":e.queries},model:{value:e.dropIndex,callback:function(t){e.dropIndex=t},expression:"dropIndex"}})],1)}),[],!1,null,"6bfa16b5",null).exports),ge=r("6f75"),be=r("aab4"),ye=r("3a01"),ve={name:"UserCustomBtn",mixins:[r("0a16").a],components:{PlatFieldSelection:be.a},props:{objectTypeName:String,queryLogicalName:String,schemas:Array,currentQueryId:String,LayoutObject:Object,version:Number},data:()=>({dialogVisible:!1,treeData:{},defaultProps:{children:"children",label:"DisplayName"},tableCheckedKeys:[],storeTreeNode:"",showBasicTree:!1}),watch:{dialogVisible:{handler(e){e||this.$refs.fieldSelection&&this.$refs.fieldSelection.resetData(),this.storeTreeNode=localStorage.getItem("storeTreeNode")},deep:!0}},methods:{async getBasicTreeData(){this.showBasicTree=!0;const e=await this.getMetaAttributesByEntityLogicalname(this.objectTypeName);this.$set(this.treeData,"basicTreeData",e),this.showBasicTree=!1},async getRelatedTreeData(){const e=await this.getManytooneRelationships(this.objectTypeName);this.$set(this.treeData,"relatedTreeData",e)},handleReset(){this.$confirm(this.$_t("platform.userQueryClearnDefault","恢复默认后将清除当前设置"),this.$_t("platform.warning","警告"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{rt.get("api/vlist/DeleteUserMetaQuery?queryid="+this.currentQueryId).then(()=>{this.$emit("refreshtable")}),this.dialogVisible=!1}).catch()},handleConfirm(){let e=this.$refs.fieldSelection;if(e){if(!e.isValidatored)return void rt.showErrorToast(this.$_t("platform.requiredFeild","字段名称不可为空"));let t=e.choicedList;if(0==t.length)return void rt.showErrorToast(this.$_t("platform.userQueryChooseOne","请最少选择一个字段"));rt.showLoadingToast(),t=t.map(e=>{if(e.needRender){e.needRender=!1;let t="";e.props.displayName&&(t=e.props.displayName),e={...Object(ye.a)(e)},(t||0==t)&&(e.props.displayName=t)}return e}),rt.hideLoadingToast(),this.LayoutObject.children.forEach(e=>{"gridtable"==e.$nodetype&&e.children&&(e.children=e.children.reduce((e,t)=>(["gridcell","customerComponent"].includes(t.$nodetype)||e.push(t),e),[]),e.children.push(...t))});let r={queryId:this.currentQueryId,version:this.version,LayoutObject:this.LayoutObject};rt.post("api/vlist/SavePage",r).then(()=>{this.$emit("refreshtable")}),e.defaultDataList=[],this.dialogVisible=!1}},showAddDialog(){this.dialogVisible=!0,this.getBasicTreeData(),this.getRelatedTreeData(),this.tableCheckedKeys=this.extractSelectedFieldsFromLayout(this.LayoutObject)}}},xe=(r("2158"),Object(n.a)(ve,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-user-custom-btn"},[r("rc-tooltip",{attrs:{placement:"bottom",content:e.$_t("JWorkflow.Field","字段")}},[r("rc-button",{attrs:{"icon-name":"plat-icon-set-lined","color-type":"neutral-secondary",type:"plain",text:"","icon-size":"18px"},on:{click:e.showAddDialog}})],1),r("rc-dialog",{staticClass:"plat-user-custom-btn-dialog",attrs:{"append-to-body":!0,"close-on-click-modal":!1,title:e.$_t("platform.editFeild","编辑属性"),size:"large"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("plat-field-selection",{directives:[{name:"loading",rawName:"v-loading",value:e.showBasicTree,expression:"showBasicTree"}],ref:"fieldSelection",attrs:{"tree-data":e.treeData,"table-checked-keys":e.tableCheckedKeys,"store-tree-node":e.storeTreeNode}}),r("span",{staticClass:"plat-user-custom-dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{on:{click:e.handleReset}},[e._v(e._s(e.$_t("platform.userQueryDefault","恢复默认")))]),r("rc-button",{staticClass:"user-custom-dialog-confirm",attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.$_t("common.determine","确定")))])],1)],1)],1)}),[],!1,null,"c2898574",null).exports),we={name:"HeaderTab",components:{userCustomBtn:xe,PlatBadge:M},props:{userQueryProps:{type:Object,default:()=>({})},enableUserQuery:{type:Boolean,default:!1},queries:{type:Array,default:function(){return[]}},queryId:{type:String,required:!1,default:""},routeQueryId:{type:String,required:!1,default:""},queryLogicalName:{type:String,required:!1,default:""},editForm:Object,filterFormList:Array,entityName:String,category:String,disableFetch:Boolean,dataLoaded:Boolean,dataTotalCount:Number,showBadage:{type:Boolean,default:!0},isPreview:{type:Boolean,default:!1},showSaveTableWidthIcon:Boolean,currentViewType:Object,hideCustomBtn:Boolean,filterCount:{type:Number,default:0},isGoBack:{type:Boolean,default:!1},isSingle:{type:Boolean,default:!1},extendConditionsFromEchart:Array,searchString:{type:String,default:""},isShowChart:{type:Boolean},disablePersonalView:{type:Boolean}},inject:["refProvide"],data:()=>({dropIndex:0,tabIndexMore:null,currentQueries:[],general_view:[],personal_view:[],add_view:[],tableIsLoaded:!1,showBadge:!1,storeBadges:[],currentPersonalViewId:"",imgUrl:rt.getPublicUrl()+"imgs/statistics-filled@2x.png"}),computed:{PCDisableChart(){return!!this.$store.state.systemparameter&&"true"==this.$store.state.systemparameter.PCDisableChart},getTabsList(){return[...this.general_view,...this.personal_view]},getMoreTabs(){const e=/[<>]/gi;return this.getTabsList&&this.getTabsList.slice(6).map(t=>({...t,name:e.test(t.name)?t.name.replace(e,""):t.name}))},headerTabClass(){return this.tableIsLoaded?"headerTab plat-header-tab":"headerTab plat-header-tab isLoading"},newShowSaveTableWidthIcon(){return this.showSaveTableWidthIcon},getCurrentBadgeCount(){var e,t,r;if(!this.showBadage)return 0;const i=(null===(e=this.$store)||void 0===e||null===(t=e.state)||void 0===t||null===(r=t.systemparameter)||void 0===r?void 0:r.MaxNumOfBadge)||0;return parseInt(i){this.queryId==t.SavedQueryId&&t.IsShowBadge&&(t.BadgeCount=e,t.fullName=t.name+(t.BadgeCount?" "+t.BadgeCount:""))}),this.storeBadges.some(t=>{if(t.QueryId==this.queryId)return t.BadgeCount=e.toString(),!0}),this.updateBadges2DB(this.storeBadges))},queries:{handler:function(e){this.formatTabData(e||[],this.storeBadges),this.loadData()}}},mounted(){this.$PlatUtils.eventListenerHook(this,"message",e=>{e.data.saveStatus&&e.data.data&&(this.currentPersonalViewId=e.data.data)},window),this.showBadage?this.loadHeaderTabDataWidthBadge():(this.formatTabData(this.queries,[]),this.loadData()),this.$PlatUtils.listenerHook(this,"tableIsLoadComplete",e=>{this.tableIsLoaded=e}),this.$PlatUtils.listenerHook(this,"loadCurrentPersonalView",this.loadCurrentPersonalViewHandler),this.$PlatUtils.listenerHook(this,"personalViewDeleted",this.personalViewDeletedHandler)},methods:{__getBadgesDBKey(){let e="vBadges/"+this.entityName;return this.moduleType&&(e+="/"+this.moduleType),e},refreshtable(){this.$emit("refreshtable")},loadCurrentPersonalViewHandler(){this.tabIndexMore=null,this.$emit("queryChange",this.currentPersonalViewId,0)},personalViewDeletedHandler(){if(this.getTabsList&&this.getTabsList[0]){const e=0;this.exchangeTab({index:"0",resetQueries:e}),setTimeout(()=>{this.$nextTick(()=>{this.tabIndexMore=null})})}},toShowEchart(){this.$emit("showEchartHandler")},handleItem:(e,t)=>("string"==typeof e?rt.isNullOrWhiteSpace(e)||t++:e instanceof Date?t++:Array.isArray(e)?e&&e.length>0&&t++:"[object Object]"===Object.prototype.toString.call(e)?rt.isNull(e)||t++:("boolean"==typeof e||"number"==typeof e)&&t++,t),toResetFilter(e){this.$emit("toReRenderDrawer"),this.$bus.$emit("refreshFilterList_"+this.entityName)},exchangeTab(e,t){const r=this.getTabsList.slice(0,6)[e.index]&&this.getTabsList.slice(0,6)[e.index].SavedQueryId;this.queryId==r&&t||(this.refProvide&&(this.refProvide.historyRow=null),this.$bus.$emit("clearMoreFilterList_"+this.entityName),this.$bus.$emit("closeChartDrawerColumn"),this.getTabsList.slice(0,6)[e.index]&&this.$emit("queryChange",r,e.resetQueries))},beforeLeaveHandler(e,t){return!("more"==e&&"more"!=t&&!this.tabIndexMore)&&("more"!=e&&"more"==t&&this.$nextTick(()=>{this.tabIndexMore=null}),!0)},openMore(e){this.queryId!=e&&(this.tabIndexMore=e,this.$emit("queryChange",e))},reLoadCurrentBadge(e){this.getTabsList.slice(0,6).forEach(e=>{this.queryId==e.SavedQueryId&&(this.showBadge=e.IsShowBadge)}),this.showBadge||"getBadge"==e?(this.loadData(),this.formatTabData(this.queries,this.storeBadges)):(this.formatTabData(this.queries,[]),this.loadData())},loadHeaderTabDataWidthBadge(e){this.$apaasStorage.openDB(1,(t,r)=>{const i=this.__getBadgesDBKey();this.$apaasStorage.find(t,r,i,t=>{t&&t.data&&(this.storeBadges=t.data,this.formatTabData(this.queries,t.data),this.loadData()),this.freshTabInfo(e)},()=>{this.freshTabInfo(e)},!0)})},loadData(){let e=[],t=[],r=[];this.currentQueries.forEach(i=>{-1==i.QueryType||-2==i.QueryType?e.push(i):1==i.IsUserQuery?(i.icon="rt-base-user-lined",t.push(i)):0==i.IsUserQuery&&r.push(i)}),this.add_view=e,this.general_view=r,this.personal_view=t,this.computedModuleName&&(this.general_view=r.filter(e=>e.queryId===this.routeQueryId||e.LogicalName===this.routeQueryId||e.LogicalName===this.queryLogicalName),this.personal_view=t.filter(e=>e.queryId===this.routeQueryId||e.LogicalName===this.routeQueryId||e.LogicalName===this.queryLogicalName||e.queryId===this.queryLogicalName)),[...this.general_view,...this.personal_view].forEach((e,t)=>{e.$key=`${e.SavedQueryId}_${e.fullName}`,this.queryId==e.SavedQueryId&&(t<6?this.dropIndex=e.$key:(this.dropIndex="more",this.tabIndexMore=e.queryId))})},freshTabInfo(e){this.showBadage?this.loadViewListBadges(e).then(e=>{this.storeBadges=e,this.formatTabData(this.queries,e),this.loadData()}).catch(e=>{rt.showErrorToast(e),this.formatTabData(this.queries,[]),this.loadData()}):(this.formatTabData(this.queries,[]),this.loadData())},formatTabData(e,t){const r=[];e.forEach(e=>{let i=e;const a=t.find(t=>t.QueryId==e.SavedQueryId);a&&(this.queryId==e.SavedQueryId&&this.dataLoaded?i.BadgeCount=this.getCurrentBadgeCount:i.BadgeCount=a.BadgeCount,i.fullName=e.name+" "+i.BadgeCount),i.fullName&&"0"!=i.BadgeCount||(i.fullName=e.name),r.push(i)}),this.currentQueries=r},getCurrentQueryBadge(e){let t={queryid:this.queryId,isUserQuery:this.currentViewType.IsUserQuery,isPreview:this.isPreview,queryOptions:{extendConditions:e}};return rt.post("api/vlist/GetCurrentQueryBadge",t).then(e=>[e]).catch(e=>{rt.showErrorToast(e)})},loadViewListBadges(e){let t={entityName:this.entityName,category:this.category,platformType:1,searchText:this.isGoBack?this.searchString:e};return this.computedModuleName&&(t.AppointQueryId=this.computedModuleName),rt.post("api/vlist/GetQueryListBadges",t).then(e=>(this.updateBadges2DB(e),e))},updateBadges2DB(e){this.$apaasStorage.openDB(1,(t,r)=>{const i=this.__getBadgesDBKey();this.$apaasStorage.addBadge(t,r,i,e)})},toSaveTable(){this.$emit("toSaveTableWidth")},toCancel(){this.$emit("toCancelWidth")},toShowMore(){this.$emit("toShowFilterDrawer")},showDesigner(e){switch(e.QueryType){case-1:this.$emit("showUserDefinedQuery");break;case-2:this.$emit("showUserViewDesigner")}}}},_e=(r("7aad"),r("ed8e"),Object(n.a)(we,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.headerTabClass},[r("rc-tabs",{ref:"headerTabRef",staticClass:"headerTabRef",attrs:{secondary:"","before-leave":e.beforeLeaveHandler,border:!1,size:"small","max-length":100,"tab-pane-padding":"0"},on:{"tab-click":function(t){return e.exchangeTab(t,!0)}},model:{value:e.dropIndex,callback:function(t){e.dropIndex=t},expression:"dropIndex"}},[e._l(e.getTabsList.slice(0,6),(function(t){return r("rc-tab-pane",{key:t.$key,attrs:{name:t.$key,disabled:!e.tableIsLoaded,label:t.fullName}},[r("div",{staticClass:"plat-header-tab-content",attrs:{slot:"label"},slot:"label"},[t.icon?r("rc-icon",{attrs:{type:"iconFont",size:16,name:t.icon}}):e._e(),r("plat-badge",{attrs:{value:t.BadgeCount,"inner-text":t.name}})],1)])})),e.getMoreTabs.length&&!e.computedModuleName?r("rc-tab-pane",{attrs:{name:"more",disabled:!e.tableIsLoaded}},[r("rc-list-dropdown",{ref:"listDropdown-more",staticClass:"plat-header-listDropdown-more",attrs:{slot:"label","icon-color":e.tabIndexMore?"primary":"","title-color":"n-secondary","title-font-size":14,alias:{value:"queryId"},"single-placeholder":e.$_t("common.more","更多"),"menu-list":e.getMoreTabs,"need-default-empty":!1,value:e.tabIndexMore},on:{input:e.openMore},slot:"label"})],1):e._e()],2),e.disablePersonalView?e._e():r("div",{staticClass:"plat-header-btns"},e._l(e.add_view,(function(t){return r("div",{key:t.SavedQueryId+t.fullName,staticClass:"new_active",on:{click:function(r){return e.showDesigner(t)}}},[-2==t.QueryType?r("rc-tooltip",{attrs:{placement:"bottom",content:t.name}},[r("rc-button",{attrs:{type:"plain","icon-name":"plat-icon-circle-plus-lined","color-type":"neutral-secondary",text:"","icon-size":"18px"}})],1):e._e(),-1==t.QueryType?r("rc-tooltip",{attrs:{placement:"bottom",content:t.fullName}},[r("rc-button",{attrs:{type:"plain","icon-name":"plat-icon-fwy-listing-lined","color-type":"neutral-secondary",text:"","icon-size":"18px"}})],1):e._e()],1)})),0),r("div",{staticClass:"showMoreSearchDiv"},[!e.hideCustomBtn&&e.newShowSaveTableWidthIcon&&e.currentViewType&&!e.currentViewType.IsUserQuery?r("rc-popover",{attrs:{"popper-class":"header-save-table-icon",placement:"bottom-end",width:"200",trigger:"click"}},[r("rc-button",{attrs:{slot:"reference","icon-name":"rt-saas-save","color-type":"neutral-secondary",text:""},slot:"reference"}),r("div",{staticClass:"notice"},[e._v(" "+e._s(e.$_t("commom.saveTableWidth","是否保存表格列的宽度?"))+" ")]),r("div",{staticClass:"btn-group"},[r("rc-button",{attrs:{size:"small",type:"text"},on:{click:e.toCancel}},[e._v(e._s(e.$_t("common.cancel","取消")))]),r("rc-button",{attrs:{type:"primary",size:"small"},on:{click:e.toSaveTable}},[e._v(e._s(e.$_t("common.determined","确定"))+" ")])],1)],1):e._e(),e.hideCustomBtn||e.PCDisableChart||!e.isShowChart?e._e():r("rc-tooltip",{attrs:{placement:"bottom",content:e.$_t("echart.statistics","图表")}},[r("img",{staticClass:"showMoreSearch headerTabConfig header-tab-chart",attrs:{src:e.imgUrl,alt:""},on:{click:e.toShowEchart}})]),e.enableUserQuery?r("userCustomBtn",e._b({staticClass:"headerTabConfig",on:{refreshtable:e.userQueryProps.refreshtable}},"userCustomBtn",e.userQueryProps,!1)):e._e(),e.filterCount?r("rc-tag",{staticClass:"tag-count",attrs:{icon:"plat-icon-new-filter-lined","font-color":e.SCSS_VARIABLES.COLOR_PRIMARY,closable:!0},on:{click:e.toShowMore,close:e.toResetFilter}},[r("div",{staticClass:"__icon-left rtxpc__icon-left",attrs:{slot:"icon-left"},slot:"icon-left"},[r("rc-icon",{attrs:{name:"plat-icon-new-filter-lined"}})],1),e._v(" "+e._s(e.filterCount)+" ")]):r("rc-tooltip",{attrs:{placement:"bottom",content:e.$_t("BUTTON_MORESCREEN","筛选")}},[r("rc-button",{staticClass:"showMoreSearch headerTabConfig",attrs:{"icon-name":"plat-icon-new-filter-lined","color-type":"neutral-secondary",type:"plain",text:"","icon-size":"18px"},on:{click:e.toShowMore}})],1)],1)],1)}),[],!1,null,"02d41a44",null).exports),Ee=r("18a3"),Ce={name:"OperateCell",mixins:[F.a],props:["row","fromEntity","hidetext","maxbuttons"],data:()=>({slots:[]}),watch:{fromEntity:{handler(e,t){setTimeout(()=>{this.initCell(),this.initwidth()},100)},deep:!0},row:{handler(e,t){setTimeout(()=>{this.initCell(),this.initwidth()},100)},deep:!0}},mounted(){this.initCell(),this.initwidth()},methods:{initCell(){let e=[],t=this.$slots.default[0];if(t){let r={...this,row:this.row,fromEntity:this.fromEntity};t.children&&t.children.length>0&&t.children.forEach(t=>{let i=t.data.props,a=!1;if(i){let n=i.hiddenExpression;try{let o=i.bizHiddenExpression;n?a=this.getFunctionByExpression(n).call(r)||i.ishidden:o&&(a=this.getFunctionByExpression(o).call(r)),a||e.push(t)}catch(e){}}})}this.slots=e},initwidth(){this.$nextTick(()=>{let e=this.$refs["operation_"+this.row.$id];if(e&&e.childNodes&&e.childNodes.length>0&&e.childNodes[0].children){let t=e.childNodes[0].childNodes,r=16;for(let e of t)e&&e.getBoundingClientRect&&(e.getBoundingClientRect().width>0?r+=e.getBoundingClientRect().width:e.textContent&&e.textContent.trim().length>0&&(e.attributes.trigger?r+=48:r+=this.calculateWidth(e.textContent.trim())+20));this.$emit("tableCellWidth",{rowId:this.row.$id,customWidth:r})}})},calculateWidth(e){let t=0;for(var r=0;r255?t+=14:t+=7;return t},renderButtonBySubGrid(e){if(0==this.slots.length)return e();let t=[];for(let[a,n]of this.slots.entries()){var r,i;let o,s,l=n.componentOptions,d={currentRow:this.row,row:this.row,fromEntity:this.fromEntity,functionType:"inlineButton"};o=l.listeners.click?l.listeners.click.bind(d):()=>{};const c=this.hidetext&&a{const e=l.children[0].text;l.propsData.tooltip=e;const t=[...l.children];return t[0]={...t[0],text:""},l.propsData.hideBtnIcon=!1,l.propsData.iconName||(l.propsData.iconName="rt-saas-new"),"biz-button"===l.tag&&(l.propsData.hidetext=!0,l.propsData.tooltip=l.propsData.label),t})():l.children;s=n&&"delete"==(null==n||null===(r=n.data)||void 0===r||null===(i=r.props)||void 0===i?void 0:i.operationType)?e("rc-popconfirm",{attrs:{"cancel-button-type":"plain",activeButtonColor:this.SCSS_VARIABLES.COLOR_DANGER_HOVER},props:{title:this.$_t("ThisActionDeletePerpetually_notPrimaryAttribute","此操作将会永久删除记录,是否继续?")},on:{confirm:()=>{o()}}},[e(l.tag,{slot:"reference",props:{...l.propsData,size:"small",hoverColor:this.SCSS_VARIABLES.COLOR_DANGER_HOVER,activeColor:this.SCSS_VARIABLES.COLOR_DANGER_HOVER}},c)]):e(l.tag,{props:{...l.propsData,size:"small"},on:{click:e=>{e.stopPropagation(),o()}}},c),t.push(s)}return t}},render:function(e){var t=e("rc-list-button-group",{key:(new RtDate).getTime()+"group",props:{key:"listbtn_"+this.row.$id,...this.$slots.default[0].data.props,hidetext:this.hidetext}},this.renderButtonBySubGrid(e));return e("div",{class:"operation",ref:"operation_"+this.row.$id,on:{}},[t])}},Ne=Object(n.a)(Ce,void 0,void 0,!1,null,null,null).exports,Se={name:"UserQueryColumn",props:{currentQueryId:String},data:()=>({gridData:[],checkedKeys:[],defaultProps:{children:"children",label:"label"}}),methods:{loadData(){this.$vlistgridcellDB.openDB(e=>{let t=this.$store.state.user.userId+"_"+this.currentQueryId;this.$vlistgridcellDB.find(e,t,e=>{if(e)this.gridData=e.data,this.checkedKeys=e.data.filter(e=>e.props.visible).map(e=>e.attributeFullName);else{let e=sessionStorage.userqueryCellInfo;this.gridData=JSON.parse(e)[t],this.checkedKeys=this.gridData.filter(e=>e.props.visible).map(e=>e.attributeFullName)}},()=>null)})},handleDrop(){this.$refs.userTree&&this.$refs.userTree.setCheckedKeys(this.checkedKeys)},handleCheckChange(e,t,r){let i=this.checkedKeys.findIndex(t=>t==e.attributeFullName);-1==i||t?t&&-1==i&&this.checkedKeys.push(e.attributeFullName):this.checkedKeys.splice(i,1)},allowDrop:(e,t,r)=>!(t.level>1)&&"inner"!==r,confirmColumn(){0!=this.checkedKeys.length?(this.gridData=this.gridData.map(e=>{let t=this.checkedKeys.find(t=>t==e.attributeFullName);return e.props.visible=!!t,e}),this.$vlistgridcellDB.openDB(e=>{let t=this.$store.state.user.userId+"_"+this.currentQueryId;this.$vlistgridcellDB.add(e,t,this.gridData)}),this.$refs.userPopover&&this.$refs.userPopover.$children[0].doClose(),this.$emit("refreshtable")):rt.showErrorToast(this.$_t("platform.userQueryChooseOne","请最少选择一个字段"))},restoreDefault(){this.$confirm(this.$_t("platform.userQueryClearnDefault","恢复默认后将清除当前设置"),this.$_t("platform.warning","警告"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{this.$vlistgridcellDB.openDB(e=>{let t=this.$store.state.user.userId+"_"+this.currentQueryId;this.$vlistgridcellDB.deleteData(e,t,()=>{e.close(),this.$emit("refreshtable")})})}).catch()}}},Te=(r("7921"),{name:"TableCell",components:{operateCell:Ne,userQueryColumn:Object(n.a)(Se,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-popover",{ref:"userPopover",attrs:{"popper-class":"plat-user-query-column",placement:"bottom-end",width:"320",trigger:"click"}},[r("rc-icon",{attrs:{slot:"reference",name:"rt-base-gear-filled"},on:{click:e.loadData},slot:"reference"}),r("div",{staticClass:"userquery"},[r("div",{staticClass:"userquery-title"},[r("span",{staticClass:"userquery-label"},[e._v(e._s(e.$_t("platform.userQueryColumnLabel","可视字段")))]),r("span",{staticClass:"userquery-tip"},[e._v(e._s(e.$_t("platform.userQueryColumnTip","支持拖拽排序")))])]),r("el-tree",{ref:"userTree",staticClass:"user-tree",attrs:{data:e.gridData,"node-key":"attributeFullName","show-checkbox":"","default-expand-all":"",props:e.defaultProps,draggable:"","allow-drop":e.allowDrop,"default-checked-keys":e.checkedKeys},on:{"node-drop":e.handleDrop,"check-change":e.handleCheckChange}}),r("div",{staticClass:"userquery-footer"},[r("rc-button",{on:{click:e.restoreDefault}},[e._v(e._s(e.$_t("platform.userQueryDefault","恢复默认")))]),r("rc-button",{attrs:{type:"primary"},on:{click:e.confirmColumn}},[e._v(e._s(e.$_t("platform.userQueryPrimary","确认")))])],1)],1)],1)}),[],!1,null,"357be0b2",null).exports,userCustomBtn:xe},mixins:[Ee.a,B.a],props:["queryAttributes","label","width","dateTimeFormat","attributeType","disableSorting","hidetext","maxbuttons","otherProps","langkey","parenttype","tableWidth","isPrint","isAttachment","version","fixed","celltype","parentkey","isHighlight","visible","currentQueryId","schemas","queryLogicalName","objectTypeName","LayoutObject","currentViewType","subGridChangedProps","hideCustomBtn","minValue","maxValue","precision","gridcellBtnRequired","formStatus","subgridValidateResult","requiredExpression","showcolor"],data:()=>({screenWidth:0,tableCellWidthDefaultArr:[],cellprops:null}),inject:["subgridFormData"],computed:{sortable2(){return 0!==this.formStatus&&(!["picklistarray","partylist"].includes(this.dataType)&&!this.disableSorting&&"custom")},width2(){return this.width+50}},mounted(){this.handleWidnowResize(),this.$PlatUtils.eventListenerHook(this,"resize",this.handleWidnowResize)},methods:{maxWidth(){if(this.tableCellWidthDefaultArr&&this.tableCellWidthDefaultArr.length>0){let e=this.tableCellWidthDefaultArr.map(e=>e.customWidth),t=Math.max(...e);return t<80?80:t}return 80},cellProps(){let e=this.tableWidth?this.tableWidth:1,t=isNaN(this.width)?0:this.width,r={prop:this.attributeFullName,label:this.label,sortable:this.sortable2,align:"option"==this.celltype?"center":this.align,fixed:this.fixed,showOverflowTooltip:!this.enableTableCellWordWrap&&"option"!=this.celltype,resizable:!!this.attributeFullName};return"VFormPrint"==this.$route.name&&(r.showOverflowTooltip=!1),["int","float","decimal","money","bigint"].includes(this.dataType)&&(r.align="rtl"===this.direction?"left":"right"),this.isPrint?r["min-width"]=t/e*100+"%":"option"==this.celltype?r.width=this.maxWidth():r["min-width"]=this.width2,"userQuery"==this.celltype&&(r.fixed="right",r.align="center",r.width="50px",r.sortable=!1),this.showcolor&&"picklist"==this.dataType&&(r.showOverflowTooltip=!0,r["min-width"]=this.width2),r},renderHeader(e,{column:t}){let r;"string"==typeof this.requiredExpression&&(r=this.requiredExpression.replace(/\s*\/\/.*$/gm,""));const i=!r&&this.gridcellBtnRequired?e("rt-icon",{class:"requiredIcon",props:{name:"rt-base-required-lined",size:"10px",color:"#f44725"}}):e(null),a=this.ifEditable?e("rt-icon",{class:"editIcon",props:{name:"plat-icon-edit-lined",size:"12px"}}):e(null);return e("div",{class:"subgridCellIcon"},[i,e("span",t.label),a])},createCell(e){let t=!1;if((this.currentViewType&&this.currentViewType.IsUserQuery||this.hideCustomBtn)&&(t=!0),"userQuery"==this.celltype){const r=e("user-custom-btn",{props:{currentQueryId:this.currentQueryId,version:this.version,objectTypeName:this.objectTypeName,queryLogicalName:this.queryLogicalName,LayoutObject:this.LayoutObject},class:"userQuery-cell",on:{refreshtable:this.refreshtable}},[]);return t?null:e("rc-table-column",{attrs:this.cellProps(),scopedSlots:{header:e=>r,default:t=>e("div","")}})}let r={attrs:this.cellProps(),key:this.name},i=!1;return(this.ifEditable||this.ifEditableExpression)&&!this.subgridIsReadonly&&this.subgridkey&&(i=!0),this.subgridkey&&(r.attrs.renderHeader=this.renderHeader),r.key+="_"+i,r.scopedSlots=i?{default:t=>this.renderDefaultCell(e,t,!0),edit:t=>this.gridcellIsEditable(t.row)?(t.isEdit=!0,this.renderEditComponent(e,t)):(rt.showErrorToast(this.$_t("list.editable","此列无需编辑")),e(null))}:{default:t=>t.row.isAdd?this.renderNewAddCell(e,t):this.renderDefaultCell(e,t,!1)},e("rc-table-column",r)},renderEditComponent(e,t){t.property=this.attributeFullName,t.row.$logicalname=t.row.$logicalname||this.parentkey;const r={tableColumnProps:{...t,parentkey:this.parentkey},dataType:this.dataType,subgridLookupProps:this.subgridLookupProps,row:t.row,subgridkey:this.subgridkey,referencedEntity:this.referencedEntity,datafieldname:this.datafieldname,relationshipId:this.relationshipId,minValue:this.minValue,maxValue:this.maxValue,precision:this.precision,attributeType:this.attributeType,dateTimeFormat:this.dateTimeFormat,options:this.options,needZeroFill:this.displayNumbersByPrecision,showcolor:this.showcolor};return t.row.hasOwnProperty("_edit_"+this.getFieldName())&&(r.value=t.row["_edit_"+this.getFieldName()]),e("table-cell-edit",{props:r,on:{input:(e,r)=>{this.$set(t.row,"_edit_"+r,e),this.$bus.$emit("markCurrentEditRow_"+this.subgridkey,JSON.parse(JSON.stringify(t.row)),r)},change:(e,r,i)=>{this.$set(t.row,"_edit_"+r,e),i&&this.$set(t.row,"lookupValue",i),this.$bus.$emit("markCurrentEditRow_"+this.subgridkey,t.row)},attributeMappingCallback:e=>{this.$emit("attributeMappingCallback",t.row,e,this.attributeFullName,this.referencedEntity)}}})},renderNewAddCell(e,t){t.property=this.attributeFullName,t.row.$logicalname=t.row.$logicalname||this.parentkey;let r={};if(this.isHighlight&&(r.color=this.SCSS_VARIABLES.COLOR_PRIMARY),!this.gridcellIsEditable(t.row)){if(!this.dataType){const r=e("rc-button",{props:{size:"small",text:!0,type:"plain"},on:{click:e=>{this.$bus.$emit("subgridDeleteRow_"+this.subgridkey,[t.row.$id]),e.stopPropagation()}},class:"operate-option"},this.$_t("common.delete","删除"));return e("rc-list-button-group",{},[r])}return this.renderTableCell(e,t,{linkStyle:r})}if(this.attributeType&&this.name){if(!this.subgridFormData||0==this.subgridFormData.subgridData.length)return;return this.subgridFormData.subgridData[t.$index]&&!Object.keys(this.subgridFormData.subgridData[t.$index]).includes(t.property)&&this.$set(this.subgridFormData.subgridData[t.$index],t.property,this.defaultvalue),this.renderEditComponent(e,t)}},renderDefaultCell(e,t,r=!1){t.property=this.attributeFullName;let i={};return this.isHighlight&&(i.color=this.SCSS_VARIABLES.COLOR_PRIMARY),"option"==this.celltype?e("operate-cell",{key:t.row.$id+this.maxWidth()+"_cell",on:{mouseenter:()=>this.enterCell(t.row),tableCellWidth:e=>{let t=this.tableCellWidthDefaultArr.find(t=>t.rowId==e.rowId);t?t.customWidth=e.customWidth:this.tableCellWidthDefaultArr.push(e)}},props:{row:t.row,fromEntity:this.fromEntity,cellprops:this.cellprops,hidetext:this.hidetext,maxbuttons:this.maxbuttons},class:"operate-option"},[this.$slots.default]):this.renderTableCell(e,t,{linkStyle:i,showEditIcon:r})},renderTableCell(e,t,r){const{linkStyle:i,showEditIcon:a}=r;let n;const o={options:this.options,dataType:this.dataType,isMillimeter:this.isMillimeter,precision:this.precision,dateTimeFormat:this.dateTimeFormat,displayNumbersByPrecision:this.displayNumbersByPrecision,dateFormat:this.getDateFormat(),dateMinuteFormat:this.getDateMinuteFormat(),dateTimeFormatStr:this.getDateTimeFormat()};n=t.row.isCreating||a?this.getCustomText(this.getFieldName(),t.row,o):this.getText(this.getFieldName(),t.row,o);let s={props:t,text:n,linkStyle:i};const{tagName:l,componentProps:d,componentText:c,renderComponent:u}=this.getTableCellDesc(s);let p;return u&&(p=this.createTableCellVNode(e,l,d,c)),[p]},GetJumpForm(){return"form"==this.formtype&&this.formid?this.formid:""},handleWidnowResize(){this.screenWidth=window.document.body.clientWidth-70},enterCell(e){this.$bus.$emit("operate-cell-update"+this.parentkey,e)},refreshtable(){this.$emit("refreshtable")}},render:function(e){if("boolean"==typeof this.visible&&!this.visible)return e(null);if(this.isAttachment)return e(null);let t=null;return t=this.name||["option","userQuery"].includes(this.celltype)?this.createCell(e):e("rc-table-column",{attrs:{resizable:!1}}),t}}),ke=(r("c52f"),Object(n.a)(Te,void 0,void 0,!1,null,"658b207e",null).exports),Oe=r("e926");const Ie="Value";var De={mixins:[F.a,B.a],props:{displayValue:{type:Array,default:()=>[]},entity:{type:String,required:!0},queryId:{type:String,required:!1,default:""},placeholder:{type:String,required:!1},datafieldname:{type:String,required:!0},displayname:{type:String,required:!1,default:""},dataType:{type:String,required:!0},readonly:{type:Boolean,required:!1,default:!1},dateTimeFormat:{type:Number,required:!1,default:0},operatorType:{type:String,required:!0,default:"eq"},isCascader:{type:Boolean,required:!1},cascaderField:{type:String,required:!1},cascaderEntity:{type:String,required:!1},referencedNameField:{type:String,required:!1},referencedIdField:{type:String,required:!1},referencedEntity:{type:String,required:!1},value:{type:[String,Number,Object,Array,Date]},dialogDisplayFields:{type:Array,default:null},dependentAttributeName:{type:String,default:null},dependentAttributeDisplayName:{type:String,default:null},filterAttributeName:{type:String,default:null},dialogConditionFields:{type:String,default:null},dialogOrderbyFields:{type:String,default:null},filterAttributeValue:{type:[String,Object,Number,Array],required:!1},requestUrl:{type:String,required:!1},displayValueExpression:{type:String,default:""},defaultValue:{type:[String,Number,Boolean,Array,Object]},editForm:{type:Object,default:()=>({})},filterable:{type:Boolean,required:!1},entityList:{type:Array,default:function(){return[]}},options:{type:Array,default:function(){return[]}},alias:{type:Object,default:()=>({})},platFilterOperator:{type:Object,default:()=>({})}},data:()=>({rangInputValue1:null,rangInputValue2:null,integerTypes:["int","bigint"],numericTypes:["float","money","decimal"]}),computed:{valueKey(){return this.alias.value||Ie}},watch:{value(e){e||"between"!=this.operatorType||"datetime"==this.dataType||(this.rangInputValue1=null,this.rangInputValue2=null,this.$emit("input",null))},queryId:{handler(e){Object.keys(this.platFilterOperator).indexOf(this.operatorType)>-1&&this.$emit("input",this.operatorType)},immediate:!0},defaultValue:{handler:function(e,t){JSON.stringify(e)!==JSON.stringify(t)&&this.$emit("input",e)}}},methods:{pickPropFun(){return{value:this.value,entity:this.entity,attribute:this.datafieldname,disabled:this.readonly,filterable:this.filterable,placeholder:this.placeholder}},LookPropFun(){return{value:this.value,entity:this.entity,dialogDisplayFields:this.dialogDisplayFields,nameField:this.referencedNameField,idField:this.referencedIdField,dialogFilterFields:"",dialogOrderbyFields:this.dialogOrderbyFields,dialogConditionFields:this.dialogConditionFields,dependentAttributeDisplayName:this.dependentAttributeDisplayName,dependentAttributeName:this.dependentAttributeName,filterAttributeName:this.filterAttributeName,filterAttributeValue:this.filterAttributeValue,placeholder:this.placeholder,disabled:this.readonly,readonly:this.readonly}},createReadOnlyInput(e){return e("rc-input",{props:{value:this.platFilterOperator[this.operatorType],readonly:!0,disabled:!0,placeholder:this.placeholder},on:{input:this.handleInput}})},creatRtSaasEntities(e){let t=[];this.displayValueExpression&&Array.isArray(this.displayValue)&&(t=[...this.displayValue]);let r=[];return this.options&&this.options.length>0&&(r=this.options,null!=t&&t.length>0&&(r=this.options.filter(e=>t.indexOf(e[this.valueKey])>=0))),e("rt-saas-entities",{props:{...this.pickPropFun(),multiple:!0,displayValue:t,fetch:()=>Promise.resolve(r)},on:{input:this.handleInput}})},createPicklist(e){let t=!1;"in"!=this.operatorType&&"picklistarray"!=this.dataType.toLowerCase()||(t=!0);var r=[];this.displayValueExpression&&Array.isArray(this.displayValue)&&(r=[...this.displayValue]);let i=this.options;return null!=r&&r.length>0&&(i=this.options.filter(e=>r.indexOf(e[this.valueKey])>=0)),e("rc-picklist",{props:{...this.pickPropFun(),multiple:t,displayValue:r,wordBreak:"break-word",fetch:()=>Promise.resolve(i)},on:{input:this.handleInput}})},createLookup(e){const t={props:{...this.LookPropFun()},on:{input:this.handleInput}};return this.requestUrl&&(t.props.requestUrl=this.requestUrl),e("rt-lookup",t)},createMultipleLookup(e){const t={props:{...this.LookPropFun()},on:{input:this.handleInput}};return this.requestUrl&&(t.props.requestUrl=this.requestUrl),e("rt-multi-lookup",t)},createRLookup(e){var t={props:{...this.LookPropFun(),entityList:this.entityList},on:{input:this.handleInput}};return this.requestUrl&&(t.props.requestUrl=this.requestUrl),e("rt-r-lookup",t)},createSingleEntityCascaderLookup(e){return e("rt-single-entity-cascader",{props:{value:this.value,entityName:this.cascaderEntity,cascaderField:this.cascaderField,disabled:this.readonly,placeholder:this.placeholder},on:{input:this.handleInput}})},createCustomerLookup(e){return e("rt-m-lookup",{props:{value:this.value,disabled:this.readonly,readonly:this.readonly,placeholder:this.placeholder},on:{input:this.handleInput}})},getPickerOptions:()=>({firstDayOfWeek:1,shortcuts:["today","yesterday","currentWeek","lastWeek","currentMonth","lastMonth","currentQuarter","lastQuarter","firstHalfYear","secondHalfYear","currentYear","lastYear"]}),createDatePicker(e){let t=0==this.dateTimeFormat?"date":"datetime",r="datetime"==t?this.getDateTimeFormat():this.getDateFormat();return e("rc-date-picker",{props:{value:this.value||"",type:t||"date",format:r,disabled:this.readonly,readonly:this.readonly},attrs:{format:r,valueFormat:"date"===t?r:""},on:{change:this.handleInput,input:this.handleInput}})},createDateRangePicker(e){let t="date";t=0==this.dateTimeFormat?"date":"datetime";let r="datetime"==t?this.getDateMinuteFormat():this.getDateFormat(),i=this.getPickerOptions();return e("rc-date-range-picker",{props:{value:this.value||[],type:t,format:r,pickerOptions:i,disabled:this.readonly},on:{input:this.handleDateRangeInput}})},handleDateRangeInput(e){Array.isArray(e)&&2==e.length&&(""==e[0]&&""==e[1]&&(e=null),null==e[0]&&null==e[1]&&(e=[])),this.$emit("input",e)},inputPublic(e,t){let r={props:{value:this.value,placeholder:this.placeholder,readonly:this.readonly,disabled:this.readonly},on:{input:this.handleInput,change:this.checkNumber}};return"rc-xpc-input"==t&&(r.props.maxLength=6e3),e(t,r)},createDefaultInput(e){return this.inputPublic(e,"rc-input")},createLargeInput(e){return this.inputPublic(e,"rc-xpc-input")},handleInput:function(e){Array.isArray(e)&&2==e.length&&""==e[0]&&""==e[1]&&(e=null),this.$emit("input",e)},createRangInputs(e){const t={clearable:!0,type:this.dataType,placeholder:this.placeholder,readonly:this.readonly,disabled:this.readonly};let r=e("rc-input",{props:{value:this.rangInputValue1,...t},on:{input:e=>{this.rangInputValue1=e,this.handleInput_between()}}}),i=e("span","一"),a=e("rc-input",{props:{value:this.rangInputValue2,...t},on:{input:e=>{this.rangInputValue2=e,this.handleInput_between()}}});return e("div",{attrs:{style:"display: inline-flex;width:100%"},class:"rt-saas-rang"},[r,i,a])},handleInput_between(){this.rangInputValue1||this.rangInputValue2?this.$emit("input",[this.rangInputValue1,this.rangInputValue2]):this.$emit("input",null)},checkNumber(e){if(e){let t=this.dataType.toLowerCase();this.integerTypes.includes(t)&&!rt.isInteger(e)&&rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数")),this.numericTypes.includes(t)&&!rt.isNumeric(e)&&rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionNumber","数据不正确,请输入数字")),"datetime"!=t||rt.isNumeric(e)||rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数"))}},checkValue(){const e=Oe.b.slice(0,8);if("between"==this.operatorType&&"datetime"!=this.dataType){if(!this.value||!this.value[0]&&!this.value[1])return this.$emit("input",null),!0;if(!(!this.integerTypes.includes(this.dataType)||rt.isInteger(this.value[0])&&rt.isInteger(this.value[1])))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数")),!1;if(!(!this.numericTypes.includes(this.dataType)||rt.isNumeric(this.value[0])&&rt.isNumeric(this.value[1])))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionNumber","数据不正确,请输入数字")),!1;if(Number(this.value[0])>Number(this.value[1]))return rt.showErrorToast(this.$_t("platform.gridconditionEqualEndValue","区间起始值要小于或等于结束值")),!1}else if(e.indexOf(this.operatorType)>-1){if(!this.value)return;if(!rt.isInteger(this.value))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionIntegerBetween","数据不正确,请输入1-100范围内的整数")),!1;var t=parseInt(this.value);if(t>100||t<1)return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionIntegerBetween","数据不正确,请输入1-100范围内的整数")),!1}return!0}},render:function(e){if("between"==this.operatorType&&this.value&&(this.rangInputValue1=this.value[0],this.rangInputValue2=this.value[1]),Object.keys(this.platFilterOperator).indexOf(this.operatorType)>-1)return this.createReadOnlyInput(e);if(this.isCascader)return this.createSingleEntityCascaderLookup(e);if(this.dataType&&"lookup"===this.dataType.toLowerCase()&&"in"==this.operatorType)return this.createMultipleLookup(e);if(Oe.b.indexOf(this.operatorType)>-1)return this.createDefaultInput(e);switch(this.dataType?this.dataType.toLowerCase():""){case"customer":return this.createCustomerLookup(e);case"owner":case"lookup":return this.createLookup(e);case"multipletypelookup":return this.createRLookup(e);case"datetime":return"between"===this.operatorType?this.createDateRangePicker(e):this.createDatePicker(e);case"status":case"picklist":case"state":case"boolean":case"bit":case"picklistarray":return this.createPicklist(e);case"entitylogicalname":return this.creatRtSaasEntities(e);default:return"between"==this.operatorType?this.createRangInputs(e):"in"==this.operatorType?this.createLargeInput(e):this.createDefaultInput(e)}}},Ae=(r("4a37"),Object(n.a)(De,void 0,void 0,!1,null,"14baabc8",null).exports),Me={name:"UserQueryDialog",props:{visible:{type:Boolean,default:!1},title:{type:String},openUserQuery:{type:Function},entityName:{type:String,required:!0}},data:function(){return{dialogVisible:this.visible,dataList:[],nameInputValue:"",userId:this.$store.state.user.userId}},watch:{visible:function(e){this.dialogVisible=e,e&&this.fetchList()},dialogVisible:function(e){this.$emit("update",e)}},methods:{async fetchList(){try{rt.showLoadingToast();const e="api/userDefinedQuery/getUserDefinedQuery";this.dataList=(await rt.get(e,{entityName:this.entityName})).map(e=>({...e,$id:e.userdefinedqueryid,entityName:this.entityName,isEditing:!1,popControl:!1}))||[],rt.hideLoadingToast()}catch(e){rt.hideLoadingToast()}},openDesign(e){this.$emit("openDesign",e),e.popControl=!1},openCreate(){this.$emit("openCreate")},async batchDelete(e){this.$bus.$emit("closeChartDrawerColumn"),rt.showLoadingToast(),Array.isArray(e)||(e=[e]);try{const t="api/userDefinedQuery/batchDeleteUserDefinedQuery";await rt.post(t,e),rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功")),this.fetchList(),this.$emit("deleted",e)}catch(e){rt.hideLoadingToast()}},async handleSetDefault(e){const t=!e.isdefault;await this.$confirm(t?this.$_t("userquery.settip","是否确认设为默认?"):this.$_t("userquery.cancletip","是否确认取消默认?"),this.$_t("toast.title","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"});try{rt.showLoadingToast();const r=t?"api/userDefinedQuery/setDefaultUserDefinedQuery":"api/userDefinedQuery/CancelDefaultUserDefinedQuery",i={id:e.$id};await rt.get(r,i),this.$emit("refreshtable"),rt.hideLoadingToast(),rt.showSuccessToast(t?this.$_t("userquery.setsuccess","设置成功"):this.$_t("userquery.canclesuccess","取消默认成功")),this.fetchList()}catch(e){rt.hideLoadingToast()}},handleRename(e){this.nameInputValue=e.name,e.isEditing=!0,e.popControl=!1,this.$nextTick(()=>{const t=this.$refs["input-"+e.$id][0];if(t){const e=t.$children,r=null==e?void 0:e[0];r&&r.$refs.input&&r.$refs.input.focus()}})},async executeRename(e){const t=this.validator(this.nameInputValue);if(t)return void rt.showErrorToast(t);const r=this.nameInputValue;if(e.isEditing=!1,r!==e.name){e.name=r,rt.showLoadingToast();try{const t="api/userDefinedQuery/renameUserDefinedQuery",i={id:e.$id,name:r};await rt.get(t,i),rt.hideLoadingToast(),this.$emit("saved",e.$id)}catch(e){rt.hideLoadingToast()}this.nameInputValue=""}},validator(e){if(!e)return this.$_t("platform.personalViewNameRequired","个人视图名称不能为空");if(rt.validateDisplayName){const t=rt.validateDisplayName(e,{name:this.$_t("BUTTON_USERQUERY","个人视图"),allowSpace:!0,allowSpecialChars:!0});if(!t.valid)return t.message}else if(this.getStringDisplayLength(e)>30){let e=this.$_t("BUTTON_USERQUERY","个人视图"),t=30,r=15;return this.$_t("validateDisplayName.length",`${e}显示名称不能超过${t}个字符,中文${r}个字`,[e,t,r])}return""},getStringDisplayLength:e=>e.split("").reduce((e,t)=>e+(/[\u4e00-\u9fa5]/.test(t)?2:1),0),limitCharacters(e,t){let r=0;for(let i=0;it)return e.substring(0,i);return e}}},Le=(r("ddd7"),r("3227"),Object(n.a)(Me,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-drawer",{ref:"drawer",staticClass:"user-query-drawer",attrs:{visible:e.dialogVisible,modal:!1,"with-header":!1,size:"400px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{staticClass:"header-wrapper"},[e._v(e._s(e.title))]),r("div",{staticClass:"list-wrapper"},[e.dataList.length?r("ul",{staticClass:"view-list"},e._l(e.dataList,(function(t){return r("li",{key:t.$id,staticClass:"view-list-item"},[r("div",{staticClass:"view-name"},[t.isEditing?r("rc-input",{ref:"input-"+t.$id,refInFor:!0,staticClass:"drawer-list-input",attrs:{clearable:!1},on:{blur:function(r){return e.executeRename(t)}},nativeOn:{keyup:function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"enter",13,r.key,"Enter")?null:e.executeRename(t)}},model:{value:e.nameInputValue,callback:function(t){e.nameInputValue=t},expression:"nameInputValue"}}):r("span",[e._v(e._s(t.name))])],1),r("rc-popover",{attrs:{width:"72px","popper-class":"more-btns-popper"},model:{value:t.popControl,callback:function(r){e.$set(t,"popControl",r)},expression:"item.popControl"}},[r("div",{attrs:{slot:"reference"},slot:"reference"},[r("rc-icon",{staticClass:"icon-more-btns",attrs:{name:"rt-base-dot-three-lined"},on:{click:function(e){e.popControl=!0}}})],1),r("div",{staticClass:"more-btns-list"},[r("div",{staticClass:"more-btns-item",on:{click:function(r){return e.handleSetDefault(t)}}},[e._v(" "+e._s(t.isdefault?e.$_t("userquery.cancledefault","取消默认"):e.$_t("userquery.setdefault","设为默认"))+" ")]),r("div",{staticClass:"more-btns-item",on:{click:function(r){return e.handleRename(t)}}},[e._v(" "+e._s(e.$_t("workspace.rename","重命名"))+" ")]),r("div",{staticClass:"more-btns-item",on:{click:function(r){return e.openDesign(t)}}},[e._v(" "+e._s(e.$_t("BUTTON_DESIGN","设计"))+" ")]),r("rt-popconfirm",{attrs:{title:e.$_t("delete.indviews","是否确认删除“{0}”视图?").format(t.name),"cancel-button-type":"plain",icon:"rt-base-circle-warning-lined","icon-color":"#F44725","icon-size":14},on:{confirm:function(r){return e.batchDelete(t.$id)}}},[r("div",{staticClass:"more-btns-item delete",attrs:{slot:"reference"},slot:"reference"},[e._v(" "+e._s(e.$_t("BUTTON_DELETE","删除"))+" ")])])],1)])],1)})),0):e._e(),r("rc-button",{staticClass:"btn-create",attrs:{type:"dashed","icon-name":"rt-base-plus-lined"},on:{click:e.openCreate}},[e._v(e._s(e.$_t("Create_View","创建视图")))])],1)])}),[],!1,null,"20b3f424",null).exports),Re={name:"PlatUserviewDialog",data:()=>({dialogVisible:!1,iframeUrl:"",viewName:"",cancelMess:!1}),mounted(){this.cancelMess=!1,this.$PlatUtils.eventListenerHook(this,"message",e=>{if(e.data.formData)try{const t=JSON.parse(e.data.formData);this.save(t)}catch(e){}e.data.pageName&&(this.viewName=e.data.pageName),e.data.changeMerge&&(this.cancelMess=!0)},window)},methods:{filterSpecial(e){if(!e)return rt.showErrorToast(this.$_t("platform.personalViewNameRequired","个人视图名称不能为空")),!1;if(rt.validateDisplayName){const t=rt.validateDisplayName(e,{name:this.$_t("BUTTON_QUERYDESIGN","视图设计"),allowSpace:!0,allowSpecialChars:!0});if(!t.valid)return rt.showErrorToast(t.message),!1}else if(this.getStringDisplayLength(e)>30){let e=this.$_t("BUTTON_QUERYDESIGN","视图设计"),t=30,r=15;return rt.showErrorToast(this.$_t("validateDisplayName.length",`${e}显示名称不能超过${t}个字符,中文${r}个字`,[e,t,r])),!1}return this.viewName=e,!0},getStringDisplayLength:e=>e.split("").reduce((e,t)=>e+(/[\u4e00-\u9fa5]/.test(t)?2:1),0),show(e){this.viewName="",this.iframeUrl=e,this.dialogVisible=!0},cancel(){this.cancelMess?this.$confirm(this.$_t("platform.cancelTip","是否取消"),this.$_t("toast.title","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{this.dialogVisible=!1,this.cancelMess=!1}).catch():this.dialogVisible=!1},confirm(){this.filterSpecial(this.viewName)&&document.getElementById("userviewiframe").contentWindow.postMessage({viewName:this.viewName})},save(e){rt.post("api/userDefinedQuery/saveUserDefinedQuery",e).then(e=>{rt.showSuccessToast(this.$_t("platform.successfullySave","保存成功")),this.dialogVisible=!1,this.$emit("saved",e)}).catch(e=>{rt.showErrorToast(e.message||e)})}}},Pe=(r("b3f7"),Object(n.a)(Re,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"plat-userview-dialog",attrs:{title:e.$_t("BUTTON_QUERYDESIGN","视图设计"),"append-to-body":!0,"close-on-click-modal":!1,size:"large"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("div",{staticClass:"plat-dialog-title-wrapper",attrs:{slot:"title"},slot:"title"},[r("div",{staticClass:"rt-dialog-title plat-dialog-title"},[e._v(" "+e._s(e.$_t("BUTTON_QUERYDESIGN","视图设计"))+" ")]),r("rc-input",{attrs:{"show-suffix-icon":!1,clearable:!1,size:"mini",placeholder:e.$_t("common.pleaseentername","请输入名称")},on:{blur:e.filterSpecial},model:{value:e.viewName,callback:function(t){e.viewName=t},expression:"viewName"}})],1),e.dialogVisible?r("iframe",{staticClass:"plat-user-iframe",attrs:{id:"userviewiframe",src:e.iframeUrl}}):e._e(),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("div",{staticClass:"rt-dialog-footer-buttons"},[r("rc-button",{on:{click:e.cancel}},[e._v(e._s(e.$_t("platform.cancelButton","取消")))]),r("rc-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v(e._s(e.$_t("BUTTON_CONFIRM","确认")))])],1)])])}),[],!1,null,"28b7c49d",null).exports),$e={mixins:[d.a],props:{editForm:Object,dialogFormId:String},data:()=>({isShow:!1,title:"",componentData:{componentName:"",props:{},title:"",callback:Function,size:"normal"},closeWithoutCallback:!1}),watch:{isShow(e){this.createListening(e)}},methods:{show(e,t,r,i,a,n){this.isWatchLoadingData="vformcore"==e||"vlistcore"==e,this.componentData={componentName:e,props:{...r,dialogFormId:this.dialogFormId},title:t,callback:i,size:a},this.isShow=!0,this.closeWithoutCallback=n}},render:function(e){if(!this.isShow)return e("div",null);var t,r=this.componentData;return r.props.fromEntity||(r.props.fromEntity=this.editForm),r.props.isDialogMode=!0,t=e(r.componentName,{ref:r.componentName,props:r.props,class:"apaas-dialog-mode",on:{dialogCallBack:()=>{r.callback&&r.callback()},"dialog-close":()=>{this.$refs.dialog.cancel()},updateTitle:e=>{this.title=e}}}),e("rc-dialog",{ref:"dialog",attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,"custom-class":"plat-standard-dialog"},class:this.isShowClass,props:{value:!0,title:r.title||this.title,showFooter:!1,size:r.size?r.size:"normal"},on:{input:e=>{this.isShow!=e&&1!=this.closeWithoutCallback&&r.callback&&r.callback(),this.isShow=e}}},[t])}},Fe=(r("c6e4"),Object(n.a)($e,void 0,void 0,!1,null,"38ca7f26",null).exports),je=r("8eee"),Be={name:"PlatTextareaTranslate",props:{},data:()=>({width:0,showLoading:!0,translateResult:""}),methods:{handleTranslate(){this.showLoading=!0;const e=this.$refs.translatePopper;if(e&&e.$refs.popover.showPopper)return;const t=this.$parent&&this.$parent.$el,r=t&&t.querySelector("textarea").scrollHeight;let i=120;r>120&&(i=r),e&&e.$refs.popover&&(e.$refs.popover.$refs.popper.style.height=i+"px"),t&&(this.width=t.clientWidth);const a={query:this.$parent&&this.$parent.$el.querySelector("textarea").value};rt.post("api/translate/index",a).then(e=>{this.translateResult=e.replace(/\n/g,"
"),this.showLoading=!1}).catch(e=>{rt.showErrorToast(this.$_t("platform.translationFailed","翻译失败")),this.showLoading=!1})},handleTranslateCopy(){if(this.translateResult)try{let e=document.createElement("textarea");document.body.appendChild(e),e.select(),e.value=this.translateResult.replace(//g," "),e.select(),document.execCommand("copy"),document.body.removeChild(e),window.rt.showSuccessToast(this.$_t("common.copySuccess","复制成功"))}catch(e){}}}},Ue=(r("0265"),r("f9f6"),Object(n.a)(Be,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-popover",{ref:"translatePopper",attrs:{slot:"suffix",placement:"bottom-end",width:e.width,trigger:"click","visible-arrow":!1,"popper-class":"plat-popper-translate"},slot:"suffix"},[r("div",{staticClass:"textarea-translate-icon",attrs:{slot:"reference"},slot:"reference"},[r("rc-button",{attrs:{text:"",type:"plain"},on:{click:e.handleTranslate}},[e._v(e._s(e.$_t("tw.translation","翻译")))])],1),r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.showLoading,expression:"showLoading"}],staticClass:"plat-popper-translate-wrapper",attrs:{"rt-loading-size":"medium","rt-loading-text":e.$_t("platform.translation","翻译中...")}},[r("div",{staticClass:"plat-popper-translate-text",domProps:{innerHTML:e._s(e.translateResult)}}),r("div",{staticClass:"plat-popper-translate-copy"},[r("rc-button",{attrs:{"icon-name":"rt-base-copy-lined",type:"plain","color-type":"neutral-regular",text:"",disabled:!e.translateResult},on:{click:e.handleTranslateCopy}})],1)])])}),[],!1,null,"4a690756",null).exports),Ve={name:"RtPlatListHeader",mixins:[ce.a.stickyContainer],props:{shadow:{type:Boolean,default:!0},entityName:{type:String},entityDisplayName:{type:String},category:{type:String},placeholder:{type:String,default:""}},data:()=>({search:null}),mounted(){},render:function(e){let t;t=this.category?this.$_t(`change.${this.entityName}.${this.category}`,this.entityDisplayName):this.entityDisplayName;const r=this.$route.query.isShowBack;let i=e("rc-list-header",{class:{"has-icon":!!this.$slots.icon},props:{shadow:this.shadow,noBorder:!0,showBack:"true"===r},scopedSlots:{icon:this.$slots.icon?e=>this.$slots.icon:void 0,default:r=>e("div",{class:{"rt-plat-list-header-title":!0}},[e("p",{class:"plat-list-header-title-text"},t)]),btn:t=>e("div",{class:{"rt-plat-list-header-button":!0}},[this.$slots.btn]),search:this.placeholder?t=>e("rc-tooltip",{attrs:{content:this.placeholder,placement:"bottom",wordBreak:"break-word",disabled:!(!this.$slots.search||!this.$slots.search[0].data.props.value)},props:{maxWidth:221,opacity:.7}},[e("div",this.$slots.search)]):t=>e("div",this.$slots.search)}});return e("div",[i,this.$slots.default])}},qe=(r("71c0"),Object(n.a)(Ve,void 0,void 0,!1,null,"354b6f30",null).exports),ze={name:"PlatDrawerConditionList",props:{value:{type:Number,default:-1},queryId:{type:String,default:""},conditionId:{type:String,default:""},defaultSavedComponent:{type:Object,default:()=>({})}},data(){return{val:this.value,visible:!1,showEntry:!1,conditionCount:0,conditionList:[],currentConditionId:"default",conditionName:this.$_t("default.condition","默认条件")}},computed:{isCurrent(){return e=>e.userDefinedQueryConditionId===this.currentConditionId}},watch:{queryId(){this.__getConditionList()}},mounted(){this.conditionId&&(this.currentConditionId=this.conditionId),this.__getConditionList()},methods:{async __deleteCondition(e){const t=[e];try{await rt.post("api/userDefinedQueryCondition/batchDelete",t),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功!")),e===this.currentConditionId&&(this.changeToDefaultCondition(),this.currentConditionId="default",this.visible=!1),await this.__getConditionList()}catch(e){rt.showErrorToast(e)}},async __getConditionList(){try{const e={queryId:this.queryId},t=await rt.get("api/userDefinedQueryCondition/getUserDefinedQueryCondition",e);this.conditionCount=t.length;let r=t||[];if(t.length>0){const e={conditionName:this.$_t("default.condition","默认条件"),userDefinedQueryConditionId:"default"};r.unshift(e)}this.conditionList=r;const i=this.conditionList.find(e=>e.userDefinedQueryConditionId===this.currentConditionId);this.conditionName=null==i?void 0:i.conditionName,this.showEntry=!!t.length}catch(e){rt.showErrorToast(e)}},__reloadCondition(){this.__getConditionList()},async reloadConditionAndChangeToNewCondition(){await this.__getConditionList(),this.__changeCondition(this.conditionList[1])},__changeCondition(e){if(!this.isCurrent(e)&&(this.visible=!1,this.currentConditionId!==e.userDefinedQueryConditionId))if(this.currentConditionId=e.userDefinedQueryConditionId,this.conditionName=e.conditionName,"default"!==this.currentConditionId)try{const t={id:this.currentConditionId,conditionStruct:JSON.parse(e.conditionStruct)};this.$emit("changeCondition",t,!1)}catch(e){rt.showErrorToast(e)}else this.changeToDefaultCondition()},changeToDefaultCondition(){this.currentConditionId="default";const e={id:this.currentConditionId,conditionStruct:this.defaultSavedComponent};this.$emit("changeCondition",e,!0)}}},He=(r("b222"),r("3265"),{name:"RtPlatFilterDrawer",components:{platDrawerConditionList:Object(n.a)(ze,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.showEntry?r("div",{staticClass:"plat-drawer-condition-list"},[r("rc-popover",{attrs:{"popper-class":"condition-list-popover"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[r("div",{staticClass:"plat-drawer-condition-title",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"title"},[e._v(e._s(e.conditionName))]),r("rc-icon",{staticClass:"arrow-icon",class:{opened:e.visible},attrs:{name:"rt-base-arrow-down-lined",color:e.SCSS_VARIABLES.COLOR_PRIMARY,size:"12px"}})],1),r("div",{staticClass:"condition-list"},e._l(e.conditionList,(function(t){return r("div",{key:t.userDefinedQueryConditionId,staticClass:"condition-item"},[r("rc-tag",{attrs:{radius:"12","color-type":e.isCurrent(t)?"primary":"info",closable:"default"!==t.userDefinedQueryConditionId},on:{click:function(r){return e.__changeCondition(t)},close:function(r){return e.__deleteCondition(t.userDefinedQueryConditionId)}}},[e._v(" "+e._s(t.conditionName)+" ")])],1)})),0)])],1):e._e()}),[],!1,null,"b64a9de8",null).exports},props:{queryId:{type:String,default:""},objectTypeName:{type:String},currentViewType:{type:Object,default:()=>({})},editForm:{type:Object,default:()=>({})},filterFormList:{type:Array,default:()=>[]},savedComponent:{type:Object,default:()=>({})},defaultSavedComponent:{type:Object,default:()=>({})},gridConditionIsChanged:{type:Boolean,default:!1},hideCustomBtn:{type:Boolean,default:!1},conditionId:{type:String,default:""}},data:()=>({searchField:"",originFieldConditionList:[],fieldConditionList:[],showConditionDrawer:!1,showFieldConditionList:!1,showConfirmBtn:!0,hasConditionControl:!1,cannotSave:!1,conditionForm:{conditionName:""},key:0,rules:{conditionName:[{required:!0,trigger:"change"}]},currentItemIndex:-1,defaultViewId:"",dialogDisplayFields:[]}),computed:{platFilterOperator(){return{"not-null":this.$_t("bi.notempty","不为空"),null:this.$_t("bi.empty","为空"),"next-seven-days":this.$_t("bi.sdays","今后7天"),"last-seven-days":this.$_t("bi.lsdays","最近7天"),"on-or-before-today":this.$_t("bi.tabtoady","早于等于今天"),"before-today":this.$_t("bi.btoday","早于今天"),"on-or-after-today":this.$_t("bi.taatodat","晚于等于今天"),"after-today":this.$_t("bi.atoday","晚于今天"),yesterday:this.$_t("bi.yesterday","昨天"),tomorrow:this.$_t("bi.tomorrow","明天"),today:this.$_t("bi.today","今天"),"under-currentuserid":this.$_t("bi.subordinate","下属"),"eq-or-under-currentuserid":this.$_t("bi.sathemselves","下属及自己"),"ne-userid":this.$_t("bi.ntcuser","不是当前用户"),"eq-userid":this.$_t("bi.cusers","当前用户"),"before-now":this.$_t("bi.bctime","早于当前时间"),"after-now":this.$_t("bi.actime","晚于当前时间"),"this-week":this.$_t("bi.week","本周"),"this-month":this.$_t("bi.month","当月"),"last-month":this.$_t("Operator.LastMonth","上月"),"this-year":this.$_t("bi.year","今年"),"last-year":this.$_t("Operator.LastYear","去年")}},category(){return this.$route.params.category||""}},watch:{searchField(e){e||this.__getEntityAndAttributes()},showFieldConditionList(e){this.currentItemIndex=-1,this.$refs.search.clearValue(),this.searchField="",e&&(this.__getEntityAndAttributes(),this.$nextTick(()=>{this.$refs.search.$refs.input.$refs.input.focus()}))},showConditionDrawer(e){e?(0===this.fieldConditionList.length&&this.__getEntityAndAttributes(),this.$nextTick(()=>{this.hasConditionControl=!!Object.keys(this.savedComponent).filter(e=>"isDefaultCondition"!==e).length})):this.showConfirmBtn=!0},savedComponent:{handler(e){this.hasConditionControl=!!Object.keys(e).filter(e=>"isDefaultCondition"!==e).length},deep:!0}},mounted(){this.$PlatUtils.listenerHook(this,"toShowDrawer_"+this.objectTypeName,this.__showMoreHandle,!0,"deactivated"),this.$PlatUtils.listenerHook(this,"refreshFilterList_"+this.objectTypeName,this.__refreshFilterListHandler,!0,"deactivated")},methods:{__refreshFilterListHandler(){this.key++},__inputHandle(e){this.__getCharacters(e)>20?(rt.showErrorToast(this.$_t("twenty_letters","最多输入十个汉字")),this.cannotSave=!0):(this.cannotSave=!1,this.conditionForm.conditionName=e)},__getCharacters(e){let t=0;for(let r=0;r{this.$emit("confirmSearch")})},__showConditionTitleInput(){var e,t;const r=null===(e=this.$refs.platDrawerConditionList)||void 0===e||null===(t=e.conditionList)||void 0===t?void 0:t.length;if(10===r)return void rt.showErrorToast(this.$_t("maximum_quantity","已达到数量上限"));const i=0===r?1:r;this.conditionForm.conditionName=this.$_t("platform.conditional","条件"+i,[i]),this.showConfirmBtn=!1},__cancelSave(){this.showConfirmBtn=!0},__confirmSearch(){this.$emit("confirmSearch")},__resetCondition(){var e;this.showConditionDrawer=!1;const t=null===(e=this.$refs.platDrawerConditionList)||void 0===e?void 0:e.currentConditionId;t&&"default"!==t?this.$refs.platDrawerConditionList.changeToDefaultCondition():this.$emit("resetCondition")},__saveCondition(){this.cannotSave?rt.showErrorToast(this.$_t("twenty_letters","最多输入十个汉字")):this.$PlatUtils.validateFormByRc(this.$refs.conditionForm,async e=>{try{if(e){const r=this.__getConditionStructWithValue(),i={conditionName:this.conditionForm.conditionName,entityLogicalName:this.objectTypeName,queryId:this.queryId,userId:this.$store.state.user.userId,conditionStruct:JSON.stringify(r)};try{var t;await rt.post("api/userDefinedQueryCondition/saveUserDefinedQueryCondition",i),rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功!")),null===(t=this.$refs.platDrawerConditionList)||void 0===t||t.reloadConditionAndChangeToNewCondition(),this.showConfirmBtn=!0,this.conditionForm.conditionName="",this.$emit("resetGridConditionChangeStatus")}catch(e){rt.showErrorToast(e)}}}catch(e){rt.showErrorToast(e)}})},__getConditionStructWithValue(){let e=this.savedComponent;return Object.keys(e).forEach(t=>{const r=this.filterFormList.find(e=>e.key===t),{operator:i,actualDataField:a,datafieldname:n}=e[t].gridConditionProps.props;let o=i;const s=a||n;let l;r&&(o=r.op),l=Object.keys(this.platFilterOperator).indexOf(o)>-1?o:this.hideCustomBtn?this.editForm[s]:r&&r.val,e[t].gridConditionProps.props.controlValue=l,e[t].gridConditionProps.props.operator=o}),e},async getViewLogicalName(e){const t=`api/vlist/GetDefaultViewId?&entityName=${e.ReferencedEntityLogicalName}&category=${this.category}&platformType=1`;try{const e=await rt.get(t);this.defaultViewId=e&&e.defaultViewId,this.dialogDisplayFields=e&&e.dialogDisplayFields}catch(e){rt.showErrorToast(e)}},async __addCustomCondition(e){"Lookup"!==e.AttributeType&&"Owner"!==e.AttributeType||await this.getViewLogicalName(e);const t=`extra_${e.LogicalName}_${(new RtDate).getTime()}`;let r=Object(Oe.a)(e.AttributeType);"businessunit"==e.ReferencedEntityLogicalName?r=[...r,...Object(Oe.a)("businessunit")]:"systemuser"==e.ReferencedEntityLogicalName&&(r=Oe.f);const i=r.length>0?r[0].fetchXMLOperator:"eq",a={isCustomCondition:!0,conditionKey:t,dataType:e.AttributeType,Encrypted:e.Encrypted,datafieldname:e.LogicalName,entityAlias:"",IsSubEntity:"",entityName:e.EntityLogicalName,referencedEntity:e.ReferencedEntity||e.ReferencedEntityLogicalName,operator:i,cascaderField:"",isCascader:!1,displayName:e.DisplayName,label:e.DisplayName,filterable:"",datetimeformat:e.DateTimeFormat||"",filterAttributeName:"",attributeType:e.AttributeType,options:[],platFilterOperator:this.platFilterOperator,entity:e.EntityLogicalName,attribute:e.LogicalName,dialogDisplayFields:this.defaultViewId?this.dialogDisplayFields:e.dialogDisplayFields,referencedNameField:e.nameField,referencedIdField:e.idField,dialogOrderbyFields:e.dialogOrderbyFields,dialogFilterFields:e.nameField,entityList:e.entityList,operateType:i,lookupDefaultViewId:this.defaultViewId},n={$nodetype:"gridcondition",VueTag:ge.a.platFilterComponent,props:a};this.$emit("addCondition",t,n),this.$refs.search.clearValue(),this.searchField="",this.showFieldConditionList=!1},__showMoreHandle(e){this.showConditionDrawer=e},__getEntityAndAttributes(){let e="api/vlist/";this.currentViewType&&this.currentViewType.IsUserQuery?e+="GetEntityAndAttributesFilterFieldPermission":e+="GetEntityAndAttributes";const t={entityName:this.objectTypeName,pagetype:1,filtername:this.searchField,hideFromUsers:!0};rt.get(e,t).then(e=>{0!=e.Attributes.length&&(this.fieldConditionList=e.Attributes.filter(e=>"PartyList"!=e.AttributeType),this.currentItemIndex=-1,this.originFieldConditionList=JSON.parse(JSON.stringify(this.fieldConditionList)))})},__searchConditionItem(e){this.searchField=e;const t=this.originFieldConditionList.filter(e=>(e.DisplayName||"").toLowerCase().includes((this.searchField||"").toLowerCase()));this.fieldConditionList=t,this.currentItemIndex=-1},__handleKeydown(e){const t=e.keyCode;if([38,40].indexOf(t)>-1){let r=this.fieldConditionList.length-1;this.currentItemIndex=38===t?this.currentItemIndex>0?this.currentItemIndex-1:r:this.currentItemIndex{this.__scrollIntoView(".condition-list-item_current")}),e.preventDefault(),e.stopPropagation()}else if(13===t){let t=this.fieldConditionList[this.currentItemIndex];t&&this.__addCustomCondition(t),e.preventDefault(),e.stopPropagation()}},__scrollIntoView(e){let t=this.$refs.content,r=t&&t.querySelector(e);r&&r.scrollIntoView({block:"center"})}}}),Ge=(r("6a86"),r("12c7"),Object(n.a)(He,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-drawer",{key:e.key,ref:"drawer",staticClass:"rt-plat-filter-drawer",attrs:{"show-shadow":"",modal:!1,"header-type":"menu",visible:e.showConditionDrawer,size:e.hideCustomBtn?"420px":"520px"},on:{"update:visible":function(t){e.showConditionDrawer=t}}},[r("div",{staticClass:"plat-condition-title",attrs:{slot:"title"},slot:"title"},[r("div",{staticClass:"title"},[e._v(" "+e._s(this.$_t("platform.rtplatfilterdrawerFilter","高级筛选"))+" ")]),r("platDrawerConditionList",{ref:"platDrawerConditionList",attrs:{"query-id":e.queryId,"condition-id":e.conditionId,"default-saved-component":e.defaultSavedComponent},on:{changeCondition:e.__changeConditionHandler}})],1),r("rc-view",{staticClass:"plat-condition-content"},[r("rc-content",[e.hasConditionControl?e._t("filterdrawerform"):r("div",{staticClass:"plat-empty"},[e._v(" "+e._s(e.$_t("no_filtering","暂无筛选条件,添加一条吧"))+" ")]),e.hideCustomBtn?e._e():r("rc-popover",{attrs:{"popper-class":"plat-drawer-field-list-popover",width:"488"},nativeOn:{keydown:function(t){return e.__handleKeydown.apply(null,arguments)}},model:{value:e.showFieldConditionList,callback:function(t){e.showFieldConditionList=t},expression:"showFieldConditionList"}},[r("rc-button",{staticClass:"add-condition-btn",attrs:{slot:"reference",text:"","icon-name":"rt-base-plus",size:"large","icon-size":"14",type:"dashed"},slot:"reference"},[e._v(" "+e._s(this.$_t("platform.listheaderAddFilter","添加筛选条件"))+" ")]),r("div",{ref:"content",staticClass:"condition-list"},[r("rc-search",{ref:"search",staticClass:"search-control",attrs:{more:!1,value:e.searchField,placeholder:e.$_t("Search_criteria","搜索条件字段")},on:{input:e.__searchConditionItem,"on-search":e.__searchConditionItem,clear:e.__searchConditionItem},nativeOn:{keydown:function(t){return e.__handleKeydown.apply(null,arguments)}}}),r("div",{staticClass:"condition-scroll",on:{keydown:e.__handleKeydown}},e._l(e.fieldConditionList,(function(t,i){return r("div",{key:t.id},[r("div",{staticClass:"condition-list-item",class:{"condition-list-item_current":e.currentItemIndex==i},on:{click:function(r){return e.__addCustomCondition(t)}}},[e._v(" "+e._s(t.DisplayName)+" ")])])})),0)],1)],1)],2)],1),r("div",{staticClass:"plat-condition-footer",attrs:{slot:"footer"},slot:"footer"},[e.showConfirmBtn?r("div",{staticClass:"confirm-condition-btn"},[r("div",[r("rc-button",{attrs:{type:"primary"},on:{click:e.__confirmSearch}},[e._v(e._s(e.$_t("BUTTON_FILTER","筛选")))]),r("rc-button",{on:{click:e.__resetCondition}},[e._v(e._s(e.$_t("BUTTON_RESET","重置")))])],1),e.hideCustomBtn?e._e():r("rc-button",{attrs:{text:"","icon-name":"rt-base-save",disabled:!e.gridConditionIsChanged},on:{click:e.__showConditionTitleInput}},[e._v(e._s(e.$_t("storage_condition","保存条件")))])],1):r("div",{staticClass:"condition-save"},[r("rc-view",[r("rc-form",{ref:"conditionForm",attrs:{rules:e.rules,model:e.conditionForm}},[r("rc-form-item",{attrs:{"hidden-label":!0,prop:"conditionName"}},[r("rc-input",{attrs:{value:e.conditionForm.conditionName},on:{input:e.__inputHandle}})],1)],1)],1),r("rc-button",{on:{click:e.__cancelSave}},[e._v(e._s(e.$_t("BUTTON_CANCEL","取消")))]),r("rc-button",{attrs:{type:"primary"},on:{click:e.__saveCondition}},[e._v(e._s(e.$_t("BUTTON_SAVE","保存")))])],1)])],1)}),[],!1,null,"e608c596",null).exports),We={name:"rtPlatLookupFilter"},Qe=(r("2f5e"),Object(n.a)(We,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"rt-plat-lookup-filter"},[this._t("default")],2)}),[],!1,null,"641bf501",null).exports),Xe=r("39dd");function Ke(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ye=class extends(Object(L.c)(F.a)){constructor(...e){super(...e),Ke(this,"objectId",void 0)}created(){}previous(){}next(){}};Object(i.__decorate)([Object(L.d)({type:String,required:!0})],Ye.prototype,"objectId",void 0),Ye=Object(i.__decorate)([Object(L.a)({})],Ye);var Je=Ye,Ze=Object(n.a)(Je,(function(){var e=this.$createElement,t=this._self._c||e;return t("rc-button-group",{attrs:{mode:"icon"}},[t("rc-button",{attrs:{tooltip:this.$_t("xpc.common.previous","上一条"),"icon-name":"rt-base-arrow-left-lined"},on:{click:this.previous}}),t("rc-button",{attrs:{tooltip:this.$_t("xpc.common.next","下一条"),"icon-name":"rt-base-arrow-right-lined"},on:{click:this.next}})],1)}),[],!1,null,null,null).exports,et={name:"PlatExposedCheckbox",props:{value:{type:Boolean,default:!1},conditionKey:{type:String,default:""},label:{type:String,default:""}},computed:{exposedLabel(){return this.label||this.$_t("grid.condition.exposed","外露")}},methods:{handleInput(e){this.$emit("input",e)}}},tt=(r("2266"),Object(n.a)(et,(function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"plat-exposed-checkbox"},[t("rc-checkbox",{attrs:{value:this.value},on:{input:this.handleInput}}),t("span",{staticClass:"plat-exposed-checkbox__label"},[this._v(this._s(this.exposedLabel))])],1)}),[],!1,null,"dae0a888",null).exports);const it={vdialog:Fe,vdrawer:je.a,"rt-plat-list-header":qe,"rt-plat-lookup-filter":Qe,RtPlatFilterDrawer:Ge,PlatExposedCheckbox:tt,"unknown-control":o,"saas-section":l,relationdialog:u,"rt-relation-drawer":p.a,"rt-groupnotes":m,"rt-audits":ae,"rt-flowapprovallist":y,"rt-timelinenotSubgrid":X,"rt-flowsubmit":x,"rt-flowapprove":N,"grant-access-dialog":Z,"assign-dialog":te,printinput:oe,"rt-logo":le,"rt-autograph":he,querySelector:me,headerTab:_e,tableCell:ke,gridcondition:Ae,PlatInputNumber:T,PlatCardTableRadio:O,PlatSteps:D,PlatBadge:M,platCardTable:W,PlatCardTableCell:V,PlatTabContainer:Y,PlatTextareaTranslate:Ue,userquerydialog:Le,"plat-userview-dialog":Pe,"customer-component":Xe.a,"form-exchange":Ze};let at=class extends L.f{};at=Object(i.__decorate)([Object(L.a)({components:it})],at),t.a=at},"064d":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNode(e,t){super.buildVNode(e,t),e.ref="groupnotes_"+e.cid;const r=this.props,i=t.targetComponent;e.addProp("title",r.title),e.addProp("filename",r.filename),e.addProp("canDelete",r.candelete),e.addProp("canDownload",r.candownload),e.addProp("canUpload",r.canupload),e.addProp("canAppUpload",r.canappupload),e.addProp("canAppTakePhoto",r.canapptakephoto),e.addProp("appSetting",r.appsetting),e.addProp("isOverwrite",r.isoverwrite),e.addProp("fileSize",r.fileSize),e.addProp("isLimitCount",r.isLimitCount),e.addProp("limitCount",r.limitCount),e.addProp("limitMinCount",r.limitMinCount),e.addProp("fileType",r.fileType),0===r.fileType?e.addProp("fileExtensions","*"):e.addProp("fileExtensions",r.fileExtensions),e.addProp("bindAttribute",r.bindAttribute||""),e.addProp("groupInfoApi",r.groupInfoApi),e.addProp("showStyle",r.showStyle),e.addProp("customRequestUrl",r.customRequestUrl),e.addProp("customUploadUrl",r.customUploadUrl),e.addProp("rowNum",r.rowNum);const a=!!r.disabled,n=this.calcReadonly(i,t);e.addProp("disabled",a||n),e.addKey(e.cid+i.objectId),e.addProp("objectId",i.objectId),e.addProp("objectTypeName",i.objectTypeName),e.addProp("isPreview",i.isPreview),e.addProp("isPrint",i.isPrint),e.addProp("editForm",i.editForm),r.bindAttribute&&e.addProp("bindValue",i.editForm[r.bindAttribute]),r.langkey&&r.langkey.length>0&&(r.title=i.$_t(r.langkey,r.title))}}i=d,a="$bindNodeType",n=o.b.GroupNotes,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"066c":function(e,t,r){"use strict";r("938a")},"06c5":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t){const r=new s.e("div","unknown!!!"+this.$nodetype);e.addChild(r)}}i=d,a="$bindNodeType",n=o.b.Unknown,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"0711":function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75"),s=r("18fc");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d extends n.a{constructor(e){super(e),l(this,"readonly",!1),l(this,"AttributeMetadata",void 0),l(this,"AttributeTypeCode",i.c.String),l(this,"isMultipleField",!1),l(this,"isCustomDisplayField",!1),l(this,"VueTag",o.a.Input),l(this,"validateTrigger","blur")}createVNode(e,t,r){const n=t,s=t.targetComponent,l=this.props,d=new a.e(o.a.FormItem);let c;if(this.appendNode(e,d,t),n.PageStatus==i.d.print?(c=this.CreateInputNodeForPrintPage(n),d.addKey(c.key+"_formItem"),c.addProp("formitemkey",d.key),d.addChild(c)):(c=d.addChildByTag(this.VueTag),this.buildVNode(c,t),this.attachEventHandlers(c)),this.props.maxlength){const e=Number(this.props.maxlength)||void 0;c.addProp("maxLength",e),c.addAttr("maxLength",e)}else c.addProp("maxLength",5e3),c.addAttr("maxLength",5e3);c.addProp("needTips",!0),c.addAttr("needTips",!0);const u=this.calcReadonly(s,t);this.readonly=u,c.addProp("disabled",u),this.props.readonly=u,this.$nodetype===i.b.TextArea&&u&&c.addAttr("readonly",!0),d.nodeType=i.b.formItem;const p=this.getAttrLabel();if(d.addProp("label",p),d.cid&&c.addProp("formitemkey",d.cid),c.addProp("placeholder",this.getLangPlaceholder(this.props,t)),"textarea"===this.$nodetype&&d.addClass("rt-form-item-wrapper-textarea"),d.addClass("rt-form-item-wrapper"),this.changeInputTag(c,t),d.addProp("prop",this.getCurrentInputField()),![i.g.ReadOnly,i.g.CalculateFields].includes(this.props.RequiredLevel)&&!c.data.props.disabled){if(c.props.value&&c.props.value.hasOwnProperty("reference")&&c.props.value.text&&c.props.value.text.indexOf("**")>-1)return;d.addProp("rules",this.resolveRules(t,c))}if(!["picklist","gridcondition","datetime","partylist","rt-saas-attributes","rt-saas-entities"].includes(this.$nodetype)&&l.attributeType){const e=new a.e(o.a.Icon);e.addProp("fieldType",l.attributeType),e.nodeType=i.b.InputIcon,e.field=l.datafieldname,e.addClass("select_icon"),e.slot="prefix";const r=e.field,n=t.targetComponent;if(r&&l.hasprefixicon&&!l.isMask){const t=n.getAttributeImageUrl(n.editForm,r,e.props.fieldType);t&&(e.addProp("imgSrc",t),e.addProp("style",e.props.style||{}),e.props.style.padding="100px",c.addClass("hasprefixicon"),c.addChild(e))}}if("gridcondition"==this.$nodetype&&c.addProp("queryId",s.currentQueryId),l.tooltipEnable){const e=l.tooltipEnable&&t.targetComponent.$_t(l.tooltipLangkey,l.tooltipContent);d.addProp("tooltip",e)}this.extendFieldPermissions(d,c,t)}extendFieldPermissions(e,t,r){const i=r.targetComponent;i.fieldpermissions&&i.fieldpermissions.length>0&&i.fieldpermissions.forEach(r=>{r.logicalname==t.field&&(r.canread||t.addProp("placeholder","********"),0!=i.formStatus||r.cancreate||(t.addProp("readonly",!0),t.addProp("disabled",!0),e.props.prop===t.field&&e.addProp("rules",[])),1!=i.formStatus||r.canupdate||(t.addProp("readonly",!0),t.addProp("disabled",!0),e.props.prop===t.field&&e.addProp("rules",[])))})}extendRules(e,t){}buildVNodeInView(e,t){super.buildVNodeInView(e,t),this.buildVNodeCommon(e,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t),this.buildVNodeCommon(e,t),this.props;const r=t.targetComponent;this.$nodetype;const i=r.attributemappingsMasked.filter(e=>e.fieldName==this.props.datafieldname);let a,n=!1;if(i[0]&&i[0].fieldName==this.props.datafieldname&&"lookup"==i[0].from&&(a=i[0].value,Array.isArray(i[0].originValue)?i[0].originValue.length>0&&(n=!0):i[0].originValue instanceof Object?Object.keys(i[0].originValue).length>0&&(n=!0):null!=i[0].originValue&&""!=i[0].originValue&&null!=i[0].originValue&&(n=!0)),this.props.isMask||(n=!1),this.props.isMask||n){const r={...this.props,hideMaskIcon:n,maskFieldIsMapping:a};this.buildMaskNode(e,t,r)}}buildVNodeCommon(e,t){const r=this.props,i=t.targetComponent;if(e.nodeType=this.$nodetype,e.field=this.getCurrentInputField(),r.disabled&&e.addProp("disabled",!0),"customdisplayfield"==this.$nodetype)if(this.calcExpressionFunc){const t=this.calcExpressionFunc.call(i);e.props.value=t}else e.props.logicalName&&i.fieldInputHandlers[e.field]&&(e.on.input=i.fieldInputHandlers[e.field]);else i.editForm&&i.editForm.hasOwnProperty(e.field)&&e.addProp("value",i.editForm[e.field]),i.fieldInputHandlers[e.field]&&(e.on.input=i.fieldInputHandlers[e.field]);("gridcondition"===this.$nodetype?r.DependentAttributeName:r.dependentAttributeName)&&this.ExtendForDependon(e,r,i)}createInputVNode(e,t,r,i,a){}changeInputTag(e,t){if(this.props.RequiredLevel&&[i.g.ReadOnly,i.g.CalculateFields].includes(this.props.RequiredLevel)&&"gridcondition"!==e.nodeType){e.children&&(e.children=[]);const r=t.targetComponent;let i="";const a=s.a.getFieldName(this.props),n={options:this.props.options,dataType:this.props.dataType||this.props.attributeType,isMillimeter:this.props.isMillimeter,precision:this.props.precision,dateTimeFormat:this.props.dateTimeFormat||r.getDateTimeFormat(),dateFormat:r.getDateFormat(),dateMinuteFormat:r.getDateMinuteFormat(),localeFormatCode:r.numberLocaleCode,displayNumbersByPrecision:r.displayNumbersByPrecision||!1};if(i=s.a.getText(a,r.editForm,n),null!=i&&"string"!=typeof i&&(i=String(i)),this.props.isMask){const r={...this.props,readonly:!0,className:"plat-mask-readonly-text"};this.buildMaskNode(e,t,r)}else e.tag="rc-text",e.addProp("label",""),e.addProp("text",i)}}registerInputHandlers(e){super.registerInputHandlers(e);const t=e.thisVue;t.fieldInputHandlers||(t.fieldInputHandlers={});const r=this.getCurrentInputField();if(r&&!this.isMultipleField){const i=e.dependAttributes.indexOf(r)>=0,a=this.createInputHandler(t,r,i);t.fieldInputHandlers[r]||(t.fieldInputHandlers[r]=new Array),t.fieldInputHandlers[r].push(a)}const i="gridcondition"===this.$nodetype?this.props.DependentAttributeName:this.props.dependentAttributeName;if(this.props.datafieldname&&i&&i!==this.props.datafieldname){const r=this.createAttributeEventKey(t,i,"input"),a=this.__createDependencyChangedHandler(e);this.__addEvent(t,r,a)}}createInputHandler(e,t,r){const i=this.createAttributeEventKey(e,t,"input");return(a,n,o)=>{(a instanceof Object||a!==e.editForm[t])&&(void 0===a?e.updateEditForm&&e.updateEditForm(t,null):e.updateEditForm&&e.updateEditForm(t,a),r&&e.$bus.$emit(i,a,n),this.emitDataChange(a,e,o),this.extendInputHandler(t,a,n,e))}}ExtendForDependon(e,t,r){const i="gridcondition"===this.$nodetype?t.DependentAttributeName:t.dependentAttributeName,a=r.editForm[i];if(a&&"object"==typeof a&&a.id?e.addProp("filterAttributeValue",a.id):e.addProp("filterAttributeValue",a),e.props.filterAttributeValue){const r=[];if(Array.isArray(e.props.filterAttributeValue)&&e.props.filterAttributeValue.length>0&&e.props.filterAttributeValue.forEach(e=>{e.id?r.push(e.id):r.push(e.$id)}),0==r.length){const r=t.FilterRelationAttrName+" eq "+e.props.filterAttributeValue;e.addProp("dialogConditionFields",r)}else{let i=t.FilterRelationAttrName+" in "+r.join(";");1==r.length&&(i=t.FilterRelationAttrName+" in "+r[0]),e.addProp("dialogConditionFields",i)}}else e.addProp("dialogConditionFields","")}CreateInputNodeForPrintPage(e){const t=new a.e("div");t.tag=o.a.printInput,t.nodeType=i.b.Printinput;const r=this.props;return r.entityAlias?t.field=r.entityAlias+"."+r.datafieldname:r.datafieldname&&(t.field=r.datafieldname),this.buildPrintNode(t,e),t}collectDependAttributes(e){e.pageTypes&&e.pageTypes!=i.e.PCForm&&this.props.attributeEntityName&&e.dependAttributes.push(this.props.attributeEntityName)}buildPrintNode(e,t){const r=t.targetComponent;e.addProp("dateTimeFormat",this.props.datetimeformat),e.addProp("fontSize",this.props.fontSize),e.addProp("fontWeight",this.props.fontWeight),e.addKey("print_"+this.id);const i=s.a.getFieldName(this.props),a={options:this.props.options,dataType:this.props.dataType||this.props.attributeType,isMillimeter:this.props.isMillimeter,precision:this.props.precision,dateTimeFormat:this.props.dateTimeFormat,displayNumbersByPrecision:r.displayNumbersByPrecision||!1},n=s.a.getText(i,r.editForm,a);if(e.addProp("value",n),"customdisplayfield"==this.$nodetype)if(this.calcExpressionFunc){const t=this.calcExpressionFunc.call(r);e.props.value=t}else e.props.logicalName&&(e.on.input=r.fieldInputHandlers[e.field]);else r.isQyWxTenant&&("new_workers"==e.field&&"new_srv_workorder"==r.editForm.$logicalname?(e.tag="span",e.domProps={innerHTML:r.editForm.new_workers},e.addClass("wxOpenDataInputSpan")):("name"==e.field&&"businessunit"==r.editForm.$logicalname||"new_name"==e.field&&"new_srv_worker"==r.editForm.$logicalname||"fullname"==e.field&&"systemuser"==r.editForm.$logicalname)&&(e.tag="rt-ww-open-data",e.props={type:"departmentName",openid:r.editForm[e.field],corpid:r.editForm.new_wx_chain_idname},e.addClass("wxOpenData")))}__createDependencyChangedHandler(e){const t=e.thisVue,r=this.props.datafieldname;return(e,a)=>{t.updateEditForm&&t.updateEditForm(r,null),t.changedProps.push(r),t.pageType==i.e.PCQuery&&this.extendInputHandler(r,null,a,t);const n=this.createAttributeEventKey(t,r,"input");t.$bus.$emit(n,null,null)}}hasFieldPermission(e,t){if(e.fieldpermissions&&e.fieldpermissions.length>0){let r=e.fieldpermissions.find(e=>e.logicalname==t);if(r)return r.canread}return!0}collectDefaultValues(e){const t=this.props.datafieldname;let r=this.props.defaultValue;this.hasFieldPermission(e,t)&&t&&!rt.isNull(r)&&e.updateEditForm(t,r)}getCurrentInputField(){let e="";const t=this.props;return t.IsSubEntity?(t.referencingEntityName&&(e=t.referencingEntityName+"."),e+=t.referencingEntityAttributes):(t.entityAlias&&(e=t.entityAlias+"."),t.datafieldname&&(e+=t.datafieldname)),e}getCurrentEntityNameByAttribute(e){let t="";const r=this.props;return t=r.IsSubEntity?r.attributeEntityName||r.referencingEntityName:r.attributeEntityName||r.entityName||r.entity||e.targetComponent.objectTypeName,t}collectMaskData(e){const t=this.props.datafieldname;this.props.isMask&&(e.maskFields[t]=!1)}buildMaskNode(e,t,r){const a=t.targetComponent;this.$nodetype!==i.b.InputAddress&&(e.tag=o.a.Mask),e.addProp("maskFieldIsMapping",r.maskFieldIsMapping),e.addProp("displayName",r.displayName),e.addProp("editForm",a.editForm),e.addProp("objectId",a.objectId),e.addProp("objectTypeName",a.objectTypeName),e.addProp("prop",this.getCurrentInputField()),e.addProp("loadDataCompleted",a.dataLoaded),e.addProp("maskFields",a.maskFields),e.addProp("changedProps",a.changedProps),e.addProp("formStatus",a.formStatus),e.addProp("hideMaskIcon",r.hideMaskIcon),e.addProp("isInputAddress",r.isInputAddress),r.className&&(e.addProp("readonly",r.readonly),e.addClass(r.className)),e.addProp("attributemappingsMasked",a.attributemappingsMasked);const n={isTextarea:r.isTextarea,autosize:r.autosize,rows:r.rows};if(e.addProp("textareaProps",n),e.on.iconClick=a.iconPick,e.on.updateEditForm=a.updateEditForm,e.on.resetMaskFieldStatus=a.resetMaskFieldStatus,!r.disabled){const r=this.calcRequired(a,t);r&&e.addProp("required",r),e.addProp("rules",this.resolveRules(t,e))}return e.addProp("clearable",!1),e}getAvailableValue(e){if(e||0===e){const t=Number(e);return Number.isNaN(t)?void 0:t}}extendInputHandler(e,t,r,i){}emitDataChange(e,t,r){if(!t.schemaLoaded||!t.dataLoaded)return;if(this.readonly)return;if(r&&r.isInnerInput)return;const a=this.getMaxValue(),n=this.getMinValue();void 0!==a&&e>a||void 0!==n&&e{let n=!0;if(i&&n&&i.hasOwnProperty("reference")&&(i.value||(n=!1),i=i.text),!i||!n)return a();const o=i.split(",").map(e=>e.split(";")).flat(),s=/^(?:[\(|(]\+?\d{1,4}[\)|)][\s-]?)?(?:\+?[0-9]+[-\s]?)*[0-9]+$/;o.some(e=>e&&!s.test(e))?a(new Error(r+" "+t.$_t("platform.validate.illegal.phone","号码格式不正确"))):a()},trigger:"blur"}]}resolveEmailRules(e){const t=e.targetComponent,r=this.getAttrLabel();return[{validator:(e,i,a)=>{let n=!0;if(i&&i.hasOwnProperty("reference")&&(i.value||(n=!1),i=i.text),!i||!n)return a();i.split(",").map(e=>e.split(";")).flat().some(e=>e&&!rt.isEmailAddress(e))?a(new Error(r+" "+t.$_t("platform.validate.illegal.email","邮箱格式不正确"))):a()},trigger:"blur"}]}}l(d,"$bindNodeType",i.b.Input)},"071b":function(e,t,r){var i=r("2638");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("5534ed5c",i,!0,{sourceMap:!1,shadowMode:!1})},"0726":function(e,t,r){var i=r("a47a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("36d0904c",i,!0,{sourceMap:!1,shadowMode:!1})},"073f":function(e,t,r){"use strict";r("20c9")},"07d6":function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"092a":function(e,t,r){var i=r("0adc");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4c78f51a",i,!0,{sourceMap:!1,shadowMode:!1})},"0984":function(e,t,r){var i=r("cb18");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7f1d03a5",i,!0,{sourceMap:!1,shadowMode:!1})},"09a7":function(e,t,r){"use strict";function i(e,t){for(var r=[],i={},a=0;ar.parts.length&&(i.parts.length=r.parts.length)}else{var o=[];for(a=0;a{e.basicTreeKey=e.LogicalName}),{basicTreeData:t,relatedTreeData:r}},extractSelectedFieldsFromLayout(e){const t=[];return e&&e.children?(e.children.forEach(e=>{"gridtable"===e.$nodetype&&e.children&&e.children.forEach(e=>{if("gridcell"===e.$nodetype){const r={...e};let i=r.props;r.DisplayName=i.Label,"partylist"===i.dataType&&i.relationshipName?r.relatedTreeKey=(i.datafieldname||i.name)+"-"+i.relationshipName:rt.isNullOrWhiteSpace(i.relationshipId)?r.basicTreeKey=i.name:r.relatedTreeKey=(i.datafieldname||i.name)+"-"+i.relationshipName,t.push(r)}else if("customerComponent"===e.$nodetype){const r={...e};r.DisplayName=r.props.Label,t.push(r)}})}),t):t}}}},"0a77":function(e,t,r){"use strict";r("edc5")},"0adc":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-content.plat-content[data-v-04695b6a]{margin-top:8px}.rt-content.plat-content #contentMain[data-v-04695b6a]{background-color:#fff;padding:0}",""]),e.exports=t},"0b14":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".div-401[data-v-1807783c]{width:100%;height:100%;text-align:center;vertical-align:middle}.div-401 button[data-v-1807783c]{width:142px;height:24px;line-height:8px;color:#888;vertical-align:middle;border:1px solid #888!important;border-radius:20px}.button-style[data-v-1807783c]:hover{color:#fff!important;background:#09f;border:1px solid #09f!important}.div-401 button>span[data-v-1807783c]{font-size:14px;color:#888}.img-box[data-v-1807783c]{padding-top:60px}.img-box p[data-v-1807783c]{margin-bottom:14px;font-size:32px;color:#555}.img-box img[data-v-1807783c]{margin-bottom:30px}.font-box[data-v-1807783c]{margin-bottom:40px}.font-box span[data-v-1807783c]{font-size:24px;color:#888!important}",""]),e.exports=t},"0ba6":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","")}}n(o,"$bindNodeType",i.b.events)},"0c7c":function(e,t,r){"use strict";function i(e,t,r,i,a,n,o,s){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=r,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):a&&(l=s?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}r.d(t,"a",(function(){return i}))},"0c8c":function(e,t,r){"use strict";r("92b3")},"0cc2":function(e,t,r){"use strict";r("d268")},"0dc1":function(e,t,r){"use strict";r("653f")},"107e":function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},1212:function(e,t,r){(function(e){var i;!function(e,a,n){function o(e){var t,r=this,i=(t=4022871197,function(e){e=String(e);for(var r=0;r>>0,t=(i*=t)>>>0,t+=4294967296*(i-=t)}return 2.3283064365386963e-10*(t>>>0)});r.next=function(){var e=2091639*r.s0+2.3283064365386963e-10*r.c;return r.s0=r.s1,r.s1=r.s2,r.s2=e-(r.c=0|e)},r.c=1,r.s0=i(" "),r.s1=i(" "),r.s2=i(" "),r.s0-=i(e),r.s0<0&&(r.s0+=1),r.s1-=i(e),r.s1<0&&(r.s1+=1),r.s2-=i(e),r.s2<0&&(r.s2+=1),i=null}function s(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function l(e,t){var r=new o(e),i=t&&t.state,a=r.next;return a.int32=function(){return 4294967296*r.next()|0},a.double=function(){return a()+11102230246251565e-32*(2097152*a()|0)},a.quick=a,i&&("object"==typeof i&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.alea=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},1283:function(e,t,r){"use strict";r("bdc4")},"12c7":function(e,t,r){"use strict";r("f7c4")},"12e1":function(e,t,r){"use strict";r("c956")},1343:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".import-template-form-item-no-label{margin-top:0!important;width:100%}.import-template-form-item-no-label+.import-template-form-item-no-label{margin-left:12px}.import-template-form-item-no-label ::v-deep .rtxpc-form-item__content{margin-top:0!important}.template-action-popover.rtxpc-popover{padding:8px 8px 0}.template-action-popover.rtxpc-popover .template-action-item{padding:8px}.template-action-popover.rtxpc-popover .rt-upload .template-action-item{padding-bottom:0}.plat-excel-dialog-small .rtxpc-dialog{width:400px!important;min-width:400px!important}",""]),e.exports=t},"140b":function(e,t,r){"use strict";r("35a1")},1447:function(e,t,r){"use strict";r("5e5a")},1459:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-address-location.plat-address-location #searchResultPanel[data-v-6b71cba3]{border:1px solid silver;width:150px;height:auto;display:none}",""]),e.exports=t},"145c":function(e,t,r){"use strict";r("423b")},"14e2":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","none")}createVNode(e,t){}}n(o,"$bindNodeType",i.b.StatuslineView)},1533:function(e,t,r){var i=r("d513");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4cb87256",i,!0,{sourceMap:!1,shadowMode:!1})},1551:function(e,t,r){(t=r("24fb")(!1)).push([e.i,"[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog{height:80vh;margin-bottom:0}[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog .pdf-dialog{width:100%;overflow:hidden}[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog .pdf-dialog .plat-pdf-iframe{width:100%;height:100%}[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog .el-dialog__body{height:calc(100% - 54px);padding:12px}[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog .el-dialog__body .rt-dialog-content-wrapper.rt-dialog-content-wrapper-visible,[data-v-2ce1e0de] .pdf-dialog-wrap.plat-pdf-dialog .el-dialog__body .rt-dialog-content-wrapper.rt-dialog-content-wrapper-visible .pdf-dialog{height:100%}.pdf-dialog-header[data-v-2ce1e0de]{position:absolute;top:15px;left:104px}",""]),e.exports=t},1571:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Columns)}createVNode(e,t){const r=new a.e(this.VueTag);r.nodeType=this.$nodetype,this.buildVNode(r,t),e.addChild(r),this.addChildByPermission(r,t),this.handleApaasNewColumns(r)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t),e.addProp("gutter",8),e.addClass("apaas-card").addClass("apaas-row"),e.addClass("rc-columns rc-special-columns")}handleApaasNewColumns(e){2===e.children.length&&e.addClass("apaas-row-2")}}s(l,"$bindNodeType",i.b.Columns)},1618:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.rt-lookup-dialog[data-v-48cfbeb6] .el-form-item .el-form-item__label{width:120px}.rt-lookup-dialog.plat-base-lookup-dialog .el-icon-check[data-v-48cfbeb6]{margin-left:24px}.rt-lookup-dialog.plat-base-lookup-dialog .lookup-header-search[data-v-48cfbeb6]{padding:10px;padding-bottom:0}.rt-lookup-dialog.plat-base-lookup-dialog.is-bind-view[data-v-48cfbeb6] .el-dialog__body{overflow-y:auto}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .rt-view-wrapper .el-input__suffix .el-input__validateIcon,.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .rt-view-wrapper thead .el-table-column--selection .cell{display:none}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .rt-view-wrapper .rt-list-filter .el-form-item{display:block;margin-bottom:5px}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .rt-view-wrapper .rt-list-filter .rtxpc-form{overflow:hidden}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-col .el-form-item .el-form-item__label,.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .rt-view-wrapper .rt-list-filter .rtxpc-form .el-form-item__label{padding-left:0}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-form-item{display:flex;align-items:center;margin:10px}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-form-item .el-form-item__label{padding-left:60px}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-form-item .el-form-item__content{flex:8;margin-left:0}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-table{margin-top:0;margin-bottom:0}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-dialog__body{padding-bottom:0;scrollbar-width:none}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-48cfbeb6] .el-dialog__body::-webkit-scrollbar{display:none}.rt-lookup-dialog.plat-base-lookup-dialog .dialog-footer .rt-button[data-v-48cfbeb6]{margin-left:10px}.rt-lookup-dialog.plat-base-lookup-dialog .nocount[data-v-48cfbeb6] .el-pagination__total{display:none}.rt-lookup-dialog.plat-base-lookup-dialog .estimatecount[data-v-48cfbeb6]:before{box-sizing:border-box;display:inline-block;min-width:35.5px;height:28px;font-size:13px;line-height:28px;vertical-align:top;content:"大约"}',""]),e.exports=t},"162b":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-excel-dialog[data-v-c52cd042] .el-dialog__body{overflow:unset}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view{word-break:normal;position:relative}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card{box-shadow:unset;margin-bottom:unset;border-radius:0}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section{max-height:calc(70vh - 120px);overflow:auto}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .rtPicklist.isNotStatus .el-select .el-select__tags{z-index:auto}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .downloadTemplate{margin:8px 16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .downloadTemplateTip,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-second .excelExport-card-row .importDestination{color:#4c5966;margin:12px 8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-second .excelExport-card-row .importDestination .excelExport-card-span{color:#d54d47;padding:0 4px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-second .excelExport-card-row .excelExport-card-radio{margin:0 8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-three .excelExport-card-row .excelExport-three-importTip{color:#4c5966;margin:12px 8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-three .excelExport-card-row .excelExport-card-radio{margin:0 8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row{margin:14px 0}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .rt-upload-manual-upload__bottom{align-items:center}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .excelExport-card-upload{border:1px solid #2563eb;color:#2563eb}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .rt-upload{display:flex}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .rt-upload-tip{color:red;padding:0 4px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .el-upload-list{width:77%;height:32px;line-height:32px;margin-top:0}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .el-upload-list .el-upload-list__item{margin-top:0}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .el-upload-list .el-upload-list__item .el-icon-close,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .el-upload-list .el-upload-list__item .el-icon-upload-success,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .el-form-item__content .el-upload-list .el-upload-list__item .el-upload-list__item-name{margin-right:0}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-form-div{display:flex;align-items:center}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-form-div .excelExport-card-form-span{color:#0b0c0e;font-size:16px;font-weight:550}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-form-div .el-badge{margin-right:4px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div{display:flex}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first{border:1px solid #d6dbe1;padding:16px 16px 16px 12px;width:40%;position:relative;border-radius:4px;overflow:hidden;min-width:256px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first .excelExport-button-p{margin-bottom:8px;color:#0b0c0e;font-size:14px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first .excelExport-button-span{color:#4c5966;font-size:12px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first .excelExport-button-triangle{width:0;height:0;border-bottom:24px solid #2563eb;border-left:24px solid transparent;position:absolute;bottom:-1px;right:-1px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first .excelExport-button-triangle .rt-icon{position:absolute;right:0;bottom:-24px;color:#fff}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first .triangleFalse{display:none}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first:not(:last-child){margin-right:24px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-button-div .excelExport-button-first.checked{border-color:#2563eb;border-radius:4px;min-width:256px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-row{padding:0 16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-second,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-three{margin:4px 24px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form.steps:not(:last-child),.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five,.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five.steps:not(:last-child),.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four.steps:not(:last-child),.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-second.steps:not(:last-child),.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-three.steps:not(:last-child){margin-bottom:16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five .el-form-item{padding:0 16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-icon{height:120px;width:120px;padding:8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-message{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-button{display:flex;justify-content:center;margin:16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-button .excelExport-buttonFirst{margin-right:24px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-icon{padding:8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-message{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-message-error{display:flex;justify-content:center;padding:14px;font-size:16px;color:#0072e6}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-button{display:flex;justify-content:center;margin:16px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-button .excelExport-buttonFirst{margin-right:24px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-icon{height:80px;width:80px;padding:8px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-after-span{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-after-information{display:flex;justify-content:center;padding:12px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-exportfile{padding-right:4px;color:#2563eb;cursor:pointer}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .rt-dialog-footer-buttons{padding:0 24px;display:flex;border-top:1px solid #d3d9de;justify-content:flex-end;align-items:center;height:56px}.plat-excel-dialog[data-v-c52cd042] .el-dialog__body .excelExport-view .excelExport-card .rt-dialog-footer-not-buttons{padding:0 24px;display:flex;justify-content:flex-end;align-items:center;height:56px}",""]),e.exports=t},"173d":function(e,t,r){"use strict";r("608a")},1746:function(e,t,r){var i=r("d0ed");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0cde2331",i,!0,{sourceMap:!1,shadowMode:!1})},"17ab":function(e,t,r){var i=r("7164");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("466e9076",i,!0,{sourceMap:!1,shadowMode:!1})},1809:function(e,t,r){var i=r("c0a8");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("201a6f63",i,!0,{sourceMap:!1,shadowMode:!1})},"189b":function(e,t,r){"use strict";r("a298")},"18a3":function(e,t,r){"use strict";var i,a=r("9ab4"),n=r("1b40"),o=r("6060"),s=r("b914"),l=r("6053"),d=r("ef51");function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e[e.state=1]="state",e[e.picklist=2]="picklist",e[e.bit=3]="bit",e[e.status=4]="status"}(i||(i={}));let u=class extends(Object(n.c)(l.a)){constructor(...e){super(...e),c(this,"refProvide",void 0),c(this,"getEntityDisplayName",void 0),c(this,"url",void 0),c(this,"defaultvalue",void 0),c(this,"needJump",void 0),c(this,"pageSource",void 0),c(this,"entityAlias",void 0),c(this,"attributeFullName",void 0),c(this,"align",void 0),c(this,"subgridkey",void 0),c(this,"formtype",void 0),c(this,"formid",void 0),c(this,"subgridLookupProps",void 0),c(this,"newTabObject",void 0),c(this,"prop",void 0),c(this,"isSubEntity",void 0),c(this,"showcolor",void 0),c(this,"fromEntity",void 0),c(this,"customerData",void 0),c(this,"referencedEntity",void 0),c(this,"relationshipId",void 0),c(this,"PrimaryEntityName",void 0),c(this,"datafieldname",void 0),c(this,"isMask",void 0),c(this,"ifEditable",void 0),c(this,"ifEditableExpression",void 0),c(this,"isMillimeter",void 0),c(this,"requiredLevel",void 0),c(this,"subgridIsReadonly",void 0),c(this,"referencedEntityDisplayName",void 0),c(this,"entityList",void 0),c(this,"options",void 0),c(this,"isDashboard",void 0),c(this,"relatedAttribute",void 0),c(this,"selfInfo",void 0),c(this,"entityName",""),c(this,"moduleType",this.$route.params.moduleType),c(this,"CurrentProject",this.$store.state.currentProject)}get name(){return this.prop}get IsNullValueDisplay(){return this.$store.state.systemparameter&&this.$store.state.systemparameter.IsNullValueDisplay}get NullValueDisplay(){return this.$store.state.systemparameter&&this.$store.state.systemparameter.NullValueDisplay}get isNumber(){return!!this.dataType&&["int","float","decimal","bigint","money"].includes(this.dataType.toLowerCase())}get isOpenMillimeter(){return this.dataType&&this.isNumber&&this.isMillimeter}get isNull(){return e=>!!(["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length)}get gridcellIsEditable(){return e=>{if(this.isMask||[d.g.ReadOnly,d.g.CalculateFields].includes(this.requiredLevel))return!1;if(!rt.isNullOrWhiteSpace(this.ifEditableExpression))try{const t=this;return t.row=e,t.fromEntity=this.fromEntity,t.customerData=this.customerData,this.getFunctionByExpression(this.ifEditableExpression,[]).call(t)}catch(e){return rt.showErrorToast("subgrid:"+e),!1}return this.ifEditable}}get cellClass(){return{cellContent:!0,isSubgridCell:this.enableTableCellWordWrap&&!this.isDashboard}}get isLookupCell(){if(!this.dataType)return!1;const e=this.dataType.toLowerCase();return"owner"==e||"lookup"==e||"multipletypelookup"==e||"customer"==e}mounted(){this.entityName=this.selfInfo||this.$route.params.entityName}createTableCellVNode(e,t,r,i){return e(t,r,i)}getTableCellDesc({props:e,text:t,linkStyle:r}){const a=e.row;let n="span",s={class:{...this.cellClass,hide:!t},style:r,domProps:{}},l=t;if(this.isQyWxTenant)return this.getQyWxCellDesc(e);if("lookup"!==this.pageSource&&this.needJump&&(!this.relationshipId||!this.isLookupCell||"url"==this.formtype&&this.url))n="rc-link",s={props:{},attrs:{type:"primary"},class:this.cellClass,style:r,on:{click:()=>{this.gotoEditPage(e)}},nativeOn:{contextmenu:()=>{let r="";this.entityList&&Array.isArray(this.entityList)&&this.entityList.length>0&&this.entityList.find(t=>{t.entity!=e.row[e.property].logicalName&&t.entity!=e.row[e.property].logicalname||(r=t.entityName)}),o.a.rtContextmenu({text:t,url:this.gotoEditPage,docTitle:this.referencedEntityDisplayName||r||this.getEntityDisplayName(),urlData:[e,!0]})}}};else if("image"===this.dataType)n="rt-saas-image-cell",s={attrs:{value:t},props:{align:this.align}};else if(this.showcolor&&this.dataType&&i[this.dataType.toLowerCase()]){const t=this.getColor(e.row);let r,i;if(t){r=t,i=this.SCSS_VARIABLES.COLOR_TEXT_WHITE;const n=this.getName();e.row.FormattedColors&&n&&"COLOR_I1"===a.FormattedColors[n]&&(i=this.SCSS_VARIABLES.NEUTRAL_COLOR_PRIMARY)}else r=this.SCSS_VARIABLES.COLOR_I1,i=this.SCSS_VARIABLES.BREADCRUMB_FONT_COLOR_ACTIVE;n="rc-tag",s={props:{"bg-color":r,"font-color":i,size:"medium"},attrs:{round:!0}}}return this.isNull(l)&&(n="span",s={class:this.cellClass},l=this.getNullDisplay()),{tagName:n,componentProps:s,componentText:l,renderComponent:!0}}getQyWxCellDesc({props:e,text:t}){const r=e.row,i=this.getFieldName();let a=null;const n=r[i];let o="",s="";return r.FormattedValues&&(o=r.FormattedValues[i+"wxcorpid"]),r.new_wx_chain_id&&(s=r.new_wx_chain_id.name),this.isSystemUserOrWorkerName()?a={props:{type:"userName",openid:n,corpid:s}}:this.isBusinessUnitName()?a={props:{type:"departmentName",openid:n,corpid:s}}:this.isSystemUserOrWorker()?r&&r[i]&&void 0!==r[i]&&(a={props:{type:"userName",openid:r[i].name,corpid:o}}):this.isBusinessUnit()&&r&&r[i]&&void 0!==r[i]&&(a={props:{type:"departmentName",openid:r[i].name,corpid:o}}),{tagName:"rt-ww-open-data",componentProps:a,componentText:null,renderComponent:!0}}getNullDisplay(){return!0===this.IsNullValueDisplay||"true"===this.IsNullValueDisplay?this.NullValueDisplay?this.NullValueDisplay:"--":""}getFieldName(){let e=this.entityAlias?this.entityAlias+"."+this.name:this.name;return this.isSubEntity&&(e=this.entityAlias?this.entityAlias:this.name),e||""}pushRouter(e,t=!1){if(t){if("string"==typeof e)return 0==e.indexOf("/")?e.substring(1,e.length):e;let t=e&&e.path?e.path:"";if(t)"/"==t[0]&&(t=t.substring(1));else{const r=this.$router.dynamicRoutes.find(t=>t.name==e.name);t=r.path.replace(/:/g,"").replace(/\?/g,"");const i=t.split("/"),a=e.name?e.name.toLowerCase():"";t=a+"/",i.map(r=>{r!=a&&(t+=(e.params[r]?e.params[r]:"")+"/")}),t=t.replace(/\/{2,}/,"/")}return t}this.$router.push(e)}showVformDrawer(e,t){this.showDrawer("vformcore",e,t,"65vw")}isSystemUserOrWorker(){if(this.isQyWxTenant){if(!this.dataType)return!1;const e=this.dataType.toLowerCase();if("owner"==e||"lookup"==e){if(!this.referencedEntity)return!0;const e=this.referencedEntity.toLowerCase();return"systemuser"==e||"new_srv_worker"==e}}return!1}isBusinessUnit(){if(this.isQyWxTenant){if(!this.dataType)return!1;if("lookup"==this.dataType.toLowerCase())return"businessunit"==this.referencedEntity.toLowerCase()}return!1}isSystemUserOrWorkerName(){return this.isQyWxTenant&&("new_name"==this.name&&"new_srv_worker"==this.entityName||"new_srv_worker"==this.PrimaryEntityName&&"new_name"==this.attributeFullName||"fullname"==this.name&&"systemuser"==this.entityName||"systemuser"==this.PrimaryEntityName&&"fullname"==this.attributeFullName||"new_readername"==this.name&&"new_notice_user"==this.entityName||"new_notice_user"==this.PrimaryEntityName&&"new_readername"==this.attributeFullName||"new_readername"==this.name&&"new_noticeread"==this.entityName||"new_noticeread"==this.PrimaryEntityName&&"new_readername"==this.attributeFullName)}isBusinessUnitName(){return this.isQyWxTenant&&("name"==this.name&&"businessunit"==this.entityName||"businessunit"==this.PrimaryEntityName&&"name"==this.attributeFullName)}showDrawer(e,t,r,i,a){this.refProvide.showDrawer(e,t,r,i,a)}gotoEditPage(e,t=!1){if(this.refProvide&&this.refProvide.isDashboard&&this.refProvide.isPreview)return;const r=e&&e.row||e;if(this.dataType&&("multipletypelookup"===this.dataType.toLowerCase()||"customer"===this.dataType.toLowerCase())&&e){const i=r[e.property],a=i.id,n=i.logicalname;if(this.url){const e=this.getFunctionByExpression(this.url,["row"]).call(this,r);return e&&"string"==typeof e?this.pushRouter({path:e},t):e}return this.pushRouter({path:"/vform/"+n+"/"+a},t)}let i=this.referencedEntity,a=null;if(r&&(a=r.$id,this.relatedAttribute&&r[this.relatedAttribute]&&(a=r[this.relatedAttribute].id)),this.isLookupCell&&(i=this.referencedEntity,r&&this.name&&r[this.name]&&(a=r[this.name].id)),i||(i=this.entityName),this.needJump){if(this.refProvide&&(this.refProvide.historyRow=r),"url"==this.formtype&&r&&a){if(!this.url)return;return this.subgridIsReadonly?void rt.showErrorToast(this.$_t("platform.subgridIsDisabled","当前子网格明细已禁用,请联系管理员")):this.refProvide&&this.refProvide.isDashboard?"string"==typeof this.getFunctionByExpression(this.url,["row"]).call(this,r)?this.$PlatUtils.pushLocation(this.refProvide.dashboardSubAppName,this.getFunctionByExpression(this.url,["row"]).call(this,r),t):void 0:this.pushRouter(this.getFunctionByExpression(this.url,["row"]).call(this,r),t)}if("form"==this.formtype){let e="";if(this.formid){var n,o;const r={formId:this.formid,entityName:i};a&&(r.id=a),this.newTabObject&&(r.attr=this.newTabObject.relationFilterAttribute,r.value={id:this.newTabObject.relationFilterValue,logicalname:this.newTabObject.fromEntityLogicalName,name:this.newTabObject.fromEntityName});const s={fromEntity:this.fromEntity,fromEntityName:null===(n=this.fromEntity)||void 0===n?void 0:n.$logicalname,fromEntityId:null===(o=this.fromEntity)||void 0===o?void 0:o.$id};if(this.subgridIsReadonly&&!this.isLookupCell&&(s.subGridReadonly=!0),!this.refProvide||!this.refProvide.isDashboard)return this.pushRouter({name:"VForm2",params:r,query:s},t);e="vform2/"+i+"/"+this.formid+(a?"/"+a:"")}else{const r={entityName:i};if(a&&(r.id=a),this.newTabObject&&(r.attr=this.newTabObject.relationFilterAttribute,r.value={id:this.newTabObject.relationFilterValue,logicalname:this.newTabObject.fromEntityLogicalName,name:this.newTabObject.fromEntityName}),!this.refProvide||!this.refProvide.isDashboard)return this.pushRouter({name:"VForm",params:r},t);e="vform/"+i+(a?"/"+a:"")}if(this.refProvide&&this.refProvide.isDashboard)return t?this.$PlatUtils.getRealUrl(this.refProvide.dashboardSubAppName,e):this.$PlatUtils.pushLocation(this.refProvide.dashboardSubAppName,e,t)}}const l=this.$dynamicpagecommon||s.a;if(r)return this.pushRouter(l.getEntityEditPage(i,a,this.$router,this.CurrentProject),t);{const e=l.getEntityCreatePage(i,this.$router,this.CurrentProject);return e.params&&this.newTabObject&&(e.params.attr=this.newTabObject.relationFilterAttribute,e.params.value={id:this.newTabObject.relationFilterValue,logicalname:this.newTabObject.fromEntityLogicalName,name:this.newTabObject.fromEntityName}),this.pushRouter(e,t)}}getColor(e){if(this.dataType&&i[this.dataType.toLowerCase()]){const t=this.getName();if(e.FormattedColors&&t){const r=this.getPicklistCurrentColor(e)||e.FormattedColors[t];return r?r.startsWith("#")?r:this.SCSS_VARIABLES[r]||r:""}}}getPicklistCurrentColor(e){var t;const r=null===(t=this.options)||void 0===t?void 0:t.filter(t=>t.Value===e[this.getFieldName()]);return r&&r.length>0?r[0].Color:""}getName(){return this.entityAlias?this.entityAlias+"."+this.name:this.name}};Object(a.__decorate)([Object(n.b)()],u.prototype,"refProvide",void 0),Object(a.__decorate)([Object(n.b)()],u.prototype,"getEntityDisplayName",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"dataType",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"url",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"defaultvalue",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"needJump",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"pageSource",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"entityAlias",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"attributeFullName",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"align",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"subgridkey",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"formtype",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"formid",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"subgridLookupProps",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"newTabObject",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"prop",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"isSubEntity",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"showcolor",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"fromEntity",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"customerData",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"referencedEntity",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"relationshipId",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"PrimaryEntityName",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"datafieldname",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"isMask",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"ifEditable",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"ifEditableExpression",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"isMillimeter",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"requiredLevel",void 0),Object(a.__decorate)([Object(n.d)({default:!1})],u.prototype,"subgridIsReadonly",void 0),Object(a.__decorate)([Object(n.d)({default:""})],u.prototype,"referencedEntityDisplayName",void 0),Object(a.__decorate)([Object(n.d)({default:()=>[]})],u.prototype,"entityList",void 0),Object(a.__decorate)([Object(n.d)({default:()=>[]})],u.prototype,"options",void 0),Object(a.__decorate)([Object(n.d)({default:!1})],u.prototype,"isDashboard",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"relatedAttribute",void 0),Object(a.__decorate)([Object(n.d)()],u.prototype,"selfInfo",void 0),u=Object(a.__decorate)([Object(n.a)({name:"tableCellRender"})],u),t.a=u},"18e8":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-sass-toolbar.plat-sass-toolbar[data-v-9578b582]{float:right;margin-top:8px}.rt-sass-toolbar.plat-sass-toolbar button[data-v-9578b582]{float:left;background:#fff;padding:0 14px 0 12px;border-radius:2px;height:32px;line-height:30px;border:1px solid #b4bdcf;color:#557ab4}.rt-sass-toolbar.plat-sass-toolbar .plat-saas-btn.el-button[data-v-9578b582]{margin-left:16px}.rt-sass-toolbar.plat-sass-toolbar .plat-saas-btn.el-button--text[data-v-9578b582]:hover{background:#fff;color:#09f;border:1px solid #09f}.rt-sass-toolbar.plat-sass-toolbar .plat-saas-btn.el-button--text[data-v-9578b582]:focus{background:#fff;color:#557ab4;border:1px solid #b4bdcf}.rt-sass-toolbar.plat-sass-toolbar .plat-saas-btn.el-button--text[data-v-9578b582]:active{background:#09f;color:#fff;border:1px solid #09f}.rt-sass-toolbar.plat-sass-toolbar i[data-v-9578b582]{float:left;margin-top:0;margin-right:5px}",""]),e.exports=t},"18fc":function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));class i{static parseLocaleNumber(e,t="en-US"){if("string"!=typeof e)return e;const r=new Intl.NumberFormat(t).formatToParts(1234.56),i=r.find(e=>"group"===e.type),a=i&&i.value||",",n=r.find(e=>"decimal"===e.type),o=n&&n.value||".";return parseFloat(e.replace(new RegExp("\\"+a,"g"),"").replace(o,"."))}static getAvailableValue(e){if(e||0===e){const t=Number(e);return isNaN(t)?void 0:t}}static isEmptyArray(e){return!!Array.isArray(e)&&0===e.filter(e=>null!=e).length}static array2map(e,t,r){const i=new Map;return e?(e.forEach(e=>{const a=r?e[r]:e;i.set(e[t],a)}),i):i}static toReversed(e){const t=e.slice();return t.reverse(),t}static getText(e,t,r){return t.FormattedValues&&t.FormattedValues[e]?t.FormattedValues[e]:this.getCustomText(e,t,r)}static getCustomText(e,t,r){const i=r.options,a=t[e];let n=a;try{var o;switch(null==r||null===(o=r.dataType)||void 0===o?void 0:o.toLowerCase()){case"lookup":case"customer":case"owner":case"multipletypelookup":a&&a.id&&(n=a.name);break;case"partylist":a&&Array.isArray(a)&&(n=a.map(e=>e.name).join(";"));break;case"picklist":case"picklistarray":case"bit":n=this.__getPicklistName(i,a);break;case"int":case"decimal":case"bigint":case"float":case"money":if(!isNaN(this.parseLocaleNumber(a))){const e={};e.useGrouping=r.isMillimeter||!1,r.displayNumbersByPrecision?e.minimumFractionDigits=r.precision:e.maximumFractionDigits=r.precision,n=a.toLocaleString(r.localeFormatCode,e)}break;case"datetime":n="DateOnly"===r.dateTimeFormat?a&&rt.formatDateTimeNew(a,r.dateFormat):a&&rt.formatDateTimeNew(a,r.dateTimeFormatStr);break;default:if(a&&a instanceof Object&&a.hasOwnProperty("reference"))return a.text;"string"!=typeof a||r.preserveNewLines||(n=a.replace(/\n/g,""))}}catch(e){}return n||""}static __getPicklistName(e=[],t){let r=t;if(e&&e.length>0)if(t&&Array.isArray(t)){const i=[];e.forEach(e=>{t.indexOf(e.Value)>-1&&i.push(e.Text)}),r=i.join(";")}else{const i=e.find(e=>e.Value==t);r=i&&i.Text}return r}static getFieldName(e){const{entityAlias:t,name:r,datafieldname:i,IsSubEntity:a}=e||{};let n=r||i;return n=t?t+"."+n:n,a&&(n=t||r||i),n||""}static getBasicCompConfig(){if(rtconfig.preloadParams&&rtconfig.preloadParams.BasicCompConfig)try{return JSON.parse(rtconfig.preloadParams.BasicCompConfig)||{}}catch(e){}return{}}}},"193a":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".audio-wrapper[data-v-83cc7ce6]{width:100%;padding:24px;box-sizing:border-box}.audio[data-v-83cc7ce6]{width:100%}[data-v-83cc7ce6] .audio-preview-dialog.rtxpc-dialog .rtxpc-dialog__body{overflow:visible}",""]),e.exports=t},"194a":function(e,t,r){"use strict";r("adf2")},"1a36":function(e,t,r){"use strict";r("c246")},"1a43":function(e,t,r){"use strict";r("e50e")},"1a4e":function(e,t,r){var i=r("354f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("8a4f775c",i,!0,{sourceMap:!1,shadowMode:!1})},"1ab2":function(e,t,r){var i=r("7bcc"),a=r("bc6c");for(var n in(t=e.exports=function(e,t){return new a(t).process(e)}).FilterCSS=a,i)t[n]=i[n];"undefined"!=typeof window&&(window.filterCSS=e.exports)},"1ab8":function(e,t,r){"use strict";r("d79f")},"1b40":function(e,t,r){"use strict";r.d(t,"a",(function(){return x})),r.d(t,"f",(function(){return a.a})),r.d(t,"c",(function(){return h})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return k})),r.d(t,"e",(function(){return O})),r.d(t,"g",(function(){return I}));var i=r("8bbf"),a=r.n(i);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};t.name=t.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(e){if("constructor"!==e)if(m.indexOf(e)>-1)t[e]=r[e];else{var i=Object.getOwnPropertyDescriptor(r,e);void 0!==i.value?"function"==typeof i.value?(t.methods||(t.methods={}))[e]=i.value:(t.mixins||(t.mixins=[])).push({data:function(){return o({},e,i.value)}}):(i.get||i.set)&&((t.computed||(t.computed={}))[e]={get:i.get,set:i.set})}})),(t.mixins||(t.mixins=[])).push({data:function(){return f(this,e)}});var i=e.__decorators__;i&&(i.forEach((function(e){return e(t)})),delete e.__decorators__);var n=Object.getPrototypeOf(e.prototype),s=n instanceof a.a?n.constructor:a.a,c=s.extend(t);return y(c,e,s),l()&&d(c,e),c}var b={prototype:!0,arguments:!0,callee:!0,caller:!0};function y(e,t,r){Object.getOwnPropertyNames(t).forEach((function(i){if(!b[i]){var a=Object.getOwnPropertyDescriptor(e,i);if(!a||a.configurable){var o,s,l=Object.getOwnPropertyDescriptor(t,i);if(!u){if("cid"===i)return;var d=Object.getOwnPropertyDescriptor(r,i);if(o=l.value,s=n(o),null!=o&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(e,i,l)}}}))}function v(e){return"function"==typeof e?g(e):function(t){return g(t,e)}}v.registerHooks=function(e){m.push.apply(m,s(e))};var x=v;function w(e){return p((function(t,r){void 0===t.inject&&(t.inject={}),Array.isArray(t.inject)||(t.inject[r]=e||r)}))}function _(e){return"function"!=typeof e||!e.managed&&!e.managedReactive}function E(e){var t=function(){var r=this,i="function"==typeof e?e.call(this):e;for(var a in(i=Object.create(i||null))[C]=Object.create(this[C]||{}),t.managed)i[t.managed[a]]=this[a];var n=function(e){i[t.managedReactive[e]]=o[e],Object.defineProperty(i[C],t.managedReactive[e],{enumerable:!0,configurable:!0,get:function(){return r[e]}})},o=this;for(var a in t.managedReactive)n(a);return i};return t.managed={},t.managedReactive={},t}var C="__reactiveInject__";function N(e){Array.isArray(e.inject)||(e.inject=e.inject||{},e.inject[C]={from:C,default:{}})}var S="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function T(e,t,r){if(S&&!Array.isArray(e)&&"function"!=typeof e&&!e.hasOwnProperty("type")&&void 0===e.type){var i=Reflect.getMetadata("design:type",t,r);i!==Object&&(e.type=i)}}function k(e){return void 0===e&&(e={}),function(t,r){T(e,t,r),p((function(t,r){(t.props||(t.props={}))[r]=e}))(t,r)}}function O(e){return p((function(t,r){var i=t.provide;N(t),_(i)&&(i=t.provide=E(i)),i.managed[r]=e||r}))}function I(e,t){void 0===t&&(t={});var r=t.deep,i=void 0!==r&&r,a=t.immediate,n=void 0!==a&&a;return p((function(t,r){"object"!=typeof t.watch&&(t.watch=Object.create(null));var a=t.watch;"object"!=typeof a[e]||Array.isArray(a[e])?void 0===a[e]&&(a[e]=[]):a[e]=[a[e]],a[e].push({handler:r,deep:i,immediate:n})}))}},"1b46":function(e,t,r){"use strict";r("0726")},"1b69":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-plat-filter-drawer[data-v-e608c596] .header-container-btn{display:none}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__header{height:48px;padding:0 16px;background-color:#f0f2f4}.rt-plat-filter-drawer[data-v-e608c596] .rtxpc-drawer{box-shadow:-6px 0 16px -8px rgba(0,0,0,.2)!important}.rt-plat-filter-drawer[data-v-e608c596] .rt-daterangepicker span{padding-left:0;padding-right:0}.rt-plat-filter-drawer[data-v-e608c596] .rtxpc-form--label-left .custom-component-wrapper{margin-right:22px}.rt-plat-filter-drawer[data-v-e608c596] .rtxpc-form--label-left .custom-component-wrapper .rtxpc-form-item__label{display:flex;align-items:center;width:220px;height:27px;border-radius:4px;border:1px solid #d3d9de;padding-left:8px;box-sizing:border-box;justify-content:space-between;margin-right:4px}.rt-plat-filter-drawer[data-v-e608c596] .grid-form-filter-item .rt-input{position:relative}.rt-plat-filter-drawer .plat-condition-title[data-v-e608c596]{display:flex;align-items:center}.rt-plat-filter-drawer .plat-condition-title .title[data-v-e608c596]{margin-right:16px;font-size:16px;font-weight:700;color:#0b0c0e;line-height:21px}.rt-plat-filter-drawer .plat-condition-content[data-v-e608c596]{max-height:calc(100% - 120px);height:100%;overflow:auto;padding-top:4px}.rt-plat-filter-drawer .plat-condition-content .plat-empty[data-v-e608c596]{height:44px;line-height:44px;background:#f6f7f8;border-radius:8px;color:#788796;margin-top:16px;font-size:14px;text-align:center}.rt-plat-filter-drawer .plat-condition-content[data-v-e608c596] .rt-label-wrapper .is-label-slot.rtxpc-is-label-slot{overflow:unset}.rt-plat-filter-drawer .plat-condition-content[data-v-e608c596] .rt-label-wrapper .is-label-slot.rtxpc-is-label-slot .operate-span{width:100%;min-width:60px;margin-left:16px}.rt-plat-filter-drawer .plat-condition-content[data-v-e608c596] .plat-filter-clear-btn{cursor:pointer}.rt-plat-filter-drawer .plat-condition-content .add-condition-btn[data-v-e608c596]{width:100%;height:32px;border-radius:4px;font-size:14px;margin-top:12px;margin-bottom:4px}.rt-plat-filter-drawer .plat-condition-content .add-condition-btn[data-v-e608c596]:hover{background-color:transparent;color:#1a8bff;border-color:#1a8bff}.rt-plat-filter-drawer .plat-condition-content.rt-view-wrapper[data-v-e608c596] .rt-form-item-wrapper .rtxpc-form-item__label{font-size:13px}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer{height:65px;border-top:1px solid #e8ebee;padding:0 16px}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer{width:100%}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save{display:flex;align-items:center}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save .rtxpc-form-item,.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save .rtxpc-form-item__content{margin-top:0}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .confirm-condition-btn{display:flex;justify-content:space-between;width:100%}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .confirm-condition-btn .rt-button{margin:0}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .confirm-condition-btn .rt-button:first-child{margin-right:12px}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .confirm-condition-btn .rt-button:last-child{margin-left:auto}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save{width:100%}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save .rt-input{flex:1;margin-right:24px}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .condition-save .rt-button:last-child{margin-left:12px}.rt-plat-filter-drawer[data-v-e608c596] .rt-drawer__footer .plat-condition-footer .rt-button{transition:none}.search-control.rt-search[data-v-e608c596] .rtxpc-input__inner{font-size:14px!important}.search-control.rt-search[data-v-e608c596] .rtxpc-input__inner::-moz-placeholder{font-size:14px!important;color:#98a6b3!important}.search-control.rt-search[data-v-e608c596] .rtxpc-input__inner::placeholder{font-size:14px!important;color:#98a6b3!important}.condition-list[data-v-e608c596]{display:flex;flex-direction:column;margin-top:4px;max-height:380px;overflow:hidden}.condition-list[data-v-e608c596] .rt-search .rtxpc-input__inner{border:none;border-bottom:1px solid #d6dbe1;border-radius:unset}.condition-list[data-v-e608c596]::-webkit-scrollbar{display:none}.condition-list .condition-scroll[data-v-e608c596]{height:350px;overflow:auto;overflow-x:hidden;margin-left:-8px;margin-right:-8px}.condition-list .condition-scroll[data-v-e608c596]::-webkit-scrollbar{width:0;scrollbar-width:none}.condition-list .condition-scroll[data-v-e608c596]:focus{outline:none}.condition-list .condition-scroll .condition-list-item[data-v-e608c596]{height:35px;color:#363d44;line-height:35px;font-size:14px;padding:0 16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.condition-list .condition-scroll .condition-list-item.condition-list-item_current[data-v-e608c596],.condition-list .condition-scroll .condition-list-item[data-v-e608c596]:hover{color:#2563eb;background:#e9effd;cursor:pointer}",""]),e.exports=t},"1b6b":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".contextmenu-submenu-fade-enter-active,.contextmenu-submenu-fade-leave-active{transition:opacity .1s}.contextmenu-submenu-fade-enter,.contextmenu-submenu-fade-leave-to{opacity:0}",""]),e.exports=t},"1c27":function(e,t,r){var i=r("e5e4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6cf2ea7e",i,!0,{sourceMap:!1,shadowMode:!1})},"1c61":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".between-number[data-v-12a1a945]{display:flex;align-items:center}.between-number .split[data-v-12a1a945]{margin-right:10px;margin-left:10px}.between-number .date-picker[data-v-12a1a945]{min-width:220px}.between-number .date-picker[data-v-12a1a945] .el-input__prefix.el-input__prefix.el-input__prefix.el-input__prefix{margin-left:2px;top:1px}.between-number .date-picker[data-v-12a1a945] .el-input__prefix.el-input__prefix.el-input__prefix.el-input__prefix .el-input__icon{line-height:35px;height:35px}",""]),e.exports=t},"1c6a":function(e,t,r){var i=r("9018");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("529555d6",i,!0,{sourceMap:!1,shadowMode:!1})},"1d6a":function(e,t,r){var i=r("3544");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("5026091a",i,!0,{sourceMap:!1,shadowMode:!1})},"1d8f":function(e,t,r){"use strict";r("374d")},"1d91":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.fetch-wrap[data-v-2d649db5] .fetch-header-wrap{height:40px;display:flex;align-items:center}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header{display:flex;align-items:center;justify-content:space-between;width:100%}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .label{color:#627084;font-size:14px;margin-right:8px}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .fetch-header-div{min-width:220px;max-width:300px;display:flex;align-items:center}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .fetch-header-div .label{flex-shrink:0;color:#627084;font-size:14px;margin-right:8px}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .fetch-header-item{display:flex;align-items:center}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .fetch-btns{display:flex}.fetch-wrap[data-v-2d649db5] .fetch-header-wrap .fetch-header .fetch-btns .rt-button{margin-left:16px}.fetch-wrap[data-v-2d649db5] .fetch-select{line-height:1}.fetch-wrap[data-v-2d649db5] .fetch-select .el-input__inner{height:32px;line-height:32px;border-color:#d3d9de;border-radius:2px;color:#4e5969}.fetch-wrap[data-v-2d649db5] .fetch-select .el-input__suffix{display:flex;align-items:center}.fetch-wrap[data-v-2d649db5] .fetch-select .el-input__suffix .el-input__icon,.fetch-wrap[data-v-2d649db5] .fetch-select .el-input__suffix .el-input__icon .el-icon-arrow-up{display:flex;align-items:center;justify-content:center}.fetch-wrap[data-v-2d649db5] .rc-base-lookup{width:100%}.fetch-wrap[data-v-2d649db5] .rc-base-lookup .el-input__suffix{display:flex;align-items:center}.fetch-default-wraper .fetch-header-wrap[data-v-2d649db5]{padding:0 16px;position:relative}.fetch-default-wraper .fetch-header-wrap[data-v-2d649db5]:before{content:"";display:block;width:4px;height:20px;background-color:#0059b3;position:absolute;left:0;top:10px}',""]),e.exports=t},"1dae":function(e,t,r){var i=r("5646");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d6baafea",i,!0,{sourceMap:!1,shadowMode:!1})},"1de5":function(e,t,r){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"1e17":function(e,t,r){"use strict";var i=r("9ab4"),a=r("1b40");let n=class extends a.f{get userDateFormat(){return this.$store.state.user.dateFormat||""}getDateFormat(){return this.userDateFormat||"yyyy-MM-dd"}getDateMinuteFormat(){return this.userDateFormat?this.userDateFormat+" HH:mm":"yyyy-MM-dd HH:mm"}getDateTimeFormat(){return this.userDateFormat?this.userDateFormat+" HH:mm:ss":"yyyy-MM-dd HH:mm:ss"}};n=Object(i.__decorate)([Object(a.a)({name:"DateFormatMixin"})],n),t.a=n},"1e40":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-steps-wrap[data-v-443a649e]{background-color:#fff;border-radius:8px;box-sizing:border-box}.plat-steps-wrap .plat-steps-item-container[data-v-443a649e]{padding-bottom:8px}.plat-steps-wrap .plat-steps-item-container .plat-steps-item[data-v-443a649e]{display:flex}.plat-steps-wrap.plat-step-empty[data-v-443a649e]{height:unset}.plat-steps-wrap .plat-scrollbar__thumb[data-v-443a649e]{background:#99a6b3}.plat-steps-wrap.plat-step-has-desc .plat-steps .plat-steps-item-container[data-v-443a649e]{position:relative;padding-bottom:24px}.plat-steps-wrap.plat-step-has-desc .plat-steps .plat-steps-item-container .plat-step-desc[data-v-443a649e]{position:absolute;width:100%;overflow:hidden;color:#e78119;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:16px}.plat-steps-wrap.plat-is-evenly[data-v-443a649e]{width:100%}.plat-steps-wrap.plat-is-evenly .plat-steps .plat-steps-item-container[data-v-443a649e]{flex:1}.plat-steps[data-v-443a649e]{position:relative;display:flex;width:auto;flex-wrap:wrap}.plat-steps.plat-step-click .plat-bottom-line[data-v-443a649e]{display:block}.plat-steps.plat-step-click .plat-steps-selected .plat-icon[data-v-443a649e]{fill:#70c7bd}.plat-steps.plat-step-click .plat-steps-selected .plat-step[data-v-443a649e]{background:#70c7bd}.plat-steps.plat-step-click .plat-steps-selected .plat-step[data-v-443a649e]:before{border-top:16px solid #70c7bd;border-bottom:16px solid #70c7bd}.plat-steps.plat-step-click .plat-steps-selected .plat-step[data-v-443a649e]:after{border-left:16px solid #70c7bd}.plat-steps.plat-step-click .plat-step[data-v-443a649e]{cursor:pointer}.plat-steps .plat-bottom-line[data-v-443a649e]{position:absolute;bottom:0;display:none;height:3px;background-color:#10a291;border-radius:4px;transition:transform .3s cubic-bezier(.645,.045,.355,1)}.plat-steps .plat-icon[data-v-443a649e]{display:flex;padding-left:0;fill:#e8ebee;width:16px;height:28px}.plat-steps .plat-icon.plat-icon-finished[data-v-443a649e]{fill:#e7f6f4}.plat-steps .plat-icon.plat-icon-current[data-v-443a649e]{fill:#10a291}.plat-steps .plat-is-current.plat-step[data-v-443a649e]{color:#fff;background:#10a291}.plat-steps .plat-is-finished[data-v-443a649e]{font-size:16px;background:#e7f6f4}.plat-steps .plat-is-finished .rt-icon[data-v-443a649e]{color:#10a291}.plat-steps .plat-is-finished .plat-step-content[data-v-443a649e]{color:#0b0c0e}.plat-step[data-v-443a649e]{position:relative;display:flex;align-items:center;justify-content:center;padding:4px 0 4px 0;font-size:16px;color:#4c5966;background:#e8ebee;height:28px;box-sizing:border-box;cursor:default;min-width:36px;flex:1}.plat-is-first .plat-step[data-v-443a649e]{padding-left:20px;border-radius:4px 0 0 4px}.plat-step-content[data-v-443a649e]{padding-right:4px;padding-left:4px;word-break:keep-all;overflow:hidden;font-size:14px;line-height:19px;white-space:nowrap;text-align:center}",""]),e.exports=t},"1e4f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".address-flat-trigger[data-v-3aec6146]{flex:1;cursor:pointer}.address-flat-trigger[data-v-3aec6146] .fake-cascader{line-height:unset;width:100%;pointer-events:none}.address-flat-trigger[data-v-3aec6146] .fake-cascader *{pointer-events:none}.address-flat-trigger[data-v-3aec6146] .fake-cascader.fake-cascader.hide-dropdown .el-input .el-input__suffix .rt-cascader-dropdown.rt-icon{display:none}.address-flat-trigger .fake-cascader-container[data-v-3aec6146]{position:relative}.address-flat-trigger .fake-cascader-container .rt-icon.rt-xpc-input-clearicon[data-v-3aec6146]{display:block;width:16px;height:16px;position:absolute;right:8px;top:50%;margin-top:-8px;background-color:#fff}.flat-tabs[data-v-3aec6146] .rt-tabs__header.el-tabs__header.is-top.is-small .rt-tabs__item.el-tabs__item{font-size:14px}.flat-tabs[data-v-3aec6146] .rt-tabs__nav-scroll{align-items:center}.flat-tabs[data-v-3aec6146] .tabs-nav_extra-content{height:unset;font-size:unset}.flat-tabs[data-v-3aec6146] .tabs-nav_extra-content:after{height:0}.flat-tabs[data-v-3aec6146] .confirm-btn{border:none;margin-right:46px}.flat-tabs[data-v-3aec6146] .flat-tab-pane.el-tab-pane{padding-top:8px;padding-bottom:8px;max-height:240px;overflow-y:auto;box-sizing:border-box}.option-list[data-v-3aec6146]{width:502px;list-style:none;display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr;grid-template-rows:32px;padding-left:16px;padding-right:16px;box-sizing:border-box}.option-list .option-list-item[data-v-3aec6146]{display:block;height:32px;line-height:32px;font-size:14px;font-weight:400;color:#0b0c0e;padding-left:16px;padding-right:16px;cursor:pointer;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.option-list .option-list-item[data-v-3aec6146]:hover{background-color:#e9effd;color:#2563eb}",""]),e.exports=t},"1ea2":function(e,t,r){var i=r("e166");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("07468363",i,!0,{sourceMap:!1,shadowMode:!1})},"1f40":function(e,t,r){var i=r("c315");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d82b01da",i,!0,{sourceMap:!1,shadowMode:!1})},"1f9a":function(e,t,r){var i=r("edf4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("07380a6a",i,!0,{sourceMap:!1,shadowMode:!1})},"1fb5":function(e,t,r){"use strict";t.byteLength=function(e){var t=d(e),r=t[0],i=t[1];return 3*(r+i)/4-i},t.toByteArray=function(e){var t,r,i=d(e),o=i[0],s=i[1],l=new n(function(e,t,r){return 3*(t+r)/4-r}(0,o,s)),c=0,u=s>0?o-4:o;for(r=0;r>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,n=[],o=0,s=r-a;os?s:o+16383));return 1===a?(t=e[r-1],n.push(i[t>>2]+i[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],n.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),n.join("")};for(var i=[],a=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var a,n,o=[],s=t;s>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},"20c9":function(e,t,r){var i=r("714b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6704460a",i,!0,{sourceMap:!1,shadowMode:!1})},2146:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNode(e,t){super.buildVNode(e,t),this.props;const r=t.targetComponent,i=e.field;if(i){const t=r.getAttributeImageUrl(r.editForm,i,e.props.fieldType);t&&(e.addProp("style",e.props.style||{}),e.addProp("imgSrc",t),e.props.style.padding="100px")}}}i=d,a="$bindNodeType",n=o.b.InputIcon,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},2158:function(e,t,r){"use strict";r("f9c2")},2266:function(e,t,r){"use strict";r("c358")},"227c":function(e,t,r){var i=r("887c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("ea1eaf36",i,!0,{sourceMap:!1,shadowMode:!1})},"22a9":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-loading-parent--relative .rt-loading{z-index:3000}",""]),e.exports=t},"22e6":function(e,t,r){"use strict";r("f66d")},"238b":function(e,t,r){"use strict";r("1f40")},"240f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".tangram-suggestion-main{z-index:9999}",""]),e.exports=t},2474:function(e,t,r){var i=r("6c52");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2d336852",i,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r,i,a,n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=(r=o,i=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(a," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([s]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var n=0;n"rt"===e?n:r[t]);s.call(this,...e)}catch(e){const{error:r}=console;r(`请注意!!【${i}事件】执行错误;\n 错误原因为:${e.message}\n 错误位置:控件名称【${a.props.label}】;nodetype:【${a.$nodetype}】;id:${a.id}\n 错误语法:【${o}】`)}}}}o(s,"$bindNodeType",i.b.cardTableButton)},2901:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t),e.setAttrs(this.props);const r=t.targetComponent;this.props.maxlength?(e.addProp("maxLength",this.props.maxlength),e.addAttr("maxLength",this.props.maxlength)):(e.addProp("maxLength",5e3),e.addAttr("maxLength",5e3)),r.storeCall&&Object.keys(r.storeCall).length>0||r.storeCallCenter&&Object.keys(r.storeCallCenter).length>0?(e.tag="plant-phone",e.addProp("iconname","rt-saas-phone-left-filled1"),e.addProp("field",e.field),e.addProp("fillcolor","#00B42A"),e.on.getInput=t=>{r.$set(r.editForm,e.props.field,t),r.changedProps.push(e.props.field)},e.on.iconClick=r.iconPick,e.props.value?e.addClass("setlineinput paddinginput"):e.addClass("paddinginput")):e.tag="rt-input";const i=r.attributemappingsMasked.filter(e=>e.fieldName==this.props.datafieldname);let a,n=!1;if(i[0]&&i[0].fieldName==this.props.datafieldname&&"lookup"==i[0].from&&(a=i[0].value,Array.isArray(i[0].originValue)?i[0].originValue.length>0&&(n=!0):i[0].originValue instanceof Object?Object.keys(i[0].originValue).length>0&&(n=!0):null!=i[0].originValue&&""!=i[0].originValue&&null!=i[0].originValue&&(n=!0)),this.props.isMask||(n=!1),this.props.isMask||n){const r={...this.props,hideMaskIcon:n,maskFieldIsMapping:a};this.buildMaskNode(e,t,r)}return e}}i=l,a="$bindNodeType",n=o.b.Phone,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"29f8":function(e,t,r){var i=r("72a2");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("555178ef",i,!0,{sourceMap:!1,shadowMode:!1})},"2a01":function(e,t,r){var i=r("61ea");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("26e4e620",i,!0,{sourceMap:!1,shadowMode:!1})},"2a0c":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"validateTrigger","change"),o(this,"fields",[]),o(this,"VueTag",n.a.DatetimeBetween)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;e.ref=r.datafieldname,e.addProp("dateType",r.dateType||"date"),r.datafield_begin&&e.addProp("datafield_begin",r.datafield_begin),r.datafield_end&&e.addProp("datafield_end",r.datafield_end),e.addProp("isMultipleField",!0),e.addProp("valueKey",r.datafieldname),e.addProp("formitemkey",r.datafieldname);const a={};i.editForm&&(this.fields=[e.props.datafield_begin,e.props.datafield_end],this.fields.forEach(e=>{a[e]=i.editForm[e]})),e.addProp("value",a);const n=r.datafieldname;if(e.props.datafield_begin&&e.props.datafield_end){const t="datetime"==e.props.dateType?i.getDateMinuteFormat():i.getDateFormat();e.addProp("format",t),e.addProp("valueFormat",t),e.addAttr("valueFormat",t),i.editForm[n]}else e.tag="div",e.vtext="时间区间组件配置错误,请联系管理员",e.addClass("date-range-deploy");e.on.input=(e,t,r)=>{this.emitDataChange(e,i,r);const a=e&&"object"==typeof e?e:{};i.updateMultipleFields([...this.fields,n],{...a,[n]:e})}}extendRules(e,t){const r=t.targetComponent;e.validator=(e,t,i)=>{for(const a of this.fields)if(!r.editForm[a])return void i(new Error);i()}}extendFieldPermissions(e,t,r){const i=r.targetComponent;i.fieldpermissions&&i.fieldpermissions.length>0&&i.fieldpermissions.forEach(r=>{r.logicalname!=t.props.datafield_begin&&r.logicalname!=t.props.datafield_end||(r.canread||t.addProp("placeholder","********"),0!=i.formStatus||r.cancreate||(t.addProp("readonly",!0),t.addProp("disabled",!0),e.props.prop===t.field&&e.addProp("rules",[])),1!=i.formStatus||r.canupdate||(t.addProp("readonly",!0),t.addProp("disabled",!0),e.props.prop===t.field&&e.addProp("rules",[])))})}}o(s,"$bindNodeType",i.b.DatetimeBetween)},"2a20":function(e,t,r){"use strict";r("ef99")},"2afe":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.tag="rc-input-number",e.addAttr("controls",!1);const{min:i,max:a,MaxValue:n,MinValue:o,precision:s,isMillimeter:l}=this.props;return e.addAttr("thousands",l),e.addAttr("localeFormatCode",r.numberLocaleCode),e.addProp("max",this.getMaxValue()),e.addProp("min",this.getMinValue()),rt.isNil(s)||e.addProp("precision",this.getAvailableValue(s)),e.addProp("needZeroFill",t.targetComponent.displayNumbersByPrecision),e.addProp("clearable",!0),e}getMaxValue(){const{max:e,MaxValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}getMinValue(){const{min:e,MinValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}}i=l,a="$bindNodeType",n=o.b.Decimal,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"2b09":function(e,t,r){"use strict";r("5de2")},"2b15":function(e,t,r){var i=r("7afb");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7676bdb1",i,!0,{sourceMap:!1,shadowMode:!1})},"2b2f":function(e,t,r){"use strict";r("1809")},"2ce1":function(e,t,r){var i=r("efbb");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("46162aa7",i,!0,{sourceMap:!1,shadowMode:!1})},"2cf2":function(e,t,r){var i=r("18e8");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("22a81659",i,!0,{sourceMap:!1,shadowMode:!1})},"2d03":function(e,t,r){"use strict";r("564f")},"2d27":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),e.addChild(i)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent,i=r.objectId,a=r.objectTypeName;let n;const{bindType:o,datafieldname:s,notekey:l}=this.props;"field"===o&&s&&(n=r.editForm[s]),e.addProp("objectId",i),e.addProp("objectTypeName",a),e.addProp("bindType",o),e.addProp("fieldName",s),e.addProp("fieldValue",n),e.addProp("notekey",l)}}i=d,a="$bindNodeType",n=o.b.autograph,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"2e72":function(e,t,r){"use strict";r("5403")},"2f0b":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view{word-break:normal}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card{box-shadow:unset;margin-bottom:unset;border-radius:0}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .rt-form{padding:0 24px 24px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .rt-form .rtxpc-form-item{margin-left:0!important}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-input{display:flex}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-input .rtxpc-form-item{flex:1}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-input .rt-button{margin:12px 0 0 16px;height:35px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-div{display:flex;align-items:center}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-div .el-badge{margin-right:4px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .excelExport-card-form-div .excelExport-card-form-span{color:#0b0c0e;font-size:15px;margin-top:24px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-card-form .el-form-item{margin-left:18px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .field-selection-section{margin-top:16px;overflow:hidden}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .field-selection-section .user-custom-field-selection{min-width:unset;height:400px;margin:0}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .field-selection-section .user-custom-field-selection .field-choice-list,.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .field-selection-section .user-custom-field-selection .user-tree-box-shadow{height:360px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-form-div-second{display:flex;align-items:center}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-form-div-second .el-badge{margin-right:4px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-form-div-second .excelExport-card-form-span{color:#0b0c0e;font-size:15px;margin:24px 0 12px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .el-form-item{margin-left:18px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div{display:flex}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first{border:1px solid #d6dbe1;padding:16px 16px 16px 12px;width:50%;position:relative;border-radius:4px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-p{margin-bottom:8px;color:#0b0c0e;font-size:14px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-span{color:#4c5966;font-size:12px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-triangle{width:0;height:0;border-bottom:24px solid #2563eb;border-left:24px solid transparent;position:absolute;bottom:-1px;right:-1px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-triangle .rt-icon{position:absolute;right:0;bottom:-24px;color:#fff}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first .triangleFalse{display:none}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first:not(:last-child){margin-right:24px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-view .excelExport-card .excelExport-form-div .excelExport-button-div .excelExport-button-first.checked{border-color:#50b4fb}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-after .excelExport-icon{height:80px;width:80px;margin:auto;margin-top:56px;padding:8px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-after .excelExport-after-span{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-after .excelExport-after-information{display:flex;justify-content:center;padding:12px}.excelExport-dialog[data-v-f88ba176] .el-dialog__body .rt-dialog-content-wrapper .excelExport-after .excelExport-exportfile{padding-right:4px;color:#2563eb;cursor:default}",""]),e.exports=t},"2f18":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-user-query-column .userquery[data-v-357be0b2]{margin:-16px}.plat-user-query-column .userquery .userquery-title[data-v-357be0b2]{padding:24px 16px}.plat-user-query-column .userquery .userquery-title .userquery-label[data-v-357be0b2]{color:#0b0c0e;font-size:16px;font-weight:550;margin-right:8px}.plat-user-query-column .userquery .userquery-title .userquery-tip[data-v-357be0b2]{color:#4c5966;font-size:14px}.plat-user-query-column .userquery .user-tree[data-v-357be0b2]{max-height:380px;overflow-y:auto}.plat-user-query-column .userquery .user-tree[data-v-357be0b2]::-webkit-scrollbar{width:0}.plat-user-query-column .userquery[data-v-357be0b2] .el-tree{padding-bottom:16px}.plat-user-query-column .userquery[data-v-357be0b2] .el-tree .el-tree-node__content>.el-tree-node__expand-icon{padding:3px}.plat-user-query-column .userquery[data-v-357be0b2] .el-tree .el-tree-node__content{height:40px;color:#0b0c0e;font-size:14px}.plat-user-query-column .userquery[data-v-357be0b2] .el-tree .el-tree-node__content:hover{background-color:#f0f2f4}.plat-user-query-column .userquery .userquery-footer[data-v-357be0b2]{border-top:1px solid #d6dbe1;padding:12px 16px;display:flex;justify-content:flex-end}.plat-user-query-column .userquery .userquery-footer .rt-button[data-v-357be0b2]{margin-left:12px}.plat-user-query-column .userquery .el-checkbox__input.is-checked .el-checkbox__inner[data-v-357be0b2]{background-color:#2563eb;border-color:#2563eb}",""]),e.exports=t},"2f5e":function(e,t,r){"use strict";r("f688")},"2f7d":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"iscontainer",!0)}prepare(e){super.prepare(e),this.computeSearchStr(e)}createVNode(e,t){const r=t.targetComponent,n=this.props,s=new a.e(o.a.GridTable);this.appendNode(e,s,t),super.buildVNode(s,t),s.nodeType=this.$nodetype;let l=0;this.children.forEach(e=>{[i.b.gridcell,i.b.customerComponent].includes(e.$nodetype)&&(l+=e.props.width)}),s.addProp("tableWidth",l),s.addProp("enableOperation",n.enableOperation),this.addChildByPermission(s,t);const d=this.children.find(e=>"toolbar"==e.$nodetype);d&&!this.isSingleTable(t)&&(this.parentInfo.readonly=r.subgridIsReadonly,d.extendParentInfo(this.parentInfo),d.createVNode(s,t)),this.extendGridTable(s,t)}addChildByPermission(e,t){const r=t.targetComponent;this.children.forEach(a=>{if(a.props.availableOnPhone!=i.a.MOBILE&&"toolbar"!=a.$nodetype){if(a.extendParentInfo(this.parentInfo),this.calcHidden(a,t))return;switch(a.parentInfo.readonly=r.subgridIsReadonly,a.$nodetype){case i.b.gridcell:r.currentViewType&&r.currentViewType.IsUserQuery?a.props.hasFieldPermissionRead&&a.createVNode(e,t):a.createVNode(e,t);break;case i.b.customerComponent:this.buildCustomComponentNode(a,e,t)}}})}buildCustomComponentNode(e,t,r){var i;const n=r.targetComponent,o=new a.e("custom-table-column"),s=null===(i=t.data.props)||void 0===i?void 0:i.tableWidth,l=((e,t)=>{const r=n.columnWidths;let i=t.width;i||(i=150);const a=e.id;return r&&a&&r[a]&&(i=r[a]),i})(e,e.props),d={prop:e.id,label:this.getLangLabel(r,e)||e.props.displayName||e.props.displayname,align:e.props.align,fixed:e.props.cellFixed};d["min-width"]=n.isPrint?l/s*100+"%":l+50,Object.entries(d).forEach(([e,t])=>{o.addAttr(e,t)});let c="custom_";e.props.datafieldname?c+=e.props.datafieldname:e.props.appkey?c+=e.props.appkey:c+=e.props.componentName,o.addProp("dataProp",c),o.addProp("customProps",e.props),o.addProp("customerData",n.customerData),o.addProp("objectTypeName",n.objectTypeName),this.appendNode(t,o,r),e.createVNode(o,r)}extendGridTable(e,t){const r=t.targetComponent,i=e.data,a=e.data.props;if(a.fetch=r.fetch,1==r.PaginationType?(a.pageLayout="total, sizes, prev, next",e.addClass("nocount")):2==r.PaginationType?(a.pageLayout="total, sizes, prev, pager, next, jumper",a.pageSizes=this.setPageSizes(r),r.showEchartColumn||e.addClass("estimatecount")):(a.class=[],a.pageSizes=this.setPageSizes(r),a.pageLayout="total, sizes, prev, pager, next, jumper"),r.showEchartColumn&&(a.pageLayout=a.pageLayout.slice(6),a.showSelected=!1),a.totalRecord=r.dataTotalCount,i.ref="table",r.orderby){const t=r.orderby.split(" ");e.addAttr("defaultSort",{prop:t[0],order:t[1]})}e.addKey(r.currentQueryId+"_"+r.userDbVersion+"_"+e.children.length),e.on["sort-change"]=r.handleSortChange,e.on["select-item"]=r.selectionChange,e.on["load-complete"]=r.loadComplete,e.on["row-dblclick"]=r.rowDblclick,a["optimize-fixed"]=!0,e.on.changesize=r.changeTableSize,e.on.changeindex=()=>{r.ifKeepSelection=!0},a.stripe=!1;const n=r.newTabObject&&r.newTabObject.isRelatedView;r.isDialogMode||n||r.isDashboard||(a.sticky=!0),a.listPage=!1,a.size="small",a.showBorder=!0,a.keepSelected=!0,a.rowKey="$id";const o=r.queryAttributes||{};if(a.sectionable=o&&o.checkall?o.checkall:r.isSingleSelect,r.isDashboard?(a.sectionable=!1,a["auto-height"]=!1,e.attrs.height=r.dashHeight):a.autoHeight=!0,a.showPagination=o.paging,a.small=!0,a.footerPadding="8",!r.isDialogMode&&r.disableFetch&&(a.emptyText=r.$_t("data.hidden","数据已隐藏,请输入筛选条件进行查询")),r.pageInfo?(a.pageSize=r.pageInfo.pageSize,a.defaultPageIndex=r.pageInfo.pageIndex):o.pagingCount&&(a.pageSize=o.pagingCount),r.isLookUp&&(i.attrs=i.attrs||{},i.attrs["highlight-current-row"]=!0,i.attrs.height=r.height,i.on["current-change"]=r.handleCurrentChange,i.on["cell-click"]=r.handleCellClick,i.on.select=r.handleSelect,i.on["clear-selection"]=r.handleClearSelection,i.on["select-all"]=r.handleSelectAll),r.enableUserQuery&&(i.on["header-dragend"]=r.headerDragend),this.findContainer().subgridTag)this.extendSubGridTable(e,a,t);else{const t=e.addChildByTag("plat-list-empty");t.slot="empty",t.props.searchString=r.searchString,t.props.isFirstHidden=!r.isDialogMode&&r.disableFetch}}setPageSizes(e){if(e.$store.state.systemparameter&&e.$store.state.systemparameter.customPageSizes)try{return JSON.parse(e.$store.state.systemparameter.customPageSizes)}catch(e){}return[5,10,20,30,40,50]}extendSubGridTable(e,t,r){const i=r.targetComponent;e.on["edit-update"]=i.editUpdate,t.pageSize=i.recordsPerPage,t.pagerCount=5,t.showPagination=i.showPagination,t.needValidate=!1,t.editorOpenMethod="click",t.sectionable=i.enableSelect,i.subgridRules=this.prepareRulesForSubgrid(r),t.sticky=!1,t.rules=this.prepareRulesForSubgrid(r),e.addClass("plat-subgird-list-table")}prepareRulesForSubgrid(e){const t=e.targetComponent,r={};return this.children.forEach(e=>{if(e.$nodetype!==i.b.gridcell||e.props.relationshipId)return{};const a=e.props;t.subgridCellFields||(t.subgridCellFields={}),t.subgridCellFields[a.datafieldname]=!0;let n=!1;n=a.required;const o=a.dataType&&["int","float","decimal","bigint","money"].includes(a.dataType.toLowerCase());r[a.datafieldname]={trigger:o?"blur":"change",validator:(e,r,i,s,l)=>{const{row:d}=l;if(a.requiredExpression){const e=Object.assign({},t.$data,t.$props);t.$options&&t.$options.computed&&Object.keys(t.$options.computed).forEach(r=>{const i=t[r];e[r]=i}),e.row=d||t.currentEditRow,n=t.getFunctionByExpression(a.requiredExpression).call(e)}"bit"===a.dataType&&"boolean"==typeof r?i():o?null!=r?i():n&&null==r?i(new Error(t.$_t("common.input","请输入")+" "+a.displayName)):i():n?Array.isArray(r)&&0===r.length?i(new Error(t.$_t("common.select","请选择")+" "+a.displayName)):r?i():i(new Error(t.$_t("common.input","请输入")+" "+a.displayName)):i()}}}),r}computeSearchStr(e){const t=e.thisVue;if(t.searchPlaceholder)return;const r=[];Array.isArray(this.children)&&this.children.forEach(e=>{e.props.isSearchable&&e.props.hasFieldPermissionRead&&r.push(e.props.displayName||"")});let i="";if(r.length>0){const e="1033"===t.languageId?"/ ":"/";i=r.join(e)}else i=t.$_t("Please_searchable","请联系管理员配置可搜索字段");t.searchPlaceholder=i}}s(l,"$bindNodeType",i.b.gridtable)},"2f88":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.AppHeaderImage,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"309f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".saas-cascader[data-v-5a8b7af8]{width:100%}.saas-cascader .el-input[data-v-5a8b7af8]{display:block}",""]),e.exports=t},"311f":function(e,t,r){"use strict";r("b64c")},"31ae":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("0711"),a=r("ef51"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends i.a{constructor(e){super(e),o(this,"VueTag",n.a.Picklist),o(this,"validateTrigger","change")}collectDefaultValues(e){const t=this.props.datafieldname;let r=this.props.defaultValue;if(this.hasFieldPermission(e,t)&&t&&!rt.isNull(r))if(this.props.multiple){const i=r.split(",").map(e=>parseInt(e));e.updateEditForm(t,i)}else e.updateEditForm(t,r)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.addProp("entity",r.objectTypeName),e.addProp("attribute",this.props.datafieldname),e.addProp("clearable",!0),e.addProp("filterable",this.props.filterable),e.addProp("multiple",this.props.multiple),e.addProp("showStyle",this.props.showStyle),rt.isNullOrWhiteSpace(this.props.displayValueExpression)||e.addProp("displayValueExpression",this.props.displayValueExpression);const i=this.props;e.addProp("objectTypeName",r.objectTypeName),e.addProp("entity",r.objectTypeName),e.addProp("attribute",i.datafieldname),e.addProp("filterable",i.filterable),e.addProp("showStyle",i.showStyle),e.addProp("alias",i.alias),e.addProp("onlyFilterDisplayValue",!0),e.addProp("wordBreak","break-word"),i.key=e.cid+Math.floor(1e3*Math.random());let a=[];if(e.props.displayValueExpression&&(a=r.getFunctionByExpression(this.props.displayValueExpression,["options"]).call(r,i.options),Array.isArray(a)||isNaN(Number(a))||(a=[a]),2===e.props.showStyle&&e.addProp("displayValue",a)),i.options&&i.options.length>0){const t=!0;t&&e.addProp("tag",!0),i.options.forEach(e=>{if(e.StateCode&&(e.disabled=!0),e.IconSrc="",t){let t=r.SCSS_VARIABLES.COLOR_I1,i=r.SCSS_VARIABLES.NEUTRAL_COLOR_PRIMARY,a=r.SCSS_VARIABLES.COLOR_INFO;e.Color&&("COLOR_I1"!==e.Color&&(i=r.SCSS_VARIABLES.COLOR_TEXT_WHITE,a=void 0),r.SCSS_VARIABLES[e.Color]?t=r.SCSS_VARIABLES[e.Color]:e.Color&&e.Color.startsWith("#")&&(t=e.Color)),e.tagFontColor=i,e.tagBgColor=t,e.tagClosableIconColor=a}})}const n=this.filterOptions(i.options,a,i.alias);e.addProp("options",n);const o=e.props.showStyle?Number(e.props.showStyle):0;let s;return function(e){e[e.list=0]="list",e[e.tile=1]="tile",e[e.border=2]="border",e[e.button=3]="button"}(s||(s={})),["tile","border","button"].includes(s[o-1])&&i.multiple?e.tag="rtPicklist":"1"==e.props.showStyle||i.multiple?e.tag="rc-picklist":e.tag="rt-radio-group-new",e}filterOptions(e,t,r){if(!t||Array.isArray(t)&&!t.length)return e;r||(r={});const i=r.value||"Value";let a=[];return!e||Array.isArray(e)&&0===e.length?[]:(null!=t&&t.length>0&&(a=e.filter(e=>t.indexOf(e[i])>=0)),a)}}o(s,"$bindNodeType",a.b.Picklist)},"31da":function(e,t,r){var i=r("107e").default,a=r("411d");e.exports=function(e){var t=a(e,"string");return"symbol"==i(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},"31f8":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.Approve[data-v-271fed23]{margin-top:-30px}.Approve[data-v-271fed23] #approvemain .el-autocomplete .el-input{display:none}.Approve[data-v-271fed23] #approvemain .rt-crm-Grid{position:relative;flex:1;min-height:200px}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveHeader{margin:10px}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveTabContent{padding:0 13px}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveSection{margin-top:28px;color:#2a72c5}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveSectionTitle{margin-bottom:10px;font-weight:700}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveContent{flex:1;max-height:460px;overflow:auto;background-color:#fff;border:1px solid #eee}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveContent select,.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveContent textarea{width:100%}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveContent select{height:26px;padding-left:6px;color:#222;border:1px solid #ccc;border-radius:5px}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveMemo{height:96px;padding:3px;font-size:13px;color:#222;border:1px solid #d3d3d3}.Approve[data-v-271fed23] #approvemain .rt-crm-Avatar{width:38px;height:38px;margin-bottom:10px;font-size:26px;font-weight:100;line-height:38px;color:#888;text-align:center;border:1px solid #ccc;border-radius:50%}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser,.Approve[data-v-271fed23] #approvemain .rt-crm-AddUser{position:relative;display:inline-block;margin-right:20px;margin-bottom:10px;text-align:center;cursor:pointer}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-Avatar{width:38px;height:38px;margin:0 auto;font-size:18px;line-height:38px;color:#fff;background-color:#f7a072;border-radius:50%}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-Avatar:hover+.rt-crm-DeleteMask{display:block}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-DeleteMask{position:absolute;top:0;right:0;left:0;display:none;width:38px;height:38px;margin:0 auto;text-align:center;cursor:pointer;background:rgba(0,0,0,.5);border-radius:50%}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-DeleteMask:hover{display:block;color:#fff}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-DeleteMask i{display:inline-block;width:16px;height:16px;margin-top:10px;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABN0lEQVQ4T43TuUpDQRSA4f93KewUF9BKEIKtYJFOS/EJFAIupWDQznRamU4hYOlSiL6BrZYptBYClgqKW2WhZuSCV65DLslUwzlnvlmYIy1GCOESmIlSV+psXG4cCCH0AB/AJPD8mx8EboE+9Su75g8IIdSANaCr1akysSZwoK4nsSzw3cHi1Gmq3THQ32bnf2n1LQZ2ga0OkapaiYEzYKFD4FxdjIE9YAOYAF6AV2AceM/Mkwe+A/bVzRhIjp9co6A2QggBGEjums6BIaABVNRqDKwAh0BRrecABaAOrKpHMTAHXADz6kUOUMzWxMAUcAOU1NMcYB44BabV6xgYBe6BslrLAUpA8mPH1IcYSHrgE9hRt3OAcpIHetOe+NdMIYRHYLjNX3hSR9KaGDgGltoAJ+pyWvMDDrCZER8NpS8AAAAASUVORK5CYII=");background-repeat:no-repeat;background-size:cover}.Approve[data-v-271fed23] #approvemain .rt-crm-AddedUser .rt-crm-UserName{margin-top:8px;font-size:12px;color:#222}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveTabList{display:flex;background-color:#f5f7fa}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveTab.selected{color:#555;background-color:#fff;border-bottom-color:#fff}.Approve[data-v-271fed23] #approvemain .rt-crm-ApproveTab{position:relative;display:inline-block;flex:1;height:30px;font-size:12px;line-height:30px;color:#888;text-align:center;cursor:pointer;border-bottom:1px solid #e3e3e3}.Approve[data-v-271fed23] #approvemain .rt-crm-submit{padding-bottom:30px;margin-top:30px;text-align:center}.Approve[data-v-271fed23] #approvemain .marginTop54{margin-top:54px}.Approve[data-v-271fed23] #approvemain .rt-crm-CommonReviewsBtn{display:flex;align-items:center;margin-top:8px;color:#555}.Approve[data-v-271fed23] #approvemain .rt-crm-CommonReviewsBtn:hover{cursor:pointer}.Approve[data-v-271fed23] #approvemain .rt-crm-CommonReviewsIconLookup{background-image:url("data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjY5QUFDRDU0RkZFMzExRTZCQUVEQ0NBODk1MkQxNEQ1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjY5QUFDRDU1RkZFMzExRTZCQUVEQ0NBODk1MkQxNEQ1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NjlBQUNENTJGRkUzMTFFNkJBRURDQ0E4OTUyRDE0RDUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NjlBQUNENTNGRkUzMTFFNkJBRURDQ0E4OTUyRDE0RDUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7pyG2XAAABXElEQVR42qSTPUsDQRCGXXOSEBHtAhI7iaAogogpxM5OrGwUDCgIp3/g7LT0EKxsLWKhWNj4gYVgxCKFpEiVNBEEsRAtrJT4wfkszMG65iCShYf37mbnnb3dWRUEQVsrwzFffN9PIKuQg0GIwR0cwY7nea+2gQpXQHIaOYcRqMAN1GECsvAIM5iU/xiQHOf5FjLgwj4TA2Nl08ghfMIosacw1i7qSmWXYN5M1oP3S2QWUrBhxkKDRajqylGbhUkROYF5VuTYBsNQsCs3GFfQA2nbQO/2exOnVheN2wb3MN6EwZhs5INtcAxT/Fs2KpNYH7IAF/zqm22wDS/aiIlDDZJ7kVPohM2oRppEziAJebiGL2miJeiWnAPdqazi+5eBmPQjW3LmHfJZTyjAOixLz+zBij41xzrrGjKHURc6ICY1vj9LgZLReB+wpv57GzFRyK4uhHFKtXqdfwQYAIEDegEF+RJcAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-size:cover}.Approve[data-v-271fed23] #approvemain .rt-crm-Icon{width:12px;height:12px;vertical-align:text-bottom}.Approve[data-v-271fed23] #approvemain .rt-crm-Icon:hover{cursor:pointer}.Approve[data-v-271fed23] #approvemain div.plat-content-main{padding:0}.Approve .commonleft[data-v-271fed23]{float:left}.Approve .commonright[data-v-271fed23]{float:right}.Approve .rt-portal-DialogFooter[data-v-271fed23]{margin-top:10px;text-align:right}',""]),e.exports=t},3227:function(e,t,r){"use strict";r("29f8")},3265:function(e,t,r){"use strict";r("c1ec")},3325:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag",n.a.Entity)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;if(e.addProp("requestApi",r.requestApi),e.props.requestApi){const t=i.getFunctionByExpression(r.requestApi).call(i);t&&t.length>0?e.addProp("requestUrl",t):delete e.props.requestUrl}e.addProp("required",r.required),e.addProp("disabled",r.disabled),e.addProp("returnManyToMany",r.returnManyToMany)}}o(s,"$bindNodeType",i.b.RtSaasEntities)},"336e":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"default",(function(){return ToolBarControl}));var _sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("ef51"),_runtime_VNodeItem__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a829"),_runtime_RuntimeControl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("e3bf"),_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("6f75"),_runtime_btnCommon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6e3a"),_apaasCommon_rulesMixin__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("f6dc"),apaas_utils_src_module_apaasCommon_scriptUtils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("c40c");function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}class ToolBarControl extends _runtime_RuntimeControl__WEBPACK_IMPORTED_MODULE_2__.a{constructor(e){super(e),_defineProperty(this,"location",""),_defineProperty(this,"VueTag",_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.ButtonList)}prepare(e){super.prepare(e),this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.cardTable)?this.location="cardTable":this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.subgrid)?this.location="subgrid":this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.section)?this.location="section":this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.gridtable)||this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.cardTable)?this.location="gridtable":this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.formheader)?this.location="formheader":this.extendsChain.includes(_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.gridheader)&&(this.location="gridheader")}createVNode(e,t,r){const i=t.targetComponent,a=this.props;if(i.isLookUp)return;if(a.toolbarType&&"normal"!=a.toolbarType)return;if(i.isSubgrid&&"gridheader"===this.location)return;this.children.forEach(e=>{e.props.isPrimary?e.props.type="primary":e.props.type="default"});let n=!1,o=null,s=null;if(this.props.isDialogMode)s=new _runtime_VNodeItem__WEBPACK_IMPORTED_MODULE_1__.e("plat-dialog-footer"),s.addProp("maxBtns",a.maxbuttons),s.addProp("isDialogMode",!0),this.appendNode(e,s,t),this.children.sort((e,t)=>"primary"===e.props.type&&"primary"!==t.props.type?-1:0),this.addChildByPermission(s,t);else{let s=null;i.isCardTable?(s=new _runtime_VNodeItem__WEBPACK_IMPORTED_MODULE_1__.e("div"),s.addClass("plat-card-inline-btn")):s=new _runtime_VNodeItem__WEBPACK_IMPORTED_MODULE_1__.e("template"),this.appendNode(e,s,t);const l=this.parent;if(e.nodeType==_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.gridtable){if(l&&l.props.enableOperation){const e=s.addChildByTag(_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.GridTableColumn);e.nodeType=_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.gridcell,e.addProp("label",i.$_t("xpc.uploadfile.operate","操作")),e.addProp("langkey","xpc.uploadfile.operate"),e.addProp("fixed","right"),e.addProp("celltype","option"),e.addProp("disableSorting","true"),e.addProp("hidetext",a.hidetext),e.addProp("maxbuttons",a.maxbuttons),e.addProp("fromEntity",i.fromEntity),e.addProp("parentkey",i.objectTypeName||i.targetEntityType),e.addProp("subgridkey",i.subgridkey),o=e.addChildByTag("div"),n=!0}}else a.hidetext?(o=s.addChildByTag(_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.ButtonGroup),o.addProp("hidetext",a.hidetext),o.addProp("hideBtnsCount",0)):o=s.addChildByTag(_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.ButtonList),o.addProp("isSave",!1),o.addProp("isBack",!1),o.nodeType=_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.ButtonGroup,"lookup"==i.pageSource&&o.addClass("hideButtonGroup");o&&(s.nodeType=this.$nodetype,s.data.slot=r,["section","subgrid"].includes(this.location)&&o.addProp("size","small"),o.addClass("plat-button-group"),i.isCardTable&&(o.tag="rc-button-group"),o.addProp("maxBtns",a.maxbuttons),[_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.gridtable,"platCardTable"].includes(e.nodeType)&&o.addProp("InlineButton",!0),this.buildVNode(s,t),this.addChildByPermission(o,t))}if(!n&&this.props.ShowDesignBtn&&t.PageStatus!=_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.d.print){const r=new _runtime_VNodeItem__WEBPACK_IMPORTED_MODULE_1__.e(_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.Button);if(r.nodeType=_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.Button,r.addProp("type","default"),r.addProp("iconName","plat-icon-view-design"),r.addParams("location",e.nodeType),r.addParams("OperationType","design"),"gridheader"==e.nodeType||e.tag===_runtime_VueTags__WEBPACK_IMPORTED_MODULE_3__.a.ContentContainer||"gridheader"===this.location){let e;if(i.queries&&Array.isArray(i.queries)&&(e=i.queries.find(e=>e.queryId===i.currentQueryId||e.LogicalName===i.currentQueryId)),e&&e.IsUserQuery)return;r.vtext=i.$_t("platform.vformcoreQueryDesign","视图设计"),i.designCurrentView&&(r.on.click=i.designCurrentView)}else"subgrid"==e.nodeType?(r.vtext=i.$_t("platform.vformcoreQueryDesign","视图设计"),r.addProp("size","small"),r.on.click=i.relationDesign):"formheader"!=e.nodeType&&"section"!=e.nodeType&&"form"!=e.nodeType||(r.vtext=i.$_t("platform.vformcoreFormDesign","表单设计"),r.on.click=i.designFormCommon,"section"===this.location&&r.addProp("size","small"));if(e.props&&e.props.viewId){const t=e.props.viewId;r.addParams("viewId",t),r.addProp("tagData",{viewId:t})}if(this.props.isDialogMode&&s)this.appendNode(s,r,t);else if(!this.props.isDialogMode&&o)if(a.hidetext&&o.props.hideBtnsCount{var _p$parent;if(p.$nodetype==_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.Button&&p.props.availableOnPhone!=_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.a.MOBILE){if(p.props.enablePermissions&&p.props.roles){const e=thisVue.checkRolePermissions(p.props.roles);if(e)return}if(("true"==thisVue.$store.state.systemparameter.EnablePrivacyDataMask&&thisVue.$store.state.user.canviewmask||"showMask"!=p.props.operationtype)&&(vnode.props.InlineButton||"cardTable"===this.location||!this.calcHidden(p,visitor))){if(this.parent&&"formheader"==this.parent.$nodetype&&_runtime_btnCommon__WEBPACK_IMPORTED_MODULE_4__.b.includes(p.props.operationtype)){const pcikBtn=_runtime_btnCommon__WEBPACK_IMPORTED_MODULE_4__.a[p.props.operationtype].formheader.props.hidden_formstatus;if(eval(pcikBtn))return}if(vnode.props.InlineButton||"cardTable"===this.location||(firstPrimary?p.props.type="default":p.props.isPrimary&&(firstPrimary=!0)),!this.parent||"formheader"!=this.parent.$nodetype||"business"!=p.props.operationtype||"signflowcomponents"!==p.props.appkey||!thisVue.actualSourceFlowId){if("subgrid"===this.location){p.props.location="subgrid";const e=0==thisVue.formStatus;p.props.hidden_formstatus=e,vnode.params.OperationType=p.props.operationtype;const t=this.parent.props;if(t.relationshipType==_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.f.One2Many&&"addsubgridrow"==vnode.params.OperationType?p.props.hidden_formstatus=!1:t.relationshipType==_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.f.Many2Many&&"addsubgridrow"==vnode.params.OperationType?p.props.hidden_formstatus=!0:e&&"custom"==vnode.params.OperationType&&p.props.visibleInCreate?p.props.hidden_formstatus=!1:"disable|enable"==vnode.params.OperationType&&(p.props.hidden_formstatus=!0),p.props.hidden_formstatus)return}else"gridtable"==this.location?p.props.location="gridtable":"section"==this.location?p.props.location="section":visitor.isListPage?p.props.location="gridheader":p.props.location="formheader";"addsubgridrow"==p.OperationType&&p.parent&&null!==(_p$parent=p.parent)&&void 0!==_p$parent&&_p$parent.props.inRequiredGrid&&thisVue.allSubgridKey.map(e=>{if(e.subgridId==p.parent.parent.id)return e.required=!0}),p.extendParentInfo(this.parentInfo),"primary"!==p.props.type||this.props.isDialogMode||this.props.hidetext?slot?p.createVNode(vnode,visitor,slot):p.createVNode(vnode,visitor):p.createVNode(vnode,visitor,"primary")}}}})}calcHidden(e,t){const r=t.targetComponent;let i=!1;if(e.props.availableOnPhone==_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.a.MOBILE)return!0;const a=t.rules?t.rules[e.id]||t.rules[e.props.datafieldname]:null;if(a&&a.visible!==_apaasCommon_rulesMixin__WEBPACK_IMPORTED_MODULE_5__.a.Default)return a.visible===_apaasCommon_rulesMixin__WEBPACK_IMPORTED_MODULE_5__.a.On?i=!1:a.visible===_apaasCommon_rulesMixin__WEBPACK_IMPORTED_MODULE_5__.a.Off&&(i=!0),i;if(r.isFlow)return i;if(e.props.hiddenExpression)i=apaas_utils_src_module_apaasCommon_scriptUtils__WEBPACK_IMPORTED_MODULE_6__.b.execFunction(this.getFunctionByExpression(e.props.hiddenExpression).bind(r),r,e,apaas_utils_src_module_apaasCommon_scriptUtils__WEBPACK_IMPORTED_MODULE_6__.a.HiddenExp),i=this.getBooleanResult(i);else if(e.props.bizHiddenExpression){const t=this.getFunctionByExpression(e.props.bizHiddenExpression).bind(r),a={formStatus:r.formStatus,editForm:r.editForm,showApprovalBtn:r.showApprovalBtn,actualSourceFlowId:r.actualSourceFlowId};i=t.call(a),i=this.getBooleanResult(i)}return i}}_defineProperty(ToolBarControl,"$bindNodeType",_sharedInterfaces__WEBPACK_IMPORTED_MODULE_0__.b.toolbar)},3411:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".version-attachment .el-upload{display:flex;width:100%}.version-attachment .el-upload .el-upload-dragger{flex:1;width:100%;background:#fff}.version-attachment /deep/ .el-icon-document{height:0}",""]),e.exports=t},"34bc":function(e,t,r){var i=r("f964");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e2ca2732",i,!0,{sourceMap:!1,shadowMode:!1})},"34c2":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("a829"),n=r("e3bf");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends n.a{constructor(e){super(e),o(this,"VueTag","div")}createVNode(e,t){const r=new a.e(this.VueTag);r.nodeType=this.$nodetype,this.buildVNode(r,t),e.addChild(r),this.addChildByPermission(r,t)}}o(s,"$bindNodeType",i.b.rows)},3544:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".team-line[data-v-b154a502]{width:100%;height:16px}",""]),e.exports=t},"354f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".el-popover.header-save-table-icon .notice{margin:16px 0}.el-popover.header-save-table-icon .btn-group{display:flex;flex-direction:row-reverse}.el-popover.header-save-table-icon .btn-group .rt-button{margin-left:8px}.el-popover.plat-header-popover-body{padding:8px 0;max-height:400px;overflow:auto;width:unset}",""]),e.exports=t},"359a":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-lookup-dialog .rt-lookup-dialog-search[data-v-626d7360] .rt-list-header-icon{color:#fff;background:#2563eb}.rt-lookup-dialog .plat-section[data-v-626d7360]{padding:0}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__header{position:fixed;z-index:5000;background:#fff;width:60%;max-width:80%;min-width:675px}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__content{top:40px;padding-bottom:40px}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__content .rt-content-main{min-height:200px}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__content .rt-list-header{border-bottom:none}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__content .rtxpc-tab-pane{padding-top:0}.rt-lookup-dialog[data-v-626d7360] .rt-tabs__content .apaas-vlist-wrapper{background:#fff}.rt-lookup-dialog[data-v-626d7360] .rtxpc-dialog{min-height:80%}.rt-lookup-dialog[data-v-626d7360] .rtxpc-dialog .rtxpc-dialog__body{display:flex;flex-direction:column;overflow:hidden}.rt-lookup-dialog[data-v-626d7360] .rtxpc-dialog .rt-tabs__content{overflow-y:auto}.rt-lookup-dialog[data-v-626d7360] .rtxpc-dialog .rt-dialog-content-wrapper{position:relative;flex:1}.rt-lookup-dialog[data-v-626d7360] .rtxpc-dialog .rtxpc-table{margin-top:0}.rt-lookup-dialog .drawer-btn[data-v-626d7360]{position:absolute;top:50%;right:0;z-index:999;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.rt-lookup-dialog .rtxpc-drawer__wrapper[data-v-626d7360]{position:absolute;top:0;right:0;bottom:0;z-index:5001!important}.rt-lookup-dialog .rtxpc-drawer__wrapper[data-v-626d7360] .rtxpc-drawer{overflow:unset}.rt-lookup-dialog .rtxpc-drawer__wrapper .drawer-content[data-v-626d7360]{padding-left:16px}.rt-lookup-dialog .rtxpc-drawer__wrapper .drawer-close-left[data-v-626d7360]{position:absolute;top:50%;left:-31px;width:32px;min-width:unset;height:32px;color:#fff;background:#2563eb;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.rt-lookup-dialog .rtxpc-drawer__wrapper .plat-choiced[data-v-626d7360]{color:#0b0c0e;padding:16px 0 12px}.rt-lookup-dialog .rtxpc-drawer__wrapper .plat-choiced .plat-choiced-item[data-v-626d7360]{color:#2563eb}.rt-lookup-dialog .rtxpc-drawer__wrapper .choicedTag .rt-tag-outline[data-v-626d7360]{margin-bottom:6px}.rt-lookup-dialog[data-v-626d7360] .el-form-item .el-form-item__label{width:120px}.rt-lookup-dialog[data-v-626d7360] .el-form-item:before{display:none}.rt-lookup-dialog[data-v-626d7360] .el-form-item .rt-label-wrapper{height:19px}.rt-lookup-dialog[data-v-626d7360] .el-dialog__body .el-icon-circle-close{display:none}.rt-lookup-dialog[data-v-626d7360] .el-dialog__footer{padding-top:0}.rt-lookup-dialog[data-v-626d7360] .el-pagination .el-input__inner{height:28px}.rt-lookup-dialog .plookup-elitem[data-v-626d7360]{margin-bottom:10px}.rt-lookup-dialog[data-v-626d7360] .el-dialog{min-width:675px;overflow-x:hidden}.rt-lookup-dialog .plat-pager[data-v-626d7360]{display:flex;justify-content:center;margin-top:8px}.rt-lookup-dialog[data-v-626d7360] .el-dialog__footer{display:flex;justify-content:flex-end;padding:12px;border-top:1px solid #d6dbe1}.rt-lookup-dialog[data-v-626d7360] .el-dialog__footer .confirm{margin-left:10px}",""]),e.exports=t},"359e":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-drawer-field-list-popover{padding:0}",""]),e.exports=t},"35a1":function(e,t,r){var i=r("9da1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("52b8f1ea",i,!0,{sourceMap:!1,shadowMode:!1})},"35d7":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNode(e,t){super.buildVNode(e,t);const r=this.props;e.addProp("logoType",r.logoType),e.addProp("logoSrc",r.logoSrc),e.addProp("logoSrc",1!=r.logoType&&r.logoSrc?r.logoSrc:"")}}i=d,a="$bindNodeType",n=o.b.Logo,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"35f8":function(e,t,r){"use strict";r("d127")},3612:function(e,t,r){"use strict";r("24fc")},"361f":function(e,t,r){"use strict";r("c45e")},3652:function(e,t,r){var i=r("be92");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("517bdc9a",i,!0,{sourceMap:!1,shadowMode:!1})},"36b2":function(e,t,r){"use strict";r("6217")},3718:function(e,t,r){"use strict";r("1f9a")},"374d":function(e,t,r){var i=r("6a7d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("961f7848",i,!0,{sourceMap:!1,shadowMode:!1})},3868:function(e,t,r){"use strict";r("adee")},"396f":function(e,t,r){var i=r("c8c7");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0953397c",i,!0,{sourceMap:!1,shadowMode:!1})},"39dd":function(e,t,r){"use strict";var i=r("9ab4"),a=r("1b40");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let o=class extends a.f{constructor(...e){super(...e),n(this,"sourceId",void 0),n(this,"objectId",void 0),n(this,"editForm",void 0),n(this,"objectTypeName",void 0),n(this,"loadDataCompleted",void 0),n(this,"appkey",void 0),n(this,"componentName",void 0),n(this,"customComponentRef",void 0),n(this,"customerData",void 0),n(this,"findMethodsInVForm",void 0),n(this,"enableSlot",void 0),n(this,"loaded",!1),n(this,"failed",!1),n(this,"methodContext",{})}get filteredScopedSlots(){return this.enableSlot?this.$scopedSlots:{}}appkeyHandler(e,t){e!=t&&(this.loaded=!1,this.getWebresource())}async created(){this.getWebresource()}async getWebresource(){this.componentName?this.$PlatUtils.getCustomResource(this.appkey,"$customerComponentResource$").then(e=>{if(e.default&&e.default.length>0){let t=e.default.find(e=>e.name==this.componentName);t&&this.preventDuplicateRegistration(this.componentName,t)}else this.preventDuplicateRegistration(this.componentName,e);e&&(this.loaded=!0),this.$nextTick(()=>{this.$emit("customComponentLoaded",this.customComponentRef,this.$refs[this.customComponentRef])})}).catch(e=>{this.failed=!0,this.$emit("fail",e.message||e)}):this.failed=!0}mounted(){this.initMethodContext()}preventDuplicateRegistration(e,t){"function"!=typeof a.f.component(e)&&a.f.component(e,t)}reLoad(){this.$emit("reLoad")}subGridReload(e){this.$emit("subGridReload",e)}updateEditForm(e,t){this.$emit("updateEditForm",e,t)}initMethodContext(){this.findMethodsInVForm&&(this.methodContext={getSubgridDataInCreateForm:this.findMethodsInVForm("getSubgridDataInCreateForm"),appendSubgridRowData:this.findMethodsInVForm("appendSubgridRowData"),showDialog:this.findMethodsInVForm("showDialog"),saveWithoutToast:this.findMethodsInVForm("saveWithoutToast"),reload:this.findMethodsInVForm("reload")})}};Object(i.__decorate)([Object(a.d)()],o.prototype,"sourceId",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"objectId",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"editForm",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"objectTypeName",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"loadDataCompleted",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"appkey",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"componentName",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"customComponentRef",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"customerData",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"findMethodsInVForm",void 0),Object(i.__decorate)([Object(a.d)()],o.prototype,"enableSlot",void 0),Object(i.__decorate)([Object(a.g)("appkey")],o.prototype,"appkeyHandler",null),o=Object(i.__decorate)([Object(a.a)({name:"customer-component"})],o);var s=o,l=(r("83bc"),r("0c7c")),d=Object(l.a)(s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"custom-component-wrapper"},[e.loaded?r(e.componentName,e._g(e._b({ref:e.customComponentRef,tag:"component",class:[e.appkey,"custom-component-inner"],attrs:{"customer-data":e.customerData,"object-id":e.objectId,"object-type-name":e.objectTypeName,"load-data-completed":e.loadDataCompleted,"method-context":e.methodContext,"edit-form":e.editForm},scopedSlots:e._u([e._l(e.filteredScopedSlots,(function(t,r){return{key:r,fn:function(t){return[e._t(r,null,null,t)]}}}))],null,!0)},"component",e.$attrs,!1),e.$listeners)):e.loaded||e.failed?e._e():r("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"loading-container"}),e.failed?r("div",{staticClass:"failed"},[e._v(e._s(e.appkey)+"资源api加载错误")]):e._e()],1)}),[],!1,null,"5954beca",null);t.a=d.exports},"3a01":function(e,t,r){"use strict";function i(){let e=window;return e.MAX_TABINDEX=e.MAX_TABINDEX||1e8,++e.MAX_TABINDEX}function a(e){let t={id:function(){let e=(new RtDate).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)})}(),classid:e.classid,$nodetype:e.$nodetype,displayName:e.displayName,description:e.description,controlType:e.controlType,thumbnail:e.thumbnail,eventActions:e.eventActions,children:[],attributes:{},events:[],order:0,props:{classid:e.classid},hooks:[],rules:[],descriptor:e,tabIndex:i()},r=e.props;for(let i in r){let e=r[i];t.props[i]=e.default}return t}r.d(t,"a",(function(){return o}));var n={$nodetype:"gridcell",$prototype:"",displayName:"table单元格",controlType:"BasicControl",description:"",props:{displayName:{displayName:"显示名称",dataType:"string",default:"",group:"基础信息"},langkey:{displayName:"多语言key",dataType:"string",default:"",group:"基础信息",propertyIndex:0,description:"多语言key"},width:{displayName:"宽度(px)",dataType:"int",default:100,step:10,group:"基础信息"},align:{displayName:"对齐方式",dataType:"picklist",default:"left",values:[{label:"居左对齐",value:"left"},{label:"居右对齐",value:"right"},{label:"居中对齐",value:"center"}],group:"基础信息"},disableSorting:{displayName:"禁止排序",dataType:"boolean",default:!1,group:"基础信息"},cellFixed:{displayName:"固定方式",dataType:"picklist",default:"false",values:[{label:"不固定",value:"false"},{label:"左侧固定",value:"left"},{label:"右侧固定",value:"right"}],group:"基础信息",description:"列表是否固定 三种方式"},celltype:{displayName:"单元格类型",dataType:"picklist",default:"attribute",values:[{label:"属性",value:"attribute"}],group:"基础信息"},relationshipName:{displayName:"绑定关系名",dataType:"string",default:"",group:"基础信息",readonly:!0,description:"绑定到此字段的多对一关系的名称."},relationshipId:{displayName:"绑定关系id",dataType:"string",default:"",readonly:!0,group:"基础信息",description:"绑定到此字段的多对一关系的id."},relatedAttribute:{displayName:"关系字段",dataType:"string",default:"",group:"基础信息",readonly:!0,description:""},name:{displayName:"绑定字段",editor:"attribute-selector",dataType:"string",default:"",group:"基础信息",description:"绑定到此实体的字段."},isHighlight:{displayName:"是否高亮",dataType:"boolean",default:!1,group:"基础信息",description:"lookup字段支持高亮显示"},referencingEntityName:{displayName:"绑定子实体",editor:"sub-entity-selector",default:"",group:"基础信息",description:"绑定该实体的关联子实体."},isMultiple:{displayName:"是否多选",dataType:"boolean",default:!1,group:"基础信息"},referencingEntityAttributes:{displayName:"子实体字段",editor:"sub-attribute-selector",default:"",multiple:!1,group:"基础信息",description:"绑定该实体的关联子实体的字段."},showTitle:{displayName:"显示标题",dataType:"boolean",default:!0,group:"基础信息"},colDelimiter:{displayName:"字段分隔符",dataType:"string",default:",",group:"基础信息"},rowDelimiter:{displayName:"行分隔符",dataType:"string",default:";",group:"基础信息"},needjump:{displayName:"是否跳转",dataType:"boolean",default:!1,group:"基础信息"},showcolor:{displayName:"显示颜色",group:"基础信息",default:1,dataType:"boolean",description:"选项集是否需要显示颜色"},formtype:{displayName:"表单类型",dataType:"picklist",default:"form",group:"基础信息",values:[{label:"自定义",value:"url"},{label:"表单",value:"form"}]},url:{displayName:"跳转地址",dataType:"string",default:"",group:"基础信息"},formid:{displayName:"绑定表单",editor:"form-selector",default:"",group:"基础信息"}},pageTargets:[1]};function o(e,t){let r=a(n);return r.props=r.props||{},"dbCell"!==t?(r.props.name=e.LogicalName,r.props.attributeType=e.AttributeType,r.props.displayName=e.DisplayName,e.props&&e.props.relationshipId&&(r.props.displayName=e.props.displayName,r.props.relationshipId=e.props.relationshipId,r.props.relationshipName=e.props.relationshipName,r.props.relatedAttribute=e.props.relatedAttribute,r.props.leaf=!0,r.props.disableSorting=!!e.SchemaName),r.props.width=150,r.props.align="left",r.props.celltype="attribute",r.props.needjump=!1):(r.props.name=e.props?e.props.prop:"",r.props.attributeType=e.props?e.props.attributeType:"",r.props.displayName=e.props?e.props.label:"",r.props.width=e.props?e.props.width:"150",r.props.align=e.props?e.props.align:"left",r.props.visible=!e.props||e.props.visible,r.props.disableSorting=!!e.props.disableSorting,r.props.celltype="attribute",r.props.needjump=!1),r}},"3a71":function(e,t,r){var i=r("162b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4384d4ac",i,!0,{sourceMap:!1,shadowMode:!1})},"3ae9":function(e,t,r){"use strict";r("d690")},"3b16":function(e,t,r){var i=r("1ab2").FilterCSS,a=r("bda0"),n=r("50e1"),o=n.parseTag,s=n.parseAttr,l=r("eb71");function d(e){return null==e}function c(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=a.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map((function(e){return e.toLowerCase()})):t[r.toLowerCase()]=e[r];return t}(e.whiteList||e.allowList):e.whiteList=a.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":a.attributeWrapSign,e.onTag=e.onTag||a.onTag,e.onTagAttr=e.onTagAttr||a.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||a.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||a.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||a.safeAttrValue,e.escapeHtml=e.escapeHtml||a.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new i(e.css))}c.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,i=t.onTag,n=t.onIgnoreTag,c=t.onTagAttr,u=t.onIgnoreTagAttr,p=t.safeAttrValue,h=t.escapeHtml,f=this.attributeWrapSign,m=this.cssFilter;t.stripBlankChar&&(e=a.stripBlankChar(e)),t.allowCommentTag||(e=a.stripCommentTag(e));var g=!1;t.stripIgnoreTagBody&&(g=a.StripTagBody(t.stripIgnoreTagBody,n),n=g.onIgnoreTag);var b=o(e,(function(e,t,a,o,g){var b={sourcePosition:e,position:t,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(r,a)},y=i(a,o,b);if(!d(y))return y;if(b.isWhite){if(b.isClosing)return"";var v=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return r&&(e=l.trim(e.slice(0,-1))),{html:e,closing:r}}(o),x=r[a],w=s(v.html,(function(e,t){var r=-1!==l.indexOf(x,e),i=c(a,e,t,r);return d(i)?r?(t=p(a,e,t,m))?e+"="+f+t+f:e:d(i=u(a,e,t,r))?void 0:i:i}));return o="<"+a,w&&(o+=" "+w),v.closing&&(o+=" /"),o+">"}return d(y=n(a,o,b))?h(o):y}),h);return g&&(b=g.remove(b)),b},e.exports=c},"3b6f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-popper-translate{box-sizing:border-box;padding:8px;max-height:450px;min-height:120px;overflow-y:auto}.plat-popper-translate .plat-popper-translate-wrapper{display:flex;flex-direction:column;word-wrap:break-word;word-break:normal;white-space:pre-wrap;height:100%}.plat-popper-translate .plat-popper-translate-wrapper .plat-popper-translate-text{flex:1}.plat-popper-translate .plat-popper-translate-wrapper .plat-popper-translate-copy{text-align:end}",""]),e.exports=t},"3bd2":function(e,t,r){"use strict";r("a7b8")},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3d9c":function(e,t,r){"use strict";r("34bc")},"3df0":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".create-panel-conf_w-e-table_p1xa8{display:flex}.create-panel-conf_w-e-table_p1xa8 .create-panel-conf_w-e-table-input_QHkm-{width:40px;text-align:center!important;margin:0 5px}",""]),t.locals={"w-e-table":"create-panel-conf_w-e-table_p1xa8","w-e-table-input":"create-panel-conf_w-e-table-input_QHkm-"},e.exports=t},"3df2":function(e,t,r){"use strict";r("c622")},"3e5d":function(e,t,r){var i=r("e425");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("a684e162",i,!0,{sourceMap:!1,shadowMode:!1})},"3e9a":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-dialog-footer[data-v-527f9720] .rt-button-more{height:32px;min-width:48px}",""]),e.exports=t},"3ebc":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("a829"),n=r("b91b");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends n.a{constructor(e){super(e),o(this,"visibleChildren",[])}createVNode(e,t){const r=new a.e("RtSaasTabs");this.props.subContent&&r.addClass("apaas-sub-content"),r.nodeType=this.$nodetype,r.ref=this.props.tabsRef,r.addProp("lazy",this.props.lazy),this.buildVNode(r,t),this.buildTabName(t),r.addClass("apaas-card").addClass("apaas-tabs"),e.addChild(r),this.visibleChildren=[],this.addChildByPermission(r,t),r.addProp("visibleChildren",this.visibleChildren)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;if(e.addProp("currentName",r.tabIndexs[this.id]||"0"),e.addAttr("vnodeCid",this.id),e.addAttr("size","small"),e.addProp("maxLength",100),e.addProp("showRelatedButton",!1),e.addProp("formStatus",r.formStatus),!r.isPrint){const t=r.__collectStickyDic[i.b.Tabs];e.addProp("isSticky",t),t&&e.addClass("is-sticky")}e.addProp("formHeaderId",r.__collectStickyDic[i.b.formheader+"_id"]),e.addProp("currentId",this.id),e.addProp("objectId",r.objectId),e.addProp("stepsId",r.__collectStickyDic[i.b.Steps+"_id"]),this.attachEventHandlers(e),e.addEventHandler("input",t=>{const i=e.cid;r.tabIndexs[i]=t,r.$nextTick(()=>{if(r.$refs)for(const e in r.$refs)0==e.indexOf("multiplelookup_")&&r.$refs[e].rebuild()})})}collectStickyDic(e){this.parent&&this.parent.$nodetype===i.b.Form&&(e.thisVue.__collectStickyDic[i.b.Tabs+"_id"]=this.id,e.thisVue.__collectStickyDic[i.b.NewTabs]=!1)}}o(s,"$bindNodeType",i.b.Tabs)},"3eca":function(e,t,r){"use strict";r("3e5d")},4050:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".has-plant[data-v-3a8aaaca] .rt-icon.left-icon{position:absolute;bottom:8px;left:6px;z-index:1;width:18px;height:18px;cursor:pointer}",""]),e.exports=t},"40e7":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("0711"),d=r("6f75");class c extends l.a{constructor(e){super(e)}collectDefaultValues(e){const t=this.props.datafieldname;let r=this.props.defaultValue;if(this.hasFieldPermission(e,t)&&t&&!rt.isNull(r))if(this.props.isMask){let i={text:r,value:r,reference:{}};e.updateEditForm(t,i)}else e.updateEditForm(t,r)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;if(e.setAttrs(this.props),this.props.textarea&&(e.addProp("type","textarea"),e.addProp("autosize",!0)),this.props.rows&&this.props.rows>0&&e.addProp("rows",this.props.rows),this.props.maxlength){const t=Number(this.props.maxlength)||void 0;e.addProp("maxLength",t),e.addAttr("maxLength",t)}else e.addProp("maxLength",5e3),e.addAttr("maxLength",5e3);if(this.props.ishref&&1==r.formStatus){e.tag=d.a.Link;const t=new s.e("span",r.$_t("ClickJump","点击跳转"));e.addChild(t),r.editForm[e.field]&&(e.attrs.href=r.editForm[e.field],e.attrs.target="_blank")}r.isQyWxTenant&&(r.objectId&&("name"==e.field&&"businessunit"==r.objectTypeName?(e.tag="rt-ww-open-data",e.props={type:"departmentName",openid:r.editForm[e.field],corpid:r.editForm.new_wx_chain_idname},e.addClass("wxOpenData")):("new_name"==e.field&&"new_srv_worker"==r.objectTypeName||"fullname"==e.field&&"systemuser"==r.objectTypeName)&&(e.tag="rt-ww-open-data",e.props={type:"userName",openid:r.editForm[e.field],corpid:r.editForm.new_wx_chain_idname},e.addClass("wxOpenData"))),"new_workers"==e.field&&"new_srv_workorder"==r.objectTypeName&&(e.tag="span",e.domProps={innerHTML:r.editForm.new_workers},e.addClass("wxOpenDataInputSpan")));const i=r.attributemappingsMasked.filter(e=>e.fieldName==this.props.datafieldname);let a,n=!1;if(i[0]&&i[0].fieldName==this.props.datafieldname&&"lookup"==i[0].from&&(a=i[0].value,Array.isArray(i[0].originValue)?i[0].originValue.length>0&&(n=!0):i[0].originValue instanceof Object?Object.keys(i[0].originValue).length>0&&(n=!0):null!=i[0].originValue&&""!=i[0].originValue&&null!=i[0].originValue&&(n=!0)),this.props.isMask||(n=!1),this.props.isMask||n){const r={...this.props,hideMaskIcon:n,maskFieldIsMapping:a};this.buildMaskNode(e,t,r)}}}i=c,a="$bindNodeType",n=o.b.text,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"411d":function(e,t,r){var i=r("107e").default;e.exports=function(e,t){if("object"!=i(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=i(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4128:function(e,t,r){var i;!function(a){"use strict";var n,o,s,l=9e15,d="0123456789abcdef",c="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",u="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",p={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-l,maxE:l,crypto:!1},h=!0,f="[DecimalError] Invalid argument: ",m="[object Decimal]",g=Math.floor,b=Math.pow,y=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,x=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_=1e7,E=c.length-1,C=u.length-1,N={toStringTag:m};function S(e){var t,r,i,a=e.length-1,n="",o=e[0];if(a>0){for(n+=o,t=1;tr)throw Error(f+e)}function k(e,t,r,i){var a,n,o,s;for(n=e[0];n>=10;n/=10)--t;return--t<0?(t+=7,a=0):(a=Math.ceil((t+1)/7),t%=7),n=b(10,7-t),s=e[a]%n|0,null==i?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=r<4&&99999==s||r>3&&49999==s||5e4==s||0==s):o=(r<4&&s+1==n||r>3&&s+1==n/2)&&(e[a+1]/n/100|0)==b(10,t-2)-1||(s==n/2||0==s)&&0==(e[a+1]/n/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(i||r<4)&&9999==s||!i&&r>3&&4999==s):o=((i||r<4)&&s+1==n||!i&&r>3&&s+1==n/2)&&(e[a+1]/n/1e3|0)==b(10,t-3)-1,o}function O(e,t,r){for(var i,a,n=[0],o=0,s=e.length;or-1&&(void 0===n[i+1]&&(n[i+1]=0),n[i+1]+=n[i]/r|0,n[i]%=r)}return n.reverse()}N.absoluteValue=N.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),D(e)},N.ceil=function(){return D(new this.constructor(this),this.e+1,2)},N.clampedTo=N.clamp=function(e,t){var r=this,i=r.constructor;if(e=new i(e),t=new i(t),!e.s||!t.s)return new i(NaN);if(e.gt(t))throw Error(f+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new i(r)},N.comparedTo=N.cmp=function(e){var t,r,i,a,n=this,o=n.d,s=(e=new n.constructor(e)).d,l=n.s,d=e.s;if(!o||!s)return l&&d?l!==d?l:o===s?0:!o^l<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?l:s[0]?-d:0;if(l!==d)return l;if(n.e!==e.e)return n.e>e.e^l<0?1:-1;for(t=0,r=(i=o.length)<(a=s.length)?i:a;ts[t]^l<0?1:-1;return i===a?0:i>a^l<0?1:-1},N.cosine=N.cos=function(){var e,t,r=this,i=r.constructor;return r.d?r.d[0]?(e=i.precision,t=i.rounding,i.precision=e+Math.max(r.e,r.sd())+7,i.rounding=1,r=function(e,t){var r,i,a;if(t.isZero())return t;(i=t.d.length)<32?(r=Math.ceil(i/3),a=(1/W(4,r)).toString()):(r=16,a="2.3283064365386962890625e-10"),e.precision+=r,t=G(e,1,t.times(a),new e(1));for(var n=r;n--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=r,t}(i,Q(i,r)),i.precision=e,i.rounding=t,D(2==s||3==s?r.neg():r,e,t,!0)):new i(1):new i(NaN)},N.cubeRoot=N.cbrt=function(){var e,t,r,i,a,n,o,s,l,d,c=this,u=c.constructor;if(!c.isFinite()||c.isZero())return new u(c);for(h=!1,(n=c.s*b(c.s*c,1/3))&&Math.abs(n)!=1/0?i=new u(n.toString()):(r=S(c.d),(n=((e=c.e)-r.length+1)%3)&&(r+=1==n||-2==n?"0":"00"),n=b(r,1/3),e=g((e+1)/3)-(e%3==(e<0?-1:2)),(i=new u(r=n==1/0?"5e"+e:(r=n.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=c.s),o=(e=u.precision)+3;;)if(d=(l=(s=i).times(s).times(s)).plus(c),i=I(d.plus(c).times(s),d.plus(l),o+2,1),S(s.d).slice(0,o)===(r=S(i.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(a||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(D(i,e+1,1),t=!i.times(i).times(i).eq(c));break}if(!a&&(D(s,e+1,0),s.times(s).times(s).eq(c))){i=s;break}o+=4,a=1}return h=!0,D(i,e,u.rounding,t)},N.decimalPlaces=N.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-g(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},N.dividedBy=N.div=function(e){return I(this,new this.constructor(e))},N.dividedToIntegerBy=N.divToInt=function(e){var t=this.constructor;return D(I(this,new t(e),0,1,1),t.precision,t.rounding)},N.equals=N.eq=function(e){return 0===this.cmp(e)},N.floor=function(){return D(new this.constructor(this),this.e+1,3)},N.greaterThan=N.gt=function(e){return this.cmp(e)>0},N.greaterThanOrEqualTo=N.gte=function(e){var t=this.cmp(e);return 1==t||0===t},N.hyperbolicCosine=N.cosh=function(){var e,t,r,i,a,n=this,o=n.constructor,s=new o(1);if(!n.isFinite())return new o(n.s?1/0:NaN);if(n.isZero())return s;r=o.precision,i=o.rounding,o.precision=r+Math.max(n.e,n.sd())+4,o.rounding=1,(a=n.d.length)<32?t=(1/W(4,e=Math.ceil(a/3))).toString():(e=16,t="2.3283064365386962890625e-10"),n=G(o,1,n.times(t),new o(1),!0);for(var l,d=e,c=new o(8);d--;)l=n.times(n),n=s.minus(l.times(c.minus(l.times(c))));return D(n,o.precision=r,o.rounding=i,!0)},N.hyperbolicSine=N.sinh=function(){var e,t,r,i,a=this,n=a.constructor;if(!a.isFinite()||a.isZero())return new n(a);if(t=n.precision,r=n.rounding,n.precision=t+Math.max(a.e,a.sd())+4,n.rounding=1,(i=a.d.length)<3)a=G(n,2,a,a,!0);else{e=(e=1.4*Math.sqrt(i))>16?16:0|e,a=G(n,2,a=a.times(1/W(5,e)),a,!0);for(var o,s=new n(5),l=new n(16),d=new n(20);e--;)o=a.times(a),a=a.times(s.plus(o.times(l.times(o).plus(d))))}return n.precision=t,n.rounding=r,D(a,t,r,!0)},N.hyperbolicTangent=N.tanh=function(){var e,t,r=this,i=r.constructor;return r.isFinite()?r.isZero()?new i(r):(e=i.precision,t=i.rounding,i.precision=e+7,i.rounding=1,I(r.sinh(),r.cosh(),i.precision=e,i.rounding=t)):new i(r.s)},N.inverseCosine=N.acos=function(){var e,t=this,r=t.constructor,i=t.abs().cmp(1),a=r.precision,n=r.rounding;return-1!==i?0===i?t.isNeg()?R(r,a,n):new r(0):new r(NaN):t.isZero()?R(r,a+4,n).times(.5):(r.precision=a+6,r.rounding=1,t=t.asin(),e=R(r,a+4,n).times(.5),r.precision=a,r.rounding=n,e.minus(t))},N.inverseHyperbolicCosine=N.acosh=function(){var e,t,r=this,i=r.constructor;return r.lte(1)?new i(r.eq(1)?0:NaN):r.isFinite()?(e=i.precision,t=i.rounding,i.precision=e+Math.max(Math.abs(r.e),r.sd())+4,i.rounding=1,h=!1,r=r.times(r).minus(1).sqrt().plus(r),h=!0,i.precision=e,i.rounding=t,r.ln()):new i(r)},N.inverseHyperbolicSine=N.asinh=function(){var e,t,r=this,i=r.constructor;return!r.isFinite()||r.isZero()?new i(r):(e=i.precision,t=i.rounding,i.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,i.rounding=1,h=!1,r=r.times(r).plus(1).sqrt().plus(r),h=!0,i.precision=e,i.rounding=t,r.ln())},N.inverseHyperbolicTangent=N.atanh=function(){var e,t,r,i,a=this,n=a.constructor;return a.isFinite()?a.e>=0?new n(a.abs().eq(1)?a.s/0:a.isZero()?a:NaN):(e=n.precision,t=n.rounding,i=a.sd(),Math.max(i,e)<2*-a.e-1?D(new n(a),e,t,!0):(n.precision=r=i-a.e,a=I(a.plus(1),new n(1).minus(a),r+e,1),n.precision=e+4,n.rounding=1,a=a.ln(),n.precision=e,n.rounding=t,a.times(.5))):new n(NaN)},N.inverseSine=N.asin=function(){var e,t,r,i,a=this,n=a.constructor;return a.isZero()?new n(a):(t=a.abs().cmp(1),r=n.precision,i=n.rounding,-1!==t?0===t?((e=R(n,r+4,i).times(.5)).s=a.s,e):new n(NaN):(n.precision=r+6,n.rounding=1,a=a.div(new n(1).minus(a.times(a)).sqrt().plus(1)).atan(),n.precision=r,n.rounding=i,a.times(2)))},N.inverseTangent=N.atan=function(){var e,t,r,i,a,n,o,s,l,d=this,c=d.constructor,u=c.precision,p=c.rounding;if(d.isFinite()){if(d.isZero())return new c(d);if(d.abs().eq(1)&&u+4<=C)return(o=R(c,u+4,p).times(.25)).s=d.s,o}else{if(!d.s)return new c(NaN);if(u+4<=C)return(o=R(c,u+4,p).times(.5)).s=d.s,o}for(c.precision=s=u+10,c.rounding=1,e=r=Math.min(28,s/7+2|0);e;--e)d=d.div(d.times(d).plus(1).sqrt().plus(1));for(h=!1,t=Math.ceil(s/7),i=1,l=d.times(d),o=new c(d),a=d;-1!==e;)if(a=a.times(l),n=o.minus(a.div(i+=2)),a=a.times(l),void 0!==(o=n.plus(a.div(i+=2))).d[t])for(e=t;o.d[e]===n.d[e]&&e--;);return r&&(o=o.times(2<this.d.length-2},N.isNaN=function(){return!this.s},N.isNegative=N.isNeg=function(){return this.s<0},N.isPositive=N.isPos=function(){return this.s>0},N.isZero=function(){return!!this.d&&0===this.d[0]},N.lessThan=N.lt=function(e){return this.cmp(e)<0},N.lessThanOrEqualTo=N.lte=function(e){return this.cmp(e)<1},N.logarithm=N.log=function(e){var t,r,i,a,n,o,s,l,d=this.constructor,c=d.precision,u=d.rounding;if(null==e)e=new d(10),t=!0;else{if(r=(e=new d(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new d(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new d(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)n=!0;else{for(a=r[0];a%10==0;)a/=10;n=1!==a}if(h=!1,o=V(this,s=c+5),i=t?L(d,s+10):V(e,s),k((l=I(o,i,s,1)).d,a=c,u))do{if(o=V(this,s+=10),i=t?L(d,s+10):V(e,s),l=I(o,i,s,1),!n){+S(l.d).slice(a+1,a+15)+1==1e14&&(l=D(l,c+1,0));break}}while(k(l.d,a+=10,u));return h=!0,D(l,c,u)},N.minus=N.sub=function(e){var t,r,i,a,n,o,s,l,d,c,u,p,f=this,m=f.constructor;if(e=new m(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new m(e.d||f.s!==e.s?f:NaN):e=new m(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(d=f.d,p=e.d,s=m.precision,l=m.rounding,!d[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!d[0])return new m(3===l?-0:0);e=new m(f)}return h?D(e,s,l):e}if(r=g(e.e/7),c=g(f.e/7),d=d.slice(),n=c-r){for((u=n<0)?(t=d,n=-n,o=p.length):(t=p,r=c,o=d.length),n>(i=Math.max(Math.ceil(s/7),o)+2)&&(n=i,t.length=1),t.reverse(),i=n;i--;)t.push(0);t.reverse()}else{for((u=(i=d.length)<(o=p.length))&&(o=i),i=0;i0;--i)d[o++]=0;for(i=p.length;i>n;){if(d[--i](o=(n=Math.ceil(s/7))>o?n+1:o+1)&&(a=o,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for((o=d.length)-(a=c.length)<0&&(a=o,r=c,c=d,d=r),t=0;a;)t=(d[--a]=d[a]+c[a]+t)/_|0,d[a]%=_;for(t&&(d.unshift(t),++i),o=d.length;0==d[--o];)d.pop();return e.d=d,e.e=M(d,i),h?D(e,s,l):e},N.precision=N.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(f+e);return r.d?(t=P(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},N.round=function(){var e=this,t=e.constructor;return D(new t(e),e.e+1,t.rounding)},N.sine=N.sin=function(){var e,t,r=this,i=r.constructor;return r.isFinite()?r.isZero()?new i(r):(e=i.precision,t=i.rounding,i.precision=e+Math.max(r.e,r.sd())+7,i.rounding=1,r=function(e,t){var r,i=t.d.length;if(i<3)return t.isZero()?t:G(e,2,t,t);r=(r=1.4*Math.sqrt(i))>16?16:0|r,t=t.times(1/W(5,r)),t=G(e,2,t,t);for(var a,n=new e(5),o=new e(16),s=new e(20);r--;)a=t.times(t),t=t.times(n.plus(a.times(o.times(a).minus(s))));return t}(i,Q(i,r)),i.precision=e,i.rounding=t,D(s>2?r.neg():r,e,t,!0)):new i(NaN)},N.squareRoot=N.sqrt=function(){var e,t,r,i,a,n,o=this,s=o.d,l=o.e,d=o.s,c=o.constructor;if(1!==d||!s||!s[0])return new c(!d||d<0&&(!s||s[0])?NaN:s?o:1/0);for(h=!1,0==(d=Math.sqrt(+o))||d==1/0?(((t=S(s)).length+l)%2==0&&(t+="0"),d=Math.sqrt(t),l=g((l+1)/2)-(l<0||l%2),i=new c(t=d==1/0?"5e"+l:(t=d.toExponential()).slice(0,t.indexOf("e")+1)+l)):i=new c(d.toString()),r=(l=c.precision)+3;;)if(i=(n=i).plus(I(o,n,r+2,1)).times(.5),S(n.d).slice(0,r)===(t=S(i.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(i,l+1,1),e=!i.times(i).eq(o));break}if(!a&&(D(n,l+1,0),n.times(n).eq(o))){i=n;break}r+=4,a=1}return h=!0,D(i,l,c.rounding,e)},N.tangent=N.tan=function(){var e,t,r=this,i=r.constructor;return r.isFinite()?r.isZero()?new i(r):(e=i.precision,t=i.rounding,i.precision=e+10,i.rounding=1,(r=r.sin()).s=1,r=I(r,new i(1).minus(r.times(r)).sqrt(),e+10,0),i.precision=e,i.rounding=t,D(2==s||4==s?r.neg():r,e,t,!0)):new i(NaN)},N.times=N.mul=function(e){var t,r,i,a,n,o,s,l,d,c=this,u=c.constructor,p=c.d,f=(e=new u(e)).d;if(e.s*=c.s,!(p&&p[0]&&f&&f[0]))return new u(!e.s||p&&!p[0]&&!f||f&&!f[0]&&!p?NaN:p&&f?0*e.s:e.s/0);for(r=g(c.e/7)+g(e.e/7),(l=p.length)<(d=f.length)&&(n=p,p=f,f=n,o=l,l=d,d=o),n=[],i=o=l+d;i--;)n.push(0);for(i=d;--i>=0;){for(t=0,a=l+i;a>i;)s=n[a]+f[i]*p[a-i-1]+t,n[a--]=s%_|0,t=s/_|0;n[a]=(n[a]+t)%_|0}for(;!n[--o];)n.pop();return t?++r:n.shift(),e.d=n,e.e=M(n,r),h?D(e,u.precision,u.rounding):e},N.toBinary=function(e,t){return X(this,2,e,t)},N.toDecimalPlaces=N.toDP=function(e,t){var r=this,i=r.constructor;return r=new i(r),void 0===e?r:(T(e,0,1e9),void 0===t?t=i.rounding:T(t,0,8),D(r,e+r.e+1,t))},N.toExponential=function(e,t){var r,i=this,a=i.constructor;return void 0===e?r=A(i,!0):(T(e,0,1e9),void 0===t?t=a.rounding:T(t,0,8),r=A(i=D(new a(i),e+1,t),!0,e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},N.toFixed=function(e,t){var r,i,a=this,n=a.constructor;return void 0===e?r=A(a):(T(e,0,1e9),void 0===t?t=n.rounding:T(t,0,8),r=A(i=D(new n(a),e+a.e+1,t),!1,e+i.e+1)),a.isNeg()&&!a.isZero()?"-"+r:r},N.toFraction=function(e){var t,r,i,a,n,o,s,l,d,c,u,p,m=this,g=m.d,y=m.constructor;if(!g)return new y(m);if(d=r=new y(1),i=l=new y(0),o=(n=(t=new y(i)).e=P(g)-m.e-1)%7,t.d[0]=b(10,o<0?7+o:o),null==e)e=n>0?t:d;else{if(!(s=new y(e)).isInt()||s.lt(d))throw Error(f+s);e=s.gt(t)?n>0?t:d:s}for(h=!1,s=new y(S(g)),c=y.precision,y.precision=n=7*g.length*2;u=I(s,t,0,1,1),1!=(a=r.plus(u.times(i))).cmp(e);)r=i,i=a,a=d,d=l.plus(u.times(a)),l=a,a=t,t=s.minus(u.times(a)),s=a;return a=I(e.minus(r),i,0,1,1),l=l.plus(a.times(d)),r=r.plus(a.times(i)),l.s=d.s=m.s,p=I(d,i,n,1).minus(m).abs().cmp(I(l,r,n,1).minus(m).abs())<1?[d,i]:[l,r],y.precision=c,h=!0,p},N.toHexadecimal=N.toHex=function(e,t){return X(this,16,e,t)},N.toNearest=function(e,t){var r=this,i=r.constructor;if(r=new i(r),null==e){if(!r.d)return r;e=new i(1),t=i.rounding}else{if(e=new i(e),void 0===t?t=i.rounding:T(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(h=!1,r=I(r,e,0,t,1).times(e),h=!0,D(r)):(e.s=r.s,r=e),r},N.toNumber=function(){return+this},N.toOctal=function(e,t){return X(this,8,e,t)},N.toPower=N.pow=function(e){var t,r,i,a,n,o,s=this,l=s.constructor,d=+(e=new l(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new l(b(+s,d));if((s=new l(s)).eq(1))return s;if(i=l.precision,n=l.rounding,e.eq(1))return D(s,i,n);if((t=g(e.e/7))>=e.d.length-1&&(r=d<0?-d:d)<=9007199254740991)return a=F(l,s,r,i),e.s<0?new l(1).div(a):D(a,i,n);if((o=s.s)<0){if(tl.maxE+1||t0?o/0:0):(h=!1,l.rounding=s.s=1,r=Math.min(12,(t+"").length),(a=U(e.times(V(s,i+r)),i)).d&&k((a=D(a,i+5,1)).d,i,n)&&(t=i+10,+S((a=D(U(e.times(V(s,t+r)),t),t+5,1)).d).slice(i+1,i+15)+1==1e14&&(a=D(a,i+1,0))),a.s=o,h=!0,l.rounding=n,D(a,i,n))},N.toPrecision=function(e,t){var r,i=this,a=i.constructor;return void 0===e?r=A(i,i.e<=a.toExpNeg||i.e>=a.toExpPos):(T(e,1,1e9),void 0===t?t=a.rounding:T(t,0,8),r=A(i=D(new a(i),e,t),e<=i.e||i.e<=a.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+r:r},N.toSignificantDigits=N.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(T(e,1,1e9),void 0===t?t=r.rounding:T(t,0,8)),D(new r(this),e,t)},N.toString=function(){var e=this,t=e.constructor,r=A(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},N.truncated=N.trunc=function(){return D(new this.constructor(this),this.e+1,1)},N.valueOf=N.toJSON=function(){var e=this,t=e.constructor,r=A(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var I=function(){function e(e,t,r){var i,a=0,n=e.length;for(e=e.slice();n--;)i=e[n]*t+a,e[n]=i%r|0,a=i/r|0;return a&&e.unshift(a),e}function t(e,t,r,i){var a,n;if(r!=i)n=r>i?1:-1;else for(a=n=0;at[a]?1:-1;break}return n}function r(e,t,r,i){for(var a=0;r--;)e[r]-=a,a=e[r]1;)e.shift()}return function(i,a,n,s,l,d){var c,u,p,h,f,m,b,y,v,x,w,E,C,N,S,T,k,O,I,A,M=i.constructor,L=i.s==a.s?1:-1,R=i.d,P=a.d;if(!(R&&R[0]&&P&&P[0]))return new M(i.s&&a.s&&(R?!P||R[0]!=P[0]:P)?R&&0==R[0]||!P?0*L:L/0:NaN);for(d?(f=1,u=i.e-a.e):(d=_,f=7,u=g(i.e/f)-g(a.e/f)),I=P.length,k=R.length,x=(v=new M(L)).d=[],p=0;P[p]==(R[p]||0);p++);if(P[p]>(R[p]||0)&&u--,null==n?(N=n=M.precision,s=M.rounding):N=l?n+(i.e-a.e)+1:n,N<0)x.push(1),m=!0;else{if(N=N/f+2|0,p=0,1==I){for(h=0,P=P[0],N++;(p1&&(P=e(P,h,d),R=e(R,h,d),I=P.length,k=R.length),T=I,E=(w=R.slice(0,I)).length;E=d/2&&++O;do{h=0,(c=t(P,w,I,E))<0?(C=w[0],I!=E&&(C=C*d+(w[1]||0)),(h=C/O|0)>1?(h>=d&&(h=d-1),1==(c=t(b=e(P,h,d),w,y=b.length,E=w.length))&&(h--,r(b,I=10;h/=10)p++;v.e=p+u*f-1,D(v,l?n+v.e+1:n,s,m)}return v}}();function D(e,t,r,i){var a,n,o,s,l,d,c,u,p,f=e.constructor;e:if(null!=t){if(!(u=e.d))return e;for(a=1,s=u[0];s>=10;s/=10)a++;if((n=t-a)<0)n+=7,o=t,l=(c=u[p=0])/b(10,a-o-1)%10|0;else if((p=Math.ceil((n+1)/7))>=(s=u.length)){if(!i)break e;for(;s++<=p;)u.push(0);c=l=0,a=1,o=(n%=7)-7+1}else{for(c=s=u[p],a=1;s>=10;s/=10)a++;l=(o=(n%=7)-7+a)<0?0:c/b(10,a-o-1)%10|0}if(i=i||t<0||void 0!==u[p+1]||(o<0?c:c%b(10,a-o-1)),d=r<4?(l||i)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||i||6==r&&(n>0?o>0?c/b(10,a-o):0:u[p-1])%10&1||r==(e.s<0?8:7)),t<1||!u[0])return u.length=0,d?(t-=e.e+1,u[0]=b(10,(7-t%7)%7),e.e=-t||0):u[0]=e.e=0,e;if(0==n?(u.length=p,s=1,p--):(u.length=p+1,s=b(10,7-n),u[p]=o>0?(c/b(10,a-o)%b(10,o)|0)*s:0),d)for(;;){if(0==p){for(n=1,o=u[0];o>=10;o/=10)n++;for(o=u[0]+=s,s=1;o>=10;o/=10)s++;n!=s&&(e.e++,u[0]==_&&(u[0]=1));break}if(u[p]+=s,u[p]!=_)break;u[p--]=0,s=1}for(n=u.length;0===u[--n];)u.pop()}return h&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e0?n=n.charAt(0)+"."+n.slice(1)+$(i):o>1&&(n=n.charAt(0)+"."+n.slice(1)),n=n+(e.e<0?"e":"e+")+e.e):a<0?(n="0."+$(-a-1)+n,r&&(i=r-o)>0&&(n+=$(i))):a>=o?(n+=$(a+1-o),r&&(i=r-a-1)>0&&(n=n+"."+$(i))):((i=a+1)0&&(a+1===o&&(n+="."),n+=$(i))),n}function M(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function L(e,t,r){if(t>E)throw h=!0,r&&(e.precision=r),Error("[DecimalError] Precision limit exceeded");return D(new e(c),t,1,!0)}function R(e,t,r){if(t>C)throw Error("[DecimalError] Precision limit exceeded");return D(new e(u),t,r,!0)}function P(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function $(e){for(var t="";e--;)t+="0";return t}function F(e,t,r,i){var a,n=new e(1),o=Math.ceil(i/7+4);for(h=!1;;){if(r%2&&K((n=n.times(t)).d,o)&&(a=!0),0===(r=g(r/2))){r=n.d.length-1,a&&0===n.d[r]&&++n.d[r];break}K((t=t.times(t)).d,o)}return h=!0,n}function j(e){return 1&e.d[e.d.length-1]}function B(e,t,r){for(var i,a=new e(t[0]),n=0;++n17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(h=!1,l=m):l=t,s=new p(.03125);e.e>-2;)e=e.times(s),u+=5;for(l+=i=Math.log(b(2,u))/Math.LN10*2+5|0,r=n=o=new p(1),p.precision=l;;){if(n=D(n.times(e),l,1),r=r.times(++c),S((s=o.plus(I(n,r,l,1))).d).slice(0,l)===S(o.d).slice(0,l)){for(a=u;a--;)o=D(o.times(o),l,1);if(null!=t)return p.precision=m,o;if(!(d<3&&k(o.d,l-i,f,d)))return D(o,p.precision=m,f,h=!0);p.precision=l+=10,r=n=s=new p(1),c=0,d++}o=s}}function V(e,t){var r,i,a,n,o,s,l,d,c,u,p,f=1,m=e,g=m.d,b=m.constructor,y=b.rounding,v=b.precision;if(m.s<0||!g||!g[0]||!m.e&&1==g[0]&&1==g.length)return new b(g&&!g[0]?-1/0:1!=m.s?NaN:g?0:m);if(null==t?(h=!1,c=v):c=t,b.precision=c+=10,i=(r=S(g)).charAt(0),!(Math.abs(n=m.e)<15e14))return d=L(b,c+2,v).times(n+""),m=V(new b(i+"."+r.slice(1)),c-10).plus(d),b.precision=v,null==t?D(m,v,y,h=!0):m;for(;i<7&&1!=i||1==i&&r.charAt(1)>3;)i=(r=S((m=m.times(e)).d)).charAt(0),f++;for(n=m.e,i>1?(m=new b("0."+r),n++):m=new b(i+"."+r.slice(1)),u=m,l=o=m=I(m.minus(1),m.plus(1),c,1),p=D(m.times(m),c,1),a=3;;){if(o=D(o.times(p),c,1),S((d=l.plus(I(o,new b(a),c,1))).d).slice(0,c)===S(l.d).slice(0,c)){if(l=l.times(2),0!==n&&(l=l.plus(L(b,c+2,v).times(n+""))),l=I(l,new b(f),c,1),null!=t)return b.precision=v,l;if(!k(l.d,c-10,y,s))return D(l,b.precision=v,y,h=!0);b.precision=c+=10,d=o=m=I(u.minus(1),u.plus(1),c,1),p=D(m.times(m),c,1),a=s=1}l=d,a+=2}}function q(e){return String(e.s*e.s/0)}function z(e,t){var r,i,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(i=t.search(/e/i))>0?(r<0&&(r=i),r+=+t.slice(i+1),t=t.substring(0,i)):r<0&&(r=t.length),i=0;48===t.charCodeAt(i);i++);for(a=t.length;48===t.charCodeAt(a-1);--a);if(t=t.slice(i,a)){if(a-=i,e.e=r=r-i-1,e.d=[],i=(r+1)%7,r<0&&(i+=7),ie.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return z(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(v.test(t))r=16,t=t.toLowerCase();else if(y.test(t))r=2;else{if(!x.test(t))throw Error(f+t);r=8}for((o=t.search(/p/i))>0?(d=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),s=(o=t.indexOf("."))>=0,i=e.constructor,s&&(o=(l=(t=t.replace(".","")).length)-o,a=F(i,new i(r),o,2*o)),o=u=(c=O(t,r,_)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*e.s):(e.e=M(c,u),e.d=c,h=!1,s&&(e=I(e,a,4*l)),d&&(e=e.times(Math.abs(d)<54?b(2,d):n.pow(2,d))),h=!0,e)}function G(e,t,r,i,a){var n,o,s,l,d=e.precision,c=Math.ceil(d/7);for(h=!1,l=r.times(r),s=new e(i);;){if(o=I(s.times(l),new e(t++*t++),d,1),s=a?i.plus(o):i.minus(o),i=I(o.times(l),new e(t++*t++),d,1),void 0!==(o=s.plus(i)).d[c]){for(n=c;o.d[n]===s.d[n]&&n--;);if(-1==n)break}n=s,s=i,i=o,o=n}return h=!0,o.d.length=c+1,o}function W(e,t){for(var r=e;--t;)r*=e;return r}function Q(e,t){var r,i=t.s<0,a=R(e,e.precision,1),n=a.times(.5);if((t=t.abs()).lte(n))return s=i?4:1,t;if((r=t.divToInt(a)).isZero())s=i?3:2;else{if((t=t.minus(r.times(a))).lte(n))return s=j(r)?i?2:3:i?4:1,t;s=j(r)?i?1:4:i?3:2}return t.minus(a).abs()}function X(e,t,r,i){var a,n,s,l,c,u,p,h,f,m=e.constructor,g=void 0!==r;if(g?(T(r,1,1e9),void 0===i?i=m.rounding:T(i,0,8)):(r=m.precision,i=m.rounding),e.isFinite()){for(g?(a=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):a=t,(s=(p=A(e)).indexOf("."))>=0&&(p=p.replace(".",""),(f=new m(1)).e=p.length-s,f.d=O(A(f),10,a),f.e=f.d.length),n=c=(h=O(p,10,a)).length;0==h[--c];)h.pop();if(h[0]){if(s<0?n--:((e=new m(e)).d=h,e.e=n,h=(e=I(e,f,r,i,0,a)).d,n=e.e,u=o),s=h[r],l=a/2,u=u||void 0!==h[r+1],u=i<4?(void 0!==s||u)&&(0===i||i===(e.s<0?3:2)):s>l||s===l&&(4===i||u||6===i&&1&h[r-1]||i===(e.s<0?8:7)),h.length=r,u)for(;++h[--r]>a-1;)h[r]=0,r||(++n,h.unshift(1));for(c=h.length;!h[c-1];--c);for(s=0,p="";s1)if(16==t||8==t){for(s=16==t?4:3,--c;c%s;c++)p+="0";for(c=(h=O(p,a,t)).length;!h[c-1];--c);for(s=1,p="1.";sc)for(n-=c;n--;)p+="0";else nt)return e.length=t,!0}function Y(e){return new this(e).abs()}function J(e){return new this(e).acos()}function Z(e){return new this(e).acosh()}function ee(e,t){return new this(e).plus(t)}function te(e){return new this(e).asin()}function re(e){return new this(e).asinh()}function ie(e){return new this(e).atan()}function ae(e){return new this(e).atanh()}function ne(e,t){e=new this(e),t=new this(t);var r,i=this.precision,a=this.rounding,n=i+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?R(this,i,a):new this(0)).s=e.s:!e.d||t.isZero()?(r=R(this,n,1).times(.5)).s=e.s:t.s<0?(this.precision=n,this.rounding=1,r=this.atan(I(e,t,n,1)),t=R(this,n,1),this.precision=i,this.rounding=a,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(I(e,t,n,1)):(r=R(this,n,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function oe(e){return new this(e).cbrt()}function se(e){return D(e=new this(e),e.e+1,2)}function le(e,t,r){return new this(e).clamp(t,r)}function de(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");var t,r,i,a=!0===e.defaults,n=["precision",1,1e9,"rounding",0,8,"toExpNeg",-l,0,"toExpPos",0,l,"maxE",0,l,"minE",-l,0,"modulo",0,9];for(t=0;t=n[t+1]&&i<=n[t+2]))throw Error(f+r+": "+i);this[r]=i}if(r="crypto",a&&(this[r]=p[r]),void 0!==(i=e[r])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(f+r+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[r]=!0}else this[r]=!1}return this}function ce(e){return new this(e).cos()}function ue(e){return new this(e).cosh()}function pe(e,t){return new this(e).div(t)}function he(e){return new this(e).exp()}function fe(e){return D(e=new this(e),e.e+1,3)}function me(){var e,t,r=new this(0);for(h=!1,e=0;e=429e7?t[n]=crypto.getRandomValues(new Uint32Array(1))[0]:s[n++]=a%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(i*=4);n=214e7?crypto.randomBytes(4).copy(t,n):(s.push(a%1e7),n+=4);n=i/4}else for(;n=10;a/=10)i++;i<7&&(r-=7-i)}return o.e=r,o.d=s,o}function Te(e){return D(e=new this(e),e.e+1,this.rounding)}function ke(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Oe(e){return new this(e).sin()}function Ie(e){return new this(e).sinh()}function De(e){return new this(e).sqrt()}function Ae(e,t){return new this(e).sub(t)}function Me(){var e=0,t=arguments,r=new this(t[e]);for(h=!1;r.s&&++en.maxE?(a.e=NaN,a.d=null):e.e=10;r/=10)t++;return void(h?t>n.maxE?(a.e=NaN,a.d=null):t.content-vlistView>.rt-view-wrapper,[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(70vh - 47px);overflow:hidden;display:flex;flex-direction:column}[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode>.apaas-vlist-wrapper{height:100%;overflow-y:auto}[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog{height:unset}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(100vh - 87px)}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(100vh - 147px);overflow-y:auto}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(80vh - 47px)}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(80vh - 107px);overflow-y:auto}.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(60vh - 47px)}.rt-dialog-small[data-v-10f08b00] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(60vh - 107px);overflow-y:auto}.relation-drawer[data-v-10f08b00] .rtxpc-drawer{box-shadow:-6px 0 16px -8px rgba(0,0,0,.2)!important;min-width:834px}.relation-drawer[data-v-10f08b00] .el-drawer__body>.rt-view-wrapper{min-height:100vh}.relation-drawer[data-v-10f08b00] .rt-view-wrapper{background:#e8ebee}.relation-drawer.fullscreen[data-v-10f08b00] .rtxpc-drawer{width:100%!important}.relation-drawer[data-v-10f08b00] .rt-detail-header,.relation-drawer[data-v-10f08b00] .rt-list-header{padding-right:76px}.relation-header-wrapper[data-v-10f08b00]{display:flex;align-items:center;background-color:#fff;position:absolute;top:0;right:0;z-index:99}.relation-header-wrapper[data-v-10f08b00] .rt-button.rt-button--plain{color:#788796;border-color:#788796}.relation-header[data-v-10f08b00]{height:48px;display:flex;align-items:center;padding-left:76px;font-size:14px;font-weight:600;color:#0b0c0e;line-height:20px;position:relative}.relation-header .btn-close[data-v-10f08b00]{position:absolute;right:12px}.relation-header .btn-fullscreen[data-v-10f08b00]{position:absolute;right:40px}",""]),e.exports=t},"41c7":function(e,t,r){var i=r("bdd8");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("07cf604a",i,!0,{sourceMap:!1,shadowMode:!1})},"423b":function(e,t,r){var i=r("8f43");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("8e151d88",i,!0,{sourceMap:!1,shadowMode:!1})},4293:function(e,t,r){"use strict";r("db69")},4362:function(e,t,r){var i,a;t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},a="/",t.cwd=function(){return a},t.chdir=function(e){i||(i=r("df7c")),a=i.resolve(e,a)},t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43ad":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".content-vlistView[data-v-17cf0e79] .rt-view-wrapper .rt-header.rt-header-sticky{margin-bottom:unset}.content-vlistView[data-v-17cf0e79] .rt-view-wrapper .rt-content-wrapper .rt-content-main{padding:unset}",""]),e.exports=t},"43e1":function(e,t,r){"use strict";r("f1b4")},"444b":function(e,t,r){"use strict";r("86d3")},4456:function(e,t,r){"use strict";r("2b15")},"445e":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-excel-dialog[data-v-d52181d0] .el-dialog__body{overflow:unset}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view{word-break:normal;position:relative}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card{box-shadow:unset;margin-bottom:unset;border-radius:0}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section{max-height:calc(70vh - 120px);overflow:auto;padding:4px 24px 16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .el-icon-refresh{cursor:pointer;margin-left:16px;font-size:18px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .el-icon-refresh:hover{color:#5182ef}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .el-icon-refresh:active{color:#1d58d8}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .rtPicklist.isNotStatus .el-select .el-select__tags{z-index:auto}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .downloadTemplate{margin:0 16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .template-action-btn{display:flex;align-items:center}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .template-action-btn .rt-icon{margin-left:4px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-card-form .downloadTemplateTip{color:#4c5966;margin:12px 8px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .rt-upload-manual-upload__bottom{align-items:center;display:flex;flex:1}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .rt-upload-manual-upload__bottom .rt-attachment{flex:1;margin-top:0}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .rt-upload-manual-upload__bottom .rt-attachment .el-upload-list__item{margin-top:0}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-four .excelExport-card-row .excelExport-card-upload{background:linear-gradient(180deg,#fff,#f6f6f6);color:#2563eb}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .flex-radio:last-child{margin-bottom:0}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-form-div{display:flex;align-items:center;padding-top:12px;color:#0b0c0e;font-size:15px;line-height:20px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .excelExport-card-row{padding:12px 0;display:flex;align-items:center}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .select-entity-import-template{display:flex;align-items:center;flex:1}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .select-entity-import-template .rt-saas-entities{width:100%;margin-left:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .steps .select-entity-import-template .rt-independent-form-el+.rt-independent-form-el{margin-left:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .workflow-checkbox{padding-bottom:8px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five{margin-bottom:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-section .excelExport-form-five .el-form-item{padding:0 16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-icon{height:120px;width:120px;padding:8px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-message{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-button{display:flex;justify-content:center;margin:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-after .excelExport-button .excelExport-buttonFirst{margin-right:24px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-icon{padding:8px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-message{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-message-error{display:flex;justify-content:center;padding:14px;font-size:16px;color:#0072e6}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-button{display:flex;justify-content:center;margin:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-error .excelExport-button .excelExport-buttonFirst{margin-right:24px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import{display:flex;flex-direction:column;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;z-index:1}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-icon{height:80px;width:80px;padding:8px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-after-span{display:flex;justify-content:center;padding:14px;font-size:16px;font-weight:600;color:#0b0c0e}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-after-information{display:flex;justify-content:center;padding:12px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .excelExport-background-import .excelExport-exportfile{padding-right:4px;color:#2563eb;cursor:pointer}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .rt-dialog-footer-buttons{padding:0 24px;display:flex;border-top:1px solid #d3d9de;justify-content:flex-end;align-items:center;height:56px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .plat-dialog-footer-buttons,.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .rt-dialog-footer-not-buttons{padding:0 24px;display:flex;justify-content:flex-end;align-items:center;height:56px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .plat-dialog-footer-buttons.has-border{border-top:1px solid #d3d9de}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .plat-dialog-footer-buttons .rt-button+.rt-button{margin-left:16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-card .plat-dialog-footer-buttons .rt-button{min-width:72px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template{background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;padding-bottom:32px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template .excelExport-wrapper-no-template-title{color:#788796;line-height:19px;margin:24px 0 16px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template .excelExport-wrapper-no-template-button{display:flex}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template .excelExport-wrapper-no-template-button .excelExport-wrapper-no-template-button-item{display:flex;align-items:center;border:1px dashed #d6dbe1;width:160px;height:130px;margin:0 8px;justify-content:center;flex-direction:column;border-radius:4px;background:rgba(246,247,248,.5);cursor:pointer}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template .excelExport-wrapper-no-template-button .excelExport-wrapper-no-template-button-item .rt-icon{margin-bottom:12px}.plat-excel-dialog[data-v-d52181d0] .el-dialog__body .excelExport-view .excelExport-wrapper-no-template .excelExport-wrapper-no-template-button .excelExport-wrapper-no-template-button-item .rt-icon:hover{color:#50b4fb!important}.popover-visible[data-v-d52181d0]{cursor:pointer;transform:rotate(180deg)}.popover-icon[data-v-d52181d0]{transition:transform .3s ease-in-out}",""]),e.exports=t},4465:function(e,t,r){var i=r("a605");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7202f23a",i,!0,{sourceMap:!1,shadowMode:!1})},"446c":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".line-content[data-v-a3764814]{overflow:hidden;text-overflow:ellipsis;white-space:normal;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.line-content span[data-v-a3764814]{word-break:break-word}",""]),e.exports=t},"44f6":function(e,t,r){var i=r("567b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("3fd71d25",i,!0,{sourceMap:!1,shadowMode:!1})},4562:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.libraries,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"45c7":function(e,t,r){"use strict";r("1c6a")},"45fa":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;this.props.defaultvalue&&e.addProp("defaultvalue",this.props.defaultvalue),e.addEventHandler("input",e=>{r.updateEditForm(this.props.datafieldname,e)})}}i=l,a="$bindNodeType",n=o.b.ScanInput,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},4607:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.mobilelistitemstatus,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},4641:function(e,t,r){var i=r("920bc");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("efc698ce",i,!0,{sourceMap:!1,shadowMode:!1})},4666:function(e,t,r){var i=r("1343");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("f0e83150",i,!0,{sourceMap:!1,shadowMode:!1})},4668:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".between-number[data-v-0c3b44b8]{display:flex;align-items:center}.between-number .split[data-v-0c3b44b8]{margin-left:10px;margin-right:10px}",""]),e.exports=t},"46ac":function(e,t,r){var i=r("2f18");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6f9bb5e2",i,!0,{sourceMap:!1,shadowMode:!1})},4775:function(e,t,r){"use strict";r("4eb4")},4788:function(e,t,r){"use strict";var i=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.preserveFormatting,s=void 0!==r&&r,l=t.escapeMapFn,d=void 0===l?o:l,c=String(e),u="",p=d(i({},a),s?i({},n):{}),h=Object.keys(p),f=function(){var e=!1;h.forEach((function(t,r){e||c.length>=t.length&&c.slice(0,t.length)===t&&(u+=p[h[r]],c=c.slice(t.length,c.length),e=!0)})),e||(u+=c.slice(0,1),c=c.slice(1,c.length))};c;)f();return u}},4880:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.hook,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"488b":function(e,t,r){"use strict";r("e6e0")},4917:function(e,t,r){"use strict";r("a289")},"492e":function(e,t,r){"use strict";r("5fb0")},4947:function(e,t,r){var i=r("78cf");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4b423ca2",i,!0,{sourceMap:!1,shadowMode:!1})},"4a37":function(e,t,r){"use strict";r("7b49")},"4af7":function(e,t,r){!function(r){"use strict";var i={s:1,n:0,d:1};function a(e,t){if(isNaN(e=parseInt(e,10)))throw u();return e*t}function n(e,t){if(0===t)throw c();var r=Object.create(d.prototype);r.s=e<0?-1:1;var i=l(e=e<0?-e:e,t);return r.n=e/i,r.d=t/i,r}function o(e){for(var t={},r=e,i=2,a=4;a<=r;){for(;r%i==0;)r/=i,t[i]=(t[i]||0)+1;a+=1+2*i++}return r!==e?r>1&&(t[r]=(t[r]||0)+1):t[e]=(t[e]||0)+1,t}var s=function(e,t){var r,n=0,o=1,s=1,l=0,d=0,h=0,f=1,m=1,g=0,b=1,y=1,v=1,x=1e7;if(null==e);else if(void 0!==t){if(s=(n=e)*(o=t),n%1!=0||o%1!=0)throw p()}else switch(typeof e){case"object":if("d"in e&&"n"in e)n=e.n,o=e.d,"s"in e&&(n*=e.s);else{if(!(0 in e))throw u();n=e[0],1 in e&&(o=e[1])}s=n*o;break;case"number":if(e<0&&(s=e,e=-e),e%1==0)n=e;else if(e>0){for(e>=1&&(e/=m=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)));b<=x&&v<=x;){if(e===(r=(g+y)/(b+v))){b+v<=x?(n=g+y,o=b+v):v>b?(n=y,o=v):(n=g,o=b);break}e>r?(g+=y,b+=v):(y+=g,v+=b),b>x?(n=y,o=v):(n=g,o=b)}n*=m}else(isNaN(e)||isNaN(t))&&(o=n=NaN);break;case"string":if(null===(b=e.match(/\d+|./g)))throw u();if("-"===b[g]?(s=-1,g++):"+"===b[g]&&g++,b.length===g+1?d=a(b[g++],s):"."===b[g+1]||"."===b[g]?("."!==b[g]&&(l=a(b[g++],s)),(1+ ++g===b.length||"("===b[g+1]&&")"===b[g+3]||"'"===b[g+1]&&"'"===b[g+3])&&(d=a(b[g],s),f=Math.pow(10,b[g].length),g++),("("===b[g]&&")"===b[g+2]||"'"===b[g]&&"'"===b[g+2])&&(h=a(b[g+1],s),m=Math.pow(10,b[g+1].length)-1,g+=3)):"/"===b[g+1]||":"===b[g+1]?(d=a(b[g],s),f=a(b[g+2],1),g+=3):"/"===b[g+3]&&" "===b[g+1]&&(l=a(b[g],s),d=a(b[g+2],s),f=a(b[g+4],1),g+=5),b.length<=g){s=n=h+(o=f*m)*l+m*d;break}default:throw u()}if(0===o)throw c();i.s=s<0?-1:1,i.n=Math.abs(n),i.d=Math.abs(o)};function l(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function d(e,t){if(s(e,t),!(this instanceof d))return n(i.s*i.n,i.d);e=l(i.d,i.n),this.s=i.s,this.n=i.n/e,this.d=i.d/e}var c=function(){return new Error("Division by Zero")},u=function(){return new Error("Invalid argument")},p=function(){return new Error("Parameters must be integer")};d.prototype={s:1,n:0,d:1,abs:function(){return n(this.n,this.d)},neg:function(){return n(-this.s*this.n,this.d)},add:function(e,t){return s(e,t),n(this.s*this.n*i.d+i.s*this.d*i.n,this.d*i.d)},sub:function(e,t){return s(e,t),n(this.s*this.n*i.d-i.s*this.d*i.n,this.d*i.d)},mul:function(e,t){return s(e,t),n(this.s*i.s*this.n*i.n,this.d*i.d)},div:function(e,t){return s(e,t),n(this.s*i.s*this.n*i.d,this.d*i.n)},clone:function(){return n(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new d(NaN);if(void 0===e)return n(this.s*this.n%this.d,1);if(s(e,t),0===i.n&&0===this.d)throw c();return n(this.s*(i.d*this.n)%(i.n*this.d),i.d*this.d)},gcd:function(e,t){return s(e,t),n(l(i.n,this.n)*l(i.d,this.d),i.d*this.d)},lcm:function(e,t){return s(e,t),0===i.n&&0===this.n?n(0,1):n(i.n*this.n,l(i.n,this.n)*l(i.d,this.d))},ceil:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new d(NaN):n(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new d(NaN):n(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d)?new d(NaN):n(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return s(e,t),n(this.s*Math.round(this.n*i.d/(this.d*i.n))*i.n,i.d)},inverse:function(){return n(this.s*this.d,this.n)},pow:function(e,t){if(s(e,t),1===i.d)return i.s<0?n(Math.pow(this.s*this.d,i.n),Math.pow(this.n,i.n)):n(Math.pow(this.s*this.n,i.n),Math.pow(this.d,i.n));if(this.s<0)return null;var r=o(this.n),a=o(this.d),l=1,d=1;for(var c in r)if("1"!==c){if("0"===c){l=0;break}if(r[c]*=i.n,r[c]%i.d!=0)return null;r[c]/=i.d,l*=Math.pow(c,r[c])}for(var c in a)if("1"!==c){if(a[c]*=i.n,a[c]%i.d!=0)return null;a[c]/=i.d,d*=Math.pow(c,a[c])}return i.s<0?n(d,l):n(l,d)},equals:function(e,t){return s(e,t),this.s*this.n*i.d==i.s*i.n*this.d},compare:function(e,t){s(e,t);var r=this.s*this.n*i.d-i.s*i.n*this.d;return(0=0;o--)a=a.inverse().add(r[o]);if(Math.abs(a.sub(t).valueOf())0&&(r+=t,r+=" ",i%=a),r+=i,r+="/",r+=a),r},toLatex:function(e){var t,r="",i=this.n,a=this.d;return this.s<0&&(r+="-"),1===a?r+=i:(e&&(t=Math.floor(i/a))>0&&(r+=t,i%=a),r+="\\frac{",r+=i,r+="}{",r+=a,r+="}"),r},toContinued:function(){var e,t=this.n,r=this.d,i=[];if(isNaN(t)||isNaN(r))return i;do{i.push(Math.floor(t/r)),e=t%r,t=r,r=e}while(1!==t);return i},toString:function(e){var t=this.n,r=this.d;if(isNaN(t)||isNaN(r))return"NaN";e=e||15;var i=function(e,t){for(;t%2==0;t/=2);for(;t%5==0;t/=5);if(1===t)return 0;for(var r=10%t,i=1;1!==r;i++)if(r=10*r%t,i>2e3)return 0;return i}(0,r),a=function(e,t,r){for(var i=1,a=function(e,t,r){for(var i=1;t>0;e=e*e%r,t>>=1)1&t&&(i=i*e%r);return i}(10,r,t),n=0;n<300;n++){if(i===a)return n;i=10*i%t,a=10*a%t}return 0}(0,r,i),n=this.s<0?"-":"";if(n+=t/r|0,t%=r,(t*=10)&&(n+="."),i){for(var o=a;o--;)n+=t/r|0,t%=r,t*=10;for(n+="(",o=i;o--;)n+=t/r|0,t%=r,t*=10;n+=")"}else for(o=e;t&&o--;)n+=t/r|0,t%=r,t*=10;return n}},Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,e.exports=d}()},"4b59":function(e,t,r){"use strict";t.a={componentName:"needSchemaLoaded",props:{isWatchLoading:{type:Boolean,default:!1}},data:()=>({isLoading:!1,loadingToast:null,isWatchLoadingData:!1}),computed:{customClass(){return this.isLoading?"rt-relation-dialog plat-standard-dialog":"rt-relation-dialog plat-standard-dialog plat-standard-loading-dialog"},isShowClass(){return this.isWatchLoadingData?this.isLoading?"":"plat-base-loading-dialog":""}},watch:{dialogVisible:function(e,t){this.createListening(e)},isWatchLoading:{handler(e,t){this.isWatchLoadingData=e},immediate:!0}},methods:{schemaLoaded(){this.closeLoading(),this.$nextTick(()=>{this.isLoading=!0})},createListening(e){(this.isWatchLoadingData||this.isLoading)&&(e?(rt.hideLoadingToast(),this.closeLoading(),this.openLoading(),this.$on("schemaLoaded",this.schemaLoaded)):(this.isLoading=!1,this.closeLoading(),this.$off("schemaLoaded",this.schemaLoaded)))},openLoading(){let e={};e.text=this.$_t("main.languageLoading","正在加载"),e.size="large",e.textColor="neutralRegular",e.background="rgba(255,255,255,0)",e.type=1,e.hiddenMask=!1,e.fullscreen=!0,this.loadingToast||(this.loadingToast=this.$loading(e))},closeLoading(){this.loadingToast&&this.loadingToast.close(),this.loadingToast=null}}}},"4baa":function(e,t,r){"use strict";r("507c")},"4bdd":function(e,t,r){"use strict";r("5c1c")},"4bf8":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-plat-list-header-wrapper[data-v-354b6f30]{background:#fff}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-row{display:flex;background:rgba(246,247,248,.75);margin:0!important;padding-right:12px;border-radius:4px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-row .rtxpc-col:last-child{padding-bottom:12px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form{flex:1}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .rtxpc-form-item__label{max-width:50%}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .rtxpc-is-label-slot .operate-span{width:100%;min-width:60px;margin-left:8px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .plat-filter-clear-btn{cursor:pointer}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .rtxpc-form-item__content{height:27px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .rtxpc-is-label-slot:not(.is-label-right-slot){flex:1;max-width:100%!important}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .is-label-right-slot{position:static}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .rtxpc-form .rt-daterangepicker{background:#fff}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition{display:flex;align-items:center;flex-wrap:wrap;max-width:100%}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition .rt-daterangepicker span{padding-left:0;padding-right:0}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition .grid-form-filter-item{margin-right:24px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition .grid-form-filter-item:nth-last-of-type(2){margin-right:16px}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition .rtxpc-form-item__content{max-width:100%}.rt-plat-list-header-wrapper[data-v-354b6f30] .grid-filter-condition .grid-form-filter-condition .grid-filter-button-wrapper{display:flex;align-items:center;margin-top:12px;height:27px}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rtxpc-header-icon{margin-right:8px}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-title{display:flex}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-title .plat-list-header-title-text{line-height:32px;white-space:nowrap;color:#1d2129;font-size:16px;font-weight:600}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-title .rt-header-icon-wrapper{padding:0;background:#2563eb;border-radius:4px;height:32px;width:32px;display:flex;align-items:center;justify-content:center;margin-right:8px}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-title .rt-header-icon-wrapper .rt-icon{display:flex;flex-direction:row;align-content:center;margin:auto}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-button{display:flex;align-items:center}.rt-plat-list-header-wrapper[data-v-354b6f30] .rt-list-header-top .rt-plat-list-header-button .rt-button-list .rt-header-button-group{height:auto}",""]),e.exports=t},"4c46":function(e,t,r){var i=r("afae");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e8c188e2",i,!0,{sourceMap:!1,shadowMode:!1})},"4c47":function(e,t){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(e){for(var t=1;tdiv[data-v-1d205968]{margin-top:8px}.fetch-entity .fetch-filter-wraper .label[data-v-1d205968]{margin-top:6px;margin-right:2px;font-size:14px;color:#627084}.fetch-entity .fetch-add-wraper[data-v-1d205968]{min-width:220px;max-width:300px}",""]),e.exports=t},"4e81":function(e,t,r){var i=r("a4d2");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("39d8bef4",i,!0,{sourceMap:!1,shadowMode:!1})},"4ea2":function(e,t,r){"use strict";r("52e9")},"4eb4":function(e,t,r){var i=r("71ce");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("159f102e",i,!0,{sourceMap:!1,shadowMode:!1})},"4ee3":function(e,t,r){"use strict";r("e2fb")},"4ef3":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat_echart_dialog .plat-chart-dialog-title-right .icon-close[data-v-7e477608]{color:#989fb3;margin-left:8px}.plat_echart_dialog .plat-chart-dialog-title-right .icon-close[data-v-7e477608]:hover{color:#5182ef;cursor:pointer}",""]),e.exports=t},"507c":function(e,t,r){var i=r("687c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("08d2bf1a",i,!0,{sourceMap:!1,shadowMode:!1})},"50e1":function(e,t,r){var i=r("eb71");function a(e){var t,r=i.spaceIndex(e);return t=-1===r?e.slice(1,-1):e.slice(1,r+1),"/"===(t=i.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function n(e){return"0;t--){var r=e[t];if(" "!==r)return"="===r?t:-1}}function c(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,r){"use strict";var i="",o=0,s=!1,l=!1,d=0,c=e.length,u="",p="";e:for(d=0;d"===h||d===c-1){i+=r(e.slice(o,s)),u=a(p=e.slice(s,d+1)),i+=t(s,i.length,u,p,n(p)),o=d+1,s=!1;continue}if('"'===h||"'"===h)for(var f=1,m=e.charAt(d-f);""===m.trim()||"="===m;){if("="===m){l=h;continue e}m=e.charAt(d-++f)}}else if(h===l){l=!1;continue}}return o{"newTabs"===e.itemName&&(t.list=Array.from(new Set(t.list.concat(e.list))))}),o.addProp("formRulesExtra",t.list)}o.addProp("relationFilterValue",r.objectId);const s=n.showRelatedButton&&1===r.formStatus;if(o.addProp("showRelatedButton",s),o.ref=r.FormId+"_newTabsRef",o.addProp("lazy",n.lazy),o.addProp("shadow",!1),o.addProp("rcTabPaneNode",r.relationTab.rcTabPaneNode),o.addProp("objectTypeName",r.objectTypeName),r.relationTab.currentName?o.addProp("currentName",r.relationTab.currentName):o.addProp("currentName",r.tabIndexs[this.id]||"0"),o.addAttr("vnodeCid",this.id),o.addProp("fromEntityData",r.editForm),o.addProp("formStatus",r.formStatus),!r.isPrint){const e=r.__collectStickyDic[i.b.NewTabs];o.addProp("isSticky",e),e&&o.addClass("is-sticky")}o.addProp("formHeaderId",r.__collectStickyDic[i.b.formheader+"_id"]),o.addProp("currentId",this.id),o.addProp("objectId",r.objectId),o.addProp("stepsId",r.__collectStickyDic[i.b.Steps+"_id"]),o.props.fromEntityData.primaryAttribute=r.primaryAttribute,this.attachEventHandlers(o),o.addEventHandler("input",e=>{const t=o.cid;r.tabIndexs[t]=e}),o.addEventHandler("storeTabPane",e=>{r.$set(r.relationTab,"rcTabPaneNode",e)}),o.addEventHandler("storeTabCurrentName",e=>{r.$set(r.relationTab,"currentName",e)}),this.buildVNode(o,t),this.buildTabName(t),this.appendNode(e,o,t),this.visibleChildren=[],this.addChildByPermission(o,t),o.addProp("visibleChildren",this.visibleChildren)}collectStickyDic(e){this.parent&&this.parent.$nodetype===i.b.Form&&(e.thisVue.__collectStickyDic[i.b.NewTabs+"_id"]=this.id,e.thisVue.__collectStickyDic[i.b.Tabs]=!1)}}s(l,"$bindNodeType",i.b.NewTabs)},"59f6":function(e,t,r){var i=r("63d5");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("cb32b6c0",i,!0,{sourceMap:!1,shadowMode:!1})},"5b8d":function(e,t,r){"use strict";r("1533")},"5bdc":function(e,t,r){"use strict";r("789f")},"5bf2":function(e,t,r){"use strict";r("9340")},"5c1c":function(e,t,r){var i=r("d245");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("606b5150",i,!0,{sourceMap:!1,shadowMode:!1})},"5c6f":function(e,t,r){"use strict";r("3a71")},"5ce7":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-48cfbeb6]{display:none}",""]),e.exports=t},"5d12":function(e,t,r){"use strict";function i(e){const t=s();e.createdon=Date.now(),localStorage.setItem(`token_${t}${l()}`,JSON.stringify(e))}function a(){const e=s();try{const t=localStorage.getItem(`token_${e}${l()}`);return t?JSON.parse(t):null}catch(e){return null}}function n(){const e=s();try{const t=localStorage.getItem("token_"+e);return t?JSON.parse(t):null}catch(e){return null}}function o(e){return new Promise((t,r)=>{try{if(window.__PLAT_TOKEN_REFRESHING__)return r();if(!e||!e.endpoints||!e.clientId)return r();window.__PLAT_TOKEN_REFRESHING__=!0;const n=new XMLHttpRequest;let o=e.endpoints.token();n.open("POST",o,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.withCredentials=!0;const s=a();let l="grant_type=refresh_token&refresh_token="+(s?s.refresh_token:"");l+="&client_id="+encodeURIComponent(e.clientId),n.onreadystatechange=()=>{if(4==n.readyState)if(200==n.status){let r=JSON.parse(n.responseText);r.idpHint=e.config.idpHint,i(r),window.__PLAT_TOKEN_REFRESHING__=!1,t(r)}else 0==n.status?t(0):(window.__PLAT_TOKEN_REFRESHING__=!1,r(n))},n.send(l)}catch(e){r(),window.__PLAT_TOKEN_REFRESHING__=!1}})}function s(){if(function(){let e=localStorage.serverAddress;return!(!e||!e.startsWith("http"))}())return localStorage.keycloak_realm;const e=location.pathname,t=e.toLowerCase();let r="";return(t.startsWith("/t/")||t.startsWith("/p/")||t.startsWith("/s/"))&&(r=e.substring(3).split("/")[0]),r||null}function l(){return window.$kcScope$?"_"+window.$kcScope$:""}r.r(t),r.d(t,"setTokenResponse",(function(){return i})),r.d(t,"getTokenResponse",(function(){return a})),r.d(t,"getTokenResponseWithoutSuffix",(function(){return n})),r.d(t,"kcRefreshToken",(function(){return o})),r.d(t,"getTenantCode",(function(){return s}))},"5dc1":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-grid.plat-grid[data-v-fd23771c]{margin-top:10px;background-color:#fff}.rt-grid.plat-grid .plat-grid-footer[data-v-fd23771c]{display:flex;justify-content:center}.rt-grid.plat-grid .plat-grid-footer[data-v-fd23771c] .el-pagination{padding:8px 0}.rt-grid.plat-grid .rt-grid__moresearch[data-v-fd23771c]{padding:0 16px}.rt-grid.plat-grid .rt-grid__moresearch .plat-grid-elcol[data-v-fd23771c]{float:right;text-align:right}.rt-grid.plat-grid .rt-grid__header[data-v-fd23771c]{padding:5px 20px;border-bottom:1px solid #ccc;height:34px}.rt-grid.plat-grid .rt-grid__header .plat-grid-quick-search[data-v-fd23771c]{float:right;width:20%;margin-top:6px}.rt-grid.plat-grid .rt-grid__header .plat-grid-more-btn[data-v-fd23771c]{float:right;margin-left:20px;padding:0 10px;height:26px;margin-top:6px}.rt-grid.plat-grid .rt-grid__header .plat-grid-more-btn i[data-v-fd23771c]{font-size:10px}.rt-grid.plat-grid .rt-grid__header .rt-toolbar[data-v-fd23771c]{display:inline-block;margin-top:5px}.rt-grid.plat-grid .rt-grid__header[data-v-fd23771c] .el-input input{height:26px}.rt-grid.plat-grid .rt-grid__header[data-v-fd23771c] .el-input.el-input-group.el-input-group--append.el-input--suffix .el-input__suffix{display:flex;align-items:center}.rt-grid.plat-grid .rt-grid__header[data-v-fd23771c] .el-input.el-input-group.el-input-group--append.el-input--suffix .el-input__suffix .el-input__suffix-inner{display:flex;align-items:center;justify-content:center}.rt-grid.plat-grid .rt-grid__body[data-v-fd23771c]{padding:20px 20px 0 20px}",""]),e.exports=t},"5de2":function(e,t,r){var i=r("95c2");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("61f2b19b",i,!0,{sourceMap:!1,shadowMode:!1})},"5e38":function(e,t,r){var i=r("bda0"),a=r("50e1"),n=r("3b16");function o(e,t){return new n(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=n,function(){for(var e in i)t[e]=i[e];for(var r in a)t[r]=a[r]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},"5e5a":function(e,t,r){var i=r("25b7");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1213a1f6",i,!0,{sourceMap:!1,shadowMode:!1})},"5e9f":function(e,t,r){var i=r("b8cc");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1ce0eeaf",i,!0,{sourceMap:!1,shadowMode:!1})},"5f56":function(e,t,r){"use strict";r("cf2d")},"5f72":function(e,t,r){"use strict";r("b77d")},"5f7b":function(e,t,r){"use strict";var i;!function(r){function a(){throw SyntaxError("Invalid Param")}function n(e,t){var r=Math.abs(e),i=Math.abs(t);return 0===e?Math.log(i):0===t?Math.log(r):3e3>r&&3e3>i?.5*Math.log(e*e+t*t):(e/=2,t/=2,.5*Math.log(e*e+t*t)+Math.LN2)}function o(e,t){if(!(this instanceof o))return new o(e,t);var r={re:0,im:0};if(null==e)r.re=r.im=0;else if(void 0!==t)r.re=e,r.im=t;else switch(typeof e){case"object":"im"in e&&"re"in e?(r.re=e.re,r.im=e.im):"abs"in e&&"arg"in e?!Number.isFinite(e.abs)&&Number.isFinite(e.arg)?r=o.INFINITY:(r.re=e.abs*Math.cos(e.arg),r.im=e.abs*Math.sin(e.arg)):"r"in e&&"phi"in e?!Number.isFinite(e.r)&&Number.isFinite(e.phi)?r=o.INFINITY:(r.re=e.r*Math.cos(e.phi),r.im=e.r*Math.sin(e.phi)):2===e.length?(r.re=e[0],r.im=e[1]):a();break;case"string":r.im=r.re=0,t=1;var i=0;null===(e=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g))&&a();for(var n=0;nMath.abs(e)?1-e:.5*(Math.exp(e)+Math.exp(-e))},l=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:.5*(Math.exp(e)-Math.exp(-e))};o.prototype={re:0,im:0,sign:function(){var e=this.abs();return new o(this.re/e,this.im/e)},add:function(e,t){return e=new o(e,t),this.isInfinite()&&e.isInfinite()?o.NAN:this.isInfinite()||e.isInfinite()?o.INFINITY:new o(this.re+e.re,this.im+e.im)},sub:function(e,t){return e=new o(e,t),this.isInfinite()&&e.isInfinite()?o.NAN:this.isInfinite()||e.isInfinite()?o.INFINITY:new o(this.re-e.re,this.im-e.im)},mul:function(e,t){return e=new o(e,t),this.isInfinite()&&e.isZero()||this.isZero()&&e.isInfinite()?o.NAN:this.isInfinite()||e.isInfinite()?o.INFINITY:0===e.im&&0===this.im?new o(this.re*e.re,0):new o(this.re*e.re-this.im*e.im,this.re*e.im+this.im*e.re)},div:function(e,t){var r=new o(e,t);if(this.isZero()&&r.isZero()||this.isInfinite()&&r.isInfinite())return o.NAN;if(this.isInfinite()||r.isZero())return o.INFINITY;if(this.isZero()||r.isInfinite())return o.ZERO;e=this.re,t=this.im;var i=r.re,a=r.im;return 0===a?new o(e/i,t/i):Math.abs(i)=e?.5*Math.sqrt(2*(r-e)):Math.abs(t)/Math.sqrt(2*(r+e)),new o(i,0>t?-e:e)},exp:function(){var e=Math.exp(this.re);return new o(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){var e=this.re,t=this.im,r=Math.expm1(e)*Math.cos(t),i=Math.PI/4;return-i>t||t>i?i=Math.cos(t)-1:(i=t*t,i*=i*(i*(i*(i*(i*(i*(i/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-.5),new o(r+i,Math.exp(e)*Math.sin(t))},log:function(){var e=this.re,t=this.im;return new o(n(e,t),Math.atan2(t,e))},abs:function(){var e=this.re,t=this.im,r=Math.abs(e),i=Math.abs(t);return 3e3>r&&3e3>i?e=Math.sqrt(r*r+i*i):(r=e.im){var t=e.re;e.re=-e.im,e.im=t}else t=e.im,e.im=-e.re,e.re=t;return e},atanh:function(){var e=this.re,t=this.im,r=1t?(t=-t,r+="-"):r+="+",r+=" "):0>t&&(t=-t,r+="-"),1!==t&&(r+=t),r+"i"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!(this.isNaN()||this.isFinite())}},o.ZERO=new o(0,0),o.ONE=new o(1,0),o.I=new o(0,1),o.PI=new o(Math.PI,0),o.E=new o(Math.E,0),o.INFINITY=new o(1/0,1/0),o.NAN=new o(NaN,NaN),o.EPSILON=1e-15,void 0===(i=function(){return o}.apply(t,[]))||(e.exports=i)}()},"5f94":function(e,t,r){var i=r("be58");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2c232aec",i,!0,{sourceMap:!1,shadowMode:!1})},"5fb0":function(e,t,r){var i=r("87d9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("bc46451e",i,!0,{sourceMap:!1,shadowMode:!1})},6053:function(e,t,r){"use strict";var i=r("9ab4"),a=r("1b40"),n=r("c40c"),o=r("ef51"),s=r("18fc"),l=r("1e17"),d=r("6f97"),c=r.n(d);let u=class extends(Object(a.c)(l.a)){getFunctionByExpression(e,t){return n.b.getFunctionByExpressionWithCheck(e,t)}dateFormat(e){return null!=e?rt.formatDateTime(e,this.getDateFormat()):""}datetimeFormat(e){return null!=e?rt.formatDateTime(e,this.getDateTimeFormat()):""}checkRolePermissions(e){const t=e.split(","),r=this.$store.state.user.roles;if(r&&r.length>0&&t.length>0)for(const i of r)for(const e of t)if(e==i)return!1;return!0}get isQyWxTenant(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.IsQyWxTenant}get isOpenMillimeter(){return!1}get displayNumbersByPrecision(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.DisplayNumbersByPrecision}get enableTableCellWordWrap(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"===this.$store.state.systemparameter.EnableTableCellWordWrap}get enableMultiCurrency(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"===this.$store.state.systemparameter.EnableMultiCurrency}get numberLocaleCode(){return this.$store.state.user.numberLocaleCode}get direction(){const e=this.$PlatUtils.getTenantCode();return localStorage.getItem(e+"_direction")||""}onDirectionChange(e){const t=c.a.config.get("layout");t.direction!==e&&e&&c.a.config.set("layout",{...t,direction:e})}downloadFile(e){e.url?rt.downloadByLink(e.url):rt.showErrorToast(this.$_t("File_missing","文件已丢失"))}getBlob(e){return new Promise(t=>{const r=new XMLHttpRequest;e.startsWith("http")||(e=rt.getBaseUrl()+e),r.open("GET",e,!0),r.responseType="blob",r.onload=()=>{200===r.status&&t(r.response)},r.send()})}saveAs(e,t){e&&e.size&&e.size>5242880&&rt.showSuccessToast(this.$_t("uploading.tip","正在下载,请稍后"));const r=document.createElement("a");r.href=window.URL.createObjectURL(e),r.style.display="none",r.download=t,r.click()}previewWordTemplateCommon(e,t,r,i=!0,a,n){rt.showLoadingToast(),rt.get("api/WordTemplate/PreviewPdf?objectId="+e+"&templateId="+r+"&entityName="+t+"&isMask="+i+(a?"&ApproveStepId="+a:"")+(n?"&toDoTaskId="+n:"")).then(e=>{if(rt.hideLoadingToast(),!e.startsWith("http")){const t=e.replace("download","inlinedownload");e=rt.getBaseUrl()+t}window.open(e)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}checkPathIsUrl(e){return RegExp(/http/).exec(e)}downLoadAttachment(e,t,r){const i="api/attachment/groupbynotekey?moduleType="+e+"&objectId="+t+"¬ekey="+r;rt.get(i).then(t=>{0!=t.length?t.forEach(t=>{let r=rt.getBaseUrl()+"api/attachment/download/"+e+"/"+t.Id;t.OssUrl&&this.checkPathIsUrl(t.OssUrl)&&(r=t.OssUrl),this.downloadFile({url:r,name:t.FileName})}):rt.showErrorToast("未上传附件")})}get isEditable(){return(e,t,r)=>{if(r)return!1;const{isMask:i,RequiredLevel:a,ifEditable:n,ifEditableExpression:s}=e||{};let l=n;if(i||[o.g.ReadOnly,o.g.CalculateFields].includes(a))l=!1;else if(this.enableMultiCurrency||"transactioncurrencyid"!=e.datafieldname){if(!rt.isNullOrWhiteSpace(s))try{l=this.getFunctionByExpression(s,[]).call(t)}catch(e){rt.showErrorToast("subgrid:"+e),l=!1}}else l=!1;return l}}getFieldName(e){return s.a.getFieldName(e)}getText(e,t,r={isMillimeter:this.isOpenMillimeter,options:[],precision:this.precision,dataType:this.dataType,dateTimeFormat:this.dateTimeFormat,displayNumbersByPrecision:this.displayNumbersByPrecision}){const i={dateFormat:this.getDateFormat(),dateMinuteFormat:this.getDateMinuteFormat(),dateTimeFormatStr:this.getDateTimeFormat(),localeFormatCode:this.numberLocaleCode};return s.a.getText(e,t,{...i,...r})}getCustomText(e,t,r){const i={dateFormat:this.getDateFormat(),dateMinuteFormat:this.getDateMinuteFormat(),localeFormatCode:this.numberLocaleCode};return s.a.getCustomText(e,t,{...i,...r})}orderTransfer(e){window.open(this.$router.resolve({name:"VForm3",params:{entityName:e.targetEntityName,formLogicalName:e.targetFormLogicalName},query:{fromEntityName:e.sourceEntityName,targetAttributeName:e.targetAttributeName,fromEntityId:e.sourceObjectId}}).href,"_blank")}};Object(i.__decorate)([Object(a.d)()],u.prototype,"dataType",void 0),Object(i.__decorate)([Object(a.d)()],u.prototype,"dateTimeFormat",void 0),Object(i.__decorate)([Object(a.d)()],u.prototype,"precision",void 0),Object(i.__decorate)([Object(a.g)("direction",{immediate:!0})],u.prototype,"onDirectionChange",null),u=Object(i.__decorate)([a.a],u),t.a=u},6060:function(e,t,r){"use strict";var i=r("8bbf"),a=r.n(i),n={name:"contextmenu-submenu",data:()=>({CLASS_MENU:"contextmenu_menu",CLASS_MENU_ITEM:"contextmenu_menu_item",CLASS_MENU_ITEM_CLICKABLE:"contextmenu_menu_item_clickable",CLASS_MENU_ITEM_UNCLICKABLE:"contextmenu_menu_item_unclickable",activeSubmenu:{index:null,instance:null},items:[],position:{x:0,y:0,width:0,height:0},style:{left:0,top:0,zIndex:2,minWidth:150},customClass:null,visible:!1,hasIcon:!1,openTrend:"right"}),mounted(){this.visible=!0;for(let e of this.items)if(e.icon){this.hasIcon=!0;break}this.$nextTick(()=>{const e=document.documentElement.clientWidth,t=document.documentElement.clientHeight,r=this.$refs.menu,i=r.offsetWidth,a=r.offsetHeight;("left"===this.openTrend?this.leftOpen:this.rightOpen)(e,t,i),this.style.top=this.position.y,this.position.y+a>t&&(0===this.position.height?this.style.top=this.position.y/t>.5?this.position.y-a:this.position.y:this.style.top=t-a)})},methods:{leftOpen(e,t,r){this.style.left=this.position.x-r,this.openTrend="left",this.style.left<0&&(this.openTrend="right",0===this.position.width?this.style.left=0:this.style.left=this.position.x+this.position.width)},rightOpen(e,t,r){this.style.left=this.position.x+this.position.width,this.openTrend="right",this.style.left+r>e&&(this.openTrend="left",0===this.position.width?this.style.left=e-r:this.style.left=this.position.x-r)},enterItem(e,t,r){if(!this.visible)return;if(this.activeSubmenu.instance){if(this.activeSubmenu.index===r)return;this.activeSubmenu.instance.close(),this.activeSubmenu.instance=null,this.activeSubmenu.index=null}if(!t.children)return;const i=e.target.getBoundingClientRect(),n=a.a.component("contextmenu-submenu");this.activeSubmenu.index=r,this.activeSubmenu.instance=new n,this.activeSubmenu.instance.items=t.children,this.activeSubmenu.instance.openTrend=this.openTrend,this.activeSubmenu.instance.position={x:i.x+3,y:i.y+-8,width:i.width-6,height:i.height- -16},this.activeSubmenu.instance.style.minWidth="number"==typeof t.minWidth?t.minWidth:this.style.minWidth,this.activeSubmenu.instance.style.zIndex=this.style.zIndex,this.activeSubmenu.instance.customClass="string"==typeof t.customClass?t.customClass:this.customClass,this.activeSubmenu.instance.$mount(),document.body.appendChild(this.activeSubmenu.instance.$el)},itemClick(e){if(this.visible)return!e||e.disabled||e.hidden||"function"!=typeof e.onClick?void 0:e.onClick()},close(){this.visible=!1,this.activeSubmenu.instance&&this.activeSubmenu.instance.close(),this.$nextTick(()=>{this.$destroy()})}}},o=(r("35f8"),r("ed17"),r("0c7c")),s=Object(o.a)(n,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("transition",{attrs:{name:"contextmenu-submenu-fade"}},[e.visible?r("div",{ref:"menu",class:[e.CLASS_MENU,"menu",e.customClass],style:{left:e.style.left+"px",top:e.style.top+"px",minWidth:e.style.minWidth+"px",zIndex:e.style.zIndex},on:{contextmenu:function(e){return e.preventDefault()}}},[r("div",{staticClass:"menu_body"},[e._l(e.items,(function(t,i){return[t.hidden?e._e():[t.disabled?r("div",{key:i+"_disabled",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__disabled",t.divided?"menu_item__divided":null]},[e.hasIcon?r("div",{staticClass:"menu_item_icon"},[t.icon?r("i",{class:t.icon}):e._e()]):e._e(),r("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),r("div",{staticClass:"menu_item_expand_icon"})]):t.children?r("div",{key:i+"_children",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__available",e.activeSubmenu.index===i?"menu_item_expand":null,t.divided?"menu_item__divided":null],on:{mouseenter:function(r){return e.enterItem(r,t,i)}}},[e.hasIcon?r("div",{staticClass:"menu_item_icon"},[t.icon?r("i",{class:t.icon}):e._e()]):e._e(),r("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),r("div",{staticClass:"menu_item_expand_icon"},[e._v("▶")])]):r("div",{key:i,class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_CLICKABLE,"menu_item","menu_item__available",t.divided?"menu_item__divided":null],on:{mouseenter:function(r){return e.enterItem(r,t,i)},click:function(r){return e.itemClick(t)}}},[e.hasIcon?r("div",{staticClass:"menu_item_icon"},[t.icon?r("i",{class:t.icon}):e._e()]):e._e(),r("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),r("div",{staticClass:"menu_item_expand_icon"})])]]}))],2)]):e._e()])}),[],!1,null,"2cf38434",null).exports;function l(e){let t=[];for(let r of document.getElementsByClassName(e)||[])t.push(r);return t}a.a.component("contextmenu-submenu",s);class d{constructor(e){const t=a.a.component("contextmenu-submenu");if(this.instance=new t,this.instance.items=e.items,this.instance.position={x:e.event&&e.event.clientX||e.x||0,y:e.event&&e.event.clientY||e.y||0,width:0,height:0},e.minWidth&&(this.instance.style.minWidth=e.minWidth),e.zIndex&&(this.instance.style.zIndex=e.zIndex),this.instance.customClass=e.customClass,this.instance.$mount(),window.__POWERED_BY_QIANKUN__){const e=document.getElementById("subappcontainer");e&&e.children&&e.children.length>0&&document.getElementById("subappcontainer").children[0].appendChild(this.instance.$el)}else document.body.appendChild(this.instance.$el);this.addListener()}mousewheelListener(e){this.close()}mouseDownListener(e){let t=e.target;const r=l("contextmenu_menu");for(;!r.find(e=>e===t)&&t.parentElement;)t=t.parentElement;r.find(e=>e===t)||this.close()}mouseClickListener(e){let t=e.target;const r=l("contextmenu_menu"),i=l("contextmenu_menu_item"),a=l("contextmenu_menu_item_unclickable");for(;!r.find(e=>e===t)&&!i.find(e=>e===t)&&t.parentElement;)t=t.parentElement;if(i.find(e=>e===t)){if(0!==e.button||a.find(e=>e===t))return;this.close()}else r.find(e=>e===t)||this.close()}addListener(){this.mouseClickListenerProxy=e=>this.mouseClickListener(e),this.mouseDownListenerProxy=e=>this.mouseDownListener(e),this.mousewheelListenerProxy=e=>this.mousewheelListener(e),document.addEventListener("click",this.mouseClickListenerProxy),document.addEventListener("mousedown",this.mouseDownListenerProxy),document.addEventListener("mousewheel",this.mousewheelListenerProxy)}removeListener(){document.removeEventListener("click",this.mouseClickListenerProxy),document.removeEventListener("mousedown",this.mouseDownListenerProxy),document.removeEventListener("mousewheel",this.mousewheelListenerProxy)}close(){this.removeListener(),this.instance.close()}}let c=({text:e="",docTitle:t="",open:r,baseUrl:i="",url:n="",fullUrl:o="",urlData:s=[]})=>{window.event.preventDefault();let l=window.getSelection().toString();p({items:[{label:a.a.prototype.$_t("common.linkclick.newtab","在新标签页中打开标签"),onClick:()=>{if(r&&"function"==typeof r)r.call(void 0);else if(o)rt.openNewLabel({url:o});else if(n){if(i=i||window.location.href.replace(window.location.hash,"")+"#/","function"==typeof n&&!(n=Array.isArray(s)&&s.length>0?n(...s):n(!0)))return;n.startsWith("http://")||n.startsWith("https://")||(n=i+n),rt.openNewLabel({url:n})}}},{label:a.a.prototype.$_t("common.linkclick.copy","复制"),onClick:t=>{if(e=l||e||"")try{let t=document.createElement("textarea");document.body.appendChild(t),t.select(),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t),window.rt.showSuccessToast((void 0).$_t("common.copySuccess","复制成功"))}catch(e){}}}],event:event,customClass:"custom-class",zIndex:99,minWidth:230})},u=null;const p=function(e){p.destroy(),u=new d(e)};function h(e){e.prototype.$contextmenu=p,e.prototype.$rtContextmenu=c}p.destroy=function(){u&&(u.close(),u=null)},window&&window.Vue&&h(window.Vue),t.a={install:h,contextmenu:p,rtContextmenu:c}},"608a":function(e,t,r){var i=r("5370");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6c0827f2",i,!0,{sourceMap:!1,shadowMode:!1})},"60da":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-4830737f]{display:none}[data-v-4830737f] .plat-standard-dialog .el-dialog__body{overflow:unset}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(70vh - 47px);overflow:hidden;display:flex;flex-direction:column}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode>.apaas-vlist-wrapper{height:100%;overflow-y:auto}[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog{height:unset}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(100vh - 87px)}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(100vh - 147px);overflow-y:auto}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(80vh - 47px)}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(80vh - 107px);overflow-y:auto}.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(60vh - 47px)}.rt-dialog-small[data-v-4830737f] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(60vh - 107px);overflow-y:auto}.rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__inner[data-v-4830737f]{padding-left:24px}.rc-base-lookup.plat-base-lookup.hasprefixicon .jumpSpan[data-v-4830737f]{left:24px;max-width:calc(100% - 58px)}.rc-base-lookup.plat-base-lookup .plat-base-input[data-v-4830737f]{width:100%}.rc-base-lookup.plat-base-lookup .plat-base-input .el-input__suffix .rt-icon[data-v-4830737f]{align-items:center}.rc-base-lookup.plat-base-lookup .rc-base-lookup-add[data-v-4830737f]{cursor:pointer;position:absolute;bottom:24px;right:0;display:flex;color:#2563eb;font-size:13px;align-items:center}.rc-base-lookup.plat-base-lookup .rc-base-lookup-add .rt-icon[data-v-4830737f]{color:#2563eb;margin-right:4px;display:flex;align-items:center}.rc-base-lookup.plat-base-lookup .lookupvalue[data-v-4830737f]{height:28px;box-sizing:border-box;border-bottom:1px solid #d3d9de;position:relative;display:flex;align-items:center}.rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-4830737f]{top:0;bottom:0;max-width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:27px;position:absolute;color:#2563eb;height:unset;font-size:13px;background:#fff;cursor:pointer}.rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-4830737f]:hover{text-decoration:underline;color:#5182ef}.rc-base-lookup.plat-base-lookup .lookupvalue .suffix-icon-wrap[data-v-4830737f]{height:28px;display:flex;align-items:center;position:absolute;right:8px}.rc-base-lookup.plat-base-lookup .lookupvalue .suffix-icon-wrap .rt-icon.lookup[data-v-4830737f]{display:flex;align-items:center;color:#363d44;cursor:pointer}.rc-base-lookup.plat-base-lookup .lookupvalue .suffix-icon-wrap .suffix-icon-clearicon[data-v-4830737f]{display:none;cursor:pointer;margin-right:8px}.is-border-form.el-form .is-error .rc-base-lookup.plat-base-lookup[data-v-4830737f] input{outline:none;border-color:#d54d47}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f]{position:relative}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-lookup-qywx[data-v-4830737f]{height:28px;color:#143e81;line-height:28px;border-bottom:1px solid #e8ecfc}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-lookup-qywx .el-input__suffix[data-v-4830737f]{cursor:pointer}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-base-lookup-add[data-v-4830737f]{cursor:pointer;position:absolute;bottom:42px;right:0;display:flex;color:#2563eb;font-size:13px;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-base-lookup-add .rt-icon[data-v-4830737f]{color:#2563eb;margin-right:4px;display:flex;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f] input{padding-left:8px;border-radius:4px;width:100%}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f] .plat-base-input{width:100%}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f] .plat-base-input .el-input--prefix input{padding-left:24px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f] .plat-base-input .el-input__suffix{right:8px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-4830737f] .plat-base-input .el-input__suffix .rt-icon{color:#363d44;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue[data-v-4830737f]{border-radius:4px;height:35px;box-sizing:border-box;border:1px solid #d6dbe1;position:relative;display:flex;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue[data-v-4830737f]:hover{border:1px solid #5182ef}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue:hover .jumpSpan[data-v-4830737f]{max-width:calc(100% - 48px)}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue:hover .suffix-icon-wrap .suffix-icon-clearicon[data-v-4830737f]{display:block}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-4830737f]{left:8px;top:0;bottom:0;max-width:calc(100% - 25px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:35px;position:absolute;color:#2563eb;height:unset;font-size:13px;background:#fff;cursor:pointer}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-4830737f]:hover{text-decoration:underline;color:#5182ef}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .suffix-icon-wrap[data-v-4830737f]{height:35px;display:flex;align-items:center;position:absolute}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .suffix-icon-wrap .rt-icon.lookup[data-v-4830737f]{color:#363d44;cursor:pointer;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.select_icon[data-v-4830737f]{left:8px;height:35px;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue.isreadOnly[data-v-4830737f]{background:#f0f2f4;border:none;color:#0b0c0e}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue.isreadOnly .jumpSpan[data-v-4830737f]{background:none;text-decoration:none}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .lookupvalue[data-v-4830737f]{padding-left:8px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon input[data-v-4830737f]{padding-left:24px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .rt-icon[data-v-4830737f]{top:unset}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__prefix[data-v-4830737f]{display:flex;align-items:center;justify-content:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__prefix .rt-icon[data-v-4830737f]{left:8px;position:relative;top:0}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .jumpSpan[data-v-4830737f]{left:32px;max-width:calc(100% - 58px);line-height:32px}",""]),e.exports=t},"60ef":function(e,t,r){var i=r("4050");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7444048c",i,!0,{sourceMap:!1,shadowMode:!1})},"60f1":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-xpc-picklist-clearicon.rt-icon.rt-icon-font{right:8px!important}.mapping-rules-card .apaas-content.apaas-content{padding:0}",""]),e.exports=t},6116:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".common-cascader.plat-common-cascader[data-v-5e17862a]{line-height:unset}.common-cascader.plat-common-cascader[data-v-5e17862a] .el-input__prefix,.common-cascader.plat-common-cascader[data-v-5e17862a] .el-input__suffix{color:#a9c2e8}.common-cascader.plat-common-cascader[data-v-5e17862a] .el-input input{padding-left:8px}.is-border-form.el-form .is-error .common-cascader.plat-common-cascader[data-v-5e17862a] input{outline:none;border-color:#d54d47}",""]),e.exports=t},6125:function(e,t,r){var i=r("1212"),a=r("b838"),n=r("a49e"),o=r("cae0"),s=r("7aec"),l=r("89ed"),d=r("a49d");d.alea=i,d.xor128=a,d.xorwow=n,d.xorshift7=o,d.xor4096=s,d.tychei=l,e.exports=d},"612f":function(e,t,r){var i=r("3df0");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("16e66aa5",i,!0,{sourceMap:!1,shadowMode:!1})},"61c4":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".address-parse.plat-address-parse[data-v-3e18da92],.address-parse.plat-address-parse .parseInput[data-v-3e18da92]{position:relative}.address-parse.plat-address-parse .parseInput .address-parse-row[data-v-3e18da92]{flex:1}.address-parse.plat-address-parse .parseInput .address-parse-row[data-v-3e18da92] .el-input__inner{padding-right:50px}.address-parse.plat-address-parse .parseInput .address-parse-row[data-v-3e18da92] .el-input__suffix .rt-icon{display:none}.address-parse.plat-address-parse .parseInput .address-parse-row[data-v-3e18da92] .el-input__suffix .el-icon-circle-close{margin-top:3px;margin-right:43px}.address-parse.plat-address-parse .parseInput .address-parse-row[data-v-3e18da92] .el-col{min-height:unset;margin-bottom:0}.address-parse.plat-address-parse .parseInput .rt-address-parse-label[data-v-3e18da92]{position:absolute;top:2px;right:1px;bottom:3px;display:flex;align-items:center;justify-content:center;padding:0 8px;font-size:13px;background-color:#fff;border-left:1px solid #d3d9de}.address-parse.plat-address-parse .parseInput .rt-address-parse-label[data-v-3e18da92]:hover{cursor:pointer}.address-parse.plat-address-parse .parseInput[data-v-3e18da92] .rt-xpc-input-clearicon{transform:translate(-48px,50%)}.address-parse.plat-address-parse .input-container[data-v-3e18da92]{position:relative;width:100%}",""]),e.exports=t},"61ea":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-remark[data-v-ec78b7ac] .apaas-content{padding:16px}.plat-remark .remark-content[data-v-ec78b7ac]{font-size:13px;font-weight:400;line-height:17px;color:#0b0c0e;word-break:break-word;white-space:pre-wrap}",""]),e.exports=t},6217:function(e,t,r){var i=r("9bb1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e5164292",i,!0,{sourceMap:!1,shadowMode:!1})},6231:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rc-m-lookup.plat-m-lookup.hasprefixicon .el-input__inner[data-v-0e5b7e6a]{padding-left:24px}.rc-m-lookup.plat-m-lookup.hasprefixicon .jumpSpan[data-v-0e5b7e6a]{left:24px;max-width:60%}.is-border-form.el-form .is-error .rc-m-lookup.plat-m-lookup[data-v-0e5b7e6a] input{outline:none;border-color:#d54d47}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .el-autocomplete.plat-m-input[data-v-0e5b7e6a]{width:100%}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .plat-m-icon[data-v-0e5b7e6a]{cursor:pointer}.is-border-form.el-form .rc-m-lookup.plat-m-lookup[data-v-0e5b7e6a] input{padding-left:8px;border-radius:4px}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .el-input__suffix .rt-icon[data-v-0e5b7e6a]{right:8px;position:relative;color:#363d44;align-items:center}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue[data-v-0e5b7e6a]{border-radius:4px;height:35px;box-sizing:border-box;border:1px solid #d6dbe1;position:relative}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .jumpSpan[data-v-0e5b7e6a]{left:8px;top:0;bottom:0;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:35px;position:absolute;color:#2563eb;height:unset;font-size:13px;background:#fff;cursor:pointer}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .jumpSpan[data-v-0e5b7e6a]:hover{text-decoration:underline;color:#5182ef}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .lookupIconWrap[data-v-0e5b7e6a]{height:35px;display:flex;align-items:center}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .rt-icon.select_icon[data-v-0e5b7e6a]{left:8px}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .rt-icon.lookup[data-v-0e5b7e6a]{position:absolute;right:8px;margin-top:0;color:#363d44;cursor:pointer}.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .rt-icon.lookup[data-v-0e5b7e6a],.is-border-form.el-form .rc-m-lookup.plat-m-lookup .lookupvalue .rt-icon.select_icon[data-v-0e5b7e6a]{height:35px;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rc-m-lookup.hasprefixicon input[data-v-0e5b7e6a]{padding-left:24px}.is-border-form.el-form .rc-m-lookup.hasprefixicon .rt-icon[data-v-0e5b7e6a]{top:unset}.is-border-form.el-form .rc-m-lookup.hasprefixicon[data-v-0e5b7e6a] .el-input__prefix{display:flex;align-items:center;justify-content:center}.is-border-form.el-form .rc-m-lookup.hasprefixicon .jumpSpan[data-v-0e5b7e6a]{left:24px;max-width:60%}",""]),e.exports=t},"62d7":function(e,t,r){"use strict";r("59f6")},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},6302:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".avatar-uploader.plat-image-field[data-v-26f91821]{position:relative;width:150px;height:150px;border:1px dashed #d9d9d9;border-radius:4px}.avatar-uploader.plat-image-field .avator-uploader-main[data-v-26f91821]{width:150px;height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;border-radius:6px;cursor:pointer}.avatar-uploader.plat-image-field .avator-uploader-main .avatar-uploader-icon[data-v-26f91821]{margin-bottom:30px}.avatar-uploader.plat-image-field .avator-uploader-main .avatar-uploader-word[data-v-26f91821]{color:#2563eb}.avatar-uploader.plat-image-field .avator-uploader-main:hover .avatar-uploader-word[data-v-26f91821]{color:#5182ef}.avatar-uploader.plat-image-field .avator-uploader-main.is-disabled[data-v-26f91821]{cursor:not-allowed}.avatar-uploader.plat-image-field .avator-uploader-main.is-disabled .avatar-uploader-word[data-v-26f91821]{color:#2563eb}.avatar-uploader.plat-image-field .avator-uploader-main.is-disabled .avatar-uploader-icon[data-v-26f91821],.avatar-uploader.plat-image-field .avator-uploader-main.is-disabled .avatar-uploader-word[data-v-26f91821]{opacity:.5}.avatar-uploader.plat-image-field .avatar[data-v-26f91821]{width:150px;height:150px;display:block;-o-object-fit:contain;object-fit:contain}",""]),e.exports=t},"630f":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"iscontainer",!0),s(this,"VueTag",o.a.SubGrid)}createVNode(e,t){const r=t.targetComponent,a=this.props,n=this.calcReadonly(r,t),o=`subgrid_${this.props.TargetEntityType}_${this.id}`,s=e.addChildByTag(this.VueTag);s.addKey(o+"_"+n),this.buildVNode(s,t),this.attachEventHandlers(s),s.nodeType=this.$nodetype,r.subGridJumpParams&&(r.subGridJumpParams[a.TargetEntityType]={fromEntity:r.editForm,subGridRefAttribute:a.relationFilterAttribute,parentPrimaryAttribute:r.primaryAttribute,fromEntityName:a.relationFilterEntity}),s.ref=o,s.on&&(s.on.subGridChange=r.subGridChange),s.addProp("parentId",r.objectId),s.addProp("parentEntityName",r.objectTypeName),s.addProp("isPreview",r.isPreview),s.addProp("fromEntity",r.editForm),s.addProp("cardTableCol",a.col),s.addProp("columns",a.columns),s.addProp("cardTableRowTitle",a.subgridTitle),s.addProp("objectIdForTiledTable",r.editForm&&r.editForm.$id),s.addProp("id",this.id),s.addProp("isPrint",r.isPrint),s.addProp("subGridRefAttribute",a.relationFilterAttribute),s.addProp("parentPrimaryAttribute",r.primaryAttribute),s.addProp("fromEntityName",a.relationFilterEntity),s.addProp("customerData",r.customerData),s.addProp("fromEntityisMounted",r.__isMounted),s.addProp("approveStepId",r.approveStepId),s.addProp("todoTaskId",r.toDoTaskId);let l="";a.imgPermission?l=a.imgPermission.startsWith("$entity-")||a.imgPermission.startsWith("$attr-")?a.imgPermission.replace(/^[^-{1}]*(?=-{1})-{1}/,""):a.imgPermission.startsWith("https")?a.imgPermission:rt.getBaseUrl()+a.imgPermission:1==a.showStyle?l="plat-icon-orderform-filled":2==a.showStyle?l="plat-icon-table-filled":3==a.showStyle?l="plat-icon-timeline-filled":(5==a.showStyle||10==a.showStyle)&&(l="plat-icon-status-axis-filled"),s.addProp("imgPermission",l),this.calcSubgridIsReadonly(s,t),this.calcSubgridIsRequired(s,t);const d=a,c={formId:d.formid,objectTypeName:d.TargetEntityType,objectId:"",filterAttribute:d.relationFilterAttribute,relationshipName:d.RelationshipName,parentDisplayAttribute:d.parentDisplayAttribute,targetEntityDisplayName:d.targetEntityDisplayName,subgridkey:s.props.id,parentPrimaryAttribute:r.primaryAttribute,subgridIsReadonly:s.props.subgridIsReadonly};s.on.rowDBClick=(e,t,i)=>{r.subgridEditHandler({id:e,tagData:c,formId:t,showStyle:i.showStyle})};let u="";this.props.extendConditions&&(u=r.getFunctionByExpression(this.props.extendConditions).call(r),!u||"object"!=typeof u||0!==Object.keys(u).length&&0!==u.length||(u=""));const p="object"==typeof u?JSON.stringify(u):u;s.on.showRef=e=>{var t,a;this.props.relationshipType!=i.f.Many2Many?null===(t=r.$refs[e])||void 0===t||t.show():null===(a=r.$refs[e])||void 0===a||a.show(this.props.RelationshipName,this.props.relationFilterAttribute,s.props.parentId,p)},s.on.showFormDialog=r.showFormDialog_SubGridRow,s.on.showDialog=r.showDialog,s.on.showDrawer=r.showDrawer,s.on.parentReload=r.load,s.addProp("label",this.getLangLabel(t)),s.addProp("hasEntityImage",a.hasEntityImage),s.addProp("enableSelect",a.enableselect),s.addProp("enableSearch",a.enablesearch);const h=a.ViewId;if(s.addProp("viewId",h),s.addProp("isCustomHeight",a.isCustomHeight),s.addProp("height",a.height),s.addProp("recordsPerPage",a.RecordsPerPage),s.addProp("relationshipName",a.RelationshipName),s.addClass("rt-subgrid-wrapper"),s.addProp("relationFilterAttribute",a.relationFilterAttribute),s.addProp("relationFilterEntity",a.relationFilterEntity),s.addProp("relationshipType",a.relationshipType),s.addProp("hiddenDefaultDiagram",a.hiddendefaultdiagram),s.addProp("datafieldname",a.datafieldname),s.addProp("targetEntityType",a.TargetEntityType),s.addProp("needjump",a.needjump),s.addProp("formid",a.formid),s.addProp("formStatus",r.formStatus),s.addProp("contentFormId",a.contentFormId),this.addChildByPermission(s,t,"toolbar"),s.addProp("showStyle",a.showStyle),s.addProp("showPagination",a.isNeedPage),a.relationshipType==i.f.Many2Many){const r=this.addMultiLookup(e,t,c);s.addProp("manytomanylookupkey",r.cid)}const f=!!rt.isNull(a.isExpand)||a.isExpand;s.addProp("isOpenCollapse",!0),s.addProp("isExpand",f)}buildVNodeTree(e){const t=new a.e("div");return e.FirstDiv=t,this.createVNode(t,e),t}BindAttributes(){const e={},t=this.props;return e.checkall=t.checkall,e.pagingCount=t.pagingCount,e.paging=t.paging,e.jump=t.jump,e.disableJump=t.disableJump,t.jumpFormLogicalName&&t.referencedEntity,t.jumpFormId&&(e.jumpFormId=t.jumpFormId),e.jumpUrlExpression=t.jumpUrlExpression,t.jumpAddFormId&&(e.jumpAddFormId=t.jumpAddFormId),e.jumpAddUrlExpression=t.jumpAddUrlExpression,e.mapJumpUrlExpression=t.mapJumpUrlExpression,e.gridWidth=t.gridWidth,t.requestApi&&(e.requestApi=t.requestApi),e.returntotalrecordcount=t.returntotalrecordcount,e.quickfindcount=t.quickfindcount,e.fixedHead=t.fixedHead,e}addMultiLookup(e,t,r){const n=this.props,s=t.targetComponent,l=new a.e(o.a.rtLookupMultiDialog);this.buildVNode(l,t),l.nodeType=i.b.Manytomanylookup,l.params={...r};const d=s.getSubgridRefKey(l.params);if(l.addKey(l.cid+this.id),l.on.dialogCallback=e=>{s.$refs[d]&&s.$refs[d].saveManyToManyData(e)},n.customRequestUrl){const e=s.getFunctionByExpression(n.customRequestUrl).call(s);e&&e.length>0?n.requestUrl=e:delete n.requestUrl}let c,u;return l.addProp("subgridkey",n.Id),l.addProp("objectTypeName",n.TargetEntityType),l.addProp("location","subgrid"),l.addProp("entity",n.TargetEntityType),l.ref="manytomanylookup_"+l.cid,rt.isNullOrWhiteSpace(n.requestUrl)||l.addProp("customRequestUrl",n.requestUrl),n.manytomany&&(c=n.manytomany.dialogDisplayFields,u=n.manytomany.title),l.addProp("requestUrl","api/vlist/ExecuteQueryForLookUp?queryid="+n.ViewId),l.addProp("displayFields",c),l.addProp("filterFields",""),l.addProp("entity",n.TargetEntityType),l.addProp("title",u),e.addChild(l),l}calcSubgridIsReadonly(e,t){const r=t.targetComponent,i=this.calcReadonly(r,t);e.addProp("subgridIsReadonly",i)}calcSubgridIsRequired(e,t){const r=t.targetComponent,i=this.calcRequired(r,t);e.props.subgridIsReadonly||e.addProp("subgridIsRequired",i)}collectSubgridKey(e){super.collectSubgridKey(e);const t=e.thisVue,r={subgridKey:`subgrid_${this.props.TargetEntityType}_${this.id}`,subgridEntityName:this.props.TargetEntityType,subgridId:this.id};t.allSubgridKey.push(r)}addChildByPermission(e,t,r){const a=this.children.filter(a=>a.props.availableOnPhone!=i.a.MOBILE&&(!this.calcHidden(a,t)&&(a.extendParentInfo(this.parentInfo),this.props.relationshipType===i.f.One2Many&&(a.props.inRequiredGrid=!0),r?a.createVNode(e,t,r):a.createVNode(e,t),!0)));t.PageStatus==i.d.print||a.length||-1===[i.b.SubGrid,i.b.toolbar].indexOf(this.$nodetype)&&(e.isChildrenEmpty=!0)}}s(l,"$bindNodeType",i.b.SubGrid)},6364:function(e,t,r){var i=r("1b6b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("39f2e429",i,!0,{sourceMap:!1,shadowMode:!1})},6379:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".cascader-control-new.plat-cascader-control-new .el-cascader[data-v-3892324e]{width:100%;line-height:unset}.cascader-control-new.plat-cascader-control-new .el-cascader[data-v-3892324e] .el-input__suffix{right:8px}.cascader-control-new.plat-cascader-control-new .el-cascader[data-v-3892324e] .el-input__suffix .el-input__icon:before{color:#99a6b3}.cascader-control-new.plat-cascader-control-new .el-cascader[data-v-3892324e] input{padding-left:8px;outline:none;border:1px solid #d6dbe1;border-radius:2px}.cascader-control-new.plat-cascader-control-new .el-cascader[data-v-3892324e] input.el-input__inner:focus{outline:none;box-shadow:0 0 3px 0 rgba(0,114,230,.5);border:1px solid #5182ef}",""]),e.exports=t},6382:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-sass-grid .grid-header_btn,.rt-sass-grid .grid-header_btn i{color:#2563eb}.rt-sass-grid .el-table td{color:#0b0c0e;cursor:pointer}.rt-sass-grid .el-table th>.cell{color:#363d44;font-weight:550}",""]),e.exports=t},"63a7":function(e,t,r){"use strict";r("7854")},"63d5":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__inner[data-v-355550a3]{padding-left:24px}.rc-base-lookup.plat-base-lookup.hasprefixicon .jumpSpan[data-v-355550a3]{left:24px;max-width:60%}.rc-base-lookup.plat-base-lookup .plat-base-input[data-v-355550a3]{width:100%}.rc-base-lookup.plat-base-lookup .plat-base-input .el-input__suffix .rt-icon[data-v-355550a3]{align-items:center}.rc-base-lookup.plat-base-lookup .rc-base-lookup-add[data-v-355550a3]{cursor:pointer;position:absolute;bottom:24px;right:0;display:flex;color:#2563eb;font-size:13px;align-items:center}.rc-base-lookup.plat-base-lookup .rc-base-lookup-add .rt-icon[data-v-355550a3]{color:#2563eb;margin-right:4px;display:flex;align-items:center}.rc-base-lookup.plat-base-lookup .lookupvalue[data-v-355550a3]{height:28px;box-sizing:border-box;border-bottom:1px solid #d3d9de;position:relative}.rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-355550a3]{top:0;bottom:0;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:27px;position:absolute;color:#2563eb;height:unset;font-size:13px;background:#fff;cursor:pointer}.rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-355550a3]:hover{text-decoration:underline;color:#5182ef}.rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.lookup[data-v-355550a3]{position:absolute;right:0;top:-6px;bottom:0;display:flex;align-items:center;color:#363d44;height:unset;cursor:pointer}.is-border-form.el-form .is-error .rc-base-lookup.plat-base-lookup[data-v-355550a3] input{outline:none;border-color:#d54d47}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-355550a3]{position:relative}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-base-lookup-add[data-v-355550a3]{cursor:pointer;position:absolute;bottom:34px;right:0;display:flex;color:#2563eb;font-size:13px;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .rc-base-lookup-add .rt-icon[data-v-355550a3]{color:#2563eb;margin-right:4px;display:flex;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-355550a3] input{padding-left:8px;border-radius:4px;width:100%}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-355550a3] .plat-base-input{width:100%}.is-border-form.el-form .rc-base-lookup.plat-base-lookup[data-v-355550a3] .el-input__suffix .rt-icon{right:8px;position:relative;color:#363d44;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue[data-v-355550a3]{border-radius:4px;height:35px;box-sizing:border-box;border:1px solid #d6dbe1;position:relative}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-355550a3]{left:8px;top:0;bottom:0;max-width:70%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:35px;position:absolute;color:#2563eb;height:unset;font-size:13px;background:#fff;cursor:pointer}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .jumpSpan[data-v-355550a3]:hover{text-decoration:underline;color:#5182ef}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.select_icon[data-v-355550a3]{left:8px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.lookup[data-v-355550a3]{position:absolute;right:8px;margin-top:0;color:#363d44;cursor:pointer}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.lookup[data-v-355550a3],.is-border-form.el-form .rc-base-lookup.plat-base-lookup .lookupvalue .rt-icon.select_icon[data-v-355550a3]{height:35px;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .lookupvalue[data-v-355550a3]{padding-left:8px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .lookupvalue .rt-icon.select_icon[data-v-355550a3]{margin-top:10px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon input[data-v-355550a3]{padding-left:24px}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .rt-icon[data-v-355550a3]{top:unset}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__prefix[data-v-355550a3]{display:flex;align-items:center;justify-content:center}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .el-input__prefix .rt-icon[data-v-355550a3]{left:8px;position:relative;top:0}.is-border-form.el-form .rc-base-lookup.plat-base-lookup.hasprefixicon .jumpSpan[data-v-355550a3]{left:24px;max-width:60%}.is-border-form.el-form .plat-multilookup .rt-multiplelookup[data-v-355550a3]{position:relative}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main[data-v-355550a3]{position:absolute;bottom:4px;left:8px;max-width:calc(100% - 62px);white-space:nowrap;display:flex}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag-extra[data-v-355550a3]{white-space:nowrap}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag[data-v-355550a3]{white-space:nowrap;display:inline-flex;align-items:center;position:relative;z-index:2}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-close[data-v-355550a3]{position:unset;height:16px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-text[data-v-355550a3]{--opacitie:0.5;border-radius:2px;min-height:24px;padding:0 8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;line-height:23px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main[data-v-355550a3]:after{clear:both;display:block;content:""}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-text.is-primary[data-v-355550a3]{color:#2563eb;margin-left:10px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .choiceTag[data-v-355550a3]{float:left}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .choiceTag .__icon-right .rt-icon[data-v-355550a3]{position:unset;height:unset}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .rt-icon[data-v-355550a3]{margin-right:0;cursor:pointer}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .rt-icon.clear-icon[data-v-355550a3]{position:absolute;right:32px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete input[data-v-355550a3]{padding-left:8px;outline:none;border:1px solid #d6dbe1;border-radius:2px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete input.el-input__inner[data-v-355550a3]:focus{outline:none;box-shadow:0 0 3px 0 rgba(0,114,230,.5);border-color:#5182ef}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete .el-input__prefix[data-v-355550a3]{margin-left:8px}',""]),e.exports=t},"63eb":function(e,t,r){"use strict";r("092a")},"63f0":function(e,t,r){var i=r("e62a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0874cd8e",i,!0,{sourceMap:!1,shadowMode:!1})},"64c5":function(e,t,r){"use strict";r.r(t),r.d(t,"chartThemeVariables",(function(){return a}));var i=r("823c");const a={stylish_white_old:{echartsColor:[i.PLATFORM_COLOR_FL_GB,i.PLATFORM_COLOR_FL_C,i.PLATFORM_COLOR_FL_SY,i.PLATFORM_COLOR_FL_DR,i.PLATFORM_COLOR_FL_DB,i.PLATFORM_COLOR_FL_GP,i.PLATFORM_COLOR_FL_SO,i.PLATFORM_COLOR_FL_DG,i.PLATFORM_COLOR_FL_M,i.PLATFORM_COLOR_FL_G,i.PLATFORM_COLOR_FL_SB,i.PLATFORM_COLOR_FL_YP,i.PLATFORM_COLOR_FL_LP,i.PLATFORM_COLOR_FL_SO,i.PLATFORM_COLOR_FL_CR,i.PLATFORM_COLOR_FL_NB,i.PLATFORM_COLOR_FL_OG,i.PLATFORM_COLOR_FL_LP1,i.PLATFORM_COLOR_FL_WB,i.PLATFORM_COLOR_FL_CG],textColor:i.NEUTRAL_COLOR_SECONDARY,backgroundTooltipColor:"rgb(255,255,255)",lineBackgroundGradient:["rgba(39, 137, 255, 0.2)","rgba(39, 137, 255, 0)"]},stylish_white:{echartsColor:[i.PLATFORM_COLOR_FL_GB_NEW,i.PLATFORM_COLOR_FL_C_NEW,i.PLATFORM_COLOR_FL_DG_NEW,i.PLATFORM_COLOR_FL_SY_NEW,i.PLATFORM_COLOR_FL_DB_NEW,i.PLATFORM_COLOR_FL_NB_NEW,i.PLATFORM_COLOR_FL_SO_NEW,i.PLATFORM_COLOR_FL_GP_NEW,i.PLATFORM_COLOR_FL_M_NEW,i.PLATFORM_COLOR_FL_G_NEW,i.PLATFORM_COLOR_FL_DR_NEW,i.PLATFORM_COLOR_FL_SB_NEW,i.PLATFORM_COLOR_FL_YP_NEW,i.PLATFORM_COLOR_FL_LP_NEW,i.PLATFORM_COLOR_FL_CR_NEW,i.PLATFORM_COLOR_FL_OG_NEW,i.PLATFORM_COLOR_FL_LO_NEW,i.PLATFORM_COLOR_FL_WB_NEW,i.PLATFORM_COLOR_FL_CG_NEW,i.PLATFORM_COLOR_FL_N_NEW],textColor:i.NEUTRAL_COLOR_SECONDARY,backgroundTooltipColor:"rgb(255,255,255)",lineBackgroundGradient:["rgba(39, 137, 255, 0.2)","rgba(39, 137, 255, 0)"]},smart_blue:{echartsColor:[i.PLATFORM_COLOR_FL_GB,i.PLATFORM_COLOR_FL_C,i.PLATFORM_COLOR_FL_SY,i.PLATFORM_COLOR_FL_CR,i.PLATFORM_COLOR_FL_DB,i.PLATFORM_COLOR_FL_LP,i.PLATFORM_COLOR_FL_SO1,i.PLATFORM_COLOR_FL_DG,i.PLATFORM_COLOR_FL_MG,i.PLATFORM_COLOR_FL_G,i.PLATFORM_COLOR_FL_WB,i.PLATFORM_COLOR_FL_YP,i.PLATFORM_COLOR_FL_NB,i.PLATFORM_COLOR_FL_SO,i.PLATFORM_COLOR_FL_DR,i.PLATFORM_COLOR_FL_CG,i.PLATFORM_COLOR_FL_OG,i.PLATFORM_COLOR_FL_LP1,i.PLATFORM_COLOR_FL_SB,i.PLATFORM_COLOR_FL_GP],textColor:i.DETAIL_BUTTON_BG_COLOR,backgroundTooltipColor:"rgba(11,12,14,0.8)",lineBackgroundGradient:["rgba(39, 137, 255, 0.2)","rgba(39, 137, 255, 0)"]},dark_green:{echartsColor:[i.PLATFORM_COLOR_FL_SG,i.PLATFORM_COLOR_FL_TO,i.PLATFORM_COLOR_FL_B,i.PLATFORM_COLOR_FL_GG,i.PLATFORM_COLOR_FL_DG,i.PLATFORM_COLOR_FL_TB,i.PLATFORM_COLOR_FL_MG,i.PLATFORM_COLOR_FL_T,i.PLATFORM_COLOR_FL_SO1,i.PLATFORM_COLOR_FL_DR,i.PLATFORM_COLOR_FL_WB,i.PLATFORM_COLOR_FL_YP,i.PLATFORM_COLOR_FL_NB,i.PLATFORM_COLOR_FL_CR,i.PLATFORM_COLOR_FL_G,i.PLATFORM_COLOR_FL_LP,i.PLATFORM_COLOR_FL_OG,i.PLATFORM_COLOR_FL_LP1,i.PLATFORM_COLOR_FL_GP,i.PLATFORM_COLOR_FL_SP],textColor:i.DETAIL_BUTTON_BG_COLOR,backgroundTooltipColor:"rgba(11,12,14,0.8)",lineBackgroundGradient:["rgba(53, 255, 244, 0.3)","rgba(53, 255, 244, 0)"]}}},"64e0":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","none")}createVNode(e,t){}}n(o,"$bindNodeType",i.b.TimelineView)},"653f":function(e,t,r){var i=r("61c4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0bc7bb2e",i,!0,{sourceMap:!1,shadowMode:!1})},"664c":function(e,t,r){var i=r("0b14");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e413eaac",i,!0,{sourceMap:!1,shadowMode:!1})},"665f":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i=r("ef51"),a=r("6e3a"),n=r("a829"),o=r("e3bf"),s=r("6f75");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d extends o.a{constructor(e){super(e),l(this,"hideText",!1)}getVueTag(){return s.a.Button}createVNode(e,t,r){const i=t.targetComponent,a=this.getVueTag(),o=new n.e(a),l=this.props;if(this.hideText=this.getIfHideText(e,o,t),o.data.slot=r,"primary"===r&&o.addProp("type","primary"),this.buildVNode(o,t),o.vtext=this.getButtonLangLabel(t,o)||this.props.label||"button","business"===l.operationtype){o.tag="biz-button",o.addProp("appkey",l.appkey),o.addProp("bizOperationName",l.componentname),o.addProp("location",l.location),o.addProp("isbatch",l.isbatch),o.addProp("label",this.getButtonLangLabel(t,o,"bizBtn")||this.props.label||"button"),o.addProp("thisVue",i),o.addProp("controlId",this.id),this.hideText&&o.addProp("hidetext",!0),"gridtable"===o.params.location&&o.addProp("text",!0);const e=o.on,r="before_execute";let a=null;const n=this.events.find(e=>e.name===r);e[r]&&"function"==typeof e[r]&&n&&!rt.isNilOrWhiteSpace(n.handler.script)&&(a=function(){return new Promise((t,a)=>{e[r].call(i,t,a)})},o.addProp("beforeExecuteFunc",a))}if(this.hideText){e.props.hideBtnsCount+=1,o.addProp("label",""),o.addProp("type","default"),o.props.iconName||o.addProp("iconName","rt-saas-new");const t=new n.e(s.a.Tooltip);t.key=this.id,t.addAttr("content",o.vtext),o.vtext="",t.addProp("placement","top"),t.addChild(o),e.addChild(t)}else o.addProp("tooltip",i.$_t(l.annotationLangkey,l.annotation)),e.addChild(o),"primary"===o.slot&&e.addProp("isSave",!0)}registerControlEventHandlers(e){var t;super.registerControlEventHandlers(e);const r=e.thisVue,i=null===(t=this.events)||void 0===t?void 0:t.find(e=>"after_execute"===e.name);if(i){const e=i.handler,t=this.id;if(!t)return;const a=this.createControlEventKey(r,t,i.name),n=[];if("object"==typeof e){null!=e&&e.args&&e.args.length>0&&e.args.forEach(e=>{n.push(e.argName)}),n.push("rt");const t=this.__createScriptHandler(r,n,e.script,i.name,this);i.buildHandler=t,r.$bus.$off(a),r.$PlatUtils.listenerHook(r,a,i.buildHandler)}}}buildVNode(e,t){super.buildVNode(e,t),e.addParams("location",this.props.location),this.adaptType(e),this.attachEventHandlers(e),this.commonButton(e,t),this.extendButton(e,t)}commonButton(e,t){const r=t.targetComponent,i=this.props;e.nodeType=this.$nodetype;const a=this.calcReadonly(r,t);e.addProp("disabled",a),e.addParams("OperationType",i.operationtype),e.addProp("operationType",i.operationtype),e.addProp("optionstype",i.optionstype),e.addProp("datafieldname",i.datafieldname),e.addProp("printFormId",i.printFormId),e.addProp("printFormLogicalName",i.printFormLogicalName),e.addProp("dialogViewLogicalName",i.dialogViewLogicalName),e.addProp("dialogViewId",i.dialogViewId),e.addProp("dialogFormId",i.dialogFormId),e.addProp("iconName",i.iconName),e.addProp("langkey",i.langkey),e.addProp("dialogFormLogicalName",i.dialogFormLogicalName),e.addProp("workflowLogicalName",i.workflowLogicalName),e.addProp("workflowParameters",i.workflowParameters),e.addProp("hiddenExpression",this.props.hiddenExpression),e.addProp("disableExpression",this.props.disableExpression),e.addProp("readonlyExpressions",this.props.readonlyExpressions),e.addProp("bizHiddenExpression",this.props.bizHiddenExpression),this.adaptSize(e)}extendButton(e,t){var r,n,o;const s=e.props,l=t.targetComponent;s.tagData||(s.tagData={}),s.tagData.dialogViewLogicalName=this.props.dialogViewLogicalName,s.tagData.dialogFormLogicalName=this.props.dialogFormLogicalName,s.tagData.dialogFormSize=this.props.dialogFormSize||"large",s.tagData.rootId=null===(r=t.FirstDiv)||void 0===r?void 0:r.attrs.dialogRelatedFormId;const d=e.params;if(d){if(this.bindFun(a.a,e,t),this.props.enableCustomLabel&&(this.props.langkey?s.label=l.$_t(this.props.langkey,this.props.label):s.label=this.props.label),!this.props.enableCustomLabel&&"disable|enable"!=d.OperationType&&"custom"!=d.OperationType&&"submitapprove|revoke"!=d.OperationType){const e=i.i.filter(e=>e.value==d.OperationType);e&&e.length>0&&(s.label=e[0].label)}"add"===d.OperationType&&"subgrid"===d.location&&(s.label="添加")}"add"===d.OperationType&&!1===(null===(n=l.entityPrivilege)||void 0===n?void 0:n.IsCreate)&&[i.e.PCQuery,i.e.PCUserQuery].includes(l.pageType)?e.on.click=()=>{const e=`${l.$store.state.user.UserName}${l.$_t("NoCreatePermission","没有新增权限")}${l.EntityDisplayName?"-"+l.EntityDisplayName:""}${l.objectTypeName?"-"+l.objectTypeName:""}`;rt.showErrorToast(e)}:"Assign"!==d.OperationType||!1!==(null===(o=l.entityPrivilege)||void 0===o?void 0:o.IsAssign)?"filetrprimary"==e.ctrlType?(e.props.langkey=e.props.langkey||"BUTTON_CONFIRM",e.on.click=l._filetrprimary,e.attrs.type="primary"):"filetrreset"==e.ctrlType&&(e.props.langkey=e.props.langkey||"BUTTON_RESET",e.on.click=l.filetrreset):e.on.click=()=>{const e=`${l.$store.state.user.UserName}${l.$_t("frontend.NoAssignPermission","没有分派权限")}${l.EntityDisplayName?"-"+l.EntityDisplayName:""}${l.objectTypeName?"-"+l.objectTypeName:""}`;rt.showErrorToast(e)}}getIfHideText(e,t,r){return!!e.props.hidetext&&"gridtable"!==t.params.location&&e.props.hideBtnsCount{a.selectWordTemplate(this.props.printTemplateId,...e)};break;case"previewPrintWord":t.on.click=(...e)=>{a.selectWordTemplateForPreview(this.props.printTemplateId,...e)};break;case"downLoadBatchPrintWord":t.on.click=(...e)=>{a.relationBatchWordTemplate(this.props.printTemplateId,...e)};break;case"previewBatchPrintWord":t.on.click=(...e)=>{a.relationBatchPreviewWordTemplate(this.props.printTemplateId,...e)};break;case"save":return void(t.on.click=function(t){this.extendSave(t,a,a[e.on.click])}.bind(this,t.on));case"submitapproveSpecialBtn":s.submitapproveSpecialBtn(t,r,e.on.type);break;case"disableEnable":s.disableEnable(t,r,n.location);break;case"print":t.on.click=()=>{a.print(this.props.printFormLogicalName)};break;case"subGridReload":t.params&&(t.on.click=()=>{a.subGridReload(t.params.targetEntityType,t.params.subgridkey)});break;case"showMaskHandler":s.showMask(t,r,n.location);break;case"saveWithOptionsFunc":return void("returnback"==i.optionstype?(i.langkey=this.props.langkey||"Button_Save.and.return",t.on.click=function(e){this.extendSave(e,a,a.saveAndClose)}.bind(this,t.on)):t.on.click=function(e){this.extendSave(e,a,a.save)}.bind(this,t.on));case"assign":t.on.click=()=>{a.assign(this.props)};break;case"orderTransfer":t.on.click=(...e)=>{const t={targetEntityName:this.props.targetEntityName,targetAttributeName:this.props.targetAttributeName,targetFormLogicalName:this.props.targetFormLogicalName,sourceObjectId:a.objectId,sourceEntityName:a.objectTypeName,sourcePrimaryAttribute:a.primaryAttribute};a.orderTransfer(t,...e)};break;default:t.on.click=a.defaultFunc}}}const o=t.on.click,s=t.on,l=t.on.editOnly,d=this;t.on.click=function(...e){if(!o)return;if(l&&0==a.formStatus)return void rt.showErrorToast(a.$_t("common.pls_save_info","请先保存数据"));const t=[...e];d.newClick(t,s,a,o.bind(this))}}getButtonLangLabel(e,t,r){let a="",n=null;if(n="bizBtn"===r?this.props:t.props,n.hideLabel)return"";let o=n.langkey;var s,l;return this.props.enableCustomLabel?o=this.props.langkey:"saveWithOptions"===this.props.operationtype?o="returnback"===this.props.optionstype?"Button_Save.and.return":"BUTTON_SAVE":null!==(s=i.h[this.props.operationtype])&&void 0!==s&&s.langkey&&(o=null===(l=i.h[this.props.operationtype])||void 0===l?void 0:l.langkey),a=o?e.targetComponent.$_t(o,n.label||n.displayName):n.label||n.displayName,a}showMask(e,t,r){const i=e.props,a=t.targetComponent;a.editForm.globalHideMask?(i.langkey=this.props.langkey||"BUTTON_HIDEMASK",i.iconName=this.props.iconName||"plat-icon-eye-close-lined",e.on.click=a.hideAllMaskData):(i.langkey=this.props.langkey||"BUTTON_SHOWMASK",i.iconName=this.props.iconName||"rt-base-eye-lined",e.on.click=a.showAllMaskData)}disableEnable(e,t,r){const i=e.props,a=t.targetComponent;"businessunit"==a.objectTypeName?a.editForm.isdisabled?("formheader"==r?(i.langkey="BUTTON_ENABLE",i.label="启用"):i.langkey="BUTTON_RESET",i.iconName=this.props.iconNameType||"rt-saas-enable"):("formheader"==r?(i.langkey="BUTTON_DISABLE",i.label="停用"):i.langkey="BUTTON_RESET",i.iconName=this.props.iconNameType||"rt-saas-disable"):null!=a.editForm.statecode?0==a.editForm.statecode?("formheader"==r?(i.langkey="BUTTON_DISABLE",i.label="停用"):i.langkey="BUTTON_RESET",i.iconName=this.props.iconNameType||"rt-saas-disable"):("formheader"==r?(i.langkey="BUTTON_ENABLE",i.label="启用"):i.langkey="BUTTON_RESET",i.iconName=this.props.iconNameType||"rt-saas-enable"):("formheader"==r?(i.langkey="BUTTON_DISABLE",i.label="停用"):i.langkey="BUTTON_RESET",i.iconName=this.props.iconNameType||"rt-saas-disable"),e.on.click=a.disableOrEnable}submitapproveSpecialBtn(e,t,r){const i=e.props,a=t.targetComponent;1==a.editForm.new_approvalstatus||4==a.editForm.new_approvalstatus?(i.iconName="rt-saas-submit",i.langkey="BUTTON_SUBMIT","old"==r?(e.addProp("langkey","common.submit"),e.addProp("label",a.$_t("common.submit","提交")),e.on.click=a.submitapprove):e.on.click=a.newsubmitapprove):2==a.editForm.new_approvalstatus?(i.langkey="common.recall",i.iconName="rt-saas-recall","old"==r?(e.addProp("langkey","BUTTON_RECALL"),e.addProp("label",a.$_t("BUTTON_RECALL","撤回")),e.on.click=a.revoke):e.on.click=a.newrevoke):(e.addProp("langkey","common.submit"),e.addProp("label",a.$_t("common.submit","提交")))}extendSubgridButton(e,t){const r=e.props,i=this.props;r.tagData={viewId:i.viewId,formId:i.formid,objectTypeName:i.targetEntityType,objectId:"",filterAttribute:i.filterAttribute,relationshipName:i.relationshipName,parentDisplayAttribute:i.parentDisplayAttribute,targetEntityDisplayName:i.targetEntityDisplayName,subgridkey:i.subgridkey,dialogViewLogicalName:i.dialogViewLogicalName,dialogFormLogicalName:i.dialogFormLogicalName}}inlineButtonCLick(e,t,r,i){var a;const n=Object.assign(r,e);switch(t){case"edit":r.editByRow.call(n);break;case"delete":case"rowdelete":r.delByRow.call(n);break;case"grantaccess":r.grantAccessByRow.call(n);break;case"Assign":if(r.isSubgrid&&!1===(null===(a=r.privileges)||void 0===a?void 0:a.IsAssign)){const e=`${r.$store.state.user.UserName}${r.$_t("frontend.NoAssignPermission","没有分派权限")}${r.EntityDisplayName?"-"+r.EntityDisplayName:""}${r.objectTypeName?"-"+r.objectTypeName:""}`;return void rt.showErrorToast(e)}r.assignByRow.call(n,this.props);break;case"dialog-form":r.showFormDialogByRow.call(n,i.tagData);break;case"business":r.$bus.$emit("init_web_resource_"+this.id,e);break;case"order-transfer":const t={targetEntityName:this.props.targetEntityName,targetAttributeName:this.props.targetAttributeName,targetFormLogicalName:this.props.targetFormLogicalName,sourceObjectId:n.row.$id,sourceEntityName:n.row.$logicalname};r.orderTransfer(t);break;default:r.defaultFunc.call(n)}}extendSave(e,t,r){const i=this.events.find(e=>"before_save"===e.name),a=this.events.find(e=>"after_save"===e.name);e.before_save&&"function"==typeof e.before_save&&i&&!rt.isNilOrWhiteSpace(i.handler.script)?t.beforeSaveFunc=function(){return new Promise((r,i)=>{e.before_save.call(t,r,i)})}:t.beforeSaveFunc=function(){return Promise.resolve()},e.after_save&&"function"==typeof e.after_save&&a&&!rt.isNilOrWhiteSpace(a.handler.script)?t.afterSaveFunc=function(r){return new Promise((i,a)=>{e.after_save.call(t,i,a,r)})}:t.afterSaveFunc=function(){return Promise.resolve()},"function"==typeof r&&r()}async newClick(e,t,r,i){let a=null;const n=this.events.find(e=>"before_execute"===e.name);if(t.before_execute&&"function"==typeof t.before_execute&&n&&!rt.isNilOrWhiteSpace(n.handler.script)&&(a=function(){return new Promise((e,i)=>{t.before_execute.call(r,e,i)})}),"function"==typeof i){try{a&&await a()}catch(e){return}i.apply(r,e)}}collectApprovalFlow(e){const t=this.props;["submitapprove","save&submit","revoke","submitapprove|revoke","approvelist"].includes(t.operationtype||"")&&(e.__enableApprovalFlow=!0)}calcEntityReadonly(e){return!1}}l(d,"$bindNodeType","button")},"66c4":function(e,t,r){"use strict";r("c597")},"672c":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.tag="rc-input-number",e.addAttr("controls",!1);const{precision:i,isMillimeter:a}=this.props;return e.addAttr("thousands",a),e.addAttr("localeFormatCode",r.numberLocaleCode),e.addProp("max",this.getMaxValue()),e.addProp("min",this.getMinValue()),rt.isNil(i)?e.addProp("precision",2):e.addProp("precision",this.getAvailableValue(i)),e.addProp("needZeroFill",t.targetComponent.displayNumbersByPrecision),e.addProp("clearable",!0),e}getMaxValue(){const{max:e,MaxValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}getMinValue(){const{min:e,MinValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}}i=l,a="$bindNodeType",n=o.b.Money,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"679c":function(e,t,r){var i=r("ffc9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("647302bb",i,!0,{sourceMap:!1,shadowMode:!1})},"67a1":function(e,t,r){var i=r("1618");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2d4852fe",i,!0,{sourceMap:!1,shadowMode:!1})},6815:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-p-lookup-new[data-v-1edb42a2] .is-border-form .rt-p-lookup-new .plookup-select{width:100%}.rt-p-lookup-new[data-v-1edb42a2] .is-border-form .rt-p-lookup-new .muilt-span{position:absolute;top:1px;right:1px;z-index:2;width:30px;height:92%;text-align:center;cursor:pointer;background:#fff;border:0 solid #dcdfe6;border-right:none;border-bottom:none;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0}.rt-p-lookup-new[data-v-1edb42a2] .is-border-form .rt-p-lookup-new .muilt-span .rt-icon{position:absolute;top:50%;right:0;bottom:0;left:0;margin:auto;margin-top:-7px}.rt-p-lookup-new .plookup-select[data-v-1edb42a2]{width:100%}.rt-p-lookup-new .muilt-span[data-v-1edb42a2]{position:absolute;top:1px;right:1px;z-index:2;width:30px;height:92%;text-align:center;cursor:pointer;background:#fff;border:0 solid #dcdfe6;border-right:none;border-bottom:none;border-radius:4px;border-top-left-radius:0;border-bottom-left-radius:0}.rt-p-lookup-new .muilt-span .rt-icon[data-v-1edb42a2]{position:absolute;top:50%;right:0;bottom:0;left:0;margin:auto;margin-top:-7px}",""]),e.exports=t},"686c":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.JFlowApprovalList)}createVNode(e,t,r){const i=new a.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.addProp("dataId",r.objectId),e.addProp("logicalname",r.objectTypeName),e.addProp("editForm",r.editForm),e.addProp("inVForm",!0)}}s(l,"$bindNodeType",i.b.JMobileApprovalProgress)},"687a":function(e,t,r){"use strict";r("5299")},"687c":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body{padding-bottom:0;scrollbar-width:none}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body::-webkit-scrollbar{display:none}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item{display:flex;margin:10px;align-items:center}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .el-form-item__label{flex:1;padding-left:60px;width:120px}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .el-form-item__content{flex:8}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .rt-picklist .rt-icon,.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .rt-search .rt-icon{right:10px}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .rt-picklist input,.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-form-item .rt-search input{height:32px}.rt-Mlookup-dialog.plat-m-lookup-dialog[data-v-833e6a6a] .el-dialog__body .el-table{margin-top:0}.rt-Mlookup-dialog.plat-m-lookup-dialog .dialog-footer .rt-button[data-v-833e6a6a]{margin-left:10px}.rt-Mlookup-dialog.plat-m-lookup-dialog .lookup-header-search[data-v-833e6a6a]{padding:10px;padding-bottom:0}",""]),e.exports=t},"68c8":function(e,t,r){"use strict";r("5e9f")},6972:function(e,t,r){"use strict";r("5f94")},"698d":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".print-label.plat-print-label[data-v-0da60300]{overflow:hidden;color:#143e81;word-wrap:break-word}",""]),e.exports=t},6996:function(e,t,r){var i=r("a343");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6d92072e",i,!0,{sourceMap:!1,shadowMode:!1})},"6a22":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75"),s=r("e926");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d extends n.a{constructor(e){super(e),l(this,"conditionKey",""),l(this,"location","")}prepare(e){super.prepare(e),this.computeLocation(),e.thisVue.pageType===i.e.PCQuery&&"gridconditions"===this.location&&this.collectGridCondition(e)}createVNode(e,t){let r;const n=this.props;n.appkey?r=new a.e(o.a.customerComponent):(r=new a.e(n.componentName),r.ref=n.customComponentRef||n.componentName),r.nodeType=this.$nodetype,[i.b.form,i.b.Content,i.b.column,i.b.Tab].includes(e.nodeType)&&r.addClass("custom-sub-content"),this.buildVNode(r,t),this.appendNode(e,r,t)}buildVNodeInView(e,t){super.buildVNodeInView(e,t);const r=t.targetComponent,i=this.props;e.addProp("appkey",i.appkey),e.addProp("componentName",i.componentName),e.addProp("langkey",i.langkey),e.addProp("editForm",r.editForm),e.addProp("objectTypeName",r.objectTypeName),e.addProp("customComponentRef",i.customComponentRef||i.componentName),e.addProp("customerData",r.customerData),e.addAttr("readonly",e.props.readonly),e.on.reLoad=r.load,e.on.customComponentLoaded=r.customComponentLoaded,"gridconditions"===this.location&&this.buildVNodeInCondition(e,t)}buildVNodeInCondition(e,t){const r=t.targetComponent,i=this.props;if(e.addAttr("disabled",e.props.readonly),i.datafieldname&&(e.addAttr("datafieldname",i.datafieldname),e.addAttr("displayName",i.displayName),e.addAttr("attributeType",i.attributeType),r.editForm&&r.editForm.hasOwnProperty(i.datafieldname))){let t;if(r.queryAttributes.requestApi)t=r.editForm[i.datafieldname];else{const e=r.getFilterFormListItem(this.conditionKey);e&&(t=e.val)}e.addAttr("value",t)}const a=r.getFilterFormListItem(this.conditionKey);a&&e.addAttr("cachedValue",{name:a.name,value:a.val,operator:a.op}),e.on["input-value"]=e=>{var t,a;if(!e)return;if(!e.hasOwnProperty("name")&&!i.datafieldname)return;const n={name:e.name||i.datafieldname,op:e.operator||"eq",val:e.value};r.filterFormListDefault.some(e=>e.key===this.conditionKey)||r.filterFormListDefault.push({key:this.conditionKey,name:e.name,op:e.operator||"eq",val:null}),r.setFilterFormListItem(this.conditionKey,n),r.$set(null===(t=r.savedComponent[this.conditionKey])||void 0===t||null===(a=t.gridConditionProps)||void 0===a?void 0:a.props,"isDefaultCondition",!1),this.emitDataChange(n,r)}}buildVNodeInForm(e,t){var r;super.buildVNodeInForm(e,t);const a=t.targetComponent,n=this.props;e.addProp("appkey",n.appkey),e.addProp("componentName",n.componentName),e.addProp("editForm",a.editForm),e.addProp("objectTypeName",a.objectTypeName),e.addProp("loadDataCompleted",a.dataLoaded),e.addProp("objectId",a.objectId),e.addProp("customComponentRef",n.customComponentRef||n.componentName),e.addProp("findMethodsInVForm",a.__findMethod),e.addProp("customerData",a.customerData),e.addAttr("readonly",e.props.readonly),e.on.reLoad=a.load,e.on.subGridReload=a.subGridReload,e.on.updateEditForm=a.updateEditForm,e.on.splicingEditForm=a.splicingEditForm,e.on.customComponentLoaded=a.customComponentLoaded,n.datafieldname&&(e.addAttr("datafieldname",n.datafieldname),e.addAttr("displayName",n.displayName),e.addAttr("attributeType",n.attributeType),a.editForm&&a.editForm.hasOwnProperty(n.datafieldname)&&e.addAttr("value",a.editForm[n.datafieldname]),e.on.change=e=>{a.updateEditForm(n.datafieldname,e),this.emitDataChange(e,a)}),(null===(r=this.parent)||void 0===r?void 0:r.$nodetype)===i.b.formheader&&(e.slot="bottom")}emitDataChange(e,t){t.schemaLoaded&&t.dataLoaded&&(t.pageType===i.e.PCForm?t.dialogFormId?t.$bus.$emit("dialogFormDataChange-"+t.dialogFormId):window.formDataChanged=!0:t.pageType===i.e.PCQuery&&(t.gridConditionIsChanged=!0))}computeLocation(){this.extendsChain.includes("gridconditions")?(this.location="gridconditions",this.conditionKey="extra_"+this.id):this.extendsChain.includes("gridtable")&&(this.location="gridtable")}collectGridCondition(e){var t,r;const a=e.thisVue,n=this.props;n.platFilterOperator=a.platFilterOperator,n.isDefaultCondition=!0,n.platFilterOperatorNameList=s.e;const l=this.conditionKey,d=this.parent||null;let c=null;d&&(c=d.parent||null);const u={gridConditionProps:{id:this.id,$nodetype:i.b.customerComponent,VueTag:o.a.platFilterComponent,props:{...n,cellCalcHidden:null==d?void 0:d.calcHiddenFunc,cellCalcReadonly:null==d?void 0:d.calcReadonlyFunc,rowCalcHidden:null===(t=c)||void 0===t?void 0:t.calcHiddenFunc,rowCalcReadonly:null===(r=c)||void 0===r?void 0:r.calcReadonlyFunc}}};a.defaultSavedComponent[l]=u,a.savedComponent[l]=a.$xpc.cloneDeep(u)}}l(d,"$bindNodeType",i.b.customerComponent)},"6a7d":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-subgird-list-table.rt-table[data-v-2aad5020]{margin:0}.plat-subgird-list-table.rt-table[data-v-2aad5020] .subgridCellIcon{display:flex;align-items:center}.plat-subgird-list-table.rt-table[data-v-2aad5020] .subgridCellIcon .rt-icon.requiredIcon{margin-right:4px}.plat-subgird-list-table.rt-table[data-v-2aad5020] .subgridCellIcon .rt-icon.editIcon{margin-left:4px}",""]),e.exports=t},"6a86":function(e,t,r){"use strict";r("8452")},"6b60":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}createVNode(e,t){this.addChildByPermission(e,t)}}i=l,a="$bindNodeType",n=o.b.tags,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"6bca":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return u}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf"),d=r("6f75"),c=r("c40c");class u extends l.a{constructor(e){super(e)}createVNode(e,t){const r=t.targetComponent,i=new s.e("option"==this.props.celltype?d.a.GridTableColumn2:d.a.GridTableColumn);this.appendNode(e,i,t),super.buildVNode(i,t),this.attachEventHandlers(i,t.targetComponent),i.nodeType=this.$nodetype;const a=this.props;if(a.entityAlias?i.props.attributeFullName=a.entityAlias+"."+a.name:i.props.attributeFullName=a.name,i.addProp("isAttachment",a.isAttachment),i.addProp("referencedEntityDisplayName",a.referencedEntityDisplayName),i.addProp("entityList",a.entityList),i.addProp("isAttachment",a.isAttachment),i.addProp("prop",a.name),i.addProp("label",this.getAttrLabel()),"option"!==this.props.celltype&&r.isDashboard&&i.addProp("selfInfo",r.objectTypeName),i.addProp("width",this.getColumnWidth(t,a)),i.addProp("attributeType",a.attributeType),a.dataType?i.addProp("dataType",a.dataType):a.IsSubEntity?i.addProp("dataType","string"):i.addProp("dataType",a.attributeType),i.addProp("isMillimeter",a.isMillimeter),i.addProp("dateTimeFormat",a.datetimeformat),i.addProp("isMask",a.isMask),i.addProp("requiredLevel",a.RequiredLevel),i.addProp("disableSorting",a.disableSorting),i.addProp("formStatus",r.formStatus),i.addProp("align",a.align),i.addProp("url",a.url),i.addProp("langkey",a.langkey),i.addProp("options",a.options),i.addProp("relatedAttribute",a.relatedAttribute),i.addProp("fromEntity",r.fromEntity),i.addProp("customerData",r.customerData),r.isSubgrid&&(i.addProp("subgridValidateResult",r.subgridValidateResult),i.addProp("subgridIsReadonly",this.parentInfo.readonly),i.addProp("subGridChangedProps",r.subGridChangedProps),i.addProp("subgridkey",r.subgridkey),i.addProp("isDashboard",r.isDashboard),this.handleSubgridEditabelField(i,t)),a.cellFixed&&"false"!=a.cellFixed&&i.addProp("fixed",a.cellFixed),i.addProp("tableWidth",e.props.tableWidth),i.addProp("formid",a.formid),i.addProp("referencedEntity",a.referencedEntity),i.addProp("entityAlias",a.entityAlias),i.addProp("isSubEntity",a.IsSubEntity),i.addProp("showcolor",a.showcolor),i.addProp("newTabObject",r.newTabObject),i.addProp("parentkey",r.targetEntityType),i.addProp("pageSource",r.pageSource),i.addProp("maxValue",a.MaxValue),i.addProp("minValue",a.MinValue),i.addProp("precision",a.precision),i.addProp("defaultvalue",a.defaultvalue),i.addProp("datafieldname",a.datafieldname),i.addProp("relationshipId",a.relationshipId),"lookup"===r.pageSource&&(r.lookupTableCellFields||(r.lookupTableCellFields={}),r.lookupTableCellFields[a.datafieldname]=a.datafieldname),a.dataType&&["lookup","picklist","picklistarray"].includes(a.dataType)&&this.extendForSubgridLookupOrPicklist(t,i),i.addProp("PrimaryEntityName",r.PrimaryEntityName),i.props.queryAttributes=r.queryAttributes,!a.relationshipName&&r.queryAttributes.disableJump?i.addProp("needJump",!1):(i.addProp("needJump",a.needjump),i.addProp("formtype",a.formtype),i.addProp("formid",a.formid)),i.props.prop&&r.queryAttributes&&i.props.prop==r.queryAttributes.jump&&!a.relationshipName){if(i.ref="jumpAttribute",!r.jumpInfo)return;r.jumpInfo.formtype=a.formtype,r.jumpInfo.formid=a.formid,r.jumpInfo.needjump=a.needjump,r.jumpInfo.referencedEntity=a.referencedEntity,r.$emit("setJumpInfo",r.jumpInfo)}this.collectFieldsWithHandler(i,t)}handleSubgridEditabelField(e,t){const r=t.targetComponent,i=this.props;i.isMask||[o.g.ReadOnly,o.g.CalculateFields].includes(i.RequiredLevel)?e.addProp("ifEditable",!1):r.enableMultiCurrency||"transactioncurrencyid"!=this.props.datafieldname?(e.addProp("ifEditable",i.ifEditable),e.addProp("ifEditableExpression",i.ifEditableExpression),e.addProp("gridcellBtnRequired",i.required),e.addProp("requiredExpression",i.requiredExpression),(this.calcEditableFunc?c.b.execFunction(this.calcEditableFunc,r,this,c.a.EditableExp):i.ifEditable)&&(r.subgridHasEditableField[r.subgridHasEditableField.length]=i.datafieldname,r.openNextFields[r.openNextFields.length]=i.datafieldname,r.cellFieldInfo||(r.cellFieldInfo={}),i.relationshipId||(r.cellFieldInfo[i.datafieldname]={ifEditableExpression:i.ifEditableExpression,ifEditable:i.ifEditable,isMask:i.isMask,requiredLevel:i.RequiredLevel}))):e.addProp("ifEditable",!1)}extendForSubgridLookupOrPicklist(e,t){const r=e.targetComponent,i=this.props,a={...i,entity:i.referencedEntity,dialogOrderbyFields:i.dialogOrderbyFields,dialogDisplayFields:i.dialogDisplayFields,nameField:i.nameField,idField:i.idField,dialogFilterFields:i.dialogFilterFields,defaultViewLogicalName:i.DefaultViewLogicalName};i.DependentAttributeName&&(r.dependentRelationshipMapping||(r.dependentRelationshipMapping={}),r.dependentRelationshipMapping[i.DependentAttributeName]=i.datafieldname),i.requestUrl&&(i.requestUrl.startsWith("{")||i.requestUrl.startsWith("'")||i.requestUrl.startsWith('"'))&&r.$set(a,"requestUrl",i.requestUrl),t.addProp("subgridLookupProps",a)}collectFieldsWithHandler(e,t){const r=t.targetComponent;this.events&&this.events.length&&this.events.forEach(t=>{if("setGridCell"==t.name&&r.fieldWithHandler){const t=`${r.subgridkey}_${e.props.datafieldname}`;r.fieldWithHandler[t]=!0}})}attachEventHandlers(e,t){const r=t;let i=!1;this.events&&this.events.length&&this.events.forEach(t=>{if("setGridCell"==t.name){i=!0;const e=`${r.subgridkey}_${this.datafieldname}`,a=t.name+"_"+e;r.$bus._events[a]||r.$PlatUtils.listenerHook(r,a,(function(e){const i={currentRow:e.row,row:e.row,functionType:"inlineInput"};t.buildHandler?t.buildHandler.call(i,e):r.$emit(e.parentkey+"saveSubGrid")}))}else t.name&&t.buildHandler&&(e.on[t.name]=t.buildHandler)}),!i&&t.isSubgrid&&e.addEventHandler("attributeMappingCallback",t.attributeMappingCallback)}getColumnWidth(e,t){const r=e.targetComponent.columnWidths;let i=t.width;i||(i=150);const a=this.id;return r&&a&&r[a]&&(i=r[a]),i}}i=u,a="$bindNodeType",n=o.b.gridcell,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"6bcd":function(e,t,r){var i=r("3b6f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d1dfe15c",i,!0,{sourceMap:!1,shadowMode:!1})},"6c27":function(module,exports,__webpack_require__){(function(process,global){var __WEBPACK_AMD_DEFINE_RESULT__;!function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD=__webpack_require__("3c35"),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(r){return new Sha256(t,!0).update(r)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>6,o[l++]=128|63&n):n<55296||n>=57344?(o[l++]=224|n>>12,o[l++]=128|n>>6&63,o[l++]=128|63&n):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++i)),o[l++]=240|n>>18,o[l++]=128|n>>12&63,o[l++]=128|n>>6&63,o[l++]=128|63&n);e=o}else{if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var d=[],c=[];for(i=0;i<64;++i){var u=e[i]||0;d[i]=92^u,c[i]=54^u}Sha256.call(this,t,r),this.update(c),this.oKeyPad=d,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var i,a,n=0,o=e.length,s=this.blocks;n>2]|=e[n]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(s[a>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=s[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,r,i,a,n,o,s,l,d=this.h0,c=this.h1,u=this.h2,p=this.h3,h=this.h4,f=this.h5,m=this.h6,g=this.h7,b=this.blocks;for(e=16;e<64;++e)t=((a=b[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,r=((a=b[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,b[e]=b[e-16]+t+b[e-7]+r<<0;for(l=c&u,e=0;e<64;e+=4)this.first?(this.is224?(n=300032,g=(a=b[0]-1413257819)-150054599<<0,p=a+24177077<<0):(n=704751109,g=(a=b[0]-210244248)-1521486534<<0,p=a+143694565<<0),this.first=!1):(t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),i=(n=d&c)^d&u^l,g=p+(a=g+(r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&f^~h&m)+K[e]+b[e])<<0,p=a+(t+i)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),i=(o=p&d)^p&c^n,m=u+(a=m+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&h^~g&f)+K[e+1]+b[e+1])<<0,t=((u=a+(t+i)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),i=(s=u&p)^u&d^o,f=c+(a=f+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&h)+K[e+2]+b[e+2])<<0,t=((c=a+(t+i)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),i=(l=c&u)^c&p^s,h=d+(a=h+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&m^~f&g)+K[e+3]+b[e+3])<<0,d=a+(t+i)<<0;this.h0=this.h0+d<<0,this.h1=this.h1+c<<0,this.h2=this.h2+u<<0,this.h3=this.h3+p<<0,this.h4=this.h4+h<<0,this.h5=this.h5+f<<0,this.h6=this.h6+m<<0,this.h7=this.h7+g<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3,a=this.h4,n=this.h5,o=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3,a=this.h4,n=this.h5,o=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,a>>24&255,a>>16&255,a>>8&255,255&a,n>>24&255,n>>16&255,n>>8&255,255&n,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__("4362"),__webpack_require__("c8ba"))},"6c52":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-r-lookup-dialog.plat-r-lookup-dialog .rt-lookup-dialog-search[data-v-60267500] .rt-list-header-icon{color:#fff;background:#2563eb}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-table .rtxpc-table__header-wrapper .el-table-column--selection .cell{display:none}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .rtxpc-dialog{height:80%}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body{overflow:hidden}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .el-form-item{margin-bottom:0}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .el-form-item .rt-label-wrapper{height:19px}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .form-container{padding-right:24px}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__header{position:fixed;z-index:5000;background:#fff;width:60%;max-width:80%}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content{top:48px;overflow-y:auto}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .rt-content-main{min-height:200px;overflow:auto}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .rt-list-header{border-bottom:none}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .rtxpc-tab-pane{padding-top:0}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .rtxpc-tab-pane .rt-table-footer{display:flex;align-items:center}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .rtxpc-tab-pane .rt-table-footer .rt-table-footer__right{flex:1;display:flex;flex-direction:row-reverse}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-tabs__content .apaas-vlist-wrapper{background:#fff}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect{width:100%;overflow:hidden}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-form-item{display:flex}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-form-item .el-form-item__label{width:100px}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-form-item .el-form-item__content{flex:1;overflow:hidden;width:100%;margin-left:12px}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .search-input{width:100%}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-input__suffix-inner{height:100%}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-input__suffix-inner .el-input__icon{height:100%;display:flex;align-items:center;justify-content:center}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .searchSelect .el-input--suffix .el-input__suffix{display:flex;align-items:center;justify-content:center}.rt-r-lookup-dialog.plat-r-lookup-dialog[data-v-60267500] .el-dialog__body .rt-dialog-content-wrapper .el-pagination{padding:8px;text-align:center}.rt-r-lookup-dialog.plat-r-lookup-dialog .el-dialog__footer .rt-button+.rt-button[data-v-60267500]{margin-left:16px}",""]),e.exports=t},"6dd5":function(e,t,r){"use strict";r("1dae")},"6e23":function(e,t,r){var i=r("4bf8");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("74db956b",i,!0,{sourceMap:!1,shadowMode:!1})},"6e3a":function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return o}));var i=r("8bbf");const a=r.n(i).a.prototype,n={add:{gridheader:{props:{langkey:"BUTTON_ADD",baseIcon:"rt-saas-new",label:a.$_t("BUTTON_ADD","新增")},on:{baseOn:"normal",click:"add"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"platform.addSubgrid",baseIcon:"rt-base-plus-lined",label:a.$_t("platform.addSubgrid","添加")},on:{baseOn:"normal",click:"relationAdd"}}},delete:{gridheader:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")},on:{baseOn:"normal",click:"delete"}},gridtable:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")}},formheader:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")},on:{baseOn:"normal",click:"delete",editOnly:!0}},subgrid:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")},on:{baseOn:"normal",click:"relationDelete"}},cardTable:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")}}},batchdelete:{gridheader:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")},on:{baseOn:"normal",click:"delete"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"BUTTON_DELETE",baseIcon:"rt-saas-delete",label:a.$_t("BUTTON_DELETE","删除")},on:{baseOn:"normal",click:"relationDelete"}}},import:{gridheader:{props:{langkey:"BUTTON_IMPORT",baseIcon:"rt-saas-import",label:a.$_t("BUTTON_IMPORT","导入")},on:{baseOn:"normal",click:"importExcel"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"BUTTON_IMPORT",baseIcon:"rt-saas-import",label:a.$_t("BUTTON_IMPORT","导入")},on:{baseOn:"normal",click:"relationImportExcel"}}},importtemplate:{gridheader:{props:{langkey:"BUTTON_IMPORT",baseIcon:"rt-saas-import",label:a.$_t("BUTTON_IMPORT","导入")},on:{baseOn:"normal",click:"importTemplate"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"BUTTON_IMPORT",baseIcon:"rt-saas-import",label:a.$_t("BUTTON_IMPORT","导入")},on:{baseOn:"normal",click:"relationImportTemplate"}}},grantaccess:{gridheader:{props:{langkey:"BUTTON_SHARE",baseIcon:"plat-icon-fwy-share-lined",label:a.$_t("BUTTON_SHARE","共享")},on:{baseOn:"normal",click:"grantAccess"}},gridtable:{props:{langkey:"BUTTON_SHARE",baseIcon:"plat-icon-fwy-share-lined",label:a.$_t("BUTTON_SHARE","共享")}},formheader:{props:{langkey:"BUTTON_SHARE",baseIcon:"plat-icon-fwy-share-lined",label:a.$_t("BUTTON_SHARE","共享")},on:{baseOn:"normal",click:"grantAccess"}},subgrid:null,cardTable:{props:{langkey:"BUTTON_SHARE",baseIcon:"plat-icon-fwy-share-lined",label:a.$_t("BUTTON_SHARE","共享")}}},adduserquery:{gridheader:{props:{langkey:"BUTTON_USERQUERY",baseIcon:"rt-base-user-lined",label:a.$_t("BUTTON_USERQUERY","个人视图")},on:{baseOn:"normal",click:"__userqueryButtonHandler"}},gridtable:null,formheader:null,subgrid:null},exportpage:{gridheader:{props:{langkey:"commonc.exportbypage",baseIcon:"rt-saas-export",label:a.$_t("commonc.exportbypage","导出本页")},on:{baseOn:"normal",click:"exportPage"}},gridtable:null,formheader:null,subgrid:null},exportpageimg:{gridheader:{props:{langkey:"common.exportimgpage",baseIcon:"rt-saas-export",label:a.$_t("common.exportimgpage","导出本页(图片)")},on:{baseOn:"normal",click:"exportPageImg"}},gridtable:null,formheader:null,subgrid:null},exportall:{gridheader:{props:{langkey:"common.exportall",baseIcon:"rt-saas-export",label:a.$_t("common.exportall","导出全部")},on:{baseOn:"normal",click:"exportAll"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"common.exportall",baseIcon:"rt-saas-export",label:a.$_t("common.exportall","导出全部")},on:{baseOn:"normal",click:"relationExportAll"}}},exportallimg:{gridheader:{props:{langkey:"common.exportimgall",baseIcon:"rt-saas-export",label:a.$_t("common.exportimgall","导出全部(图片)")},on:{baseOn:"normal",click:"exportAllImg"}},gridtable:null,formheader:null,subgrid:{props:{langkey:"common.exportimgall",baseIcon:"rt-saas-export",label:a.$_t("common.exportimgall","导出全部(图片)")},on:{baseOn:"normal",click:"relationExportImg"}}},Assign:{gridheader:{props:{langkey:"BUTTON_FENPAI",baseIcon:"rt-saas-fenpai",label:a.$_t("BUTTON_FENPAI","分派")},on:{baseOn:"assign",click:"assign"}},gridtable:{props:{langkey:"BUTTON_FENPAI",baseIcon:"rt-saas-fenpai",label:a.$_t("BUTTON_FENPAI","分派")}},formheader:{props:{langkey:"BUTTON_FENPAI",baseIcon:"rt-saas-fenpai",label:a.$_t("BUTTON_FENPAI","分派")},on:{baseOn:"assign",click:"assign"}},subgrid:{props:{langkey:"BUTTON_FENPAI",baseIcon:"rt-saas-fenpai",label:a.$_t("BUTTON_FENPAI","分派")}},cardTable:{props:{langkey:"BUTTON_FENPAI",baseIcon:"rt-saas-fenpai",label:a.$_t("BUTTON_FENPAI","分派")}}},custom:{gridheader:null,gridtable:null,formheader:null,subgrid:null},"dialog-form":{gridheader:{props:{},on:{baseOn:"normal",click:"showFormDialog"}},formheader:{props:{},on:{baseOn:"normal",click:"showFormDialog_Header"}},section:{props:{},on:{baseOn:"normal",click:"showFormDialog_Header"}},gridtable:null,subgrid:{props:{},on:{baseOn:"normal",click:"showFormDialog_SubGrid"}}},"order-transfer":{gridheader:null,formheader:{props:{baseIcon:"plat-icon-order-change-lined"},on:{baseOn:"orderTransfer",click:"orderTransfer"}},gridtable:null,subgrid:null},importallimage:{gridheader:{props:{langkey:"BUTTON_IMPORTALLIMAGE",baseIcon:"plat-icon-fwy-square-angle-rise-lined",label:a.$_t("BUTTON_IMPORTALLIMAGE","批量上传(图片)")},on:{baseOn:"normal",click:"importallimage"}},gridtable:{props:{langkey:"BUTTON_IMPORTALLIMAGE",baseIcon:"plat-icon-fwy-square-angle-rise-lined",label:a.$_t("BUTTON_IMPORTALLIMAGE","批量上传(图片)")},on:null},formheader:{props:{langkey:"BUTTON_IMPORTALLIMAGE",baseIcon:"plat-icon-fwy-square-angle-rise-lined",label:a.$_t("BUTTON_IMPORTALLIMAGE","批量上传(图片)")},on:null},subgrid:null},enable:{gridheader:{props:{langkey:"BUTTON_ENABLE",baseIcon:"rt-saas-enable",label:a.$_t("BUTTON_ENABLE","启用")},on:{baseOn:"normal",click:"enable"}},gridtable:null,formheader:{props:{langkey:"BUTTON_ENABLE",baseIcon:"rt-saas-enable",label:a.$_t("BUTTON_ENABLE","启用")},on:{baseOn:"normal",click:"enable",editOnly:!0}},subgrid:{props:{baseIcon:"rt-saas-enable",langkey:"BUTTON_ENABLE",label:a.$_t("BUTTON_ENABLE","启用")},on:{baseOn:"normal",click:"enableInSubgrid"}}},disable:{gridheader:{props:{langkey:"BUTTON_DISABLE",baseIcon:"rt-saas-disable",label:a.$_t("BUTTON_DISABLE","停用")},on:{baseOn:"normal",click:"disable"}},gridtable:null,formheader:{props:{langkey:"BUTTON_DISABLE",baseIcon:"rt-saas-disable",label:a.$_t("BUTTON_DISABLE","停用")},on:{baseOn:"normal",click:"disable",editOnly:!0}},subgrid:{props:{baseIcon:"rt-saas-disable",langkey:"BUTTON_DISABLE",label:a.$_t("BUTTON_DISABLE","停用")},on:{baseOn:"normal",click:"disableInSubgrid"}}},saveWithOptions:{gridheader:{props:{langkey:"BUTTON_SAVEWITHOPTIONS",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_SAVEWITHOPTIONS","保存(带选项)")},on:{baseOn:"normal",click:"defaultFunc"}},gridtable:{props:{langkey:"BUTTON_SAVEWITHOPTIONS",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_SAVEWITHOPTIONS","保存(带选项)")}},formheader:{props:{langkey:"BUTTON_SAVE",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_SAVE","保存")},on:{baseOn:"saveWithOptionsFunc"}},subgrid:null},reload:{gridheader:{props:{langkey:"BUTTON_RELOAD",baseIcon:"plat-icon-circle-reload-lined",label:a.$_t("BUTTON_RELOAD","重载")}},gridtable:{props:{langkey:"BUTTON_RELOAD",baseIcon:"plat-icon-circle-reload-lined",label:a.$_t("BUTTON_RELOAD","重载")}},formheader:{props:{langkey:"BUTTON_RELOAD",baseIcon:"plat-icon-circle-reload-lined",label:a.$_t("BUTTON_RELOAD","重载")},on:{baseOn:"normal",click:"reload"}},subgrid:{props:{langkey:"BUTTON_RELOAD",baseIcon:"plat-icon-circle-reload-lined",label:a.$_t("BUTTON_RELOAD","重载")},on:{baseOn:"subGridReload"}}},phone:{gridheader:{props:{langkey:"BUTTON_PHONE",baseIcon:"plat-icon-phone-lined",label:a.$_t("BUTTON_PHONE","电话")}},gridtable:{props:{langkey:"BUTTON_PHONE",baseIcon:"plat-icon-phone-lined",label:a.$_t("BUTTON_PHONE","电话")}},formheader:{props:{langkey:"BUTTON_PHONE",baseIcon:"plat-icon-phone-lined",label:a.$_t("BUTTON_PHONE","电话")}},subgrid:null},downLoadPrintWord:{gridheader:{props:{langkey:"BUTTON_DOWNLOADPRINTWORD",tagDataLabel:"下载打印文件",baseIcon:"rt-saas-export",label:a.$_t("BUTTON_DOWNLOADPRINTWORD","下载打印文件")},on:{baseOn:"downLoadPrintWord"}},formheader:{props:{langkey:"BUTTON_DOWNLOADPRINTWORD",tagDataLabel:"下载打印文件",baseIcon:"rt-saas-export",label:a.$_t("BUTTON_DOWNLOADPRINTWORD","下载打印文件")},on:{baseOn:"downLoadPrintWord",editOnly:!0}}},previewPrintWord:{gridheader:{props:{langkey:"BUTTON_PREVIEWPRINTWORD",tagDataLabel:{langkey:"platform.previewprintword",label:"预览打印文件"},baseIcon:"rt-saas-export",label:a.$_t("BUTTON_PREVIEWPRINTWORD","预览打印文件")},on:{baseOn:"previewPrintWord"}},formheader:{props:{langkey:"BUTTON_PREVIEWPRINTWORD",tagDataLabel:{langkey:"platform.previewprintword",label:"预览打印文件"},baseIcon:"rt-saas-export",label:a.$_t("BUTTON_PREVIEWPRINTWORD","预览打印文件")},on:{baseOn:"previewPrintWord",editOnly:!0}}},importallFileimage:{gridheader:{props:{langkey:"BUTTON_IMPORTALLFILEIMAGE",tagDataLabel:{langkey:"BUTTON_IMPORTALLFILEIMAGE",label:"批量上传(附件图片)"},baseIcon:"rt-saas-export",label:a.$_t("BUTTON_IMPORTALLFILEIMAGE","批量上传(附件图片)")},on:{baseOn:"normal",click:"batchUploadattachmentPictures"}}},edit:{gridheader:{props:{langkey:"BUTTON_EDIT",label:a.$_t("BUTTON_EDIT","编辑")}},gridtable:{props:{langkey:"BUTTON_EDIT",label:a.$_t("BUTTON_EDIT","编辑")}},formheader:{props:{langkey:"BUTTON_EDIT",label:a.$_t("BUTTON_EDIT","编辑"),hidden_formstatus:"true"}}},rowdelete:{gridheader:null,gridtable:{props:{langkey:"BUTTON_DELETE",label:a.$_t("BUTTON_DELETE","删除")}}},executeworkflowbyconfig:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_EXECUTEWORKFLOW",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_EXECUTEWORKFLOW","工作流")},on:{baseOn:"normal",click:"executeworkflow"}}},save:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_SAVE",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_SAVE","保存"),hidden_formstatus:'thisVue.actualSourceFlowId != ""'},on:{baseOn:"save",click:"__saveAndCatchError"}}},"save&new":{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_SAVE",baseIcon:"rt-saas-save",label:a.$_t("BUTTON_SAVE","保存")},on:{baseOn:"save",click:"saveAndNew"}}},"disable|enable":{gridheader:null,gridtable:null,formheader:{props:{},on:{baseOn:"disableEnable",editOnly:!0}}},flowapprove:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_Approve",baseIcon:"rt-saas-approve-progress",label:a.$_t("BUTTON_Approve","审批"),hidden_formstatus:'!thisVue.showFlowApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"flowapprove"}}},submitapprove:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_SUBMIT",label:a.$_t("BUTTON_SUBMIT","提交"),baseIcon:"rt-saas-submit",hidden_formstatus:'thisVue.formStatus == 0 ||!(thisVue.editForm.new_approvalstatus != 2 &&thisVue.editForm.new_approvalstatus != 3) ||thisVue.$route.name == "ApproveCenter" ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"submitapprove"}}},"save&submit":{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_SaveAndSubmit",baseIcon:"rt-saas-submit",label:a.$_t("BUTTON_SaveAndSubmit","保存并提交"),hidden_formstatus:'thisVue.formStatus == 0 ||!(thisVue.editForm.new_approvalstatus != 2 &&thisVue.editForm.new_approvalstatus != 3) ||thisVue.$route.name == "ApproveCenter"|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"save",click:"saveAndsubmitapprove"}}},revoke:{gridheader:null,gridtable:null,formheader:{props:{langkey:"common.recall",label:a.$_t("common.recall","撤回"),baseIcon:"rt-saas-recall",hidden_formstatus:'thisVue.formStatus == 0 ||thisVue.editForm.new_approvalstatus != 2 ||thisVue.$route.name == "ApproveCenter" ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"revoke"}},subgrid:null},"submitapprove|revoke":{gridheader:null,gridtable:null,formheader:{props:{childrenLen:!0,hidden_formstatus:'thisVue.formStatus == 0 ||thisVue.editForm.new_approvalstatus == 3 ||thisVue.$route.name == "ApproveCenter" ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"submitapproveSpecialBtn",type:"old"}}},approvelist:{gridheader:null,gridtable:null,formheader:{props:{langkey:"Approvelist",label:a.$_t("Approvelist","审批历史记录"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'thisVue.formStatus == 0 ||thisVue.editForm.new_approvalstatus == 1 ||thisVue.$route.name == "ApproveCenter" ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovelist"}}},newsubmitapprove:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_SUBMIT",label:a.$_t("BUTTON_SUBMIT","提交"),baseIcon:"rt-saas-submit",hidden_formstatus:'thisVue.formStatus == 0 ||!(thisVue.editForm.new_approvalstatus != 2 && thisVue.editForm.new_approvalstatus != 3) ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"newsubmitapprove"}}},newrevoke:{gridheader:null,gridtable:null,formheader:{props:{langkey:"common.recall",label:a.$_t("common.recall","撤回"),baseIcon:"rt-saas-recall",hidden_formstatus:'thisVue.formStatus == 0 || thisVue.editForm.new_approvalstatus != 2||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"newrevoke"}},subgrid:null},"newsubmitapprove|revoke":{gridheader:null,gridtable:null,formheader:{props:{childrenLen:!0,hidden_formstatus:'thisVue.formStatus == 0 ||thisVue.editForm.new_approvalstatus == 3 ||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"submitapproveSpecialBtn",type:"new"}}},newapprovelist:{gridheader:null,gridtable:null,formheader:{props:{langkey:"Approvelist",label:a.$_t("Approvelist","审批历史记录"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'thisVue.formStatus == 0 || thisVue.editForm.new_approvalstatus == 1||thisVue.$route.name == "platform-approve-detail" || thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"newshowApprovelist"}},subgrid:null},approvalagree:{gridheader:null,gridtable:null,formheader:{bind:{check:!0},props:{langkey:"ApprovalAgree",label:a.$_t("ApprovalAgree","同意"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'!thisVue.showApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovalAgree"}},subgrid:null},approvalcountersign:{gridheader:null,gridtable:null,formheader:{bind:{check:!0},props:{langkey:"ApprovalCountersign",label:a.$_t("ApprovalCountersign","会签"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'!thisVue.showApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovalCountersign"}},subgrid:null},approvaltransfer:{gridheader:null,gridtable:null,formheader:{bind:{check:!0},props:{langkey:"ApprovalTransfer",label:a.$_t("ApprovalTransfer","转办"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'!thisVue.showApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovalTransfer"}},subgrid:null},approvaloverrule:{gridheader:null,gridtable:null,formheader:{bind:{check:!0},props:{langkey:"ApprovalOverrule",label:a.$_t("ApprovalOverrule","驳回"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'!thisVue.showApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovalOverrule"}},subgrid:null},approvalreject:{gridheader:null,gridtable:null,formheader:{bind:{check:!0},props:{langkey:"ApprovalReject",label:a.$_t("ApprovalReject","驳回"),baseIcon:"rt-saas-approve-progress",hidden_formstatus:'!thisVue.showApprovalBtn|| thisVue.actualSourceFlowId != ""'},on:{baseOn:"normal",click:"showApprovalReject"}},subgrid:null},print:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_PRINT",label:a.$_t("BUTTON_PRINT","打印"),baseIcon:"rt-saas-print"},on:{baseOn:"print",editOnly:!0}},subgrid:null},design:{gridheader:null,gridtable:null,formheader:{props:{langkey:"BUTTON_FORMDESIGN",label:a.$_t("BUTTON_FORMDESIGN","表单设计"),tagDataLabel:{langkey:"platform.vformcoreFormDesign",label:"窗体设计"},baseIcon:"rt-saas-edit"},on:{baseOn:"normal",click:"designFormCommon"}}},addsubgridrow:{subgrid:{props:{langkey:"ADD_SUBGRIDROW",label:a.$_t("ADD_SUBGRIDROW","添加行"),baseIcon:"rt-base-plus-lined"},on:{baseOn:"normal",click:"__addSubgridRow"}}},downLoadBatchPrintWord:{subgrid:{props:{langkey:"BUTTON_DOWNLOADPRINTWORD",label:a.$_t("BUTTON_DOWNLOADPRINTWORD","下载打印文件"),baseIcon:"rt-saas-export"},on:{baseOn:"downLoadBatchPrintWord"}}},previewBatchPrintWord:{subgrid:{props:{langkey:"BUTTON_PREVIEWPRINTWORD",label:a.$_t("BUTTON_PREVIEWPRINTWORD","预览打印文件"),baseIcon:"rt-saas-export"},on:{baseOn:"previewBatchPrintWord"}}},subgridDownLoadPrintWord:{subgrid:{props:{langkey:"BUTTON_DOWNLOADPRINTWORD",label:a.$_t("BUTTON_DOWNLOADPRINTWORD","下载打印文件"),baseIcon:"rt-saas-export"},on:{baseOn:"downLoadBatchPrintWord"}}},subgridPreviewBatchPrintWord:{subgrid:{props:{langkey:"BUTTON_PREVIEWPRINTWORD",label:a.$_t("BUTTON_PREVIEWPRINTWORD","预览打印文件"),baseIcon:"rt-saas-export"},on:{baseOn:"previewBatchPrintWord"}}},showMask:{formheader:{props:{langkey:"BUTTON_SHOWMASK",label:a.$_t("BUTTON_SHOWMASK","查看隐私信息"),baseIcon:"rt-base-eye-lined",hidden_formstatus:"thisVue.$store.state.systemparameter.EnablePrivacyDataMask != 'true' || !thisVue.$store.state.user.canviewmask"},on:{baseOn:"showMaskHandler",editOnly:!0}}}},o=["edit","delete","enable","disable","disable|enable","flowapprove","submitapprove","save","save&submit","revoke","submitapprove|revoke","approvelist","newsubmitapprove","newrevoke","newsubmitapprove|revoke","newapprovelist","approvalagree","approvalcountersign","approvaltransfer","approvaloverrule","approvalreject","print","showMask","downLoadPrintWord","previewPrintWord"]},"6e6c":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.tag="rc-input-number",e.addAttr("controls",!1);const{precision:i,attributeType:a,isMillimeter:n}=this.props;e.addAttr("thousands",n),e.addAttr("localeFormatCode",r.numberLocaleCode),e.addProp("max",this.getMaxValue()),e.addProp("min",this.getMinValue());let o=this.getAvailableValue(i);return"float"!==a&&(o||(o=0),e.addProp("needZeroFill",t.targetComponent.displayNumbersByPrecision)),e.addProp("precision",o),e.addProp("clearable",!0),e}getMaxValue(){const{max:e,MaxValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}getMinValue(){const{min:e,MinValue:t}=this.props;return rt.isNil(e)?rt.isNil(t)?void 0:this.getAvailableValue(t):this.getAvailableValue(e)}}i=l,a="$bindNodeType",n=o.b.Number,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"6ec9":function(e,t,r){"use strict";r("5276")},"6f1d":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".radioGroupNew-radioGroup[data-v-1a48af3d]{flex-wrap:wrap}.el-form.el-form .el-form-item__content .radioGroupNew-radioGroup[data-v-1a48af3d]{height:auto}.radioGroupNew[data-v-1a48af3d]{margin:8px 0;font-size:14px;color:#a9c2e8}",""]),e.exports=t},"6f5c":function(e,t,r){"use strict";r("bc58")},"6f75":function(e,t,r){"use strict";function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return a}));class a{}i(a,"Header","rc-header"),i(a,"DetailHeader","rc-detail-header"),i(a,"HeaderIcon","rc-header-icon"),i(a,"Template","template"),i(a,"HeaderTitle","rc-header-title"),i(a,"Tag","rc-tag"),i(a,"ButtonGroup","rc-button-group"),i(a,"ButtonList","rc-button-list"),i(a,"Section","rc-section"),i(a,"SubGrid","rt-subgrid"),i(a,"ContentContainer","rc-content"),i(a,"Row","rc-row"),i(a,"Col","rc-col"),i(a,"ElCol","rc-col"),i(a,"Card","rc-card"),i(a,"Form","rc-form"),i(a,"formwrapper","rc-form-wrapper"),i(a,"Button","rc-button"),i(a,"DatePicker","rc-date-picker"),i(a,"Input","rc-input"),i(a,"Link","rc-link"),i(a,"FormItem","rc-form-item"),i(a,"Picklist","rc-picklist"),i(a,"Lookup","rt-lookup"),i(a,"MultipleLookup","rt-multiple-lookup"),i(a,"rtLookupMultiDialog","rt-lookup-multi-dialog"),i(a,"DatetimeBetween","rt-datetimebetween"),i(a,"Iframe","rt-iframe"),i(a,"Entity","rt-saas-entities"),i(a,"EntityLookup","rt-saas-entities-lookup"),i(a,"Attribute","rt-saas-attributes"),i(a,"Cron","rt-cron"),i(a,"gridCondition","gridcondition"),i(a,"SingleEntityCascader","rt-single-entity-cascader"),i(a,"Tooltip","rc-tooltip"),i(a,"Mask","rt-mask"),i(a,"Remark","rt-remark"),i(a,"Columns","rc-row"),i(a,"Column","rc-col"),i(a,"ElContainer","el-container"),i(a,"ElNewTabs","rt-saas-tabs"),i(a,"ElTabs","rc-content-tabs"),i(a,"ElTabPane","rc-tab-pane"),i(a,"ElHeader","el-header"),i(a,"ELMain","el-main"),i(a,"TlTag","el-tag"),i(a,"Notes","rt-notes"),i(a,"GroupNotes","rt-groupnotes"),i(a,"Audits","rt-audits"),i(a,"FlowApprovalList","rt-flowapprovallist"),i(a,"FlowSubmit","rt-flowsubmit"),i(a,"FlowApprove","rt-flowapprove"),i(a,"JFlowApprovalList","approval-state-line"),i(a,"FlowApprovalListPublic","approval-state-line-public"),i(a,"RTView","rc-view"),i(a,"GridListHeader","rc-list-header"),i(a,"GridListNewHeader","rt-plat-list-header"),i(a,"GridSearch","rc-search"),i(a,"GridFilter","rc-list-filter"),i(a,"GridTable","rc-table"),i(a,"GridTableColumn","tableCell"),i(a,"GridTableColumn2","el-table-column"),i(a,"platFilterComponent","plat-filter-component"),i(a,"ELDatePicker","el-date-picker"),i(a,"Icon","rc-icon"),i(a,"partylist","rt-p-lookup"),i(a,"RtLogo","rt-logo"),i(a,"RtAutoGraph","rt-autograph"),i(a,"printInput","printinput"),i(a,"steps","rc-steps"),i(a,"timeline","rt-timeline"),i(a,"timelinenotSubgrid","rt-timelinenotSubgrid"),i(a,"logisticstrack","rt-logisticstrack"),i(a,"customerComponent","customer-component"),i(a,"RtRadioGroup","rc-radio-group"),i(a,"RtCheckBoxGroup","rc-checkbox-group"),i(a,"RtCheckBox","rc-checkbox"),i(a,"RtRadio","rc-radio"),i(a,"Dialog","rt-dialog"),i(a,"Relationdialog","relationdialog"),i(a,"RelationDrawer","rt-relation-drawer"),i(a,"VDialog","vdialog"),i(a,"VDrawer","vdrawer"),i(a,"Editor","rt-saas-editor"),i(a,"ImageField","rt-saas-image-field"),i(a,"Cascader","rt-saas-cascader"),i(a,"BottonSelect","rt-saas-button-select"),i(a,"InputAddress","rt-address"),i(a,"RtAddressFlat","rt-address-flat"),i(a,"AddressParse","rt-address-parse"),i(a,"AddressLocation","rt-address-location"),i(a,"APaasCard","apaas-card"),i(a,"ApaasHeader","apaas-header"),i(a,"ApaasContent","apaas-content")},"6f97":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__6f97__},"6f9c":function(module,__webpack_exports__,__webpack_require__){"use strict";var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("9ab4"),vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("1b40"),_renderers_sharedInterfaces__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ef51"),vue__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_3__),apaas_utils_src_module_apaasCommon_vmethodsCommon__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("6053"),apaas_utils_src_module_apaasCommon_vcommonComponents__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("0571"),_commonUtils__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("18fc");function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:String(t)}function _toPrimitive(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}let VCommonMixin=class VCommonMixin extends(Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__.c)(apaas_utils_src_module_apaasCommon_vmethodsCommon__WEBPACK_IMPORTED_MODULE_4__.a,apaas_utils_src_module_apaasCommon_vcommonComponents__WEBPACK_IMPORTED_MODULE_5__.a)){constructor(...e){super(...e),_defineProperty(this,"objectTypeName",void 0),_defineProperty(this,"dialogFormId",void 0),_defineProperty(this,"isPreview",void 0),_defineProperty(this,"pageType",_renderers_sharedInterfaces__WEBPACK_IMPORTED_MODULE_2__.e.PCQuery),_defineProperty(this,"currentQueryId",""),_defineProperty(this,"editForm",{}),_defineProperty(this,"Current_Project",this.$store.state.currentProject),_defineProperty(this,"env","pc"),_defineProperty(this,"fieldInputHandlers",{}),_defineProperty(this,"schemaLoaded",!1),_defineProperty(this,"dataLoaded",!1),_defineProperty(this,"schemas",[]),_defineProperty(this,"events",[]),_defineProperty(this,"LayoutXmlMd5","-1"),_defineProperty(this,"hooks",[]),_defineProperty(this,"hookHandlers",{}),_defineProperty(this,"customerData",{}),_defineProperty(this,"customdisplayfields",[]),_defineProperty(this,"tabIndexs",{}),_defineProperty(this,"allSchema",{}),_defineProperty(this,"eventKeys",[]),_defineProperty(this,"changedProps",[]),_defineProperty(this,"entityPrivilege",{}),_defineProperty(this,"__enableApprovalFlow",!1),_defineProperty(this,"__collectStickyDic",{}),_defineProperty(this,"memoizeCache",{}),_defineProperty(this,"memoizeTimeouts",new Map)}get parameters(){return this.$store.state.systemparameter}get transactioncurrency(){return this.$store.state.user.transactioncurrency}get ownerid(){return{id:this.$store.state.user.userId,logicalname:"systemuser",name:this.$store.state.user.nickName}}get userInfo(){return this.$store.state.user}get _checkIsJApproval(){var e;return!0!==(null===(e=this.entityPrivilege)||void 0===e?void 0:e.EnableApproveFlow)?(e,t)=>Promise.resolve(!1):this._memoize(this._checkIsJApprovalOrigin,"JApproval")}get formLoaded(){return this.schemaLoaded&&this.dataLoaded}get paramHideHeaderIcon(){return _commonUtils__WEBPACK_IMPORTED_MODULE_6__.a.getBasicCompConfig().hideHeaderIcon||!1}mounted(){this.getEntityPrivilege(),this._loadPage()}beforeDestroy(){this.memoizeTimeouts.forEach(e=>{clearTimeout(e)}),this.memoizeTimeouts.clear(),this.memoizeCache={}}destroyed(){this.__execDestroyed()}__loadSchemasForIndexedDB(){return Promise.resolve()}__loadSchemas(e){return Promise.resolve()}_loadPage(){this.__loadSchemasForIndexedDB().then(()=>{this.$nextTick(()=>{this.__loadSchemas()})}).catch(()=>{this.__loadSchemas()})}__loadSchemasDetail(e,t,r){}__execDestroyed(){this.hookHandlers&&this.hookHandlers.destroyed&&this.hookHandlers.destroyed.forEach(e=>{try{e()}catch(e){}})}__execMounted(){this.schemaLoaded&&this.hookHandlers&&this.hookHandlers.mounted&&this.hookHandlers.mounted.forEach(e=>{try{e()}catch(e){const{error:t}=console;t("请注意!!【钩子执行出错】\n\t\t\t\t\t\t\t错误原因为"+e.message)}})}checkIsPreview(){return!!this.isPreview&&(rt.showErrorToast(this.$_t("platform.imagefield_not_button","当前预览模式,不支持按钮操作 .")),!0)}getEntityPrivilege(){}getAttributeImageUrl(e,t,r){return r&&(r=r.toLowerCase()),e&&t?"picklist"==r||"state"==r||"status"==r?e[t]?rt.getBaseUrl()+`api/meta/${this.objectTypeName}/${t}/${e[t]}/image`:null:rt.getBaseUrl()+`api/meta/${this.objectTypeName}/${t}/image`:null}updateEditForm(e,t){this.$set(this.editForm,e,t),this.setChangedProps(e)}setChangedProps(e){this.changedProps.indexOf(e)<0&&this.changedProps.push(e)}_reloadFromEntityHandle(){}deleteByIds(e,t,r,i,a){return new Promise((n,o)=>{if(this.checkIsPreview())return o();if(!this.checkIsCreated())return o();if(1===t.length){const s=0;if(i&&a&&void 0!==a[s]){let i;i=a[s]instanceof Object==1&&a[s].hasOwnProperty("reference")?a[s].text:a,this.$confirm(this.$_t("ThisActionDeletePerpetually_One","此操作将会永久删除记录,是否继续?",{entityDisplayName:r,primaryAttribute:i}),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("common.delete","删除"),confirmButtonClass:"ConfirmButtonClass ConfirmButtonType",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{try{rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));const r="api/dynamic/"+e+"/BatchDelete",i=await rt.post(r,t);this._reloadFromEntityHandle(),rt.hideLoadingToast(),rt.showSuccessToast(i),n()}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e),o()}}).catch(()=>{o()})}else this.$confirm(this.$_t("ThisActionDeletePerpetually_notPrimaryAttribute","此操作将会永久删除记录,是否继续?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("common.delete","删除"),confirmButtonClass:"ConfirmButtonClass ConfirmButtonType",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{try{rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));const r="api/dynamic/"+e+"/BatchDelete",i=await rt.post(r,t);this._reloadFromEntityHandle(),rt.hideLoadingToast(),rt.showSuccessToast(i),n()}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e),o()}}).catch(()=>{o()})}else this.$confirm(this.$_t("ThisActionDeletePerpetually_Num","此操作将会永久删除记录,是否继续?",{num:t.length}),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("common.delete","删除"),confirmButtonClass:"ConfirmButtonClass ConfirmButtonType",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{try{rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));const r="api/dynamic/"+e+"/BatchDelete",i=await rt.post(r,t);rt.hideLoadingToast(),rt.showSuccessToast(i),n()}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e),o()}}).catch(()=>{o()})})}deleteByRowId(e,t){return new Promise(async(r,i)=>{if(this.checkIsPreview())return i();if(!this.checkIsCreated())return i();try{rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));const i="api/dynamic/"+e+"/BatchDelete",a=await rt.post(i,t);this._reloadFromEntityHandle(),rt.hideLoadingToast(),rt.showSuccessToast(a),r()}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e),i()}})}disableByIds(e,t){return new Promise((r,i)=>this.checkIsPreview()?i():this.checkIsCreated()?void this.$confirm(this.$_t("common.ConfirmToDisable","是否确认停用?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("record.confirm","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("select.cancel","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{try{if("string"==typeof t){const r=`api/dynamic/${e}/${t}/Disabled`;await rt.post(r)}else{const r=`api/dynamic/${e}/Disabled`;await rt.post(r,t)}rt.showSuccessToast(this.$_t("Successfullydeactivated","停用成功")),setTimeout(()=>{r()},160)}catch(e){rt.showErrorToast(e),i()}}):i())}enableByIds(e,t){return new Promise((r,i)=>this.checkIsPreview()?i():this.checkIsCreated()?this.$confirm(this.$_t("common.Confirmtoenable","是否确认启用?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("record.confirm","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("select.cancel","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{try{if("string"==typeof t){const r=`api/dynamic/${e}/${t}/Enable`;await rt.post(r)}else{const r=`api/dynamic/${e}/Enable`;await rt.post(r,t)}rt.showSuccessToast(this.$_t("EnabledSuccessfully","启用成功")),setTimeout(()=>{r()},160)}catch(e){rt.showErrorToast(e),i()}}):i())}disableById(e,t){return t?this.disableByIds(e,t):Promise.reject()}enableById(e,t){return t?this.enableByIds(e,t):Promise.reject()}showDrawer(e,t,r,i,a){this.openDrawerComponent(e,t,r,i,a)}openDrawerComponent(e,t,r,i,a){return new Promise((n,o)=>{let s=new(vue__WEBPACK_IMPORTED_MODULE_3___default.a.extend({render:e=>e("vDrawer",{ref:"dialog",props:t}),store:this.$store,i18n:this.$i18n,router:this.$router}));s.$mount();const l=s.$refs.dialog;s.$nextTick(()=>{l.show(e,t,r,i,a)});const d=()=>{s&&(s.$destroy(),s=void 0)};l.$once("close",()=>{d(),o()}),l.$once("confirm",()=>{d(),n()}),this.$once("hook:beforeDestroy",()=>{d()})})}showDialog(e,t,r,i,a,n){this.$refs.vdialog&&this.$refs.vdialog.show(e,t,r,i,a,n)}showVlistDialog(e,t,r,i){this.showDialog("vlistcore",e,t,r,"large",i)}showVformDialog(e,t,r,i){this.showDialog("vformcore",e,t,r,"large",i)}showOversizeDialog(e,t,r,i,a){this.showDialog(e,t,r,i,"oversize",a)}showLargeDialog(e,t,r,i,a){this.showDialog(e,t,r,i,"large",a)}showSmallDialog(e,t,r,i,a){this.showDialog(e,t,r,i,"small",a)}designViewCommon(e,t){let r=this.$PlatUtils.getStudioOneUrl();r+=`#/layout/external?pageid=${encodeURIComponent(e)}&pagetype=${t}`,window.open(r)}checkRolePermissions(e){const t=e.split(","),r=this.$store.state.user.roles;if(r&&r.length>0&&t.length>0)for(const i of r)for(const e of t)if(e==i)return!1;return!0}_clearDBData(){}_memoize(e,t,r={}){if("function"!=typeof e)throw new TypeError("Expected a function");const i=this;return function(...a){let n;if(n="function"==typeof t?t.apply(this,a):JSON.stringify([t,...a]),i.memoizeCache.hasOwnProperty(n))return i.memoizeCache[n];function o(){const e=r.expireTime;"Number"===rt.getRawType(e)&&i.memoizeTimeouts.set(n,setTimeout(()=>{delete i.memoizeCache[n],i.memoizeTimeouts.delete(n)},e))}i.memoizeTimeouts.has(n)&&(clearTimeout(i.memoizeTimeouts.get(n)),i.memoizeTimeouts.delete(n));const s=i.memoizeCache[n]=e.apply(this,a);return s instanceof Promise?s.then(e=>(o(),e)).catch(e=>(r&&r.noCacheOnReject?(delete i.memoizeCache[n],i.memoizeTimeouts.delete(n)):o(),Promise.reject(e))):o(),s}}async _checkIsJApprovalOrigin(e,t){try{if(this.parameters.EnableJSignedFlow&&"false"==this.parameters.EnableJSignedFlow.toLowerCase())return!1;{const r=await rt.get("api/CrmFlow/GetFlowApproveProgressList?entityName="+e+"&entityId="+t);if(null!=r&&r.length>0)return!1;{const r=await rt.get("api/CrmFlow/GetFlowApproveLogList?entityName="+e+"&entityId="+t);return null==r||null==r||0==r.length}}}catch(e){return!0}}customComponentLoaded(e,t){this.$refs&&(this.$refs[e]=t,this.$refs[e].$refs||(this.$refs[e].$refs={}),this.$refs[e].$refs[e]=t)}formatScript(script){return eval("("+script+")")}load(){}checkIsCreated(){return!0}enableApprovalFlow(){this.__enableApprovalFlow=!0}setFormLabelCss(e,t="",r="",i="normal"){const a=document.getElementsByClassName("el-form-item__label");!a||a.length;const n=Array.from(a).filter(t=>t.attributes&&t.attributes.for&&t.attributes.for.value===e);!n||n.length;for(const o of n){const e=o;e.style.color=r,e.style.fontSize=t,e.style.fontWeight=i}}setFormContentCss(e,t="",r="",i="normal"){const a=document.getElementsByTagName("input");!a||a.length;const n=Array.from(a).filter(t=>t.attributes&&t.attributes.datafieldname&&t.attributes.datafieldname.value===e);!n||n.length;for(const o of n){const e=o;e.style.color=r,e.style.fontSize=t,e.style.fontWeight=i}}__findMethod(e){if(!e)return()=>{};const t=this[e];return t&&t instanceof Function?t:()=>{}}dispatch(e,t,r){let i=this.$parent||this.$root,a=i.$options.componentName;for(;i&&(!a||a!==e);)i=i.$parent,i&&(a=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(r))}execBtnAfterClick(e,t=null){const r=this.objectTypeName+":c:"+e+":after_execute";this.$bus.$emit(r,t)}};Object(tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__.d)()],VCommonMixin.prototype,"objectTypeName",void 0),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__.d)()],VCommonMixin.prototype,"dialogFormId",void 0),Object(tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__.d)({default:!1})],VCommonMixin.prototype,"isPreview",void 0),VCommonMixin=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([Object(vue_property_decorator__WEBPACK_IMPORTED_MODULE_1__.a)({})],VCommonMixin),__webpack_exports__.a=VCommonMixin},7088:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-mask.plat-mask-readonly-text[data-v-20f4913b] .rt-input input{background:#fff!important;height:19px!important;padding-left:0!important}.plat-mask.plat-mask-readonly-text .hidemask[data-v-20f4913b]{height:19px!important;border-left:none!important}.plat-mask .plat-mask-wrap[data-v-20f4913b]{position:relative;overflow:hidden}.plat-mask .plat-mask-wrap .left-icon[data-v-20f4913b]{position:absolute;z-index:1;left:8px;bottom:8px;cursor:pointer}.plat-mask .plat-mask-wrap .hideIcon[data-v-20f4913b] .rt-icon{display:none}.plat-mask .plat-mask-wrap .plat-mask-input[data-v-20f4913b] .el-input__inner{padding-right:70px}.plat-mask .plat-mask-wrap .editmask[data-v-20f4913b],.plat-mask .plat-mask-wrap .hidemask[data-v-20f4913b]{position:absolute;right:0;top:0;display:flex;width:35px;align-items:center;justify-content:center;height:35px;border-left:1px solid #d6dbe1}.plat-mask .plat-mask-wrap .editmask .rt-icon[data-v-20f4913b],.plat-mask .plat-mask-wrap .hidemask .rt-icon[data-v-20f4913b]{color:#363d44;cursor:pointer}.plat-mask .plat-mask-wrap .hidemask.canHideMask[data-v-20f4913b]{right:35px;border:none}.plat-mask-dialog[data-v-20f4913b] .plat-mask-view{background:#fff}.plat-mask-dialog[data-v-20f4913b] .rt-dialog-footer .rt-button{margin-left:8px}",""]),e.exports=t},7106:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".card-table[data-v-cbbc5ff8] .rt-view-wrapper{background:#fff;border-radius:8px}.card-table[data-v-cbbc5ff8] .rt-view-wrapper .rt-header.rt-xpc-sticky{display:none}.card-table .rt-defaultImage[data-v-cbbc5ff8]{margin-bottom:32px}[data-v-cbbc5ff8] .cardTableWrapper{background:#f6f7f8;border-radius:8px;border-bottom-left-radius:4px;border-bottom-right-radius:4px}[data-v-cbbc5ff8] .cardTableWrapper .rt-content-main{padding-top:16px}[data-v-cbbc5ff8] .cardTableWrapper .rt-content-main .rtxpc-form .plat-card-table .rt-card{margin-top:0;margin-bottom:0}[data-v-cbbc5ff8] .cardTableNoData .rt-content-main{padding-top:0}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-view-wrapper .rt-header{margin-bottom:0}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table{margin:0}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-content-main{padding:0}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .is-right .cell{display:flex;justify-content:flex-end}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .is-right .cell .cellContent{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .is-right .cell .isSubgridCell{white-space:unset}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody td.is-left .cell .cellItemForValid .el-form-item__content{display:unset;position:relative}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody td.is-left .cell .cellItemForValid .el-form-item__content .gridcellEditIcon{position:absolute}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .cell .rt-list-button-group{justify-content:center}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .cell .cellContent{width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .cell .cellContent.custom-tag{width:unset}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-content tbody .cell .isSubgridCell{white-space:unset}.list-table.plat-list-table[data-v-cbbc5ff8] .rt-table-cell-editor .plat-base-lookup .plat-base-input{height:100%}.flat-list-header[data-v-cbbc5ff8]{display:flex;align-items:center}.flat-list-header .total-count[data-v-cbbc5ff8]{font-size:13px;color:#0b0c0e;line-height:17px;font-weight:400;margin-left:4px}.flat-list-wrapper[data-v-cbbc5ff8]{padding-bottom:0;margin-bottom:4px}[data-v-cbbc5ff8] .rt-saas-nodata .rt-defaultImage{margin-top:12px;margin-bottom:0}",""]),e.exports=t},7135:function(e,t,r){"use strict";r("d951")},"714b":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.plat-approve-list a[data-v-6ee4d0e1]{text-decoration:none}.plat-approve-list ul li[data-v-6ee4d0e1]{list-style:none}.plat-approve-list #approveState[data-v-6ee4d0e1]{overflow-x:auto;overflow-y:hidden;padding:25px 35px 25px 0;border-bottom:1px solid #ccc;display:-webkit-box;white-space:nowrap}.plat-approve-list #approveState .nodelist[data-v-6ee4d0e1]{min-height:100px;display:-webkit-box}.plat-approve-list #approveState .node[data-v-6ee4d0e1]{min-height:50px}.plat-approve-list #approveState .node ul[data-v-6ee4d0e1]{z-index:1;width:130px;text-align:center}.plat-approve-list #approveState .node .node-icon[data-v-6ee4d0e1]{display:block;width:50px;height:50px;margin-left:40px}.plat-approve-list #approveState .icon-submit[data-v-6ee4d0e1]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFDQjg2MzM1NDc3NjExRTdBRUQ4QjVFQTJCNENCN0U1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFDQjg2MzM2NDc3NjExRTdBRUQ4QjVFQTJCNENCN0U1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUNCODYzMzM0Nzc2MTFFN0FFRDhCNUVBMkI0Q0I3RTUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUNCODYzMzQ0Nzc2MTFFN0FFRDhCNUVBMkI0Q0I3RTUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/dl4rAAAFpElEQVR42tyae0zbVRTHv5QWeTMwQ4QUzBjjERTCYwoOkI0BiWy6ZtFNsInoeIQ/UISEaIAJf6AGFcKyhw6SwYhsBicTx5gZOKJMAXWAk0IhsFULAtvCo7gBDu+vXFiltPz6WGk9ycmv+T3uPZ/+7rn3nHN/ZtCTLP7wtQ85RBMNIbqNqBdRW6I29BYZ0RmiYqL9RDuJtpg9u0ekj/7NdDTelxyERBOJ8rVsRkK0hmgVgeo1KAgBCCeHfKJx0K80ES0kQG0PFYQAMP96GdF9eLhyjmgmAZLoHYRAvEEhrGEYmaUwJ/UCQgAYwz+lfrARwvhPCgGa1RqEQDiSQwPRcGysMD6TQGDuaAxCIVqJ+sM45DeikapgOGqGU4MRQYDa0kBtYwdCfSIcxifh1Lb1QejslAjjlURqo2ofoeuEiM0U2z46hcaOLkzJZBpZ4eK4CZm7QmHBNdd1avZRXGe4q25gtU40DY6i/MxXSE9Ph4uLC+ve+/r6UFpaCtHwTXwsfAEOVo9oC2JNbRUogdCwg9WKfeqbb1FQUIDQ0FCNLQgMDERAQABeK69GeeoBuDnYaguzj7F5OZxR9JF8ti1Mz8jg7e2t9bjIyMhAklCI5E8qcX3kli5DLP8/zk6jWI0CQDMznQJnCAQCFBw+jDePVeOKWKJtM3HU9pU3IjTEdMPhcLCwsPBgLg0PR/mRI/ig9jzOdvyubbNCRRCDTLeenp4YHh7G4ODgyjkfHx9UVFbii+87UHrpKhYXFzWejuXOTjM7viFA7O3tkZubi7S0NPj7+8PBwWHlmru7O043NGF2bh7vJERq0iyfYeDS9FRn6e/vx/T0tPoe+XzExsYiLCwMYrFY6d+PiIjA2drPtek+mktzbJ2lvr4eo6Oj6nuLjkZCQgLs7OwQFBSkdJ05r6WEcGmhQGfJycnZyLBlG4dWO0xdvDi0ZGPqYstRqDuZsthw9dVSdnY2pFKpRs+4urqipKREL/0zIDJ9vJW8vDzINAzpbWz0NhhkDMiMPkCYxU1xgTOwzDA+IjaWge7s7IwXE57X5lEx80aYgvKOjQTo6elBY2MjBgYGsLgwj4F2C8SHPImgrU+wDiwYEKYqnqyrMa2trZicnGQdBcfExMiPxcXFEPV2Q7jfDwdj3WDOWUTv9SkcPX8JTtYOKHxVAEsL3npNdjIgLfr4V5modnx8nNW9PB4PUVFR8rT3/twIqksCYG7+IL9xdXbCzue2o+z4IN49VYePDh1Yr8kWLrM/QaJHia4RsFCoWUojEolw7ddO1JYFrUAcr+lF+7VxVHwYCSZvy0zzRHLmT7jaO4Aw362qmpIwDMv5SI2h/aK5uRl743zB5S6Z0PidBBcuS3B78h7eP9oFJjBmYATxW9DcpXbbpEYxsaoyNMjY2Bj4jy9VUebm/kHTlT+RkuSDHcGP4e69BfQOLFVG3VwtMT6pNj2oWgGhO0VNbI2wsrLE0NCQTiCOjo74a2Je/tvCwhylBc/A1ponrwW8lxUMPy9H+bWJiTlsslFZoWpa3uVSDFEK2RYg9u+KQlFREbKysuDh4aFdAhESghPHyvBy/FNQV8douHwTe0O2q7pcuFIMUTxLnP5LtrWtC2IpGn/8Gbdu39EKJD5mJ37p6oavJw+pBzevec+ZOikutkhR8dbr4CjTniNvQ6AKhHXJVC9xxd938fbJWpIZciB8aQv8/WzkFvX3z6Km7gZu/DGD0tRX4GSnlGkolUyVMGmB+DNDOf19Mj1d7CQre2c3BkfGlgoRmx9FbLA/9jwdCJ75mjXiQ6u35NYcnQTmNIy3Il9DIJKUogUVN6dgabvL2KSN2qYk/++tN7q2MA9EGsmbaVMHoRZEAWb3RoQwq0KQ3eog1A4tFbOZ6X4wsMY6Y9qfcKwCMu2PatYAMu3PnFRAbeiHZ/8KMACuoelvt7NT4QAAAABJRU5ErkJggg==")}.plat-approve-list #approveState .icon-approving[data-v-6ee4d0e1]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFCMjU5RjUxNDc3NjExRTc5QTZDREJFRkJGOTE1QTIyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFCMjU5RjUyNDc3NjExRTc5QTZDREJFRkJGOTE1QTIyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUIyNTlGNEY0Nzc2MTFFNzlBNkNEQkVGQkY5MTVBMjIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUIyNTlGNTA0Nzc2MTFFNzlBNkNEQkVGQkY5MTVBMjIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7GYd0WAAADDklEQVR42tyav4saURDHxzUqxkMIiMHCNHLnXUhpZeDgiiNNmtQGq3Ct/4GF/4FtSCWxtrGxEgKxsgy5U7HJFiYiBCQqKmpm9uaFjbe7t+t5us8vDLvI87357LzZ92s9sCU1m81TvFygpdBO0I7RjtBCXGSE9getg9amv6DVU6nUzTba9zzQ+TO8ZNEyaPENq1HRymglhLreKQgCpPGSR3sD21UNrYBAjUcFQQB66kW0d/C4qqDlEEjdOghCfGCIp7AbjRnm01ZAEIAc/8h5sA9R/lwh0HhjEIR4hpcqWhr2K8qZtwjz2zEIQ3xBewXu0De0czMYxaI7VV0EAexLlX2zB8I5kQb3Kc2+3Q/Cb6cMuFcZ9tE8R3icuNnhK/Yhr+ZT/TizHpGiBBDAPhYNI8LTjq8gl16L6Yw+InmQT/n/IsKz2O8gp17SrFlEJAvyKqvvWhmJQTTfPbyyuwa5dabw8lR2XSi8xpZdKYU3CmTXicK7HfbXxh4PBAIBUBTFVnmfz6eZHVGdVDe14VDHT3jLxpa8Xi8kk0kIBoOwXC6h2+3CcDg0LR+PxyEajWr3/X4fVNV8CR4OhyGRSGgwk8kEWq0WLBYLu64d0WMN2S0diUQ0CPH0YrGYZSQEBInurSJDdYkoUxvUlgOFFDgQEcjIbuHBYKCFnURdq9frmZadz+dadxKie/rNTFQX1UmiNqgtBxrRgPgTb547SXa/3685JRq+L9kFmJ1kp/Kz2QxWq5UTkF+U7B0nINTAdDq13YIdACF6ME7q1qlDXat9ACnSJpDmAYA0CaR+ACB1sbD6AZsfC+xbKi6sXohxpCxxNMr6hVVJYpDSPxA+KapJCFETp1z6KUpBQpCCfooCHBXaH6pIBFHRH9GtTxpzcLsd6XaN2VcwBOG91JwEIHfOFw2XYjiufAb3bhGVEeK90TTeSFdwe9zlNjXYt7uzctPJyyEcvXG+0B/OXRKZhhWEJYgO5nLPUxhq+9IKwrJrGXQ1uT8YWIOR/xOONSC5P6oxAJL7MycTqL1+ePZXgAEAuOQVwoZEwccAAAAASUVORK5CYII=")}.plat-approve-list #approveState .icon-approved[data-v-6ee4d0e1]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFDMzQ5RTBBNDc3NjExRTc5NUVGRTM1MDRDMUNBRjQ5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFDMzQ5RTBCNDc3NjExRTc5NUVGRTM1MDRDMUNBRjQ5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUMzNDlFMDg0Nzc2MTFFNzk1RUZFMzUwNEMxQ0FGNDkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUMzNDlFMDk0Nzc2MTFFNzk1RUZFMzUwNEMxQ0FGNDkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6g5m9DAAAHVklEQVR42txaaUxURxz/8VgQOaq4CF4cRjll/WBQBBKCosUgxApirBCoFU0aqX4wWOvBWRDBD20stSloCdFWK7JErIoSRUSqstYDBCOoVRMiRLFcAgJLZ4YHWTl234OHYn/JP2+PmXnzm/lf839PDxLh2rNMJ3JZQsSNiAMReyKmREz4Jq1EWohUE3lIREXkspdN5AMp7q83ysk7k0s4kVAi1iMc5jmRY0SyCamq90qEEPAklxgifpAWBUQSCKHSMSVCCNBV/4HIaowtlES2EULPJSdCSETyJIzxfvCGJ5MpCRFCgE78F94OPgSo/WwmhN6MmAghYU4uZ4h44sOC2kwAIfNaNBGeRDERV4wPVBDxHo4Mp0WdzowjEuDncoafmzAivE14YvzBk5+bbtXivVPGaO7W/OotasrrUfv0Fd60dLDfJpoYYqadBeYopuIT+YTREto00JvpDREnHozExba1dKEotwp5JwpRUX5fa1vF/HkIDFkK3zXzYGQiG6lrdtKMMwOJ5IoNdupuEo6PleNgWhYaGxsxd+5cBAUFwdvbG05OTpDL5azdy5cvUVlZieLiYuTm5uLJkyeYPHkyvt4RgU8/dwWnLzrJUBIiQYOI8GnHNTEjNb3qRPyWX3G99CYWLFiApKQk+Pn5QU9P+6TUajXy8/OxZ88eVFRUwMPLHTE/ho9E5bz60hlNY48RM8LL5+2IDPwOqpt/IzU1FWVlZVixYoVOEuymHIdVq1bh9u3bSEhIwI2/ypCfeQ9Gsk/EEol5Z0f4LLZSuDF3YWNgIhr/bYRSqcSyZctGZbk1NTVMJdu7mlBel49OdTv7/Z/qWpSVVCFkg6+27i40a+7bkXAxNhG35Qjq6+olIUFBSVDQHbGX+7D1vfSniixWEr6P/R1FZ29p6x6uqVqC86iC3+4zm9i3b58kJAbCVGaFwykXsfern9H+pgOOrrZwnG+rrQubux5/shN0oGlvUSPIIxoODg64fv0603UpUVdXh3Xr1qGoqIh99w/xQnRyGAwnGOjq6izjj6eCUKSsYi6WGqjUJOjCBAcHo7a2FoaGhti7byuWhjgJ7b6E48/YgpB3/ALs7e2ZdxqIzMxMXLhwYUQk0tPTWdyhJGbNmsVizbaoaDFDuHF8oUAnWhvUKCcRe82aNYP+y8rKwqZNmxASEoKqKuHH7ra2NkRERCAqKgqdnZ3w8fHBrVu34O7uDjPDqZBxguOKA8dXO3S7SJI7UdCVGwh/f3/Y2dmhqakJK1euZFFcFx4/fgwPDw9kZ2ez79u3b0dhYSEsLS37I4O6zUgoEXuOL9noRO3T3sk5OzsP+o/e/OzZs5g0aRJLPVavXo23b98OOxZt6+bmhrt378LU1BQnT57EgQMHoK+v37v7ra1sQZRHLwl2dpxG3Um7arX0Bilzc/Oh3QYheOrUKRgYGKCkpISp2lCpSXx8PAICAvD69Ws4Ojrixo0bg9S1ubmZkW1v6xRKxERS1+Pr64tDhw6xz1RlaKzpA514YGAg4uLi0NPTwxJLmta4uLgMGofaC1MuEXkkx1cAdVM27dXXhoYGre02btyInTt3ss+7du1imS5VIapKdJWp205JSUFOTg7MzMyGHKPvHiZmE4XyaJXxZUyd6jXD1oJdqVeihq0NycnJePToEdP9sLCwfg9lYWGB48ePs53Thj7PN83GXCiRFo6vxerOhxS93qQv6motzRCdoC550aJFjACVhQsXMteqiwTFlStX3rmnAFRTIg8FqdYUDgqFKzNoquO6YGxsjNOnT8PW1haRkZG4evUqbGxsdPbr7u5myairwgWT5ILd70NKRCW09WfrljOVKSgoENTeysoKd+7cQUZGBiZMEBbcqDrSnCtw7VIxfkY1oqRx9uzZUKlU/X5fKnR0dJBdV6C+vh45pSkwNjMQ2tWZ459PCCoWG5Gws3XHl2yV09LSJE/hY2NjUV1djS3R4WJIPKccOI36qiD4rXfFYk93dt4+f/68ZCSoSu3fvx/ui92wYv18sbXh/oNVttBeevo9iEvfgGnTp7Ggdu7cuVGToDElNDQUM2bOQEz6F9CXiaqoZPcT4Z8UFQjtaSaX4acT32KKfApLNxITE9HV1SWaAM3Hdu/ejbVr18LSyhLpf3yDyVONxAxR0PeUSzNFSRAzgoW1EQ7n78WixQsRExPDykF5eXksnxLiYmlgpIZNgydVp4zTu2BpbSJ2LRKkLdCRc/zB1CPs9Ghtbd1foKNJIY3mNO7Q1J5GbBrsaCx68eIFy5ajoiOITSjAySQq0I22ZEpd82VlJTlFXhRQMnVlJdOlwS6YaDoGJVOpitgtDV2ouVeP2mev0NpM0/8elnROt5VjjsJi7IvYGmSO4sM9atPpbgmJsKHS+KGwGb2Pu8YbSvm5DQ4Lw/X4Xzx642ML7eA9TnamVBsJrUQ0yCwXk8KMhU3QOWgjoVW1hvFmH+8LA0PEmY/7FY4BhD7ul2qGIPRxv+Y0DKkP+uLZfwIMAHeP5nlvq2XCAAAAAElFTkSuQmCC")}.plat-approve-list #approveState .proce[data-v-6ee4d0e1]{position:relative;top:16px;color:#888}.plat-approve-list #approveState .owner[data-v-6ee4d0e1]{font-size:14px;color:#444;margin-top:10px;width:130px;overflow:hidden;text-overflow:ellipsis}.plat-approve-list #approveState .date[data-v-6ee4d0e1]{font-size:14px;color:#444;margin-top:3px}.plat-approve-list #approveTrack[data-v-6ee4d0e1]{margin-top:20px;overflow:hidden;padding-left:5px}.plat-approve-list #approveTrack .plat-flow-desc[data-v-6ee4d0e1]{margin-left:10px}.plat-approve-list #approveTrack ul[data-v-6ee4d0e1]{margin-top:15px}.plat-approve-list #approveTrack ul li[data-v-6ee4d0e1]{position:relative;padding:0 15px 20px 15px;border-left:1px solid #d9d9d9;color:#333;font-size:14px}.plat-approve-list #approveTrack ul li.last[data-v-6ee4d0e1]{border-left-color:#fff}.plat-approve-list #approveTrack ul li .node-icon[data-v-6ee4d0e1]{position:absolute;left:-5px;width:11px;height:11px;background:url(//misc.360buyimg.com/user/order/0.0.1/css/i/order-icons.png) -21px -72px #fff no-repeat;background-position:0 -72px;top:0}.plat-approve-list #approveTrack .node-icon.first[data-v-6ee4d0e1]{padding-top:0}.plat-approve-list #approveTrack .date[data-v-6ee4d0e1]{display:inline-block;width:145px}.plat-approve-list #approveTrack .memo[data-v-6ee4d0e1]{color:#888;padding-top:10px;padding-left:144px}',""]),e.exports=t},7164:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".filter-existssubentity .list-item[data-v-e96d50c2]{margin-left:40px}.filter-existssubentity .row-linkEntity[data-v-e96d50c2]{align-items:center;margin:6px 0 0 6px}.filter-existssubentity .row-linkEntity .col-linkEntity[data-v-e96d50c2]{margin:0 8px 8px;color:#1d2129}.col-operator[data-v-e96d50c2]{display:flex;align-items:center;justify-content:center;width:20px;height:100%}",""]),e.exports=t},"716b":function(e,t,r){"use strict";r("f4a0")},"718c":function(e,t,r){var i=r("deb3");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4a463b66",i,!0,{sourceMap:!1,shadowMode:!1})},"71c0":function(e,t,r){"use strict";r("6e23")},"71ce":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".apaas-vform-form .apaas-vform-header[data-v-b985075c]{margin-bottom:8px}.apaas-vform-form .apaas-vform-header[data-v-b985075c] .rt-detail-header{position:sticky;top:0;min-height:56px;box-sizing:border-box;z-index:6;box-shadow:0 6px 16px -8px rgba(0,0,0,.2)}.apaas-vform-form .apaas-vform-header[data-v-b985075c] .rt-detail-header .header-sub-title{margin-top:unset;line-height:24px;max-width:400px;text-overflow:ellipsis;white-space:nowrap}.apaas-vform-form .apaas-vform-header[data-v-b985075c] .rt-detail-header .rt-header-button-group{height:unset}.apaas-vform-form .apaas-vform-header .form-header-tag[data-v-b985075c]{margin-top:6px}.apaas-vform-form .apaas-vform-content[data-v-b985075c] >.custom-component-wrapper,.apaas-vform-form .apaas-vform-content[data-v-b985075c] >.rt-content-main{padding:0 8px}.apaas-vform-form .apaas-vform-content[data-v-b985075c] >.custom-component-wrapper>.apaas-sub-content,.apaas-vform-form .apaas-vform-content[data-v-b985075c] >.rt-content-main>.apaas-sub-content{margin:0;margin-bottom:8px}.apaas-vform-form.el-form:not(.rt-form--readonly) .paddinginput[data-v-b985075c] .el-input__inner{padding-left:28px}.apaas-vform-form.el-form:not(.rt-form--readonly) .setlineinput[data-v-b985075c] .el-input__inner{text-decoration:underline;color:#0059b3}.apaas-vform-form.el-form:not(.rt-form--readonly) .el-form-item__content .radioGroupNew-radioGroup[data-v-b985075c]{height:auto}.apaas-vform-form[data-v-b985075c] .apaas-sub-content:not(.plat-editor-wrapper){border-radius:8px;overflow:hidden}.apaas-vform-form[data-v-b985075c] .apaas-row .apaas-column>.apaas-sub-content{margin:0;margin-bottom:8px}.apaas-vform-form[data-v-b985075c] .apaas-row-2{display:flex}.apaas-vform-form[data-v-b985075c] .apaas-row-2 .apaas-column{float:unset;min-width:300px}.apaas-vform-form[data-v-b985075c] .apaas-tabs:not(.is-sticky){background-color:#e8ebee}.apaas-vform-form[data-v-b985075c] .apaas-tabs:not(.is-sticky)>.rt-tabs__header{background:#fff}.apaas-vform-form[data-v-b985075c] .apaas-tabs:not(.is-sticky)>.rt-tabs__content>.rt-tab-pane>:first-child.apaas-card,.apaas-vform-form[data-v-b985075c] .apaas-tabs:not(.is-sticky)>.rt-tabs__content>.rt-tab-pane>:first-child.custom-component-wrapper+.apaas-card{border-top-left-radius:0;border-top-right-radius:0}.apaas-vform-form[data-v-b985075c] .apaas-tabs .plat-tabpane{padding:0}.apaas-vform-form[data-v-b985075c] .apaas-card:not(:last-child){margin-bottom:8px}.apaas-vform-form[data-v-b985075c] .apaas-card.apaas-card-custom-height .apaas-content{overflow-y:auto;height:calc(100% - 52px);box-sizing:border-box}.apaas-vform-form[data-v-b985075c] .apaas-card.apaas-card-custom-height .apaas-content.flat-list-wrapper{height:calc(100% - 48px);padding-bottom:4px}.apaas-vform-form[data-v-b985075c] .apaas-card.apaas-card-custom-height .card-table{height:calc(100% - 52px);overflow-y:auto}.apaas-vform-form[data-v-b985075c] .apaas-column>.apaas-card:last-child{margin-bottom:0}.apaas-vform-form[data-v-b985075c] .content-vlistView .apaas-relevant-view .rt-table.rt-table--border{border-left-color:#fff;border-right-color:#fff;border-bottom-color:#fff}.apaas-vform-form[data-v-b985075c] .custom-sub-content .apaas-card,.apaas-vform-form[data-v-b985075c] .custom-sub-content .rt-card{margin-bottom:8px}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c]{margin-bottom:0}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky+.rt-content-wrapper[data-v-b985075c]{display:none}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky.vform-header-steps-has-sticky[data-v-b985075c] .rt-tabs .rt-tabs__header{top:96px}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c] >.rt-tabs{background:#e8ebee}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c] >.rt-tabs>.rt-tabs__header{position:sticky;z-index:6;top:56px;background:#fff;box-shadow:0 6px 16px -8px rgba(0,0,0,.2)}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c] >.rt-tabs>.rt-tabs__header .rt-tabs__nav-wrap:after{height:0;border:none}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c] >.rt-tabs>.rt-tabs__content{padding:8px 8px 0}.apaas-vform-form .rt-header.vform-header-tabs-has-sticky[data-v-b985075c] >.rt-tabs>.rt-tabs__content .rt-tab-pane .rc-columns:first-child{margin-top:0}.apaas-vform-form .vform-header-steps-has-sticky[data-v-b985075c] .rt-detail-header{box-shadow:none}.apaas-vform-form .vform-header-steps-has-sticky[data-v-b985075c] .rt-detail-header+.plat-steps-wrap{margin:0;position:sticky;z-index:4;top:56px;overflow:unset;padding:4px 16px 0;min-height:40px;box-shadow:0 6px 16px -8px rgba(0,0,0,.2);border-radius:unset}.apaas-vform-form .vform-header-steps-has-sticky[data-v-b985075c] .rt-detail-header .rt-header-button-group{height:unset}.apaas-vform-form .vform-header-steps-has-sticky[data-v-b985075c] .plat-steps-wrap .rt-defaultImage{margin:0}.apaas-vform-form .rt-header.vform-header-steps-has-sticky.vform-header-tabs-has-sticky[data-v-b985075c] .rt-detail-header+.plat-steps-wrap{box-shadow:none}[data-v-b985075c] .rt-input.hasprefixicon .el-input__prefix .rt-icon{position:unset}.el-form.is-border-form .el-col[data-v-b985075c]{min-height:68px}.el-form.is-border-form .el-col>.custom-component-wrapper[data-v-b985075c]> .custom-component-inner,.el-form.is-border-form .el-col>.custom-component-wrapper[data-v-b985075c]> .custom-component-inner ::v-deep .loading-container{min-height:56px}.el-form.is-border-form .el-col .rt-form-item-wrapper-textarea[data-v-b985075c] .rtxpc-form-item__label{flex:1;z-index:1}.el-form.is-border-form .el-col .rt-form-item-wrapper-textarea[data-v-b985075c] .rtxpc-textarea__inner{position:relative;z-index:1}.el-form.is-border-form .el-col .rt-form-item-wrapper-textarea[data-v-b985075c] .rtxpc-input__count{z-index:1}[data-v-b985075c] .rc-columns .el-col{overflow:auto}[data-v-b985075c] .rc-columns .el-col .rt-card:first-child{margin-top:0}[data-v-b985075c] .rc-columns .el-col::-webkit-scrollbar{width:4px;height:6px}[data-v-b985075c] .rc-columns .el-col::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc}[data-v-b985075c] .rc-columns .el-col::-webkit-scrollbar-track{border-radius:0;background:transparent}[data-v-b985075c] .rc-columns.rc-special-columns{display:flex}[data-v-b985075c] .rc-columns.rc-special-columns .el-col{overflow:visible}[data-v-b985075c] .el-link.el-link--primary{color:#2563eb;font-weight:400}[data-v-b985075c] .el-link.el-link--primary:hover{color:#5182ef;font-weight:400}.date-range-deploy[data-v-b985075c]{color:#98a6b3;height:35px;line-height:35px;font-size:13px}.plat-no-page-schema[data-v-b985075c]{text-align:center;height:400px;line-height:400px;font-size:18px}[data-v-b985075c] .rt-tabs>.rt-tabs__header{position:static}[data-v-b985075c] .plat-steps-wrap{padding:16px 16px 8px}[data-v-b985075c] .apaas-dialog-mode .plat-dialog-footer{box-sizing:border-box;height:60px;display:flex;flex-direction:row-reverse;flex-shrink:0;background-color:#fff;padding:0 16px;align-items:center;border-top:1px solid #f0f2f4}[data-v-b985075c] .apaas-dialog-mode .plat-dialog-footer .rt-button+.button-group-more,[data-v-b985075c] .apaas-dialog-mode .plat-dialog-footer .rt-button+.rt-button{margin-right:8px}[data-v-b985075c] .apaas-dialog-mode>.rt-content-wrapper{max-height:calc(70vh - 107px);overflow-y:auto}[data-v-b985075c] .apaas-dialog-mode>.rt-content-wrapper>.rt-content-main{padding:12px 12px 4px}[data-v-b985075c] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main{padding:12px 12px}[data-v-b985075c] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main .list-table.plat-list-table .rt-content-main{padding:0}[data-v-b985075c] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main .rc-section.plat-section{padding-bottom:16px}",""]),e.exports=t},"72a2":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".more-btns-popper{box-sizing:border-box;text-align:left;padding:8px 0}",""]),e.exports=t},"736e":function(e,t,r){var i=r("9f9f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1a945dc4",i,!0,{sourceMap:!1,shadowMode:!1})},"748f":function(e,t,r){"use strict";r("8ac8")},"74ab":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".apaas-card[data-v-39a4b596]{border-radius:8px;background:#fff;overflow:hidden}.apaas-card-empty[data-v-39a4b596]{position:relative;width:100%;text-align:center;font-size:14px;line-height:19px;color:#86909c;overflow-wrap:anywhere}",""]),e.exports=t},"74bf":function(e,t,r){"use strict";r("7fe0")},"755c":function(e,t,r){"use strict";r("f142")},7579:function(e,t,r){var i=r("53c1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1ff56a1c",i,!0,{sourceMap:!1,shadowMode:!1})},7592:function(e,t,r){var i=r("31f8");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1ecc0acd",i,!0,{sourceMap:!1,shadowMode:!1})},7634:function(e,t,r){"use strict";var i,a,n;a=[],void 0===(n="function"==typeof(i=function(){function e(){return!0}function t(){return!1}function r(){}return function i(){var a=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],n={name:"any",test:e},o=[],s=[],l={types:a,conversions:s,ignore:o};function d(e){var t=B(l.types,(function(t){return t.name===e}));if(t)return t;if("any"===e)return n;var r=B(l.types,(function(t){return t.name.toLowerCase()===e.toLowerCase()}));throw new TypeError('Unknown type "'+e+'"'+(r?'. Did you mean "'+r.name+'"?':""))}function c(e){return e===n?999:l.types.indexOf(e)}function u(e){var t=B(l.types,(function(t){return t.test(e)}));if(t)return t.name;throw new TypeError("Value has unknown type. Value: "+e)}function p(e){return e.map((function(e){var t=e.types.map(x);return(e.restParam?"...":"")+t.join("|")})).join(",")}function h(e,t){var r=0===e.indexOf("..."),i=(r?e.length>3?e.slice(3):"any":e).split("|").map(M).filter(L).filter(A),a=function(e,t){var r={};return e.forEach((function(e){-1!==t.indexOf(e.from)||-1===t.indexOf(e.to)||r[e.from]||(r[e.from]=e)})),Object.keys(r).map((function(e){return r[e]}))}(t,i),n=i.map((function(e){var t=d(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}})),o=a.map((function(e){var r=d(e.from);return{name:e.from,typeIndex:c(r),test:r.test,conversion:e,conversionIndex:t.indexOf(e)}}));return{types:n.concat(o),restParam:r}}function f(e){var t=$(e);return!!t&&t.restParam}function m(e){return e.types.some((function(e){return null!=e.conversion}))}function g(t){if(t&&0!==t.types.length){if(1===t.types.length)return d(t.types[0].name).test;if(2===t.types.length){var r=d(t.types[0].name).test,i=d(t.types[1].name).test;return function(e){return r(e)||i(e)}}var a=t.types.map((function(e){return d(e.name).test}));return function(e){for(var t=0;t=n+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(r=g(e[0]),function(e){return r(e[0])&&1===e.length}):2===e.length?(r=g(e[0]),i=g(e[1]),function(e){return r(e[0])&&i(e[1])&&2===e.length}):(t=e.map(g),function(e){for(var r=0;r0){var d=u(t[n]);return(i=new TypeError("Unexpected type of argument in function "+o+" (expected: "+a.join(" or ")+", actual: "+d+", index: "+n+")")).data={category:"wrongType",fn:o,index:n,actual:d,expected:a},i}}else s=l}var c=s.map((function(e){return f(e.params)?1/0:e.params.length}));if(t.lengthp?((i=new TypeError("Too many arguments in function "+o+" (expected: "+p+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:o,index:t.length,expectedLength:p},i):((i=new TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+o+".")).data={category:"mismatch",actual:t.map(u)},i)}function C(e){for(var t=999,r=0;r=a:s?a>=n:a===n}(t,e)}));if(t)throw new TypeError('Conflicting signatures "'+p(t.params)+'" and "'+p(e.params)+'".');a.push(e)}));var n=U(a,(function(e){return(e?O(e.params,!1):[]).map((function(t){return{params:t,fn:e.fn}}))})).filter(R);n.sort(T);var o=n[0]&&n[0].params.length<=2&&!f(n[0].params),s=n[1]&&n[1].params.length<=2&&!f(n[1].params),d=n[2]&&n[2].params.length<=2&&!f(n[2].params),c=n[3]&&n[3].params.length<=2&&!f(n[3].params),u=n[4]&&n[4].params.length<=2&&!f(n[4].params),y=n[5]&&n[5].params.length<=2&&!f(n[5].params),x=o&&s&&d&&c&&u&&y,w=n.map((function(e){return b(e.params)})),_=o?g(n[0].params[0]):t,E=s?g(n[1].params[0]):t,C=d?g(n[2].params[0]):t,N=c?g(n[3].params[0]):t,S=u?g(n[4].params[0]):t,I=y?g(n[5].params[0]):t,D=o?g(n[0].params[1]):t,A=s?g(n[1].params[1]):t,L=d?g(n[2].params[1]):t,$=c?g(n[3].params[1]):t,V=u?g(n[4].params[1]):t,q=y?g(n[5].params[1]):t,z=n.map((function(e){return function(e,t){var r=t;if(e.some(m)){var i=f(e),a=e.map(k);r=function(){for(var e=[],r=i?arguments.length-1:arguments.length,n=0;n"template"==e.VueTag).forEach(e=>{e.createVNode(r,t)})}addChildByPermission(e,t){const r=t.targetComponent;for(const a in r.savedComponent){if(!r.savedComponent[a])continue;const n=r.savedComponent[a].gridConditionProps;if(n.props.availableOnPhone!=i.a.MOBILE&&(n.props.isExposed||!t.isHeaderConditions))switch(n.$nodetype){case i.b.gridCondition:{const r=new s.default(n);if(this.calcHidden(r,t,n))continue;n.props.isExposed&&(t.isListExposedConditions=!0),r.extendParentInfo(this.parentInfo),r.createVNode(e,t);break}case i.b.customerComponent:{if(r.queryAttributes.requestApi)break;const i=new l.default(n);if(this.calcHidden(i,t,n))continue;i.extendParentInfo(this.parentInfo),i.location="gridconditions",i.conditionKey="extra_"+n.id,i.createVNode(e,t);break}}}}extendFilterDrawer(e,t){const r=t.targetComponent,i=e.data;e.props.objectTypeName=r.objectTypeName,e.props.queryId=r.currentQueryId,e.props.filterFormList=r.filterFormList,e.props.currentViewType=r.currentViewType,e.props.editForm=r.editForm,e.props.conditionId=r.currentConditionId,i.on=i.on||{},i.on.addCondition=(e,t)=>{r.__addConditionHandler(e,{gridConditionProps:t})},i.on.confirmSearch=r._filetrprimary,i.on.resetCondition=r.filetrreset,i.on.changeCondition=r.__changeConditionHandler,i.on.resetGridConditionChangeStatus=r.__resetGridConditionChangeStatusHandler,e.props.savedComponent=r.savedComponent,e.props.defaultSavedComponent=r.defaultSavedComponent,e.props.gridConditionIsChanged=r.gridConditionIsChanged,i.ref="filterdrawer",e.addProp("hideCustomBtn",!!r.queryAttributes.requestApi)}extraForm(e,t){const r=t.targetComponent,i={...r.editForm};r.filterFormList.forEach(e=>{i[e.key]=e.val}),e.setAttr("model",i),e.ref="editForm",e.addProp("border",!0)}calcHidden(e,t,r){const i=t.targetComponent;let a=!1;return null!=r&&r.props.rowCalcHidden&&(a=r.props.rowCalcHidden.call(i)),!a&&null!=r&&r.props.cellCalcHidden&&(a=r.props.cellCalcHidden.call(i)),a||(a=super.calcHidden(e,t)),a}calcConditionReadonly(e,t){const r=e.targetComponent;let i=!1;null!=t&&t.props.cellCalcReadonly&&(i=t.props.cellCalcReadonly.call(r)),!i&&null!=t&&t.props.rowCalcReadonly&&(i=t.props.rowCalcReadonly.call(r)),i&&(this.parentInfo.readonly=!0,this.parentInfo.ruleReadonly=d.a.Default)}}c(u,"$bindNodeType",i.b.gridconditions)},"798d":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-saas-range[data-v-744ebd6b]{display:inline-flex;width:100%}.rt-saas-range[data-v-744ebd6b] .rt-input-shadow{display:none}.rt-view-wrapper .rt-form-item-wrapper .rt-saas-range>span[data-v-744ebd6b]{display:flex;align-items:center;width:6px;overflow:hidden;margin:0 8px}.rt-view-wrapper .rt-form-item-wrapper .rt-saas-range[data-v-744ebd6b] .rt-input{width:100%}.input-wrap[data-v-744ebd6b]{width:50%;position:relative}",""]),e.exports=t},"7aa0":function(e,t,r){var i=r("9c55");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7c62c1be",i,!0,{sourceMap:!1,shadowMode:!1})},"7aad":function(e,t,r){"use strict";r("ede2")},"7ad6":function(e,t,r){"use strict";r("99a6")},"7aec":function(e,t,r){(function(e){var i;!function(e,a,n){function o(e){var t=this;t.next=function(){var e,r,i=t.w,a=t.X,n=t.i;return t.w=i=i+1640531527|0,r=a[n+34&127],e=a[n=n+1&127],r^=r<<13,e^=e<<17,r^=r>>>15,e^=e>>>12,r=a[n]=r^e,t.i=n,r+(i^i>>>16)|0},function(e,t){var r,i,a,n,o,s=[],l=128;for(t===(0|t)?(i=t,t=null):(t+="\0",i=0,l=Math.max(l,t.length)),a=0,n=-32;n>>15,i^=i<<4,i^=i>>>13,n>=0&&(o=o+1640531527|0,a=0==(r=s[127&n]^=i+o)?a+1:0);for(a>=128&&(s[127&(t&&t.length||0)]=-1),a=127,n=512;n>0;--n)i=s[a+34&127],r=s[a=a+1&127],i^=i<<13,r^=r<<17,i^=i>>>15,r^=r>>>12,s[a]=i^r;e.w=o,e.X=s,e.i=a}(t,e)}function s(e,t){return t.i=e.i,t.w=e.w,t.X=e.X.slice(),t}function l(e,t){null==e&&(e=+new Date);var r=new o(e),i=t&&t.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=r.next,a.quick=a,i&&(i.X&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.xor4096=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},"7afb":function(e,t,r){(t=r("24fb")(!1)).push([e.i,"[data-v-2f0d250e] .el-form-item__error{display:none}",""]),e.exports=t},"7b49":function(e,t,r){var i=r("b090");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("c4cbcb5c",i,!0,{sourceMap:!1,shadowMode:!1})},"7b5b":function(e,t,r){"use strict";r("5751")},"7bad":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","viewprimaryfield")}createVNode(e,t){}}n(o,"$bindNodeType",i.b.viewprimaryfield)},"7bb0":function(e,t,r){"use strict";r("1ea2")},"7bcc":function(e,t){function r(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var i=/javascript\s*\:/gim;t.whiteList=r(),t.getDefaultWhiteList=r,t.onAttr=function(e,t,r){},t.onIgnoreAttr=function(e,t,r){},t.safeAttrValue=function(e,t){return i.test(t)?"":t}},"7cff":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf"),d=r("6f75");class c extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(d.a.Card);i.nodeType=this.$nodetype+"card",this.buildVNode(i,t);const a=e.addChildByTag(this.VueTag);a.nodeType=this.$nodetype,this.buildIframeVNode(a,t),this.appendNode(e,i,t)}buildIframeVNode(e,t){this.buildVNode(e,t);const r=this.props;e.addProp("iframeUrl",r.iframeUrl),e.addProp("iframeUrlExpression",r.iframeUrl);const i=t.targetComponent;if(e.props.iframeUrlExpression){const t=i.getFunctionByExpression(e.props.iframeUrlExpression).call(i);t&&t.length>0?e.setProp("iframeUrl",t):e.setProp("iframeUrl","")}}}i=c,a="$bindNodeType",n=o.b.Iframe,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"7d01":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.mobilelistitemprimary,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"7da4":function(e,t,r){var i=r("1c61");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("42ba6897",i,!0,{sourceMap:!1,shadowMode:!1})},"7dbc":function(e,t,r){"use strict";r("7da4")},"7e11":function(e,t,r){var i=r("84a7");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7d11ec9c",i,!0,{sourceMap:!1,shadowMode:!1})},"7ef1":function(e,t,r){var i=r("4668");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("01749826",i,!0,{sourceMap:!1,shadowMode:!1})},"7f58":function(e,t,r){var i=r("bc36");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("71fac6b4",i,!0,{sourceMap:!1,shadowMode:!1})},"7fe0":function(e,t,r){var i=r("240f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("65b1ea4a",i,!0,{sourceMap:!1,shadowMode:!1})},"80d8":function(e,t,r){"use strict";r("87f7")},"80f8":function(e,t,r){"use strict";r("a2d3")},"80fb":function(e,t,r){"use strict";r("5944")},8166:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-user-custom-dialog-footer .user-custom-dialog-confirm[data-v-c2898574]{margin-left:10px}",""]),e.exports=t},"823b":function(e,t,r){"use strict";r("60ef")},"823c":function(e,t,r){"use strict";r.r(t),r.d(t,"COLOR_B1",(function(){return i})),r.d(t,"COLOR_B2",(function(){return a})),r.d(t,"COLOR_B3",(function(){return n})),r.d(t,"COLOR_B4",(function(){return o})),r.d(t,"COLOR_B5",(function(){return s})),r.d(t,"COLOR_B6",(function(){return l})),r.d(t,"COLOR_B7",(function(){return d})),r.d(t,"COLOR_B8",(function(){return c})),r.d(t,"COLOR_B9",(function(){return u})),r.d(t,"COLOR_B10",(function(){return p})),r.d(t,"COLOR_G1",(function(){return h})),r.d(t,"COLOR_G2",(function(){return f})),r.d(t,"COLOR_G3",(function(){return m})),r.d(t,"COLOR_G4",(function(){return g})),r.d(t,"COLOR_G5",(function(){return b})),r.d(t,"COLOR_G6",(function(){return y})),r.d(t,"COLOR_G7",(function(){return v})),r.d(t,"COLOR_G8",(function(){return x})),r.d(t,"COLOR_G9",(function(){return w})),r.d(t,"COLOR_G10",(function(){return _})),r.d(t,"COLOR_O1",(function(){return E})),r.d(t,"COLOR_O2",(function(){return C})),r.d(t,"COLOR_O3",(function(){return N})),r.d(t,"COLOR_O4",(function(){return S})),r.d(t,"COLOR_O5",(function(){return T})),r.d(t,"COLOR_O6",(function(){return k})),r.d(t,"COLOR_O7",(function(){return O})),r.d(t,"COLOR_O8",(function(){return I})),r.d(t,"COLOR_O9",(function(){return D})),r.d(t,"COLOR_O10",(function(){return A})),r.d(t,"COLOR_R1",(function(){return M})),r.d(t,"COLOR_R2",(function(){return L})),r.d(t,"COLOR_R3",(function(){return R})),r.d(t,"COLOR_R4",(function(){return P})),r.d(t,"COLOR_R5",(function(){return $})),r.d(t,"COLOR_R6",(function(){return F})),r.d(t,"COLOR_R7",(function(){return j})),r.d(t,"COLOR_R8",(function(){return B})),r.d(t,"COLOR_R9",(function(){return U})),r.d(t,"COLOR_R10",(function(){return V})),r.d(t,"COLOR_I1",(function(){return q})),r.d(t,"COLOR_I2",(function(){return z})),r.d(t,"COLOR_I3",(function(){return H})),r.d(t,"COLOR_I4",(function(){return G})),r.d(t,"COLOR_I5",(function(){return W})),r.d(t,"COLOR_I6",(function(){return Q})),r.d(t,"COLOR_I7",(function(){return X})),r.d(t,"COLOR_I8",(function(){return K})),r.d(t,"COLOR_I9",(function(){return Y})),r.d(t,"COLOR_I10",(function(){return J})),r.d(t,"COLOR_A1",(function(){return Z})),r.d(t,"COLOR_A2",(function(){return ee})),r.d(t,"COLOR_A3",(function(){return te})),r.d(t,"COLOR_A4",(function(){return re})),r.d(t,"COLOR_A5",(function(){return ie})),r.d(t,"COLOR_A6",(function(){return ae})),r.d(t,"COLOR_A7",(function(){return ne})),r.d(t,"COLOR_A8",(function(){return oe})),r.d(t,"COLOR_A9",(function(){return se})),r.d(t,"COLOR_A10",(function(){return le})),r.d(t,"COLOR_M1",(function(){return de})),r.d(t,"COLOR_M2",(function(){return ce})),r.d(t,"COLOR_M3",(function(){return ue})),r.d(t,"COLOR_M4",(function(){return pe})),r.d(t,"COLOR_M5",(function(){return he})),r.d(t,"COLOR_M6",(function(){return fe})),r.d(t,"COLOR_M7",(function(){return me})),r.d(t,"COLOR_M8",(function(){return ge})),r.d(t,"COLOR_M9",(function(){return be})),r.d(t,"COLOR_M10",(function(){return ye})),r.d(t,"COLOR_P1",(function(){return ve})),r.d(t,"COLOR_P2",(function(){return xe})),r.d(t,"COLOR_P3",(function(){return we})),r.d(t,"COLOR_P4",(function(){return _e})),r.d(t,"COLOR_P5",(function(){return Ee})),r.d(t,"COLOR_P6",(function(){return Ce})),r.d(t,"COLOR_P7",(function(){return Ne})),r.d(t,"COLOR_P8",(function(){return Se})),r.d(t,"COLOR_P9",(function(){return Te})),r.d(t,"COLOR_P10",(function(){return ke})),r.d(t,"COLOR_C1",(function(){return Oe})),r.d(t,"COLOR_C2",(function(){return Ie})),r.d(t,"COLOR_C3",(function(){return De})),r.d(t,"COLOR_C4",(function(){return Ae})),r.d(t,"COLOR_C5",(function(){return Me})),r.d(t,"COLOR_C6",(function(){return Le})),r.d(t,"COLOR_C7",(function(){return Re})),r.d(t,"COLOR_C8",(function(){return Pe})),r.d(t,"COLOR_C9",(function(){return $e})),r.d(t,"COLOR_C10",(function(){return Fe})),r.d(t,"COLOR_PRIMARY",(function(){return je})),r.d(t,"COLOR_BRANCH",(function(){return Be})),r.d(t,"COLOR_NORMAL",(function(){return Ue})),r.d(t,"COLOR_SUCCESS",(function(){return Ve})),r.d(t,"COLOR_WARNING",(function(){return qe})),r.d(t,"COLOR_DANGER",(function(){return ze})),r.d(t,"COLOR_INFO",(function(){return He})),r.d(t,"COLOR_SECONDARY",(function(){return Ge})),r.d(t,"COLOR_PURPLE",(function(){return We})),r.d(t,"COLOR_PINK",(function(){return Qe})),r.d(t,"COLOR_YELLOW",(function(){return Xe})),r.d(t,"COLOR_PRIMARY_HOVER",(function(){return Ke})),r.d(t,"COLOR_NORMAL_HOVER",(function(){return Ye})),r.d(t,"COLOR_SUCCESS_HOVER",(function(){return Je})),r.d(t,"COLOR_WARNING_HOVER",(function(){return Ze})),r.d(t,"COLOR_DANGER_HOVER",(function(){return et})),r.d(t,"COLOR_INFO_HOVER",(function(){return tt})),r.d(t,"COLOR_SECONDARY_HOVER",(function(){return rt})),r.d(t,"COLOR_DISABLED_HOVER",(function(){return it})),r.d(t,"COLOR_PRIMARY_ACTIVE",(function(){return at})),r.d(t,"COLOR_NORMAL_ACTIVE",(function(){return nt})),r.d(t,"COLOR_SUCCESS_ACTIVE",(function(){return ot})),r.d(t,"COLOR_WARNING_ACTIVE",(function(){return st})),r.d(t,"COLOR_DANGER_ACTIVE",(function(){return lt})),r.d(t,"COLOR_INFO_ACTIVE",(function(){return dt})),r.d(t,"COLOR_SECONDARY_ACTIVE",(function(){return ct})),r.d(t,"COLOR_DISABLED_ACTIVE",(function(){return ut})),r.d(t,"COLOR_PRIMARY_LIGHT",(function(){return pt})),r.d(t,"COLOR_NORMAL_LIGHT",(function(){return ht})),r.d(t,"COLOR_SUCCESS_LIGHT",(function(){return ft})),r.d(t,"COLOR_WARNING_LIGHT",(function(){return mt})),r.d(t,"COLOR_DANGER_LIGHT",(function(){return gt})),r.d(t,"COLOR_INFO_LIGHT",(function(){return bt})),r.d(t,"COLOR_SECONDARY_LIGHT",(function(){return yt})),r.d(t,"NEUTRAL_COLOR_PRIMARY",(function(){return vt})),r.d(t,"NEUTRAL_COLOR_REGULAR",(function(){return xt})),r.d(t,"NEUTRAL_COLOR_SECONDARY",(function(){return wt})),r.d(t,"NEUTRAL_COLOR_TERTIARY",(function(){return _t})),r.d(t,"NEUTRAL_COLOR_PLACEHOLDER",(function(){return Et})),r.d(t,"NEUTRAL_COLOR_BASE",(function(){return Ct})),r.d(t,"NEUTRAL_COLOR_FILL",(function(){return Nt})),r.d(t,"NEUTRAL_COLOR_LIGHT",(function(){return St})),r.d(t,"NEUTRAL_COLOR_LIGHTER",(function(){return Tt})),r.d(t,"NEUTRAL_COLOR_EXTRALIGHT",(function(){return kt})),r.d(t,"COLOR_TEXT_TIP",(function(){return Ot})),r.d(t,"COLOR_TEXT_WHITE",(function(){return It})),r.d(t,"COLOR_TEXT_DISABLED",(function(){return Dt})),r.d(t,"COLOR_TEXT_HEADER",(function(){return At})),r.d(t,"COLOR_SCROLL",(function(){return Mt})),r.d(t,"GRADIENT_COLOR_BRAND",(function(){return Lt})),r.d(t,"GRADIENT_COLOR_PRIMARY",(function(){return Rt})),r.d(t,"GRADIENT_COLOR_WARNING",(function(){return Pt})),r.d(t,"GRADIENT_COLOR_SUCCESS",(function(){return $t})),r.d(t,"GRADIENT_COLOR_DANGER",(function(){return Ft})),r.d(t,"BACKGROUND_COLOR_BASE",(function(){return jt})),r.d(t,"TABLE_HEADER_BG_COLOR",(function(){return Bt})),r.d(t,"FONT_WEIGHT_PRIMARY",(function(){return Ut})),r.d(t,"FONT_WEIGHT_MEDIUM",(function(){return Vt})),r.d(t,"FONT_WEIGHT_BOLD",(function(){return qt})),r.d(t,"FONT_SIZE_WEEK",(function(){return zt})),r.d(t,"FONT_SIZE_MINI",(function(){return Ht})),r.d(t,"FONT_SIZE_BASE",(function(){return Gt})),r.d(t,"FONT_SIZE_MEDIUM",(function(){return Wt})),r.d(t,"FONT_SIZE_LARGE",(function(){return Qt})),r.d(t,"FONT_LINE_HEIGHT_WEEK",(function(){return Xt})),r.d(t,"FONT_LINE_HEIGHT_MINI",(function(){return Kt})),r.d(t,"FONT_LINE_HEIGHT_BASE",(function(){return Yt})),r.d(t,"FONT_LINE_HEIGHT_MEDIUM",(function(){return Jt})),r.d(t,"FONT_LINE_HEIGHT_LARGE",(function(){return Zt})),r.d(t,"BORDER_COLOR_BASE",(function(){return er})),r.d(t,"BORDER_COLOR_REGULAR",(function(){return tr})),r.d(t,"GAP",(function(){return rr})),r.d(t,"DOUBLE_GAP",(function(){return ir})),r.d(t,"TRIPLE_GAP",(function(){return ar})),r.d(t,"QUADRA_GAP",(function(){return nr})),r.d(t,"BORDER_RADIUS",(function(){return or})),r.d(t,"BORDER_RADIUS_SMALL",(function(){return sr})),r.d(t,"BORDER_RADIUS_MEDIUM",(function(){return lr})),r.d(t,"BORDER_RADIUS_LARGE",(function(){return dr})),r.d(t,"BORDER_BASE",(function(){return cr})),r.d(t,"BORDER_DASHED",(function(){return ur})),r.d(t,"BOX_SHADOW_LIGHT",(function(){return pr})),r.d(t,"BOX_SHADOW_BASE",(function(){return hr})),r.d(t,"BOX_SHADOW_DARK",(function(){return fr})),r.d(t,"BOX_SHADOW_DOWN_LIGHT",(function(){return mr})),r.d(t,"BOX_SHADOW_DOWN",(function(){return gr})),r.d(t,"BOX_SHADOW_DOWN_DARK",(function(){return br})),r.d(t,"BOX_SHADOW_UP_LIGHT",(function(){return yr})),r.d(t,"BOX_SHADOW_UP",(function(){return vr})),r.d(t,"BOX_SHADOW_UP_DARK",(function(){return xr})),r.d(t,"BOX_SHADOW_RIGHT_LIGHT",(function(){return wr})),r.d(t,"BOX_SHADOW_RIGHT",(function(){return _r})),r.d(t,"BOX_SHADOW_RIGHT_DARK",(function(){return Er})),r.d(t,"BOX_SHADOW_RIGHT_LIGHT_BLUE",(function(){return Cr})),r.d(t,"BOX_SHADOW_RIGHT_LIGHT_GREY",(function(){return Nr})),r.d(t,"BOX_SHADOW_LEFT_LIGHT",(function(){return Sr})),r.d(t,"BOX_SHADOW_LEFT",(function(){return Tr})),r.d(t,"BOX_SHADOW_LEFT_DARK",(function(){return kr})),r.d(t,"NAV_BOX_SHADOW",(function(){return Or})),r.d(t,"CARD_BOX_SHADOW",(function(){return Ir})),r.d(t,"DIALOG_BOX_SHADOW",(function(){return Dr})),r.d(t,"UP_BOX_SHADOW",(function(){return Ar})),r.d(t,"LEFT_BOX_SHADOW",(function(){return Mr})),r.d(t,"RIGHT_BOX_SHADOW",(function(){return Lr})),r.d(t,"MENU_BOX_SHADOW",(function(){return Rr})),r.d(t,"NO_BOX_SHADOW",(function(){return Pr})),r.d(t,"INPUT_SELECT_BOX_SHADOW",(function(){return $r})),r.d(t,"INPUT_DANGER_BOX_SHADOW",(function(){return Fr})),r.d(t,"INPUT_SELECT_BASE_SHADOW",(function(){return jr})),r.d(t,"INPUT_FOCUS_BOX_SHADOW",(function(){return Br})),r.d(t,"TOOLTIP_FILL",(function(){return Ur})),r.d(t,"TOOLTIP_BORDER_COLOR",(function(){return Vr})),r.d(t,"POPOVER_PADDING",(function(){return qr})),r.d(t,"POPOVER_PADDING_LARGE",(function(){return zr})),r.d(t,"POPOVER_IMAGE_MAX_HEIGHT_WIDTH",(function(){return Hr})),r.d(t,"TABLE_FIXED_BOX_SHADOW",(function(){return Gr})),r.d(t,"AVATAR_SIZE_LARGE",(function(){return Wr})),r.d(t,"AVATAR_SIZE_MEDIUM",(function(){return Qr})),r.d(t,"AVATAR_SIZE_SMALL",(function(){return Xr})),r.d(t,"AVATAR_ICON_SIZE_LARGE",(function(){return Kr})),r.d(t,"AVATAR_ICON_SIZE_MEDIUM",(function(){return Yr})),r.d(t,"AVATAR_ICON_SIZE_SMALL",(function(){return Jr})),r.d(t,"AVATAR_FONT_SIZE_LARGE",(function(){return Zr})),r.d(t,"AVATAR_FONT_SIZE_MEDIUM",(function(){return ei})),r.d(t,"AVATAR_FONT_SIZE_SMALL",(function(){return ti})),r.d(t,"AVATAR_BORDER_RADIUS",(function(){return ri})),r.d(t,"AVATAR_BORDER",(function(){return ii})),r.d(t,"NODE_COLOR_ICON",(function(){return ai})),r.d(t,"TABLE_HEADER_BACKGROUND_COLOR",(function(){return ni})),r.d(t,"BUTTON_GAP",(function(){return oi})),r.d(t,"BUTTON_HEIGHT_BASE",(function(){return si})),r.d(t,"BUTTON_FONT_WEIGHT",(function(){return li})),r.d(t,"BUTTON_DEFAULT_BACKGROUND_COLOR",(function(){return di})),r.d(t,"BUTTON_DEFAULT_BACKGROUND_IMAGE",(function(){return ci})),r.d(t,"BUTTON_DEFAULT_BORDER_COLOR",(function(){return ui})),r.d(t,"BUTTON_DEFAULT_FONT_COLOR",(function(){return pi})),r.d(t,"BUTTON_DEFAULT_HOVER_COLOR",(function(){return hi})),r.d(t,"BUTTON_DEFAULT_ACTIVE_COLOR",(function(){return fi})),r.d(t,"BUTTON_PRIMARY_COLOR",(function(){return mi})),r.d(t,"BUTTON_FONT_SIZE",(function(){return gi})),r.d(t,"BUTTON_PADDING_VERTICAL",(function(){return bi})),r.d(t,"BUTTON_PADDING_HORIZONTAL",(function(){return yi})),r.d(t,"BUTTON_GROUP_PADDING_HORIZONTAL",(function(){return vi})),r.d(t,"BUTTON_BORDER_RADIUS",(function(){return xi})),r.d(t,"BUTTON_MIN_WIDTH",(function(){return wi})),r.d(t,"BUTTON_GROUP_GAP",(function(){return _i})),r.d(t,"BUTTON_GROUP_BUTTON_MORE_MIN_WIDTH",(function(){return Ei})),r.d(t,"BUTTON_GROUP_BUTTON_MORE_HEIGHT",(function(){return Ci})),r.d(t,"HEADER_BUTTON_GROUP_HEIGHT",(function(){return Ni})),r.d(t,"BACKTOP_RADIUS_SMALL",(function(){return Si})),r.d(t,"BACKTOP_RADIUS_MEDIUM",(function(){return Ti})),r.d(t,"BACKTOP_RADIUS_LARGE",(function(){return ki})),r.d(t,"BACKTOP_RADIUS_XLARGE",(function(){return Oi})),r.d(t,"SEARCH_GAP",(function(){return Ii})),r.d(t,"SEARCH_BORDER_RADIUS",(function(){return Di})),r.d(t,"SEARCH_BOX_SHADOW",(function(){return Ai})),r.d(t,"QUERY_GAP",(function(){return Mi})),r.d(t,"QUERY_BORDER_RADIUS",(function(){return Li})),r.d(t,"LAYOUT_GAP",(function(){return Ri})),r.d(t,"VIEW_BACKGROUND",(function(){return Pi})),r.d(t,"FORM_WRAPPER_PADDING",(function(){return $i})),r.d(t,"FORM_ITEM_MARGIN_TOP",(function(){return Fi})),r.d(t,"FORM_ITEM_BORDER_HEIGHT",(function(){return ji})),r.d(t,"FORM_ITEM_BORDER_HEIGHT_MINI",(function(){return Bi})),r.d(t,"FORM_ITEM_BORDER_HEIGHT_LARGE",(function(){return Ui})),r.d(t,"FORM_ITEM_HEIGHT",(function(){return Vi})),r.d(t,"ERROR_INPUT_BOX_SHADOW",(function(){return qi})),r.d(t,"TEXTAREA_BOX_SHADOW",(function(){return zi})),r.d(t,"DETAIL_GAP",(function(){return Hi})),r.d(t,"DETAIL_HEADER_HEIGHT",(function(){return Gi})),r.d(t,"DETAIL_HEADER_SMALL_HEIGHT",(function(){return Wi})),r.d(t,"DETAIL_HEADER_GAP",(function(){return Qi})),r.d(t,"DETAIL_HEADER_BOX_SHADOW",(function(){return Xi})),r.d(t,"LIST_HEADER_GAP",(function(){return Ki})),r.d(t,"LIST_HEADER_HEIGHT",(function(){return Yi})),r.d(t,"LIST_HEADER_SMALL_HEIGHT",(function(){return Ji})),r.d(t,"LIST_HEADER_BOX_SHADOW",(function(){return Zi})),r.d(t,"BREADCRUMB_FONT_SIZE",(function(){return ea})),r.d(t,"BREADCRUMB_FONT_COLOR_DEFAULT",(function(){return ta})),r.d(t,"BREADCRUMB_FONT_COLOR_HOVER",(function(){return ra})),r.d(t,"BREADCRUMB_FONT_COLOR_ACTIVE",(function(){return ia})),r.d(t,"CARD_GAP",(function(){return aa})),r.d(t,"CARD_BACKGROUND",(function(){return na})),r.d(t,"COLLAPSE_PADDING",(function(){return oa})),r.d(t,"COLLAPSE_HEADER_HEIGHT",(function(){return sa})),r.d(t,"COLLAPSE_BUTTON_TEXT_COLOR",(function(){return la})),r.d(t,"DIALOG_PADDING",(function(){return da})),r.d(t,"DIALOG_FOOTER_HEIGHT",(function(){return ca})),r.d(t,"DIALOG_HEADER_HEIGHT",(function(){return ua})),r.d(t,"DIALOG_BODY_MAX_HEIGHT",(function(){return pa})),r.d(t,"DIALOG_BODY_LARGE_MAX_HEIGHT",(function(){return ha})),r.d(t,"DIALOG_BODY_NORMAL_MAX_HEIGHT",(function(){return fa})),r.d(t,"DIALOG_BODY_SMALL_MAX_HEIGHT",(function(){return ma})),r.d(t,"HEADER_ICON_PADDING",(function(){return ga})),r.d(t,"HEADER_ICON_BORDER_RADIUS",(function(){return ba})),r.d(t,"HEADER_TITLE_GAP",(function(){return ya})),r.d(t,"HEADER_TITLE_LINE_HEIGHT",(function(){return va})),r.d(t,"LABEL_GROUP_MARGIN_RIGHT",(function(){return xa})),r.d(t,"LABEL_GROUP_BORDER_RADIUS",(function(){return wa})),r.d(t,"LOADING_COLOR_DOT",(function(){return _a})),r.d(t,"LOADING_COLOR_CIRCLE",(function(){return Ea})),r.d(t,"NOTIFICATION_WIDTH",(function(){return Ca})),r.d(t,"NOTIFICATION_PADDING",(function(){return Na})),r.d(t,"NOTIFICATION_RADIUS",(function(){return Sa})),r.d(t,"NOTIFICATION_SHADOW",(function(){return Ta})),r.d(t,"NOTIFICATION_BORDER_COLOR",(function(){return ka})),r.d(t,"NOTIFICATION_ICON_SIZE",(function(){return Oa})),r.d(t,"NOTIFICATION_CLOSE_FONT_SIZE",(function(){return Ia})),r.d(t,"NOTIFICATION_GROUP_MARGIN_LEFT",(function(){return Da})),r.d(t,"NOTIFICATION_GROUP_MARGIN_RIGHT",(function(){return Aa})),r.d(t,"NOTIFICATION_CONTENT_FONT_SIZE",(function(){return Ma})),r.d(t,"NOTIFICATION_CONTENT_COLOR",(function(){return La})),r.d(t,"NOTIFICATION_TITLE_FONT_SIZE",(function(){return Ra})),r.d(t,"NOTIFICATION_TITLE_COLOR",(function(){return Pa})),r.d(t,"NOTIFICATION_CLOSE_COLOR",(function(){return $a})),r.d(t,"NOTIFICATION_CLOSE_HOVER_COLOR",(function(){return Fa})),r.d(t,"NOTIFICATION_SUCCESS_ICON_COLOR",(function(){return ja})),r.d(t,"NOTIFICATION_INFO_ICON_COLOR",(function(){return Ba})),r.d(t,"NOTIFICATION_WARNING_ICON_COLOR",(function(){return Ua})),r.d(t,"NOTIFICATION_DANGER_ICON_COLOR",(function(){return Va})),r.d(t,"NOTICECENTER_BODER",(function(){return qa})),r.d(t,"NOTICECENTER_FONT_HOVER",(function(){return za})),r.d(t,"NOTICECENTER_BACK_HOVER",(function(){return Ha})),r.d(t,"NOTICECENTER_ICON_NOTIFICATION",(function(){return Ga})),r.d(t,"NOTICECENTER_ICON_ANNOUNCE",(function(){return Wa})),r.d(t,"PROGRESS_BAR_BG",(function(){return Qa})),r.d(t,"PROGRESS_HEIGHT",(function(){return Xa})),r.d(t,"PROGRESS_BORDER_RADIUS",(function(){return Ka})),r.d(t,"PROGRESS_GAP",(function(){return Ya})),r.d(t,"SECTION_GAP",(function(){return Ja})),r.d(t,"SECTION_BORDER_RADIUS",(function(){return Za})),r.d(t,"SECTION_HEADER_HEIGHT",(function(){return en})),r.d(t,"SUB_SECTION_HEADER_HEIGHT",(function(){return tn})),r.d(t,"SECTION_TITLE_MARGIN_TOP",(function(){return rn})),r.d(t,"TABS_ITEM_HEIGHT",(function(){return an})),r.d(t,"TABS_ITEM_SMALL_HEIGHT",(function(){return nn})),r.d(t,"TABS_BODER_RADIUS",(function(){return on})),r.d(t,"TABS_PADDING",(function(){return sn})),r.d(t,"TABS_SMALL_PADDING",(function(){return ln})),r.d(t,"TABS_BOX_SHADOW",(function(){return dn})),r.d(t,"TABLE_GAP",(function(){return cn})),r.d(t,"TABLE_BORDER_RADIUS",(function(){return un})),r.d(t,"TABLE_DROPDOWN_HEIGHT",(function(){return pn})),r.d(t,"TABLE_HEADER_TH_HEIGHT",(function(){return hn})),r.d(t,"TABLE_BODY_TD_HEIGHT",(function(){return fn})),r.d(t,"TABLE_BODY_TD_FONT_SIZE_MINI",(function(){return mn})),r.d(t,"TABLE_BODY_TD_PADDING_MINI",(function(){return gn})),r.d(t,"TABLE_BODY_TD_PADDING_SMALL",(function(){return bn})),r.d(t,"TABLE_BODY_TD_PADDING",(function(){return yn})),r.d(t,"TABLE_BODY_TD_PADDING_LARGE",(function(){return vn})),r.d(t,"TABLE_BOX_SHADOW",(function(){return xn})),r.d(t,"TABLE_STRIPED_BD",(function(){return wn})),r.d(t,"TABLE_PAGINATION_PAGER",(function(){return _n})),r.d(t,"TABLE_PAGINATION_BORDER_RADIUS",(function(){return En})),r.d(t,"TABLE_STICKY_BG",(function(){return Cn})),r.d(t,"TAG_GAP",(function(){return Nn})),r.d(t,"TAG_BORDER_RADIUS",(function(){return Sn})),r.d(t,"TAG_MARGIN_GAP",(function(){return Tn})),r.d(t,"TAG_BORDER_COLOR",(function(){return kn})),r.d(t,"BUTTON_GROUP_BUTTON_HEIGHT",(function(){return On})),r.d(t,"BUTTON_GROUP_PADDING",(function(){return In})),r.d(t,"CHECKBOX_SIZE",(function(){return Dn})),r.d(t,"CHECKBOX_BORDER",(function(){return An})),r.d(t,"CHECKBOX_BACKGROUND",(function(){return Mn})),r.d(t,"CHECKBOX_BOX_SHADOW",(function(){return Ln})),r.d(t,"CHECKBOX_BORDER_CHECKED_BACKGROUND",(function(){return Rn})),r.d(t,"DETAIL_BUTTON_FONT_SIZE",(function(){return Pn})),r.d(t,"DETAIL_BUTTON_COLOR",(function(){return $n})),r.d(t,"DETAIL_BUTTON_FONT_WEIGHT",(function(){return Fn})),r.d(t,"DETAIL_BUTTON_BG_COLOR",(function(){return jn})),r.d(t,"DETAIL_BUTTON_PADDING",(function(){return Bn})),r.d(t,"DETAIL_BUTTON_BORDER_RADIUS",(function(){return Un})),r.d(t,"DETAIL_BUTTON_HOVER_COLOR",(function(){return Vn})),r.d(t,"DETAIL_BUTTON_ACTIVE_COLOR",(function(){return qn})),r.d(t,"DETAIL_BUTTON_BORDER_COLOR",(function(){return zn})),r.d(t,"SIDEBAR_MENU_WIDTH",(function(){return Hn})),r.d(t,"SIDEBAR_MENU_COLLAPSE_WIDTH",(function(){return Gn})),r.d(t,"SIDEBAR_MENU_HEADER_GAP",(function(){return Wn})),r.d(t,"SIDEBAR_MENU_BODY_GAP",(function(){return Qn})),r.d(t,"SIDEBAR_MENU_DARK_BG_COLOR",(function(){return Xn})),r.d(t,"SIDEBAR_MENU_DARK_HOVER_BG_COLOR",(function(){return Kn})),r.d(t,"SIDEBAR_MENU_DARK_ACTIVE_COLOR",(function(){return Yn})),r.d(t,"SIDEBAR_MENU_DARK_ACTIVE_BG_COLOR",(function(){return Jn})),r.d(t,"SIDEBAR_MENU_DARK_OPEN_BG_COLOR",(function(){return Zn})),r.d(t,"SIDEBAR_MENU_DARK_COLOR",(function(){return eo})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_COLOR",(function(){return to})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_BG_COLOR",(function(){return ro})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_PLACEHOLDER_COLOR",(function(){return io})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_ICON_COLOR",(function(){return ao})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_FOCUS_ICON_COLOR",(function(){return no})),r.d(t,"SIDEBAR_MENU_DARK_SEARCH_FOCUS_BORDER_COLOR",(function(){return oo})),r.d(t,"SIDEBAR_MENU_DARK_HIGHLIGHT_COLOR",(function(){return so})),r.d(t,"SIDEBAR_MENU_DARKER_BG_COLOR",(function(){return lo})),r.d(t,"SIDEBAR_MENU_DARKER_HOVER_BG_COLOR",(function(){return co})),r.d(t,"SIDEBAR_MENU_DARKER_ACTIVE_COLOR",(function(){return uo})),r.d(t,"SIDEBAR_MENU_DARKER_ACTIVE_BG_COLOR",(function(){return po})),r.d(t,"SIDEBAR_MENU_DARKER_OPEN_BG_COLOR",(function(){return ho})),r.d(t,"SIDEBAR_MENU_DARKER_COLOR",(function(){return fo})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_COLOR",(function(){return mo})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_BG_COLOR",(function(){return go})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_PLACEHOLDER_COLOR",(function(){return bo})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_ICON_COLOR",(function(){return yo})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_FOCUS_ICON_COLOR",(function(){return vo})),r.d(t,"SIDEBAR_MENU_DARKER_SEARCH_FOCUS_BORDER_COLOR",(function(){return xo})),r.d(t,"SIDEBAR_MENU_DARKER_HIGHLIGHT_COLOR",(function(){return wo})),r.d(t,"SIDEBAR_MENU_LIGHT_BG_COLOR",(function(){return _o})),r.d(t,"SIDEBAR_MENU_LIGHT_HOVER_BG_COLOR",(function(){return Eo})),r.d(t,"SIDEBAR_MENU_LIGHT_ACTIVE_COLOR",(function(){return Co})),r.d(t,"SIDEBAR_MENU_LIGHT_ACTIVE_BG_COLOR",(function(){return No})),r.d(t,"SIDEBAR_MENU_LIGHT_OPEN_BG_COLOR",(function(){return So})),r.d(t,"SIDEBAR_MENU_LIGHT_COLOR",(function(){return To})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_COLOR",(function(){return ko})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_BG_COLOR",(function(){return Oo})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_PLACEHOLDER_COLOR",(function(){return Io})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_ICON_COLOR",(function(){return Do})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_FOCUS_ICON_COLOR",(function(){return Ao})),r.d(t,"SIDEBAR_MENU_LIGHT_SEARCH_FOCUS_BORDER_COLOR",(function(){return Mo})),r.d(t,"SIDEBAR_MENU_LIGHT_HIGHLIGHT_COLOR",(function(){return Lo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_BG_COLOR",(function(){return Ro})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_HOVER_BG_COLOR",(function(){return Po})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_ACTIVE_BG_COLOR",(function(){return $o})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_OPEN_BG_COLOR",(function(){return Fo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_ACTIVE_COLOR",(function(){return jo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_COLOR",(function(){return Bo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_COLOR",(function(){return Uo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_BG_COLOR",(function(){return Vo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_PLACEHOLDER_COLOR",(function(){return qo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_ICON_COLOR",(function(){return zo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_BORDER_COLOR",(function(){return Ho})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_FOCUS_ICON_COLOR",(function(){return Go})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_SEARCH_FOCUS_BORDER_COLOR",(function(){return Wo})),r.d(t,"SIDEBAR_MENU_LIGHT_BLUE_HIGHLIGHT_COLOR",(function(){return Qo})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_BG_COLOR",(function(){return Xo})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_HOVER_BG_COLOR",(function(){return Ko})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_ACTIVE_BG_COLOR",(function(){return Yo})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_OPEN_BG_COLOR",(function(){return Jo})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_ACTIVE_COLOR",(function(){return Zo})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_COLOR",(function(){return es})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_COLOR",(function(){return ts})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_BG_COLOR",(function(){return rs})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_PLACEHOLDER_COLOR",(function(){return is})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_ICON_COLOR",(function(){return as})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_BORDER_COLOR",(function(){return ns})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_FOCUS_ICON_COLOR",(function(){return os})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_SEARCH_FOCUS_BORDER_COLOR",(function(){return ss})),r.d(t,"SIDEBAR_MENU_LIGHT_GREY_HIGHLIGHT_COLOR",(function(){return ls})),r.d(t,"POPUP_MODAL_OPACITY",(function(){return ds})),r.d(t,"COLOR_NORMAL_LIGHT_TRANSPARENT",(function(){return cs})),r.d(t,"COLOR_SUCCESS_LIGHT_TRANSPARENT",(function(){return us})),r.d(t,"COLOR_DANGER_LIGHT_TRANSPARENT",(function(){return ps})),r.d(t,"PLATFORM_COLOR_FL_GB",(function(){return hs})),r.d(t,"PLATFORM_COLOR_FL_GBL",(function(){return fs})),r.d(t,"PLATFORM_COLOR_FL_C",(function(){return ms})),r.d(t,"PLATFORM_COLOR_FL_CL",(function(){return gs})),r.d(t,"PLATFORM_COLOR_FL_G",(function(){return bs})),r.d(t,"PLATFORM_COLOR_FL_GL",(function(){return ys})),r.d(t,"PLATFORM_COLOR_FL_SY",(function(){return vs})),r.d(t,"PLATFORM_COLOR_FL_SYL",(function(){return xs})),r.d(t,"PLATFORM_COLOR_FL_DR",(function(){return ws})),r.d(t,"PLATFORM_COLOR_FL_DRL",(function(){return _s})),r.d(t,"PLATFORM_COLOR_FL_DB",(function(){return Es})),r.d(t,"PLATFORM_COLOR_FL_DBL",(function(){return Cs})),r.d(t,"PLATFORM_COLOR_FL_GP",(function(){return Ns})),r.d(t,"PLATFORM_COLOR_FL_GPL",(function(){return Ss})),r.d(t,"PLATFORM_COLOR_FL_SOL",(function(){return Ts})),r.d(t,"PLATFORM_COLOR_FL_DG",(function(){return ks})),r.d(t,"PLATFORM_COLOR_FL_DGL",(function(){return Os})),r.d(t,"PLATFORM_COLOR_FL_M",(function(){return Is})),r.d(t,"PLATFORM_COLOR_FL_ML",(function(){return Ds})),r.d(t,"PLATFORM_COLOR_FL_SB",(function(){return As})),r.d(t,"PLATFORM_COLOR_FL_YP",(function(){return Ms})),r.d(t,"PLATFORM_COLOR_FL_LP",(function(){return Ls})),r.d(t,"PLATFORM_COLOR_FL_SO",(function(){return Rs})),r.d(t,"PLATFORM_COLOR_FL_CR",(function(){return Ps})),r.d(t,"PLATFORM_COLOR_FL_NB",(function(){return $s})),r.d(t,"PLATFORM_COLOR_FL_OG",(function(){return Fs})),r.d(t,"PLATFORM_COLOR_FL_LP1",(function(){return js})),r.d(t,"PLATFORM_COLOR_FL_WB",(function(){return Bs})),r.d(t,"PLATFORM_COLOR_FL_CG",(function(){return Us})),r.d(t,"PLATFORM_COLOR_FL_SO1",(function(){return Vs})),r.d(t,"PLATFORM_COLOR_FL_MG",(function(){return qs})),r.d(t,"PLATFORM_COLOR_SX_GB1",(function(){return zs})),r.d(t,"PLATFORM_COLOR_SX_GB2",(function(){return Hs})),r.d(t,"PLATFORM_COLOR_SX_GB3",(function(){return Gs})),r.d(t,"PLATFORM_COLOR_SX_GB4",(function(){return Ws})),r.d(t,"PLATFORM_COLOR_SX_GB5",(function(){return Qs})),r.d(t,"PLATFORM_COLOR_SX_GB6",(function(){return Xs})),r.d(t,"PLATFORM_COLOR_SX_GB7",(function(){return Ks})),r.d(t,"PLATFORM_COLOR_SX_GB8",(function(){return Ys})),r.d(t,"PLATFORM_COLOR_SX_GB9",(function(){return Js})),r.d(t,"PLATFORM_COLOR_SX_G1",(function(){return Zs})),r.d(t,"PLATFORM_COLOR_SX_G2",(function(){return el})),r.d(t,"PLATFORM_COLOR_SX_G3",(function(){return tl})),r.d(t,"PLATFORM_COLOR_SX_G4",(function(){return rl})),r.d(t,"PLATFORM_COLOR_SX_G5",(function(){return il})),r.d(t,"PLATFORM_COLOR_SX_G6",(function(){return al})),r.d(t,"PLATFORM_COLOR_SX_G7",(function(){return nl})),r.d(t,"PLATFORM_COLOR_SX_G8",(function(){return ol})),r.d(t,"PLATFORM_COLOR_SX_G9",(function(){return sl})),r.d(t,"PLATFORM_COLOR_SX_C1",(function(){return ll})),r.d(t,"PLATFORM_COLOR_SX_C2",(function(){return dl})),r.d(t,"PLATFORM_COLOR_SX_C3",(function(){return cl})),r.d(t,"PLATFORM_COLOR_SX_C4",(function(){return ul})),r.d(t,"PLATFORM_COLOR_SX_C5",(function(){return pl})),r.d(t,"PLATFORM_COLOR_SX_C6",(function(){return hl})),r.d(t,"PLATFORM_COLOR_SX_C7",(function(){return fl})),r.d(t,"PLATFORM_COLOR_SX_C8",(function(){return ml})),r.d(t,"PLATFORM_COLOR_SX_C9",(function(){return gl})),r.d(t,"PLATFORM_COLOR_SX_SY1",(function(){return bl})),r.d(t,"PLATFORM_COLOR_SX_SY2",(function(){return yl})),r.d(t,"PLATFORM_COLOR_SX_SY3",(function(){return vl})),r.d(t,"PLATFORM_COLOR_SX_SY4",(function(){return xl})),r.d(t,"PLATFORM_COLOR_SX_SY5",(function(){return wl})),r.d(t,"PLATFORM_COLOR_SX_SY6",(function(){return _l})),r.d(t,"PLATFORM_COLOR_SX_SY7",(function(){return El})),r.d(t,"PLATFORM_COLOR_SX_SY8",(function(){return Cl})),r.d(t,"PLATFORM_COLOR_SX_SY9",(function(){return Nl})),r.d(t,"PLATFORM_COLOR_SX_DP1",(function(){return Sl})),r.d(t,"PLATFORM_COLOR_SX_DP2",(function(){return Tl})),r.d(t,"PLATFORM_COLOR_SX_DP3",(function(){return kl})),r.d(t,"PLATFORM_COLOR_SX_DP4",(function(){return Ol})),r.d(t,"PLATFORM_COLOR_SX_DP5",(function(){return Il})),r.d(t,"PLATFORM_COLOR_SX_DP6",(function(){return Dl})),r.d(t,"PLATFORM_COLOR_SX_DP7",(function(){return Al})),r.d(t,"PLATFORM_COLOR_SX_DP8",(function(){return Ml})),r.d(t,"PLATFORM_COLOR_SX_DP9",(function(){return Ll})),r.d(t,"PLATFORM_COLOR_SX_GP1",(function(){return Rl})),r.d(t,"PLATFORM_COLOR_SX_GP2",(function(){return Pl})),r.d(t,"PLATFORM_COLOR_SX_GP3",(function(){return $l})),r.d(t,"PLATFORM_COLOR_SX_GP4",(function(){return Fl})),r.d(t,"PLATFORM_COLOR_SX_GP5",(function(){return jl})),r.d(t,"PLATFORM_COLOR_SX_GP6",(function(){return Bl})),r.d(t,"PLATFORM_COLOR_SX_GP7",(function(){return Ul})),r.d(t,"PLATFORM_COLOR_SX_GP8",(function(){return Vl})),r.d(t,"PLATFORM_COLOR_SX_GP9",(function(){return ql})),r.d(t,"PLATFORM_COLOR_SX_DB1",(function(){return zl})),r.d(t,"PLATFORM_COLOR_SX_DB2",(function(){return Hl})),r.d(t,"PLATFORM_COLOR_SX_DB3",(function(){return Gl})),r.d(t,"PLATFORM_COLOR_SX_DB4",(function(){return Wl})),r.d(t,"PLATFORM_COLOR_SX_DB5",(function(){return Ql})),r.d(t,"PLATFORM_COLOR_SX_DB6",(function(){return Xl})),r.d(t,"PLATFORM_COLOR_SX_DB7",(function(){return Kl})),r.d(t,"PLATFORM_COLOR_SX_DB8",(function(){return Yl})),r.d(t,"PLATFORM_COLOR_SX_DB9",(function(){return Jl})),r.d(t,"PLATFORM_COLOR_SX_SO1",(function(){return Zl})),r.d(t,"PLATFORM_COLOR_SX_SO2",(function(){return ed})),r.d(t,"PLATFORM_COLOR_SX_SO3",(function(){return td})),r.d(t,"PLATFORM_COLOR_SX_SO4",(function(){return rd})),r.d(t,"PLATFORM_COLOR_SX_SO5",(function(){return id})),r.d(t,"PLATFORM_COLOR_SX_SO6",(function(){return ad})),r.d(t,"PLATFORM_COLOR_SX_SO7",(function(){return nd})),r.d(t,"PLATFORM_COLOR_SX_SO8",(function(){return od})),r.d(t,"PLATFORM_COLOR_SX_SO9",(function(){return sd})),r.d(t,"PLATFORM_COLOR_SX_DG1",(function(){return ld})),r.d(t,"PLATFORM_COLOR_SX_DG2",(function(){return dd})),r.d(t,"PLATFORM_COLOR_SX_DG3",(function(){return cd})),r.d(t,"PLATFORM_COLOR_SX_DG4",(function(){return ud})),r.d(t,"PLATFORM_COLOR_SX_DG5",(function(){return pd})),r.d(t,"PLATFORM_COLOR_SX_DG6",(function(){return hd})),r.d(t,"PLATFORM_COLOR_SX_DG7",(function(){return fd})),r.d(t,"PLATFORM_COLOR_SX_DG8",(function(){return md})),r.d(t,"PLATFORM_COLOR_SX_DG9",(function(){return gd})),r.d(t,"PLATFORM_COLOR_SX_M1",(function(){return bd})),r.d(t,"PLATFORM_COLOR_SX_M2",(function(){return yd})),r.d(t,"PLATFORM_COLOR_SX_M3",(function(){return vd})),r.d(t,"PLATFORM_COLOR_SX_M4",(function(){return xd})),r.d(t,"PLATFORM_COLOR_SX_M5",(function(){return wd})),r.d(t,"PLATFORM_COLOR_SX_M6",(function(){return _d})),r.d(t,"PLATFORM_COLOR_SX_M7",(function(){return Ed})),r.d(t,"PLATFORM_COLOR_SX_M8",(function(){return Cd})),r.d(t,"PLATFORM_COLOR_SX_M9",(function(){return Nd})),r.d(t,"PLATFORM_COLOR_SX_DR1",(function(){return Sd})),r.d(t,"PLATFORM_COLOR_SX_DR2",(function(){return Td})),r.d(t,"PLATFORM_COLOR_SX_DR3",(function(){return kd})),r.d(t,"PLATFORM_COLOR_SX_DR4",(function(){return Od})),r.d(t,"PLATFORM_COLOR_SX_DR5",(function(){return Id})),r.d(t,"PLATFORM_COLOR_SX_DR6",(function(){return Dd})),r.d(t,"PLATFORM_COLOR_SX_DR7",(function(){return Ad})),r.d(t,"PLATFORM_COLOR_SX_DR8",(function(){return Md})),r.d(t,"PLATFORM_COLOR_SX_DR9",(function(){return Ld})),r.d(t,"PLATFORM_COLOR_SX_D1",(function(){return Rd})),r.d(t,"PLATFORM_COLOR_SX_D2",(function(){return Pd})),r.d(t,"PLATFORM_COLOR_SX_D3",(function(){return $d})),r.d(t,"PLATFORM_COLOR_SX_D4",(function(){return Fd})),r.d(t,"PLATFORM_COLOR_SX_D5",(function(){return jd})),r.d(t,"PLATFORM_COLOR_SX_D6",(function(){return Bd})),r.d(t,"PLATFORM_COLOR_SX_D7",(function(){return Ud})),r.d(t,"PLATFORM_COLOR_SX_D8",(function(){return Vd})),r.d(t,"PLATFORM_COLOR_SX_D9",(function(){return qd})),r.d(t,"PLATFORM_COLOR_YY_SR",(function(){return zd})),r.d(t,"PLATFORM_COLOR_YY_SRL",(function(){return Hd})),r.d(t,"PLATFORM_COLOR_YY_SG",(function(){return Gd})),r.d(t,"PLATFORM_COLOR_YY_SGL",(function(){return Wd})),r.d(t,"PLATFORM_COLOR_YY_SY",(function(){return Qd})),r.d(t,"PLATFORM_COLOR_YY_SYL",(function(){return Xd})),r.d(t,"PLATFORM_COLOR_FL_GB_NEW",(function(){return Kd})),r.d(t,"PLATFORM_COLOR_FL_C_NEW",(function(){return Yd})),r.d(t,"PLATFORM_COLOR_FL_DG_NEW",(function(){return Jd})),r.d(t,"PLATFORM_COLOR_FL_SY_NEW",(function(){return Zd})),r.d(t,"PLATFORM_COLOR_FL_DB_NEW",(function(){return ec})),r.d(t,"PLATFORM_COLOR_FL_NB_NEW",(function(){return tc})),r.d(t,"PLATFORM_COLOR_FL_SO_NEW",(function(){return rc})),r.d(t,"PLATFORM_COLOR_FL_GP_NEW",(function(){return ic})),r.d(t,"PLATFORM_COLOR_FL_M_NEW",(function(){return ac})),r.d(t,"PLATFORM_COLOR_FL_G_NEW",(function(){return nc})),r.d(t,"PLATFORM_COLOR_FL_DR_NEW",(function(){return oc})),r.d(t,"PLATFORM_COLOR_FL_SB_NEW",(function(){return sc})),r.d(t,"PLATFORM_COLOR_FL_YP_NEW",(function(){return lc})),r.d(t,"PLATFORM_COLOR_FL_LP_NEW",(function(){return dc})),r.d(t,"PLATFORM_COLOR_FL_CR_NEW",(function(){return cc})),r.d(t,"PLATFORM_COLOR_FL_OG_NEW",(function(){return uc})),r.d(t,"PLATFORM_COLOR_FL_LO_NEW",(function(){return pc})),r.d(t,"PLATFORM_COLOR_FL_WB_NEW",(function(){return hc})),r.d(t,"PLATFORM_COLOR_FL_CG_NEW",(function(){return fc})),r.d(t,"PLATFORM_COLOR_FL_N_NEW",(function(){return mc})),r.d(t,"PLATFORM_COLOR_FL_SG",(function(){return gc})),r.d(t,"PLATFORM_COLOR_FL_TO",(function(){return bc})),r.d(t,"PLATFORM_COLOR_FL_B",(function(){return yc})),r.d(t,"PLATFORM_COLOR_FL_GG",(function(){return vc})),r.d(t,"PLATFORM_COLOR_FL_TB",(function(){return xc})),r.d(t,"PLATFORM_COLOR_FL_T",(function(){return wc})),r.d(t,"PLATFORM_COLOR_FL_SP",(function(){return _c})),r.d(t,"DOUBLE_GAP_NO_PX",(function(){return Ec})),r.d(t,"GAP_NO_PX",(function(){return Cc})),r.d(t,"DASHBOARD_GRID_GAP",(function(){return Nc}));const i="#e9effd",a="#d3e0fb",n="#a8c1f7",o="#7ca1f3",s="#5182ef",l="#2563eb",d="#1d58d8",c="#1e4baf",u="#163b8d",p="#0f285e",h="#e7f6f4",f="#cfece9",m="#9fdad3",g="#70c7bd",b="#40b5a7",y="#10a291",v="#10756a",x="#125d56",w="#144d47",_="#042f2d",E="#fdf2e8",C="#f8d9ba",N="#f3c08c",S="#eea75e",T="#e78119",k="#cd5f12",O="#aa4113",I="#8a3416",D="#722b15",A="#411407",M="#faebeb",L="#f1c4c2",R="#e89c99",P="#de7470",$="#d54d47",F="#d03932",j="#a62e28",B="#922823",U="#681d19",V="#3e110f",q="#e5e6eb",z="#d3d6de",H="#b6bac9",G="#989fb3",W="#7b839d",Q="#626a84",X="#4c5367",K="#363b49",Y="#21232c",J="#0b0c0f",Z="#e6f4fe",ee="#b4dffd",te="#82c9fc",re="#50b4fb",ie="#1e9ffa",ae="#0585e1",ne="#0468af",oe="#034a7d",se="#022c4b",le="#010f19",de="#fdeee7",ce="#facbb8",ue="#f6a989",pe="#f28659",he="#ef642a",fe="#d54a10",me="#a63a0d",ge="#762909",be="#471905",ye="#180802",ve="#e7ecfe",xe="#b6c5fb",we="#869ef8",_e="#5879f6",Ee="#2550f3",Ce="#0c37da",Ne="#092ba9",Se="#071e79",Te="#041249",ke="#010618",Oe="#e8fdfd",Ie="#b9f8f8",De="#8af4f4",Ae="#5cf0f0",Me="#2debeb",Le="#14d2d2",Re="#0fa3a3",Pe="#0b7575",$e="#074646",Fe="#021717",je="#2563eb",Be="#003f5f",Ue="#1e9ffa",Ve="#10a291",qe="#e78119",ze="#d54d47",He="#989fb3",Ge="#99a6b3",We="#60f",Qe="#f20df2",Xe="#ffcc03",Ke="#5182ef",Ye="#50b4fb",Je="#40b5a7",Ze="#eea75e",et="#de7470",tt="#b6bac9",rt="#40a9ff",it="#ccd3ee",at="#1d58d8",nt="#0585e1",ot="#10756a",st="#cd5f12",lt="#d03932",dt="#7b839d",ct="#096dd9",ut="#899ec0",pt="#e9effd",ht="#e6f4fe",ft="#e7f6f4",mt="#fdf2e8",gt="#faebeb",bt="#e5e6eb",yt="#abbedd",vt="#0b0c0e",xt="#363d44",wt="#4c5966",_t="#788796",Et="#98a6b3",Ct="#d6dbe1",Nt="#dfe3e7",St="#e8ebee",Tt="#f0f2f4",kt="#f6f7f8",Ot="#ced5e0",It="#fff",Dt="#bbcbe4",At="#f0f3f7",Mt="#98a6b3",Lt="linear-gradient(",Rt="linear-gradient(",Pt="linear-gradient(",$t="linear-gradient(",Ft="linear-gradient(",jt="#f5f7fa",Bt="#f0f3f7",Ut="400",Vt="550",qt="600",zt="12px",Ht="13px",Gt="14px",Wt="16px",Qt="18px",Xt="16px",Kt="17px",Yt="19px",Jt="21px",Zt="24px",er="#d6dbe1",tr="#e8ecfc",rr="8px",ir="16px",ar="24px",nr="32px",or="4px",sr="2px",lr="4px",dr="8px",cr="1px solid #d6dbe1",ur="1px dashed #d6dbe1",pr="0 0 12px 0 rgba(0, 0, 0, 6%)",hr="0 2px 12px 0 rgba(0, 0, 0, 10%)",fr="0 2px 12px 0 rgba(0, 0, 0, 20%)",mr="0 6px 12px 0 rgba(0, 0, 0, 6%)",gr="0 6px 12px 0 rgba(0, 0, 0, 10%)",br="0 6px 12px 0 rgba(0, 0, 0, 20%)",yr="0 -6px 12px 0 rgba(0, 0, 0, 6%)",vr="0 -6px 12px 0 rgba(0, 0, 0, 10%)",xr="0 -6px 12px 0 rgba(0, 0, 0, 20%)",wr="6px 0 12px 0 rgba(0, 0, 0, 6%)",_r="6px 0 12px 0 rgba(0, 0, 0, 10%)",Er="6px 0 12px 0 rgba(0, 0, 0, 20%)",Cr="none",Nr="none",Sr="-6px 0 12px 0 rgba(0, 0, 0, 6%)",Tr="-6px 0 12px 0 rgba(0, 0, 0, 10%)",kr="-6px 0 12px 0 rgba(0, 0, 0, 20%)",Or="0 4px 6px 2px rgba(165, 172, 197, 10%)",Ir="0 0 12px 0 rgba(0, 0, 0, 6%) //0px 2px 6px 4px rgba(165, 172, 197, 0.2)",Dr="0 2px 6px 4px rgba(165, 172, 197, 20%)",Ar="0 2px 6px 4px rgba(165, 172, 197, 20%)",Mr="0 2px 6px 4px rgba(165, 172, 197, 20%)",Lr="0 2px 6px 4px rgba(165, 172, 197, 20%)",Rr="0 2px 6px 4px rgba(165, 172, 197, 20%)",Pr="0 0 0 0 rgba(255, 255, 255, 0%)",$r="0 1px 3px 0 #2563eb",Fr="0 1px 3px 0 #d54d47",jr="0 0 2px 1px rgba(24, 144, 255, 30%)",Br="0 0 3px 0 rgba(0, 114, 230, 50%)",Ur="#001529",Vr="#001529",qr="16px",zr="16px",Hr="640px",Gr="2px 0 4px 2px rgba(165, 172, 197, 30%)",Wr="60px",Qr="40px",Xr="32px",Kr="36px",Yr="24px",Jr="20px",Zr="28px",ei="20px",ti="14px",ri="4px",ii="1px solid #fff",ai="#2563eb",ni="#f0f2f4",oi="8px",si="32px",li="400",di="#fff",ci="linear-gradient(",ui="#d6dbe1",pi="#4c5966",hi="#5182ef",fi="#1d58d8",mi="#fff",gi="14px",bi="5px",yi="12px",vi="8px",xi="4px",wi="24px * 3",_i="8px",Ei="8px * 6",Ci="32px",Ni="50px",Si="4px",Ti="8px",ki="12px",Oi="16px",Ii="8px",Di="4px",Ai="0 0 3px 0 rgba(0, 89, 179, 50%)",Mi="8px",Li="4px",Ri="8px",Pi="#f3f4f7",$i="0 8px 24px 8px",Fi="20px",ji="35px",Bi="27px",Ui="43px",Vi="28px",qi="0 1px 3px 0 #d54d47",zi="0 1px 3px 0 #2563eb",Hi="8px",Gi="72px",Wi="40px",Qi="8px",Xi="0 4px 6px 2px rgba(165, 172, 197, 10%)",Ki="8px",Yi="80px",Ji="40px",Zi="0 4px 6px 2px rgba(165, 172, 197, 10%)",ea="14px",ta="#2563eb",ra="#5182ef",ia="#0b0c0e",aa="8px",na="#fff",oa="20px",sa="60px",la="#67707e",da="8px",ca="60px",ua="60px",pa="90vh",ha="80vh",fa="70vh",ma="60vh",ga="8px",ba="4px",ya="8px",va="8px * 3",xa="10px",wa="2px",_a="#5182ef",Ea="#5182ef",Ca="330px",Na="14px 26px 14px 13px",Sa="8px",Ta="0 2px 12px 0 rgba(0, 0, 0, 10%)",ka="#ebeef5",Oa="24px",Ia="16px",Da="13px",Aa="8px",Ma="14px",La="#363d44",Ra="16px",Pa="#0b0c0e",$a="#4c5966",Fa="#363d44",ja="#10a291",Ba="#989fb3",Ua="#e78119",Va="#d54d47",qa="1px solid #e3e5e8",za="#3385ff",Ha="#e5f0ff",Ga="#06f",Wa="#2dd22d",Qa="linear-gradient(",Xa="16px",Ka="calc($--progress-height / 2)",Ya="20px",Ja="8px",Za="4px",en="64px",tn="40px",rn="2px",an="8px * 6",nn="40px",on="2px",sn="0 24px",ln="0 16px",dn="0 4px 6px 2px rgba(165, 172, 197, 10%)",cn="8px",un="4px",pn="60px",hn="40px",fn="48px",mn="13px",gn="6px",bn="8px",yn="12px",vn="16px",xn="0 2px 12px 0 rgba(0, 0, 0, 10%)",wn="#f0f2f4",_n="32px",En="2px",Cn="#182a3a",Nn="8px",Sn="4px",Tn="12px",kn="#a5b3c0",On="40px",In="16px",Dn="8px * 2",An="#10a291",Mn="#10a291",Ln="0 1px 3px 0 #10a291",Rn="#e6f2ff",Pn="14px",$n="#4c5966",Fn="400",jn="#fff",Bn="8px 0",Un="4px",Vn="#2563eb",qn="#1d58d8",zn="#d6dbe1",Hn="200px",Gn="64px",Wn="12px",Qn="16px",Xn="#172f57",Kn="#1b3665",Yn="#fff",Jn="#2563eb",Zn="#1b3665",eo="rgba(#fff, 1)",to="#fff",ro="rgba(#fff, 0.1)",io="#989fb3",ao="#fff",no="#2563eb",oo="#1a8bff",so="#ff9500",lo="#001529 // 背景色",co="#002547 // 悬浮背景色",uo="#fff",po="#2563eb",ho="#002547",fo="rgba(#fff, 1)",mo="#fff",go="rgba(",bo="#989fb3",yo="#fff",vo="#2563eb",xo="#1a8bff",wo="#ff9500",_o="#fff",Eo="#e9effd",Co="#2563eb",No="#e9effd",So="#f0f2f4",To="#0b0c0e",ko="#0b0c0e",Oo="#f0f2f4",Io="#99a6b3",Do="#788796",Ao="#2563eb",Mo="#2563eb",Lo="#ff9500",Ro="linear-gradient(270deg, #eef4ff 0%, #e1edff 100%) // 背景色",Po="rgba(255, 255, 255, 35%) // 悬浮背景色",$o="#fff",Fo="rgba(255, 255, 255, 35%)",jo="#2563eb",Bo="#363d44",Uo="#0b0c0e",Vo="rgba(182, 186, 201, 30%) // 搜索框背景色",qo="#788796",zo="#788796",Ho="#d3d6de",Go="#2563eb",Wo="#2563eb",Qo="#ff9500",Xo="#f8f9fa // 背景色",Ko="rgba(223, 227, 231, 30%) // 悬浮背景色",Yo="#e6f2ff",Jo="rgba(223, 227, 231, 30%)",Zo="#2563eb",es="#363d44",ts="#0b0c0e",rs="#fff // 搜索框背景色",is="#788796",as="#788796",ns="#e8ebee",os="#2563eb",ss="#2563eb",ls="#ff9500",ds="0.3",cs="rgba(230, 244, 254, 50%)",us="rgba(233, 251, 245, 50%)",ps="rgba(255, 235, 231, 50%)",hs="#5b8ff9",fs="#cdddfd",ms="#5ad8a6",gs="#cdf3e4",bs="#5d7092",ys="#ced4de",vs="#f6bd16",xs="#fcebb9",ws="#e86452",_s="#f8d0cb",Es="#6dc8ec",Cs="#d3eef9",Ns="#945fb9",Ss="#decfea",Ts="#ffe0c7",ks="#1e9493",Os="#bbdede",Is="#1e9493",Ds="#ffe0ed",As="#00bfff",Ms="#ffc0cb",Ls="#dda0dd",Rs="#ffa07a",Ps="#f08080",$s="#4e94cd",Fs="#55b163",js="#5879f6",Bs="#50b3fc",Us="#37e1e1",Vs="#ff9845",qs="#ff99c3",zs="#b3d9ff",Hs="#80bfff",Gs="#4da5ff",Ws="#1a8cff",Qs="#0072e6",Xs="#0059b3",Ks="#004c99",Ys="#003f80",Js="#036",Zs="#d0e4ff",el="#b4c8ed",tl="#99add1",rl="#7e92b5",il="#65789b",al="#4c6080",nl="#334867",ol="#1b324f",sl="#021d38",ll="#9df5ca",dl="#61ddaa",cl="#42c090",ul="#19a576",pl="#008a5d",hl="#006f45",fl="#00562f",ml="#003e19",gl="#002800",bl="#ffd83b",yl="#f6bd16",vl="#d7a100",xl="#b98700",wl="#9c6e00",_l="#7f5600",El="#633f00",Cl="#482900",Nl="#2f1400",Sl="#ebccff",Tl="#ccb0ff",kl="#ae95ff",Ol="#907bff",Il="#7262fd",Dl="#5349e0",Al="#2f32c3",Ml="#001ba7",Ll="#00068c",Rl="#fcf",Pl="#ebb0ff",$l="#ce95f5",Fl="#b27ad8",jl="#9661bc",Bl="#7b48a1",Ul="#613086",Vl="#48186c",ql="#2e0054",zl="#95f0ff",Hl="#78d3f8",Gl="#5ab8db",Wl="#3a9dbf",Ql="#0a82a4",Xl="#00698a",Kl="#005170",Yl="#003958",Jl="#002440",Zl="#ffc771",ed="#ffab57",td="#f6903d",rd="#d77622",id="#b85c00",ad="#9b4300",nd="#7d2a00",od="#601000",sd="#450000",ld="#8cf4f2",dd="#6fd8d6",cd="#52bcba",ud="#31a09f",pd="#008685",hd="#006c6c",fd="#005354",md="#003b3d",gd="#002627",bd="#ffc2ec",yd="#ffa6d0",vd="#f08bb4",xd="#d37099",wd="#b65680",_d="#9a3c67",Ed="#7e214f",Cd="#630038",Nd="#490022",Sd="#ffbb95",Td="#ff9e7b",kd="#ff8362",Od="#e8684a",Id="#c84d32",Dd="#aa311c",Ad="#8c1104",Md="#6f0000",Ld="#510000",Rd="#e2e2e2",Pd="#c6c6c6",$d="#ababab",Fd="#919191",jd="#777",Bd="#5e5e5e",Ud="#474747",Vd="#303030",qd="#1b1b1b",zd="#f4664a",Hd="#fcd6cf",Gd="#30bf78",Wd="#d6f5e6",Qd="#faad14",Xd="#feeecd",Kd="#2789ff",Yd="#1bcccc",Jd="#f18f58",Zd="#7262fd",ec="#69c73d",tc="#bd8f23",rc="#3297b7",ic="#d788ff",ac="#ff87cd",nc="#29ca77",oc="#52c7ec",sc="#afbe24",lc="#c084fc",dc="#3183c0",cc="#3be57f",uc="#f1b158",pc="#b06b28",hc="#ff81f5",fc="#6193f4",mc="#f46f61",gc="#14d1d1",bc="#fe9120",yc="#e9c836",vc="#ffa07a",xc="#07f",wc="#269a99",_c="#5b8ff9",Ec="16",Cc="8",Nc="16px"},8255:function(e,t,r){"use strict";r("c4ee")},8287:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"validateTrigger","change"),o(this,"VueTag",n.a.Lookup)}collectDefaultValues(e){const t=this.props.datafieldname;if(!this.hasFieldPermission(e,t))return;let r=this.props.nameField||"",i=null;if(!e.jumpFromEntity||t!=e.jumpRefAttribute){switch(t){case"ownerid":i=e.ownerid;break;case"transactioncurrencyid":e.transactioncurrency&&(i={id:e.transactioncurrency[t],name:e.transactioncurrency[r],logicalName:"transactioncurrency"});break;case"new_brand_id":"new_srv_brand"==this.props.entity&&(i=e.$store.state.user.new_brand_id)}i&&e.updateEditForm(t,i)}}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.on.attributeMappingCallback=r.attributeMappingCallback,e.on["jump-edit"]=r._handleLookupJump,r.changedProps.length>0?e.addProp("isNeedTips",!0):e.addProp("isNeedTips",!1);const i=this.getCurrentEntityNameByAttribute(t);if(e.addProp("referencedEntityDisplayName",this.props.referencedEntityDisplayName),e.addProp("entity",i),e.addProp("enableJump",this.props.enableJump),e.addProp("jumpUrl",this.props.jumpUrl),this.props.jumpUrl){const t=e=>r.getFunctionByExpression(this.props.jumpUrl,["id"]).call(r,e);e.addProp("getJumpUrl",t)}e.addProp("formStatus",r.formStatus),e.addProp("subGridRefAttribute",r.subGridRefAttribute),e.addProp("jumpForm",this.props.jumpForm),e.addProp("jumpFormLogicaName",this.props.jumpFormLogicaName),e.addProp("enableAdd",this.props.enableAdd),e.addProp("addForm",this.props.addForm),e.addProp("addFormLogicalName",this.props.addFormLogicalName),e.addProp("datafieldname",this.props.datafieldname),e.addProp("closeQuickQuery",this.props.closeQuickQuery),e.addProp("defaultViewLogicalName",this.props.DefaultViewLogicalName),e.addProp("defaultViewId",this.props.DefaultViewId),e.addProp("relationshipId",this.props.relationshipId),e.addProp("relationshipName",this.props.relationshipName);const a=this.props.ReferencedEntityName?this.props.ReferencedEntityName:"";let o;if(e.addProp("bindEntity",a),e.addProp("defaultViewsRelated",this.props.DefaultViewsRelated),e.addProp("fullEditForm",r.editForm),e.addProp("customerData",r.customerData),this.props.enableAdd&&e.addProp("isWatchLoading",!0),this.props.attributeType&&(o=this.props.attributeType.toLowerCase()),rt.isNullOrWhiteSpace(this.props.entityName)&&"multipletypelookup"==o){if(e.tag="rt-r-lookup",e.addProp("entityList",this.props.entityList),this.props.jumpExpression){const t=this.getFunctionByExpression(this.props.jumpExpression,"logicalName","id").bind(r);e.addProp("jumpExpression",t)}return e}return this.props.isCascader?(e.tag=n.a.SingleEntityCascader,e.addProp("entityName",i),e.addProp("cascaderField",this.props.cascaderField)):"customer"==o&&rt.isNullOrWhiteSpace(this.props.relationshipName)?e.tag="rt-m-lookup":(e.addProp("nameField",this.props.nameField),e.addProp("idField",this.props.idField),e.addProp("filterAttributeName",this.props.filterAttributeName),e.addProp("dependentAttributeDisplayName",this.props.dependentAttributeDisplayName),e.addProp("dependentAttributeName",this.props.dependentAttributeName),this.props.DefaultViewId?(rt.isNullOrWhiteSpace(this.props.requestUrl)||e.addProp("customRequestUrl",this.props.requestUrl),e.addProp("requestUrl","api/vlist/ExecuteQuery?queryid="+this.props.DefaultViewId),e.addProp("dialogDisplayFields",this.props.dialogDisplayFields),e.addProp("dialogFilterFields","")):(e.addProp("dialogDisplayFields",this.props.dialogDisplayFields),e.addProp("dialogFilterFields",this.props.dialogFilterFields)),e.addProp("dialogOrderbyFields",this.props.dialogOrderbyFields)),rt.isNullOrWhiteSpace(this.props.requestUrl)||(e.props.requestUrl=r.getFunctionByExpression(this.props.requestUrl).call(r)),e.props.requestUrl&&e.props.requestUrl.indexOf("api/vlist/ExecuteQuery")<0&&e.addProp("showVlist",!1),e}calcReadonly(e,t){return!e.enableMultiCurrency&&"transactioncurrencyid"==this.props.datafieldname||super.calcReadonly(e,t)}collectDependAttributes(e){this.props.dependentAttributeName&&e.dependAttributes.push(this.props.dependentAttributeName)}}o(s,"$bindNodeType",i.b.Lookup)},"83af":function(e,t,r){"use strict";r("c89a")},"83bc":function(e,t,r){"use strict";r("41c7")},8452:function(e,t,r){var i=r("359e");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0cf8c20b",i,!0,{sourceMap:!1,shadowMode:!1})},"84a7":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-38ca7f26]{display:none}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body{overflow:unset}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(70vh - 47px);overflow:hidden;display:flex;flex-direction:column}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode>.apaas-vlist-wrapper{height:100%;overflow-y:auto}[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog{height:unset}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(100vh - 87px)}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(100vh - 147px);overflow-y:auto}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(80vh - 47px)}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(80vh - 107px);overflow-y:auto}.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(60vh - 47px)}.rt-dialog-small[data-v-38ca7f26] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(60vh - 107px);overflow-y:auto}",""]),e.exports=t},8536:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra{display:flex;align-items:center;flex-wrap:wrap;max-width:100%}@supports(gap:24px){.rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra{gap:0 24px}}@supports not (gap:24px){.rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra .grid-form-filter-item{margin-right:24px}}.rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra .grid-form-filter-item{max-width:100%}.rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra .grid-form-filter-item:last-child{max-width:calc(100% - 150px);margin-right:150px}.rt-plat-lookup-filter[data-v-641bf501] .grid-form-filter-condition-extra .rtxpc-form-item__content{max-width:100%}",""]),e.exports=t},"866f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.plat-multilookup .rt-multiplelookup[data-v-43f10a32] .el-input__suffix{margin-right:8px}.plat-multilookup .rt-multiplelookup .rt-icon.clearIcon[data-v-43f10a32]{position:absolute;right:32px}.rtxpc-is-disabled.rtxpc-form-item .rt-multiplelookup .multilookup-main[data-v-43f10a32]{background:#f0f2f4}.is-border-form.el-form .is-error .rt-multiplelookup[data-v-43f10a32] input{outline:none;border-color:#d54d47}.is-border-form.el-form .is-error .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap[data-v-43f10a32]{border-color:#d54d47;box-shadow:0 0 3px 0 rgba(255,153,102,.5)}.is-border-form.el-form .plat-multilookup .rt-multiplelookup[data-v-43f10a32]{position:relative}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap[data-v-43f10a32]{display:flex;border:1px solid #d6dbe1;border-radius:4px;height:35px;box-sizing:border-box}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap[data-v-43f10a32]:hover{border:1px solid #5182ef}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap.multiple-lookup-has-tag[data-v-43f10a32] .el-input__inner{padding-left:0}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap[data-v-43f10a32] .el-input__suffix-inner{display:flex;flex-direction:row-reverse}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multiple-lookup-wrap[data-v-43f10a32] .el-input__inner{padding-left:8px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main[data-v-43f10a32]{display:flex;align-items:center;max-width:calc(100% - 62px);padding-left:8px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag[data-v-43f10a32]{white-space:nowrap;display:inline-flex;align-items:center;position:relative;z-index:2}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-close[data-v-43f10a32]{position:unset}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-text[data-v-43f10a32]{--opacitie:0.5;border-radius:2px;min-height:24px;padding:0 8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;line-height:23px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main[data-v-43f10a32]:after{clear:both;display:block;content:""}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .tag .tag-text[data-v-43f10a32]{color:#2563eb;margin-left:10px}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .choiceTag[data-v-43f10a32]{float:left}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .multilookup-main .choiceTag .__icon-right .rt-icon[data-v-43f10a32]{position:unset;height:unset}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .rt-icon[data-v-43f10a32]{margin-right:0;cursor:pointer}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete[data-v-43f10a32]{flex:1}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete[data-v-43f10a32] .el-input__inner{border:none;box-shadow:none;height:33px!important}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete[data-v-43f10a32] input{padding-left:8px;outline:none}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete[data-v-43f10a32] input.el-input__inner:focus{outline:none;box-shadow:none;border-color:transparent}.is-border-form.el-form .plat-multilookup .rt-multiplelookup .el-autocomplete .el-input__prefix[data-v-43f10a32]{margin-left:8px}.el-form-item.is-disabled .rt-multiplelookup .multilookup-main[data-v-43f10a32]{bottom:3px}',""]),e.exports=t},"86d3":function(e,t,r){var i=r("9320");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0bb9a5cc",i,!0,{sourceMap:!1,shadowMode:!1})},"874f":function(e,t,r){var i=r("99e9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("490c7a12",i,!0,{sourceMap:!1,shadowMode:!1})},8753:function(e,t){e.exports={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=r.replace(i,"$1").trim());for(var c=0;c>>7^r,r=r-i|0,i=i<<24^i>>>8^a,a=a-e|0,t.b=e=e<<20^e>>>12^r,t.c=r=r-i|0,t.d=i<<16^r>>>16^a,t.a=a-e|0},t.a=0,t.b=0,t.c=-1640531527,t.d=1367130551,e===Math.floor(e)?(t.a=e/4294967296|0,t.b=0|e):r+=e;for(var i=0;i>>0)/4294967296};return a.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=r.next,a.quick=a,i&&("object"==typeof i&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.tychei=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},"8a7f":function(e,t,r){"use strict";r("2a01")},"8a86":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".address-cascader-control.plat-address-control[data-v-53e89514]{position:relative;height:35px}.address-cascader-control.plat-address-control .rt-address-cascader .el-input__suffix-inner[data-v-53e89514]{height:100%}.address-cascader-control.plat-address-control .rt-address-cascader .el-input__suffix-inner .el-input__icon[data-v-53e89514]{color:#363d44}.disable-click[data-v-53e89514]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}",""]),e.exports=t},"8ac8":function(e,t,r){var i=r("4169");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("659facfc",i,!0,{sourceMap:!1,shadowMode:!1})},"8b17":function(e,t,r){var i=r("31da");e.exports=function(e,t,r){return(t=i(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},"8b95":function(e,t,r){var i=r("6379");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("21336207",i,!0,{sourceMap:!1,shadowMode:!1})},"8bbf":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8bbf__},"8c22":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".mapping-rules-card .rtxpc-form .rtxpc-form-item[data-v-d9ec59de]{margin-top:0}.mapping-rules-card .rtxpc-form .rtxpc-form-item[data-v-d9ec59de] .rtxpc-form-item__label{margin-top:0!important}.mapping-rules-card .plat-picklist-entities.plat-picklist-entities[data-v-d9ec59de]{width:310px!important}.mapping-rules-card .add-sub-table-btn[data-v-d9ec59de]{margin-top:16px}.mapping-rules-card .mapping-rules-tabs[data-v-d9ec59de]{display:flex;justify-content:space-between;align-items:center;padding-right:16px}.mapping-rules-card .mapping-rules-tabs .rt-tabs[data-v-d9ec59de]{width:100%}.mapping-rules-card .mapping-rules-tabs .rt-tabs[data-v-d9ec59de] .sheet-name-input+.rt-icon.rt-icon-close{display:none!important}.mapping-rules-card .mapping-rules-tabs .rt-tabs[data-v-d9ec59de] .rt-tabs__new-tab.rtxpc-tabs__new-tab{color:#4c5966}.mapping-rules-card .mapping-rules-tabs .rt-tabs[data-v-d9ec59de] .rt-tabs__new-tab.rtxpc-tabs__new-tab:hover{color:#1a8bff}.mapping-rules-card .mapping-rules-tabs .item[data-v-d9ec59de]{margin-top:2px}.mapping-rules-card .mapping-rules-tabs .sheet-name-input[data-v-d9ec59de]{width:80px;border:1px solid #d6dbe1;border-radius:4px;padding:0 8px;box-sizing:border-box;height:28px}.mapping-rules-card .mapping-rules-extraContent[data-v-d9ec59de]{display:flex;align-items:center;margin-left:24px;box-sizing:border-box}.mapping-rules-card .mapping-rules-extraContent .rt-checkbox[data-v-d9ec59de]{margin-right:4px}.mapping-rules-card .rt-tabs__content .rt-tab-pane[data-v-d9ec59de]{padding:0}.mapping-rules-card .mapping-rules-content .mapping-rules-primary[data-v-d9ec59de]{margin-top:20px}.mapping-rules-card .mapping-rules-content .mapping-rules-form[data-v-d9ec59de]{display:flex;justify-content:space-between;align-items:center;margin:8px 0 12px}.mapping-rules-card .mapping-rules-content .mapping-rules-form .mapping-rules-form-left[data-v-d9ec59de]{display:flex;align-items:center}.mapping-rules-card .mapping-rules-content .mapping-rules-form .mapping-toggle-icon[data-v-d9ec59de]{display:inline-block}.mapping-rules-card .mapping-rules-content .mapping-rules-form .mapping-rules-editForm[data-v-d9ec59de] .rtxpc-form-item__label{margin-top:0}.mapping-rules-card .mapping-rules-content .mapping-rules-form .mapping-rules-form-right[data-v-d9ec59de]{display:flex;align-items:center}.mapping-rules-card .mapping-rules-content .mapping-rules-form .mapping-rules-form-right .rt-checkbox[data-v-d9ec59de]{margin-right:16px}.collapse-content.is-collapsed[data-v-d9ec59de]{display:none!important}.mapping-toggle-icon-wrapper[data-v-d9ec59de]{cursor:pointer;margin-right:8px;display:inline-flex;align-items:center;justify-content:center;transition:transform .3s ease;transform-origin:center center;transform:rotate(90deg)}.mapping-toggle-icon-wrapper.is-rotated[data-v-d9ec59de]{transform:rotate(270deg)}.sub-toggle-icon[data-v-d9ec59de]{display:inline-block}.sub-toggle-icon-wrapper[data-v-d9ec59de]{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:transform .3s ease;transform-origin:center center;transform:rotate(90deg)}.sub-toggle-icon-wrapper.is-rotated[data-v-d9ec59de]{transform:rotate(270deg)}.sub-filter-group[data-v-d9ec59de]{display:flex;align-items:center;margin-left:12px}.collapse-content[data-v-d9ec59de]{contain:layout paint;overflow:visible}.primary-collapse-enter-active[data-v-d9ec59de],.primary-collapse-leave-active[data-v-d9ec59de]{overflow:hidden}.sub-tables-wrapper[data-v-d9ec59de]{margin-top:16px}.sub-table-block[data-v-d9ec59de]{margin-top:12px}.sub-table-header[data-v-d9ec59de]{justify-content:space-between;margin-bottom:8px}.sub-table-actions[data-v-d9ec59de],.sub-table-header[data-v-d9ec59de],.sub-table-title[data-v-d9ec59de]{display:flex;align-items:center}.extendInfo[data-v-d9ec59de]{margin:8px 0 -4px;display:flex}.extendInfo .flex-radio[data-v-d9ec59de]{flex:1;display:flex;justify-content:center}.extendInfo .flex-radio .rtxpc-radio-group[data-v-d9ec59de]{margin-left:4px;display:block}.extendInfo .flex-radio .rtxpc-radio-group .rt-radio.rtxpc-radio[data-v-d9ec59de]{display:block}",""]),e.exports=t},"8c6d":function(e,t,r){"use strict";r("4465")},"8d21":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".user-query-drawer[data-v-20b3f424] .rtxpc-drawer{box-shadow:-6px 0 16px -8px rgba(0,0,0,.2)!important}.header-wrapper[data-v-20b3f424]{width:100%;height:48px;display:flex;align-items:center;padding:0 16px;background:#f0f2f4;font-size:16px;font-weight:700;color:#0b0c0e;line-height:21px}.list-wrapper[data-v-20b3f424]{padding:16px}.view-list[data-v-20b3f424]{list-style:none;margin:0}.view-list .view-list-item[data-v-20b3f424]{height:44px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;background:#f6f7f8;border-radius:8px;font-size:14px;color:#0b0c0e;line-height:19px}.view-list .view-list-item[data-v-20b3f424]:not(:first-child){margin-top:8px}.view-list .view-list-item .view-name[data-v-20b3f424]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px}.btn-create[data-v-20b3f424]{width:100%}.view-list+.btn-create[data-v-20b3f424]{margin-top:12px}.buttons-group[data-v-20b3f424] .rt-button-more .rt-divider{display:none}.more-btns-item[data-v-20b3f424]{line-height:35px;cursor:pointer;padding-left:16px;padding-right:16px}.more-btns-item[data-v-20b3f424]:hover{background-color:#e6f2ff;color:#5182ef}.more-btns-item.delete[data-v-20b3f424]{margin-bottom:0;color:#f34725}.more-btns-item.delete[data-v-20b3f424]:hover{background-color:#e6f2ff;color:#5182ef}.icon-more-btns[data-v-20b3f424]:hover{cursor:pointer;color:#5182ef}",""]),e.exports=t},"8d2b":function(e,t,r){var i=r("8c22");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1abf8401",i,!0,{sourceMap:!1,shadowMode:!1})},"8d3a":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".attach-wrap.plat-attach-wrap .saas-icon.btn-add[data-v-420fd0d4]{width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer}.attach-wrap.plat-attach-wrap .saas-icon.btn-add[data-v-420fd0d4] >.rt-icon{display:inline-flex}.attach-wrap.plat-attach-wrap .attach-ul[data-v-420fd0d4]{background:#fff;padding-top:10px;padding-bottom:15px}.attach-wrap.plat-attach-wrap .attach-ul li[data-v-420fd0d4]{padding:10px 15px 10px 20px;cursor:pointer;background:#f5f7fa;margin-bottom:10px}.attach-wrap.plat-attach-wrap .attach-ul li[data-v-420fd0d4]:last-child{margin-bottom:0}.attach-wrap.plat-attach-wrap .attach-ul li[data-v-420fd0d4]:hover{background:#f5f7fa}.attach-wrap.plat-attach-wrap .attach-ul li a[data-v-420fd0d4]{font-size:14px;color:#143e81;text-decoration:underline;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;display:block}.attach-wrap.plat-attach-wrap .attach-ul li .attach-ul li a[data-v-420fd0d4]:hover{color:#09f}.attach-wrap.plat-attach-wrap .attach-size[data-v-420fd0d4]{color:rgba(0,0,0,.45);font-size:14px;overflow:hidden;margin-top:20px}.attach-wrap.plat-attach-wrap .attach-size span[data-v-420fd0d4]{float:left;margin-right:10px}.attach-wrap.plat-attach-wrap .attach-icon[data-v-420fd0d4]{width:22px;height:22px;background:#f5f7fa;border:1px solid #f5f7fa;border-radius:100%;text-align:center;box-sizing:border-box;padding-top:3px}.attach-wrap.plat-attach-wrap .attach-delete[data-v-420fd0d4]{margin-top:13px;width:35px}.attach-wrap.plat-attach-wrap .attach-delete span[data-v-420fd0d4]{float:right;margin-right:3px}.attach-wrap.plat-attach-wrap .file-icon[data-v-420fd0d4]{margin-top:4px}.attach-wrap.plat-attach-wrap .attachment-img[data-v-420fd0d4]{padding:0;width:60px}.attach-wrap.plat-attach-wrap .attachment-img .previewimg[data-v-420fd0d4]{width:48px;height:48px;border:1px solid #ced5ef}.attach-wrap.plat-attach-wrap .attachment-img .plat-attach-div[data-v-420fd0d4]{width:48px;height:48px;border:1px solid #ced5ef;text-align:center}.attach-wrap.plat-attach-wrap .attachment-desc[data-v-420fd0d4]{width:calc(100% - 95px)}.dialog-footer[data-v-420fd0d4]{display:flex;flex-direction:row;justify-content:flex-end;gap:8px}",""]),e.exports=t},"8dd0":function(e,t,r){"use strict";r("cdcc")},"8e34":function(e,t,r){"use strict";r("976b")},"8e37":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".filter-linkentity .list-item[data-v-7eaadeb4]{margin-left:40px}.filter-linkentity .row-name[data-v-7eaadeb4]{color:#1d2129}.filter-linkentity .col-operator[data-v-7eaadeb4] .el-dropdown{margin-right:10px}.row-linkEntity[data-v-7eaadeb4]{align-items:center;margin:8px 0 8px 8px}.row-linkEntity .col-linkEntity[data-v-7eaadeb4]{display:flex}.col-operator[data-v-7eaadeb4]{display:flex;align-items:center;justify-content:center;width:20px;height:100%}",""]),e.exports=t},"8e49":function(e,t,r){"use strict";r("a589")},"8eed":function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE__8eed__},"8eee":function(e,t,r){"use strict";var i={name:"VDrawer",mixins:[r("4b59").a],props:{editForm:Object,dialogFormId:String},data:()=>({isShow:!1,componentData:{componentName:"",props:{},callback:Function,size:"normal"},isFullscreen:!1,headerHeight:56,closeWithoutCallback:!1,drawerId:"",dialogFormDataChanged:!1}),watch:{isShow(e){this.createListening(e)}},created(){this.dialogFormId?this.drawerId=this.dialogFormId:this.drawerId=rt.newUUID(),this.$PlatUtils.listenerHook(this,"schemaLoaded",()=>{let e=document.querySelector(`.relation-drawer[data-drawer-id="${this.drawerId}"] .rt-detail-header`)||document.querySelector(`.relation-drawer[data-drawer-id="${this.drawerId}"] .rt-list-header`);e&&(this.headerHeight=e.clientHeight,this.$xpc.addResizeObserver(e,this,()=>{this.$nextTick(()=>{this.headerHeight=e.clientHeight})}))},!1),this.$PlatUtils.listenerHook(this,"dialogFormDataChange-"+this.drawerId,e=>{this.dialogFormDataChange(e)}),this.$PlatUtils.listenerHook(this,"dialogFormDataClose-"+this.drawerId,this.dialogFormDataClose)},methods:{show(e,t,r,i,a){this.isWatchLoadingData="vformcore"==e||"vlistcore"==e,this.componentData={componentName:e,props:{...t,dialogFormId:this.drawerId},callback:r,size:i},this.isShow=!0,this.closeWithoutCallback=a},hide(){this.$refs.drawer&&this.$refs.drawer.closeDrawer()},handleDrawerClosed(){this.$emit("closed"),this.isFullscreen&&this.exitFullscreen()},toFullscreen(){this.isFullscreen=!0},exitFullscreen(){this.isFullscreen=!1},dialogFormDataChange(){this.isShow&&(this.dialogFormDataChanged=!0)},dialogFormDataClose(){this.dialogFormDataChanged=!1},beforeClose(e){this.dialogFormDataChanged?this.$confirm(this.$_t("unsaved_changes","您有未保存的更改,是否要离开?"),this.$_t("addresslocation.Tipconfirm","确认提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning"}).then(()=>{this.dialogFormDataChanged=!1,e()}).catch(()=>{}):e()},elBeforeClose(){this.beforeClose(()=>{this.isShow=!1})}},render:function(e){var t,r=this.componentData;r.props.fromEntity||(r.props.fromEntity=this.editForm);const i={};return"vformcore"===r.componentName?(r.props.isDrawerMode=!0,i["dialog-close"]=e=>{this.isShow=!1,this.handleDrawerClosed(),r.callback&&r.callback({isSaved:!0})}):i.dialogCallBack=()=>{r.callback&&r.callback()},t=e(r.componentName,{ref:r.componentName,props:r.props,class:"apaas-drawer-mode",on:i}),e("rc-drawer",{ref:"drawer",class:{"relation-drawer":!0,fullscreen:this.isFullscreen},attrs:{"data-drawer-id":this.drawerId,modal:!1,"with-header":!1,size:r.size?r.size:"65vw","before-close":this.elBeforeClose},props:{visible:this.isShow},on:{closed:this.handleDrawerClosed,"update:visible":e=>{this.isShow!==e&&!0!==this.closeWithoutCallback&&r.callback&&r.callback(),this.isShow=e}},...this.$attrs},this.isShow?[e("div",{class:"relation-header-wrapper",style:{height:this.headerHeight+"px"}},[e("div",{class:"relation-header"},[e("div",{class:"btn-fullscreen"},[this.isFullscreen?e("rc-tooltip",{props:{content:this.$_t("chart.reduce","缩小"),effect:"dark",placement:"bottom"}},[e("rc-button",{props:{"icon-name":"plat-icon-exit-full-screen-lined","icon-size":"16",type:"plain",text:!0},on:{click:this.exitFullscreen}})]):e("rc-tooltip",{props:{content:this.$_t("common.zoomin","放大"),effect:"dark",placement:"bottom"}},[e("rc-button",{props:{"icon-name":"plat-icon-full-screen-lined","icon-size":"16",type:"plain",text:!0},on:{click:this.toFullscreen}})])]),e("div",{class:"btn-close"},[e("rc-button",{props:{"icon-name":"rt-base-close-x","color-type":"neutral-regular","icon-size":"16",type:"plain",text:!0},on:{click:this.hide}})])])]),t]:[])}},a=(r("194a"),r("0c7c")),n=Object(a.a)(i,void 0,void 0,!1,null,"10f08b00",null);t.a=n.exports},"8f38":function(e,t,r){var i=r("22a9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4fc83e9f",i,!0,{sourceMap:!1,shadowMode:!1})},"8f43":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".batch-upload-image.plat-batch-upload-image[data-v-0cb77b60]{overflow-y:hidden;max-height:calc(70vh - 47px)}.batch-upload-image.plat-batch-upload-image .plat-batch-form[data-v-0cb77b60]{max-height:calc(70vh - 104px);overflow:hidden}.batch-upload-image.plat-batch-upload-image .rt-card[data-v-0cb77b60]{margin-top:0;max-height:calc(70vh - 104px);overflow-y:auto}.batch-upload-image.plat-batch-upload-image .rt-upload[data-v-0cb77b60] .el-upload,.batch-upload-image.plat-batch-upload-image .rt-upload[data-v-0cb77b60] .el-upload .el-upload-dragger{width:100%}.batch-upload-image.plat-batch-upload-image .rt-upload .el-upload-list[data-v-0cb77b60]{max-height:200px;overflow-y:auto}.batch-upload-image.plat-batch-upload-image .rt-upload .el-upload-list[data-v-0cb77b60]::-webkit-scrollbar{width:0}.batch-upload-image.plat-batch-upload-image .footer-group[data-v-0cb77b60]{background:#fff}.batch-upload-image.plat-batch-upload-image .footer-button-group[data-v-0cb77b60]{display:flex;justify-content:flex-end;align-items:center;padding:12px 24px 12px;border-top:1px solid #d6dbe1;border-radius:0 0 4px 4px}.batch-upload-image.plat-batch-upload-image .footer-button-group .rt-button[data-v-0cb77b60]{margin-left:16px}.batch-upload-image.plat-batch-upload-image .upload-result .rt-table[data-v-0cb77b60]{margin:0}",""]),e.exports=t},"8fbb":function(e,t,r){var i=r("446c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("01a0c17d",i,!0,{sourceMap:!1,shadowMode:!1})},"8ff5":function(e,t,r){var i=r("6815");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6c15ca2d",i,!0,{sourceMap:!1,shadowMode:!1})},9018:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-multilookup-popover_li{display:flex}.is-border-form.el-form .rc-base-lookup.plat-base-lookup .el-input__suffix .rt-icon.search-icon{margin-right:0}.is-border-form.el-form .rtxpc-form-item--mini .rc-base-lookup.plat-base-lookup .multilookup-main{bottom:1px}.is-border-form.el-form .rtxpc-form-item--mini .rc-base-lookup.plat-base-lookup .rt-tag-outline{min-height:16px!important}.multiple-lookup-wrap .el-input__suffix-inner{display:flex;flex-direction:row-reverse;align-items:center}.multiple-lookup-wrap .rt-tag-outline{min-height:24px!important}.multiple-lookup-wrap .rt-tag-outline .tag-close{position:unset;height:16px!important}.multiple-lookup-wrap .rt-tag-outline .tag-text.is-primary:hover{text-decoration:none}",""]),e.exports=t},"905b":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i=r("ef51"),a=r("a829"),n=r("6f75"),o=r("0711"),s=r("e926");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class d extends o.a{constructor(e){super(e),l(this,"VueTag",n.a.platFilterComponent)}prepare(e){super.prepare(e);const t=e.thisVue;if(t.isSubgrid)return;const r=this.calcReadonly(t,e),a=this.calcRequired(t,e);this.props.calcReadonly=r,this.props.calcRequired=a;const n=this.getCurrentInputField(),o=this.getDefaultValue(t);void 0===o||this.isEqual(t.editFormDefault[n],o)||t.setEditFormDefaultValue(n,o),t.pageType==i.e.PCSubGrid||t.isGoBack||this.collectGridCondition(e);const s=this.props.conditionKey||"extra_"+n,l=e.dependAttributes.indexOf(n)>=0;t.fieldInputHandlers[s]||(t.fieldInputHandlers[s]=this.createInputHandler(t,s,l));const d=this.props.DependentAttributeName;if(n&&d){const r=this.createAttributeEventKey(t,"extra_"+d,"input"),i=this.__createDependencyChangedHandler(e);this.__addEvent(t,r,i)}}createVNode(e,t){const r=t.targetComponent,o=new a.e(n.a.FormItem),l=e.data&&e.data.class&&e.data.class.includes("grid-form-filter-condition");o.addClass("grid-form-filter-item"),o.addProp("hidden-label",!0),o.addProp("label-position","left"),l?(o.addStyle("max-width","100%"),this.appendNode(e,o,t)):this.appendNode(e,o,t),this.id&&o.addKey("vlist_form_item"+this.id);const{attributeType:d,operator:c,actualDataField:u,conditionKey:p,Encrypted:h}=this.props;let f=this.props.datafieldname;u&&(f=u);let m=d;["datetime","date"].includes(d)&&"DateOnly"==this.props.datetimeformat&&(m="date"),["ntext","text","nvarchar"].includes(d)?m="string":"bit"===d?m="boolean":"float"===d&&(m="double");let g=Object(s.a)(m)||[];this.props.isCustomCondition?"businessunit"==this.props.referencedEntity?g=[...g,...Object(s.a)("businessunit")]:"systemuser"==this.props.referencedEntity&&(g=s.f):"businessunit"==this.props.attributeEntityName?g=[...g,...Object(s.a)("businessunit")]:"systemuser"==this.props.attributeEntityName&&(g=s.f);const b=g.map((e,t)=>({name:r.$_t(e.key,e.label),value:t,op:e.fetchXMLOperator})),y=this.props.conditionKey||"extra_"+this.getCurrentInputField();r.fieldInputHandlers[y]||(r.fieldInputHandlers[y]=this.createInputHandler(r,y,!1));let v=c;if(Array.isArray(r.filterFormList)&&r.filterFormList.length>0){const e=r.filterFormList.findIndex(e=>e.key===y);e>-1&&(v=r.filterFormList[e].op)}const x=o.addChildByTag("plat-filter-action"),w=this.getAttrLabel();x.addProp("label",w);const _=!!r.queryAttributes.requestApi,E=x.addChildByTag("plat-operate"),C=b.findIndex(e=>e.op===v);E.addProp("value",C),E.addProp("encrypted",h),E.addProp("operateOptions",b),E.addProp("datafieldname",f),E.addProp("conditionKey",p||"extra_"+f),E.addProp("isCustomApi",_),E.on.setType=r.__changeOperateType,l&&(E.on.filterChange=()=>this.handleFilterChange(r));const N=o.addChildByTag(this.VueTag);let S,T;if(_||l||["lookup","userQueryDialog"].includes(r.pageSource)||(S=o.addChildByTag("plat-icon"),S.addProp("conditionKey",p||"extra_"+f),S.on.input=r.__deleteCondition),l||["lookup","userQueryDialog"].includes(r.pageSource)||(T=o.addChildByTag("plat-exposed-checkbox"),T.addProp("value",this.props.isExposed||!1),T.addProp("conditionKey",p||"extra_"+f),T.on.input=e=>{this.handleExposedChange(r,p||"extra_"+f,e)}),l||["lookup","userQueryDialog"].includes(r.pageSource)){x.addProp("operate-width",100);let e=180;"datetime"===this.props.dataType&&"between"===this.props.operator&&(e=260),N.addStyle("width",e+"px"),N.addStyle("flex-shrink",0)}else{var k;_||x.addProp("operate-width",100),x.addProp("label-width",_?200:120),null===(k=S)||void 0===k||k.addClass("plat-condition-icon-delete"),null==E||E.addProp("is-drawer",!0)}N.addProp("operatorType",v||"eq"),this.buildVNode(N,t),N.addProp("maxLength",this.props.maxlength||5e3),N.addAttr("maxLength",this.props.maxlength||5e3),N.addProp("needTips",!0),N.addAttr("needTips",!0),N.addProp("datafieldname",f);const O=this.props.calcReadonly||this.parentInfo.readonly;N.addProp("disabled",O),N.addProp("readonly",O),this.props.readonly=O,this.$nodetype===i.b.TextArea&&O&&N.addAttr("readonly",!0),o.nodeType=i.b.formItem,o.cid&&N.addProp("formitemkey",o.cid),N.addProp("placeholder",this.getLangPlaceholder(this.props,t)),l&&(N.on.filterChange=e=>{this.handleFilterChange(r,e)}),o.addClass("rt-form-item-wrapper"),o.addProp("prop",p||"extra_"+f);const I=this.props.calcRequired;-1===Object.keys(r.platFilterOperator).indexOf(this.props.operator)&&I&&o.addProp("required",I);let D=null;I&&(D={required:!0,message:r.$_t("common.enter","请输入")+w,trigger:this.validateTrigger},this.extendRules(D,t));let A=D?[D]:[];const M=t.Rules[f];M&&(A=A.concat(M)),o.addProp("rules",A),this.buildVNodeInView(N,t)}buildVNodeInView(e,t){const r=t.targetComponent,i=this.props,a=this.getCurrentInputField(),n=i.conditionKey||"extra_"+a;let o;if(r.queryAttributes.requestApi)o=r.editForm[a];else{const e=r.getFilterFormListItem(n);e&&(o=e.val)}if(e.addProp("value",o),r.fieldInputHandlers[n]&&(e.on.input=r.fieldInputHandlers[n]),2!=i.availableOnPhone){const e=t;null!=e&&(e.showMoreSearch=!0)}i.entityList&&i.entityList.length>0&&e.addProp("entityList",i.entityList),e.addProp("conditionKey",i.conditionKey||"extra_"+this.getCurrentInputField()),e.addProp("encrypted",i.Encrypted),e.addProp("entityAlias",i.entityAlias),e.addProp("entity",i.isCustomCondition?i.referencedEntity||i.entity:this.getCurrentEntityNameByAttribute(t)),e.addProp("DefaultViewId",i.defaultViewId),e.addProp("attribute",i.attribute),e.addProp("dialogDisplayFields",i.dialogDisplayFields),e.addProp("dialogOrderbyFields",i.dialogOrderbyFields),e.addProp("dialogFilterFields",i.dialogFilterFields),e.addProp("entityList",i.entityList),e.addProp("cascaderEntity",i.referencedEntity),e.addProp("clearable",!0),e.addProp("operateType",i.operator||"eq"),e.addProp("cascaderField",i.cascaderField),e.addProp("isCascader",i.isCascader),e.addProp("displayname",i.displayName),e.addProp("filterable",i.filterable),e.addProp("IsSubEntity",i.IsSubEntity),e.addProp("attributeTypeName",i.dataType);const s=i.datetimeformat&&i.datetimeformat.toLowerCase();e.addProp("dateTimeFormat",s),e.addProp("referencedNameField",i.referencedNameField),e.addProp("referencedIdField",i.referencedIdField),e.addProp("referencedEntity",i.referencedEntity),e.addProp("filterAttributeName",i.filterAttributeName),e.addProp("platFilterOperator",i.platFilterOperator),e.addProp("dataType",i.dataType),e.addProp("gridConditionIsChanged",r.gridConditionIsChanged);const l=i.options&&i.options.map(e=>(e.IconSrc&&!(e.IconSrc.startsWith("http://")||e.IconSrc.startsWith("https://")||e.IconSrc.startsWith("ftp://"))&&(e.IconSrc=rt.getBaseUrl()+e.IconSrc),e));if(e.addProp("options",l),e.addProp("langkey",i.langkey),(this.parent&&this.parent.parent&&this.parent.parent.props.disabled||this.parent&&this.parent.props.disabled)&&e.addProp("disabled",!0),i.DependentAttributeName){e.addProp("dependentAttributeDisplayName",i.dependentAttributeDisplayName),e.addProp("dependentAttributeName",i.DependentAttributeName);const t=r.filterFormList.find(e=>e.name===i.DependentAttributeName);if(t){const r=t.val;r&&"object"==typeof r&&r.id?e.addProp("filterAttributeValue",r.id):e.addProp("filterAttributeValue",r)}if(e.props.filterAttributeValue){const t=[];if(Array.isArray(e.props.filterAttributeValue)&&e.props.filterAttributeValue.length>0&&e.props.filterAttributeValue.forEach(e=>{e.id?t.push(e.id):t.push(e.$id)}),0==t.length){const t=i.FilterRelationAttrName+" eq "+e.props.filterAttributeValue;e.addProp("dialogConditionFields",t)}else{let r=i.FilterRelationAttrName+" in "+t.join(";");1==t.length&&(r=i.FilterRelationAttrName+" in "+t[0]),e.addProp("dialogConditionFields",r)}}else e.addProp("dialogConditionFields","")}if(i.dialogDisplayFields&&i.dialogDisplayFields.length>0&&e.addProp("dialogDisplayFields",i.dialogDisplayFields),e.addProp("dialogOrderbyFields",i.dialogOrderbyFields),i.requestUrl?e.addProp("requestUrl",r.getFunctionByExpression(i.requestUrl).call(r)):i.DefaultViewId&&e.addProp("requestUrl","api/vlist/ExecuteQueryForLookUp?queryid="+i.DefaultViewId),e.ref="gridcondition_"+this.getCurrentInputField(),e.addProp("queryId",r.queryId),i.displayValueExpression){e.addProp("displayValueExpression",i.displayValueExpression);let t=[];t=r.getFunctionByExpression(i.displayValueExpression,["options"]).call(r,i.options),e.addProp("displayValue",t)}const d=i.ReferencedEntityName||i.referencedEntityName;return e.addProp("bindEntity",d),e.addProp("defaultViewsRelated",i.DefaultViewsRelated),e}__createDependencyChangedHandler(e){const t=e.thisVue;return(e,r)=>{const a=this.props,n=this.getCurrentInputField(),o=a.conditionKey||"extra_"+n;if(t.pageType===i.e.PCQuery){const e=t.filterFormList.find(e=>e.key===o);e&&t.setFilterFormListItem(o,{...e,val:null})}else t.$set(t.editForm,n,null);t.changedProps.push(n);const s=this.createAttributeEventKey(t,n,"input");t.$bus.$emit(s,null,null)}}collectDependAttributes(e){this.props.DependentAttributeName&&e.dependAttributes.push(this.props.DependentAttributeName)}createInputHandler(e,t,r){const i=this.createAttributeEventKey(e,t,"input");return(a,n,o)=>{const s=this.getCurrentInputField();let l=e.filterFormList.find(e=>e.key===t);l?l.val=a:l={key:t,name:s,op:this.props.operator,val:a},e.setFilterFormListItem(t,l),e.$set(e.savedComponent[t].gridConditionProps.props,"isDefaultCondition",!1),r&&e.$bus.$emit(i,a,n),this.emitDataChange(a,e,o)}}emitDataChange(e,t,r){t.pageType===i.e.PCQuery&&(t.gridConditionIsChanged=!0)}handleFilterChange(e,t){e._filetrprimary()}getDefaultValue(e){const t=this.props.defaultValueExpression;if(t)return e.getFunctionByExpression(t).call(e)}isEqual(e,t){return Array.isArray(e)&&Array.isArray(t)?JSON.stringify(e.toSorted())===JSON.stringify(t.toSorted()):e instanceof Object&&t instanceof Object?e.id===t.id:e==t}handleExposedChange(e,t,r){var i,a;this.props.isExposed=r;const n=null===(i=e.filterFormList)||void 0===i?void 0:i.find(e=>e.key===t);n&&(n.isExposed=r);const o=null===(a=e.filterFormListDefault)||void 0===a?void 0:a.find(e=>e.key===t);o&&(o.isExposed=r),e.savedComponent&&e.savedComponent[t]&&(e.savedComponent[t].gridConditionProps.props.isExposed=r),e.$forceUpdate&&e.$forceUpdate(),e.gridConditionIsChanged=!0}collectGridCondition(e){var t,r;const a=e.thisVue,o=this.props;o.platFilterOperator=a.platFilterOperator,o.isDefaultCondition=!0,o.platFilterOperatorNameList=s.e;const d=this.getCurrentInputField();class c{constructor(e){l(this,"key",void 0),l(this,"name",void 0),l(this,"op",void 0),l(this,"val",void 0),this.key="extra_"+e,this.name=e,this.op=o.operator,this.val=a.editFormDefault[d]}}Array.isArray(a.filterFormListDefault)&&!a.filterFormListDefault.some(e=>e.key==="extra_"+d)&&(a.filterFormListDefault.push(new c(d)),a.filterFormList.push(new c(d)));const u=this.getDefaultValue(a),p=this.parent||null;let h=null;p&&(h=p.parent||null);const f={gridConditionProps:{id:this.id,$nodetype:i.b.gridCondition,VueTag:n.a.platFilterComponent,props:{...o,controlValue:u,actualDataField:d,cellCalcHidden:null==p?void 0:p.calcHiddenFunc,cellCalcReadonly:null==p?void 0:p.calcReadonlyFunc,rowCalcHidden:null===(t=h)||void 0===t?void 0:t.calcHiddenFunc,rowCalcReadonly:null===(r=h)||void 0===r?void 0:r.calcReadonlyFunc}}};a.defaultSavedComponent["extra_"+d]=f,a.savedComponent["extra_"+d]=a.$xpc.cloneDeep(f)}}l(d,"$bindNodeType",i.b.gridCondition)},"907c":function(e,t,r){(t=r("24fb")(!1)).push([e.i,"[data-v-03a31d6f] .apaas-dialog-mode .plat-dialog-footer{box-sizing:border-box;height:60px;display:flex;flex-direction:row-reverse;flex-shrink:0;background-color:#fff;padding:0 16px;align-items:center;border-top:1px solid #f0f2f4}[data-v-03a31d6f] .apaas-dialog-mode .plat-dialog-footer .rt-button+.button-group-more,[data-v-03a31d6f] .apaas-dialog-mode .plat-dialog-footer .rt-button+.rt-button{margin-right:8px}[data-v-03a31d6f] .apaas-dialog-mode>.rt-content-wrapper{max-height:calc(70vh - 107px);overflow-y:auto}[data-v-03a31d6f] .apaas-dialog-mode>.rt-content-wrapper>.rt-content-main{padding:12px 12px 4px}[data-v-03a31d6f] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main{padding:12px 12px}[data-v-03a31d6f] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main .list-table.plat-list-table .rt-content-main{padding:0}[data-v-03a31d6f] .apaas-dialog-mode>.rt-content-wrapper .rt-content-main .rc-section.plat-section{padding-bottom:16px}",""]),e.exports=t},"920b":function(e,t,r){var i=r("ecd4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("c02a086e",i,!0,{sourceMap:!1,shadowMode:!1})},"920bc":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-autograph[data-v-225b667c]{display:flex;justify-content:center;align-items:center;background-color:unset}.plat-autograph .plat-autograph-fileUrl[data-v-225b667c]{max-width:150px;max-height:150px}.autograph-img-wrapper[data-v-225b667c]{border-radius:2px;cursor:pointer;position:relative}.autograph-img-wrapper .bottom-func-area[data-v-225b667c]{margin:0;vertical-align:top;display:none}.autograph-img-wrapper .bottom-func-area .bottom-func-item[data-v-225b667c]{position:absolute;width:100%;height:30%;left:0;bottom:0;cursor:pointer;text-align:center;color:#fff;font-size:20px;background-color:rgba(0,0,0,.5);transition:opacity .3s;display:flex;justify-content:center;align-items:center}.autograph-img-wrapper .bottom-func-area .bottom-func-item .func-icon-wrapper[data-v-225b667c]{flex:1}.autograph-img-wrapper:hover .bottom-func-area[data-v-225b667c]{display:block}",""]),e.exports=t},"92b3":function(e,t,r){var i=r("7766");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("11972cbe",i,!0,{sourceMap:!1,shadowMode:!1})},9320:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".address-flat-popper{height:280px;padding:0}",""]),e.exports=t},9340:function(e,t,r){var i=r("798d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d39b0f06",i,!0,{sourceMap:!1,shadowMode:!1})},"938a":function(e,t,r){var i=r("866f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("d3b725e0",i,!0,{sourceMap:!1,shadowMode:!1})},9475:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".printing-al{position:relative;width:210mm;height:297mm;margin:0 auto;border-collapse:collapse}.printing-al /deep/ .el-form>div:last-child,.printing-al /deep/ .el-form>div:last-child>:last-child{page-break-after:auto}@page{width:210mm;height:297mm;margin:10mm;size:portrait}",""]),e.exports=t},9550:function(e,t,r){"use strict";r("67a1")},9595:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag","between"==this.props.operatorType?n.a.ELDatePicker:n.a.DatePicker)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;"DateAndTime"==this.props.datetimeformat?(e.addProp("stepper",this.props.stepper),e.addProp("type","datetime")):e.addProp("type","date"),"between"==this.props.operatorType&&e.addProp("type","datetimerange"),e.attrs.format="datetime"==e.props.type?r.getDateMinuteFormat():r.getDateFormat()}}o(s,"$bindNodeType",i.b.DateTime)},"95c2":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".import-template-picklist-popper{max-width:500px!important}.import-template-picklist-popper .rtxpc-select-dropdown__list{display:flex}.import-template-picklist-popper .el-select-group__wrap{min-width:120px;padding-bottom:0}.import-template-picklist-popper .el-select-group__wrap:after{display:none}",""]),e.exports=t},"976b":function(e,t,r){var i=r("e3f2");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("25bed228",i,!0,{sourceMap:!1,shadowMode:!1})},9771:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","div")}}n(o,"$bindNodeType",i.b.navbar)},"977d":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".operate-span-disabled[data-v-f29a9c98]{height:25px;line-height:25px;background:#f0f2f4;border-radius:4px;font-size:12px;color:#363d44;padding:0 4px;box-sizing:border-box;white-space:nowrap;overflow-x:hidden}.operate-span-disabled.operate-span-disabled-drawer[data-v-f29a9c98]{min-width:100px}.operate-span-disabled[data-v-f29a9c98]:not(.operate-span-disabled-drawer){padding:0 8px}.line-tip[data-v-f29a9c98]{cursor:pointer;height:27px;line-height:27px}.operate-span[data-v-f29a9c98]{height:100%;border:1px solid transparent;box-sizing:border-box;padding:0 7px 0 3px;flex-shrink:0}.operate-span[data-v-f29a9c98]:hover{border-radius:4px;border:1px solid #0072e6}.operate-span .operate-dropdown-title[data-v-f29a9c98]{color:#363d44}",""]),e.exports=t},"97c4":function(e,t,r){"use strict";r("e68c")},"97f5":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;if(e.addProp("formId",i.FormId),e.addProp("objectId",i.objectId),e.addProp("objectTypeName",i.objectTypeName),e.addProp("editForm",i.editForm),i.primaryAttribute){let t=i.editForm[i.primaryAttribute];t&&t.reference&&(t=t.text),e.addProp("objectName",t)}e.addProp("label",r.label),e.addProp("showLabel",r.showlabel),e.addProp("canUploadPicture",r.canuploadpicture),e.addProp("canUploadNote",r.canuploadnote),e.addProp("atTeamMember",r.atTeamMember)}}i=d,a="$bindNodeType",n=o.b.CommentComponent,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},9832:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-exposed-checkbox[data-v-dae0a888]{display:inline-flex;align-items:center;margin-left:8px;height:27px}.plat-exposed-checkbox__label[data-v-dae0a888]{margin-left:8px;font-size:13px;white-space:nowrap;color:#363d44}",""]),e.exports=t},"987e":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".fetch-condition-container[data-v-4754a38c]{display:flex;align-items:center}.fetch-condition-container .fetch-select[data-v-4754a38c],.filter-value[data-v-4754a38c]{min-width:220px;max-width:300px;margin-right:8px}.filter-value[data-v-4754a38c]{display:flex}.filter-value[data-v-4754a38c] .el-select,.filter-value[data-v-4754a38c] .fetch-select{width:100%}",""]),e.exports=t},9972:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}createVNode(e,t){this.addChildByPermission(e,t)}}i=l,a="$bindNodeType",n=o.b.hooks,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},9999:function(e,t,r){"use strict";r("1d6a")},"99a6":function(e,t,r){var i=r("ba76");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("131de09a",i,!0,{sourceMap:!1,shadowMode:!1})},"99e9":function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.import-template-form-item-no-label[data-v-308abf7a],.import-template-form-item-no-label[data-v-308abf7a] .rtxpc-form-item__content{margin-top:0!important}.mapping-rules-table[data-v-308abf7a] .rt-table-empty{border-bottom:1px solid #e8ebee}.mapping-rules-table[data-v-308abf7a] .rt-move{color:#788796}.mapping-rules-table[data-v-308abf7a] .rt-table-content .rtxpc-table__row .rt-picklist .rt-icon{margin-right:0!important}.same-all-sheet-disabled-status[data-v-308abf7a]{position:relative}.same-all-sheet-disabled-status[data-v-308abf7a]:after{position:absolute;content:"";left:0;top:0;bottom:0;width:100%;opacity:.5;z-index:10;cursor:not-allowed;background:rgba(0,0,0,.08)}.disable-mapping-rules-tab[data-v-308abf7a]{position:relative}.disable-mapping-rules-tab[data-v-308abf7a]:after{position:absolute;content:"";width:100%;opacity:.5;z-index:10;left:0;top:0;bottom:0;cursor:not-allowed;background:rgba(0,0,0,.08)}.has-horizontal-scroll[data-v-308abf7a]:after{bottom:8px}.mapping-rules-table-cell[data-v-308abf7a]{margin-top:8px;margin-bottom:0}.excelExport-flex-has-tip[data-v-308abf7a]{white-space:nowrap;overflow-x:hidden}.footer-left[data-v-308abf7a]{padding:8px 12px 8px;width:280px;box-sizing:border-box}',""]),e.exports=t},"9ab4":function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",(function(){return a})),r.d(t,"__assign",(function(){return n})),r.d(t,"__rest",(function(){return o})),r.d(t,"__decorate",(function(){return s})),r.d(t,"__param",(function(){return l})),r.d(t,"__metadata",(function(){return d})),r.d(t,"__awaiter",(function(){return c})),r.d(t,"__generator",(function(){return u})),r.d(t,"__createBinding",(function(){return p})),r.d(t,"__exportStar",(function(){return h})),r.d(t,"__values",(function(){return f})),r.d(t,"__read",(function(){return m})),r.d(t,"__spread",(function(){return g})),r.d(t,"__spreadArrays",(function(){return b})),r.d(t,"__await",(function(){return y})),r.d(t,"__asyncGenerator",(function(){return v})),r.d(t,"__asyncDelegator",(function(){return x})),r.d(t,"__asyncValues",(function(){return w})),r.d(t,"__makeTemplateObject",(function(){return _})),r.d(t,"__importStar",(function(){return E})),r.d(t,"__importDefault",(function(){return C})),r.d(t,"__classPrivateFieldGet",(function(){return N})),r.d(t,"__classPrivateFieldSet",(function(){return S}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function a(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,r=1,i=arguments.length;r=0;s--)(a=e[s])&&(o=(n<3?a(o):n>3?a(t,r,o):a(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o}function l(e,t){return function(r,i){t(r,i,e)}}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,i){return new(r||(r=Promise))((function(a,n){function o(e){try{l(i.next(e))}catch(e){n(e)}}function s(e){try{l(i.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((i=i.apply(e,t||[])).next())}))}function u(e,t){var r,i,a,n,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(a=2&n[0]?i.return:n[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[2&n[0],a.value]),n[0]){case 0:case 1:a=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,i=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||6!==n[0]&&2!==n[0])){o=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,a,n=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=a[e](t)).value instanceof y?Promise.resolve(r.value.v).then(l,d):c(n[0][2],r)}catch(e){c(n[0][3],e)}var r}function l(e){s("next",e)}function d(e){s("throw",e)}function c(e,t){e(t),n.shift(),n.length&&s(n[0][0],n[0][1])}}function x(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,a){t[i]=e[i]?function(t){return(r=!r)?{value:y(e[i](t)),done:"return"===i}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,a){(function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)})(i,a,(t=e[r](t)).done,t.value)}))}}}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}function N(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},"9b8e":function(e,t,r){var i=r("24fb"),a=r("ef3e");(t=i(!1)).i(a),t.push([e.i,".rt-sass-grid[data-v-294ccc6a]{margin-top:10px}.sass-grid_header[data-v-294ccc6a]{position:relative;box-sizing:border-box;height:80px;padding:15px;overflow:hidden;background:#fff}.sass-grid_header h2[data-v-294ccc6a]{float:left;margin-top:15px;margin-left:20px;font-size:18px;color:#294060}.grid-icon[data-v-294ccc6a]{float:left;width:50px;height:50px;text-align:center;background:#ff992c;border-radius:2px}.grid-icon .rt-icon[data-v-294ccc6a]{margin-top:6px}.grid-header_btn[data-v-294ccc6a]{float:right;padding:0;margin:18px 0 0 10px}.grid-header_btn i[data-v-294ccc6a]{font-size:10px;font-weight:700}.grid-header_input[data-v-294ccc6a]{float:right;width:20%;margin-top:8.5px;margin-left:15px}.grid-header_input .rt-icon[data-v-294ccc6a]{margin-top:10px;cursor:pointer}.grid-header_toolbar[data-v-294ccc6a]{margin-top:10px}.sass-grid_status[data-v-294ccc6a]{display:flex;overflow:hidden;background:#fff}.saas-query__reset[data-v-294ccc6a],.saas-query__reset[data-v-294ccc6a]:focus,.saas-query__reset[data-v-294ccc6a]:hover{color:#557ab4;background-color:#fff;border-color:#b4bdcf}.rt-sass-grid .el-button--primary[data-v-294ccc6a]{height:30px;border-radius:2px}.saas-grid__moresearch[data-v-294ccc6a]{padding:20px 15px;background:#fff;border-top:1px solid #e8e8e8;border-bottom:none}.saas-grid__moresearch[data-v-294ccc6a] .rt-saas-lookup .rt-icon{margin-top:10px}.saas-grid__moresearch[data-v-294ccc6a] .el-input__icon{line-height:34px!important}.sass-grid__footer[data-v-294ccc6a]{padding:0;margin:0 5px;background-color:#fff}.rt-sass-grid .el-pagination[data-v-294ccc6a]{padding:20px 0!important;text-align:center;background:transparent;border-top:1px solid #f0f0f0}.rt-sass-grid .el-pagination-reset[data-v-294ccc6a]{border-top:none}",""]),e.exports=t},"9bb1":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-r-lookup.plat-r-lookup .el-autocomplete.plat-r-input[data-v-60a0c00c]{width:100%}.is-border-form.el-form .is-error .rt-r-lookup.plat-r-lookup[data-v-60a0c00c] input{outline:none;border-color:#d54d47}.is-border-form.el-form .rtxpc-form-item--mini .rt-r-lookup.plat-r-lookup[data-v-60a0c00c]{height:27px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup[data-v-60a0c00c]{height:35px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .plat-r-icon[data-v-60a0c00c]{cursor:pointer}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .suffix-icon-wrap[data-v-60a0c00c]{display:flex;align-items:center;background:#fff;height:16px!important}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .suffix-icon-clearicon[data-v-60a0c00c]{display:none;cursor:pointer;margin-right:8px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c]{width:100%;height:35px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input{height:35px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input:hover .suffix-icon-clearicon{display:block}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input.el-input--mini,.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input.el-input--mini input{height:27px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] input{padding-left:8px;border-radius:4px;height:35px;cursor:default}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] input:hover{border:1px solid #5182ef}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input__suffix{display:flex;align-items:center;right:8px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .el-autocomplete.rt-r-input.plat-r-input[data-v-60a0c00c] .el-input__suffix .rt-icon{right:0;position:relative;color:#363d44}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue[data-v-60a0c00c]{border-radius:4px;height:35px;box-sizing:border-box;border:1px solid #d6dbe1;position:relative;display:flex;align-items:center}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue[data-v-60a0c00c]:hover{border:1px solid #5182ef}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue:hover .jumpSpan[data-v-60a0c00c]{max-width:calc(100% - 56px)}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue:hover .suffix-icon-wrap .suffix-icon-clearicon[data-v-60a0c00c]{display:block}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue .jumpSpan[data-v-60a0c00c]{display:flex;align-items:center;height:100%;margin-left:8px;max-width:calc(100% - 36px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#2563eb;font-size:13px;background:#fff;cursor:pointer}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue .jumpSpan[data-v-60a0c00c]:hover{text-decoration:underline;color:#5182ef}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue .suffix-icon-wrap[data-v-60a0c00c]{height:35px;display:flex;align-items:center;position:absolute;right:8px}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue .suffix-icon-wrap .rt-icon.lookup[data-v-60a0c00c]{color:#363d44;cursor:pointer;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue .rt-icon.select_icon[data-v-60a0c00c]{margin-left:8px;height:35px;display:flex;justify-content:center;align-items:center}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue.isreadOnly[data-v-60a0c00c]{background:#f0f2f4;border:none;color:#0b0c0e}.is-border-form.el-form .rt-r-lookup.plat-r-lookup .lookupvalue.isreadOnly .jumpSpan[data-v-60a0c00c]{background:none;text-decoration:none}",""]),e.exports=t},"9bbb":function(e,t,r){"use strict";r("0334")},"9bc8":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=o.b.mobilelistitem,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"9be8":function(e,t,r){"use strict";r("2ce1")},"9c55":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".uploadDialog .rt-button+.rt-button[data-v-b7476fe0]{margin-left:8px}.rt-view-wrapper .el-form-item[data-v-b7476fe0] .el-form-item__content,.rt-view-wrapper .rt-form-item-wrapper[data-v-b7476fe0]{margin-top:0}.rt-view-wrapper .el-form-item[data-v-b7476fe0] .rt-label-wrapper{display:none}.is-error .rt-attachment.plat-attachment[data-v-b7476fe0]{border:1px solid #d54d47}.notes-required[data-v-b7476fe0]{display:flex;justify-content:center;align-items:center}.notes-pagination[data-v-b7476fe0] .el-input__inner{padding:0 3px}.plat-notes-default-image[data-v-b7476fe0]{height:140px}",""]),e.exports=t},"9da1":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".flexbox[data-v-1b155497]{box-sizing:border-box}.flexbox span[data-v-1b155497]{margin-right:2px;color:#363d44}.flexbox .bluecode[data-v-1b155497]{color:#2563eb}.flexbox .greencode span[data-v-1b155497]{color:#10a291;margin-right:8px}.flexbox .greencode .img-text[data-v-1b155497]{cursor:pointer}.flexbox .greencode .audilt-img[data-v-1b155497]{height:20px}.timeTop[data-v-1b155497]{margin-bottom:8px}.timeBottom[data-v-1b155497]{padding-right:8px;display:flex;align-items:center}.timeBottom span[data-v-1b155497]{white-space:normal;word-wrap:break-word;max-width:calc(50% - 8px)}.timeBottom .clear-btn[data-v-1b155497]{margin-right:8px;display:inline-grid;height:16px!important}",""]),e.exports=t},"9dda":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf"),d=r("6f75");class c extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(d.a.Card);i.nodeType=this.$nodetype+"card",this.buildVNode(i,t);const a=i.addChildByTag(d.a.timelinenotSubgrid);a.nodeType=this.$nodetype,this.buildTimelineVNode(a,t),this.appendNode(e,i,t)}buildTimelineVNode(e,t){this.buildVNode(e,t);const r=this.props;e.addProp("customRequestUrl",r.customRequestUrl),e.addProp("disabled",!!r.disabled),e.addProp("hiddenDefaultDiagram",r.hiddendefaultdiagram);const i=t.targetComponent;i.objectId&&e.addProp("objectId",i.objectId),r.customRequestUrl&&e.addProp("requestUrl",i.getFunctionByExpression(r.customRequestUrl).call(i))}}i=c,a="$bindNodeType",n=o.b.Timeline,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},"9e30":function(e,t,r){var i=r("6116");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("6461a85d",i,!0,{sourceMap:!1,shadowMode:!1})},"9e9a":function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"fields",[]),o(this,"validateTrigger","change"),o(this,"VueTag",n.a.InputAddress)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;if(!(r.datafield_province&&r.datafield_city&&r.datafield_county&&r.datafieldname))return e.tag="div",e.vtext="省市区组件未绑定字段,请联系管理员",void e.addClass("date-range-deploy");let a=!0;const n=i.$store.state.systemparameter;if(n.is_international&&"false"!==n.is_international||(a=!1),r.datafield_province&&e.addProp("datafield_province",r.datafield_province),r.datafield_county&&e.addProp("datafield_county",r.datafield_county),r.datafield_city&&e.addProp("datafield_city",r.datafield_city),r.datafieldname&&e.addProp("datafieldname",r.datafieldname),r.datafield_country){e.addProp("datafield_country",r.datafield_country);const t=i.editForm[r.datafield_country];a&&t&&t.id&&e.addProp("countryValue",t.id)}e.addProp("mobileLabel",r.mobileLabel),e.addProp("mobileLabelLangkey",r.mobileLabelLangkey),e.addProp("required",r.required),e.addProp("disabled",r.disabled),e.addProp("isMultipleField",!0),e.addProp("valueKey",r.datafieldname),e.addProp("isLocationed",r.isLocationed),2==r.showStyle&&e.addProp("showStyle","flat");const o={};i.editForm&&(this.fields=[e.props.datafield_province,e.props.datafield_city,e.props.datafield_county,e.props.datafieldname],this.fields.forEach(e=>{o[e]=i.editForm[e]})),o&&e.addProp("value",o);const s=e.props.valueKey;e.on.input=(e,t,r)=>{this.emitDataChange(e,i,r),"object"==typeof e&&i.updateMultipleFields(this.fields,e)},e.addEventHandler("customValidata",(e,t)=>{i.customValidata(e,s,t)});const l=i.attributemappingsMasked.filter(e=>e.fieldName==this.props.datafieldname);let d,c=!1;if(l[0]&&l[0].fieldName==this.props.datafieldname&&"lookup"==l[0].from&&(d=l[0].value,Array.isArray(l[0].originValue)?l[0].originValue.length>0&&(c=!0):l[0].originValue instanceof Object?Object.keys(l[0].originValue).length>0&&(c=!0):null!=l[0].originValue&&""!=l[0].originValue&&null!=l[0].originValue&&(c=!0)),this.props.isMask||(c=!1),this.props.isMask||c){e.addProp("isMask",this.props.isMask);const r={...this.props,hideMaskIcon:c,maskFieldIsMapping:d,isInputAddress:!0};this.buildMaskNode(e,t,r)}}extendRules(e,t){const r=t.targetComponent;e.validator=(e,t,i)=>{const a=[];let n=!0;const o=this.fields[3]||"",s=[...this.fields];s.pop();for(const l of s)a.push(!!r.editForm[l]);n=!!r.editForm[o],!n||a.length&&a.some(e=>!e)?i(new Error):i()}}}o(s,"$bindNodeType",i.b.InputAddress)},"9ebd":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".innerbox[data-v-56890e60]{height:100vh;overflow:auto}.innerbox[data-v-56890e60]::-webkit-scrollbar{display:none}",""]),e.exports=t},"9f63":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".querySelector.plat-query-selector[data-v-6bfa16b5] .rt-list-dropdown .rt-list-dropdown-content .rt-list-dropdown-title{line-height:32px;font-weight:550}",""]),e.exports=t},"9f9f":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".fetch-add[data-v-5407540e]{padding:10px 0}",""]),e.exports=t},"9fc9":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-portal-FlowStep .rt-portal-FlowStep-div[data-v-45024875]{padding:0 4px;margin-top:10px;font-size:inherit;line-height:24px;color:#606266;border:1px solid #ddd;border-radius:4px}",""]),e.exports=t},a14b:function(e,t,r){"use strict";r("2474")},a166:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.notes-pagination[data-v-b7476fe0]{margin:16px 0}[data-v-b7476fe0] .uploadDialog .el-upload-list__item-name [class^=el-icon]{height:unset}[data-v-b7476fe0] .uploadDialog .el-upload-list__item-name .rt-icon{cursor:default}[data-v-b7476fe0] .uploadDialog .el-dialog__body{padding:0 24px 8px}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .rtxpc-upload-dragger{flex:1;height:240px!important;cursor:default}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .el-upload.el-upload--text{display:flex;width:100%;margin-top:8px}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .el-upload.el-upload--text .el-upload-dragger{flex:1;width:100%;background:#fff}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .platform-upload-text{color:#0b0c0e}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .platform-upload-text .platform-upload-text_upload{color:#2563eb;display:inline-block}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .platform-upload-text .platform-upload-text_upload:hover{color:#5182ef;cursor:pointer}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .platform-upload-text .platform-upload-text_upload:active{color:#1d58d8}[data-v-b7476fe0] .uploadDialog .el-dialog__body .version-attachment .platform-upload-placeholder{margin-top:8px;color:#788796}.plat-attachment[data-v-b7476fe0] .upload-filelist .header,.plat-attachment[data-v-b7476fe0] .upload-slide-filelist .section-header{display:none}.plat-attachment[data-v-b7476fe0] .upload-slide-filelist .file-list{padding-bottom:0}.plat-attachment .img_wrap[data-v-b7476fe0]{display:flex;align-items:center;justify-content:center;width:50px;height:50px}.plat-attachment .isPrintItem[data-v-b7476fe0]{display:flex;flex-direction:column;align-items:center;float:left;margin-right:10px;margin-bottom:10px}.plat-attachment .isPrintItem .image-item[data-v-b7476fe0]{width:100%}.plat-attachment .isPrintItem .image-item .image-tip[data-v-b7476fe0]{display:inline-block;max-width:100%;overflow:hidden;line-height:40px;text-overflow:ellipsis;white-space:nowrap}.plat-attachment .isPrintItem div[data-v-b7476fe0]{text-align:center}.plat-attachment .isPrintItem div:hover span[data-v-b7476fe0]{color:#389fff;cursor:pointer}.plat-attachment .isPrint[data-v-b7476fe0]:after{display:block;clear:both;content:""}.plat-attachment .el-upload-list__item[data-v-b7476fe0]{height:30px}.plat-attachment .el-upload[data-v-b7476fe0]{display:inline}.plat-attachment .platform-upload-dragger[data-v-b7476fe0]{width:100%}.plat-attachment .el-table__header-wrapper thead.has-gutter th[data-v-b7476fe0]{padding:12px 10px;background-color:#f8fafb}.plat-attachment .el-table__header-wrapper thead.has-gutter div[data-v-b7476fe0]{color:#839dbe;background-color:#f8fafb}.plat-attachment tbody .el-table__row td[data-v-b7476fe0]{padding:12px 10px;color:#839dbe}.plat-attachment .el-button[data-v-b7476fe0]{padding:7px 12px;border-color:#ced5ef;border-radius:0}.plat-attachment .el-table[data-v-b7476fe0]{border:1px solid #e8e8e8}.plat-attachment .rt-attach-icon .rt-icon[data-v-b7476fe0]{margin-top:0}.plat-attachment .rt-attach-icon .rt-icon svg use[data-v-b7476fe0]{fill:#6388c2}.plat-attachment .upload-filelist[data-v-b7476fe0]{box-shadow:none}.plat-attachment .attach-ul[data-v-b7476fe0]{padding-top:15px;padding-bottom:15px;background:#fff}.plat-attachment .attach-ul li[data-v-b7476fe0]{cursor:pointer}.plat-attachment .attach-ul li[data-v-b7476fe0]:hover{background:#f5f7fa}.plat-attachment .attach-ul li a[data-v-b7476fe0]{display:block;width:100%;overflow:hidden;font-size:14px;color:#143e81;text-decoration:underline;text-overflow:ellipsis;white-space:nowrap}.plat-attachment .attach-icon[data-v-b7476fe0]{box-sizing:border-box;width:22px;height:22px;padding-top:3px;text-align:center;background:#f5f7fa;border:1px solid #f5f7fa;border-radius:100%}.plat-attachment .attach-icon[data-v-b7476fe0]:hover{background:red;border-color:red}.plat-attachment .attach-icon:hover svg[data-v-b7476fe0]{fill:#fff}.plat-attachment .attach-icon svg[data-v-b7476fe0]{fill:#dbe0f3}.plat-attachment .attach-delete[data-v-b7476fe0]{margin-top:5px}.plat-attachment .attach-delete span[data-v-b7476fe0]{float:right;margin-right:3px}[data-v-b7476fe0].imgPreview.el-dialog{width:100%;height:100%;margin-bottom:0;background:#000}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header{padding:0}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn{width:48px;height:48px;background:hsla(0,0%,100%,.2);border-radius:50%}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn:hover .el-icon-close{opacity:1}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close,[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close:active{color:#fff;opacity:.5}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close:active:before,[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__header .el-dialog__headerbtn .el-icon-close:before{font-size:24px;content:""}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__body{display:flex;align-items:center;justify-content:center;height:100%;padding:0;overflow:hidden}[data-v-b7476fe0].imgPreview.el-dialog .el-dialog__body .imgPreview-content{width:85%;height:80%;-o-object-fit:contain;object-fit:contain}',""]),e.exports=t},a203:function(e,t,r){var i=r("ce0c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("517f0b1c",i,!0,{sourceMap:!1,shadowMode:!1})},a289:function(e,t,r){var i=r("e7f4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0c888c59",i,!0,{sourceMap:!1,shadowMode:!1})},a298:function(e,t,r){var i=r("4ef3");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("ca7a660e",i,!0,{sourceMap:!1,shadowMode:!1})},a2d3:function(e,t,r){var i=r("ff75");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("fbc9fe74",i,!0,{sourceMap:!1,shadowMode:!1})},a313:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-saas-image-cell.is-center[data-v-3089453c]{display:flex;justify-content:center}.rt-saas-image-cell.is-right[data-v-3089453c]{display:flex;justify-content:flex-end}.rt-saas-image-cell .avatar[data-v-3089453c]{display:block;width:50px;height:50px}",""]),e.exports=t},a33f:function(e,t,r){"use strict";r("8d2b")},a343:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".el-select.plat-picklist[data-v-2fec467e] .el-input .el-input__suffix .el-select__caret{color:#a9c2e8}.is-border-form.el-form .is-error .el-select.plat-picklist[data-v-2fec467e] input{border-color:#f65555}.plat-picklist-checkbox[data-v-2fec467e]{width:100%}.plat-picklist-checkbox .rt-checkbox-group[data-v-2fec467e]{display:flex;flex-wrap:wrap;min-height:auto;height:100%}.plat-picklist-checkbox .rt-checkbox-group .no-border[data-v-2fec467e]{border:0}.plat-picklist-checkbox .checkbox-no-data[data-v-2fec467e]{color:#a9c2e8;font-size:14px;margin:8px 0}",""]),e.exports=t},a34c:function(e,t,r){"use strict";r("594d")},a35d:function(e,t,r){var i=r("6302");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("32215f10",i,!0,{sourceMap:!1,shadowMode:!1})},a3f4:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".headerTab .headerTabConfig[data-v-02d41a44]{margin-left:8px}.headerTab .headerTabConfig.header-tab-chart[data-v-02d41a44]{width:18px;height:18px;margin:0 4px 0 16px}.headerTab .headerTabConfig.header-tab-chart[data-v-02d41a44]:hover{opacity:.75}.plat-header-btns[data-v-02d41a44]{display:flex}.plat-header-btns .new_active[data-v-02d41a44]{height:32px;box-sizing:border-box;display:flex;align-items:center;font-size:14px;color:#363d44;white-space:nowrap}.plat-header-btns .new_active.new_active[data-v-02d41a44]:first-child{padding:8px}.plat-header-btns .new_active.new_active[data-v-02d41a44]:last-child{padding:8px 0}.plat-header-btns .new_active .el-badge__content[data-v-02d41a44]{top:-8px;right:-24px;background:#e9effd;color:#2563eb}.plat-header-tab[data-v-02d41a44]{display:flex;align-items:center;position:relative;background:#fff}.plat-header-tab.isLoading[data-v-02d41a44] .rt-tabs__item.el-tabs__item,.plat-header-tab.isLoading[data-v-02d41a44] .rt-tabs__item.el-tabs__item .rt-button{cursor:not-allowed}.plat-header-tab .rt-tabs__item.el-tabs__item .plat-header-tab-content[data-v-02d41a44]{display:flex;align-items:center}.plat-header-tab .rt-tabs__item.el-tabs__item .plat-header-tab-content .rt-icon[data-v-02d41a44]{margin-right:4px}.plat-header-tab .rt-tabs__item.el-tabs__item#tab-custom.is-active .rt-list-dropdown.plat-header-listDropdown-more[data-v-02d41a44] .rt-list-dropdown-title,.plat-header-tab .rt-tabs__item.el-tabs__item#tab-custom.is-active .rt-list-dropdown.plat-header-popover-body .rt-list-dropdown-title[data-v-02d41a44],.plat-header-tab .rt-tabs__item.el-tabs__item#tab-more.is-active .rt-list-dropdown.plat-header-listDropdown-more[data-v-02d41a44] .rt-list-dropdown-title,.plat-header-tab .rt-tabs__item.el-tabs__item#tab-more.is-active .rt-list-dropdown.plat-header-popover-body .rt-list-dropdown-title[data-v-02d41a44]{color:#2563eb}.plat-header-tab .tag-count[data-v-02d41a44]{background:#e9effd;margin:0 4px 0 8px}.plat-header-tab .plat-header-popover[data-v-02d41a44] .rt-button-text{color:#363d44;font-size:14px;font-weight:400}.plat-header-tab .plat-header-popover[data-v-02d41a44] .rt-icon{color:#363d44}.plat-header-tab .showMoreSearchDiv[data-v-02d41a44]{padding-right:12px;display:flex;flex:1;flex-direction:row;justify-content:flex-end;align-items:center;color:#2563eb;font-size:14px;cursor:pointer}.plat-header-tab[data-v-02d41a44] .rt-tabs .rt-tabs__nav-wrap:after{background:unset}.plat-header-tab[data-v-02d41a44] .rt-tabs .rt-tabs__header.el-tabs__header.is-top .el-badge.rt-badge .el-badge__content{background:#e9effd;color:#2563eb;top:0}.plat-header-tab[data-v-02d41a44] .rt-tabs .rt-tabs__nav{display:flex;align-items:center}.headerTabRef[data-v-02d41a44]{overflow:hidden}.headerTabRef[data-v-02d41a44] #tab-custom.is-active .plat-header-popover-body .rt-list-dropdown-content .rt-icon,.headerTabRef[data-v-02d41a44] #tab-custom.is-active .plat-header-popover-body .rt-list-dropdown-content .rt-list-dropdown-title{color:#0073e6}.headerTabRef[data-v-02d41a44] .rt-list-dropdown-title{max-width:unset}",""]),e.exports=t},a47a:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".timeline.plat-timeline .rc-section[data-v-6097c2de]{padding:8px 24px}.timeline.plat-timeline .rt-timeline-item[data-v-6097c2de]:last-child{padding-bottom:0}",""]),e.exports=t},a47c:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return u}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75"),s=r("18fc"),l=r("7979"),d=r("e926");function c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class u extends n.a{constructor(e){super(e),c(this,"VueTag",o.a.GridListHeader),c(this,"VueNewTag",o.a.GridListNewHeader)}createVNode(e,t){const r=t.targetComponent,n=this.props,s=e.addChildByTag(this.VueTag);if(s.nodeType=this.$nodetype,s.addProp("shadow",!1),this.buildVNode(s,t),s.addKey("listheader"),!r.paramHideHeaderIcon){const e=s.addChildByTag(o.a.HeaderIcon);e.slot="icon",e.nodeType=i.b.HeaderIcon,e.addProp("entityid",n.entityid),this.getHeaderIconImgsrc(e,t)}let d;r.isSubgrid||("lookup"!=r.pageSource&&"userQueryDialog"!==r.pageSource?(s.addProp("entityName",r.objectTypeName),s.addProp("entityDisplayName",r.EntityDisplayName),s.addProp("category",r.realCategory),s.tag=this.VueNewTag,s.addClass("rt-plat-list-header-wrapper"),d=s.addChildByTag("headerTab"),d.nodeType=i.b.Queryselector,d.addProp("hideCustomBtn",!!r.queryAttributes.requestApi),d.addProp("isShowChart",r.allSchema.isShowChart),d.addProp("filterCount",this.getFilterCount(r))):(d=s.addChildByTag("querySelector"),d.nodeType=i.b.Queryselector),d.addProp("dataTotalCount",r.dataTotalCount),d.addProp("dataLoaded",r.dataLoaded),this.extendQuerySelector(d,t));const c=this.children.find(e=>e.$nodetype==i.b.toolbar);c&&!r.isDialogMode?c.createVNode(s,t,"btn"):c&&(c.props.isDialogMode=!0);const u=s.addChildByTag(o.a.GridSearch);if(u.nodeType="rtsearch",u.addProp("type","dark"),u.slot="search",u.addProp("placeholder",r.searchPlaceholder),s.addProp("placeholder",r.searchPlaceholder),this.extendHeaderSearch(u,t),this.children.filter(e=>e.$nodetype!=i.b.toolbar).forEach(a=>{a.$nodetype===i.b.gridconditions&&r.pageType==i.e.PCSubGrid||a.createVNode(e,t)}),t.isListExposedConditions&&!["lookup","userQueryDialog"].includes(r.pageSource)){var p;const e=s.addChildByTag("div");e.addClass("grid-filter-condition");const n=e.addChildByTag(o.a.Row);n.addProp("gutter",24),n.addStyle("padding-bottom","12px"),n.addStyle("padding-left","12px");const d=n.addChildByTag(o.a.Form);if(d.nodeType=i.b.Form,d.addProp("size","mini"),d.addProp("label-position","left"),d.addClass("grid-form-filter-condition"),this.extraForm(d,t),t.isHeaderConditions=!0,new l.default({}).addChildByPermission(d,t),e.addStyle("padding","8px 16px"),"true"!==(""+(null===(p=r.$store.state.systemparameter)||void 0===p?void 0:p.IsDataNotLarge)).toLocaleLowerCase()){const e=new a.e("div");e.addClass("grid-filter-button-wrapper");const n=e.addChildByTag(o.a.Button);n.nodeType=i.b.Button,n.vtext=t.targetComponent.$_t("BUTTON_FILTER","筛选"),n.addProp("type","primary"),n.addProp("size","small"),n.on.click=r._filetrprimary,d.addChild(e)}}}extraForm(e,t){const r=t.targetComponent,i={...r.editForm};r.filterFormList.forEach(e=>{i[e.key]=e.val}),e.setAttr("model",i),e.ref="gridConditionForm",e.addProp("border",!0),e.addProp("labelWidth","100%")}handlerSubgrid(e,t,r){const a=e.addChildByTag("p");a.addClass("rt-subgrid-header-title"),e.addClass("rt-subgrid-header-icon"),a.nodeType=i.b.Queryselector,a.slot="icon",a.vtext=r.EntityDisplayName,t.addProp("iconSize",20)}extendQuerySelector(e,t){const r=t.targetComponent;e.props.queries=r.queries,e.props.queryId=r.currentQueryId,e.props.queryLogicalName=r.queryLogicalName,e.props.routeQueryId=r.queryId,e.props.entityDisplayName=r.EntityDisplayName,e.on.queryChange=r.queryChange,e.on.showUserDefinedQuery=r.__userqueryButtonHandler,e.on.showUserViewDesigner=r.showUserViewDesigner,e.on.showEchartHandler=r.showEchartHandler,"lookup"!=r.pageSource&&"userQueryDialog"!==r.pageSource&&(e.props.entityName=r.objectTypeName,e.props.category=r.category,e.props.isPreview=r.isPreview,e.props.editForm=r.editForm,e.props.filterFormList=r.filterFormList,e.props.disableFetch=r.disableFetch,e.props.showBadage=!r.newTabObject,e.props.showSaveTableWidthIcon=r.showSaveTableWidthIcon,e.props.currentViewType=r.currentViewType,e.props.isGoBack=r.isGoBack,e.props.searchString=r.searchString,e.props.isSingle=r.isSingle,e.props.disablePersonalView=r.disablePersonalView,e.props.extendConditionsFromEchart=r.__extendConditionsFromEchart,e.ref="headerTab",e.on.toReRenderDrawer=r.filetrreset,e.on.toShowFilterDrawer=r.toShowFilterDrawer,e.on.toSaveTableWidth=r.toSaveTableWidthHandler,e.on.toCancelWidth=r.toCancelWidthHandler,e.on.setCurrnetNum=r.setCurrnetNumHandler,e.on.loadedAllBadge=r.loadedAllBadgeHandler),r.enableUserQuery&&!r.queryAttributes.requestApi&&r.currentViewType&&!r.currentViewType.IsUserQuery&&(e.addProp("enableUserQuery",r.enableUserQuery),e.addProp("userQueryProps",{celltype:"userQuery",visible:!0,currentQueryId:r.currentQueryId,version:r.version,queryLogicalName:r.queryLogicalName,objectTypeName:r.objectTypeName,LayoutObject:r.LayoutObject,currentViewType:r.currentViewType,hideCustomBtn:!!r.queryAttributes.requestApi,refreshtable:r._refreshTableAndConditions}))}extendHeaderSearch(e,t){const r=t.targetComponent;e.on["on-search"]=r.quickfind,e.props.value=r.searchString,e.props.clearable=!0,this.computedShowSearch(e,t)>0?e.props.more=!0:e.props.more=!1;const i=this;"lookup"!=r.pageSource&&"userQueryDialog"!==r.pageSource&&(e.props.more=!1),"lookup"==r.pageSource&&(e.props.moreVisible=!0),e.on.blur=function(e){r.searchString!==e.target.value&&i.miniDataSearch(r,e.target.value),r.searchString=e.target.value},e.on.clear=function(e){r.searchString="",i.miniDataSearch(r,"")}}miniDataSearch(e,t){var r;"true"===(""+(null===(r=e.$store.state.systemparameter)||void 0===r?void 0:r.IsDataNotLarge)).toLocaleLowerCase()&&e.quickfind(t)}computedShowSearch(e,t){const r=t.targetComponent;if(r.pageSchema&&r.pageSchema.grid&&r.pageSchema.grid.children){const e=r.pageSchema.grid.children.filter(e=>"gridheader"==e.$nodetype);let t,i,a;e&&e[0]&&e[0].children&&(t=e[0].children.filter(e=>"gridconditions"==e.$nodetype)),t&&t[0]&&t[0].children&&(i=t[0].children.filter(e=>"row"==e.$nodetype)),i&&i[0]&&i[0].children&&(a=i[0].children.filter(e=>"cell"==e.$nodetype));let n=0;return a&&a.forEach(e=>{e.children.length>0&&n++}),n}return 0}getFilterCount(e){const t=e.queryAttributes.requestApi;let r=0;if(t)Object.keys(e.editForm).forEach(t=>{this.isEqual(e.editForm[t],e.editFormDefault[t])||r++});else{const t=s.a.array2map(e.filterFormList,"key"),i=s.a.array2map(e.filterFormListDefault,"key");t.forEach((e,t)=>{const a=i.get(t);e.isAdded?r++:a&&d.d.includes(a.op)?a.op!==e.op&&r++:a&&this.isEqual(e.val,a.val)||r++})}return r}isEqual(e,t){return!(!this.isEmpty(e)||!this.isEmpty(t))||(Array.isArray(e)&&Array.isArray(t)?JSON.stringify(e.toSorted())===JSON.stringify(t.toSorted()):e instanceof Object&&t instanceof Object?e.id===t.id:e==t)}isEmpty(e){return null==e||""===e||!(!Array.isArray(e)||e.length)}}c(u,"$bindNodeType",i.b.gridheader)},a49d:function(e,t,r){var i;!function(a,n,o){var s,l=o.pow(256,6),d=o.pow(2,52),c=2*d;function u(e,t,r){var i=[],u=f(function e(t,r){var i,a=[],n=typeof t;if(r&&"object"==n)for(i in t)try{a.push(e(t[i],r-1))}catch(e){}return a.length?a:"string"==n?t:t+"\0"}((t=1==t?{entropy:!0}:t||{}).entropy?[e,m(n)]:null==e?function(){try{var e;return s&&(e=s.randomBytes)?e=e(256):(e=new Uint8Array(256),(a.crypto||a.msCrypto).getRandomValues(e)),m(e)}catch(e){var t=a.navigator,r=t&&t.plugins;return[+new Date,a,r,a.screen,m(n)]}}():e,3),i),g=new p(i),b=function(){for(var e=g.g(6),t=l,r=0;e=c;)e/=2,t/=2,r>>>=1;return(e+r)/t};return b.int32=function(){return 0|g.g(4)},b.quick=function(){return g.g(4)/4294967296},b.double=b,f(m(g.S),n),(t.pass||r||function(e,t,r,i){return i&&(i.S&&h(i,g),e.state=function(){return h(g,{})}),r?(o.random=e,t):e})(b,u,"global"in t?t.global:this==o,t.state)}function p(e){var t,r=e.length,i=this,a=0,n=i.i=i.j=0,o=i.S=[];for(r||(e=[r++]);a<256;)o[a]=a++;for(a=0;a<256;a++)o[a]=o[n=255&n+e[a%r]+(t=o[a])],o[n]=t;(i.g=function(e){for(var t,r=0,a=i.i,n=i.j,o=i.S;e--;)t=o[a=255&a+1],r=256*r+o[255&(o[a]=o[n=255&n+t])+(o[n]=t)];return i.i=a,i.j=n,r})(256)}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){for(var r,i=e+"",a=0;a>>2;return t.x=t.y,t.y=t.z,t.z=t.w,t.w=t.v,(t.d=t.d+362437|0)+(t.v=t.v^t.v<<4^e^e<<1)|0},t.x=0,t.y=0,t.z=0,t.w=0,t.v=0,e===(0|e)?t.x=e:r+=e;for(var i=0;i>>4),t.next()}function s(e,t){return t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t.v=e.v,t.d=e.d,t}function l(e,t){var r=new o(e),i=t&&t.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=r.next,a.quick=a,i&&("object"==typeof i&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.xorwow=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},a4d2:function(e,t,r){(t=r("24fb")(!1)).push([e.i,"[data-v-38911354] .commonDialog.plat-sass-dialog .dialog-header{padding:16px 20px 13px;overflow:hidden;border-bottom:1px solid #e8ecfc}[data-v-38911354] .commonDialog.plat-sass-dialog .dialog-header .dialog-title{float:left;font-size:18px;color:#143e81;margin-top:6px}[data-v-38911354] .commonDialog.plat-sass-dialog .dialog-header .dialog-icon{float:right;width:30px;height:30px;border-radius:100%;background:#f5f7fa;text-align:center;line-height:0;color:#a9c2e8;font-size:18px;cursor:pointer}[data-v-38911354] .commonDialog.plat-sass-dialog .dialog-header .dialog-icon i{line-height:30px}[data-v-38911354] .commonDialog.plat-sass-dialog .dialog-content{height:calc(100% - 260px)}[data-v-38911354] .commonDialog.plat-sass-dialog .content-slot{padding:20px 20px 0;box-sizing:border-box}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer{padding:15px 20px 18px;text-align:right;border-top:1px solid #e8ecfc}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer .footer-btn{padding:7px 18px;border-radius:2px;font-size:14px;color:#557ab4;border-color:#ced5ef}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer .footer-btn:hover{background:#fff}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer .footer-primay{background:#1890ff;color:#fff;border-color:#1890ff}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer .footer-primay.is-disabled{opacity:.7}[data-v-38911354] .commonDialog.plat-sass-dialog .commonDialog-footer .footer-primay:hover{background:#1890ff}[data-v-38911354] .commonDialog.plat-sass-dialog .el-dialog__footer,[data-v-38911354] .commonDialog.plat-sass-dialog .el-dialog__header{display:none}[data-v-38911354] .commonDialog.plat-sass-dialog .el-dialog__body{padding:0}[data-v-38911354] .commonDialog.plat-sass-dialog .el-scrollbar__wrap,[data-v-38911354] .commonDialog.plat-sass-dialog .scrollbar-wrapper{overflow-x:hidden}[data-v-38911354] .commonDialog.plat-sass-dialog .rtdetail .el-input.is-disabled .el-input__inner{color:#143e81}[data-v-38911354] .commonDialog.plat-sass-dialog .rtdetail .el-form-item__label{color:#6388c2;line-height:20px}[data-v-38911354] .commonDialog.plat-sass-dialog .rt-common-icon{margin-top:12px}",""]),e.exports=t},a551:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf"),d=r("6f75");class c extends l.a{constructor(e){super(e)}createVNode(e,t){const r=t.targetComponent,i=this.props,a=new s.e(d.a.APaasCard);this.props.subContent&&a.addClass("apaas-sub-content"),a.nodeType=o.b.section;const n=i.langkey?r.$_t(i.langkey,i.label):i.label;let l=!0,c=i.hidebar;rt.isNullOrWhiteSpace(n)&&(c=!0),c&&(l=!1);let u=i.isExpand;(c||rt.isNull(i.isExpand)||!1===i.isOpenCollapse&&i.publishVersion<630.07)&&(u=!0),a.addProp("title",n),a.addProp("icon","plat-icon-orderform-filled"),a.addProp("hidebar",c),a.addProp("isOpenCollapse",l),a.addProp("isExpand",u),this.appendNode(e,a,t),this.addChildByPermission(a,t)}addChildByPermission(e,t,r){const i=e.addChildByTag(d.a.formwrapper);this.buildVNode(i,t);const a=this.children.filter(a=>{if(a.props.availableOnPhone==o.a.MOBILE)return!1;if(!this.calcHidden(a,t)){if(a.extendParentInfo(this.parentInfo),a.$nodetype===o.b.toolbar)return a.children&&a.children.length&&a.createVNode(e,t,"btn"),!1;if(a.$nodetype===o.b.row){if(e.data.props&&e.data.props.readonly&&(a.parentInfo.readonly=e.data.props.readonly),a.createVNode(i,t),!a.children.filter(e=>!!(e&&e.children&&e.children.filter(e=>!this.calcHidden(e,t)).length)).length)return!1}else r?a.createVNode(e,t,r):a.createVNode(e,t);return!0}});t.PageStatus==o.d.print||a.length||e.addProp("isShowNoData",!0)}}i=c,a="$bindNodeType",n=o.b.section,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},a581:function(e,t,r){"use strict";r("7579")},a582:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.hideButtonGroup[data-v-03a31d6f],.nocount[data-v-03a31d6f] .el-pagination__total{display:none}.estimatecount[data-v-03a31d6f] .el-pagination:before{display:table;height:32px;margin-right:0;font-size:14px;line-height:32px;color:#6388c2;content:"大约"}.rt-header[data-v-03a31d6f]{margin-bottom:0}[data-v-03a31d6f] .plat-condition-icon-delete{margin-left:8px}',""]),e.exports=t},a589:function(e,t,r){var i=r("8e37");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4e4d933d",i,!0,{sourceMap:!1,shadowMode:!1})},a58b:function(e,t,r){"use strict";r("aefe")},a5b1:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".fetch-number[data-v-e2926578] .el-input-number__decrease,.fetch-number[data-v-e2926578] .el-input-number__increase{width:32px;height:30px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}",""]),e.exports=t},a5ca:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".WordTemplate .wordTemplateCard .wordTemplateSection[data-v-ade63fba]{padding:0}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-card-form[data-v-ade63fba]{margin:16px 24px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-card-form .excelExport-card-form-div[data-v-ade63fba]{display:flex;align-items:center}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-card-form .excelExport-card-form-div .el-badge[data-v-ade63fba]{margin-right:4px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-card-form .excelExport-card-form-div .excelExport-card-form-span[data-v-ade63fba]{color:#0b0c0e;font-size:16px;font-weight:550}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-card-form .el-form-item[data-v-ade63fba]{margin-left:18px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div[data-v-ade63fba]{margin:16px 24px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-form-div-second[data-v-ade63fba]{display:flex;align-items:center}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-form-div-second .el-badge[data-v-ade63fba]{margin-right:4px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-form-div-second .excelExport-card-form-span[data-v-ade63fba]{color:#0b0c0e;font-size:16px;font-weight:550}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .el-form-item[data-v-ade63fba]{margin-left:18px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div[data-v-ade63fba]{display:flex}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first[data-v-ade63fba]{outline:1px solid #d6dbe1;padding:16px 16px 16px 12px;width:30%;position:relative;overflow:hidden}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-p[data-v-ade63fba]{color:#0b0c0e;font-size:14px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-span[data-v-ade63fba]{color:#4c5966;font-size:12px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-triangle[data-v-ade63fba]{width:0;height:0;border-bottom:24px solid #2563eb;border-left:24px solid transparent;position:absolute;bottom:-1px;right:-1px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first .excelExport-button-triangle .rt-icon[data-v-ade63fba]{position:absolute;right:0;bottom:-24px;color:#fff}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first .triangleFalse[data-v-ade63fba]{display:none}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first[data-v-ade63fba]:not(:last-child){margin-right:24px}.WordTemplate .wordTemplateCard .wordTemplateSection .excelExport-form-div .excelExport-button-div .excelExport-button-first.checked[data-v-ade63fba]{outline:1px solid #2563eb}",""]),e.exports=t},a605:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.plat-flowList-dialog a[data-v-334861e8]{text-decoration:none}.plat-flowList-dialog ul li[data-v-334861e8]{list-style:none}.plat-flowList-dialog #approveState[data-v-334861e8]{overflow-x:auto;overflow-y:hidden;padding:25px 35px 25px 0;border-bottom:1px solid #ccc;display:-webkit-box;white-space:nowrap}.plat-flowList-dialog #approveState .nodelist[data-v-334861e8]{min-height:100px;display:-webkit-box}.plat-flowList-dialog #approveState .node[data-v-334861e8]{min-height:50px}.plat-flowList-dialog #approveState .node ul[data-v-334861e8]{z-index:1;width:130px;text-align:center}.plat-flowList-dialog #approveState .node .node-icon[data-v-334861e8]{display:block;width:50px;height:50px;margin-left:40px}.plat-flowList-dialog #approveState .icon-submit[data-v-334861e8]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFDQjg2MzM1NDc3NjExRTdBRUQ4QjVFQTJCNENCN0U1IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFDQjg2MzM2NDc3NjExRTdBRUQ4QjVFQTJCNENCN0U1Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUNCODYzMzM0Nzc2MTFFN0FFRDhCNUVBMkI0Q0I3RTUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUNCODYzMzQ0Nzc2MTFFN0FFRDhCNUVBMkI0Q0I3RTUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/dl4rAAAFpElEQVR42tyae0zbVRTHv5QWeTMwQ4QUzBjjERTCYwoOkI0BiWy6ZtFNsInoeIQ/UISEaIAJf6AGFcKyhw6SwYhsBicTx5gZOKJMAXWAk0IhsFULAtvCo7gBDu+vXFiltPz6WGk9ycmv+T3uPZ/+7rn3nHN/ZtCTLP7wtQ85RBMNIbqNqBdRW6I29BYZ0RmiYqL9RDuJtpg9u0ekj/7NdDTelxyERBOJ8rVsRkK0hmgVgeo1KAgBCCeHfKJx0K80ES0kQG0PFYQAMP96GdF9eLhyjmgmAZLoHYRAvEEhrGEYmaUwJ/UCQgAYwz+lfrARwvhPCgGa1RqEQDiSQwPRcGysMD6TQGDuaAxCIVqJ+sM45DeikapgOGqGU4MRQYDa0kBtYwdCfSIcxifh1Lb1QejslAjjlURqo2ofoeuEiM0U2z46hcaOLkzJZBpZ4eK4CZm7QmHBNdd1avZRXGe4q25gtU40DY6i/MxXSE9Ph4uLC+ve+/r6UFpaCtHwTXwsfAEOVo9oC2JNbRUogdCwg9WKfeqbb1FQUIDQ0FCNLQgMDERAQABeK69GeeoBuDnYaguzj7F5OZxR9JF8ti1Mz8jg7e2t9bjIyMhAklCI5E8qcX3kli5DLP8/zk6jWI0CQDMznQJnCAQCFBw+jDePVeOKWKJtM3HU9pU3IjTEdMPhcLCwsPBgLg0PR/mRI/ig9jzOdvyubbNCRRCDTLeenp4YHh7G4ODgyjkfHx9UVFbii+87UHrpKhYXFzWejuXOTjM7viFA7O3tkZubi7S0NPj7+8PBwWHlmru7O043NGF2bh7vJERq0iyfYeDS9FRn6e/vx/T0tPoe+XzExsYiLCwMYrFY6d+PiIjA2drPtek+mktzbJ2lvr4eo6Oj6nuLjkZCQgLs7OwQFBSkdJ05r6WEcGmhQGfJycnZyLBlG4dWO0xdvDi0ZGPqYstRqDuZsthw9dVSdnY2pFKpRs+4urqipKREL/0zIDJ9vJW8vDzINAzpbWz0NhhkDMiMPkCYxU1xgTOwzDA+IjaWge7s7IwXE57X5lEx80aYgvKOjQTo6elBY2MjBgYGsLgwj4F2C8SHPImgrU+wDiwYEKYqnqyrMa2trZicnGQdBcfExMiPxcXFEPV2Q7jfDwdj3WDOWUTv9SkcPX8JTtYOKHxVAEsL3npNdjIgLfr4V5modnx8nNW9PB4PUVFR8rT3/twIqksCYG7+IL9xdXbCzue2o+z4IN49VYePDh1Yr8kWLrM/QaJHia4RsFCoWUojEolw7ddO1JYFrUAcr+lF+7VxVHwYCSZvy0zzRHLmT7jaO4Aw362qmpIwDMv5SI2h/aK5uRl743zB5S6Z0PidBBcuS3B78h7eP9oFJjBmYATxW9DcpXbbpEYxsaoyNMjY2Bj4jy9VUebm/kHTlT+RkuSDHcGP4e69BfQOLFVG3VwtMT6pNj2oWgGhO0VNbI2wsrLE0NCQTiCOjo74a2Je/tvCwhylBc/A1ponrwW8lxUMPy9H+bWJiTlsslFZoWpa3uVSDFEK2RYg9u+KQlFREbKysuDh4aFdAhESghPHyvBy/FNQV8douHwTe0O2q7pcuFIMUTxLnP5LtrWtC2IpGn/8Gbdu39EKJD5mJ37p6oavJw+pBzevec+ZOikutkhR8dbr4CjTniNvQ6AKhHXJVC9xxd938fbJWpIZciB8aQv8/WzkFvX3z6Km7gZu/DGD0tRX4GSnlGkolUyVMGmB+DNDOf19Mj1d7CQre2c3BkfGlgoRmx9FbLA/9jwdCJ75mjXiQ6u35NYcnQTmNIy3Il9DIJKUogUVN6dgabvL2KSN2qYk/++tN7q2MA9EGsmbaVMHoRZEAWb3RoQwq0KQ3eog1A4tFbOZ6X4wsMY6Y9qfcKwCMu2PatYAMu3PnFRAbeiHZ/8KMACuoelvt7NT4QAAAABJRU5ErkJggg==")}.plat-flowList-dialog #approveState .icon-approving[data-v-334861e8]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFCMjU5RjUxNDc3NjExRTc5QTZDREJFRkJGOTE1QTIyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFCMjU5RjUyNDc3NjExRTc5QTZDREJFRkJGOTE1QTIyIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUIyNTlGNEY0Nzc2MTFFNzlBNkNEQkVGQkY5MTVBMjIiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUIyNTlGNTA0Nzc2MTFFNzlBNkNEQkVGQkY5MTVBMjIiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7GYd0WAAADDklEQVR42tyav4saURDHxzUqxkMIiMHCNHLnXUhpZeDgiiNNmtQGq3Ct/4GF/4FtSCWxtrGxEgKxsgy5U7HJFiYiBCQqKmpm9uaFjbe7t+t5us8vDLvI87357LzZ92s9sCU1m81TvFygpdBO0I7RjtBCXGSE9getg9amv6DVU6nUzTba9zzQ+TO8ZNEyaPENq1HRymglhLreKQgCpPGSR3sD21UNrYBAjUcFQQB66kW0d/C4qqDlEEjdOghCfGCIp7AbjRnm01ZAEIAc/8h5sA9R/lwh0HhjEIR4hpcqWhr2K8qZtwjz2zEIQ3xBewXu0De0czMYxaI7VV0EAexLlX2zB8I5kQb3Kc2+3Q/Cb6cMuFcZ9tE8R3icuNnhK/Yhr+ZT/TizHpGiBBDAPhYNI8LTjq8gl16L6Yw+InmQT/n/IsKz2O8gp17SrFlEJAvyKqvvWhmJQTTfPbyyuwa5dabw8lR2XSi8xpZdKYU3CmTXicK7HfbXxh4PBAIBUBTFVnmfz6eZHVGdVDe14VDHT3jLxpa8Xi8kk0kIBoOwXC6h2+3CcDg0LR+PxyEajWr3/X4fVNV8CR4OhyGRSGgwk8kEWq0WLBYLu64d0WMN2S0diUQ0CPH0YrGYZSQEBInurSJDdYkoUxvUlgOFFDgQEcjIbuHBYKCFnURdq9frmZadz+dadxKie/rNTFQX1UmiNqgtBxrRgPgTb547SXa/3685JRq+L9kFmJ1kp/Kz2QxWq5UTkF+U7B0nINTAdDq13YIdACF6ME7q1qlDXat9ACnSJpDmAYA0CaR+ACB1sbD6AZsfC+xbKi6sXohxpCxxNMr6hVVJYpDSPxA+KapJCFETp1z6KUpBQpCCfooCHBXaH6pIBFHRH9GtTxpzcLsd6XaN2VcwBOG91JwEIHfOFw2XYjiufAb3bhGVEeK90TTeSFdwe9zlNjXYt7uzctPJyyEcvXG+0B/OXRKZhhWEJYgO5nLPUxhq+9IKwrJrGXQ1uT8YWIOR/xOONSC5P6oxAJL7MycTqL1+ePZXgAEAuOQVwoZEwccAAAAASUVORK5CYII=")}.plat-flowList-dialog #approveState .icon-approved[data-v-334861e8]{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjFDMzQ5RTBBNDc3NjExRTc5NUVGRTM1MDRDMUNBRjQ5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjFDMzQ5RTBCNDc3NjExRTc5NUVGRTM1MDRDMUNBRjQ5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MUMzNDlFMDg0Nzc2MTFFNzk1RUZFMzUwNEMxQ0FGNDkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MUMzNDlFMDk0Nzc2MTFFNzk1RUZFMzUwNEMxQ0FGNDkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6g5m9DAAAHVklEQVR42txaaUxURxz/8VgQOaq4CF4cRjll/WBQBBKCosUgxApirBCoFU0aqX4wWOvBWRDBD20stSloCdFWK7JErIoSRUSqstYDBCOoVRMiRLFcAgJLZ4YHWTl234OHYn/JP2+PmXnzm/lf839PDxLh2rNMJ3JZQsSNiAMReyKmREz4Jq1EWohUE3lIREXkspdN5AMp7q83ysk7k0s4kVAi1iMc5jmRY0SyCamq90qEEPAklxgifpAWBUQSCKHSMSVCCNBV/4HIaowtlES2EULPJSdCSETyJIzxfvCGJ5MpCRFCgE78F94OPgSo/WwmhN6MmAghYU4uZ4h44sOC2kwAIfNaNBGeRDERV4wPVBDxHo4Mp0WdzowjEuDncoafmzAivE14YvzBk5+bbtXivVPGaO7W/OotasrrUfv0Fd60dLDfJpoYYqadBeYopuIT+YTREto00JvpDREnHozExba1dKEotwp5JwpRUX5fa1vF/HkIDFkK3zXzYGQiG6lrdtKMMwOJ5IoNdupuEo6PleNgWhYaGxsxd+5cBAUFwdvbG05OTpDL5azdy5cvUVlZieLiYuTm5uLJkyeYPHkyvt4RgU8/dwWnLzrJUBIiQYOI8GnHNTEjNb3qRPyWX3G99CYWLFiApKQk+Pn5QU9P+6TUajXy8/OxZ88eVFRUwMPLHTE/ho9E5bz60hlNY48RM8LL5+2IDPwOqpt/IzU1FWVlZVixYoVOEuymHIdVq1bh9u3bSEhIwI2/ypCfeQ9Gsk/EEol5Z0f4LLZSuDF3YWNgIhr/bYRSqcSyZctGZbk1NTVMJdu7mlBel49OdTv7/Z/qWpSVVCFkg6+27i40a+7bkXAxNhG35Qjq6+olIUFBSVDQHbGX+7D1vfSniixWEr6P/R1FZ29p6x6uqVqC86iC3+4zm9i3b58kJAbCVGaFwykXsfern9H+pgOOrrZwnG+rrQubux5/shN0oGlvUSPIIxoODg64fv0603UpUVdXh3Xr1qGoqIh99w/xQnRyGAwnGOjq6izjj6eCUKSsYi6WGqjUJOjCBAcHo7a2FoaGhti7byuWhjgJ7b6E48/YgpB3/ALs7e2ZdxqIzMxMXLhwYUQk0tPTWdyhJGbNmsVizbaoaDFDuHF8oUAnWhvUKCcRe82aNYP+y8rKwqZNmxASEoKqKuHH7ra2NkRERCAqKgqdnZ3w8fHBrVu34O7uDjPDqZBxguOKA8dXO3S7SJI7UdCVGwh/f3/Y2dmhqakJK1euZFFcFx4/fgwPDw9kZ2ez79u3b0dhYSEsLS37I4O6zUgoEXuOL9noRO3T3sk5OzsP+o/e/OzZs5g0aRJLPVavXo23b98OOxZt6+bmhrt378LU1BQnT57EgQMHoK+v37v7ra1sQZRHLwl2dpxG3Um7arX0Bilzc/Oh3QYheOrUKRgYGKCkpISp2lCpSXx8PAICAvD69Ws4Ojrixo0bg9S1ubmZkW1v6xRKxERS1+Pr64tDhw6xz1RlaKzpA514YGAg4uLi0NPTwxJLmta4uLgMGofaC1MuEXkkx1cAdVM27dXXhoYGre02btyInTt3ss+7du1imS5VIapKdJWp205JSUFOTg7MzMyGHKPvHiZmE4XyaJXxZUyd6jXD1oJdqVeihq0NycnJePToEdP9sLCwfg9lYWGB48ePs53Thj7PN83GXCiRFo6vxerOhxS93qQv6motzRCdoC550aJFjACVhQsXMteqiwTFlStX3rmnAFRTIg8FqdYUDgqFKzNoquO6YGxsjNOnT8PW1haRkZG4evUqbGxsdPbr7u5myairwgWT5ILd70NKRCW09WfrljOVKSgoENTeysoKd+7cQUZGBiZMEBbcqDrSnCtw7VIxfkY1oqRx9uzZUKlU/X5fKnR0dJBdV6C+vh45pSkwNjMQ2tWZ459PCCoWG5Gws3XHl2yV09LSJE/hY2NjUV1djS3R4WJIPKccOI36qiD4rXfFYk93dt4+f/68ZCSoSu3fvx/ui92wYv18sbXh/oNVttBeevo9iEvfgGnTp7Ggdu7cuVGToDElNDQUM2bOQEz6F9CXiaqoZPcT4Z8UFQjtaSaX4acT32KKfApLNxITE9HV1SWaAM3Hdu/ejbVr18LSyhLpf3yDyVONxAxR0PeUSzNFSRAzgoW1EQ7n78WixQsRExPDykF5eXksnxLiYmlgpIZNgydVp4zTu2BpbSJ2LRKkLdCRc/zB1CPs9Ghtbd1foKNJIY3mNO7Q1J5GbBrsaCx68eIFy5ajoiOITSjAySQq0I22ZEpd82VlJTlFXhRQMnVlJdOlwS6YaDoGJVOpitgtDV2ouVeP2mev0NpM0/8elnROt5VjjsJi7IvYGmSO4sM9atPpbgmJsKHS+KGwGb2Pu8YbSvm5DQ4Lw/X4Xzx642ML7eA9TnamVBsJrUQ0yCwXk8KMhU3QOWgjoVW1hvFmH+8LA0PEmY/7FY4BhD7ul2qGIPRxv+Y0DKkP+uLZfwIMAHeP5nlvq2XCAAAAAElFTkSuQmCC")}.plat-flowList-dialog #approveState .proce[data-v-334861e8]{position:relative;top:16px;color:#888}.plat-flowList-dialog #approveState .owner[data-v-334861e8]{font-size:14px;color:#444;margin-top:10px;width:130px;overflow:hidden;text-overflow:ellipsis}.plat-flowList-dialog #approveState .date[data-v-334861e8]{font-size:14px;color:#444;margin-top:3px}.plat-flowList-dialog #approveTrack[data-v-334861e8]{margin-top:20px;overflow:hidden;padding-left:5px}.plat-flowList-dialog #approveTrack .approveDesc[data-v-334861e8]:after{clear:both;content:"";display:block}.plat-flowList-dialog #approveTrack .approveDesc[data-v-334861e8]{margin-left:10px}.plat-flowList-dialog #approveTrack .approveDesc span[data-v-334861e8]{float:left}.plat-flowList-dialog #approveTrack ul[data-v-334861e8]{margin-top:15px}.plat-flowList-dialog #approveTrack ul li[data-v-334861e8]{position:relative;padding:0 15px 20px 15px;border-left:1px solid #d9d9d9;color:#333;font-size:14px}.plat-flowList-dialog #approveTrack ul li.last[data-v-334861e8]{border-left-color:#fff}.plat-flowList-dialog #approveTrack ul li .node-icon[data-v-334861e8]{position:absolute;left:-5px;width:11px;height:11px;background:url(//misc.360buyimg.com/user/order/0.0.1/css/i/order-icons.png) -21px -72px #fff no-repeat;background-position:0 -72px;top:0}.plat-flowList-dialog #approveTrack .node-icon.first[data-v-334861e8]{padding-top:0}.plat-flowList-dialog #approveTrack .date[data-v-334861e8]{display:inline-block;width:155px}.plat-flowList-dialog #approveTrack .memo[data-v-334861e8]{color:#888;padding-top:10px;padding-left:166px}',""]),e.exports=t},a636:function(e,t,r){var i=r("04cd");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0e2546b8",i,!0,{sourceMap:!1,shadowMode:!1})},a65f:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".timeline.plat-timeline[data-v-9319569a]{padding-bottom:8px}.timeline.plat-timeline .rc-section[data-v-9319569a]{padding:8px 24px}.timeline.plat-timeline .rt-timeline-item[data-v-9319569a]:last-child{padding-bottom:0}",""]),e.exports=t},a668:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent,i=this.props;e.ref="team-members",e.addProp("label",i.label),e.addProp("entityId",r.objectId),e.addProp("entityName",r.objectTypeName),e.addProp("hiddenDefaultDiagram",i.hiddendefaultdiagram),i.langkey&&e.addProp("langkey",i.langkey)}}i=d,a="$bindNodeType",n=o.b.TeamMembers,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},a6bb:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag",n.a.Attribute)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;e.addProp("required",r.required),e.addProp("disabled",r.disabled),e.addProp("entityname_field",r.entityname_field),e.addProp("formEntityName",i.objectTypeName),r.attributeFilterType&&e.addProp("attributeFilterType",r.attributeFilterType),e.addProp("entityname",i.editForm[e.props.entityname_field])}}o(s,"$bindNodeType",i.b.Attribute)},a711:function(e,t,r){"use strict";r("9e30")},a7b8:function(e,t,r){var i=r("6231");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("625f2b4d",i,!0,{sourceMap:!1,shadowMode:!1})},a7f9:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-toolbar.plat-toolbar[data-v-501ed804]{display:flex;align-items:center}.rt-toolbar.plat-toolbar .rt-divider[data-v-501ed804]{width:1px;background-color:#ccc;display:inline-block;height:14px;margin:0 15px}.rt-toolbar.plat-toolbar .el-button[data-v-501ed804]{display:inline-block;line-height:1;white-space:nowrap;margin:0;cursor:pointer;background:#fff;color:#4e5969;text-align:center;box-sizing:border-box;outline:none;transition:.1s;font-weight:400;padding:5px 0;font-size:14px;border-radius:2px;margin-right:8px}",""]),e.exports=t},a829:function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"a",(function(){return d}));var i=r("ef51");function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class n{constructor(e,t){a(this,"nodeType",void 0),a(this,"ctrlType",void 0),a(this,"tag",void 0),a(this,"data",void 0),a(this,"field",void 0),a(this,"params",void 0),a(this,"isDep",void 0),a(this,"isPub",void 0),a(this,"pubEvt",void 0),a(this,"children",void 0),a(this,"Name",void 0),a(this,"vtext",void 0),a(this,"isChildrenEmpty",!1),this.nodeType="",this.tag=e||"",this.params={},this.children=[],this.data={class:new Array,props:{},domProps:{},on:{}},this.vtext=t||""}get slot(){return this.data.slot}set slot(e){this.data.slot=e}get cnum(){return this.children.length}get class(){return this.data.class||(this.data.class=new Array),this.data.class}set class(e){this.data.class=e}addClass(...e){return this.class.push(...e),this}get style(){return this.data.style||(this.data.style={}),this.data.style}set style(e){this.data.style=e}addStyle(e,t){this.style[e]=t}addKey(e){this.data.key=e}get props(){return this.data.props||(this.data.props={}),this.data.props}set props(e){this.data.props=e}get domProps(){return this.data.domProps||(this.data.domProps={}),this.data.domProps}set domProps(e){this.data.domProps=e}addProp(e,t){this.data.props||(this.data.props={}),this.data.props[e]=t}setProp(e,t){this.addProp(e,t)}get attrs(){return this.data.attrs||(this.data.attrs={}),this.data.attrs}addAttr(e,t){this.data.attrs||(this.data.attrs={}),this.data.attrs[e]=t}setAttrs(e){this.data.attrs=e}setAttr(e,t){this.addAttr(e,t)}get cid(){return this.data.key}get on(){return this.data.on||(this.data.on={}),this.data.on}get ref(){return this.data.ref}set ref(e){this.data.ref=e}get key(){return this.data.key}set key(e){this.data.key=e}addEventHandler(e,t){this.data.on||(this.data.on={});const r=this.data.on[e];r?"function"==typeof r?this.data.on[e]=[r,t]:"object"==typeof r&&r.push(t):this.data.on[e]=t}addChild(e){this.children.push(e)}addChildByTag(e){const t=new n(e);return this.children.push(t),t}addChildren(e){this.children.push(...e)}getFirstChildOrDefault(){if(this.children&&this.children.length>0)return this.children[0]}addParams(e,t){e&&t&&(this.params[e]=t)}setIndex(e){this.data.key||(this.data.key="v"+e.toString())}stackVisit(e){e.pushVNode(this),this.children&&this.children.length&&this.children.length>0&&this.children.forEach(t=>t.stackVisit(e))}renderVNode(e){try{if(this.vtext&&this.vtext.length&&this.vtext.length>0)return e(this.tag,void 0,[this.vtext]);const t=new Array;return this.children&&this.children.length>0&&this.children.forEach(r=>{t.push(r.renderVNode(e))}),e(this.tag,this.data,t)}catch(e){throw e}}}class o{constructor(e,t,r,n,o,s){a(this,"PageType",void 0),a(this,"rootEntityName",void 0),a(this,"PageStatus",i.d.create),a(this,"currentObjectId",void 0),a(this,"targetComponent",void 0),a(this,"FormEvents",[]),a(this,"FormRules",[]),a(this,"DependentAttributes",[]),a(this,"Rules",{}),a(this,"Hooks",[]),a(this,"Nodes",[]),a(this,"FirstDiv",void 0),a(this,"fieldInputHandlers",{}),a(this,"hookHandlers",{}),a(this,"rules",void 0),a(this,"__key",1e8),this.PageType=e,this.rootEntityName=t,this.currentObjectId=r,this.PageStatus=n,this.targetComponent=o,this.rules=s}get Count(){return this.Nodes.length}addRule(e,t){this.Rules[e]=t}pushVNode(e){this.Nodes.push(e)}IsDependent(e){return this.DependentAttributes.indexOf(e)>=0}isRoot(e){return-1==e.parentIndex}nextKey(){return this.__key++,"ctrl_"+this.__key}}class s extends o{constructor(e,t,r,i,n,o){super(e,t,r,i,n),a(this,"showMoreSearch",!1),a(this,"grid",void 0),a(this,"targetComponent",void 0),this.targetComponent=n,this.grid=o}get isListPage(){return this.PageType==i.e.PCQuery||this.PageType==i.e.PCUserQuery}}class l extends o{constructor(e,t,r,i,n,o,s){super(e,t,r,i,n,s),a(this,"form",void 0),a(this,"targetComponent",void 0),this.targetComponent=n,this.form=o}}class d extends o{constructor(e,t,r,i,n,o){super(e,t,r,i,n),a(this,"showMoreSearch",!1),a(this,"grid",void 0),a(this,"targetComponent",void 0),this.targetComponent=n,this.grid=o}get isListPage(){return this.PageType==i.e.PCQuery||this.PageType==i.e.PCUserQuery}}},a82b:function(e,t,r){var i=r("60f1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7b1b6b46",i,!0,{sourceMap:!1,shadowMode:!1})},a840:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Column)}createVNode(e,t){const r=this.props,i=new a.e(o.a.ElCol);i.nodeType=this.$nodetype,i.addClass("apaas-column");const n=this.ConvertWidthToSpan();i.addProp("span",n),r.height&&r.height.trim()&&"auto"!=r.height.trim()&&(i.addStyle("height",r.height),i.addStyle("overflow-y","auto")),this.buildVNode(i,t),e.addChild(i),this.addChildByPermission(i,t)}addChildByPermission(e,t,r){const a=this.children.filter(a=>a.props.availableOnPhone!=i.a.MOBILE&&(!this.calcHidden(a,t)&&(a.props.subContent=!0,a.extendParentInfo(this.parentInfo),r?a.createVNode(e,t,r):a.createVNode(e,t),!0)));t.PageStatus==i.d.print||a.length||-1===[i.b.SubGrid,i.b.toolbar].indexOf(this.$nodetype)&&(e.isChildrenEmpty=!0)}ConvertWidthToSpan(){var e;const t=null===(e=this.props.width)||void 0===e?void 0:e.trim();if(t&&t.endsWith("%")){const e=parseFloat(t.substring(0,t.length-1));return Math.round(24*e/100)}if(t)try{return parseInt(t)}catch{}return 6}}s(l,"$bindNodeType",i.b.Column)},a8cc:function(e,t,r){"use strict";r("a82b")},a932:function(e,t,r){"use strict";r("b6da")},aa23:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Remark)}createVNode(e,t,r){const i=new a.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props;t.targetComponent,e.addProp("content",r.content),e.addProp("fontSize",r.fontSize),e.addProp("fontWeight",r.fontWeight),e.addProp("color",r.fontColor),e.addProp("lineHeight",r.lineHeight)}}s(l,"$bindNodeType",i.b.Remark)},aab4:function(e,t,r){"use strict";var i={name:"PlatFieldSelection",props:{storeTreeNode:{type:String,default:-1},treeData:{type:Object,default:()=>({basicTreeData:[],relatedTreeData:[]})},checkOnClickNodeBasic:{type:Boolean,default:!0},checkOnClickNodeRelated:{type:Boolean,default:!0},defaultProps:{type:Object,default:()=>({children:"children",label:"DisplayName"})},tableCheckedKeys:Array,relatedDefaultProps:{type:Object,default:()=>({children:"children",label:"ReferencedEntityDisplayName"})},basicDefaultProps:{type:Object,default:()=>({children:"children",label:"DisplayName"})},isEditable:{type:Boolean,default:!0}},data(){return{dropIndex:0,choicedList:[],newStoreNode:this.storeTreeNode,showBtn:this.storeTreeNode,showDragIcon:this.storeTreeNode,showReName:this.storeTreeNode,basicCheckedKeys:[],relatedCheckedKeys:[],isValidatored:!0,editingData:null,defaultDataList:[],searchBasicValue:""}},computed:{basicTreeData(){return this.treeData.basicTreeData?(this.treeData.basicTreeData.forEach(e=>{e.basicTreeKey=e.LogicalName}),this.treeData.basicTreeData||[]):[]},basicTreeDataList(){return this.basicTreeData.filter(e=>{if(!e.DisplayName)return!1;if(!this.searchBasicValue)return!0;let t=e.DisplayName.indexOf(this.searchBasicValue),r=-1!==t;return r&&(e.start=e.DisplayName.substring(0,t),e.middle=this.searchBasicValue,e.end=e.DisplayName.substring(t+this.searchBasicValue.length)),r})},relatedTreeData(){return this.treeData.relatedTreeData&&this.treeData.relatedTreeData.map(e=>e.disabled=!0),this.treeData.relatedTreeData||[]}},watch:{choicedList:{handler(){this.basicCheckedKeysHandler(),this.relatedCheckedKeysHandler()},deep:!0},showReName:{handler(){this.$nextTick(()=>{this.$refs.reNameAutoFocus&&this.$refs.reNameAutoFocus.focus()})}}},mounted(){this.choicedList=JSON.parse(JSON.stringify(this.tableCheckedKeys)),this.basicCheckedKeysHandler(),this.relatedCheckedKeysHandler(),this.initBasicTreeStatus()},methods:{getCustomComponentLabel(e){let t="";return e.props.hideLabel?"":(t=e.props.langkey?this.$_t(e.props.langkey,e.Label||(null==e?void 0:e.props.label)||(null==e?void 0:e.props.displayName)):e.Label||e.props.label||e.props.displayName,t||e.props.displayName||e.props.displayname||e.props.appkey)},basicCheckedKeysHandler(){this.basicCheckedKeys=this.choicedList.map(e=>e.basicTreeKey)},relatedCheckedKeysHandler(){this.relatedCheckedKeys=this.choicedList.map(e=>e.relatedTreeKey)},mouseoverHandler(e){if(this.isValidatored&&!this.newStoreNode)if(e.IsSubEntity)this.showDragIcon=e.relatedTreeKey;else{if(e.relatedTreeKey)return this.showBtn=e.relatedTreeKey,void(this.showDragIcon=e.relatedTreeKey);e.basicTreeKey&&(this.showDragIcon=e.basicTreeKey,this.showBtn=e.basicTreeKey),"customerComponent"===e.$nodetype&&(this.showBtn=e.id)}},mouseoutHandler(e){e.IsSubEntity?this.showDragIcon=-1:(this.showDragIcon=-1,this.showBtn=-1)},initBasicTreeStatus(){this.$nextTick(()=>{this.$refs.basicTree&&this.$refs.basicTree.setCheckedKeys(this.basicCheckedKeys)})},async loadNode(e,t){if(e.data.length>0)return void t(e.data);let r=e.data;r&&r.ReferencedEntityId?t((await rt.get("api/meta/Attribute/GetMetaAttributesByEntityLogicalnameFilterFieldPermission?logicalname="+e.data.ReferencedEntityName+"&hideFromUsers=true")).map(t=>({leaf:!0,relationshipId:r.relationshipId,ReferencedEntityDisplayName:t.DisplayName,relatedTreeKey:t.LogicalName+"-"+e.data.SchemaName,parentData:r,...t}))):t([])},renderContent(e,{node:t,data:r}){let i=r.ReferencedEntityDisplayName,a=e("span",{attrs:{class:2==t.level?"attribute-font tree-child":"attribute-font"}},i);return e("div",{attrs:{"has-tip":!0,draggable:!0,class:"attribute-layout"}},[i?a:""])},setLabel(e){this.isValidatored=!!e.props.displayName,this.$set(e.props,"label",e.props.displayName)},validatorName(e){-1===this.defaultDataList.findIndex(e=>e.id&&e.id===this.editingData.id)&&this.editingData&&this.defaultDataList.push(this.editingData),rt.isNullOrWhiteSpace(e.props.displayName)?(this.isValidatored=!1,localStorage.setItem("storeTreeNode",e.relatedTreeKey?e.relatedTreeKey:e.basicTreeKey)):this.reset()},removeFeildHandler(e,t){let r=-1;e.relatedTreeKey?r=this.choicedList.findIndex(t=>t.relatedTreeKey==e.relatedTreeKey):e.basicTreeKey?r=this.choicedList.findIndex(t=>t.basicTreeKey==e.basicTreeKey):e.id&&(r=this.choicedList.findIndex(t=>t.id==e.id)),-1==r||t.checked||(this.choicedList.splice(r,1),this.$emit("selection-changed",this.choicedList)),this.$nextTick(()=>{this.$refs.basicTree&&this.$refs.basicTree.setCheckedKeys(this.basicCheckedKeys)}),this.$nextTick(()=>{this.$refs.relatedTree&&this.$refs.relatedTree.setCheckedKeys(this.relatedCheckedKeys)})},reNameHandler(e){this.showReName=e.relatedTreeKey?e.relatedTreeKey:e.basicTreeKey,this.editingData=JSON.parse(JSON.stringify(e))},allowDrop(e,t,r){return!(!this.isValidatored||this.newStoreNode)&&!(e.level>1)&&"inner"!==r},checkRelatedHandleCheckChange(e,t){this.relatedHandleCheckChange(e,{checked:t})},relatedHandleCheckChange(e,t){if(1==t.level)return;let r=this.choicedList.findIndex(t=>t.relatedTreeKey==e.relatedTreeKey);-1==r||t.checked?t.checked&&-1==r&&(this.$set(e,"SchemaName",e.parentData.SchemaName),this.$set(e,"relationshipId",e.parentData.RelationshipId),this.$set(e,"relationshipName",e.parentData.SchemaName),e.needRender=!0,this.$set(e,"props",{displayName:`${e.DisplayName}(${e.parentData.customlabel})`,relationshipId:e.parentData.RelationshipId,relationshipName:e.parentData.SchemaName,relatedAttribute:e.parentData.ReferencingAttributeName}),this.choicedList.push(e),this.$emit("selection-changed",this.choicedList)):(this.choicedList.splice(r,1),this.$emit("selection-changed",this.choicedList))},basicHandleCheckChange(e,t){let r=this.choicedList.findIndex(t=>t.basicTreeKey==e.basicTreeKey);-1==r||t?t&&-1==r&&(e.needRender=!0,this.$set(e,"props",{displayName:e.DisplayName}),this.choicedList.push(e),this.$emit("selection-changed",this.choicedList)):(this.choicedList.splice(r,1),this.$emit("selection-changed",this.choicedList))},resetData(){this.defaultDataList.forEach(e=>{const t=this.choicedList.find(t=>t&&t.id&&t.id===e.id);t.props.displayName=e.props.displayName,t.props.label=e.props.displayName}),this.choicedList=[...this.choicedList],this.reset()},reset(){this.isValidatored=!0,this.showReName="-1",this.newStoreNode="",localStorage.removeItem("storeTreeNode"),this.editingData=null}}},a=(r("b017"),r("beb4"),r("0c7c")),n=Object(a.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-section",{staticClass:"user-custom-field-selection"},[r("rc-row",{attrs:{gutter:24}},[r("rc-col",{staticClass:"basic-col",attrs:{span:12}},[r("rc-tabs",{attrs:{size:"small","tab-pane-padding":"0"},model:{value:e.dropIndex,callback:function(t){e.dropIndex=t},expression:"dropIndex"}},[r("rc-tab-pane",{attrs:{label:e.$_t("platform.BasicFeild","基础字段")}},[r("div",{staticClass:"field-choice-list basic"},[r("div",{staticClass:"field-search"},[r("rc-search",{attrs:{more:!1,type:"dark",placeholder:e.$_t("try.search","试试搜索字段")},model:{value:e.searchBasicValue,callback:function(t){e.searchBasicValue=t},expression:"searchBasicValue"}})],1),e.basicTreeDataList.length>0?r("el-tree",{ref:"basicTree",attrs:{"check-on-click-node":e.checkOnClickNodeBasic,data:e.basicTreeDataList,"node-key":"basicTreeKey","show-checkbox":"","default-expand-all":"",props:e.basicDefaultProps,"default-checked-keys":e.basicCheckedKeys},on:{"check-change":e.basicHandleCheckChange},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.node,a=t.data;return r("span",{staticClass:"attribute-span",attrs:{"has-tip":""}},[e.searchBasicValue?[r("span",{staticClass:"attribute-start"},[e._v(e._s(a.start))]),r("span",{staticClass:"attribute-title__color"},[e._v(e._s(a.middle))]),r("span",{staticClass:"attribute-end"},[e._v(e._s(a.end))])]:r("span",{staticClass:"attribute-label"},[e._v(e._s(i.label))])],2)}}],null,!1,4078415580)}):e._e(),0===e.basicTreeDataList.length?r("rc-default-image",[e.searchBasicValue?r("template",{slot:"describe"},[r("div",{staticClass:"entity-attribute-empty-top"},[e._v(" "+e._s(e.$_t("no.search","无搜索结果"))+" ")]),r("div",{staticClass:"entity-attribute-empty-bottom"},[e._v(" "+e._s(e.$_t("try.changing","试试更改查询词"))+" ")])]):r("template",{slot:"empty"},[e._v(e._s(e.$_t("NoData","暂无数据")))])],2):e._e()],1)]),r("rc-tab-pane",{attrs:{label:e.$_t("platform.relatedFeild","关联字段")}},[r("div",{staticClass:"field-choice-list related"},[e.relatedTreeData.length>0?r("el-tree",{ref:"relatedTree",attrs:{"check-on-click-node":e.checkOnClickNodeRelated,data:e.relatedTreeData,"node-key":"relatedTreeKey","show-checkbox":"",props:e.relatedDefaultProps,"render-content":e.renderContent,"check-strictly":!0,"default-checked-keys":e.relatedCheckedKeys,load:e.loadNode,lazy:""},on:{"node-click":e.relatedHandleCheckChange,"check-change":e.checkRelatedHandleCheckChange}}):r("rc-default-image",{attrs:{slot:"empty",size:"small"},slot:"empty"})],1)])],1)],1),r("rc-col",{staticClass:"choiced-feild-list-title-col",attrs:{span:12}},[r("div",{staticClass:"choiced-feild-list-title"},[e._v(" "+e._s(e.$_t("platform.DisplayFeild","显示字段"))+" ")]),r("div",{staticClass:"user-tree-box-shadow"},[e.choicedList.length>0?r("el-tree",{ref:"choicedListTree",attrs:{data:e.choicedList,draggable:"","allow-drop":e.allowDrop,"default-expand-all":"",props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.data,a=t.node;return r("span",{staticClass:"field-custom-tree-node",on:{mouseover:function(t){return e.mouseoverHandler(i)},mouseleave:function(t){return e.mouseoutHandler(i)}}},[i.relatedTreeKey?r("span",{staticClass:"basicIconWrap"},[r("span",{staticClass:"field-tree-node-left"},[e.showDragIcon===i.relatedTreeKey?r("rc-icon",{staticClass:"currentSelect",attrs:{size:"16",color:"#0059B3",name:"rt-saas-dot-six-v-lined"}}):e._e(),e.showReName===i.relatedTreeKey?r("el-form",{ref:"reNameInput",attrs:{"label-width":"30px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{prop:"DisplayName"}},[r("el-input",{ref:"reNameAutoFocus",staticClass:"re-name-input",attrs:{placeholder:"请输入内容"},on:{input:function(t){return e.setLabel(i)},blur:function(t){return e.validatorName(i)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validatorName(i)}},model:{value:i.props.displayName,callback:function(t){e.$set(i.props,"displayName",t)},expression:"data.props.displayName"}})],1)],1):r("span",{staticClass:"choice-list-title"},[e._v(e._s(i.props.displayName))])],1),r("span",{staticClass:"field-tree-node-right"},[e.isEditable&&e.showBtn===i.relatedTreeKey?r("rc-icon",{staticClass:"edit",attrs:{size:"12",color:"#0059B3",name:"rt-base-record-lined"},on:{click:function(t){return t.stopPropagation(),e.reNameHandler(i)}}}):e._e(),e.showBtn===i.relatedTreeKey?r("rc-icon",{staticClass:"delete",attrs:{size:"12",color:"#0059B3",name:"rt-saas-delete"},on:{click:function(t){return t.stopPropagation(),e.removeFeildHandler(i,a)}}}):e._e()],1)]):i.basicTreeKey?r("span",{staticClass:"basicIconWrap"},[r("span",{staticClass:"field-tree-node-left"},[e.showDragIcon===i.basicTreeKey?r("rc-icon",{staticClass:"currentSelect",attrs:{size:"16",color:"#0059B3",name:"rt-saas-dot-six-v-lined"}}):e._e(),e.showReName===i.basicTreeKey?r("el-form",{ref:"reNameInput",attrs:{"label-width":"30px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("el-form-item",{attrs:{prop:"DisplayName"}},[r("el-input",{ref:"reNameAutoFocus",staticClass:"re-name-input",attrs:{placeholder:"请输入内容"},on:{input:function(t){return e.setLabel(i)},blur:function(t){return e.validatorName(i)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.validatorName(i)}},model:{value:i.props.displayName,callback:function(t){e.$set(i.props,"displayName",t)},expression:"data.props.displayName"}})],1)],1):r("span",{staticClass:"choice-list-title"},[e._v(e._s(i.props.label||i.props.displayName))])],1),r("span",{staticClass:"field-tree-node-right"},[e.isEditable&&e.showBtn===i.basicTreeKey?r("rc-icon",{staticClass:"edit",attrs:{size:"12",color:"#0059B3",name:"rt-base-record-lined"},on:{click:function(t){return t.stopPropagation(),e.reNameHandler(i)}}}):e._e(),e.showBtn===i.basicTreeKey?r("rc-icon",{staticClass:"delete",attrs:{size:"12",color:"#0059B3",name:"rt-saas-delete"},on:{click:function(t){return t.stopPropagation(),e.removeFeildHandler(i,a)}}}):e._e()],1)]):"customerComponent"===i.$nodetype?r("span",{staticClass:"basicIconWrap"},[r("span",{staticClass:"field-tree-node-left"},[r("span",{staticClass:"choice-list-title"},[e._v(e._s(e.getCustomComponentLabel(i)))])]),r("span",{staticClass:"field-tree-node-right"},[e.showBtn===i.id?r("rc-icon",{staticClass:"delete",attrs:{size:"12",color:"#0059B3",name:"rt-saas-delete"},on:{click:function(t){return t.stopPropagation(),e.removeFeildHandler(i,a)}}}):e._e()],1)]):e._e()])}}],null,!1,955066320)}):r("rc-default-image",{attrs:{slot:"empty",size:"small"},slot:"empty"})],1)])],1)],1)}),[],!1,null,"65cc0d27",null);t.a=n.exports},ac60:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.ElTabPane),s(this,"index",void 0)}createVNode(e,t){var r;const i=new a.e(this.VueTag);i.nodeType=this.$nodetype,i.addAttr("activeCode",this.props.paneCode),this.BuildVNode_AsTab(i,t);const n=null===(r=e.data.props)||void 0===r?void 0:r.lazy;i.addProp("lazy",n),this.appendNode(e,i,t),this.addChildByPermission(i,t)}BuildVNode_AsTab(e,t){this.buildVNode(e,t);const r=this.getLangLabel(t);if(this.props.enableBadge){const i=this.getCurrentBadgeCount(t),a=e.addChildByTag("plat-badge");a.slot="label",a.addProp("value",i),a.addProp("innerText",r)}e.addClass("plat-tabpane"),(this.props.nameIndex||0===this.props.nameIndex)&&e.addProp("name",this.props.nameIndex.toString())}appendNode(e,t,r){super.appendNode(e,t,r),this.parent&&[i.b.NewTabs,i.b.Tabs].includes(this.parent.$nodetype)&&this.parent.visibleChildren.push(t)}getCurrentBadgeCount(e){var t,r,i;const a=e.targetComponent,n=(null===(t=a.$store)||void 0===t||null===(r=t.state)||void 0===r||null===(i=r.systemparameter)||void 0===i?void 0:i.MaxNumOfBadge)||0,o=a.tabBadgeMap&&a.tabBadgeMap[this.id];return o?"string"==typeof o?"0"===o?"":o:parseInt(n){r.__relationImportCallBack},r.relationDialog){const e=[1,2,10].includes(r.relationDialog.showStyle)&&r.relationDialog.objectId,i=t.addChildByTag(o.a.Relationdialog);i.ref="relDialog",i.addProp("title",r.$_t("ACT","操作")),i.addProp("isWatchLoading",!0),i.addProp("dialogFormId",this.id),i.on.update=r.__relationDialogUpdateHandler;const n=t.addChildByTag(o.a.RelationDrawer);n.ref="relDrawer",n.addProp("dialogFormId",this.id),n.on.update=r.__relationDialogUpdateHandler,i.addProp("visible",!1),n.addProp("visible",!1);const s=()=>{const e=new a.e("vformcore");return e.addProp("formId",r.relationDialog.formId),e.addProp("objectTypeName",r.relationDialog.objectTypeName),e.addProp("objectId",r.relationDialog.objectId),e.addProp("fromEntity",r.editForm),e.addProp("fromEntityName",r.objectTypeName),e.addProp("dialogFormId",this.id),e.addProp("stepId",r.stepId),e.addProp("taskId",r.taskId),e.addProp("subGridRefAttribute",r.relationDialog.filterAttribute),e.addProp("parentPrimaryAttribute",r.relationDialog.parentPrimaryAttribute),e.addProp("readonly",r.relationDialog.subgridIsReadonly),e.addProp("subGridQuery",!0),e.ref="relationForm",e.on.subGridReload=e=>{r.$refs.relationForm&&r.$refs.relationForm.parentReload&&r.load(),r.subGridReload(r.relationDialog.objectTypeName,r.relationDialog.subgridkey,e)},e.on.refreshSubGridOnly=()=>{r.subGridReload(r.relationDialog.objectTypeName,"")},e.on.updateTitle=e=>{e&&r.$refs.relDialog&&(r.$refs.relDialog.titleData=e)},e.on.schemaLoaded=()=>{r.$refs.relDrawer&&r.$refs.relDrawer.$emit("schemaLoaded")},e};if(r.relationDialog.visible){const t=s();t.on["dialog-close"]=()=>{r.relationDialog.visible=!1},e?(n.children.push(t),t.addProp("isDrawerMode",!0),n.addProp("visible",!0)):(t.addProp("isDialogMode",!0),i.children.push(t),i.addProp("visible",!0))}}if(r.lookupDialogState){const r=this.createLookupDrawer(e);r&&t.addChild(r)}const l=t.addChildByTag("grant-access-dialog");l.nodeType=i.b.GrantAccessDialog,l.addProp("entityName",r.objectTypeName),l.ref="GrantAccessDialog";const d=t.addChildByTag("assign-dialog");d.nodeType=i.b.AssignDialog,d.addProp("objectId",r.objectId),d.addProp("entityName",r.objectTypeName),d.on.AssignCallback=r.assignCallback,d.ref="AssignDialog";const c=t.addChildByTag("word-template-dialog");c.nodeType=i.b.RelationWordTemplateDialog,c.on.relationWordTemplateCallback=r.relationWordTemplateCallback,c.ref="relationWordTemplateDialog";const u=t.addChildByTag("form-word-template-dialog");u.nodeType=i.b.Wordtemplatedialog,u.addProp("objectId",r.objectId),u.addProp("entityDisplayName",this.props.entityLabel),u.addProp("entityName",r.objectTypeName),u.on.WordTemplateDialogCallback=r.wordTemplateDialogCallback,u.ref="FormWordTemplateDialog";const p=t.addChildByTag(o.a.VDialog);if(p.ref="vdialog",p.nodeType=i.b.Vdialog,p.addProp("dialogFormId",this.id),r.__enableApprovalFlow){const n=new a.e(o.a.FlowSubmit);n.nodeType=i.b.FlowSubmit,n.addProp("entityname",e.rootEntityName),n.ref="flowsubmit",n.addProp("id",r.objectId),n.addProp("entityname",r.objectTypeName),n.addEventHandler("closesubmit",()=>{r.load()}),t.addChild(n);const s=new a.e(o.a.FlowApprovalList);s.nodeType=i.b.FlowApprovalList,s.addProp("entityname",e.rootEntityName),s.ref="flowapprovallist",s.addProp("id",r.objectId),s.addProp("entityname",r.objectTypeName),t.addChild(s);const l=new a.e(o.a.FlowApprove);l.nodeType=i.b.FlowApprove,l.addProp("entityname",e.rootEntityName),l.ref="flowapprove",l.addProp("formId",r.objectId),l.addProp("entityName",r.objectTypeName),l.addEventHandler("closesubmit",()=>{r.load()}),t.addChild(l)}return t}createVNode(e,t){const r=t.targetComponent,n=new a.e(o.a.Form);n.nodeType=this.$nodetype,this.parentInfo.readonly=!1,this.parentInfo.ruleReadonly=s.a.Default,this.buildVNode(n,t),this.calcReadonly(r,t),r.readonly&&(this.parentInfo.readonly=r.readonly),e.addChild(n);const l=this.getChildNodeByNodeType(i.b.formheader,t);this.props.entityLabel=l&&l.props.label,l&&l.extendParentInfo(this.parentInfo),r.isDialogMode?(this.createContentNode(n,t),l&&l.createVNode(n,t),n.addClass("apaas-dialog-mode")):(l&&this.createHeaderNode(l,n,t),this.createContentNode(n,t))}createHeaderNode(e,t,r){const n=r.targetComponent,s=new a.e(o.a.Header);s.nodeType=i.b.Header,t.addChild(s),e.createVNode(s,r),s.addClass("apaas-vform-header");const l=this.getChildNodeByNodeType(i.b.Steps,r);null==l||l.extendParentInfo(this.parentInfo),!n.isPrint&&l&&l.props.isSticky&&(s.addClass("vform-header-steps-has-sticky"),l.createVNode(s,r));const d=this.getChildNodeByNodeType(i.b.NewTabs,r);null==d||d.extendParentInfo(this.parentInfo),!n.isPrint&&d&&n.__collectStickyDic[i.b.NewTabs]&&(s.addClass("vform-header-tabs-has-sticky"),d.createVNode(s,r));const c=this.getChildNodeByNodeType(i.b.Tabs,r);null==c||c.extendParentInfo(this.parentInfo),!n.isPrint&&c&&n.__collectStickyDic[i.b.Tabs]&&(s.addClass("vform-header-tabs-has-sticky"),c.createVNode(s,r))}createContentNode(e,t){const r=e.addChildByTag(o.a.ContentContainer);r.nodeType=i.b.Content,r.addClass("apaas-vform-content"),this.addChildByPermission(r,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.addAttr("model",r.editForm),e.ref="editForm",e.addProp("labelWidth","100%"),e.addProp("labelColor","regular"),e.addProp("border",!0),e.addClass("apaas-vform-form");const i=this.rules||[];let a={};if(i&&i.length>0)try{i[0].script&&(a=r.formatScript(i[0].script))}catch(e){}for(const n in a)t.addRule(n,a[n]);Object.keys(r.maskFields).forEach(e=>{delete a[e]}),e.addAttr("rules",a),e.addAttr("validate-on-rule-change",!1)}addChildByPermission(e,t,r){this.children.forEach(a=>{this.calcHidden(a,t)||this.props.availableOnPhone!=i.a.MOBILE&&"formheader"!=a.$nodetype&&(a.extendParentInfo(this.parentInfo),a.$nodetype==i.b.NewTabs&&t.targetComponent.__collectStickyDic[i.b.NewTabs]||a.$nodetype==i.b.Tabs&&t.targetComponent.__collectStickyDic[i.b.Tabs]||t.targetComponent.__collectStickyDic[i.b.Steps]&&"steps"==a.$nodetype||(a.props.subContent=!0,r?a.createVNode(e,t,r):a.createVNode(e,t)))})}collectStickyDic(e){e.thisVue.__collectStickyDic||(e.thisVue.__collectStickyDic={},e.thisVue.isDialogMode||e.thisVue.isPrint?(e.thisVue.__collectStickyDic[i.b.NewTabs]=!1,e.thisVue.__collectStickyDic[i.b.Tabs]=!1,e.thisVue.__collectStickyDic[i.b.Steps]=!1):this.children.filter(e=>e.$nodetype==i.b.NewTabs||e.$nodetype==i.b.Tabs).length>1?(e.thisVue.__collectStickyDic[i.b.NewTabs]=!1,e.thisVue.__collectStickyDic[i.b.Tabs]=!1):(e.thisVue.__collectStickyDic[i.b.NewTabs]=!0,e.thisVue.__collectStickyDic[i.b.Tabs]=!0),e.thisVue.__collectStickyDic[i.b.Steps]=!0)}createLookupDrawer(e){const t=e.targetComponent;if(t.lookupDialogState){const e=new a.e(o.a.RelationDrawer);e.ref="lookupDrawer",e.on.update=t._lookupDialogUpdateHandler,e.addProp("visible",!1),e.addProp("dialogFormId",this.id);const r=()=>{const e=new a.e("vformcore");return e.addProp("dialogFormId",this.id),e.addProp("isDrawerMode",!0),e.addProp("objectTypeName",t.lookupDialogState.entityName),e.addProp("formLogicalName",t.lookupDialogState.formLogicalName),e.addProp("objectId",t.lookupDialogState.objectId),e.ref="lookupDrawerForm",e.on.schemaLoaded=()=>{t.$refs.lookupDrawer&&t.$refs.lookupDrawer.$emit("schemaLoaded")},e.on.subGridReload=e=>{t.$refs.relationForm&&t.$refs.relationForm.parentReload&&t.load(),t.subGridReload(t.relationDialog.objectTypeName,t.relationDialog.subgridkey,e)},e.on.refreshSubGridOnly=()=>{t.subGridReload(t.relationDialog.objectTypeName,"")},e};if(t.lookupDialogState.visible){const i=r();e.children.push(i),e.addProp("visible",!0),i.on["dialog-close"]=()=>{t._lookupDialogUpdateHandler(!1)}}return e}return null}}l(d,"$bindNodeType",i.b.Form)},acc9:function(e,t,r){var i=r("c6be");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("fd3310d2",i,!0,{sourceMap:!1,shadowMode:!1})},adee:function(e,t,r){var i=r("f087");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("97d4c5e6",i,!0,{sourceMap:!1,shadowMode:!1})},adf2:function(e,t,r){var i=r("4171");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("8fbd4032",i,!0,{sourceMap:!1,shadowMode:!1})},ae34:function(e,t,r){var i=r("8753");e.exports=function(e,t){";"!==(e=i.trimRight(e))[e.length-1]&&(e+=";");var r=e.length,a=!1,n=0,o=0,s="";function l(){if(!a){var r=i.trim(e.slice(n,o)),l=r.indexOf(":");if(-1!==l){var d=i.trim(r.slice(0,l)),c=i.trim(r.slice(l+1));if(d){var u=t(n,s.length,d,c,r);u&&(s+=u+"; ")}}}n=o+1}for(;o.rt-view-wrapper .rt-card{margin-bottom:12px;overflow:unset}",""]),e.exports=t},aedb:function(e,t,r){var i=r("1459");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("488d5452",i,!0,{sourceMap:!1,shadowMode:!1})},aefe:function(e,t,r){var i=r("5dc1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("a98fff54",i,!0,{sourceMap:!1,shadowMode:!1})},af38:function(e,t,r){"use strict";r("0072")},afae:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".team-card-wrap[data-v-365ff0ef] .rt-node .node-header.rt-xpc-node-header-medium{padding:0 24px}.team-card-wrap[data-v-365ff0ef] .rt-node .node-header.rt-xpc-node-header-medium .left .node-icon{margin-right:16px}.team-card-wrap[data-v-365ff0ef] .rt-node .node-content{padding:0 24px 16px}.team-advance-group.readonly[data-v-365ff0ef]{pointer-events:none;cursor:not-allowed}.team-advance-group[data-v-365ff0ef] .rt-checkbox-group{margin-left:0}.team-advance-group[data-v-365ff0ef] .rt-checkbox-group .rt-advance-table-item{padding-left:0}.team-advance-group[data-v-365ff0ef] .rt-checkbox-group .rt-advance-table-item .rt-advance-table-item-content{background:#fff}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content{padding:8px 0;border-radius:8px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-wraper{display:flex;align-items:center;justify-content:space-between}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info{display:flex;align-items:center;overflow:hidden}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .rt-avatar--small{min-width:32px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .team-name-wrap{margin-left:8px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .team-role-wrap{display:flex;flex-wrap:wrap;margin-top:4px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .team-name{font-size:14px;color:#0b0c0e;word-break:break-word}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .team-role{margin-right:4px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .roles-select{display:flex;align-items:center;padding:2px 8px;cursor:pointer;border:1px solid #0072e6;border-radius:12px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .roles-select span{margin-right:4px;font-size:10px;color:#0072e6}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .roles-select-active .rt-icon{transform:rotate(180deg)}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-info .team-tag{height:18px;padding:0 8px;font-size:10px;line-height:18px;color:#0072e6;background:#e5f2ff;border-radius:9px}.team-advance-group[data-v-365ff0ef] .rt-advance-table-item-content .team-advance-btn{width:30px;height:30px;text-align:right;cursor:pointer}",""]),e.exports=t},afbd:function(e,t,r){var i=r("977d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("50c40819",i,!0,{sourceMap:!1,shadowMode:!1})},b017:function(e,t,r){"use strict";r("c99f")},b03b:function(e,t,r){"use strict";var i={name:"RtRelationDrawer",props:{visible:{type:Boolean,default:!1},tagData:{type:Object,required:!1},dialogFormId:{type:String}},data:function(){return{drawerVisible:this.visible,titleData:"",dialogFormDataChanged:!1,isOpened:!1,isFullscreen:!1,headerHeight:68,drawerId:""}},watch:{visible:function(e){e?(this.dialogFormDataChanged=!1,this.dialogFormId&&(this.$bus.$on("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$on("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))):(this.isOpened=!1,this.dialogFormId&&(this.$bus.$off("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$off("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))),this.drawerVisible=e},drawerVisible:function(e){this.$emit("update",e,this.tagData)}},created(){this.dialogFormId?this.drawerId=this.dialogFormId:this.drawerId=rt.newUUID(),this.$PlatUtils.listenerHook(this,"schemaLoaded",()=>{const e=document.querySelector(`.relation-drawer[data-drawer-id="${this.drawerId}"] .rt-detail-header`);e&&(this.headerHeight=e.clientHeight,this.$xpc.addResizeObserver(e,this,t=>{t[0].contentRect,this.$nextTick(()=>{this.headerHeight=e.clientHeight})}))},!1)},beforeDestroy(){this.dialogFormId&&(this.$bus.$off("dialogFormDataChange-"+this.dialogFormId,this.dialogFormDataChange),this.$bus.$off("dialogFormDataClose-"+this.dialogFormId,this.dialogFormDataClose))},methods:{hide(){this.$refs.drawer.closeDrawer()},handleDrawerClosed(){this.$emit("closed"),this.$emit("update:visible",!1),this.isFullscreen&&this.exitFullscreen()},toFullscreen(){this.isFullscreen=!0},exitFullscreen(){this.isFullscreen=!1},beforeClose(e){this.dialogFormDataChanged?this.$confirm(this.$_t("unsaved_changes","您有未保存的更改,是否要离开?"),this.$_t("addresslocation.Tipconfirm","确认提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning"}).then(()=>{this.dialogFormDataChanged=!1,e()}).catch(()=>{}):e()},opened(){this.isOpened=!0},dialogFormDataChange(){this.isOpened&&(this.dialogFormDataChanged=!0)},dialogFormDataClose(){this.dialogFormDataChanged=!1}}},a=(r("2a20"),r("0c7c")),n=Object(a.a)(i,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-drawer",e._b({ref:"drawer",staticClass:"relation-drawer",class:{fullscreen:e.isFullscreen},attrs:{"data-drawer-id":e.drawerId,modal:!1,"with-header":!1,visible:e.drawerVisible,size:"65vw","before-close":e.beforeClose},on:{"update:visible":function(t){e.drawerVisible=t},opened:e.opened,closed:e.handleDrawerClosed}},"rc-drawer",e.$attrs,!1),[r("div",{staticClass:"relation-header-wrapper",style:{height:e.headerHeight+"px"}},[r("div",{staticClass:"relation-header"},[r("div",{staticClass:"btn-fullscreen"},[e.isFullscreen?r("rc-tooltip",{attrs:{content:e.$_t("chart.reduce","缩小"),effect:"dark",placement:"bottom"}},[r("rc-button",{attrs:{"icon-name":"plat-icon-exit-full-screen-lined","icon-size":"16",type:"plain",text:""},on:{click:e.exitFullscreen}})],1):r("rc-tooltip",{attrs:{content:e.$_t("common.zoomin","放大"),effect:"dark",placement:"bottom"}},[r("rc-button",{attrs:{"icon-name":"plat-icon-full-screen-lined","icon-size":"16",type:"plain",text:""},on:{click:e.toFullscreen}})],1)],1),r("div",{staticClass:"btn-close"},[r("rc-button",{attrs:{"icon-name":"rt-base-close-x","color-type":"neutral-regular","icon-size":"16",type:"plain",text:""},on:{click:e.hide}})],1)])]),e._t("default")],2)}),[],!1,null,"0be6ae4a",null);t.a=n.exports},b090:function(e,t,r){(t=r("24fb")(!1)).push([e.i,"[data-v-14baabc8] .hasprefixicon input{padding-left:30px}.rt-saas-rang[data-v-14baabc8] .rt-input-shadow{display:none}.rt-view-wrapper .rt-form-item-wrapper .rt-saas-rang>span[data-v-14baabc8]{display:flex;align-items:center}.rt-view-wrapper .rt-form-item-wrapper .rt-saas-rang[data-v-14baabc8] .rt-input{width:50%}",""]),e.exports=t},b1bb:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf"),d=r("6f75");class c extends l.a{constructor(e){super(e)}createVNode(e,t){const r=t.targetComponent,i=new s.e(d.a.Form);i.ref="cardTableForm",i.addAttr("model",r.subgridForm);const a=i.addChildByTag("platCardTable");a.nodeType="platCardTable",a.addProp("dataList",r.tableData),0===r.tableData.length&&e.addClass("cardTableNoData"),a.addProp("targetEntityType",r.targetEntityType),a.addProp("cardTableCol",r.cardTableCol),a.addProp("cardTableRowTitle",r.cardTableRowTitle),a.addProp("formStatus",r.formStatus),a.addProp("fromEntity",r.fromEntity),a.addProp("subgridIsReadonly",r.subgridIsReadonly),a.addProp("hiddenDefaultDiagram",r.hiddenDefaultDiagram),r.attributeMappingCallback&&a.addEventHandler("attributeMappingCallback",r.attributeMappingCallback);const n=this.children.find(e=>e.$nodetype==o.b.cardTableToolbar);n&&!this.isSingleTable(t)&&(this.parentInfo.readonly=r.subgridIsReadonly,n.extendParentInfo(this.parentInfo),a.addProp("toolbarSchema",n)),a.addProp("needjump",r.needjump),r.queryAttributes&&r.queryAttributes.disableJump&&a.addProp("disableJump",r.queryAttributes.disableJump),a.on.gotoCardTableEditPage=r.gotoCardTableEditPage,a.addEventHandler("editByRow",r.editByRow),a.addEventHandler("delByRow",r.delByRow),a.addEventHandler("grantAccessByRow",r.grantAccessByRow),a.addEventHandler("assignByRow",r.assignByRow),a.addEventHandler("showFormDialogByRow",r.showFormDialogByRow),a.addEventHandler("cardTableShowDrawer",r.showDrawer),e.addClass("cardTableWrapper");const l=this.children.reduce((e,t)=>("cardTableCell"===t.$nodetype&&e.push({...t.props,id:t.id,events:t.events}),e),[]);a.addProp("cellList",l),this.initNecessaryInfo(t,l),this.appendNode(e,i,t),this.addChildByPermission(a,t)}initNecessaryInfo(e,t){t.forEach(t=>{const r=e.targetComponent;t.DependentAttributeName&&(r.dependentRelationshipMapping||(r.dependentRelationshipMapping={}),r.dependentRelationshipMapping[t.DependentAttributeName]=t.datafieldname);const i=![o.g.ReadOnly,o.g.CalculateFields].includes(t.RequiredLevel)&&!t.isMask;this.calcEditableFunc?this.calcEditableFunc.call(r)&&i&&r.subgridHasEditableField&&(r.subgridHasEditableField[r.subgridHasEditableField.length]=t.datafieldname):t.ifEditable&&i&&r.subgridHasEditableField&&(r.subgridHasEditableField[r.subgridHasEditableField.length]=t.datafieldname),r.cellFieldInfo||(r.cellFieldInfo={}),r.cellFieldInfo[t.datafieldname]={ifEditableExpression:t.ifEditableExpression,ifEditable:t.ifEditable,isMask:t.isMask,requiredLevel:t.RequiredLevel}})}addChildByPermission(e,t,r){const i=this.children.filter(i=>i.props.availableOnPhone!=o.a.MOBILE&&([o.b.toolbar,o.b.cardTableToolbar].includes(i.$nodetype)?void 0:!this.calcHidden(i,t)&&(i.extendParentInfo(this.parentInfo),r?i.createVNode(e,t,r):i.createVNode(e,t),!0)));t.PageStatus==o.d.print||i.length||-1===[o.b.SubGrid,o.b.toolbar].indexOf(this.$nodetype)&&(e.isChildrenEmpty=!0)}}i=c,a="$bindNodeType",n=o.b.cardTable,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},b1bd:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-vform-print[data-v-1d979c8a]{height:100vh;overflow:auto}.plat-vform-print[data-v-1d979c8a] .list-table.plat-list-table .rt-table-content .cell .cellContent{width:100%;overflow:unset;text-overflow:unset;white-space:unset}.plat-vform-print[data-v-1d979c8a] .rt-attachment.plat-attachment .isPrint .isPrintItem .image-tip{display:inline-block;overflow:inherit;line-height:20px;text-overflow:inherit;word-break:break-word;white-space:pre-line}.plat-vform-print .plat-vform-printBtn[data-v-1d979c8a]{padding:16px;text-align:right}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rc-special-columns .el-col{min-height:50px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:first-child .el-form-item__content span{width:100%;white-space:unset}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:first-child>div{display:flex;align-items:center;height:96px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(2) .rt-card.no-margin-card .rc-section{padding-top:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(2) .rt-card.no-margin-card .rc-section .el-form-item__content{line-height:unset}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(3)>div{position:relative;height:96px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(3)>div .rt-defaultImage{position:unset}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(3)>div .rt-defaultImage .describe{position:absolute;top:0;right:0;bottom:0;left:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:nth-child(3)>div .rt-defaultImage .describe img{width:100%;height:100%;-o-object-fit:fill;object-fit:fill}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col:not(:nth-child(2)){padding:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col>div{box-sizing:border-box;height:95px;margin-top:20px;border:1px solid #999}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col>div .el-form-item{margin-top:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col .rt-section{border:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-content-main>.el-row:first-child>.el-col img{width:100%;height:100%}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .el-form{background:#fff}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-header{display:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-card{width:100%;margin:12px 0;box-shadow:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-card .rt-subgrid-wrapper{padding-bottom:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-card .innerbox.rt-subgrid-wrapper{min-height:150px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns{margin-top:16px;box-shadow:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col{margin-right:8px;margin-left:8px;background:#fff;border:1px solid #999}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-form-item-wrapper:first-of-type{margin-top:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-form-item-wrapper{display:flex;align-items:flex-end;margin-top:8px;margin-right:16px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-form-item-wrapper .el-form-item__label{padding:0;text-align:left}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-section,.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-section .el-col{border:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-section .el-col .rt-form-item-wrapper:first-of-type{margin-top:8px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-section .el-col .rt-form-item-wrapper{display:flex;align-items:flex-end;margin-top:8px;margin-right:16px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-section .el-col .rt-form-item-wrapper .el-form-item__label{padding:0;text-align:left}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-saas-columns .el-col .rt-card{margin-top:0}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section{padding-top:1px;border:1px solid #999}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section .caret-wrapper{display:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section .section-header{height:40px;padding-left:12px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section .section-header .section-icon{display:none}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section .section-body{min-height:0;padding-bottom:8px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .rt-section .section-body .rt-form-wrapper{padding:0 8px 8px}.plat-vform-print .vformprint.onlyprint[data-v-1d979c8a] .apaas-vform-content>.rt-content-main .apaas-card:not(.rc-columns){border:1px solid #999}.plat-vform-print .vformprint.onlyprint .rt-input-shadow[data-v-1d979c8a]{height:0}.plat-vform-print[data-v-1d979c8a] .rt-section,.plat-vform-print[data-v-1d979c8a] .rt-section .rt-advance-table-item-content{page-break-inside:avoid}.plat-vform-print[data-v-1d979c8a] .rc-columns .el-col{margin-bottom:0;overflow:hidden}.plat-vform-print[data-v-1d979c8a] .apaas-vform-form .apaas-row{background-color:unset}",""]),e.exports=t},b222:function(e,t,r){"use strict";r("ae6b")},b262:function(e,t,r){"use strict";r("a636")},b266:function(e,t,r){"use strict";r("664c")},b2c6:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof self&&self,factory=function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(i,a,function(t){return e[t]}.bind(null,a));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"0024":function(e,t,r){var i=r("6a32");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("016ed073",i,!0,{sourceMap:!1,shadowMode:!1})},"01ec":function(e,t,r){var i=r("7479");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("74059d6c",i,!0,{sourceMap:!1,shadowMode:!1})},"05fe":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".usersetting-person[data-v-6a3b0e38] .el-dialog .el-dialog__body{padding:20px}.usersetting-person .usersetting-card[data-v-6a3b0e38]{margin-bottom:0}.usersetting-person .usersetting-card .userSetting.plat-user-setting .time-zonecode[data-v-6a3b0e38] input{padding-left:8px}.usersetting-person .usersetting-card .userSetting.plat-user-setting .time-zonecode[data-v-6a3b0e38] .el-input__suffix .el-input__suffix-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.usersetting-person .usersetting-card .userSetting.plat-user-setting[data-v-6a3b0e38] .el-form-item__label{color:#555;line-height:20px;padding:0 12px 0 0;position:relative}.usersetting-person .usersetting-card .userSetting.plat-user-setting[data-v-6a3b0e38] .el-form-item.is-error .el-input__inner{border-color:#d54d47}.usersetting-person .usersetting-card .userSetting.plat-user-setting .usersetting-timezonecode[data-v-6a3b0e38]{margin-top:0}",""]),e.exports=t},"0614":function(e,t,r){var i=r("94f6");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("3f0f6133",i,!0,{sourceMap:!1,shadowMode:!1})},"078c":function(e,t,r){var i=r("8266");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("11720644",i,!0,{sourceMap:!1,shadowMode:!1})},"0b15":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".help-operate-list[data-v-925c41c8]{list-style:none;margin:0;padding:8px}.help-operate-item[data-v-925c41c8]{width:258px;border:1px solid transparent;border-radius:8px;padding:8px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;position:relative}.help-operate-item+.help-operate-item[data-v-925c41c8]{margin-top:8px}.help-operate-item[data-v-925c41c8]:hover{border-color:#5182ef}.help-operate-item:hover .help-operate-title[data-v-925c41c8]{color:#5182ef}.help-operate-item.guide[data-v-925c41c8]{min-height:88px;background:-webkit-gradient(linear,left top,left bottom,from(#e0efff),to(#e6f2ff));background:linear-gradient(180deg,#e0efff,#e6f2ff)}.help-operate-item.guide .picture[data-v-925c41c8]{width:80px;height:80px;background:url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_guide_toy.png) no-repeat 50%/contain;position:absolute;right:8px;bottom:0}.help-operate-item.guide .help-operate-desc[data-v-925c41c8]{padding-right:76px}.help-operate-item.sample[data-v-925c41c8]{min-height:56px;background:url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_demo_bg.png) no-repeat 50%/cover}.help-operate-item.sample .picture[data-v-925c41c8]{width:50px;height:40px;background:url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_demo_logo.png) no-repeat 50%/contain;position:absolute;right:12px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.help-operate-item .help-operate-icon[data-v-925c41c8]{width:40px;height:40px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:#f0f2f4;border-radius:8px}.help-operate-item .help-operate-content[data-v-925c41c8],.help-operate-item .help-operate-icon[data-v-925c41c8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;justify-content:center}.help-operate-item .help-operate-content[data-v-925c41c8]{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;margin-left:8px}.help-operate-title[data-v-925c41c8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;font-weight:600;color:#0b0c0e;line-height:20px}.help-operate-title .ic-new[data-v-925c41c8]{width:24px;height:12px;margin-left:4px}.help-operate-desc[data-v-925c41c8]{font-size:12px;font-weight:400;color:#788796;line-height:17px;margin-top:3px;word-break:break-word;text-align:left}",""]),e.exports=t},"0bfa":function(e,t,r){var i={"./sysapp.svg":"7b54"};function a(e){var t=n(e);return r(t)}function n(e){if(!r.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=n,e.exports=a,a.id="0bfa"},"21a1":function(e,t,r){(function(t){var r;r=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var r=e((function(e,t){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,r){var a;return r&&!0===r.clone&&e(t)?i((a=t,Array.isArray(a)?[]:{}),t,r):t}function r(r,a,n){var o=r.slice();return a.forEach((function(a,s){void 0===o[s]?o[s]=t(a,n):e(a)?o[s]=i(r[s],a,n):-1===r.indexOf(a)&&o.push(t(a,n))})),o}function i(a,n,o){var s=Array.isArray(n),l=(o||{arrayMerge:r}).arrayMerge||r;return s?Array.isArray(a)?l(a,n,o):t(n,o):function(r,a,n){var o={};return e(r)&&Object.keys(r).forEach((function(e){o[e]=t(r[e],n)})),Object.keys(a).forEach((function(s){e(a[s])&&r[s]?o[s]=i(r[s],a[s],n):o[s]=t(a[s],n)})),o}(a,n,o)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,r){return i(e,r,t)}))},i}()})),i=e((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),a=i.svg,n=i.xlink,o={};o[a.name]=a.uri,o[n.name]=n.uri;var s,l=function(e,t){return void 0===e&&(e=""),""+e+""},d=i.svg,c=i.xlink,u={attrs:(s={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},s[d.name]=d.uri,s[c.name]=c.uri,s)},p=function(e){this.config=r(u,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this.symbols,r=this.find(e.id);return r?(t[t.indexOf(r)]=e,!1):(t.push(e),!0)},p.prototype.remove=function(e){var t=this.symbols,r=this.find(e);return!!r&&(t.splice(t.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config.attrs,t=this.symbols.map((function(e){return e.stringify()})).join("");return l(t,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var h=function(e){var t=e.id,r=e.viewBox,i=e.content;this.id=t,this.viewBox=r,this.content=i};h.prototype.stringify=function(){return this.content},h.prototype.toString=function(){return this.stringify()},h.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var f=function(e){var t=!!document.importNode,r=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(r,!0):r},m=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,r=this.render();return this.node=r,t.appendChild(r),r},t.prototype.render=function(){var e=this.stringify();return f(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(h),g={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(e){return Array.prototype.slice.call(e,0)},y=function(){return/firefox/i.test(navigator.userAgent)},v=function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},x=function(){return/edge/i.test(navigator.userAgent)},w=function(e){return(e||window.location.href).split("#")[0]},_=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,r,i){!function(e,t){var r=document.createEvent("CustomEvent");r.initCustomEvent(e,!1,!1,t),window.dispatchEvent(r)}(e,{oldUrl:i,newUrl:r})}))}])},E=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern, mask, clipPath"),b(e.querySelectorAll("symbol")).forEach((function(e){b(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e},C=i.xlink.uri,N=/[{}|\\\^\[\]`"<>]/g;function S(e){return e.replace(N,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}var T,k=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],O=k.map((function(e){return"["+e+"]"})).join(","),I=function(e,t,r,i){var a=S(r),n=S(i);(function(e,t){return b(e).reduce((function(e,r){if(!r.attributes)return e;var i=b(r.attributes),a=t?i.filter(t):i;return e.concat(a)}),[])})(e.querySelectorAll(O),(function(e){var t=e.localName,r=e.value;return-1!==k.indexOf(t)&&-1!==r.indexOf("url("+a)})).forEach((function(e){return e.value=e.value.replace(new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),n)})),function(e,t,r){b(e).forEach((function(e){var i=e.getAttribute("xlink:href");if(i&&0===i.indexOf(t)){var a=i.replace(t,r);e.setAttributeNS(C,"xlink:href",a)}}))}(t,a,n)},D="mount",A="symbol_mount",M=function(e){function t(t){var i=this;void 0===t&&(t={}),e.call(this,r(g,t));var a,n=(a=a||Object.create(null),{on:function(e,t){(a[e]||(a[e]=[])).push(t)},off:function(e,t){a[e]&&a[e].splice(a[e].indexOf(t)>>>0,1)},emit:function(e,t){(a[e]||[]).map((function(e){e(t)})),(a["*"]||[]).map((function(r){r(e,t)}))}});this._emitter=n,this.node=null;var o=this.config;if(o.autoConfigure&&this._autoConfigure(t),o.syncUrlsWithBaseTag){var s=document.getElementsByTagName("base")[0].getAttribute("href");n.on(D,(function(){return i.updateUrls("#",s)}))}var l=this._handleLocationChange.bind(this);this._handleLocationChange=l,o.listenLocationChangeEvent&&window.addEventListener(o.locationChangeEvent,l),o.locationChangeAngularEmitter&&_(o.locationChangeEvent),n.on(D,(function(e){o.moveGradientsOutsideSymbol&&E(e)})),n.on(A,(function(e){var t;o.moveGradientsOutsideSymbol&&E(e.parentNode),(v()||x())&&(t=[],b(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})))}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this.config;void 0===e.syncUrlsWithBaseTag&&(t.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(t.locationChangeAngularEmitter=void 0!==window.angular),void 0===e.moveGradientsOutsideSymbol&&(t.moveGradientsOutsideSymbol=y())},t.prototype._handleLocationChange=function(e){var t=e.detail,r=t.oldUrl,i=t.newUrl;this.updateUrls(r,i)},t.prototype.add=function(t){var r=e.prototype.add.call(this,t);return this.isMounted&&r&&(t.mount(this.node),this._emitter.emit(A,t.node)),r},t.prototype.attach=function(e){var t=this,r=this;if(r.isMounted)return r.node;var i="string"==typeof e?document.querySelector(e):e;return r.node=i,this.symbols.forEach((function(e){e.mount(r.node),t._emitter.emit(A,e.node)})),b(i.querySelectorAll("symbol")).forEach((function(e){var t=m.createFromExistingNode(e);t.node=e,r.add(t)})),this._emitter.emit(D,i),i},t.prototype.destroy=function(){var e=this.config,t=this.symbols,r=this._emitter;t.forEach((function(e){return e.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){if(void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1),this.isMounted)return this.node;var r="string"==typeof e?document.querySelector(e):e,i=this.render();return this.node=i,t&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(D,i),i},t.prototype.render=function(){return f(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var r=document.querySelectorAll(this.config.usagesToUpdate);return I(this.node,r,w(e)+"#",w(t)+"#"),!0},Object.defineProperties(t.prototype,i),t}(p),L=e((function(e){var t,r,i,a,n;e.exports=(r=[],i=document,a=i.documentElement.doScroll,(n=(a?/^loaded|^c/:/^loaded|^i|^c/).test(i.readyState))||i.addEventListener("DOMContentLoaded",t=function(){for(i.removeEventListener("DOMContentLoaded",t),n=1;t=r.shift();)t()}),function(e){n?setTimeout(e,0):r.push(e)})}));window.__SVG_SPRITE__?T=window.__SVG_SPRITE__:(T=new M({attrs:{id:"__SVG_SPRITE_NODE__","aria-hidden":"true"}}),window.__SVG_SPRITE__=T);var R=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?T.attach(e):T.mount(document.body,!0)};return document.body?R():L(R),T},e.exports=r()}).call(this,r("c8ba"))},"24fb":function(e,t,r){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=function(e,t){var r,i,a,n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var s=(r=o,i=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(a," */")),l=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[n].concat(l).concat([s]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r})).join("")},t.i=function(e,r,i){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(i)for(var n=0;nr.parts.length&&(i.parts.length=r.parts.length)}else{var o=[];for(a=0;a.aside{height:100%}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu-vertical-demo:not(.el-menu--collapse){width:200px;min-height:400px}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse{width:68px}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-submenu{position:relative}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-submenu .el-submenu__title{padding:0 20px;padding-left:14px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-submenu .el-submenu__title .menu-title{display:none}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-submenu .el-submenu__title .isCollapseSpan{overflow:hidden;visibility:visible;display:inline-block;color:hsla(0,0%,100%,.65)}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item .el-tooltip,.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item .el-tooltip .collapse-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item .el-tooltip .collapse-icon{height:100%;width:100%;line-height:22px;visibility:visible}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item .el-tooltip .collapse-icon img{height:22px;width:22px}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item.is-active{background-color:transparent;color:#ccc}.global-nav[data-v-a6b36652] .el-scrollbar .el-menu--collapse .el-menu-item.is-active img{opacity:1}.global-nav[data-v-a6b36652] .el-scrollbar .is-opened .icon{color:#fff}.global-nav[data-v-a6b36652] .el-scrollbar .crm-submenu .rt-saas-icon,.global-nav[data-v-a6b36652] .el-scrollbar .rt-saas-icon{margin-top:-7px;position:absolute;opacity:.65}.global-nav[data-v-a6b36652] .el-scrollbar .submenu-icon .el-submenu__icon-arrow{display:none;margin-top:0}.global-nav[data-v-a6b36652] .search-menu{padding:12px 8px}.global-nav[data-v-a6b36652] .search-menu .el-input,.global-nav[data-v-a6b36652] .search-menu .el-input__suffix{display:-webkit-box;display:-ms-flexbox;display:flex}.global-nav[data-v-a6b36652] .search-menu .el-input__suffix{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav[data-v-a6b36652] .search-menu input:focus+.el-input__suffix .el-icon-circle-close{color:#1890ff}.global-nav[data-v-a6b36652] .search-menu input+.el-input__suffix .el-input__suffix-inner{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav[data-v-a6b36652] .search-menu .el-input__inner{height:32px;line-height:32px;font-size:14px;border:none}.global-nav[data-v-a6b36652] .search-menu .el-input__inner:focus{background-color:transparent;-webkit-box-shadow:0 0 4px 1px rgba(24,144,255,.69);box-shadow:0 0 4px 1px rgba(24,144,255,.69);border:none}.global-nav[data-v-a6b36652] .search-menu .rt-saas-icon{top:5px;height:16px;position:relative}.global-nav .search-menu-collapse[data-v-a6b36652]{margin:12px auto;position:relative;width:32px;height:32px;border-radius:2px}.global-nav .search-menu-collapse[data-v-a6b36652],.global-nav .search-menu-collapse .rt-icon[data-v-a6b36652]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav .sass-logo[data-v-a6b36652],.global-nav .sass-logo-collapse[data-v-a6b36652]{height:40px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.global-nav .sass-logo-collapse .logo-img[data-v-a6b36652],.global-nav .sass-logo .logo-img[data-v-a6b36652]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain;-o-object-position:center center;object-position:center center}.global-submenu[data-v-a6b36652] .el-scrollbar .el-menu-item,.global-submenu[data-v-a6b36652] .el-scrollbar .el-submenu,.global-submenu[data-v-a6b36652] .el-scrollbar .el-submenu__title{height:48px;line-height:48px}.global-submenu[data-v-a6b36652] .el-scrollbar .config-center-submenu-div span,.global-submenu[data-v-a6b36652] .el-scrollbar .el-submenu__title span{margin-left:0}.global-submenu[data-v-a6b36652] .el-scrollbar .config-center-submenu-div i,.global-submenu[data-v-a6b36652] .el-scrollbar .el-submenu__title i{margin-right:0}.global-submenu[data-v-a6b36652] .el-scrollbar .el-submenu.is-opened .el-submenu__title .el-submenu__icon-arrow{-webkit-transform:none;transform:none}.global-submenu[data-v-a6b36652] .el-scrollbar .el-menu-item.is-active{background:none}.plat-mainapp-nav[data-v-a6b36652],.plat-nav[data-v-a6b36652]{position:relative}.plat-mainapp-nav .bottom-setting .settingIsCollapse .settingWrap .settingIcon[data-v-a6b36652],.plat-nav .bottom-setting .settingIsCollapse .settingWrap .settingIcon[data-v-a6b36652]{float:left;margin-left:96px}.plat-mainapp-nav .bottom-setting .settingBorder[data-v-a6b36652],.plat-nav .bottom-setting .settingBorder[data-v-a6b36652]{background:linear-gradient(-244deg,#fff,hsla(0,0%,100%,0))}.plat-mainapp-nav .search-menu-collapse[data-v-a6b36652],.plat-nav .search-menu-collapse[data-v-a6b36652]{background-color:hsla(0,0%,100%,.15)}.plat-mainapp-nav[data-v-a6b36652] .search-menu .searchIconFocus,.plat-nav[data-v-a6b36652] .search-menu .searchIconFocus{color:#2563eb}.plat-mainapp-nav[data-v-a6b36652] .search-menu .searchIcon,.plat-nav[data-v-a6b36652] .search-menu .searchIcon{color:#a9c2e8}.plat-mainapp-nav[data-v-a6b36652] .search-menu .el-input__inner,.plat-nav[data-v-a6b36652] .search-menu .el-input__inner{background-color:hsla(0,0%,100%,.15);color:#fff}.plat-mainapp-nav[data-v-a6b36652] .search-menu .el-input__inner:focus,.plat-nav[data-v-a6b36652] .search-menu .el-input__inner:focus{color:#fff}.plat-mainapp-nav .side-logo-box[data-v-a6b36652],.plat-nav .side-logo-box[data-v-a6b36652]{height:64px}.plat-mainapp-nav[data-v-a6b36652] .el-menu,.plat-nav[data-v-a6b36652] .el-menu{background-color:#001529}.plat-mainapp-nav[data-v-a6b36652] .el-menu .el-submenu:hover,.plat-nav[data-v-a6b36652] .el-menu .el-submenu:hover{background:#000c17}.plat-mainapp-nav[data-v-a6b36652] .el-menu.el-menu--collapse.aside .el-submenu.is-active,.plat-nav[data-v-a6b36652] .el-menu.el-menu--collapse.aside .el-submenu.is-active{background-color:#2563eb}.plat-mainapp-nav[data-v-a6b36652] .el-menu.el-menu--collapse.aside .el-submenu.is-active .el-submenu__title,.plat-nav[data-v-a6b36652] .el-menu.el-menu--collapse.aside .el-submenu.is-active .el-submenu__title{opacity:1}.plat-mainapp-nav[data-v-a6b36652] .el-menu--collapse .el-submenu:hover,.plat-nav[data-v-a6b36652] .el-menu--collapse .el-submenu:hover{background:#000c17}.plat-mainapp-nav[data-v-a6b36652] .el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow,.plat-nav[data-v-a6b36652] .el-menu--collapse .el-submenu.is-opened>.el-submenu__title .el-submenu__icon-arrow{-webkit-transform:none;transform:none}.plat-mainapp-nav[data-v-a6b36652] .el-menu--collapse .el-submenu.is-active img,.plat-nav[data-v-a6b36652] .el-menu--collapse .el-submenu.is-active img{opacity:1}.plat-mainapp-nav[data-v-a6b36652] .el-menu--collapse .el-menu-item .el-tooltip,.plat-nav[data-v-a6b36652] .el-menu--collapse .el-menu-item .el-tooltip{padding:20px;top:-11px}.plat-mainapp-nav .crm-submenu .menu-item-icon[data-v-a6b36652],.plat-mainapp-nav .menu-item-icon[data-v-a6b36652],.plat-nav .crm-submenu .menu-item-icon[data-v-a6b36652],.plat-nav .menu-item-icon[data-v-a6b36652]{float:left;width:8px;height:8px;margin-right:5px;font-size:20px;color:#fff;opacity:.65;margin-top:19px;margin-left:-4px}.plat-mainapp-nav .el-submenu__title i[data-v-a6b36652],.plat-nav .el-submenu__title i[data-v-a6b36652]{color:#fff}.plat-mainapp-nav .el-menu .el-menu-item.is-active[data-v-a6b36652],.plat-nav .el-menu .el-menu-item.is-active[data-v-a6b36652]{background-color:#2563eb;color:#fff;opacity:1}.plat-mainapp-nav .el-menu-item[data-v-a6b36652],.plat-nav .el-menu-item[data-v-a6b36652]{height:48px;line-height:48px;color:#fff;opacity:.65}.plat-mainapp-nav .el-menu-item span[data-v-a6b36652]:first-child,.plat-nav .el-menu-item span[data-v-a6b36652]:first-child{padding-right:5px}.plat-mainapp-nav .el-menu-item.is-active .config-center-submenu-div .menu-item-icon[data-v-a6b36652],.plat-mainapp-nav .el-menu-item:hover>span>img[data-v-a6b36652],.plat-nav .el-menu-item.is-active .config-center-submenu-div .menu-item-icon[data-v-a6b36652],.plat-nav .el-menu-item:hover>span>img[data-v-a6b36652]{opacity:1}.plat-mainapp-nav .el-menu-item:hover>.el-submenu__icon-arrow[data-v-a6b36652],.plat-nav .el-menu-item:hover>.el-submenu__icon-arrow[data-v-a6b36652]{color:#fff;opacity:1}.plat-mainapp-nav .el-menu-item[data-v-a6b36652]:hover,.plat-nav .el-menu-item[data-v-a6b36652]:hover{color:#fff;opacity:1;background:unset}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title{height:48px;line-height:48px;color:#fff;opacity:.65}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title .menu-item-icon,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title .menu-item-icon{margin-top:20px}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title .rt-icon.el-submenu__icon-arrow,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title .rt-icon.el-submenu__icon-arrow{display:block;top:39%}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover>span>img,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover>span>img{opacity:1}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover>.el-submenu__icon-arrow,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover>.el-submenu__icon-arrow{color:#fff;opacity:1}.plat-mainapp-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover,.plat-nav .el-submenu[data-v-a6b36652] .el-submenu__title:hover{color:#fff;opacity:1;background:unset}.plat-mainapp-nav .el-submenu:hover>span>img[data-v-a6b36652],.plat-nav .el-submenu:hover>span>img[data-v-a6b36652]{opacity:1}.plat-mainapp-nav .el-submenu:hover>.el-submenu__icon-arrow[data-v-a6b36652],.plat-nav .el-submenu:hover>.el-submenu__icon-arrow[data-v-a6b36652]{color:#fff;opacity:1}.plat-mainapp-nav .el-submenu[data-v-a6b36652]:hover,.plat-nav .el-submenu[data-v-a6b36652]:hover{color:#fff;opacity:1;background:unset}.plat-mainapp-nav .el-submenu.is-opened .el-menu[data-v-a6b36652],.plat-nav .el-submenu.is-opened .el-menu[data-v-a6b36652]{background:#000c17}.plat-mainapp-nav .config-center-submenu-div:hover .menu-item-icon[data-v-a6b36652],.plat-mainapp-nav .submenu-icon:hover .menu-item-icon[data-v-a6b36652],.plat-nav .config-center-submenu-div:hover .menu-item-icon[data-v-a6b36652],.plat-nav .submenu-icon:hover .menu-item-icon[data-v-a6b36652]{opacity:1}.plat-mainapp-nav .layout-appNavListIcon[data-v-a6b36652],.plat-nav .layout-appNavListIcon[data-v-a6b36652]{margin-top:17px;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0;float:left;width:18px;height:18px;margin-right:5px}.plat-mainapp-nav .layout-appNavListIcon img[data-v-a6b36652],.plat-nav .layout-appNavListIcon img[data-v-a6b36652]{width:100%;height:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-top:-3px}.plat-mainapp-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo,.plat-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-mainapp-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer,.plat-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer{overflow:hidden}.plat-mainapp-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting,.plat-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting{-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 4px;position:relative}.plat-mainapp-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingWrap,.plat-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingWrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;height:40px}.plat-mainapp-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingWrap .settingWrap-button .settingWrap-title,.plat-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingWrap .settingWrap-button .settingWrap-title{line-height:16px;height:16px;text-align:center;padding-left:5px;display:inline-block;max-width:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer{width:100%;overflow:unset}.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting{height:100%}.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingIsCollapse .settingWrap,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting .settingIsCollapse .settingWrap{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse;height:100%;gap:5px}.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse,.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse .settingIsCollapse,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse .settingIsCollapse{height:88px}.plat-mainapp-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse .settingIsCollapse .settingWrap,.plat-nav .rtSidebarMenu.is-collapse[data-v-a6b36652] .rt-sidebar-menu-footer .bottom-setting-settingIsCollapse .settingIsCollapse .settingWrap{gap:20px}.plat-center-nav[data-v-a6b36652],.plat-mainapp-center-nav[data-v-a6b36652]{border-right:1px solid #d3d9de}.plat-center-nav .el-submenu.is-opened .el-menu .submenu-icon.el-submenu .el-submenu__title span[data-v-a6b36652],.plat-mainapp-center-nav .el-submenu.is-opened .el-menu .submenu-icon.el-submenu .el-submenu__title span[data-v-a6b36652]{opacity:.65}.plat-center-nav .configCenterLogo[data-v-a6b36652],.plat-mainapp-center-nav .configCenterLogo[data-v-a6b36652]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.plat-center-nav .configCenterLogo .text[data-v-a6b36652],.plat-mainapp-center-nav .configCenterLogo .text[data-v-a6b36652]{width:140px;margin-left:8px}.plat-center-nav .configCenterLogo .thumb[data-v-a6b36652],.plat-mainapp-center-nav .configCenterLogo .thumb[data-v-a6b36652]{height:40px;margin:0}.plat-center-nav .configCenterLogo .rt-icon[data-v-a6b36652]:nth-child(2),.plat-mainapp-center-nav .configCenterLogo .rt-icon[data-v-a6b36652]:nth-child(2){margin-left:8px}.plat-center-nav .configCenterLogo[data-v-a6b36652]:hover,.plat-mainapp-center-nav .configCenterLogo[data-v-a6b36652]:hover{cursor:pointer}.plat-center-nav[data-v-a6b36652] .search-menu .el-input__inner,.plat-mainapp-center-nav[data-v-a6b36652] .search-menu .el-input__inner{background-color:#fff;color:#0b0c0e}.plat-center-nav[data-v-a6b36652] .search-menu .el-input__inner:focus,.plat-mainapp-center-nav[data-v-a6b36652] .search-menu .el-input__inner:focus{color:#0b0c0e}.plat-center-nav .side-logo-box[data-v-a6b36652],.plat-mainapp-center-nav .side-logo-box[data-v-a6b36652]{height:60px}.plat-center-nav .search-menu-collapse[data-v-a6b36652],.plat-mainapp-center-nav .search-menu-collapse[data-v-a6b36652]{background-color:#fff}.plat-center-nav .el-scrollbar .el-menu-item.submenu-name .submenu-name-title[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-menu-item.submenu-name .submenu-name-title[data-v-a6b36652]{padding-left:19px}.plat-center-nav .el-scrollbar .plat-nav-title-span[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .plat-nav-title-span[data-v-a6b36652]{padding-left:25px}.plat-center-nav .el-scrollbar .plat-nav-title-span.submenu-span[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .plat-nav-title-span.submenu-span[data-v-a6b36652]{padding-left:26px}.plat-center-nav .el-scrollbar .layout-appNavListIcon[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .layout-appNavListIcon[data-v-a6b36652]{margin-top:17px;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0;float:left;width:18px;height:18px;margin-right:5px}.plat-center-nav .el-scrollbar .layout-appNavListIcon img[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .layout-appNavListIcon img[data-v-a6b36652]{width:100%;height:100%;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-top:-3px}.plat-center-nav .el-scrollbar .crm-submenu .menu-item-icon[data-v-a6b36652],.plat-center-nav .el-scrollbar .menu-item-icon[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .crm-submenu .menu-item-icon[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .menu-item-icon[data-v-a6b36652]{display:none}.plat-center-nav .el-scrollbar[data-v-a6b36652] .el-menu,.plat-mainapp-center-nav .el-scrollbar[data-v-a6b36652] .el-menu{background:#f4f5f5}.plat-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo,.plat-mainapp-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo{background-color:#f4f5f5}.plat-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo .el-submenu:hover,.plat-mainapp-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo .el-submenu:hover{background:#e0f0ff}.plat-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo.el-menu--collapse .el-submenu.is-active,.plat-mainapp-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo.el-menu--collapse .el-submenu.is-active{background-color:#e0f0ff}.plat-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo.el-menu--collapse .el-submenu.is-active .el-submenu__title,.plat-mainapp-center-nav .el-scrollbar[data-v-a6b36652] .el-menu.el-menu-vertical-demo.el-menu--collapse .el-submenu.is-active .el-submenu__title{opacity:1}.plat-center-nav .el-scrollbar .el-menu-item .layout-appNavListIcon[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-menu-item .layout-appNavListIcon[data-v-a6b36652]{margin-top:23px}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item[data-v-a6b36652]{height:48px;line-height:48px;color:#0b0c0e;opacity:.65}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item .is-active[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item .is-active[data-v-a6b36652]{background-color:#e0f0ff;color:#0058b3;opacity:1}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item span[data-v-a6b36652]:first-child,.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item span[data-v-a6b36652]:first-child{padding-right:5px}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item.is-active[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item.is-active[data-v-a6b36652]{background-color:#e0f0ff;color:#0058b3;opacity:1}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item.is-active .config-center-submenu-div .menu-item-icon[data-v-a6b36652],.plat-center-nav .el-scrollbar .el-submenu .el-menu-item:hover>span>img[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item.is-active .config-center-submenu-div .menu-item-icon[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item:hover>span>img[data-v-a6b36652]{opacity:1}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item:hover>.el-submenu__icon-arrow[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item:hover>.el-submenu__icon-arrow[data-v-a6b36652]{color:#0b0c0e;opacity:1}.plat-center-nav .el-scrollbar .el-submenu .el-menu-item[data-v-a6b36652]:hover,.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu-item[data-v-a6b36652]:hover{color:#0058b3;opacity:1;background:#e0f0ff}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title{height:48px;line-height:48px;color:#0b0c0e}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title .rt-icon.el-submenu__icon-arrow,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title .rt-icon.el-submenu__icon-arrow{display:block;top:38%}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover>span>img,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover>span>img{opacity:1}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover>.el-submenu__icon-arrow,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover>.el-submenu__icon-arrow{color:#0058b3;opacity:1}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652] .el-submenu__title:hover{color:#0058b3;opacity:1;background:unset}.plat-center-nav .el-scrollbar .el-submenu:hover>span>img[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu:hover>span>img[data-v-a6b36652]{opacity:1}.plat-center-nav .el-scrollbar .el-submenu:hover>.el-submenu__icon-arrow[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu:hover>.el-submenu__icon-arrow[data-v-a6b36652]{color:#fff;opacity:1}.plat-center-nav .el-scrollbar .el-submenu[data-v-a6b36652]:hover,.plat-mainapp-center-nav .el-scrollbar .el-submenu[data-v-a6b36652]:hover{color:#fff;opacity:1;background:unset}.plat-center-nav .el-scrollbar .el-submenu .el-menu.el-menu--inline .el-menu-item[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu .el-menu.el-menu--inline .el-menu-item[data-v-a6b36652]{padding-left:65px}.plat-center-nav .el-scrollbar .el-submenu.is-opened .el-menu.el-menu-vertical-demo[data-v-a6b36652],.plat-mainapp-center-nav .el-scrollbar .el-submenu.is-opened .el-menu.el-menu-vertical-demo[data-v-a6b36652]{background:#f4f5f5}.plat-center-nav .el-menu--collapse .el-submenu[data-v-a6b36652],.plat-mainapp-center-nav .el-menu--collapse .el-submenu[data-v-a6b36652]{padding:unset}.plat-center-nav .el-menu--collapse .el-submenu[data-v-a6b36652]:hover,.plat-mainapp-center-nav .el-menu--collapse .el-submenu[data-v-a6b36652]:hover{background:#e0f0ff}.plat-center-nav .el-menu--collapse .el-submenu.is-active[data-v-a6b36652],.plat-mainapp-center-nav .el-menu--collapse .el-submenu.is-active[data-v-a6b36652]{opacity:1}.plat-center-nav .el-menu--collapse .el-menu-item .el-tooltip[data-v-a6b36652],.plat-mainapp-center-nav .el-menu--collapse .el-menu-item .el-tooltip[data-v-a6b36652]{top:-16px}.plat-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo,.plat-mainapp-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.plat-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo .notUrlLogo,.plat-mainapp-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo .notUrlLogo{height:calc(100% - 4px);width:100%;display:-webkit-box;display:-ms-flexbox;display:flex}.plat-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo .notUrlLogo .text,.plat-mainapp-center-nav .rtSidebarMenu[data-v-a6b36652] .rt-sidebar-menu-header .rt-sidebar-menu-header-logo .notUrlLogo .text{margin-left:12px}.crm-submenu .submenu-span[data-v-a6b36652]{float:left;width:77%;overflow:hidden;margin-left:0}.crm-submenu .el-menu.el-menu--popup .el-menu-item[data-v-a6b36652]:hover{color:#303133}.crm-submenu .el-menu.el-menu--popup .el-submenu__icon-arrow[data-v-a6b36652]{display:none;top:50%}.crm-submenu .menu-item-icon[data-v-a6b36652]{display:none}[data-v-a6b36652] .crm-submenu ::v-deep .el-menu div .submenu-icon.el-submenu .config-center-submenu-div,[data-v-a6b36652] .crm-submenu ::v-deep .el-menu div .submenu-icon.el-submenu .el-submenu__title{color:hsla(0,0%,100%,.65)}[data-v-a6b36652] .crm-submenu ::v-deep .el-menu--popup{border-radius:4px;background-color:#001529}[data-v-a6b36652] .crm-submenu ::v-deep .el-menu--popup .el-submenu .el-submenu__title:hover{background-color:#2563eb}[data-v-a6b36652] .crm-submenu ::v-deep .el-menu--popup .el-menu-item{color:hsla(0,0%,100%,.65)}[data-v-a6b36652] .crm-submenu ::v-deep .el-menu--popup .el-menu-item:hover{color:#303133}[data-v-a6b36652] .crm-submenu .config-center-submenu-div,[data-v-a6b36652] .crm-submenu .el-submenu__title{color:hsla(0,0%,100%,.65)}[data-v-a6b36652] .crm-submenu .el-menu-item:focus:not(.is-active),[data-v-a6b36652] .crm-submenu .el-menu-item:hover:not(.is-active),[data-v-a6b36652] .crm-submenu .el-submenu:focus,[data-v-a6b36652] .crm-submenu .el-submenu:hover{background-color:unset}[data-v-a6b36652] .crm-submenu .el-menu-item:focus:not(.is-active),[data-v-a6b36652] .crm-submenu .el-menu-item:focus:not(.is-active) .config-center-submenu-div,[data-v-a6b36652] .crm-submenu .el-menu-item:focus:not(.is-active) .el-submenu__title span,[data-v-a6b36652] .crm-submenu .el-menu-item:hover:not(.is-active),[data-v-a6b36652] .crm-submenu .el-menu-item:hover:not(.is-active) .config-center-submenu-div,[data-v-a6b36652] .crm-submenu .el-menu-item:hover:not(.is-active) .el-submenu__title span,[data-v-a6b36652] .crm-submenu .el-submenu:focus,[data-v-a6b36652] .crm-submenu .el-submenu:focus .config-center-submenu-div,[data-v-a6b36652] .crm-submenu .el-submenu:focus .el-submenu__title span,[data-v-a6b36652] .crm-submenu .el-submenu:hover,[data-v-a6b36652] .crm-submenu .el-submenu:hover .config-center-submenu-div,[data-v-a6b36652] .crm-submenu .el-submenu:hover .el-submenu__title span{color:#fff}.config-center-submenu .submenu-span[data-v-a6b36652]{float:left;width:77%;overflow:hidden;margin-left:0}.config-center-submenu .el-menu div .el-menu-item.menu-name .config-center-submenu-div[data-v-a6b36652],.config-center-submenu .el-menu div .submenu-icon.el-submenu .el-submenu__title[data-v-a6b36652]{color:#0b0c0e}.config-center-submenu .el-menu--popup[data-v-a6b36652]{border-radius:4px;background-color:#f4f5f5}.config-center-submenu .el-menu--popup .el-submenu .el-submenu__title[data-v-a6b36652]:hover{background-color:#e0f0ff}.config-center-submenu .el-menu--popup .el-menu-item[data-v-a6b36652]{color:#0b0c0e}.config-center-submenu .config-center-submenu-div .rt-icon[data-v-a6b36652],.config-center-submenu .el-submenu__title .el-submenu__icon-arrow.el-icon-arrow-right[data-v-a6b36652],.config-center-submenu .el-submenu__title .rt-icon[data-v-a6b36652]{display:none}.config-center-submenu .el-menu.el-menu--popup .el-menu-item[data-v-a6b36652]:focus:not(.is-active),.config-center-submenu .el-menu.el-menu--popup .el-menu-item[data-v-a6b36652]:hover:not(.is-active),.config-center-submenu .el-menu.el-menu--popup .el-submenu[data-v-a6b36652]:focus,.config-center-submenu .el-menu.el-menu--popup .el-submenu[data-v-a6b36652]:hover{background-color:unset}.config-center-submenu .el-menu.el-menu--popup .el-menu-item[data-v-a6b36652]:focus:not(.is-active),.config-center-submenu .el-menu.el-menu--popup .el-menu-item:focus:not(.is-active) .config-center-submenu-div[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-menu-item:focus:not(.is-active) .el-submenu__title .rt-icon.menu-item-icon+span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-menu-item:focus:not(.is-active)>span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-menu-item[data-v-a6b36652]:hover:not(.is-active),.config-center-submenu .el-menu.el-menu--popup .el-menu-item:hover:not(.is-active) .config-center-submenu-div[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-menu-item:hover:not(.is-active) .el-submenu__title .rt-icon.menu-item-icon+span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-menu-item:hover:not(.is-active)>span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu[data-v-a6b36652]:focus,.config-center-submenu .el-menu.el-menu--popup .el-submenu:focus .config-center-submenu-div[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu:focus .el-submenu__title .rt-icon.menu-item-icon+span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu:focus>span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu[data-v-a6b36652]:hover,.config-center-submenu .el-menu.el-menu--popup .el-submenu:hover .config-center-submenu-div[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu:hover .el-submenu__title .rt-icon.menu-item-icon+span[data-v-a6b36652],.config-center-submenu .el-menu.el-menu--popup .el-submenu:hover>span[data-v-a6b36652]{color:#0058b3}.loading-cover[data-v-a6b36652]{width:100%;height:100%;position:absolute;top:0;z-index:999;cursor:no-drop}.rt-sidebar-menu-header-logo .logoImg[data-v-a6b36652]{width:196px;height:40px}.rt-sidebar-menu-header-logo .logoImgFold[data-v-a6b36652]{width:45px;height:40px}.sysapp[data-v-a6b36652]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 16px}.sysapp[data-v-a6b36652],.sysapp .sysapp-select[data-v-a6b36652]{display:-webkit-box;display:-ms-flexbox;display:flex}.sysapp .sysapp-select[data-v-a6b36652]{padding:0 10px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:196px;height:40px;border-radius:8px;border:1px solid gba(255,255,255,.15);background-color:hsla(0,0%,100%,.1)}.sysapp .sysapp-select .el-popover__reference-wrapper[data-v-a6b36652]{width:100%}.sysapp .sysapp-select .rt-icon[data-v-a6b36652]{vertical-align:middle}.sysapp .sysapp-select .sysapp-title[data-v-a6b36652]{color:#fff;vertical-align:middle}.bottom-setting[data-v-a6b36652]{height:40px;vertical-align:middle}.bottom-setting .settingWrap-button[data-v-a6b36652]{display:-webkit-box;display:-ms-flexbox;display:flex;opacity:.65;font-size:14px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:calc(50% - 6px);height:100%}.bottom-setting .settingWrap-button[data-v-a6b36652]:hover{opacity:1;cursor:pointer}.rtSidebarMenu-settingIsCollapse[data-v-a6b36652] .rt-sidebar-menu-footer{height:88px}",""]),e.exports=t},"6a32":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".dialog-iconentrance[data-v-d8c0f7a8] .el-dialog{height:65%}.dialog-iconentrance[data-v-d8c0f7a8] .el-dialog .el-dialog__body{overflow:unset}.dialog-iconentrance[data-v-d8c0f7a8] .el-dialog .el-dialog__body .rt-dialog-content-wrapper,.dialog-iconentrance[data-v-d8c0f7a8] .el-dialog .el-dialog__body .rt-dialog-content-wrapper .dialog-iconentrance-iframe{width:100%;height:100%}",""]),e.exports=t},"6f7a":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-appHeader[data-v-925c41c8],.plat-mainapp-appHeader[data-v-925c41c8]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#fff;position:relative;z-index:30;height:48px;border-bottom:1px solid #f6f7f8}.plat-appHeader .iconColor .username[data-v-925c41c8],.plat-mainapp-appHeader .iconColor .username[data-v-925c41c8]{color:#363d44}.plat-appHeader .header-help[data-v-925c41c8],.plat-mainapp-appHeader .header-help[data-v-925c41c8]{width:48px;height:48px;line-height:48px;cursor:pointer;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .header-help[data-v-925c41c8]:hover,.plat-mainapp-appHeader .header-help[data-v-925c41c8]:hover{background:#f5f7fa}.plat-appHeader .header-help[data-v-925c41c8] .el-popover__reference-wrapper,.plat-mainapp-appHeader .header-help[data-v-925c41c8] .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .el-popover.el-popper .drop-item[data-v-925c41c8]:not(:last-child),.plat-mainapp-appHeader .el-popover.el-popper .drop-item[data-v-925c41c8]:not(:last-child){color:#6388c2;text-align:center;padding:8px 16px;cursor:pointer}.plat-appHeader .layout-appHeader-title[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title[data-v-925c41c8]{color:#4e5969;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.plat-appHeader .layout-appHeader-title .header-toggle[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-toggle[data-v-925c41c8]{float:left;height:48px;width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .layout-appHeader-title .header-toggle span[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-toggle span[data-v-925c41c8]{cursor:pointer}.plat-appHeader .layout-appHeader-title .header-slot[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-slot[data-v-925c41c8]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.plat-appHeader .layout-appHeader-title .header-right-menu[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu[data-v-925c41c8]{float:right;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.plat-appHeader .layout-appHeader-title .header-right-menu .prefix-slot[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .suffix-slot[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .prefix-slot[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .suffix-slot[data-v-925c41c8]{float:right;line-height:48px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8]{height:48px;padding-left:12px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8] .rt-icon,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8] .rt-icon{display:none}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8] .rt-button-text,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8] .rt-button-text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:48px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .username[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .username[data-v-925c41c8]{font-size:14px;color:#363d44;cursor:pointer}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .avatar[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .avatar[data-v-925c41c8]{width:34px;height:34px;border-radius:50%;margin-right:10px;cursor:pointer;-o-object-fit:cover;object-fit:cover}.plat-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8]{line-height:50px;cursor:pointer;position:relative;width:48px;height:48px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8] .iconColor,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8] .iconColor{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-lang[data-v-925c41c8]:hover{background:#f5f7fa}.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance[data-v-925c41c8]{cursor:pointer;position:relative;font-size:14px;height:48px;width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance span[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance span[data-v-925c41c8]{cursor:pointer;float:left;padding-left:15px;height:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance span[data-v-925c41c8]:last-child,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance span[data-v-925c41c8]:last-child{padding:0}.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance[data-v-925c41c8]:hover{background:#f5f7fa}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content[data-v-925c41c8]{min-height:240px;padding:0 16px;overflow:auto;max-height:448px}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content img[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content img[data-v-925c41c8]{width:100%}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8]{height:80px;padding:16px 18px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 -16px;max-height:80px}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8] .help-item-title,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8] .help-item-title{margin-bottom:8px;color:#143e81;font-size:16px;font-family:MicrosoftYaHei}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item[data-v-925c41c8]:hover{background:#e6f1fd;cursor:pointer}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content[data-v-925c41c8]{color:#6388c2;max-height:18px}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content h1[data-v-925c41c8]:first-child,.plat-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-title[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-content h1[data-v-925c41c8]:first-child,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content .help-item .help-item-title[data-v-925c41c8]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content-detail[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content-detail[data-v-925c41c8]{padding-top:16px}.plat-appHeader .layout-appHeader-title .header-right-menu .help-content-detail h1[data-v-925c41c8]:first-child,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .help-content-detail h1[data-v-925c41c8]:first-child{font-size:16px;font-family:MicrosoftYaHei-Bold,MicrosoftYaHei;font-weight:700;color:#143e81;line-height:21px;margin-bottom:8px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-news[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-news[data-v-925c41c8]{width:48px;height:48px;line-height:48px;cursor:pointer;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.plat-appHeader .layout-appHeader-title .header-right-menu .header-news[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-news[data-v-925c41c8]:hover{background:#f5f7fa}.plat-appHeader .layout-appHeader-title .header-right-menu .header-news .hasNotification[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-news .hasNotification[data-v-925c41c8]{width:6px;height:6px;border-radius:50%;background-color:#e64340;display:inline-block;position:absolute;top:15px;right:7px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-sign[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-sign[data-v-925c41c8]:hover{color:#68b6ff}.plat-appHeader .layout-appHeader-title .header-right-menu .header-sign span[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-sign span[data-v-925c41c8]{height:48px;min-width:44px;font-size:14px;color:#143e81;text-align:center;padding-top:18px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.plat-appHeader .layout-appHeader-title .header-right-menu .header-sign span[data-v-925c41c8]:last-child,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-sign span[data-v-925c41c8]:last-child{cursor:default}.plat-appHeader .layout-appHeader-title[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title[data-v-925c41c8]{color:#363d44;margin:0 16px}.plat-appHeader .layout-appHeader-title .header-right-menu>.header-sign[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu>.header-sign[data-v-925c41c8]{margin-left:0 16px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop[data-v-925c41c8]{padding-left:0}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user[data-v-925c41c8]{max-width:171px;text-align:left}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user .username[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user .username[data-v-925c41c8]{font-weight:550;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:#0b0c0e}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user .header-serviceteam[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-user .header-serviceteam[data-v-925c41c8]{color:#86909c;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .rt-icon[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .rt-icon[data-v-925c41c8]{display:unset}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .rt-icon.layout-icon-angle-down-filled[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .rt-icon.layout-icon-angle-down-filled[data-v-925c41c8]{margin-left:4px;color:#98a6b3}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button[data-v-925c41c8]{padding:0 0 0 16px}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button[data-v-925c41c8]:hover,.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button[data-v-925c41c8]:hover{background-color:unset}.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .header-serviceteam[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .rt-icon[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .username[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .header-serviceteam[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .rt-icon[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-drop .header-drop-button:hover .username[data-v-925c41c8]{color:#2563eb}.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance .base-lookup[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .header-advance .circle-question-lined[data-v-925c41c8],.plat-appHeader .layout-appHeader-title .header-right-menu .header-news .bell-lined[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance .base-lookup[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-advance .circle-question-lined[data-v-925c41c8],.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu .header-news .bell-lined[data-v-925c41c8]{color:#788796}.plat-appHeader .layout-appHeader-title .header-right-menu .header-news[data-v-925c41c8]{line-height:unset}.plat-mainapp-appHeader .layout-appHeader-title .header-right-menu[data-v-925c41c8]{padding-left:0}.el-popover.el-popper.header-drop-body .drop-item[data-v-925c41c8]:not(:last-child){color:#6388c2;text-align:center;padding:8px 0;cursor:pointer}.header-entrance[data-v-925c41c8]{cursor:pointer;width:48px;height:48px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.header-entrance .iconColor .rt-icon[data-v-925c41c8]{color:#4e5969}.header-help-body .help-title[data-v-925c41c8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:11px 16px;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #e8ecfc;padding:0;margin:0;padding-bottom:10px}.header-help-body .help-title>div[data-v-925c41c8]{-webkit-box-flex:1;-ms-flex:1;flex:1}.header-help-body .help-title .title-right[data-v-925c41c8]{text-align:right}.header-help-body[data-v-925c41c8]:hover{background:#f5f7fa}.header-help-body[data-v-925c41c8] .el-popover__reference-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.sysapp-select[data-v-925c41c8]{max-height:65vh;overflow-y:auto;padding:0 8px}.sysapp-select .sysapp-select-item[data-v-925c41c8]{cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px}.sysapp-select .sysapp-select-item[data-v-925c41c8]:hover{color:#2563eb;background:#e9effd;border-radius:4px}.sysapp-select .sysapp-select-item .sysapp-select-item-left[data-v-925c41c8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:8px}.sysapp-select .sysapp-select-item .sysapp-select-item-left .sysapp-select-item-title[data-v-925c41c8]{display:inline-block;max-width:160px}.sysapp-select .sysapp-select-item .sysapp-select-item-right[data-v-925c41c8]{display:none}.sysapp-select .sysapp-select-item .sysapp-select-item-right[data-v-925c41c8] .rt-base-icon-font{vertical-align:top;color:#2563eb}.sysapp-select .sysapp-select-item.is-active[data-v-925c41c8]{color:#2563eb}.sysapp-select .sysapp-select-item.is-active .sysapp-select-item-right[data-v-925c41c8]{display:block}.sysappIcon[data-v-925c41c8]{height:48px;width:44px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.sysappIcon.is-active[data-v-925c41c8],.sysappIcon[data-v-925c41c8]:hover{background:#f0f2f4}",""]),e.exports=t},"6f97":function(e,t){e.exports=__webpack_require__("6f97")},7479:function(e,t,r){(t=r("24fb")(!1)).push([e.i,"#appContent[data-v-26ea2568]{width:100%;display:inline-block;position:relative}",""]),e.exports=t},"75e4":function(e,t){e.exports=__webpack_require__("823c")},"7b54":function(e,t,r){"use strict";r.r(t);var i=r("e017"),a=r.n(i),n=r("21a1"),o=r.n(n),s=new a.a({id:"layout-icon-sysapp",use:"layout-icon-sysapp-usage",viewBox:"0 0 20 20",content:'\n \x3c!-- 切片 --\x3e\n \n \n \n \n \n \n \n \n \n \n \n \n'});o.a.add(s),t.default=s},"7d1e":function(e,t,r){var i=r("69cc");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("b8785b34",i,!0,{sourceMap:!1,shadowMode:!1})},"7e77":function(e,t,r){var i=r("87d4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("c82c244c",i,!0,{sourceMap:!1,shadowMode:!1})},8266:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.plat-menu-guide[data-v-138c75ec]{position:absolute;top:0;left:0;z-index:3000;width:100vw;height:100vh;pointer-events:none}.plat-menu-guide-wrapper[data-v-138c75ec]{width:320px;max-width:320px;max-height:60vh;pointer-events:all;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border:1px solid #d6dbe1;border-radius:8px;padding:16px 0;background:#fff url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_menu_card_bg.png) no-repeat 0 0/100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:1}.plat-menu-guide-title[data-v-138c75ec]{font-size:16px;font-weight:500;color:#2563eb;line-height:21px;padding:0 16px}.plat-menu-guide-content[data-v-138c75ec]{margin-top:12px;margin-right:1px;overflow-y:auto}.plat-menu-guide-content[data-v-138c75ec]::-webkit-scrollbar{background:transparent;width:4px}.plat-menu-guide-content[data-v-138c75ec]::-webkit-scrollbar-thumb{background:#d6dbe1;border-radius:4px}.plat-menu-guide-footer[data-v-138c75ec]{margin-top:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0 16px}.plat-menu-guide-footer .rt-button+.rt-button[data-v-138c75ec]{margin-left:16px}.plat-menu-guide-wrapper-arrow[data-v-138c75ec]{position:absolute;top:50%;left:-5px;margin-bottom:3px;z-index:-1}.plat-menu-guide-wrapper-arrow[data-v-138c75ec]:after{position:absolute;bottom:-6px;display:block;content:" ";left:0;width:8px;height:8px;border:1px solid #d6dbe1;border-right-color:transparent;border-top-color:transparent;background:#fff;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.plat-menu-guide-content[data-v-138c75ec] .mavon-editor{min-width:unset;height:100%;min-height:unset;max-height:unset;border:unset;background-color:unset;padding-right:1px}.plat-menu-guide-content[data-v-138c75ec] .mavon-editor .v-note-panel p{margin:0}.plat-menu-guide-content[data-v-138c75ec] .mavon-editor .v-note-panel .v-note-show .v-show-content{font-size:13px;color:#21262c;line-height:20px;padding-top:0;padding-bottom:0;padding-left:16px;padding-right:15px;position:relative}',""]),e.exports=t},"855a":function(e,t,r){var i,a=r("0bfa");(i=a).keys().map(i)},"87d4":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rc_license_error[data-v-53bd0b90]{width:100%;height:35px;font-size:15px;color:#f7a959;background:#fff4e8;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 18px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.rc_license_error span[data-v-53bd0b90]{margin-left:10px}",""]),e.exports=t},"89c1":function(e,t,r){"use strict";r("7e77")},"8b73":function(e,t,r){"use strict";r("ac19")},"8bbf":function(e,t){e.exports=__webpack_require__("8bbf")},"92b7":function(e,t,r){var i=r("e42d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("a7348694",i,!0,{sourceMap:!1,shadowMode:!1})},"94f6":function(e,t,r){(t=r("24fb")(!1)).push([e.i,".advanced-find-dialog.plat-advanced-find-dialog .dialog-footer[data-v-7ba6894e]{text-align:right;padding:10px 0}",""]),e.exports=t},"962c":function(e,t,r){var i=r("0b15");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("157a6550",i,!0,{sourceMap:!1,shadowMode:!1})},"9b44":function(e,t,r){var i=r("5b66");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("4f6c2a20",i,!0,{sourceMap:!1,shadowMode:!1})},"9bb0":function(e,t){e.exports=__webpack_require__("8875")},a5d0:function(e,t,r){"use strict";r("af71")},a662:function(e,t,r){var i=r("5d83");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("71d7a9b8",i,!0,{sourceMap:!1,shadowMode:!1})},ac19:function(e,t,r){var i=r("5d26");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("0240af34",i,!0,{sourceMap:!1,shadowMode:!1})},aeba:function(e,t){e.exports=__webpack_require__("64c5")},af71:function(e,t,r){var i=r("cb13");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("2682215f",i,!0,{sourceMap:!1,shadowMode:!1})},b394:function(e,t){e.exports=__webpack_require__("b68b")},b45e:function(e,t,r){"use strict";r("fa41")},bc8f:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".el-dropdown-menu__item[data-v-f06241fa]{display:inherit}.rt-icon[data-v-f06241fa]{position:absolute;right:10px;top:8px;color:#363d44}.check[data-v-f06241fa]{position:unset}.rt-popover-menu[data-v-f06241fa]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:4px;font-size:14px}.rt-dropdown-menu[data-v-f06241fa]{-webkit-transform:translate(-8px,-5px);transform:translate(-8px,-5px);font-size:14px;padding:8px;overflow-x:hidden;overflow-y:auto}.rt-dropdown-menu .plat-dropdown-item[data-v-f06241fa]{padding:8px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.rt-dropdown-menu .plat-dropdown-item .checkIcon[data-v-f06241fa]{min-width:22px;display:inline-block}.rt-dropdown-menu .plat-dropdown-item[data-v-f06241fa]:hover{padding:8px;border-radius:4px}",""]),e.exports=t},bd2d:function(e,t){e.exports=__webpack_require__("c70b")},c175:function(e,t,r){"use strict";r("9b44")},c46f:function(e,t,r){"use strict";r("3837")},c4ca:function(module,__webpack_exports__,__webpack_require__){"use strict";var vue__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("8bbf"),vue__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__),vue_xpc__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("6f97"),vue_xpc__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(vue_xpc__WEBPACK_IMPORTED_MODULE_1__),rc_keycloak_keycloak_keycloak_token__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("d0f2"),rc_keycloak_keycloak_keycloak_token__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(rc_keycloak_keycloak_keycloak_token__WEBPACK_IMPORTED_MODULE_2__);function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function asyncGeneratorStep(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){asyncGeneratorStep(n,i,a,o,s,"next",e)}function s(e){asyncGeneratorStep(n,i,a,o,s,"throw",e)}o(void 0)}))}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function _objectSpread(e){for(var t=1;t";o+=""+e+"";for(var s="",l=0;l"+r[l]+"";o+=s+"";for(var d=0;d0&&a.indexOf(u)>=0||(c+=""+n[d][u]+"");o+=c+""}var p="";p+='',p+='',p+="",p+="\x3c!--[if gte mso 9]>",p+="",p+="",p+="",p+="",p+="",p+="sheet",p+="",p+="",p+="",p+="",p+="",p+="",p+="",p+="",p+="",p+="",p+=o+="",p+="",p+="";var h="data:application/vnd.ms-excel;charset=utf-8,"+encodeURIComponent(p),f=document.createElement("a");f.href=h,f.style="visibility:hidden",f.download=e+".xls",document.body.appendChild(f),f.click(),document.body.removeChild(f)},downloadFile:function(e){var t=e.content,r=rtUtils.base64Excel2Blob(t),i=e.fileName;if(navigator.userAgent,window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(r,i);else if(navigator.appVersion.toString().indexOf(".NET")>0)window.navigator.msSaveBlob(r,i);else{var a=document.createElement("a");a.href=window.URL.createObjectURL(r),a.download=i,a.style.display="none",document.body.appendChild(a);try{a.click()}finally{document.body.removeChild(a)}}},base64Excel2Blob:function(e){for(var t=window.atob(e),r=t.length,i=new Uint8Array(r),a=0;a0?(e+="&",e+=r):(e+="?",e+=r)),e.startsWith("http://")||e.startsWith("https://")||(e=rtUtils.mergeUrl(rtUtils.getBaseUrl(),e)),vue__WEBPACK_IMPORTED_MODULE_0___default.a.http.get(e,{responseType:"blob",headers:{"Cache-Control":"no-cache"}}).then((function(e){return null!=e.data&&e.data.size>0?URL.createObjectURL(e.data):Promise.reject("获取图片资源失败")}))},mergeUrl:function(e,t){return e.endsWith("/")&&t.startsWith("/")?e+t.substr(1):e.endsWith("/")||t.startsWith("/")?e+t:e+"/"+t},request:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=e.url;if(!i)return Promise.reject("rtUtils.request error: url is required");if(!i.startsWith("http")){i.startsWith("../")?i=i.substr(3):i.startsWith("./")&&(i=i.substr(2));var a=rtUtils.getBaseUrl();i=rtUtils.mergeUrl(a,i)}return e.url=i,vue__WEBPACK_IMPORTED_MODULE_0___default.a.http.request(e).then((function(e){return t?null!=e.data&&null!=e.data.ErrorCode?0!==e.data.ErrorCode?Promise.reject(e.data.Message):r?e.data.Data&&e.data.Data[r]:e.data.Data:e.data:e}),(function(e){return e&&401!==e.status?Promise.reject(e):Promise.reject()}))},get:function(e,t,r){if(!e)return Promise.reject("rtUtils.get error: url is required");var i=e.indexOf("?")>=0,a="";if(!this.isNull(t))for(var n in i?a+="&":(a+="?",i=!0),t){a+="&"+n+"=";var o=t[n];null!=o&&(a+=encodeURIComponent(t[n]))}return this.isNullOrWhiteSpace(a)||(e+=a),rtUtils.request(_objectSpread({url:e,method:"get",timeout:rtUtils._getTimeout()},r))},post:function(e,t,r){return rtUtils.request(_objectSpread({url:e,data:t,method:"post",timeout:rtUtils._getTimeout()},r))},postCustomRequest:function(e,t,r){return rtUtils.request(_objectSpread({url:e,data:t,method:"post",timeout:rtUtils._getTimeout()},r),!0,"Result")},postJson:function(e,t,r){return rtUtils.request(_objectSpread({url:e,data:JSON.stringify(t),method:"post",timeout:rtUtils._getTimeout(),headers:{"Content-Type":"application/json"}},r))},_getTimeout:function(){var e=0;return rtUtils.isDevelopment||(e=18e4),e},download:function(e,t,r){return rtUtils.request({url:e,data:r,method:t,responseType:"arraybuffer"},!1).then((function(e){if(e.status<200||e.status>=300)return Promise.reject("server error");var t=new Blob([e.data],{type:"application/vnd.ms-excel;charset=utf-8,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"}),r=document.createElement("a"),i=window.URL.createObjectURL(t),a=e.headers["content-disposition"];if(!a)return new Promise((function(t,r){var i,a,n,o;i=e.data,a=function(e){var t=JSON.parse(e).Message;r("下载文件信息丢失, 错误信息: "+t)},n=new Blob([i]),(o=new FileReader).readAsText(n,"utf-8"),o.onload=function(){a&&a.call(null,o.result)}}));var n="",o=(a=decodeURIComponent(a)).match(/filename\*=UTF-8''([^;]+)/);if(o){var s=decodeURIComponent(o[1]);if(s.includes("%"))try{s=decodeURIComponent(s)}catch(e){}n=s.replace(/[\r\n\t]+/g,"").trim()}else{var l=a.match(/filename="([^"]+)"/);l&&(n=l[1].replace(/[\r\n\t]+/g,"").trim())}n||(n="download.xlsx"),r.style.display="none",r.href=i,r.download=n,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(i)}))},getForTenant:function(e,t,r){return rtUtils.get(e,t,r)},isFeiShu:function(){return window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.includes("Feishu")},isDingTalk:function(){return window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("DingTalk")>-1},isWxWork:function(){return window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.includes("wxwork")},isQiyu:function(){return window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.includes("qiyu")},isChrome:function(){return Number(window.navigator.userAgent.match(/Chrome\/(\d+)/)&&window.navigator.userAgent.match(/Chrome\/(\d+)/)[1])>=76},isEdge:function(){return/Edge/.test(window.navigator.userAgent)},isSafari:function(){return/Safari/.test(window.navigator.userAgent)&&!/Chrome/.test(window.navigator.userAgent)},getUserId:function(){return vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$store&&vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$store.state.user.userId},getUserName:function(){return vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$store&&vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$store.state.user.userName},getPaginationSize:function(){return 50},convertGPS2BaiduLocation:function(e,t,r){var i="http://api.map.baidu.com/geoconv/v1/?coords="+e+","+t+"&from=1&to=5&ak=RONinBdEIu93CBGDHc3fSPHE&callback=MYCALLBACK";this.jsonp(i,(function(e){r(e.result[0])}))},formatDateTime:(token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,pad=function(e,t){for(e=String(e),t=t||2;e.length99?Math.round(p/10):p),t:d<12?"a":"p",tt:d<12?"am":"pm",T:d<12?"A":"P",TT:d<12?"AM":"PM",Z:r?"UTC":(String(e).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(h>0?"-":"+")+pad(100*Math.floor(Math.abs(h)/60)+Math.abs(h)%60,4),S:["th","st","nd","rd"][n%10>3?0:(n%100-n%10!=10)*n%10]};return t.replace(token,(function(e){return e in f?f[e]:e.slice(1,e.length-1)}))}),formatDateTimeNew:function(e,t){var r=new RtDate(e);if(Number.isNaN(r.getTime()))throw new Error("date is not a valid date");return r.format(t.replace("dd","DD"))},formatNumber:function(e,t){var r,i,a,n,o,s=e.toString();if(/\./g.test(t)?(a=t.split(".")[0],n=t.split(".")[1]):(a=t,n=null),/\./g.test(s))if(null!==n){var l=Math.round(parseFloat("0."+s.split(".")[1])*Math.pow(10,n.length))/Math.pow(10,n.length);r=(Math.floor(e)+Math.floor(l)).toString(),i=/\./g.test(l.toString())?l.toString().split(".")[1]:"0"}else r=Math.round(e).toString(),i="0";else r=s,i="0";if(null!==a){var d;d="",o=a.match(/0*$/)[0].length;var c=null;/,/g.test(a)&&(c=a.match(/,[^,]*/)[0].length-1);var u=new RegExp("(\\d{"+c+"})","g");r=d=(d=(d=r.length=0?"&":"?")+"callback="+r,document.body.appendChild(i)},newGuid:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},noop:function(){},postResponse:function(e,t){var r=this.getXHR();return r.open("post",e,!1),r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.send(t),r.responseText},isMac:function(){var e=/macintosh|mac os x/i.test(navigator.userAgent);return e},isQianKun:function(){return window.__POWERED_BY_QIANKUN__},getDynamicData:function(e,t,r){var i="api/dynamic/".concat(e,"/get"),a={entityName:e,id:t};return rt.get(i,a).then((function(e){var t={};return r?r.split(",").forEach((function(r){t[r]=e[r]})):t=e,t})).catch((function(e){throw e}))},saveOrUpdateDynamicData:function(e,t){var r="api/dynamic/".concat(e,"/SaveAndFetch");return rt.post(r,t).then((function(e){})).catch((function(e){throw e}))},downloadByApaaS:function(e,t){return _asyncToGenerator(_regeneratorRuntime().mark((function r(){var i,a,n,o;return _regeneratorRuntime().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!e.includes("api/attachment")){r.next=9;break}return a={responseType:"blob",method:"GET",url:e},t.headers&&(a.headers=t.headers),r.next=6,rtUtils.request(a);case 6:i=r.sent,r.next=14;break;case 9:return n=!1,t.headers&&(n="no-cache"===t.headers["Cache-Control"]),r.next=13,rtUtils.downloadByNative(e,n);case 13:i=r.sent;case 14:i&&i.size&&i.size>5242880&&rt.showSuccessToast(vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("uploading.tip","正在下载,请稍后")),(o=document.createElement("a")).href=window.URL.createObjectURL(i),o.style.display="none",o.target="_blank",t.fileName&&(o.download=t.fileName),o.click(),r.next=27;break;case 23:throw r.prev=23,r.t0=r.catch(0),rt.showErrorToast(vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("File_missing","文件已丢失")),r.t0;case 27:case"end":return r.stop()}}),r,null,[[0,23]])})))()},downloadByNative:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(r,i){var a=new XMLHttpRequest;a.open("GET",e,!0),t&&a.setRequestHeader("Cache-Control","no-cache"),a.responseType="blob",a.onload=function(){200===a.status?r(a.response):i(vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("File_missing","文件已丢失"))},a.send()}))},downloadByLink:function(e){var t=e||"";if(!t.startsWith("http")){t.startsWith("../")?t=t.substr(3):t.startsWith("./")&&(t=t.substr(2));var r=rtUtils.getBaseUrl();t=rtUtils.mergeUrl(r,t)}var i=document.createElement("iframe");i.style.display="none",i.style.width="0",i.style.height="0",i.style.border="none",i.src=t,document.body.appendChild(i),setTimeout((function(){i.parentNode&&document.body.removeChild(i)}),2e3)}},token,timezone,timezoneClip,pad,dateFormat,hexcase=0,chrsz=8;function hex_md5(e){return binl2hex(core_md5(str2binl(e),e.length*chrsz))}function hex_hmac_md5(e,t){return binl2hex(core_hmac_md5(e,t))}function core_md5(e,t){e[t>>5]|=128<>>9<<4)]=t;for(var r=1732584193,i=-271733879,a=-1732584194,n=271733878,o=0;o16&&(r=core_md5(r,e.length*chrsz));for(var i=Array(16),a=Array(16),n=0;n<16;n++)i[n]=909522486^r[n],a[n]=1549556828^r[n];var o=core_md5(i.concat(str2binl(t)),512+t.length*chrsz);return core_md5(a.concat(o),640)}function safe_add(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function bit_rol(e,t){return e<>>32-t}function str2binl(e){for(var t=Array(),r=(1<>5]|=(e.charCodeAt(i/chrsz)&r)<>2]>>i%4*8+4&15)+t.charAt(e[i>>2]>>i%4*8&15);return r}rtUtils.md5=function(e){return hex_md5(e)},rtUtils.hmacmd5=function(e){return hex_hmac_md5()};var wx=window.wx;function signFun(e){var t;function r(e,t,r,i){return e<20?t&r|~t&i:e<40?t^r^i:e<60?t&r|t&i|r&i:t^r^i}function i(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function a(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function n(e,t){return e<>>32-t}return function(e){for(var t="0123456789abcdef",r="",i=0;i<4*e.length;i++)r+=t.charAt(e[i>>2]>>8*(3-i%4)+4&15)+t.charAt(e[i>>2]>>8*(3-i%4)&15);return r}(function(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var o=new Array(80),s=1732584193,l=-271733879,d=-1732584194,c=271733878,u=-1009589776,p=0;p>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}(t=e),8*t.length))}function getStringDisplayLength(e){return e.split("").reduce((function(e,t){return e+(/[\u4e00-\u9fa5]/.test(t)?2:1)}),0)}rtUtils.configWX=function(e,t){var r=rtUtils.formatDateTime(new RtDate,"yyyyMMddhhmmss"),i=signFun("jsapi_ticket="+t+"&noncestr=HcGwOqUaLR2oCR6P×tamp="+r+"&url="+window.location.href.split("#")[0]);wx.config({beta:!0,debug:!1,appId:e,timestamp:r,nonceStr:"HcGwOqUaLR2oCR6P",signature:i,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onVoiceRecordEnd","playVoice","onVoicePlayEnd","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","getLocalImgData","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard","selectEnterpriseContact","openEnterpriseChat","agentConfig"],fail:function(e){}})},rtUtils.agentConfigWX=function(e,t,r){var i=rt.formatDateTime(new RtDate,"yyyyMMddhhmmss"),a=window.location.href.split("#")[0],n=signFun("jsapi_ticket="+r+"&noncestr=HcGwOqUaLR2oCR6P×tamp="+i+"&url="+a);return new Promise((function(r,a){wx.agentConfig({corpid:e,agentid:t,timestamp:i,nonceStr:"HcGwOqUaLR2oCR6P",signature:n,jsApiList:["selectExternalContact","openUserProfile","thirdPartyOpenPage","sendChatMessage","shareToExternalContact","shareToExternalChat","getContext","getCurExternalContact","openExistedChatWithMsg","sendChatMessage","createCorpGroupChat","startMeeting","startLiving","enterpriseVerify","navigateToAddCustomer"],success:function(e){r()},fail:function(e){alert(e),a(e)}})}))},rtUtils.setLanguage=function(){var e=xpclib.getDefaultLocal();vue__WEBPACK_IMPORTED_MODULE_0___default.a.http.interceptors.request.use((function(t){return t.headers["Accept-Language"]||(t.headers["Accept-Language"]=e),t}))},rtUtils.openNewLabel=function(e){var t=e.url,r=void 0===t?"":t,i=e.docTitle,a=void 0===i?"":i;if(r){var n=window.open(r,"_blank");if(a){var o=+new RtDate,s=200;!function e(){var t=setTimeout((function(){+new RtDate-o>=3e5||(n.document.title=a,n.document.title==a&&(s+=200)>1e3||(clearTimeout(t),e()))}),s)}()}}},rtUtils.isDevelopment=function(){var e=localStorage.serverAddress;return!(!e||!e.startsWith("http"))},rtUtils.getCurrentSubapp=function(){var e="";if(/\/webapp/g.test(location.pathname)){var t=location.pathname.split("/webapp/");e=t[1]&&t[1].split("/")[0]}if(/\$subapp=/g.test(location.search)){var r=location.search.match(/\$subapp=([^&]+)/);e=r&&r[1]}return e},rtUtils.getCurrentNavName=function(){var e=location.href.match(/mainNavName=([^#&]+)/);if(e){var t=e[0].split("=");if(t.length>1)return t[0]}return""},rtUtils.getCurrentRoutePath=function(){var e=location.href.match(/#\/(.+)/);return e?"home"==e[1]?"":"/"+e[1]:""},rtUtils.showErrorToast=function(){if(arguments.length&&arguments[0]instanceof Error){var e=arguments[0],t=Array.prototype.slice.call(arguments);xpclib.showErrorToast.apply(xpclib,[e.message||e].concat(_toConsumableArray(t.slice(1))))}else xpclib.showErrorToast.apply(xpclib,arguments)},rtUtils.validateDisplayName=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={name:"",maxLength:30,maxChineseLength:15,allowSpace:!1,allowSpecialChars:!1},i=_objectSpread(_objectSpread({},r),t);if(getStringDisplayLength(e)>i.maxLength)return{valid:!1,message:vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("validateDisplayName.length","".concat(i.name,"显示名称不能超过").concat(i.maxLength,"个字符,中文").concat(i.maxChineseLength,"个字"),[i.name,i.maxLength,i.maxChineseLength])};if(!i.allowSpecialChars){var a=/[`~.+!@#$^&*=|{}':;',\[\]<>/?%]/;if(a.test(e))return{valid:!1,message:vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("validateDisplayName.specialChars","".concat(i.name,"显示名称不能输入英文特殊字符"),[i.name])}}return!i.allowSpace&&e.indexOf(" ")>=0?{valid:!1,message:vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$_t("validateDisplayName.space","".concat(i.name,"显示名称不能输入空格"),[i.name])}:{valid:!0,message:""}},rtUtils.getTokenResponse=rc_keycloak_keycloak_keycloak_token__WEBPACK_IMPORTED_MODULE_2__.getTokenResponse,rtUtils=_objectSpread(_objectSpread({},xpclib),rtUtils),Date.prototype.dateAdd=function(datepart,number){var d=new RtDate(this.getTime()),k={y:"FullYear",q:"Month",m:"Month",w:"Date",d:"Date",h:"Hours",n:"Minutes",s:"Seconds",ms:"MilliSeconds"},n={q:3,w:7};return eval("d.set"+k[datepart]+"(d.get"+k[datepart]+"()+"+(n[datepart]||1)*number+")"),d},Date.prototype.dateDiff=function(e,t){var r=this,i={},a=r.getTime(),n=t.getTime();return i.y=t.getFullYear()-r.getFullYear(),i.q=4*i.y+Math.floor(t.getMonth()/4)-Math.floor(r.getMonth()/4),i.m=12*i.y+t.getMonth()-r.getMonth(),i.ms=t.getTime()-r.getTime(),i.w=Math.floor((n+3456e5)/6048e5)-Math.floor((a+3456e5)/6048e5),i.d=Math.floor(n/864e5)-Math.floor(a/864e5),i.h=Math.floor(n/36e5)-Math.floor(a/36e5),i.n=Math.floor(n/6e4)-Math.floor(a/6e4),i.s=Math.floor(n/1e3)-Math.floor(a/1e3),i[e]},Date.prototype.toUniversalTime=function(){var e=this.getUTCFullYear(),t=this.getUTCMonth(),r=this.getUTCDate(),i=this.getUTCHours(),a=this.getUTCMinutes(),n=this.getUTCSeconds();return new RtDate(e,t,r,i,a,n)},String.prototype.contains=function(e,t){return null==t&&(t=!1),t?this.search(new RegExp(e,"i"))>-1:this.search(e)>-1},String.prototype.endsWith=function(e,t){if(null===e||""===e||0===this.length||e.length>this.length)return!1;var r=this.substring(this.length-e.length);return t?r.toLowerCase()===e.toLowerCase():r===e},String.prototype.format=function(){for(var e=this,t=0;tthis.length)return!1;var r=this.substr(0,e.length);return t?r.toLowerCase()===e.toLowerCase():r===e},String.prototype.trim=function(e){var t=this;("string"!=typeof e||e.length<=0)&&(e=" ");for(var r=t.length;r>0&&e.indexOf(t[0])>=0;)t=t.substring(1),r--;for(;r>0&&e.indexOf(t[r-1])>=0;)t=t.substring(0,r-1),r--;return t},__webpack_exports__.a=rtUtils},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},cb13:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".el-scrollbar[data-v-0234187e]{height:100%;position:relative}.scrollbar-wrapper[data-v-0234187e]{overflow-x:hidden}.scrollbar-wrapper .el-scrollbar__view[data-v-0234187e]{height:100%}",""]),e.exports=t},d0f2:function(e,t){e.exports=__webpack_require__("5d12")},d4ff:function(e,t,r){"use strict";r("01ec")},d7bc:function(e,t){e.exports=__webpack_require__("9ab4")},dcb3:function(e,t,r){var i=r("e1ce");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("7b7ad5f9",i,!0,{sourceMap:!1,shadowMode:!1})},e017:function(e,t,r){(function(t){var r;r=function(){"use strict";var e=function(e){var t=e.id,r=e.viewBox,i=e.content;this.id=t,this.viewBox=r,this.content=i};function r(e,t){return e(t={exports:{}},t.exports),t.exports}e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))},"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var i=r((function(e,t){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,r){var a;return r&&!0===r.clone&&e(t)?i((a=t,Array.isArray(a)?[]:{}),t,r):t}function r(r,a,n){var o=r.slice();return a.forEach((function(a,s){void 0===o[s]?o[s]=t(a,n):e(a)?o[s]=i(r[s],a,n):-1===r.indexOf(a)&&o.push(t(a,n))})),o}function i(a,n,o){var s=Array.isArray(n),l=(o||{arrayMerge:r}).arrayMerge||r;return s?Array.isArray(a)?l(a,n,o):t(n,o):function(r,a,n){var o={};return e(r)&&Object.keys(r).forEach((function(e){o[e]=t(r[e],n)})),Object.keys(a).forEach((function(s){e(a[s])&&r[s]?o[s]=i(r[s],a[s],n):o[s]=t(a[s],n)})),o}(a,n,o)}return i.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,r){return i(e,r,t)}))},i}()})),a=r((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),n=a.svg,o=a.xlink,s={};s[n.name]=n.uri,s[o.name]=o.uri;var l=function(e,t){return void 0===e&&(e=""),""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,r=this.render();return this.node=r,t.appendChild(r),r},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,r=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(r,!0):r}(l(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,r),t}(e)},e.exports=r()}).call(this,r("c8ba"))},e1ce:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-xpc-guide .rt-xpc-guide-wrapper[data-v-0f79e84a]{width:320px;height:110px;position:relative;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);border-radius:4px}.rt-xpc-guide .rt-xpc-guide-wrapper.rtxpc-wrapper-arrow-v-top .rtxpc-wrapper-arrow .rtxpc-wrapper-arrow-dot[data-v-0f79e84a]{top:-34px;display:none}.rt-xpc-guide .rt-xpc-guide-wrapper.rtxpc-wrapper-arrow-v-top .rtxpc-wrapper-arrow[data-v-0f79e84a]:before{width:2px;height:30px;top:-26px;left:5px;z-index:-1;display:none}.rt-xpc-guide .rt-xpc-guide-wrapper.rtxpc-wrapper-arrow-v-top .rtxpc-wrapper-arrow[data-v-0f79e84a]:after{width:10px;height:10px;background-color:#d0e7ff;border:1px solid #d6dbe1;border-bottom-color:#d0e7ff;border-right-color:#d0e7ff;-webkit-transform:rotate(45deg) scale(.85);transform:rotate(45deg) scale(.85);top:2px;left:1px;-webkit-box-sizing:border-box;box-sizing:border-box}.rt-xpc-guide .rt-xpc-guide-wrapper .rt-xpc-guide-content[data-v-0f79e84a]{width:100%;height:100%;color:#0b0c0e;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:96px;padding-right:50px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_bg.png) no-repeat 50%/cover;border-radius:4px;border:1px solid #d6dbe1}.rt-xpc-guide .rt-xpc-guide-wrapper .rt-xpc-guide-content .toy[data-v-0f79e84a]{width:72px;height:98px;background:url(https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_toy.png) no-repeat 50%/contain;pointer-events:none;position:absolute;left:8px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.rt-xpc-guide .rt-xpc-guide-wrapper .rt-xpc-guide-content .text[data-v-0f79e84a]{pointer-events:none}.rt-xpc-guide .rt-xpc-guide-wrapper .rt-xpc-guide-close[data-v-0f79e84a]{cursor:pointer;position:absolute;top:20px;right:16px}.rt-xpc-guide .rt-xpc-guide-wrapper .rtxpc-wrapper-arrow.hide-arrow .rtxpc-wrapper-arrow-dot[data-v-0f79e84a]{display:none}.rt-xpc-guide .rt-xpc-guide-mask-border[data-v-0f79e84a]{cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}.rt-xpc-guide .no-more-wrapper[data-v-0f79e84a]{margin-top:16px;height:20px}.rt-xpc-guide .no-more-wrapper[data-v-0f79e84a] .rt-checkbox .rtxpc-checkbox__label{color:#788796!important}",""]),e.exports=t},e42d:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-picklist[data-v-285dbab6] .el-input.is-focus .rt-input-shadow{background:#1890ff;-webkit-box-shadow:0 1px 3px 0 #1890ff;box-shadow:0 1px 3px 0 #1890ff;height:1px}",""]),e.exports=t},e9c3:function(e,t,r){"use strict";r("f923")},f2c5:function(e,t,r){"use strict";r("0024")},f923:function(e,t,r){var i=r("26c1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("6779ec68",i,!0,{sourceMap:!1,shadowMode:!1})},fa41:function(e,t,r){var i=r("bc8f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("499e").default)("98cfa23c",i,!0,{sourceMap:!1,shadowMode:!1})},fb15:function(e,t,r){"use strict";if(r.r(t),r.d(t,"loginUtils",(function(){return lt})),r.d(t,"layoutUtils",(function(){return S})),r.d(t,"rtUtils",(function(){return c.a})),r.d(t,"keycloak",(function(){return nt})),"undefined"!=typeof window){var i=window.document.currentScript,a=r("9bb0");i=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var n=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(r.p=n[1])}var o=r("6f97"),s=r.n(o),l=r("8bbf"),d=r.n(l),c=r("c4ca");function u(){var e=document.getElementsByTagName("style");return Array.from(e).filter((function(e){return e.textContent&&!e.hasAttribute("data-rtl-processed")})).map((function(e){return{element:e,content:e.textContent||""}}))}function p(e){var t="___TEMP___";return(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/(padding|margin):\s*([^;{}]+)/g,(function(e,t,r){var i=r.trim().split(/\s+/);return 4===i.length?"".concat(t,": ").concat(i[0]," ").concat(i[3]," ").concat(i[2]," ").concat(i[1]):(3===i.length||i.length,e)}))).replace(/padding-left/g,"padding-left".concat(t))).replace(/margin-left/g,"margin-left".concat(t))).replace(/padding-right/g,"padding-left")).replace(/margin-right/g,"margin-left")).replace(new RegExp("padding-left".concat(t),"g"),"padding-right")).replace(new RegExp("margin-left".concat(t),"g"),"margin-right")).replace(/([^a-z-])left:/g,"$1left".concat(t,":"))).replace(/([^a-z-])right:/g,"$1left:")).replace(new RegExp("left".concat(t,":"),"g"),"right:")).replace(/float:\s*left/g,"float:left".concat(t))).replace(/float:\s*right/g,"float: left")).replace(new RegExp("float:left".concat(t),"g"),"float: right")).replace(/text-align:\s*left/g,"text-align:left".concat(t))).replace(/text-align:\s*right/g,"text-align: left")).replace(new RegExp("text-align:left".concat(t),"g"),"text-align: right")).replace(/border-radius:\s*([^;{}]+)/g,(function(e,t){var r=t.trim().split(/\s+/);return 4===r.length?"border-radius: ".concat(r[1]," ").concat(r[0]," ").concat(r[3]," ").concat(r[2]):2===r.length?"border-radius: ".concat(r[1]," ").concat(r[0]):e}))).replace(/border-top-left-radius/g,"border-top-left-radius".concat(t))).replace(/border-top-right-radius/g,"border-top-left-radius")).replace(new RegExp("border-top-left-radius".concat(t),"g"),"border-top-right-radius")).replace(/border-bottom-left-radius/g,"border-bottom-left-radius".concat(t))).replace(/border-bottom-right-radius/g,"border-bottom-left-radius")).replace(new RegExp("border-bottom-left-radius".concat(t),"g"),"border-bottom-right-radius")).replace(/transform-origin:\s*([^;{}]+)/g,(function(e,t){var r=t.trim().split(/\s+/);if(r.length>=2){var i=r[0];return"left"===i?i="right":"right"===i&&(i="left"),"transform-origin: ".concat(i," ").concat(r[1])}return e}))).replace(/border-left/g,"border-left".concat(t))).replace(/border-right/g,"border-left")).replace(new RegExp("border-left".concat(t),"g"),"border-right")).replace(/transform:\s*translate\(([^)]+)\)/g,(function(e,t){var r=t.split(",");if(r.length>=1){var i=r[0].trim(),a=r[1]?r[1].trim():"0",n=i.startsWith("-")?i.substring(1):"-".concat(i);return"transform: translate(".concat(n,",").concat(a,")")}return e}))).replace(/transform:\s*translateX\(([^)]+)\)/g,(function(e,t){var r=t.trim(),i=r.startsWith("-")?r.substring(1):"-".concat(r);return"transform: translateX(".concat(i,")")}))).replace(/transition\s*:\s*([^;{}]+)/g,(function(e,t){var r=t.replace(/\bleft\b/g,"__RTL_TEMP_LEFT__").replace(/\bright\b/g,"left").replace(/__RTL_TEMP_LEFT__/g,"right");return"transition: ".concat(r)}))).replace(/transition-property\s*:\s*([^;{}]+)/g,(function(e,t){var r=t.split(",").map((function(e){var t=e.trim();return"left"===t?"right":"right"===t?"left":t})).join(", ");return"transition-property: ".concat(r)}))).replace(/direction:\s*ltr/g,"direction: rtl")}function h(e){if(!e.hasAttribute("data-rtl-processed")){var t=e.textContent;if(t){var r=p(t),i=document.createElement("style");i.textContent=r,i.setAttribute("data-rtl-processed","true"),e.parentNode&&e.parentNode.replaceChild(i,e)}}}function f(){if(window.MutationObserver){var e=new MutationObserver((function(e){e.forEach((function(e){"childList"===e.type&&e.addedNodes.forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE&&"STYLE"===e.tagName&&h(e),e.nodeType===Node.ELEMENT_NODE){var t=e.getElementsByTagName("style");Array.from(t).forEach(h)}}))}))}));e.observe(document.head,{childList:!0,subtree:!0}),e.observe(document.body,{childList:!0,subtree:!0}),window.__rtlStyleObserver=e}}function m(){u().forEach((function(e){var t=e.element,r=p(e.content),i=document.createElement("style");i.textContent=r,i.setAttribute("data-rtl-processed","true"),t.parentNode&&t.parentNode.replaceChild(i,t)})),document.body.style.display="none",document.body.offsetHeight,document.body.style.display=""}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(){b=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),s=new T(a||[]);return i(o,"_invoke",{value:E(e,r,s)}),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var u={};function p(){}function h(){}function f(){}var m={};l(m,n,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(k([])));v&&v!==t&&r.call(v,n)&&(m=v);var x=f.prototype=p.prototype=Object.create(m);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var a;i(this,"_invoke",{value:function(i,n){function o(){return new t((function(a,o){!function i(a,n,o,s){var l=c(e[a],e,n);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==g(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}(i,n,a,o)}))}return a=a?a.then(o,o):o()}})}function E(e,t,r){var i="suspendedStart";return function(a,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw n;return{value:void 0,done:!0}}for(r.method=a,r.arg=n;;){var o=r.delegate;if(o){var s=C(o,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=c(e,t,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}function C(e,t){var r=t.method,i=e.iterator[r];if(void 0===i)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var a=c(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function N(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function k(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;S(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function y(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}function v(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){y(n,i,a,o,s,"next",e)}function s(e){y(n,i,a,o,s,"throw",e)}o(void 0)}))}}function x(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=this.getRealUrl(e,t,i);r?window.open(n):a?history.replaceState(null,"",n):history.pushState(null,"",n)},getRealUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=["",null,void 0],a="";return a=c.a.isDevelopment()?window.location.origin:c.a.getBaseUrl(),d.a.prototype.$IsAPaasPro$&&i.push.apply(i,x(this.getIgnoredSubapps())),t&&t.startsWith("/")&&(t=t.substr(1)),!i.includes(e)&&this.validateSubApp(e)&&(a.endsWith("/")||(a+="/"),a+="webapp/".concat(e,"/")),r||(r=c.a.getUrlParam("mainNavName")||this.getmainNavName()),a+"?mainNavName=".concat(r,"#/").concat(t)},setMainAppTitle:function(e){e&&(document.title="配置中心")},getRecloudUrl:function(){return"https://fscrm-platform-test.recloud.com.cn/t/saascrmplatformtest/"},listenerHook:function(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"beforeDestroy",n=i?e.$bus:e;n&&(n.$on(t,r),e.$once("hook:".concat(a),(function(){n.$off(t,r)})),"beforeDestroy"!=a&&e.$once("hook:".concat("beforeDestroy"),(function(){n.$off(t,r)})))},eventListenerHook:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"beforeDestroy";i.addEventListener(t,r,a),e&&(e.$once("hook:".concat(n),(function(){i.removeEventListener(t,r)})),"beforeDestroy"!=n&&e.$once("hook:".concat("beforeDestroy"),(function(){i.removeEventListener(t,r)})))},createHiDPICanvas:function(e,t,r){var i,a=(i=document.createElement("canvas").getContext("2d"),(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1));r||(r=a);var n=document.createElement("canvas");return n.width=e*r,n.height=t*r,n.style.width=e+"px",n.style.height=t+"px",n.getContext("2d").setTransform(r,0,0,r,0,0),n},getWatermarkAdjustment:function(){if(rtconfig.preloadParams&&rtconfig.preloadParams.WatermarkAdjustment)try{return JSON.parse(rtconfig.preloadParams.WatermarkAdjustment)||{}}catch(e){}return{}},createWatermarkBase64:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.getWatermarkAdjustment(),r=!rt.isNull(null==t?void 0:t.watermarkTransparency)&&t.watermarkTransparency>=0&&t.watermarkTransparency<=1?t.watermarkTransparency:.3,i=!rt.isNull(null==t?void 0:t.watermarkDensity)&&t.watermarkDensity>=0&&t.watermarkDensity<=100?10*parseInt(t.watermarkDensity):200,a=document.createElement("canvas"),n=a.getContext("2d"),o=12,s=0,l=0;if(e){var d=n.measureText(e);s=Math.floor(d.width),l+=o}var c=(new RtDate).format(),u=n.measureText(c);u.width>s&&(s=Math.floor(u.width)),l+=o+(e?6:0),l*=1.5,s*=1.5;var p=Math.PI/180*18,h=Math.sqrt(l*l+s*s);s=h*Math.cos(p),l=h*Math.sin(p),a.width=s+i,a.height=l+i;var f=s/2,m=l/2;n.translate(f,m);var g=-Math.PI/18;n.rotate(g,0,0),n.fillStyle="transparent",n.fillRect(0,0,a.width,a.height),n.font=o+"px Microsoft YaHei sans-serif",n.textAlign="center",n.fillStyle="rgba(170,170,170,".concat(r,")"),e&&n.fillText(e,0,-6),n.fillText(c,0,o+0);var b=a.toDataURL("image/png");return b},createWatermark:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,n=arguments.length>5?arguments[5]:void 0,o=n||document.querySelector("body"),s=document.body.querySelector("#rt-watermark");s&&o.removeChild(s),s=document.createElement("div"),o.appendChild(s);var l=this.createWatermarkBase64(e);s.id="rt-watermark",s.style.zIndex="9999999999",s.style.position="absolute",s.style.top=i||"0",s.style.right=a||"0",s.style.background="url('".concat(l,"') left top repeat"),s.style.pointerEvents="none",s.style.height=r||"100%",s.style.width=t||"calc(100% - 200px)"},getStudioOneUrl:function(){var e=localStorage.studioOneUrl,t=window.rtconfig;if(!t.keycloak_realm)return c.a.showErrorToast("rtconfig.keycloak_realm is null"),e;if(!t.keycloak_studiooneClientId)return c.a.showErrorToast("rtconfig.keycloak_studiooneClientId is null"),e;var r=t.isQiankun;return e.startsWith("../")?e=e.substr(3):e.startsWith("./")?e=e.substr(2):e.startsWith("/")&&(e=e.substr(1)),r?e=window.location.protocol+"//"+window.location.host+"/p/"+t.keycloak_realm+"/studioone":e.startsWith("http")||e.startsWith("https")||(e=c.a.mergeUrl(c.a.getBaseUrl(),e)),e.endsWith("/")||(e+="/"),e},getRealmUrl:function(){if(!rtconfig.keycloak_url)throw"authServerUrl not set.";if(!rtconfig.keycloak_realm)throw"realm not set.";var e=rtconfig.keycloak_url,t=encodeURIComponent(rtconfig.keycloak_realm);return e.endsWith("/")||(e+="/"),e+"realms/"+t},getTenantCode:function(){if(c.a.isDevelopment())return localStorage.keycloak_realm;if(rtconfig.isLocalAuthen)return rtconfig.keycloak_realm;var e=location.pathname,t=e.toLowerCase(),r="";return(t.startsWith("/t/")||t.startsWith("/p/")||t.startsWith("/s/"))&&(r=e.substring(3).split("/")[0]),r||null},formatTreeData:function(e){return e},_getCustomResource:function(e){var t=arguments;return v(b().mark((function r(){var i,a,n,o,s;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=t.length>1&&void 0!==t[1]?t[1]:"$default$",a=t.length>2&&void 0!==t[2]&&t[2],e){r.next=4;break}return r.abrupt("return",Promise.reject(new Error("自定义资源key为空")));case 4:if(r.prev=4,c.a.isQianKun()&&(i="QIANKUN_"+i),!window[i]||!window[i][e]){r.next=11;break}n=window[i][e],r.next=20;break;case 11:return r.next=13,c.a.get("api/webresource/".concat(e));case 13:o=r.sent,a?((s=document.createElement("script")).type="text/javascript",s.text=n,document.body.append(s)):new Function("window","self","globalThis","rt",o).bind(window)(window,window,window,window.rt),window[i]||(window[i]={}),window[i][e]=window[e],delete window[e],n=window[i][e],rt.hideLoadingToast();case 20:return r.abrupt("return",Promise.resolve(n));case 23:return r.prev=23,r.t0=r.catch(4),c.a.hideLoadingToast(),r.abrupt("return",Promise.reject(r.t0));case 28:case"end":return r.stop()}}),r,null,[[4,23]])})))()},getSubAppCode:function(e,t){return d.a.prototype.$IsAPaasPro$?this.getIgnoredSubapps().includes(e)&&this.validateSubApp(e)?"":e:e||t},validateSubApp:function(e){return!window.__enableSubAppValidate__||window.__subAppList__.includes(e)},getIgnoredSubapps:function(){var e=["",null,void 0].concat(C);return window.qiankunconfig&&window.qiankunconfig.ignoredSubapps&&(e=e.concat(window.qiankunconfig.ignoredSubapps.split(","))),Array.from(new Set(e))},installChart:function(){return"function"==typeof d.a.component("chart-add")?Promise.resolve([]):this.getCustomResource("chart-designer","$customerComponentResource$").then((function(e){return e.default&&d.a.use(e.default),Promise.resolve([])})).catch((function(e){return Promise.reject("请安装平台拓展组件")}))},getIconWhiteList:function(){var e=[];return window.rtXpc&&(e=window.rtXpc.config.get("iconWhiteList")||[]),e.push({preIconName:"plat-icon",iconType:"iconFont"}),d.a.prototype.$IsAPaasPro$?(parseFloat(rtconfig.serviceProductVersion)||6.2)>=6.32&&e.push({preIconName:"rt-saas",iconType:"iconFont"}):c.a.isQianKun()||e.push({preIconName:"rt-saas",iconType:"iconFont"}),e}},{getStyleContents:u,convertStyleContent:p,convertRTLStyles:m,processStyleElement:h,initStyleObserver:f,stopStyleObserver:function(){window.__rtlStyleObserver&&(window.__rtlStyleObserver.disconnect(),delete window.__rtlStyleObserver)},initRTLStyleProcessing:function(){m(),f()}});N.getCustomResource=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!=typeof e)throw new TypeError("Expected a function");var i={},a=function(){for(var a,n=arguments.length,o=new Array(n),s=0;s=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function O(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}function I(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){O(n,i,a,o,s,"next",e)}function s(e){O(n,i,a,o,s,"throw",e)}o(void 0)}))}}var D={name:"plat-layout-main",mixins:[s.a.stickyContainer],props:{subappKey:{type:String,default:"",require:!1},supportHelp:{type:Boolean,default:!1},isMainapp:{type:Boolean,default:!1}},data:function(){return{isCollapse:this.$store.state.isCollapse,mainNavName:"XRM",showConfigCenter:!0,isConfigCenter:!1,loaded:!1,showLicense:"",publicUrl:rt.getPublicUrl()}},watch:{$route:function(e,t){this.$refs["scroll-container"]&&(this.$refs["scroll-container"].scrollTop=0)}},computed:{heightstyle:function(){return this.showLicense?"showLicense-style":"notShowLicense-style"},slideContainer:function(){return this.isCollapse?"slide-container":"slide-container isCollapse"},containerClassName:function(){var e=document.body.querySelector("#rt-watermark");return this.isCollapse?(e&&(e.style.width="calc(100% - 64px)"),"isNotContainerStyley"):(e&&(e.style.width="calc(100% - 200px)"),"isContainerStyle")},audioNewMsgUrl:function(){var e,t=null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.AudioUrlNewMessage;return t&&"default"!==t?t:"".concat(this.publicUrl,"newMsgSound.mp3")},defaultSysAppName:function(){return this.$store.state.user&&this.$store.state.user.defaultSysAppName?this.$store.state.user.defaultSysAppName:this.$store.state.User&&this.$store.state.User.defaultSysAppName?this.$store.state.User.defaultSysAppName:""},isOutOfMainContainer:function(){return"true"===String(this.$route.query.isOutOfMainContainer)||!1}},created:function(){var e=this;return I(k().mark((function t(){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:document.onkeydown=void 0,e.$PlatUtils.listenerHook(e,"isCollapseChange",(function(){e.isCollapse=!e.isCollapse,e.$store.commit("UPDATE_COLLAPSE",e.isCollapse)}));case 2:case"end":return t.stop()}}),t)})))()},mounted:function(){var e=this;return I(k().mark((function t(){var r,i;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.getQueryVariable("mainNavName")||e.$store.state.user.defaultSysAppName){t.next=7;break}return t.next=5,rt.get("api/PortalUser/userInfo");case 5:i=t.sent,r=i.defaultSysAppName;case 7:r?(e.mainNavName=r,r&&!["configurationcenter","apaas"].includes(r.toLocaleLowerCase())||(e.showConfigCenter=!1,e.isConfigCenter=!0),e.loaded=!0):(e.loaded=!0,e.$router.push({name:"401"}));case 8:case"end":return t.stop()}}),t)})))()},methods:{showLicenseInfo:function(e){this.showLicense=e},getQueryVariable:function(e){for(var t=window.location.search.substring(1).split("&"),r=0;r0&&(sessionStorage.setItem("InitNotificationMessage",r),e.new_promptsound&&t.audioNewMessage(),e.new_windowsnotification)){var a=new Notification("消息通知",{body:"您有".concat(i,"条消息通知未读")});a.onshow=function(){},a.onclick=function(){var e=window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey;S.pushLocation(S.getSubAppCode("",e),"vmlist/new_notification/notice")},a.onerror=function(e){throw e},setTimeout((function(){a.close()}),5e3)}}))},audioNewMessage:function(){var e=document.getElementById("playercnt");null==e&&((e=document.createElement("div")).id="playercnt",e.setAttribute("style","display:none"),document.body.appendChild(e)),e.innerHTML=""}}};function A(e,t,r,i,a,n,o,s){var l,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=r,d._compiled=!0),i&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),o?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=l):a&&(l=s?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(e,t){return l.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:e,options:d}}r("8b73");var M=A(D,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"main"},[r("rt-license-info",{ref:"licenseinfo",on:{show:e.showLicenseInfo}}),e.isOutOfMainContainer?e._e():r("div",{ref:"_appheader",class:e.heightstyle},[r("div",{class:e.slideContainer},[e._t("nav",(function(){return[e.loaded?r("rt-app-nav-new",{attrs:{isCollapse:e.isCollapse,showConfigCenter:e.showConfigCenter,isMainapp:e.isMainapp,navName:e.mainNavName,isConfigCenter:e.isConfigCenter,subappKey:e.subappKey}}):e._e()]}))],2),r("div",{staticClass:"app-content",class:e.containerClassName},[e._t("header",(function(){return[r("rt-app-header-new",{attrs:{isCollapse:e.isCollapse,supportEntrance:"",supportHelp:e.supportHelp,supportI18n:e.supportI18n,isMainapp:e.isMainapp,supportAdvance:!1,supportMessage:!1,subappKey:e.subappKey}},[r("template",{slot:"prefix"}),r("template",{slot:"signal"}),r("template",{slot:"suffix"})],2)]})),r("div",{ref:"scroll-container",staticClass:"containerStyle",attrs:{"rt-xpc-sticky-container":""}},[e._t("content",(function(){return[r("plat-layout-container")]}))],2)],2)]),e.isOutOfMainContainer?r("div",{ref:"scroll-container",staticClass:"container-style-cover",attrs:{"rt-xpc-sticky-container":""}},[r("plat-layout-container")],1):e._e()],1)}),[],!1,null,null,null).exports,L={directives:{Clickoutside:s.a.ElementLibs.utils_clickoutside},props:{visible:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!0},showMask:{type:Boolean,default:!0},showBorder:{type:Boolean,default:!0},showNoMore:{type:Boolean,default:!1},showArrow:{type:Boolean,default:!0},data:{type:[Array]},callback:Function},data:function(){return{total:0,current:1,title:"",content:"",target:null,innerVisible:!1,arrowClass:"",nomore:!1}},computed:{innerData:function(){return this.data&&this.data.length>0?this.data.filter((function(e){if(e&&e.target){var t=e.target.getBoundingClientRect(),r=t.width,i=t.height;return r>0&&i>0}})):[]}},watch:{innerData:function(e){this.current=1,this.total=e?e.length:0;var t=e[this.current-1];t&&(this.title=t.title,this.content=t.content,this.target=t.target)},current:function(e){var t=this.data[e-1];t&&(this.title=t.title,this.content=t.content,this.target=t.target)},visible:function(e){var t=this;this.innerVisible=e,e&&this.$nextTick((function(){var e=t.target;e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(),t.calcWrapperPosition()}))},target:function(e){var t=this;this.innerVisible&&this.$nextTick((function(){e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(),t.calcWrapperPosition()}))}},mounted:function(){this.$xpc.addEventListener("resize",this.resize,{target:window,scope:this})},methods:{resize:function(){this.innerVisible&&this.calcWrapperPosition()},calcWrapperPosition:function(){var e=this.$refs.wrapper,t=e.getBoundingClientRect(),r=this.target.getBoundingClientRect(),i=document.body.getBoundingClientRect(),a=(r.x,r.width,r.y,r.height,0),n=0;a=r.y+r.height+12,this.arrowClass="wrapper-arrow-v-top rtxpc-wrapper-arrow-v-top",n=(n=r.x+r.width/2-t.width+26)<10?10:n,a=a<10?10:a;var o=r.x+r.width/2-n-4;this.$refs.wrapperArrow.style.left="".concat(o,"px"),e.style.left="".concat(n,"px"),e.style.top="".concat(a,"px");var s="polygon(0 0, 0 ".concat(r.y-8,"px, ").concat(r.x-8,"px ").concat(r.y-8,"px, ").concat(r.x+r.width+8,"px ").concat(r.y-8,"px, ").concat(r.x+r.width+8,"px ").concat(r.y+r.height+8,"px, ").concat(r.x-8,"px ").concat(r.y+r.height+8,"px, ").concat(r.x-8,"px ").concat(r.y-8,"px, 0 ").concat(r.y-8,"px, 0 ").concat(i.height,"px, ").concat(i.width,"px ").concat(i.height,"px, ").concat(i.width,"px 0, 0 0)");this.$refs.mask.style.clipPath=s;var l=r.width+16,d=r.height+16,c=r.y-8-4,u=r.x-8;c<0?(d+=c,c=0):c+d>i.height&&(d=i.height-c-8),u<0?(l+=u,u=0):u+l+8>i.width&&(l=i.width-u-8),this.$refs.maskBorder.style.width="".concat(l,"px"),this.$refs.maskBorder.style.height="".concat(d,"px"),this.$refs.maskBorder.style.top="".concat(c,"px"),this.$refs.maskBorder.style.left="".concat(u,"px")},next:function(){this.current1&&this.current--},hide:function(){this.innerVisible=!1,this.$emit("update:visible",!1),this.$emit("close"),this.callback&&"function"==typeof this.callback&&this.callback({currentIndex:this.current,data:this.innerData,nomore:this.nomore})}}},R=(r("24fd"),A(L,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.innerVisible?r("div",{staticClass:"rt-xpc-guide"},[r("div",{ref:"wrapper",staticClass:"rt-xpc-guide-wrapper",class:e.arrowClass},[r("div",{staticClass:"rt-xpc-guide-close"},[r("rc-icon",{attrs:{type:"iconFont",size:16,name:"rt-base-close-x-lined"},on:{click:e.hide}})],1),e.title?r("div",{staticClass:"rt-xpc-guide-header"},[r("div",{staticClass:"rt-xpc-guide-title"},[e._v(" "+e._s(e.title)+" ")])]):e._e(),r("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],ref:"guide-content",staticClass:"rt-xpc-guide-content"},[r("div",{staticClass:"toy"}),r("div",{staticClass:"text"},[e._v(e._s(e.content))]),e.showNoMore?r("div",{staticClass:"no-more-wrapper"},[r("rt-checkbox",{model:{value:e.nomore,callback:function(t){e.nomore=t},expression:"nomore"}},[e._v(e._s(e.$_t("Ug.dont","不再提示")))])],1):e._e()]),e.showFooter?r("div",{staticClass:"rt-xpc-guide-footer"},[r("div",{staticClass:"rt-xpc-guide-page-number"},[r("span",{staticClass:"rt-xpc-guide-page-current"},[e._v(e._s(e.current)+" /")]),r("span",{staticClass:"rt-xpc-guide-page-total"},[e._v(e._s(e.total))])]),e.current0?this.data.filter((function(e){if(e&&e.target){var t=e.target.getBoundingClientRect(),r=t.width,i=t.height;return r>0&&i>0}})):[]},guideVisible:function(){return this.innerVisible&&this.loaded}},watch:{innerData:function(e){var t=e[this.current-1];t&&(this.title=t.title,this.content=t.content,this.target=t.target)},visible:function(e){this.innerVisible=e},target:function(e){var t=this;this.innerVisible&&this.$nextTick((function(){e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(),t.calcWrapperPosition()}))},guideVisible:function(e){var t=this;if(e)this.$nextTick((function(){var e=t.target;e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():e.scrollIntoView(),t.calcWrapperPosition();var r=t.$refs.wrapper;t.initResizeObserver(r)}));else{var r=this.$refs.wrapper;this.deinitResizeObserver(r)}}},created:function(){var e=this;this.$PlatUtils.getCustomResource(this.appKey,"$customerComponentResource$").then((function(t){d.a.component(e.appKey,t),t&&(e.loaded=!0)})).catch((function(t){e.loaded=!0}))},mounted:function(){},methods:{initResizeObserver:function(e){var t=this;this._resizeObserver||e&&(this._resizeObserver=new ResizeObserver((function(){t.calcWrapperPosition()})),this._resizeObserver.observe(e))},deinitResizeObserver:function(e){e&&this._resizeObserver&&(this._resizeObserver.unobserve(e),this._resizeObserver=null)},hide:function(e){if(this.innerVisible=!1,this.$emit("update:visible",!1),this.$emit("close"),this.callback&&"function"==typeof this.callback){var t=this.innerData[this.current-1];this.callback({type:e,data:t})}},handleOK:function(){this.hide(1)},handleMore:function(){this.hide(2)},calcWrapperPosition:function(){var e=this.$refs.wrapper,t=e.getBoundingClientRect(),r=this.target.getBoundingClientRect(),i=document.body.getBoundingClientRect(),a=r.x+r.width,n=r.y+r.height/2,o=0,s=0;o=n-t.height/2,s=a+12+t.width>i.width?a-r.width-12-t.width:a+12,s=Math.max(s,10),(o=Math.max(o,10))+t.height>=i.height&&(o=i.height-t.height-10),e.style.left="".concat(s,"px"),e.style.top="".concat(o,"px"),this.$refs.wrapperArrow.style.left="";var l=n-o;this.$refs.wrapperArrow.style.top="".concat(l,"px")}}},$=(r("429a"),A(P,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.guideVisible?r("div",{staticClass:"plat-menu-guide"},[r("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.hide,expression:"hide"}],ref:"wrapper",staticClass:"plat-menu-guide-wrapper"},[e.title?r("div",{staticClass:"plat-menu-guide-header"},[r("div",{staticClass:"plat-menu-guide-title"},[e._v(" "+e._s(e.title)+" ")])]):e._e(),r("div",{ref:"guide-content",staticClass:"plat-menu-guide-content"},[e.loaded?r(e.appKey,{tag:"component",attrs:{readonly:!0,value:e.content,"disable-preview":""}}):e._e()],1),r("div",{staticClass:"plat-menu-guide-footer"},[r("rc-button",{attrs:{type:"plain",text:""},on:{click:e.handleOK}},[e._v(" "+e._s(e.$_t("got_it","我知道了"))+" ")]),r("rc-button",{attrs:{type:"primary"},on:{click:e.handleMore}},[e._v(" "+e._s(e.$_t("learn_more","了解更多"))+" ")])],1),r("div",{ref:"wrapperArrow",staticClass:"plat-menu-guide-wrapper-arrow"})])]):e._e()}),[],!1,null,"138c75ec",null).exports),F=["data","key","isForce","callback"],j=["data","key","isForce","callback"];function B(e,t){if(null==e)return{};var r,i,a=function(e,t){if(null==e)return{};var r,i,a={},n=Object.keys(e);for(i=0;i=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var U,V,q=d.a.extend(R),z=d.a.extend($),H=function(){},G=function(){(V=new z({el:document.createElement("div")})).callback=H};function W(e){var t=e.data,r=void 0===t?[]:t,i=e.key,a=e.isForce,n=void 0!==a&&a,o=e.callback,s=B(e,F);U||((U=new q({el:document.createElement("div")})).callback=H);var l="plat-guide-first-visible";i&&(l+="-"+i),rt.getLocalStorage(l)&&!n||r.length>0&&(U.data=r.sort((function(e,t){return e.index-t.index})),Object.keys(s).forEach((function(e){U[e]=s[e]})),U.callback=function(e){U.visible=!1,o&&"function"==typeof o&&o(e),rt.setLocalStorage(l,!0)},document.body.appendChild(U.$el),d.a.nextTick((function(){U.visible=!0})))}var Q=r("d7bc"),X=window.indexedDB?window.indexedDB:window.webkitIndexedDB?window.webkitIndexedDB:window.mozIndexedDB?window.mozIndexedDB:window.msIndexedDB?window.msIndexedDB:void 0;function K(e,t,r){void 0===r&&(r=1e4);var i=setTimeout((function(){t(new Error("indexedDB timeout"))}),r);e.addEventListener("success",(function(){i&&-1!==i&&(clearTimeout(i),i=-1)})),e.addEventListener("error",(function(e){i&&-1!==i&&(clearTimeout(i),i=-1)}))}function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Z(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw n}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function ae(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}function ne(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){ae(n,i,a,o,s,"next",e)}function s(e){ae(n,i,a,o,s,"throw",e)}o(void 0)}))}}var oe=new(function(){function e(e,t,r){this.dbName="",this.tableName="",this.cacheTimes=864e5,this.dbName=e,this.tableName=t,r&&(this.cacheTimes=1e3*r)}return e.prototype.openDB=function(e){var t=this;return new Promise((function(r,i){if(!X)return i(new Error("openDB error: indexedDB is unavailable"));if(!e)return i(new Error("openDB error: tenantCode is undefined"));var a=X.open(t.dbName+"_"+e);a.addEventListener("upgradeneeded",(function(e){var r=e.target.result;t.tableName&&(r.objectStoreNames.contains(t.tableName)||r.createObjectStore(t.tableName,{keyPath:"id"}))})),a.addEventListener("success",(function(e){var t=e.target.result;r(t)})),a.addEventListener("error",(function(e){var t=e.target.error;i(t)})),K(a,i)}))},e.prototype.closeDB=function(e){e.close()},e.prototype.find=function(e,t,r,i,a){var n=this;return void 0===i&&(i=!0),void 0===a&&(a=!1),new Promise((function(o,s){return Object(Q.__awaiter)(n,void 0,void 0,(function(){var n,l,d,c,u=this;return Object(Q.__generator)(this,(function(p){switch(p.label){case 0:if(t)return[3,4];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,this.openDB(r)];case 2:return t=p.sent(),[3,4];case 3:return n=p.sent(),[2,s(n)];case 4:return e?(l=t.transaction(this.tableName),d=l.objectStore(this.tableName),(c=d.get(e)).addEventListener("success",(function(e){var r=e.target.result;a||(r=u.getValue(r)),o(r),i&&t&&u.closeDB(t)})),c.addEventListener("error",(function(e){var r=e.target.error;s(r),i&&t&&u.closeDB(t)})),K(c,s),[2]):[2,o(null)]}}))}))}))},e.prototype.add=function(e,t,r){var i=this;return new Promise((function(a,n){return Object(Q.__awaiter)(i,void 0,void 0,(function(){var i,o,s,l,d,c,u,p=this;return Object(Q.__generator)(this,(function(h){switch(h.label){case 0:return h.trys.push([0,3,,4]),[4,this.openDB(e)];case 1:return i=h.sent(),[4,this.find(t,i,e,!1)];case 2:return o=h.sent(),s=i.transaction(this.tableName,"readwrite"),l=s.objectStore(this.tableName),d=void 0,c={id:t,data:r,createdon:new Date},(d=o?l.put(c):l.add(c)).addEventListener("success",(function(e){a(),p.closeDB(i)})),d.addEventListener("error",(function(e){var t=e.target.error;n(t),p.closeDB(i)})),K(d,n),[3,4];case 3:return u=h.sent(),n(u),[3,4];case 4:return[2]}}))}))}))},e.prototype.deleteByKey=function(e,t){var r=this;return new Promise((function(i,a){return Object(Q.__awaiter)(r,void 0,void 0,(function(){var r,n,o,s,l,d=this;return Object(Q.__generator)(this,(function(c){switch(c.label){case 0:if(!X)return[2,a(new Error("openDB error: indexedDB is unavailable"))];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.openDB(e)];case 2:return r=c.sent(),n=r.transaction(this.tableName,"readwrite"),o=n.objectStore(this.tableName),(s=o.delete(t)).addEventListener("success",(function(e){i(),d.closeDB(r)})),s.addEventListener("error",(function(e){var t=e.target.error;a(t),d.closeDB(r)})),K(s,a),[3,4];case 3:return l=c.sent(),a(l),[3,4];case 4:return[2]}}))}))}))},e.prototype.deleteDB=function(e){var t=this;return new Promise((function(r,i){if(!X)return i(new Error("openDB error: indexedDB is unavailable"));var a=X.deleteDatabase(t.dbName+"_"+e);a.addEventListener("success",(function(e){r()})),a.addEventListener("error",(function(e){var t=e.target.error;i(t)})),a.addEventListener("blocked",(function(e){var t=e.target.error;i(t)})),K(a,i)}))},e.prototype.getValue=function(e){if(e&&e.id&&e.data&&e.createdon)return(new Date).valueOf()-e.createdon.valueOf()0){var a=e.bizSysAppList.find((function(t){return t.appName.toLocaleLowerCase()===e.computedNavName.toLocaleLowerCase()}));if(e.isSelectBizSysApp=a||e.bizSysAppList[0],["configurationcenter","apaas"].includes(e.computedNavName.toLocaleLowerCase())){var n=e.builtInSysAppList.find((function(t){return t.appName.toLocaleLowerCase()===e.computedNavName.toLocaleLowerCase()}));e.setTheme(n)}else e.setTheme(e.isSelectBizSysApp)}e.emitMain({bizSysAppList:e.bizSysAppList,isSelectBizSysApp:e.isSelectBizSysApp})}}))},changeWatermarkWidth:function(){this.isCollapse?this.$PlatUtils.createWatermark("".concat(this.userName,"(").concat(this.userCode,")"),"calc(100% - 64px)"):this.$PlatUtils.createWatermark("".concat(this.userName,"(").concat(this.userCode,")"),"calc(100% - 200px)")},setTheme:function(e){e&&e.theme?this.theme=e.theme:this.theme="dark",localStorage.setItem("".concat(this.computedNavName,"theme"),this.theme)},loadLogos:function(e){var t=this;return ne(ie().mark((function r(){return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e&&!t.logoLoaded){r.next=2;break}return r.abrupt("return");case 2:return r.prev=2,r.next=5,t.setLogos(e);case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(2);case 10:return r.prev=10,t.logoLoaded=!0,r.finish(10);case 13:case"end":return r.stop()}}),r,null,[[2,7,10,13]])})))()},setLogos:function(e){var t=this;return new Promise((function(r,i){e||i("logoUrls is null");var a=e.CrmDetailLogo,n=e.CrmMenuFoldLogo,o=e.ConfigCenterLogo||"",s=e.ConfigCenterFoldLogo||"";if(t.isConfigCenter){var l=o&&!o.startsWith("https://")?rt.getImgUrl(o):o,d=s&&!s.startsWith("https://")?rt.getImgUrl(s):s;Promise.allSettled([l,d]).then((function(e){t.configCenterLogoUrl=e[0].value||"",t.configCenterFoldLogoUrl=e[1].value||"",r()})).catch((function(e){i(e)}))}else{var c=a&&!a.startsWith("https://")?rt.getImgUrl(a):a,u=n&&!n.startsWith("https://")?rt.getImgUrl(n):n;Promise.allSettled([c,u]).then((function(e){t.logoSrc=e[0].value||"",t.collapseLogoSrc=e[1].value||"",r()})).catch((function(e){i(e)}))}}))},toConfigCenter:function(){S.pushLocation("","",!0,"configurationcenter")},toApaas:function(){var e=window.location.protocol+"//"+window.location.host+"/p/".concat(this.tenantCode,"/apaas/#/");window.open(e,"_blank")},fetchData:function(){var e=this;return ne(ie().mark((function t(){var r,i,a;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.loadMenusFromIndexedDB();case 2:return(r=t.sent)&&r.length&&(e.aliasMenu=e._recursiveMenu(r)),t.prev=4,i=[e.bindMenus(),e.fetchMenusWithGuide()],t.next=8,Promise.allSettled(i);case 8:t.next=13;break;case 10:t.prev=10,t.t0=t.catch(4);case 13:return e.aliasMenu=e._recursiveMenu(e.menuList),e.$emit("loaded",e.menuList),a={layPrepare:!0,list:e.menuList},window.__POWERED_BY_QIANKUN__?(e.$mainBus.$emit("senNavInfo",{layPrepare:!0,list:e.menuList}),e.$mainBus.$on("listenNavInfo",(function(t){t.dashPrepare&&e.$mainBus.$emit("senNavInfo",te(te({},t),a))}))):(e.$bus.$emit("senNavInfo",a),e.$PlatUtils.listenerHook(e,"listenNavInfo",(function(t){t.dashPrepare&&e.$bus.$emit("senNavInfo",te(te({},t),a))}))),e.isShowFooter=!0,t.abrupt("return",Promise.resolve(e.aliasMenu));case 19:case"end":return t.stop()}}),t,null,[[4,10]])})))()},_recursiveMenu:function(e){var t=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e)return e.map((function(e){var i=e.Icon?e.Icon:e.IconCdn,a="";return a=i.startsWith("$menu-")?i.replace("$menu-",""):"plat-icon-fwy-order-lined",{title:t.$_t(e.MenuCode,e.MenuDesc),desc:"",path:e.FormUrl,FormUrl:e.FormUrl,id:e.MenuId,hasIcon:e.hasIcon,iconSrc:"",iconName:r?a:"",children:t._recursiveMenu(e.SubMenu,!1),CurrentProject:e.CurrentProject,IsOpenNewTab:e.IsOpenNewTab,MenuRemark:e.MenuRemark,MenuSeq:e.MenuSeq,ParentMenuDesc:e.ParentMenuDesc,Platform:e.Platform,PmenuCode:e.PmenuCode,PmenuOption:e.PmenuOption,StateCode:e.StateCode,SubAppMode:e.SubAppMode,allPmenuCode:e.allPmenuCode,new_allowoffline:e.new_allowoffline,new_linktype:e.new_linktype,subAppName:e.subAppName,subAppid:e.subAppid}}))},redirectToFirstMenu:function(){var e=this,t=this,r=this.$el.querySelector(".rtxpc-menu-item").__vue__;t.$refs.rtSidebarMenu.activeIndex="",t.__firstMenuInfo.IsOpenNewTab?setTimeout((function(){t.beforeClick((function(){return resolve(!0)}),(function(){return resolve(!1)}),r)}),300):setTimeout((function(){t.$refs.rtSidebarMenu.activeIndex=e.__firstMenuInfo.MenuId,t.$refs.rtSidebarMenu.selectHandler(t.__firstMenuInfo.MenuId,t.__firstMenuInfo,r,r)}),300)},goHome:function(){if(this.menuList&&this.menuList.length>0&&this.__firstMenuInfo&&Object.keys(this.__firstMenuInfo).length>0)if(this.isMainapp){var e=window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey;S.pushLocation(S.getSubAppCode(this.__firstMenuInfo.subAppName,e),this.__firstMenuInfo.FormUrl,!1,"",!0)}else{var t=this.__firstMenuInfo.FormUrl;t.startsWith("/")?this.$router.replace({path:t}):this.$router.replace({path:"/"+t})}},checkSingalRPath:function(e){var t=this;return e.some((function(e){return!(!e||"crm.webchat"!==e.MenuCode)||(null!=e.SubMenu&&e.SubMenu.length>0?t.checkSingalRPath(e.SubMenu):void 0)}))},filterMenuList:function(e){if(!S.getIgnoredSubapps().includes(this.subappKey)){var t,r=[],i=J(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,n=this.recursionMenuinfo(a);n&&r.push(n)}}catch(e){i.e(e)}finally{i.f()}return r}return e},recursionMenuinfo:function(e){if(!e)return null;if(e.SubMenu&&0!=e.SubMenu.length){var t,r=[],i=J(e.SubMenu);try{for(i.s();!(t=i.n()).done;){var a=t.value,n=this.recursionMenuinfo(a);n&&r.push(n)}}catch(e){i.e(e)}finally{i.f()}return 0==r.length?null:(e.SubMenu=r,e)}return e.subAppName==this.subappKey?e:null},bindMenus:function(){var e=this;return new Promise(function(){var t=ne(ie().mark((function t(r,i){var a,n,o,s,l,d,u,p,h;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a="api/PortalMenu/UserMenu/".concat(e.computedNavName),t.next=3,rt.get(a).catch((function(e){rt.showErrorToast(e),i(e)}));case 3:if(n=t.sent,o="",!e.$IsAPaasPro$&&window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey&&(o=window.qiankunconfig.defaultSubAppKey),e.isMainapp||(n=e.filterMenuList(n)),e.$store.commit("UPDATE_MENU",n),r(n),0!=n.length){t.next=13;break}return e.menuList=n,c.a.isDevelopment()||e.qiankunReplace(o,"401"),t.abrupt("return");case 13:if(s=S.getTenantCode(),oe.add(s,"menus_".concat(e.computedNavName),n),e.allMenuList=n,e.menuList=n,e.singalStore(),e.__firstMenuInfo=e.getFirstChildMenuInfo(e.menuList),e.__firstMenuInfo&&0!=Object.keys(e.__firstMenuInfo).length){t.next=21;break}return t.abrupt("return");case 21:l=rt.getCurrentSubapp(),d=rt.getCurrentRoutePath(),u=d||e.__firstMenuInfo.FormUrl||"",e.isMainapp?d?(p=l||(e.$IsAPaasPro$?"":o),e.qiankunReplace(p,d)):(h=S.getSubAppCode(e.__firstMenuInfo.subAppName,o),e.qiankunReplace(h,u)):d||e.$router.push({path:u}),e.setMenuRoute(u);case 26:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}())},getCurrentMenu:function(e,t){var r,i=J(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.MenuId===t)return a;if(a.SubMenu.length>0){var n=this.getCurrentMenu(a.SubMenu,t);if(n)return n}}}catch(e){i.e(e)}finally{i.f()}return null},loadMenusFromIndexedDB:function(){var e=this;return ne(ie().mark((function t(){var r,i;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=S.getTenantCode(),t.next=4,oe.find("menus_".concat(e.computedNavName),null,r);case 4:return i=t.sent,t.abrupt("return",i||null);case 8:return t.prev=8,t.t0=t.catch(0),t.abrupt("return",null);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})))()},fetchMenusWithGuide:function(){var e=this;return ne(ie().mark((function t(){var r;return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.showBeginnerGuidance){t.next=2;break}return t.abrupt("return");case 2:return t.next=5,rt.post("api/custom/Guidance/GetMenuCodeWithGuidance");case 5:r=t.sent,e.setMenusWithGuide(r.Result||[]),r.Result.length&&G();case 8:case"end":return t.stop()}}),t)})))()},setMenusWithGuide:function(e){this.$store.commit("SET_MENUS_WITH_GUIDE",e)},getMenusWithGuide:function(){return this.$store.state.menusWithGuide},setMenuRoute:function(e){var t=this.matchMenuId(this.menuList,e);t||(t=this.isMainapp&&sessionStorage.qiankunMenuId?sessionStorage.qiankunMenuId:sessionStorage[this.subappKey+"menuId"]?sessionStorage[this.subappKey+"menuId"]:this.__firstMenuInfo.MenuId),this.resetRoute=t,this.isMainapp?(sessionStorage.qiankunMenuId=t,sessionStorage[this.subappKey+"menuId"]=""):(sessionStorage[this.subappKey+"menuId"]=t,sessionStorage.qiankunMenuId=""),this.initialMenu=this.getCurrentMenu(this.allMenuList,this.resetRoute)||this.getCurrentMenu(this.allMenuList,this.__firstMenuInfo.MenuId),this.initialMenu&&this.setDocumentTitle(this.$_t(this.initialMenu.MenuCode,this.initialMenu.MenuDesc))},singalStore:function(){var e=this.checkSingalRPath(this.menuList);this.$store.state.canSiginSignalR!=e&&this.$store.commit("UPDATE_CanSiginSignalR",e)},matchMenuId:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e||0==e.length)return"";var r,i=J(e);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a.FormUrl)return"";var n=t.replace(/\?.*$/,"").replace(/^\/|\/$/g,""),o=a.FormUrl.replace(/\?.*$/,"").replace(/^\/|\/$/g,"");if(n==o)return a.MenuId;var s=this.matchMenuId(a.SubMenu,t);if(s)return s}}catch(e){i.e(e)}finally{i.f()}},getFirstChildMenuInfo:function(e){if(!e||0==e.length)return null;var t=e[0];return this.getFirstChildMenuInfo(t.SubMenu)||t},setDocumentTitle:function(e){"configurationcenter"===this.navName?document.title=e+"-"+this.$_t("platform.configurationcenter","配置"):"apaas"===this.navName?document.title=e+"-"+this.$_t("menu_custom","自定义"):document.title=e+"-"+this.documentTitle},saveMenuClick:function(e){var t=arguments,r=this;return ne(ie().mark((function i(){var a,n;return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:a=!(t.length>1&&void 0!==t[1])||t[1],n={new_code:e.MenuCode,new_name:e.MenuDesc,new_tenant_code:r.$store.state.systemparameter.Current_Project,new_tenant_name:r.$store.state.systemparameter.CompanyInfo,new_type:e.Platform},a&&r.setDocumentTitle(r.$_t(e.MenuCode,e.MenuDesc)),rt.post("api/common/menuclick",n).then((function(e){})).catch((function(e){rt.showErrorToast(e)}));case 4:case"end":return i.stop()}}),i)})))()},queryGuidanceByMenuCode:function(e,t){var r=this;return ne(ie().mark((function i(){var a,n,o,s,l;return ie().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(r.setCurrentGuidance(""),(a=r.getMenusWithGuide())&&a.includes(e)){i.next=4;break}return i.abrupt("return");case 4:return i.prev=4,i.next=8,rt.post("api/custom/Guidance/ShowGuidance",{MenuCode:e});case 8:n=i.sent,o=localStorage.i18nLocaleid||"2052",(s=(n.Result||[]).filter((function(e){return!(!e.isShow||!e.new_menu_enabled)&&(!e.new_languageid_langid||e.new_languageid_langid.split(",").includes(o))}))).length&&(l=s[0],r.setCurrentGuidance(l.new_guidanceid),r.showGuide(l,t)),i.next=17;break;case 14:i.prev=14,i.t0=i.catch(4),rt.showErrorToast(i.t0);case 17:case"end":return i.stop()}}),i,null,[[4,14]])})))()},showGuide:function(e,t){var r=this;if(t){var i=t.$el;if(this.isCollapse){var a=this.findRootMenuItem(t);a&&(i=a.$el)}i&&function(e){var t=e.data,r=void 0===t?[]:t,i=e.key,a=e.isForce,n=void 0!==a&&a,o=e.callback,s=B(e,j);V||G();var l="plat-menu-guide-first-visible";i&&(l+="-"+i),rt.getLocalStorage(l)&&!n||r.length>0&&(V.data=r.sort((function(e,t){return e.index-t.index})),Object.keys(s).forEach((function(e){V[e]=s[e]})),V.callback=function(e){V.visible=!1,o&&"function"==typeof o&&o(e),rt.setLocalStorage(l,!0)},document.body.appendChild(V.$el),d.a.nextTick((function(){V.visible=!0})))}({data:[{$id:e.new_guidanceid,title:e.new_name,content:e.new_summary,target:i}],isForce:!0,callback:function(e){var t=e.type,i=e.data.$id;1===t?r.requestSaveGuidanceRecord(i,r.currentMenuCode):2===t&&(r.$bus.$emit("open-guidance",i),r.requestSaveGuidanceRecord(i,r.currentMenuCode),r.addToClickRecord("learn_more","了解更多"))}})}},addToClickRecord:function(e,t){var r={new_code:e,new_name:t,new_tenant_code:this.$store.state.systemparameter.Current_Project,new_tenant_name:this.$store.state.systemparameter.CompanyInfo,new_type:this.isSelectBizSysApp.appName||"xrm"};rt.post("api/common/menuclick",r).then((function(e){})).catch((function(e){rt.showErrorToast(e)}))},findRootMenuItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.$parent;if(!r||!r.$el)return null;var i=r.$el;return"ul"===i.tagName.toLowerCase()&&"menubar"===i.getAttribute("role")?e:t>10?null:this.findRootMenuItem(r,t+1)},requestSaveGuidanceRecord:function(e,t){return ne(ie().mark((function r(){var i;return ie().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={GuidanceId:e,MenuCode:t},r.prev=2,r.next=5,rt.post("api/custom/Guidance/SaveGuidanceReadRecord",i);case 5:r.next=10;break;case 7:r.prev=7,r.t0=r.catch(2),rt.showErrorToast(r.t0);case 10:case"end":return r.stop()}}),r,null,[[2,7]])})))()},setCurrentGuidance:function(e){var t=S.getTenantCode();localStorage.setItem("current_guidance_".concat(t),e)},getCurrentGuidance:function(){var e=S.getTenantCode();return localStorage.getItem("current_guidance_".concat(e))},onMenuSelected:function(e,t,r,i){this.isMainapp?(sessionStorage.setItem("qiankunMenuId",e),this.$bus.$emit("needClear")):(sessionStorage[this.subappKey+"menuId"]=e,this.$bus.$emit("needClear"));var a,n,o=[],s=J(this.menuList);try{for(s.s();!(a=s.n()).done;){var l,d=a.value,c=J(d.SubMenu);try{for(c.s();!(l=c.n()).done;){var u,p=l.value,h=J(p.SubMenu);try{for(h.s();!(u=h.n()).done;){var f=u.value;o.push(f)}}catch(e){h.e(e)}finally{h.f()}o.push(p)}}catch(e){c.e(e)}finally{c.f()}o.push(d)}}catch(e){s.e(e)}finally{s.f()}var m=o.filter((function(t){return t.MenuId==e}));if(null!=m&&m.length>0){var g=(n=m[0]).subappName||window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey;if(this.saveMenuClick(n,!n.IsOpenNewTab),this.currentMenuCode=n.MenuCode,this.isCollapse?r&&this.queryGuidanceByMenuCode(n.MenuCode,r):i&&this.queryGuidanceByMenuCode(n.MenuCode,i),i&&this.queryGuidanceByMenuCode(n.MenuCode,i),n.IsOpenNewTab&&this._openMenu(n),1!=n.new_linktype)if(this.isMainapp){var b=S.getSubAppCode(n.subAppName,g);this.qiankunPush(b,n.FormUrl)}else this.$router.push({path:"/"+n.FormUrl});else window.location.href=n.FormUrl}},_openMenu:function(e){var t=this,r=this.getCurrentMenu(this.allMenuList,e.id);this.saveMenuClick(r,!e.IsOpenNewTab),this.$refs.rtSidebarMenu&&(this.$refs.rtSidebarMenu.searchValue="");var i=e.subappName||window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey,a=function(){var r=S.getSubAppCode(e.subAppName,i);return"configurationcenter"==e.Platform.toLowerCase()?S.getRealUrl(r,e.FormUrl,e.Platform):S.getRealUrl(r,e.FormUrl,t.getQueryVariable("mainNavName"))};if(this.isMainapp){var n=S.getSubAppCode(e.subAppName,i),o=e.FormUrl;if(1!=e.new_linktype){if(!e.SubAppMode||!n)return void rt.openNewLabel({url:a()});o=window.location.protocol+"//"+window.location.host+"/s/".concat(this.tenantCode,"/").concat(n,"/#/")+e.FormUrl}else{var s=e.FormUrl;s.startsWith("http://")||s.startsWith("https://")?o=s:(s.startsWith("/")&&(o=s.substring(1)),s.startsWith("./")&&(o=s.substring(2)),s.startsWith("../")&&(o=s.substring(3)),o=window.location.protocol+"//"+window.location.host+"/p/".concat(this.tenantCode,"/")+o)}rt.openNewLabel({url:o})}else{var l=e.FormUrl;"configurationcenter"==e.Platform.toLowerCase()?l=a():1!=e.new_linktype&&(l=this.$router.resolve({path:"/"+e.FormUrl}).href),rt.openNewLabel({url:l})}},qiankunPush:function(e,t){sessionStorage.subappKey=e;var r="";t.startsWith("http://")||t.startsWith("https://")?r=t:(r=rt.isDevelopment()?window.location.origin:"/t/".concat(this.tenantCode),e&&(r+="/webapp/".concat(e)),r+=rt.mergeUrl("/?mainNavName=".concat(this.computedNavName,"#/"),t)),history.pushState(null,"",r)},qiankunReplace:function(e,t){sessionStorage.subappKey=e;var r="";t.startsWith("http://")||t.startsWith("https://")?r=t:(r=rt.isDevelopment()?window.location.origin:"/t/".concat(this.tenantCode),e&&(r+="/webapp/".concat(e)),r+=rt.mergeUrl("/?mainNavName=".concat(this.computedNavName,"#/"),t)),history.replaceState(history.state,"",r);var i=new PopStateEvent("popstate",{state:null});window.dispatchEvent(i)},isCollapseChange:function(){if(this.$bus.$emit("isCollapseChange"),!this.isMainapp&&!this.isCollapse)if(sessionStorage[this.subappKey+"menuId"])this.resetRoute=sessionStorage[this.subappKey+"menuId"];else{var e=this.$route.fullPath.split("/");null==e[2]?this.resetRoute=e[1]:this.resetRoute=e[1]+"/"+e[2]}},bindMenusBySearch:function(){var e=this.allMenuList;if(this.search.length>0){var t=[];this.bindMenus3(e,t),this.menuList=t}else this.menuList=e},bindMenus3:function(e,t){var r=this;e.forEach((function(e){var i={};for(var a in e)i[a]=e[a];null==i.SubMenu||0==i.SubMenu.length?r.$_t(i.MenuCode,i.MenuDesc).toLowerCase().indexOf(r.search.toLowerCase())>=0&&(i.SubMenu=[],i.Icon=null,t.push(i)):r.bindMenus3(i.SubMenu,t)}))},getQueryVariable:function(e){for(var t=window.location.search.substring(1).split("&"),r=0;r=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function me(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}var ge={name:"RtUserSetting",data:function(){return{dialogChangeVisible:!1,editForm:{timezonecode:null,transactioncurrencyid:null},loading:!1,buttonLoading:!1,uilanguageidOptions:[],rules:{timezonecode:[{required:!0,message:"",trigger:"blur"}],transactioncurrencyid:[{required:!0,message:" ",trigger:"blur"}]}}},watch:{timezonecode:{handler:function(e){(e||0===e)&&this.$set(this.editForm,"timezonecode",e.toString())},immediate:!0},transactioncurrency:{handler:function(e){this.$set(this.editForm,"transactioncurrencyid",e)},immediate:!0}},mounted:function(){},computed:{parameter_EnableTimeZone:function(){return this.$store.state.systemparameter&&this.$store.state.systemparameter.EnableTimeZone?this.$store.state.systemparameter.EnableTimeZone:"false"},parameter_EnableMultiCurrency:function(){return this.$store.state.systemparameter.EnableMultiCurrency?this.$store.state.systemparameter.EnableMultiCurrency:"false"},timezonecode:function(){return this.$store.state.user.timezonecode},transactioncurrency:function(){return this.$store.state.user.transactioncurrency}},methods:{show:function(){this.dialogChangeVisible=!0,"true"==this.parameter_EnableMultiCurrency&&this.loadData()},loadTimezones:function(){return(e=fe().mark((function e(){var t,r;return fe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(e){var t=Number(e);if(Number.isNaN(t))return"";var r=t<0?"-":"+",i=(t=Math.abs(t))%1,a=t-i;return"UTC(".concat(r).concat(a.toString().padStart(2,0),":").concat((60*i).toString().padStart(2,0),")")},e.prev=1,e.next=4,rt.get("api/dynamic/timezonedefinition?$select=timezonecode,timezonename,offsetvalue,hasdst&$orderby=timezonename&$filter=retiredorder eq 0");case 4:return r=e.sent,e.abrupt("return",r.Entities.map((function(e){return{timeZoneCode:e.timezonecode.toString(),timeZoneName:e.timezonename,description:e.timezonename,offset:e.offsetvalue,UTC:t(e.offsetvalue),hasDST:!!e.hasdst}})));case 8:e.prev=8,e.t0=e.catch(1),rt.showErrorToast(e.t0);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){me(n,i,a,o,s,"next",e)}function s(e){me(n,i,a,o,s,"throw",e)}o(void 0)}))})();var e},loadLangs:function(){var e=this;rt.get("api/dynamic/new_language?$select=new_name,new_langid,new_code&$orderby=createdon").then((function(t){e.uilanguageidOptions=t.Entities})).catch((function(e){rt.showErrorToast(e)}))},loadData:function(){var e=this;rt.get("api/UserSetting/Get").then((function(t){null!=t&&(e.editForm=pe(pe({},t),{},{timezonecode:t.timezonecode.toString(),timezonename:t.timezonename}))})).catch((function(e){rt.showErrorToast(e)}))},save:function(){var e=this;this.$refs.editForm1&&this.$refs.editForm1.validate((function(t){if(t){if(!e.editForm.timezonecode)return void rt.showErrorToast("请输入必填项");if("true"==e.parameter_EnableMultiCurrency&&!e.editForm.transactioncurrencyid)return void rt.showErrorToast("请输入必填项");e.buttonLoading=!0,pe({},e.editForm).timezonecode=Number(e.editForm.timezonecode),rt.post("api/UserSetting/Set",e.editForm).then((function(t){if(rt.setDefaultTimeZone(e.editForm.timezonename,e.$PlatUtils.getTenantCode()),e.editForm.uilanguageid){var r=e.uilanguageidOptions.filter((function(t){return t.new_langid==e.editForm.uilanguageid}));if(null!=r&&r.length>1){var i=i[0];localStorage.i18nLocale=i.new_code,localStorage.i18nLocaleid=i.new_langid}}e.buttonLoading=!1,e.$emit("UserSettingChange")})).catch((function(t){e.buttonLoading=!1,rt.showErrorToast(t)}))}else rt.showErrorToast("请输入必填项")}))},handleTimeZoneChanged:function(e,t){t&&(this.editForm.timezonename=t.timeZoneName)}}},be=(r("c46f"),A(ge,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"usersetting-person",attrs:{width:"50%","append-to-body":"",title:e.$_t("SETTING_PERSON","个人设置"),"close-on-click-modal":!1},model:{value:e.dialogChangeVisible,callback:function(t){e.dialogChangeVisible=t},expression:"dialogChangeVisible"}},[r("rc-view",[r("rc-card",{staticClass:"usersetting-card",attrs:{shadow:!1}},[r("rc-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"editForm1",staticClass:"userSetting plat-user-setting",attrs:{model:e.editForm,border:!0,rules:e.rules},model:{value:e.editForm,callback:function(t){e.editForm=t},expression:"editForm"}},[r("rc-row",{attrs:{gutter:54}},[r("rc-col",{directives:[{name:"show",rawName:"v-show",value:"true"==e.parameter_EnableTimeZone,expression:"parameter_EnableTimeZone=='true'"}],attrs:{span:24}},[r("rc-form-item",{staticClass:"usersetting-timezonecode",attrs:{label:e.$_t("SelectZone","选择您所在的时区"),prop:"timezonecode"}},[r("rc-time-zone",{staticClass:"time-zonecode",attrs:{fetch:e.loadTimezones,alias:{value:"timeZoneCode",name:"name"},disabled:"false"==e.parameter_EnableTimeZone,filterable:!0,placeholder:e.$_t("PleaseSelect","请选择")},on:{change:e.handleTimeZoneChanged},model:{value:e.editForm.timezonecode,callback:function(t){e.$set(e.editForm,"timezonecode",t)},expression:"editForm.timezonecode"}})],1)],1),"true"==e.parameter_EnableMultiCurrency?r("rc-col",{attrs:{span:24}},[r("rc-form-item",{staticClass:"rt-form-item-wrapper",attrs:{label:e.$_t("new_srv_partsapplydetil.new_currency_id","币别"),prop:"transactioncurrencyid"}},[r("rt-lookup-new",{attrs:{entity:"transactioncurrency","name-field":"currencyname","id-field":"transactioncurrencyid","dialog-display-fields":[{name:"currencyname"},{name:"isocurrencycode"},{name:"currencysymbol"},{name:"exchangerate"},{name:"currencyprecision"}],"dialog-orderby-fields":"currencyname asc","dialog-filter-fields":"currencyname"},model:{value:e.editForm.transactioncurrencyid,callback:function(t){e.$set(e.editForm,"transactioncurrencyid",t)},expression:"editForm.transactioncurrencyid"}})],1)],1):e._e()],1)],1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{attrs:{loading:e.buttonLoading,type:"primary"},on:{click:e.save}},[e._v(e._s(e.$_t("BUTTON_SAVE","保存")))])],1)],1)}),[],!1,null,"6a3b0e38",null).exports);function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r1?r("el-dropdown",{staticClass:"user-item-popper",attrs:{placement:"left",trigger:"hover"},on:{command:e.setLanguage}},[r("div",{staticClass:"lang-icon iconColor"},[e._v(" Language "),r("rc-icon",{staticClass:"layout-icon-angle-right-filled",attrs:{name:"plat-icon-angle-right-filled",size:"16"}})],1),r("el-dropdown-menu",{staticClass:"rt-dropdown-menu",attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.locales,(function(t){return r("el-dropdown-item",{key:t.value,staticClass:"plat-dropdown-item",attrs:{command:t.value}},[r("span",[e._v(e._s(t.name))]),r("span",{staticClass:"checkIcon"},[t.value==e.i18n?r("rc-icon",{staticClass:"check",class:"icon-right-"+t.value,staticStyle:{display:"inline-block","margin-left":"6px"},attrs:{name:"rt-base-irregular-check-lined",size:"16",color:"#0073e6"}}):e._e()],1)])})),1)],1):e._e()}),[],!1,null,"f06241fa",null).exports),Ce=A({props:{loginAfter:{type:Boolean,default:function(){return!0}},isForcePasswordChangeOnFirstLogin:{type:Boolean,default:!1}},data:function(){return{isMounted:!1}},computed:{ifShowDialog:function(){return this.loginAfter||this.isForcePasswordChangeOnFirstLogin}},watch:{ifShowDialog:{handler:function(e){e&&this.show()},immediate:!0}},methods:{toShowOldPassword:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.toShowOldPassword)||void 0===t||t.call(e)},toShowNewPassword:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.toShowNewPassword)||void 0===t||t.call(e)},toShowPassword:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.toShowPassword)||void 0===t||t.call(e)},nexttime:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.nexttime)||void 0===t||t.call(e)},handleOkClick:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.handleOkClick)||void 0===t||t.call(e)},changePassword:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.changePassword)||void 0===t||t.call(e)},JudgmentPeriod:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.JudgmentPeriod)||void 0===t||t.call(e)},handleCancelClick:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.handleCancelClick)||void 0===t||t.call(e)},show:function(){var e,t;if(!this.isMounted)return this.isMounted=!0,void rt.showLoadingToast();null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.hide)||void 0===t||t.call(e)},firstLoadedHandler:function(){var e,t;rt.hideLoadingToast(),null===(e=this.$refs.customerComponent)||void 0===e||null===(e=e.$refs.platModifyPassword)||void 0===e||null===(t=e.show)||void 0===t||t.call(e)}}},(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[this.isMounted?t("customer-component",this._g({ref:"customerComponent",attrs:{appkey:"platModifyPassword","component-name":"platModifyPassword","custom-component-ref":"platModifyPassword",loginAfter:this.loginAfter,isForcePasswordChangeOnFirstLogin:this.isForcePasswordChangeOnFirstLogin},on:{customComponentLoaded:this.firstLoadedHandler}},this.$listeners)):this._e()],1)}),[],!1,null,null,null).exports;function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(){Se=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),s=new N(a||[]);return i(o,"_invoke",{value:w(e,r,s)}),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var u={};function p(){}function h(){}function f(){}var m={};l(m,n,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&r.call(b,n)&&(m=b);var y=f.prototype=p.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var a;i(this,"_invoke",{value:function(i,n){function o(){return new t((function(a,o){!function i(a,n,o,s){var l=c(e[a],e,n);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Ne(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}(i,n,a,o)}))}return a=a?a.then(o,o):o()}})}function w(e,t,r){var i="suspendedStart";return function(a,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw n;return{value:void 0,done:!0}}for(r.method=a,r.arg=n;;){var o=r.delegate;if(o){var s=_(o,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=c(e,t,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}function _(e,t){var r=t.method,i=e.iterator[r];if(void 0===i)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var a=c(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Te(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}var ke={data:function(){return{dialogChangeVisible:!1,userId:this.$store.state.user.UserCode,userName:this.$store.state.user.UserName,keycloak_realm:window.rtconfig.keycloak_realm,isInit:!1,iconentranceUrl:""}},computed:{iconEntrance:function(){return this.$store.state&&this.$store.state.user&&this.$store.state.user.IconEntrance}},methods:{show:function(){var e,t=this;return(e=Se().mark((function e(){var r;return Se().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.dialogChangeVisible=!0,t.$store.state&&t.$store.state.systemparameter&&t.$store.state.user&&(t.$store.state.user.IconEntrance&&t.$store.state.user.userId&&t.$store.state.user.userName&&(t.userId=t.$store.state.user.UserCode,t.userName=t.$store.state.user.UserName,t.isInit=!0),r="userid=".concat(t.userId,"&username=").concat(t.userName,"&tenantid=").concat(t.keycloak_realm,"&tenantname=").concat(t.keycloak_realm),"string"==typeof t.iconEntrance&&-1!==t.iconEntrance.indexOf("langid")?t.iconentranceUrl="".concat(t.iconEntrance,"&").concat(r):t.iconentranceUrl="".concat(t.iconEntrance,"?").concat(r,"&langid=").concat(window.localStorage.i18nLocaleid));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){Te(n,i,a,o,s,"next",e)}function s(e){Te(n,i,a,o,s,"throw",e)}o(void 0)}))})()}}},Oe=(r("f2c5"),A(ke,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"dialog-iconentrance",attrs:{title:e.$_t("platform.iconentrance","我要反馈"),"show-footer":!1},model:{value:e.dialogChangeVisible,callback:function(t){e.dialogChangeVisible=t},expression:"dialogChangeVisible"}},[e.isInit?r("iframe",{staticClass:"dialog-iconentrance-iframe",attrs:{src:e.iconentranceUrl}}):e._e()])}),[],!1,null,"d8c0f7a8",null).exports);function Ie(e){return(Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(){De=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),s=new N(a||[]);return i(o,"_invoke",{value:w(e,r,s)}),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var u={};function p(){}function h(){}function f(){}var m={};l(m,n,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&r.call(b,n)&&(m=b);var y=f.prototype=p.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var a;i(this,"_invoke",{value:function(i,n){function o(){return new t((function(a,o){!function i(a,n,o,s){var l=c(e[a],e,n);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Ie(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}(i,n,a,o)}))}return a=a?a.then(o,o):o()}})}function w(e,t,r){var i="suspendedStart";return function(a,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw n;return{value:void 0,done:!0}}for(r.method=a,r.arg=n;;){var o=r.delegate;if(o){var s=_(o,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=c(e,t,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}function _(e,t){var r=t.method,i=e.iterator[r];if(void 0===i)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var a=c(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function Ae(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}var Me,Le=A({name:"sub-slot",props:{appkey:String},data:function(){return{loaded:!1}},created:function(){var e,t=this;return(e=De().mark((function e(){return De().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$PlatUtils.getCustomResource(t.appkey,"$layoutComponentResource$").then((function(e){d.a.component(t.appkey,e),e&&(t.loaded=!0)}));case 1:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(i,a){var n=e.apply(t,r);function o(e){Ae(n,i,a,o,s,"next",e)}function s(e){Ae(n,i,a,o,s,"throw",e)}o(void 0)}))})()}},(function(){var e=this.$createElement,t=this._self._c||e;return this.loaded?t(this.appkey,{tag:"component"}):this._e()}),[],!1,null,null,null).exports;function Re(e){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(){Pe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function d(e,t,r,a){var n=t&&t.prototype instanceof p?t:p,o=Object.create(n.prototype),s=new N(a||[]);return i(o,"_invoke",{value:w(e,r,s)}),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var u={};function p(){}function h(){}function f(){}var m={};l(m,n,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&r.call(b,n)&&(m=b);var y=f.prototype=p.prototype=Object.create(m);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var a;i(this,"_invoke",{value:function(i,n){function o(){return new t((function(a,o){!function i(a,n,o,s){var l=c(e[a],e,n);if("throw"!==l.type){var d=l.arg,u=d.value;return u&&"object"==Re(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(u).then((function(e){d.value=e,o(d)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}(i,n,a,o)}))}return a=a?a.then(o,o):o()}})}function w(e,t,r){var i="suspendedStart";return function(a,n){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===a)throw n;return{value:void 0,done:!0}}for(r.method=a,r.arg=n;;){var o=r.delegate;if(o){var s=_(o,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===i)throw i="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i="executing";var l=c(e,t,r);if("normal"===l.type){if(i=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i="completed",r.method="throw",r.arg=l.arg)}}}function _(e,t){var r=t.method,i=e.iterator[r];if(void 0===i)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),u;var a=c(i,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,u;var n=a.arg;return n?n.done?(t[e.resultName]=n.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function S(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i=0;--a){var n=this.tryEntries[a],o=n.completion;if("root"===n.tryLoc)return i("end");if(n.tryLoc<=this.prev){var s=r.call(n,"catchLoc"),l=r.call(n,"finallyLoc");if(s&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var i=r.completion;if("throw"===i.type){var a=i.arg;C(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}function $e(e,t,r,i,a,n,o){try{var s=e[n](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(i,a)}!function(e){e[e.comment=1]="comment"}(Me||(Me={}));var Fe={name:"rt-app-header-new",components:{Language:Ee,"change-avatar-dialog":de,"change-password-dialog":Ce,userSetting:be,AdvancedFind:we,"sub-slot":Le,IconenTrance:Oe},props:{isCollapse:{type:Boolean,require:!1,default:!0},supportHelp:{type:Boolean,require:!1,default:!0},showUser:{type:Boolean,require:!1,default:!0},supportI18n:{type:Boolean,require:!1,default:!0},supportEntrance:{type:Boolean,require:!1,default:!1},supportMessage:{type:Boolean,require:!1,default:!0},supportAdvance:{type:Boolean,require:!1,default:!0},subappKey:{type:String,default:"",require:!1},isMainapp:{type:Boolean,require:!1,default:!1},isEnableSlot:{type:Boolean,require:!1,default:!1},supportGuidance:{type:Boolean,require:!1,default:!0}},data:function(){return{sysappPopover:!1,defaultAvatar:rt.getPublicUrl()+"imgs/default_avatar.svg",moreThan24h:!1,needModify:!1,timer:null,MessagePushInterval:18e3,EnableMessagePush:!1,notificationInstance:null,messageContent:null,setIntervalCount:0,hasNotificationNum:0,currentMessageInfo:{},isRemind:!1,isFirst:!0,xday:0,yday:0,publicUrl:rt.getPublicUrl(),isForcePasswordChangeOnFirstLogin:!1,bizSysAppList:[],isSelectBizSysApp:{},navName:"",installSampleData:!1,hideGuidanceInThisAccount:this.$store.state.user.NoShowBeginnerGuidance,beforeGuidanceQueue:new Set}},watch:{setIntervalCount:function(e){e&&e>10&&clearInterval(this.timer)},parameter_Installsampledata:{handler:function(e){"false"===e&&(this.installSampleData=!0)},immediate:!0}},computed:{remindOrfirst:function(){return(this.isRemind||!this.isFirst)&&this.moreThan24h&&!this.isForcePasswordChangeOnFirstLogin},getHeaderClassName:function(){var e="plat-appHeader";return this.isMainapp&&(e="plat-mainapp-appHeader"),e},user:function(){return this.$store.state.user},avatarUrl:function(){return this.$store.state.user.avatarUrl},parameter_mainappslotleft:function(){return this.$store.state.systemparameter?this.$store.state.systemparameter["mainapp.slotleft"]:""},parameter_mainappslotcenter:function(){return this.$store.state.systemparameter?this.$store.state.systemparameter["mainapp.slotcenter"]:""},parameter_mainappslotright:function(){return this.$store.state.systemparameter?this.$store.state.systemparameter["mainapp.slotright"]:""},parameter_EnableTimeZone:function(){return this.$store.state.systemparameter&&this.$store.state.systemparameter.EnableTimeZone?this.$store.state.systemparameter.EnableTimeZone:"false"},parameter_EnableMultiCurrency:function(){return this.$store.state.systemparameter.EnableMultiCurrency?this.$store.state.systemparameter.EnableMultiCurrency:"false"},parameter_EnableBeginnerGuidance:function(){var e;return null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.EnableBeginnerGuidance},parameter_Installsampledata:function(){var e;return null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.Installsampledata},audioNewMsgUrl:function(){var e,t=null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.AudioUrlNewMessage;return t&&"default"!==t?t:"".concat(this.publicUrl,"newMsgSound.mp3")},parameter_ShowHelpCenter:function(){return this.$store.state.systemparameter&&this.$store.state.systemparameter.showHelpCenter?this.$store.state.systemparameter.showHelpCenter:"false"},tenantCode:function(){var e=this.$keycloak;if(!e)throw"no login.";return e.realm},enableChangePwd:function(){return!this.$store.state.systemparameter||!this.$store.state.systemparameter.EnableChangPwd||"true"==this.$store.state.systemparameter.EnableChangPwd.toLowerCase()},isQyWxTenant:function(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.IsQyWxTenant},IsControlFeedback:function(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"false"!=this.$store.state.systemparameter.IsControlFeedback},iconEntrance:function(){return this.$store.state&&this.$store.state.user&&this.$store.state.user.IconEntrance},userCorpId:function(){return this.$store.state.user.userWxCorpId},departCorpId:function(){return this.$store.state.user.departWxCorpId},ifShowFeedback:function(){return this.supportEntrance&&this.IsControlFeedback&&this.iconEntrance},isShowSysapp:function(){return this.isMainapp&&this.bizSysAppList.length>0&&!["apaas","configurationcenter"].includes(this.navName)},isAdmin:function(){return!!(this.$store.state&&this.$store.state.systemparameter&&this.$store.state.user&&(this.$store.state.user.userId&&this.$store.state.user.userId==this.$store.state.systemparameter.crmadmin||this.$store.state.user.userName&&this.$store.state.user.userName==this.$store.state.systemparameter.crmadmin))},showBeginnerGuidance:function(){return"true"===this.parameter_EnableBeginnerGuidance&&this.supportGuidance},showCreateBaseData:function(){return this.installSampleData&&this.isAdmin},showCheck:function(){var e=this;return function(t){return!!(t&&t.sysAppId&&e.isSelectBizSysApp&&e.isSelectBizSysApp.sysAppId)&&e.isSelectBizSysApp.sysAppId===t.sysAppId}},getIconName:function(){return function(e){return e&&e.smallIcon?e.smallIcon:"plat-icon-order-filled"}}},created:function(){this.initBeforeGuidanceQueue()},mounted:function(){var e,t=this;this.initData(),this.supportMessage&&(this.isMainapp&&qiankunconfig&&null!==(e=qiankunconfig.timConfig)&&void 0!==e&&e.Enable?this.$Tim.on(TIM.EVENT.MESSAGE_RECEIVED,this.onMessageReceived):this.$store.state&&this.$store.state.systemparameter&&this.setMEssageInfo(this.$store.state.systemparameter)),this.$PlatUtils.listenerHook(this,"userAcquisitionCompleted",(function(e,r){if(e){var i=e.checkExpired,a=e.IsRemind,n=e.MoreThan24h,o=e.IsForceFirst,s=e.IsForce,l=e.IsFirst;e.needChangePassword,e.nextChangePassword,i&&t.showPasswordDialog(),a&&t.remindPsd(r),n&&t.moretanInfo(),o?t.isForcePasswordChangeOnFirstLogin=!0:l||t.isFistpsd(),s&&!o&&t.forcepsd(),t.tryOpenGuidance("userAcquisition")}})),this.$PlatUtils.listenerHook(this,"setMenuInfo",(function(e){var r=e.bizSysAppList,i=e.isSelectBizSysApp,a=e.navName;t.bizSysAppList=r,t.isSelectBizSysApp=i,t.navName=a.toLowerCase(),t.tryOpenGuidance("sysApp")})),this.$PlatUtils.listenerHook(this,"change-readcount",this.initData),this.$PlatUtils.listenerHook(this,"PersonalConfigurationLogOut",this.logout),this.$PlatUtils.listenerHook(this,"change-password",this.showPasswordDialog),this.$PlatUtils.listenerHook(this,"update-install-sample-data",(function(e){t.installSampleData=e})),this.$PlatUtils.listenerHook(this,"show-guide",(function(e){W(e)}))},destroyed:function(){clearInterval(this.timer)},methods:{initBeforeGuidanceQueue:function(){this.beforeGuidanceQueue=new Set(["userAcquisition","sysApp"])},getIconColor:function(e){try{if(e&&e.iconColor){var t=JSON.parse(e.iconColor);return this.PLATFORM_SCSS_VARIABLES[t.color]}return this.PLATFORM_SCSS_VARIABLES.COLOR_B5}catch(e){return}},changeSysapp:function(e){this.$bus.$emit("platChangeSysapp",e),this.sysappPopover=!1},cancelChangepsd:function(){this.isRemind=!1,this.isFirst=!0,rt.get("api/PortalUser/nexttime").then((function(e){})).catch((function(e){}))},moretanInfo:function(){this.moreThan24h=!0},remindPsd:function(e){this.isRemind=!0,this.xday=e.XDay,this.yday=e.YDay},isFistpsd:function(){this.isFirst=!1},goChangepsd:function(){this.isRemind=!1,this.isFirst=!0,this.needModify=!0},forcepsd:function(){this.needModify=!0,this.isRemind=!1,this.isFirst=!0},onMessageReceived:function(e){var t=this;e.data.forEach((function(e){if(e.type===TIM.TYPES.MSG_TEXT){var r=e.payload.text;if(r)try{var i=JSON.parse(r);t.currentMessageInfo=i,t.currentMessageInfo.UnreadCount&&(t.hasNotificationNum=t.currentMessageInfo.UnreadCount);var a=t.$store.state.user;a.new_promptsound&&t.audioNewMessage(),a.new_windowsnotification&&t.createNotificationNew(),t.$bus.$emit("plat-new-message",t.currentMessageInfo)}catch(e){t.currentMessageInfo={}}}else if(e.type===TIM.TYPES.MSG_IMAGE);else if(e.type===TIM.TYPES.MSG_SOUND);else if(e.type===TIM.TYPES.MSG_VIDEO);else if(e.type===TIM.TYPES.MSG_FILE);else if(e.type===TIM.TYPES.MSG_CUSTOM){var n=e.payload.data;if(n)try{var o=JSON.parse(n);if(o.taskId)return void t.postBackFabMessage(o);switch(o.eventType){case Me.comment:t.$bus.$emit("plat-event-notice-comment",o.eventData)}}catch(e){}}else e.type===TIM.TYPES.MSG_MERGER||e.type===TIM.TYPES.MSG_LOCATION||e.type===TIM.TYPES.MSG_GRP_TIP||(e.type,TIM.TYPES.MSG_GRP_SYS_NOTICE)}))},postBackFabMessage:function(e){this.$bus.$emit("plat-back-fab-message",e)},setMEssageInfo:function(e){this.setIntData(),this.MessagePushInterval=parseInt(e.MessagePushInterval)||18e3,this.EnableMessagePush="true"==e.EnableMessagePush,this.EnableMessagePush&&(this.notificationInstance=window.Notification?Notification||window.Notification:null,this.getNotification()),this.setTimer()},toHelp:function(e,t){var r,i=this;return(r=Pe().mark((function r(){var a,n;return Pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=i.$store.state.auth.accessToken||localStorage.getItem("vue-token"),r.prev=1,r.next=4,rt.get("api/PortalUser/GetHelpHomeUrl");case 4:(n=r.sent)&&(n.startsWith("http")||n.startsWith("https"))?window.open(n):i.postOpenWindow(window.rtconfig.help_home_url+"/api/help/redirect/index",{token:a}),i.addToClickRecord(e,t),r.next=13;break;case 9:r.prev=9,r.t0=r.catch(1),i.postOpenWindow(window.rtconfig.help_home_url+"/api/help/redirect/index",{token:a}),i.addToClickRecord(e,t);case 13:case"end":return r.stop()}}),r,null,[[1,9]])})),function(){var e=this,t=arguments;return new Promise((function(i,a){var n=r.apply(e,t);function o(e){$e(n,i,a,o,s,"next",e)}function s(e){$e(n,i,a,o,s,"throw",e)}o(void 0)}))})()},postOpenWindow:function(e,t){var r=document.createElement("form");for(var i in r.action=e,r.target="_blank",r.method="post",r.style.display="none",t){var a=document.createElement("textarea");a.name=i,a.value=t[i],r.appendChild(a)}document.body.appendChild(r),r.submit(),document.body.removeChild(r)},setTimer:function(){var e=this;this.timer=setInterval((function(){return e.setIntData()}),this.MessagePushInterval)},setIntData:function(){this.initData()},getNotification:function(){var e=this;rt.get("api/custom/new_Notification/Notification/GetRecentlyNotification?site=1").then((function(t){t&&(e.messageContent=t.Content,e.getPermission(),e.setIntervalCount=0,e.updatePushed(t.NotificationId))})).catch((function(t){e.setIntervalCount++,rt.showErrorToast(t)}))},getPermission:function(){if(this.notificationInstance){var e=this.notificationInstance.permission;"granted"===e?this.CreatNotification():"denied"===e||this.setPermission()}},setPermission:function(){this.notificationInstance.requestPermission((function(e){"granted"===e&&this.CreatNotification()}))},CreatNotification:function(){var e=this;e.audioNewMessage();var t=new e.notificationInstance("您有新的消息通知,点击查看",{body:e.messageContent,data:{routerName:"notificationList"}});t.onshow=function(){},t.onclick=function(r){e.openMessage(),t.close()},t.onclose=function(){},t.onerror=function(e){throw e},setTimeout((function(){t.close()}),5e3)},createNotificationNew:function(){var e=this,t=new Notification(e.currentMessageInfo.Title,{tag:rtconfig.keycloak_realm+"_"+e.currentMessageInfo.NotificationId,body:e.currentMessageInfo.MessageContent,renotify:!0});t.onshow=function(){},t.onclick=function(r){if(e.currentMessageInfo.Messagetype&&5==e.currentMessageInfo.Messagetype)e.openVideoMessage();else if(rt.get("api/custom/new_common/Notification/UpdateRead?NotificationId="+e.currentMessageInfo.NotificationId).then((function(){})),e.currentMessageInfo.CrmUrl){var i=window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey;S.pushLocation(S.getSubAppCode(e.currentMessageInfo.SubAppCode,i),e.currentMessageInfo.CrmUrl,!0)}else e.openMessage();t.close()},t.onclose=function(){},t.onerror=function(e){throw e},setTimeout((function(){t.close()}),5e3)},audioNewMessage:function(){var e=document.getElementById("playercnt");null==e&&((e=document.createElement("div")).id="playercnt",e.setAttribute("style","display:none"),document.body.appendChild(e)),e.innerHTML=""},initData:function(){var e=this;rt.get("api/custom/new_common/Notification/GetNotreadCount").then((function(t){e.hasNotificationNum=t.AllCount,e.setIntervalCount=0})).catch((function(t){e.setIntervalCount++,rt.showErrorToast(t)}))},openMessage:function(){if(this.isMainapp){var e=window.qiankunconfig&&window.qiankunconfig.defaultSubAppKey;S.pushLocation(S.getSubAppCode("",e),"vmlist/new_notification/notice?isShowBack=true",!1,"",!1)}else this.$router.push({path:"/vmlist/new_notification/notice?isShowBack=true",params:{subappKey:this.subappKey}})},openVideoMessage:function(){var e=this;this.currentMessageInfo.Vidotype&&1!=this.currentMessageInfo.Vidotype&&3!=this.currentMessageInfo.Vidotype?rt.get("api/custom/new_common/Notification/UpdateRead?NotificationId="+this.currentMessageInfo.NotificationId).then((function(){e.currentMessageInfo.CrmUrl&&e.$PlatUtils.pushLocation("servicemng",e.currentMessageInfo.CrmUrl,!0)})):this.currentMessageInfo.CrmUrl&&this.$PlatUtils.pushLocation("servicemng",this.currentMessageInfo.CrmUrl,!0)},updatePushed:function(e){var t="api/custom/new_common/Notification/UpdatePushed?notificationId="+e;rt.get(t).then((function(e){}))},UserSettingChange:function(){var e=this;rt.showSuccessToast(this.$_t("platform.loginagin","设置成功,即将重新登录...")),setTimeout((function(){e.logout()}),1e3)},logout:function(){var e=this;rt.showConfirmDialog("",e.$_t("platform.wantLogout","您确定要退出系统吗?"),e.$_t("BUTTON_DETERMINE","确定"),e.$_t("BUTTON_CANCEL","取消"),"warning").then((function(){e.$bus.$emit("before-loginout"),sessionStorage.clear(),window.formDataChanged=!1,setTimeout((function(){e.$store.commit("CLEAR_ALL_DATA"),e.isMainapp?(e.$emit("signout"),S.pushLocation("",""),e.$keycloak.init(),e.$keycloak.logout()):(e.$router.replace({path:"/"}),e.$keycloak&&e.$keycloak.logout(),sessionStorage.removeItem("routeKey"),sessionStorage.removeItem("routeKeys"),e.$vformStorage.clear(),e.$refs._LoginSignalR&&e.$refs._LoginSignalR.LogOut(),e.$auth.logout()),localStorage.clear()}),100)}))},showAvatarDialog:function(){this.$refs.dlgAvatar&&this.$refs.dlgAvatar.show()},showPasswordDialog:function(){this.$refs.dlgPassword&&this.$refs.dlgPassword.show()},handleCommand:function(e){"changePassword"==e?this.$refs.dlgPassword.show():"changeAvatar"==e?this.$refs.dlgAvatar.show():"loginOut"==e?this.logout():"showUserSetting"==e&&this.$refs.userSetting.show()},AdvancedFindShow:function(){this.$refs.AdvancedFind.show()},IconenTranceShow:function(){this.$refs.IconenTrance.show()},tryOpenGuidance:function(e){e&&this.beforeGuidanceQueue.delete(e),0===this.beforeGuidanceQueue.size&&this.showGuide()},showGuide:function(){if(this.showBeginnerGuidance&&!this.needModify&&!this.isForcePasswordChangeOnFirstLogin&&!this.hideGuidanceInThisAccount){var e="guidance_opened_"+S.getTenantCode();if(!localStorage.getItem(e)){var t=document.querySelector("#help");t&&W({data:[{content:this.$_t("UG.features","点击这里,查看新手引导,快速体验产品流程"),target:t}],isForce:!0,showFooter:!1,showNoMore:!0,showMask:!1,callback:function(t){localStorage.setItem(e,!0),t.nomore&&rt.get("api/PortalUser/NoShowBeginnerGuidance")}})}}},addToClickRecord:function(e,t){var r={new_code:e,new_name:t,new_tenant_code:this.$store.state.systemparameter.Current_Project,new_tenant_name:this.$store.state.systemparameter.CompanyInfo,new_type:this.isSelectBizSysApp.appName||"xrm"};rt.post("api/common/menuclick",r).then((function(e){})).catch((function(e){rt.showErrorToast(e)}))},openGuidance:function(e,t){this.$bus.$emit("open-guidance",this.getCurrentGuidance()),this.addToClickRecord(e,t)},getCurrentGuidance:function(){var e=S.getTenantCode();return localStorage.getItem("current_guidance_".concat(e))},openBaseData:function(){this.$bus.$emit("open-base-data")},errorAvatar:function(){var e=this,t=JSON.parse(JSON.stringify(this.avatarUrl));this.$store.commit("UPDATE_USER_AVATAR",this.defaultAvatar),rt.getImgUrl(t).then((function(t){e.$store.commit("UPDATE_USER_AVATAR",t)})).catch((function(){e.$store.commit("UPDATE_USER_AVATAR",e.defaultAvatar)}))}}},je=(r("5392"),r("6794"),r("42a9"),A(Fe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:e.getHeaderClassName},[r("div",{staticClass:"layout-appHeader-title"},[e.isEnableSlot?r("div",{staticClass:"header-slot"},[r("div",{staticClass:"slot-left"},[e.parameter_mainappslotleft?r("sub-slot",{attrs:{appkey:e.parameter_mainappslotleft}}):e._e()],1),r("div",{staticClass:"slot-center"},[e.parameter_mainappslotcenter?r("sub-slot",{attrs:{appkey:e.parameter_mainappslotcenter}}):e._e()],1),r("div",{staticClass:"slot-right"},[e.parameter_mainappslotright?r("sub-slot",{attrs:{appkey:e.parameter_mainappslotright}}):e._e()],1)]):e._e(),r("div",{staticClass:"header-right-menu"},[r("div",{staticClass:"suffix-slot"},[e._t("suffix")],2),r("rc-popover",{attrs:{"popper-class":"header-drop-body iconColor setTopPop",placement:"bottom",trigger:"manual",value:e.remindOrfirst,width:"280"}},[r("div",{staticClass:"isFirst-Isremind",attrs:{slot:"reference"},slot:"reference"}),r("div",{staticClass:"plat-user-info remind-info"},[r("div",{staticClass:"remind-user-info"},[r("div",{staticClass:"info-tip"},[r("rc-icon",{attrs:{name:"plat-icon-lamp-bulb-filled",size:"18"}}),r("span",{staticClass:"info-dark"},[e._v(e._s(e.$_t("setting.changePassword","修改密码")))])],1),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isFirst&&!e.isRemind,expression:"!isFirst&&!isRemind"}]},[e._v(e._s(e.$_t("passwordtip1","当前您正在使用的是系统初始密码,为保障您的账号安全,请您进行修改"))+" ")]),r("p",{directives:[{name:"show",rawName:"v-show",value:e.isRemind,expression:"isRemind"}]},[e._v(" "+e._s(e.$_t("password.remind1","您已经 {0} 天没有修改密码了, {1} 天后,密码将过期,为保障您的账号安全,请尽快进行修改").format(e.xday,e.yday))+" ")]),r("div",{staticClass:"plat-info-btn"},[r("rc-button",{attrs:{text:"","color-type":"neutral-primary",type:"plain"},on:{click:e.cancelChangepsd}},[e._v(" "+e._s(e.$_t("nexttime","下次再说"))+" ")]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.goChangepsd}},[e._v(" "+e._s(e.$_t("goedit","去修改"))+" ")])],1)])])]),e.showUser?r("rc-popover",{staticClass:"header-drop iconColor",attrs:{"popper-class":"header-drop-body iconColor header-drop-body-user",placement:"bottom",trigger:"click"}},[r("rc-button",{staticClass:"header-drop-button",attrs:{slot:"reference",text:"","color-type":"neutral-primary",type:"plain"},slot:"reference"},[e.avatarUrl?r("img",{staticClass:"avatar",attrs:{src:e.avatarUrl},on:{error:e.errorAvatar}}):r("img",{staticClass:"avatar",attrs:{src:e.defaultAvatar}}),r("div",{staticClass:"header-drop-user"},[e.isQyWxTenant?r("div",{staticClass:"username"},[r("rt-ww-open-data",{attrs:{corpid:e.userCorpId,type:"userName",openid:e.user.nickName}})],1):r("div",{staticClass:"username"},[e._v(e._s(e.user.nickName))])]),r("rc-icon",{staticClass:"layout-icon-angle-down-filled",attrs:{name:"plat-icon-angle-down-filled",size:"18"}})],1),r("div",{staticClass:"plat-user-info"},[r("div",{staticClass:"user-info"},[e.avatarUrl?r("img",{staticClass:"user-avatar",attrs:{src:e.avatarUrl},on:{error:e.errorAvatar}}):r("img",{staticClass:"user-avatar",attrs:{src:e.defaultAvatar}}),r("div",{staticClass:"person-info"},[r("div",{staticClass:"nickname"},[e.isQyWxTenant?r("span",[r("rt-ww-open-data",{attrs:{corpid:e.userCorpId,type:"userName",openid:e.user.nickName}})],1):r("span",[e._v(e._s(e.user.nickName))])]),r("div",{staticClass:"serviceteam"},[e.isQyWxTenant&&1==e.UserType?r("span",[r("rt-ww-open-data",{attrs:{corpid:e.departCorpId,type:"departmentName",openid:e.user.serviceteam}})],1):r("span",[e._v(e._s(e.user.serviceteam||""))])])])]),r("div",{staticClass:"user-operate"},[e.enableChangePwd?r("div",{staticClass:"user-item",on:{click:function(t){return e.handleCommand("changePassword")}}},[e._v(" "+e._s(e.$_t("SETTING_CHANGE_PASSWORD","更改密码"))+" ")]):e._e(),"true"==e.parameter_EnableTimeZone||"true"==e.parameter_EnableMultiCurrency?r("div",{staticClass:"user-item",on:{click:function(t){return e.handleCommand("showUserSetting")}}},[e._v(" "+e._s(e.$_t("SETTING_PERSON","个人设置"))+" ")]):e._e(),e.isQyWxTenant?e._e():r("div",{staticClass:"user-item",on:{click:function(t){return e.handleCommand("changeAvatar")}}},[e._v(" "+e._s(e.$_t("SETTING_CHANGE_AVATAR","更改头像"))+" ")])]),r("div",{staticClass:"user-item-lang"},[e.supportI18n?r("div",{staticClass:"user-item header-lang"},[r("language")],1):e._e(),e.isQyWxTenant?e._e():r("div",{staticClass:"user-item header-logout",on:{click:function(t){return e.handleCommand("loginOut")}}},[e._v(" "+e._s(e.$_t("platform.settingLogout","退出登录"))+" ")])])])],1):e._e(),e.isShowSysapp?r("rc-popover",{attrs:{width:"228","popper-class":"plat-sysapp"},model:{value:e.sysappPopover,callback:function(t){e.sysappPopover=t},expression:"sysappPopover"}},[r("rc-tooltip",{attrs:{slot:"reference",content:e.$_t("Application_Center","应用管理"),placement:"bottom"},slot:"reference"},[r("div",{staticClass:"sysappIcon",class:e.sysappPopover?"is-active":""},[r("rc-icon",{attrs:{name:"layout-icon-sysapp",size:20}})],1)]),r("div",{staticClass:"sysapp-select"},e._l(e.bizSysAppList,(function(t){return r("div",{key:t.sysAppId,staticClass:"sysapp-select-item",class:e.showCheck(t)?"is-active":"",on:{click:function(r){return e.changeSysapp(t)}}},[r("div",{staticClass:"sysapp-select-item-left"},[r("rc-icon",{attrs:{size:16,name:e.getIconName(t),color:e.getIconColor(t)}}),r("span",{staticClass:"sysapp-select-item-title"},[e._v(" "+e._s(t.displayName)+" ")])],1),r("rc-icon",{staticClass:"sysapp-select-item-right",attrs:{type:"iconFont",size:16,name:"rt-base-irregular-check-lined"}})],1)})),0)],1):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.$store.state.ShowCustomerService,expression:"$store.state.ShowCustomerService"}],staticClass:"header-sign"},[e._t("signal")],2),e.supportMessage?r("rc-tooltip",{attrs:{slot:"reference",effect:"dark",content:e.$_t("notice.messagecenter","消息中心"),placement:"bottom",opacity:.7},slot:"reference"},[r("div",{staticClass:"header-news iconColor",on:{click:e.openMessage}},[r("rc-badge",{attrs:{value:e.hasNotificationNum,type:"danger",max:"99",padding:e.hasNotificationNum>9?"0 2px":"",right:e.hasNotificationNum>99?"15":"14",top:"4"}},[r("rc-icon",{staticClass:"notice-icon bell-lined",attrs:{name:"plat-icon-bell2-lined",size:"21"}})],1)],1)]):e._e(),e.supportHelp||e.ifShowFeedback||e.showBeginnerGuidance||e.showCreateBaseData?r("rc-popover",{staticClass:"header-drop iconColor",attrs:{id:"help","popper-class":"header-drop-body iconColor",placement:"bottom",trigger:"click"}},[r("div",{staticClass:"header-advance",attrs:{slot:"reference"},slot:"reference"},[r("span",{staticClass:"iconColor"},[r("rc-icon",{staticClass:"circle-question-lined",attrs:{size:"21",name:"rt-saas-circle-question-lined"}})],1)]),r("div",{staticClass:"plat-user-info",staticStyle:{"padding-top":"0"}},[r("ul",{staticClass:"help-operate-list"},[e.showBeginnerGuidance?r("li",{staticClass:"help-operate-item guide",on:{click:function(t){return e.openGuidance("Ug.title","新手引导")}}},[r("div",{staticClass:"picture"}),r("div",{staticClass:"help-operate-content"},[r("div",{staticClass:"help-operate-title"},[r("span",[e._v(e._s(e.$_t("Ug.title","新手引导")))]),r("img",{staticClass:"ic-new",attrs:{src:"https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_new.png",alt:""}})]),r("div",{staticClass:"help-operate-desc"},[e._v(e._s(e.$_t("Ug.new","探索产品特性"))),r("br"),e._v(e._s(e.$_t("Ug.Exploring","快速体验产品流程")))])])]):e._e(),e.showCreateBaseData?r("li",{staticClass:"help-operate-item sample",on:{click:e.openBaseData}},[r("div",{staticClass:"picture"}),r("div",{staticClass:"help-operate-content"},[r("div",{staticClass:"help-operate-title"},[r("span",[e._v(e._s(e.$_t("Ug.Sample","示例数据")))]),r("img",{staticClass:"ic-new",attrs:{src:"https://cdn2.fscloud.com.cn/$web/cdn2/public/imgs/guidance_popup_new.png",alt:""}})]),r("div",{staticClass:"help-operate-desc"},[e._v(e._s(e.$_t("Ug.getdata","一键导入示例数据")))])])]):e._e(),"true"==e.parameter_ShowHelpCenter?r("li",{staticClass:"help-operate-item",on:{click:function(t){return e.toHelp("SETTING_HELP_DOCUMENT","帮助文档")}}},[r("div",{staticClass:"help-operate-icon"},[r("rc-icon",{attrs:{name:"plat-icon-lamp-bulb-lined",color:"#363D44",size:"24"}})],1),r("div",{staticClass:"help-operate-content"},[r("div",{staticClass:"help-operate-title"},[e._v(e._s(e.$_t("SETTING_HELP_DOCUMENT","帮助文档")))]),r("div",{staticClass:"help-operate-desc"},[e._v(e._s(e.$_t("Ug.learning","点击这里,查看产品帮助文档")))])])]):e._e(),e.ifShowFeedback?r("li",{staticClass:"help-operate-item",on:{click:e.IconenTranceShow}},[r("div",{staticClass:"help-operate-icon"},[r("rc-icon",{attrs:{name:"plat-icon-envelope-lined",color:"#363D44",size:"24"}})],1),r("div",{staticClass:"help-operate-content"},[r("div",{staticClass:"help-operate-title"},[e._v(e._s(e.$_t("SETTING_FEEDBACK","反馈入口")))]),r("div",{staticClass:"help-operate-desc"},[e._v(e._s(e.$_t("Ug.feedback","你的吐槽和建议,可以写在这里")))])])]):e._e()])])]):e._e(),e.supportAdvance?r("div",{staticClass:"header-advance"},[r("span",{staticClass:"iconColor",on:{click:function(t){return e.AdvancedFindShow()}}},[r("rc-icon",{staticClass:"base-lookup",attrs:{size:"21",name:"rt-base-lookup"}})],1)]):e._e(),r("change-avatar-dialog",{ref:"dlgAvatar"}),r("change-password-dialog",{ref:"dlgPassword",attrs:{isForcePasswordChangeOnFirstLogin:e.isForcePasswordChangeOnFirstLogin,loginAfter:!!e.needModify},on:{passwordClose:function(t){e.needModify=!1}}}),r("userSetting",{ref:"userSetting",on:{UserSettingChange:e.UserSettingChange}}),r("AdvancedFind",{ref:"AdvancedFind"}),r("IconenTrance",{ref:"IconenTrance"}),r("div",{staticClass:"prefix-slot"},[e._t("prefix")],2)],1)])])}),[],!1,null,"925c41c8",null).exports),Be={name:"RtSaasEntitiesNew",props:{value:String,clearable:{type:Boolean,default:!0,required:!1},placeholder:{type:String,default:function(){return this.$_t("common.select","请选择")},required:!1},disabled:{type:Boolean,default:!1,required:!1}},data:function(){return{selectedValue:null,selectOption:[]}},watch:{value:function(e,t){e&&this.selectOption.length>0?this.selectedValue=e:this.selectedValue=""}},mounted:function(){this.loadEntities()},methods:{loadEntities:function(){var e=this;return rt.get("api/meta/Entities/GetEntities").then((function(t){e.selectOption=t,null!=e.value&&(e.selectedValue=e.value);var r=[];return t.forEach((function(e){r.push({Text:e.LogicalName+"--"+e.Label_EntityName,Value:e.LogicalName})})),r}))},handleChange:function(){var e,t=this;this.selectOption.forEach((function(r){r.LogicalName==t.selectedValue&&(e=r.Label_EntityName)})),this.$emit("callback",{logicalname:this.selectedValue,displayname:e}),this.$emit("input",this.selectedValue),this.$emit("change",this.selectedValue)}}},Ue=(r("61db"),A(Be,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-picklist",{attrs:{id:"rtSaasEntities",fetch:e.loadEntities,placeholder:e.disabled?e.$_t("lable.nodata","暂无"):e.placeholder,clearable:e.clearable,filterable:!0,disabled:e.disabled},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"285dbab6",null).exports),Ve={name:"RtLookupDialog",props:{entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},isNormal:{type:Boolean,default:!1,required:!1},nameField:{type:String,default:function(){return"new_name"}},idField:{type:String,default:function(){return this.entity+"id"}},displayFields:{type:Array,default:function(){return this.defaultFields}},orderbyFields:{type:String,default:function(){return"createdon desc"}},filterFields:{type:String,default:function(){return"new_name"}},conditionFields:{type:String,default:function(){return""}},title:{type:String,default:function(){return""}},showRemoveDialog:{type:Boolean,default:!0},countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0}},data:function(){return{dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:20,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableData:[],currentRow:null,tableHeight:document.body.clientHeight-330,PaginationClass:""}},computed:{dialogTitle:function(){return this.$_t("TO_FIND_THE")},defaultFields:function(){return[{name:"new_name",label:this.$_t("common.name")},{name:"createdon",label:this.$_t("crm.createdon"),width:180}]},selectString:{get:function(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.displayFields){var r=this.displayFields[t].name;e.indexOf(r)>=0||e.push(r)}return e.join(",")}},orderbyString:{get:function(){return this.orderbyFields}},filterString:{get:function(){return this.filterFields}},conditionString:{get:function(){return this.conditionFields}}},mounted:function(){},created:function(){this.getHeight(),window.addEventListener("resize",this.getHeight)},destroyed:function(){window.removeEventListener("resize",this.getHeight)},methods:{getHeight:function(){document.body.clientHeight>330&&(this.tableHeight=document.body.clientHeight-330)},show:function(){this.dialogVisible=!0,this.filterValue="",this.pageIndex=1,this._fetchRecords()},handleSearch:function(){this.pageIndex=1,this._fetchRecords()},handleCurrentChange:function(e){this.currentRow=e},handleSortChange:function(){alert("未实现")},handleSizeChange:function(e){this.pageSize=e,this._fetchRecords()},handleIndexChange:function(e){this.pageIndex=e,this._fetchRecords()},handleReset:function(){this.$emit("data-selected",null),this.dialogVisible=!1,this.$emit("dialogCallback",null)},handleConfirm:function(){var e=this.$refs.lookupTable.store.states.currentRow;rt.isNull(e)?rt.showErrorToast(this.$_t("ChooseOneData")):(this.$emit("data-selected",{id:e[this.idField]||e.$id,name:e[this.nameField],logicalName:this.entity}),this.dialogVisible=!1,this.$emit("dialogCallback",e))},_fetchRecords:function(){var e=this;this.loading=!0;var t="",r=!1;this.requestUrl&&(r=this.requestUrl.split("?").length>1),this.isNormal?(t=this.requestUrl+(r?"&page=":"?page=")+this.pageIndex+"&count="+this.pageSize+"&queryStr="+this.filterValue+"&filterValue="+this.filterValue,this.conditionString&&(t+="&condition="+this.conditionString)):(t=this.requestUrl+(r?"&entityName=":"?entityName=")+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||""),this.conditionString&&(t+="&condition="+this.conditionString)),t+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,rt.get(t).then((function(t){e.tableData=t.Data;var r=e.tableData.length;-1==t.TotalRecordCount?(e.PaginationClass="nocount",0==r||r0?e.totalRecordCount=t.Entities.length:e.totalRecordCount=t.TotalRecordCount):(e.PaginationClass="",e.totalRecordCount=t.TotalRecordCount)})).catch((function(e){rt.showErrorToast(e)})).finally((function(){e.loading=!1}))}}},qe=(r("c175"),A(Ve,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal rt-lookup-dialog",attrs:{"append-to-body":"","close-on-click-modal":!1,title:e.title?e.title:e.$tx("查找","lookup.title")},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("rc-view",{staticClass:"lookup-dialog-container"},[r("rc-form",{attrs:{"label-position":"right","label-width":"50px"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("rc-form-item",{attrs:{label:e.$_t("common.search","搜索")}},[r("rc-input",{attrs:{clearable:"",placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},[r("rc-button",{attrs:{slot:"append","icon-name":"rt-base-lookup"},on:{click:e.handleSearch},slot:"append"})],1)],1)],1),r("div",{staticClass:"table-wrapper"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"lookupTable",attrs:{width:"100%","highlight-current-row":"",data:e.tableData,stripe:"",emptyCell:" "},on:{"current-change":e.handleCurrentChange,"row-dblclick":e.handleConfirm,"sort-change":e.handleSortChange}},[r("el-table-column",{attrs:{width:"65"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row==e.currentRow?r("i",{staticClass:"el-icon-check"}):e._e()]}}])}),e._l(e.displayFields,(function(t){return r("el-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,width:t.width,prop:t.name,label:t.label?t.label:e.$_t(e.entity+"."+t.name)}})})),r("el-table-column")],2)],1),r("div",{staticClass:"pagination-wrapper"},[r("el-pagination",{class:e.PaginationClass,attrs:{"current-page":e.pageIndex,"page-size":e.pageSize,"page-sizes":e.pageSizes,layout:e.layout,total:e.totalRecordCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleIndexChange}})],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.showRemoveDialog?r("rc-button",{on:{click:e.handleReset}},[e._v(e._s(e.$_t("lookup.remove","移除值")))]):e._e(),r("rc-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v(e._s(e.$_t("common.determine","确定")))])],1)],1)}),[],!1,null,"1384ed34",null).exports),ze={name:"RtLookupNew",props:{value:{type:Object,required:!1},valueId:{type:String,required:!1},disabled:Boolean,readonly:Boolean,routername:{type:String,required:!1},showRemoveDialog:{type:Boolean,default:!0},entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return""}},isNormal:Boolean,nameField:String,idField:String,dialogDisplayFields:Array,dialogOrderbyFields:{type:String,default:function(){return""}},dialogFilterFields:String,dialogCallback:Function,dialogConditionFields:String,dependentAttributeName:{type:String,required:!1},dependentAttributeDisplayName:String,filterAttributeName:String,filterAttributeValue:{type:[String,Object,Number],required:!1},datafieldname:String,countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},enableJump:{type:Boolean,default:!1},jumpFormLogicaName:{type:String,required:!1},jumpUrl:{type:String,required:!1},enableAdd:{type:Boolean,default:!1},addFormLogicalName:{type:String,required:!1}},data:function(){return this.nameField,{lookupValue:{name:null,id:null,logicalname:null},lookupValueName:null,showFormDialog:!1}},components:{"rt-lookup-dialog":qe},computed:{conditionValue:function(){return this.dialogConditionFields},showJump:function(){return this.lookupValue&&this.lookupValue.id&&this.enableJump},selectString:{get:function(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.dialogDisplayFields){var r=this.dialogDisplayFields[t].name;e.indexOf(r)>=0||e.push(r)}return e.join(",")}}},mounted:function(){this.lookupValue=this.value,this.lookupValue&&(this.lookupValueName=this.lookupValue.name)},watch:{filterAttributeValue:function(e){},value:function(e){this.nameField,e||(e={name:null,id:null,logicalname:null}),this.lookupValue=e,this.lookupValueName=this.lookupValue.name},valueId:function(e){var t=this,r=this.requestUrl+"?page=1&count=10&queryStr=",i=this;rt.get(r).then((function(r){if(null!=r&&null!=r.Data){var a=[];r.Data.forEach((function(r){r.value=r[i.nameField],a.push(r),r.Id==e&&t.selectValue(r)}))}})).catch((function(e){rt.showErrorToast(e)}))},lookupValueName:function(e,t){!e&&!e!=!t&&this.value&&this.value.name!=e&&(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue))}},methods:{_dialogCallback:function(e){this.dialogCallback&&this.dialogCallback(e),this.$emit("dialogCallback",e),this.$emit("attributeMappingCallback",e,this.lookupValue,this.datafieldname,this.entity)},blur:function(){null!=this.lookupValue&&this.lookupValue.id?this.lookupValueName!=this.lookupValue.name&&(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)):(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue))},showLookupDialog:function(){if(this.disabled||this.readonly)return!1;this.filterAttributeName&&!this.filterAttributeValue?rt.showErrorToast(this.$_t("lookup.error_msg","请先选择或输入")+this.dependentAttributeDisplayName):this.$refs.lookupDialog.show()},handleDataSelected:function(e){e||(e=null),this.lookupValue=e,this.lookupValueName=this.lookupValue?this.lookupValue.name:"",this.$emit("input",e,null,this.datafieldname)},findValueByApi:function(e,t){if(null!=e&&e.length>0){if(this.filterAttributeName&&!this.filterAttributeValue)return rt.showErrorToast(this.$_t("lookup.error_msg","请先选择或输入")+this.dependentAttributeDisplayName),this.lookupValue=null,this.lookupValueName="",void t([]);var r=this,i="",a=!1;r.requestUrl&&(a=r.requestUrl.split("?").length>1),r.isNormal?i=r.requestUrl+(a?"&page=":"?page=")+"1&count=10&queryStr="+e+"&filter="+this.nameField+"&filterValue="+e:(i=r.requestUrl+(a?"&entityName=":"?entityName=")+r.entity+"&page=1&count=10&select="+r.selectString+"&orderby="+r.dialogOrderbyFields+"&filter="+r.nameField+"&filterValue="+encodeURIComponent(r.lookupValueName||""),this.conditionValue&&(i+="&condition=",i+=encodeURIComponent(this.conditionValue))),i+="&countType="+this.countType+"&returnTotalRecordCount=false",rt.get(i).then((function(e){if(null!=e&&null!=e.Data){var i=[];e.Data.forEach((function(e){e.value=e[r.nameField],i.push(e)})),t(i)}else t([])})).catch((function(e){t([]),rt.showErrorToast(e)})).finally((function(){r.loading=!1}))}else t([])},selectValue:function(e){e&&(this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.entity},this.lookupValueName=this.lookupValue.name,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(e))},jumpEdit:function(){this.lookupValue&&this.lookupValue.id&&(this.routername?this.$router.push({name:this.routername,params:{id:this.lookupValue.id}}):this.jumpUrl?this.$router.push(this.getFunctionByExpression(this.jumpUrl,["id"]).call(this,this.lookupValue.id)):this.jumpFormLogicaName?this.$router.push({name:"VForm3",params:{entityName:this.entity,formLogicalName:this.jumpFormLogicaName,id:this.lookupValue.id}}):this.$router.push({path:"/vform/"+this.entity+"/"+this.lookupValue.id}))},getFunctionByExpression:function(e,t){try{var r=0==e.replace(/(^\s*)|(\s*$)/g,"").indexOf("{");return t&&t.length>0?new Function(t,"".concat(r?"":"return"," ").concat(e)):new Function("".concat(r?"":"return"," ").concat(e))}catch(t){return sessionStorage.showException||(sessionStorage.showException=!0,rt.showErrorToast("脚本'".concat(e,"'执行出错,请检查正确性"))),setTimeout((function(){sessionStorage.showException=""}),1e3),new Function("return null")}},showAddForm:function(){this.showFormDialog=!0},vformcallback:function(e){this.selectValue(e),this.showFormDialog=!1}}},He=(r("e9c3"),A(ze,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-saas-lookup rt-m-lookup"},[r("el-autocomplete",{staticClass:"lookup-autocomplete",staticStyle:{width:"100%"},attrs:{placeholder:e.disabled||e.readonly?e.$t("common.noData"):e.placeholder?e.placeholder:e.$tx("请选择","common.select"),disabled:e.disabled||e.readonly,"trigger-on-focus":!0,"fetch-suggestions":e.findValueByApi},on:{blur:e.blur,select:e.selectValue},model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[e.disabled||e.readonly?e._e():r("rc-icon",{attrs:{slot:"suffix",name:"rt-base-lookup"},on:{click:e.showLookupDialog},slot:"suffix"}),e._t("prefix",null,{slot:"prefix"})],2),r("rt-lookup-dialog",{ref:"lookupDialog",attrs:{entity:e.entity,"is-normal":e.isNormal,"request-url":e.requestUrl,"name-field":e.nameField,"id-field":e.idField,"display-fields":e.dialogDisplayFields,"orderby-fields":e.dialogOrderbyFields,"filter-fields":e.dialogFilterFields,"condition-fields":e.conditionValue,showRemoveDialog:e.showRemoveDialog,countType:e.countType,returnTotalRecordCount:e.returnTotalRecordCount},on:{"data-selected":e.handleDataSelected,dialogCallback:e._dialogCallback}}),r("rc-dialog",{attrs:{"close-on-click-modal":!1,title:e.$tx("新增","common.add"),showFooter:!1,size:"large"},model:{value:e.showFormDialog,callback:function(t){e.showFormDialog=t},expression:"showFormDialog"}},[e.showFormDialog?r("vformcore",{attrs:{formLogicalName:e.addFormLogicalName,isLookupAdd:!0,objectTypeName:e.entity,formType:1},on:{callback:e.vformcallback}}):e._e()],1)],1)}),[],!1,null,"2bddf44b",null).exports),Ge={name:"rt-license-info",data:function(){return{}},computed:{tipInfo:function(){var e=[];return this.expireData&&1==this.expireData.isTrial&&e.push("前版本为试用版,有效期至".concat(this.expireData.expireDate)),this.LicenseInfo&&e.push(this.LicenseInfo),rt.isChrome()||rt.isEdge()||rt.isSafari()||rt.isFeiShu()||rt.isDingTalk()||rt.isWxWork()||rt.isQiyu()||e.push(this.$_t("current_browser","当前浏览器存在兼容问题,请更换浏览器")),e.join(",")},LicenseInfo:function(){return this.$store.state.user?this.$store.state.user.LicenseInfo:""},expireData:function(){try{if(this.$store.state.expiredata){var e=JSON.parse(this.$store.state.expiredata);if(e)return e}}catch(e){return null}return null},showLicense:function(){var e=this.tipInfo;return this.$emit("show",e),e}},watch:{showLicense:function(e){this.$emit("show",e)}}},We=(r("89c1"),A(Ge,(function(){var e=this.$createElement,t=this._self._c||e;return this.tipInfo?t("div",{staticClass:"rc_license_error"},[t("rc-icon",{attrs:{name:"rt-saas-warning-circle",color:"#F7A959",size:"24"}}),t("span",[this._v(this._s(this.tipInfo))])],1):this._e()}),[],!1,null,"53bd0b90",null).exports);function Qe(e){throw new TypeError('"'+e+'" is read-only')}var Xe={data:function(){return{_resizeObserver:null}},mounted:function(){this.calculateContentHeight()},beforeDestroy:function(){this._resizeObserver&&this._resizeObserver.disconnect()},methods:{calculateContentHeight:function(){if(document.querySelector(".containerStyle"));else{var e=document.body.clientHeight,t=document.getElementById("appHeader");null!=t&&(t.clientHeight,Qe("contentHeight"));var r=document.getElementById("appNav");null!=r&&(r.clientHeight,Qe("contentHeight"));var i=document.getElementById("appFooter");null!=i&&(i.clientHeight,Qe("contentHeight")),document.getElementById("appContent").style.minHeight=e-10}}}},Ke=(r("d4ff"),{name:"plat-layout-container",components:{"app-content":A(Xe,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"appContent"}},[t("div",{staticClass:"wrapper"},[t("keep-alive",[this.$route.meta.keepAlive?t("router-view",{staticClass:"content-view"}):this._e()],1),this.$route.meta.keepAlive?this._e():t("router-view",{staticClass:"content-view"})],1)])}),[],!1,null,"26ea2568",null).exports}}),Ye=(r("a5d0"),A(Ke,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{ref:"myScrollbar",staticClass:"app-el-scrollbar",attrs:{"wrap-class":"scrollbar-wrapper"}},[this.$slots.content?t("div",[this._t("content")],2):t("div",[t("app-content")],1),this._t("footer")],2)}),[],!1,null,"0234187e",null).exports),Je=A({name:"RtWwOpenData",props:{type:{type:String,required:!0},openid:{type:String,required:!0},corpid:{type:String,required:!1}},watch:{openid:function(e){var t=this;this.$nextTick((function(){t.isQyWxTenant&&WWOpenData.bind(t.$el)}))}},computed:{isQyWxTenant:function(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.IsQyWxTenant}}},(function(){var e=this.$createElement,t=this._self._c||e;return this.corpid?t("ww-open-data",{attrs:{corpid:this.corpid,type:this.type,openid:this.openid}}):t("ww-open-data",{attrs:{type:this.type,openid:this.openid}})}),[],!1,null,null,null).exports,Ze=(r("855a"),r("b394")),et=r.n(Ze),tt=r("d0f2"),it=window.rtconfig,at={url:it.keycloak_url,clientId:it.keycloak_clientId,idpHint:function(){var e=Object(Ze.getQueryString)(location.href,"kc_idp_hint");if(e)return e;var t=Object(tt.getTokenResponse)();return t?t.idpHint:""}()},nt=null;function ot(e,t,r){if(nt){if(nt.onReady=function(e){return Promise.resolve()},window.qiankunconfig&&window.qiankunconfig.defaultLanguage){var i=window.qiankunconfig.defaultLanguage.langCode||"zh-CN",a=window.qiankunconfig.defaultLanguage.langId||"2052";localStorage.i18nLocale||(localStorage.setItem("i18nLocale",i),localStorage.setItem("i18nLocaleid",a))}nt.onAuthSuccess=function(){e.prototype.$keycloak=nt,r(nt)}}}function st(e,t,r,i){return Object(Q.__awaiter)(this,void 0,Promise,(function(){var a,n,o,s,l,d,u,p;return Object(Q.__generator)(this,(function(h){switch(h.label){case 0:if(!nt)return[2];if(ot(e,0,r),a=void 0,n=window.location.origin,o=Object(tt.getTokenResponse)(),s="",l="",o&&(s=o.access_token,l=o.refresh_token),s)return[3,6];if(!i)return[3,5];if(!(d=Object(tt.getTokenResponseWithoutSuffix)()))return[3,4];h.label=1;case 1:return h.trys.push([1,3,,4]),[4,nt.exchangeToken(d,i)];case 2:return(o=h.sent())&&(s=o.access_token,l=o.refresh_token),[3,4];case 3:return h.sent(),[3,4];case 4:return[3,6];case 5:(function(e){var t=Object(Ze.getQueryString)(location.href,"kc_idp_hint"),r=Object(Ze.getQueryString)(location.href,"kc_client_id");return!(e||r||t||it.recloudOrg)})(i)&&(sessionStorage.qiankunMenuId="",c.a.isDevelopment()||(u=n+"/t/"+t+"/",window.location.href!=u&&(a=u))),h.label=6;case 6:return p={checkLoginIframe:!1,responseMode:"query",onLoad:"login-required",pkceMethod:"S256",token:s,scope:i||"",refreshToken:l,redirectUri:a},[4,nt.init(p)];case 7:return h.sent(),[2]}}))}))}var lt={install:function(e,t){var r=Object(Ze.getQueryString)(location.href,"kc_client_id");r?at.clientId=r:t.clientId&&(at.clientId=t.clientId),t.scope&&(window.$kcScope$=t.scope),nt=new et.a(at);var i=t.onKeycloakAuthSuccess;i instanceof Function||(i=function(){});var a=S.getTenantCode();if(a){it.keycloak_realm=a,nt.realm=a;var n=function(e){var t=et.a.parseCallback(e,window.location.href);if(t)return t}(nt);n?(ot(e,0,i),nt.processCallbackParams(n)):st(e,a,i,t.scope)}}},dt=r("75e4"),ct=r("aeba"),ut=[M,le,je,Ue,He,We,Je,Ye],pt={install:function(e,t){ut.map((function(t){e.component(t.name,t)})),e.prototype.$PlatUtils=S,e.prototype.$layoutUtils=S,e.prototype.$RtUtils=c.a,e.prototype.$LoginUtils=lt,t&&t.isMainSelf&&(e.prototype.$IsAPaasPro$=t.isMainSelf),window.rt=c.a,e.prototype.PLATFORM_SCSS_VARIABLES=dt,e.prototype.CHART_THEME_VARIABLES=ct.chartThemeVariables}};t.default=pt}})},module.exports=factory()},b330:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return d}));var i=r("ef51"),a=r("a829"),n=r("d747");function o(e,t){if(!e)return;if(!e.LayoutJson)return;!e.queries||!e.queries.length||e.queries.length;const r=function(e){const t=[],r=[];let i=0;for(e.parentIndex=-1,e.nodeIndex=i,t.push(e);t.length>0;){const e=t.pop();"gridcell"==e.$nodetype&&(e.$nodetype="cardTableCell"),"gridtable"==e.$nodetype&&(e.$nodetype="cardTable"),"toolbar"==e.$nodetype&&(e.$nodetype="cardTableToolbar"),"button"==e.$nodetype&&(e.$nodetype="cardTableButton");const a=n.a.translateToRuntimeControl(e);r[a.nodeIndex]=a,e.children&&e.children.forEach(e=>{i+=1,e.parentIndex=a.nodeIndex,e.nodeIndex=i,t.push(e)})}return r.forEach(e=>{e.nodeIndex>0&&(e.parent=r[e.parentIndex])}),r.forEach(e=>{e.parent&&e.parent.children.push(e)}),r}(JSON.parse(e.LayoutJson))[0],i={thisVue:t,dependAttributes:[]};r.collectDependAttributes(i),r.VueTag="rc-view";const a={thisVue:t,dependAttributes:i.dependAttributes};r.prepare(a);const o={grid:r,queryAttributes:r.BindAttributes(),ModifiedOnTicks:e.ModifiedOn&&e.ModifiedOn.valueOf()||0,LayoutXmlMd5:e.LayoutXmlMd5,ViewVisible:!0};return t.pageSchema=o,t.schemaLoaded=!0,o}function s(e,t){const r=new Array;if(t.children&&t.children.length>0){const i=["gridheader","headericon","queryselector","filterdrawer","userviewdialog","excelexportnewdialog","excelexportdialog"];t.children.forEach(t=>{if(i.includes(t.nodeType))return;const a=s(e,t);r.push(a)})}else if(t.vtext&&t.vtext.length>0)return e(t.tag,t.data,[t.vtext]);return e(t.tag,t.data,r)}function l(e,t){return t.schemaLoaded?s(e,function(e){const t=e.pageSchema;if(!t)return new a.e("div","no schema.");const r=e.allSchema,n=t.grid,o=new a.a(i.e.PCSubGrid,r.PrimaryEntityName,r.SavedQueryId,i.d.edit,e,n),s=n.buildVNodeTree(o);return s.stackVisit(o),s}(t)):e("div",{},[])}function d(e,t){return s(e,t)}},b35e:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","div")}}n(o,"$bindNodeType",i.b.controldescriptions)},b3f7:function(e,t,r){"use strict";r("920b")},b448:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("a829"),n=r("e3bf");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends n.a{constructor(e){super(e),o(this,"totalColumns",void 0)}createVNode(e,t,r){const n=t.targetComponent,o=this.props,s=new a.e(this.VueTag);if(s.nodeType=this.$nodetype,!this.children||!this.children[0]||this.children[0].$nodetype!=i.b.ImageField||n.objectId||!this.children[0].props.required){if(super.buildVNode(s,t),e.props.formslot&&"filterdrawerform"===e.props.formslot)s.addProp("span",24);else{const t=24*o.colspan/e.props.totalColumns;s.addProp("span",t)}this.appendNode(e,s,t),this.addChildByPermission(s,t)}}}o(s,"$bindNodeType",i.b.cell)},b535:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rtportal .fault-common-button-group .rt-saas-btn{height:35px}.rtportal .fault-common-button-group .button-group-more .el-popover__reference-wrapper .el-popover__reference.rt-button-more{height:35px;line-height:26px}.rtportal .el-form-item__error{display:none}",""]),e.exports=t},b55c:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Dialog)}createVNode(e,t){const r=this.props,i=new a.e(o.a.Dialog);i.nodeType=this.$nodetype,i.addProp("title",r.title),i.addProp("logicalName",r.logicalName),i.addProp("gridWidth",r.gridWidth),i.addProp("dialogType",r.dialogType),i.addProp("RelationshipName",r.RelationshipName),i.addProp("ViewId",r.ViewId),i.addProp("name",r.name),this.buildVNode(i,t),e.addChild(i),this.addChildByPermission(i,t)}}s(l,"$bindNodeType",i.b.Dialog)},b55f:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Editor)}createVNode(e,t){const r=this.props,i=t.targetComponent,n=new a.e(this.VueTag);if(n.nodeType=this.$nodetype,n.addClass("plat-editor-wrapper"),this.buildVNode(n,t),n.addProp("title",r.title),n.addProp("height",r.height),n.addProp("refname",r.refname),n.addProp("boundField",r.LogicalName),n.ref=r.refname,i.dataLoaded)if(this.extendsChain.includes("section"))this.appendNode(e,n,t);else{const r=new a.e(o.a.APaasCard);r.addChild(n),this.appendNode(e,r,t)}}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;r.LogicalName&&(i.editForm&&i.editForm[r.LogicalName]&&e.addProp("value",i.editForm[r.LogicalName]),e.addEventHandler("input",e=>{i.updateEditForm(r.LogicalName,e)})),e.addProp("disableLink",r.disableLink||!1)}}s(l,"$bindNodeType",i.b.Editor)},b64c:function(e,t,r){var i=r("1e40");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4553038c",i,!0,{sourceMap:!1,shadowMode:!1})},b68b:function(e,t,r){"use strict";function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(t),r.d(t,"getQueryString",(function(){return h})),r.d(t,"default",(function(){return b}));class a{constructor(e,t){i(this,"resolve",void 0),i(this,"reject",void 0),this.resolve=e,this.reject=t}setError(e){this.reject(e)}setSuccess(e){this.resolve(e)}}var n=r("6c27"),o=r("1fb5");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l{constructor(e){s(this,"kc",void 0),this.kc=e,this.kc.loginIframe.enable=!1}login(e){return this.kc.createLoginUrl(e),new Promise((e,t)=>{throw new a(e,t),"not impl"})}logout(e){return this.kc.createLogoutUrl(e),this.kc,new Promise((e,t)=>{throw new a(e,t),"not impl"})}register(e){return this.kc.createRegisterUrl(e),this.kc,new Promise((e,t)=>{throw new a(e,t),"not impl"})}accountManagement(){let e=this.kc.createAccountUrl();if(void 0===e)throw"Not supported by the OIDC server";return window.cordova.plugins.browsertab.openUrl(e),Promise.resolve()}redirectUri(e,t){return e&&e.redirectUri?e.redirectUri:this.kc.redirectUri?this.kc.redirectUri:"http://localhost"}}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class c{constructor(e){d(this,"kc",void 0),this.kc=e,e.loginIframe.enable=!1}cordovaOpenWindowWrapper(e,t,r){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(e,t,r):window.open(e,t,r)}shallowCloneCordovaOptions(e){return e&&e.cordovaOptions?Object.keys(e.cordovaOptions).reduce((function(t,r){return t[r]=e.cordovaOptions[r],t}),{}):{}}formatCordovaOptions(e){return Object.keys(e).reduce((function(t,r){return t.push(r+"="+e[r]),t}),[]).join(",")}createCordovaOptions(e){var t=this.shallowCloneCordovaOptions(e);return t.location="no",e&&"none"==e.prompt&&(t.hidden="yes"),this.formatCordovaOptions(t)}login(e){let t=this.createCordovaOptions(e),r=this.kc.createLoginUrl(e),i=this.cordovaOpenWindowWrapper(r,"_blank",t),n=!1,o=!1,s=function(){o=!0,i.close()},l=this.kc;return new Promise((e,t)=>{var r=new a(e,t);i.addEventListener("loadstart",(function(e){if(0==e.url.indexOf("http://localhost")){var t=b.parseCallback(l,e.url);t&&l.processCallback(t,r),s(),n=!0}})),i.addEventListener("loaderror",(function(e){if(!n)if(0==e.url.indexOf("http://localhost")){var t=b.parseCallback(l,e.url);t&&l.processCallback(t,r),s(),n=!0}else r.setError("loaderror event"),s()})),i.addEventListener("exit",(function(e){o||r.setError({reason:"closed_by_user"})}))})}logout(e){let t=this.kc.createLogoutUrl(e),r=this.cordovaOpenWindowWrapper(t,"_blank","location=no,hidden=yes"),i=!1,n=this.kc;return new Promise((e,t)=>{let o=new a(e,t);r.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&r.close()})),r.addEventListener("loaderror",(function(e){0==e.url.indexOf("http://localhost")||(i=!0),r.close()})),r.addEventListener("exit",(function(e){if(!i)return n.clearToken(),Promise.resolve();o.setError("exit")}))})}register(e){let t=this.kc.createRegisterUrl(),r=this.createCordovaOptions(e),i=this.cordovaOpenWindowWrapper(t,"_blank",r),n=this.kc;return new Promise((e,t)=>{let r=new a(e,t);i.addEventListener("loadstart",(function(e){if(0==e.url.indexOf("http://localhost")){i.close();let t=b.parseCallback(n,e.url);t&&n.processCallback(t,r)}}))})}accountManagement(){let e=this.kc.createAccountUrl();if(void 0===e)return Promise.reject("Not supported by the OIDC server");{let t=this.cordovaOpenWindowWrapper(e,"_blank","location=no");t.addEventListener("loadstart",(function(e){0==e.url.indexOf("http://localhost")&&t.close()}))}return Promise.resolve()}redirectUri(e,t){return"http://localhost"}}var u=r("5d12");function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){const r=new RegExp(`[?|&]${t}=(.*?)(&|#|$)`,"i"),i=e.match(r);return i&&i.length>1?decodeURIComponent(i[1]):null}class f{constructor(){p(this,"keyPrefix","kc-callback-"),localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test")}clearExpired(){for(var e=(new RtDate).getTime(),t=0;t-1?this.adapter=this.loadAdapter(e.adapter):e&&"object"==typeof e.adapter?this.adapter=e.adapter:window.Cordova||window.cordova?this.adapter=this.loadAdapter("cordova"):this.adapter=this.loadAdapter(),e){if(void 0!==e.useNonce&&(this.useNonce=e.useNonce),void 0!==e.checkLoginIframe&&(this.loginIframe.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(this.loginIframe.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(this.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw"Invalid value for responseMode: only query or fragment is valid.";this.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":this.responseType="code";break;case"implicit":this.responseType="id_token token";break;case"hybrid":this.responseType="code id_token token";break;default:throw"Invalid value for flow"}this.flow=e.flow}if(null!=e.timeSkew&&void 0!==e.timeSkew&&(this.timeSkew=e.timeSkew),e.redirectUri&&(this.redirectUri=e.redirectUri),e.silentCheckSsoRedirectUri&&(this.silentCheckSsoRedirectUri=e.silentCheckSsoRedirectUri),"boolean"==typeof e.silentCheckSsoFallback?this.silentCheckSsoFallback=e.silentCheckSsoFallback:this.silentCheckSsoFallback=!0,e.pkceMethod){if("S256"!==e.pkceMethod)throw"Invalid value for pkceMethod";this.pkceMethod=e.pkceMethod}"boolean"==typeof e.enableLogging?this.enableLogging=e.enableLogging:this.enableLogging=!1,"string"==typeof e.scope&&(this.scope=e.scope)}if(this.responseMode||(this.responseMode="fragment"),this.responseType||(this.responseType="code",this.flow="standard"),this.onReady)try{await this.onReady(this.authenticated)}catch(e){}try{await this.loadConfig(this.config)}catch(e){}try{await this.processInit()}catch(e){}return this.authenticated}login(e){if(this.adapter)return this.adapter.login(e);throw"adapter not set."}doLogin(e){let t=this,r={};e||(r.prompt="none");const i=h(location.href,"kc_idp_hint");if(i){r.idpHint=i;const e=h(location.href,i+"_code");e&&(r[i+"_code"]=e)}else t.config.idpHint&&(r.idpHint=t.config.idpHint);const a=h(location.href,"minip_code");return a&&(r.minip_code=a),this.login(r)}checkSsoSilently(){var e=document.createElement("iframe"),t=this.createLoginUrl({prompt:"none",redirectUri:this.silentCheckSsoRedirectUri});e.setAttribute("src",t),e.setAttribute("title","keycloak-silent-check-sso"),e.style.display="none",document.body.appendChild(e);let r=this,i=function(t){if(t.origin!==window.location.origin||e.contentWindow!==t.source)return;let a=b.parseCallback(r,t.data);a&&r.processCallback(a),document.body.removeChild(e),window.removeEventListener("message",i)};window.addEventListener("message",i)}onLoad(){switch(this.initOptions.onLoad){case"check-sso":throw this.silentCheckSsoRedirectUri?this.checkSsoSilently():this.doLogin(!1),"暂不支持 onLoad=check-sso";case"login-required":this.doLogin(!0);break;default:throw"Invalid value for onLoad"}}async processCallbackParams(e){if(e&&e.valid){let t=e.newUrl;if(!window.history)throw"window.history is null.";window.history.replaceState(window.history.state,"",t)}let t=this;if(e&&e.valid)await this.setupCheckLoginIframe(),await t.processCallback(e);else{if(!this.initOptions)return Promise.reject();if(!this.initOptions.token||!this.initOptions.refreshToken)return this.initOptions.onLoad?(this.onLoad(),Promise.resolve()):Promise.resolve();this.setToken(this.initOptions.token,this.initOptions.refreshToken,this.initOptions.idToken);try{await this.updateToken(-1)}catch(e){return t.onAuthError&&await t.onAuthError("updateToken error."),t.initOptions.onLoad&&t.onLoad(),Promise.reject("updateToken error.")}t.onAuthSuccess&&t.onAuthSuccess()}}async processInit(){try{let e=b.parseCallback(this,window.location.href);await this.processCallbackParams(e)}catch(e){return Promise.reject(e)}}domReady(){return new Promise((e,t)=>{let r=new a(e,t),i=function(){"interactive"!==document.readyState&&"complete"!==document.readyState||(document.removeEventListener("readystatechange",i),r.setSuccess()),r.setError("document not ready.")};document.addEventListener("readystatechange",i),i()})}generateRandomData(e){let t=new Uint8Array(e);var r=window.crypto||window.msCrypto;if(r&&r.getRandomValues&&window.Uint8Array)return r.getRandomValues(t),t;for(var i=0;i0?s+="&kc_idp_hint=lark":l.indexOf("wxwork")>0&&(s+="&kc_idp_hint=wechat-work-thirdapp")}if(e&&e.action&&"register"!=e.action&&(s+="&kc_action="+encodeURIComponent(e.action)),e&&e.locale&&(s+="&ui_locales="+encodeURIComponent(e.locale)),this.pkceMethod){var d=this.generateCodeVerifier(96);n.pkceCodeVerifier=d;var c=this.generatePkceChallenge(this.pkceMethod,d);s+="&code_challenge="+encodeURIComponent(c),s+="&code_challenge_method="+encodeURIComponent(this.pkceMethod)}return this.callbackStorage.add(n),s}logout(e){return this.adapter?this.adapter.logout(e):Promise.resolve()}createLogoutUrl(e){if(this.endpoints&&this.adapter){let t=this.adapter.redirectUri(e,!1);return this.endpoints.logout()+"?redirect_uri="+encodeURIComponent(t)}return""}register(e){return this.adapter.register(e)}createRegisterUrl(e){return e||(e={}),e.action="register",this.createLoginUrl(e)}createAccountUrl(e){var t=this.getRealmUrl(),r="";return t&&(r=t+"/account?referrer="+encodeURIComponent(this.clientId)+"&referrer_uri="+encodeURIComponent(this.adapter.redirectUri(e))),r}accountManagement(){return this.adapter.accountManagement()}hasRealmRole(e){var t=this.realmAccess;return!!t&&t.roles.indexOf(e)>=0}hasResourceRole(e,t){if(!this.resourceAccess)return!1;var r=this.resourceAccess[t||this.clientId];return!!r&&r.roles.indexOf(e)>=0}loadUserProfile(){var e=this.getRealmUrl()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+this.token);let r=this;return new Promise((e,i)=>{t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(r.profile=JSON.parse(t.responseText),e(r.profile)):i("get user profile error."))},t.send()})}loadUserInfo(){var e=this.endpoints.userinfo(),t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+this.token);let r=this;return new Promise((function(e,i){t.onreadystatechange=function(){if(4==t.readyState)return 200==t.status?(r.userInfo=JSON.parse(t.responseText),Promise.resolve(r.userInfo)):Promise.reject()},t.send()}))}isTokenExpired(e){let t=this;if(!t.tokenParsed||!t.refreshToken&&"implicit"!=t.flow)throw"Not authenticated";if(null==t.timeSkew)return this.logInfo("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var r=t.tokenParsed.exp-Math.ceil((new RtDate).getTime()/1e3)+t.timeSkew;if(e){if(isNaN(e))throw"Invalid minValidity";r-=e}return r<0}updateToken(e){if(!this.refreshToken)return Promise.reject();e=e||5;let t=this;return(()=>{let r=!1;return-1==e?(r=!0,t.logInfo("[KEYCLOAK] Refreshing token: forced refresh")):t.tokenParsed&&!t.isTokenExpired(e)||(r=!0,t.logInfo("[KEYCLOAK] Refreshing token: token expired")),r?new Promise((e,r)=>{Object(u.kcRefreshToken)(t).then(r=>{t.logInfo("[KEYCLOAK] Token refreshed");let i=(new RtDate).getTime();i=(i+(new RtDate).getTime())/2,t.setToken(r.access_token,r.refresh_token,r.id_token,i),t.onAuthRefreshSuccess&&t.onAuthRefreshSuccess(),e(!0)}).catch(e=>{t.logWarn("[KEYCLOAK] Failed to refresh token"),e&&400==e.status&&(t.clearToken(),JSON.parse(e.responseText)),t.onAuthRefreshError&&t.onAuthRefreshError(),r("Failed to refresh token")})}):Promise.resolve(!1)})()}clearToken(){this.token&&(this.setToken(void 0,void 0,void 0),this.onAuthLogout&&this.onAuthLogout(),this.loginRequired&&this.login())}getRealmUrl(){if(!this.authServerUrl)throw"authServerUrl not set.";if(!this.realm)throw"realm not set.";return this.authServerUrl&&this.realm?this.authServerUrl.endsWith("/")?this.authServerUrl+"realms/"+encodeURIComponent(this.realm):this.authServerUrl+"/realms/"+encodeURIComponent(this.realm):""}getOrigin(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}async getTokenWithCode(e){let t=this,r="code="+e.code+"&grant_type=authorization_code",i=t.endpoints.token();r+="&client_id="+encodeURIComponent(t.clientId),e.redirectUri&&(r+="&redirect_uri="+encodeURIComponent(e.redirectUri)),e.pkceCodeVerifier&&(r+="&code_verifier="+encodeURIComponent(e.pkceCodeVerifier));let a=new XMLHttpRequest;return a.open("POST",i,!0),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.withCredentials=!0,new Promise((e,i)=>{a.onreadystatechange=()=>{if(4==a.readyState)if(200==a.status){let r=JSON.parse(a.responseText);r.idpHint=t.config.idpHint,Object(u.setTokenResponse)(r),e(r)}else{let e=a.responseText,t="token endpoint error: ";e&&(t+=e),i(t)}},a.send(r)})}async exchangeToken(e,t){let r=this,i="",a=r.endpoints.token();e&&(i+="grant_type="+encodeURIComponent("urn:ietf:params:oauth:grant-type:token-exchange"),i+="&client_id="+this.clientId,i+="&subject_token="+e.access_token,i+="&subject_token_type="+encodeURIComponent("urn:ietf:params:oauth:token-type:access_token"),i+="&scope="+(t||this.scope));let n=new XMLHttpRequest;return n.open("POST",a,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),n.withCredentials=!0,new Promise((e,t)=>{n.onreadystatechange=()=>{if(4==n.readyState)if(200==n.status){let t=JSON.parse(n.responseText);t.idpHint=r.config.idpHint,Object(u.setTokenResponse)(t),e(t)}else{let e=n.responseText,r="token endpoint error: ";e&&(r+=e),t(r)}},n.send(i)})}async processCallback(e,t){let r=e.code,i=e.error,a=e.prompt,n=(new RtDate).getTime(),o=this;if(e.kc_action_status&&o.onActionUpdate&&await o.onActionUpdate(e.kc_action_status),i){if("none"!=a){var s={error:i,error_description:e.error_description};return o.onAuthError&&await o.onAuthError(s),t&&t.setError(s),Promise.resolve()}return t&&t.setSuccess(),Promise.resolve()}if("standard"!=o.flow&&(e.access_token||e.id_token)&&await this.authSuccess(e,n,e.access_token,void 0,e.id_token,!0),"implicit"!=o.flow&&r){let r="standard"===this.flow;try{var l=await this.getTokenWithCode(e);if(!l)throw"tokenResponse is empty.";if(!l.access_token)throw"tokenResponse.access_token is empty.";return await o.authSuccess(e,n,l.access_token,l.refresh_token,l.id_token,r),o.scheduleCheckIframe(),t&&t.setSuccess(),Promise.resolve()}catch(e){return o.onAuthError&&await o.onAuthError(e),t&&t.setError(e),Promise.reject("err")}}return Promise.resolve()}authSuccess(e,t,r,i,a,n){return t=(t+(new RtDate).getTime())/2,this.setToken(r,i,a,t),this.useNonce&&(this.tokenParsed&&this.tokenParsed.nonce!=e.storedNonce||this.refreshTokenParsed&&this.refreshTokenParsed.nonce!=e.storedNonce||this.idTokenParsed&&this.idTokenParsed.nonce!=e.storedNonce)?(this.logInfo("[KEYCLOAK] Invalid nonce, clearing token"),this.clearToken(),Promise.reject("Invalid nonce")):n?(this.onAuthSuccess&&this.onAuthSuccess(),Promise.resolve()):Promise.resolve()}setupOidcEndoints(e){let t=this;t.endpoints=e?{authorize:function(){return e.authorization_endpoint},token:function(){return e.token_endpoint},logout:function(){if(!e.end_session_endpoint)throw"Not supported by the OIDC server";return e.end_session_endpoint},checkSessionIframe:function(){if(!e.check_session_iframe)throw"Not supported by the OIDC server";return e.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!e.userinfo_endpoint)throw"Not supported by the OIDC server";return e.userinfo_endpoint},thirdPartyCookiesIframe:function(){throw"not supported."}}:{authorize:function(){return t.getRealmUrl()+"/protocol/openid-connect/auth"},token:function(){return t.getRealmUrl()+"/protocol/openid-connect/token"},logout:function(){return t.getRealmUrl()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){let e=t.getRealmUrl()+"/protocol/openid-connect/login-status-iframe.html";return t.iframeVersion&&(e=e+"?version="+t.iframeVersion),e},thirdPartyCookiesIframe:function(){let e=t.getRealmUrl()+"/protocol/openid-connect/3p-cookies/step1.html";return t.iframeVersion&&(e=e+"?version="+t.iframeVersion),e},register:function(){return t.getRealmUrl()+"/protocol/openid-connect/registrations"},userinfo:function(){return t.getRealmUrl()+"/protocol/openid-connect/userinfo"}}}async loadConfig(e){let t=null,r=this.config;r?"string"==typeof r&&(t=r):t="keycloak.json";let i=this.kc;if("string"==typeof t){let e=await fetch(t),r=await e.text(),a=JSON.parse(r);i.authServerUrl=a["auth-server-url"],i.realm=a.realm,i.clientId=a.resource,i.setupOidcEndoints(null)}else{if(!r.clientId)throw"clientId missing";i.clientId=r.clientId;var a=r.oidcProvider;if(!a){if(!r.url)throw"url is missing.";if(!i.realm)throw"kc.realm has not set.";return i.authServerUrl=r.url,i.clientId=r.clientId,this.setupOidcEndoints(null),Promise.resolve()}if("string"!=typeof a)return this.setupOidcEndoints(a),Promise.resolve();{let e;e=a.endsWith("/")?a+".well-known/openid-configuration":a+"/.well-known/openid-configuration";var n=await fetch(e),o=await n.text(),s=JSON.parse(o);this.setupOidcEndoints(s)}}return Promise.resolve()}fileLoaded(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}setToken(e,t,r,i){if(this.tokenTimeoutHandle&&(clearTimeout(this.tokenTimeoutHandle),this.tokenTimeoutHandle=null),t?(this.refreshToken=t,this.refreshTokenParsed=this.decodeToken(t)):(delete this.refreshToken,delete this.refreshTokenParsed),r?(this.idToken=r,this.idTokenParsed=this.decodeToken(r)):(delete this.idToken,delete this.idTokenParsed),e){if(this.token=e,this.tokenParsed=this.decodeToken(e),this.authenticated=!0,i&&(this.timeSkew=Math.floor(i/1e3)-this.tokenParsed.iat),null!=this.timeSkew&&(this.logInfo("[KEYCLOAK] Estimated time difference between browser and server is "+this.timeSkew+" seconds"),this.onTokenExpired)){var a=1e3*(this.tokenParsed.exp-(new RtDate).getTime()/1e3+this.timeSkew);this.logInfo("[KEYCLOAK] Token expires in "+Math.round(a/1e3)+" s"),a<=0?this.onTokenExpired():this.tokenTimeoutHandle=setTimeout(this.onTokenExpired,a)}}else delete this.token,delete this.tokenParsed,this.authenticated=!1}decodeToken(e){switch((e=(e=(e=e.split(".")[1]).replace(/-/g,"+")).replace(/_/g,"/")).length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Invalid token"}return e=decodeURIComponent(escape(atob(e))),JSON.parse(e)}createUUID(){var e=this.generateRandomString(36,"0123456789abcdef").split("");e[14]="4";let t=e[19].charCodeAt(0);return e[19]="0123456789abcdef".substr(3&t|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}static parseCallback(e,t){let r=b.parseCallbackUrl(e,t);if(!r)return;let i=e.callbackStorage.get(r.state);return i?(r.valid=!0,r.redirectUri=i.redirectUri,r.storedNonce=i.nonce,r.prompt=i.prompt,r.pkceCodeVerifier=i.pkceCodeVerifier,r.realm=i.realm,r.location_href=i.location_href,e.realm=i.realm,r):void 0}static parseCallbackUrl(e,t){let r;if(!e.flow)throw"kc.flow is empty.";switch(e.flow){case"standard":r=["code","state","session_state","kc_action_status"];break;case"implicit":r=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status"];break;case"hybrid":r=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status"];break;default:throw"invalid flow"}r.push("error"),r.push("error_description"),r.push("error_uri");let i=t.indexOf("?"),a=t.indexOf("#"),n="",o=void 0;if("query"===e.responseMode&&-1!==i){n=t.substring(0,i);let e=t.substring(i+1,-1!==a?a:t.length);o=b.parseCallbackParams(e,r),""!==o.paramsString&&(n+="?"+o.paramsString),-1!==a&&(n+=t.substring(a))}else"fragment"===e.responseMode&&-1!==a?(n=t.substring(0,a),o=b.parseCallbackParams(t.substring(a+1),r),""!==o.paramsString&&(n+="#"+o.paramsString)):o=void 0;if(o&&o.oauthParams)if("standard"===e.flow||"hybrid"===e.flow){if(!o.oauthParams)throw"parsed.oauthParams is null.";if((o.oauthParams.code||o.oauthParams.error)&&o.oauthParams.state)return o.oauthParams.newUrl=n,o.oauthParams}else if("implicit"===e.flow){if(!o.oauthParams)throw"parsed.oauthParams is null.";if((o.oauthParams.access_token||o.oauthParams.error)&&o.oauthParams.state)return o.oauthParams.newUrl=n,o.oauthParams}}static parseCallbackParams(e,t){let r=e.split("&"),i={paramsString:"",oauthParams:{valid:!1}};for(let a=0;a>>19^e^e>>>8},e===(0|e)?t.x=e:r+=e;for(var i=0;i>>0)/4294967296};return a.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=r.next,a.quick=a,i&&("object"==typeof i&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.xor128=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},b841:function(e,t){Array.prototype.toSorted||Object.defineProperty(Array.prototype,"toSorted",{value:function(e){if(null==this)throw new TypeError("Array.prototype.toSorted called on null or undefined");if("function"!=typeof e&&void 0!==e)throw new TypeError("The comparison function must be either a function or undefined");return[...this].sort(e)},enumerable:!1,configurable:!0,writable:!0})},b8cc:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".chart-more-btn.rtxpc-popover{box-sizing:border-box;min-width:60px!important;padding:8px 0;text-align:left}.chart-more-btn.rtxpc-popover .chart-more-single,.chart-more-btn.rtxpc-popover .chart-more-single-delete{padding-right:16px;padding-left:16px;line-height:35px;cursor:pointer}.chart-more-btn.rtxpc-popover .chart-more-single:hover{color:#1a8cff;background-color:#e6f2ff}.chart-more-btn.rtxpc-popover .chart-more-single-delete{margin-bottom:0;color:#f34725}.chart-more-btn.rtxpc-popover .chart-more-single-delete:hover{color:#1a8cff;background-color:#e6f2ff}",""]),e.exports=t},b914:function(e,t,r){"use strict";t.a={getEntityEditPage:function(e,t,r,i){return{name:"VForm",params:{entityName:e,id:t}}},getEntityCreatePage:function(e,t,r){return{name:"VForm",params:{entityName:e}}}}},b91b:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var i,a=r("ef51"),n=r("e3bf");!function(e){e[e.One2Many=0]="One2Many",e[e.Many2Many=1]="Many2Many",e[e.Many2One=2]="Many2One"}(i||(i={}));class o extends n.a{constructor(e){super(e)}prepare(e){super.prepare(e),this.collectTabsSubgridRels(e)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;r._tabsTabSubgridRels&&r._tabsTabSubgridRels[this.id]&&e.addProp("tabSubgridRels",r._tabsTabSubgridRels[this.id]),e.addEventHandler("update-badge",(e,t)=>{r.$set(r.tabBadgeMap,e,t)})}buildTabName(e){this.children.forEach((e,t)=>{if(e.props.availableOnPhone==a.a.MOBILE)return!1;"tab"==e.$nodetype&&(e.props.nameIndex=t)})}collectTabsSubgridRels(e){const t=e.thisVue,r={};this.children.forEach(e=>{if(!e.props.enableBadge)return;const n=this.findFirstNodeByNodeTypeDFS(e.children,a.b.subgrid,e=>e.props.relationshipType===i.Many2Many);if(n){const a=n.props;if(a.relationshipType===i.Many2Many)return;r[e.id]={[n.id]:{queryid:a.ViewId,relationFilterAttribute:a.relationFilterAttribute,relationFilterValue:t.objectId,relationshipType:a.relationshipType,relationshipName:a.RelationshipName}}}}),Object.keys(r).length&&(t._tabsTabSubgridRels||(t._tabsTabSubgridRels={}),t._tabsTabSubgridRels[this.id]=r)}}},b94b:function(e,t,r){var i=r("1e4f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("001ff3e0",i,!0,{sourceMap:!1,shadowMode:!1})},b994:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".relation-drawer[data-v-0be6ae4a] .rtxpc-drawer{box-shadow:-6px 0 16px -8px rgba(0,0,0,.2)!important;min-width:834px}.relation-drawer[data-v-0be6ae4a] .el-drawer__body>.rt-view-wrapper{min-height:100vh}.relation-drawer[data-v-0be6ae4a] .rt-view-wrapper{background:#e8ebee}.relation-drawer.fullscreen[data-v-0be6ae4a] .rtxpc-drawer{width:100%!important}.relation-drawer[data-v-0be6ae4a] .rt-detail-header{padding-right:76px}.relation-header-wrapper[data-v-0be6ae4a]{display:flex;align-items:center;background-color:#fff;position:absolute;top:0;right:0;z-index:99}.relation-header-wrapper[data-v-0be6ae4a] .rt-button.rt-button--plain{color:#788796;border-color:#788796}.relation-header[data-v-0be6ae4a]{height:48px;display:flex;align-items:center;padding-left:76px;font-size:14px;font-weight:600;color:#0b0c0e;line-height:20px;position:relative}.relation-header .btn-close[data-v-0be6ae4a]{position:absolute;right:12px}.relation-header .btn-fullscreen[data-v-0be6ae4a]{position:absolute;right:40px}",""]),e.exports=t},b997:function(e,t,r){"use strict";r("f533")},ba27:function(e,t,r){"use strict";r("d52d")},ba76:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".div-500[data-v-11f73976]{width:100%;height:100%;text-align:center;vertical-align:middle}.div-500 button[data-v-11f73976]{width:142px;height:24px;line-height:8px;color:#888;vertical-align:middle;border:1px solid #888!important;border-radius:20px}.button-style[data-v-11f73976]:hover{color:#fff!important;background:#09f;border:1px solid #09f!important}.div-500 button>span[data-v-11f73976]{font-size:14px;color:#888}.img-box[data-v-11f73976]{padding-top:60px}.img-box p[data-v-11f73976]{margin-bottom:14px;font-size:32px;color:#555}.img-box img[data-v-11f73976]{margin-bottom:30px}.font-box[data-v-11f73976]{margin-bottom:40px}.font-box span[data-v-11f73976]{font-size:24px;color:#888!important}",""]),e.exports=t},babe:function(e,t,r){"use strict";r("7aa0")},baf8:function(e,t,r){var i=r("cb0b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("88234d18",i,!0,{sourceMap:!1,shadowMode:!1})},bb2f:function(e,t,r){var i=r("a166");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4706c202",i,!0,{sourceMap:!1,shadowMode:!1})},bb37:function(e,t,r){"use strict";r("fe6a")},bbed:function(e,t,r){"use strict";r("c49e")},bbf9:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-26c4f8af]{display:none}.multilookup-dialog.plat-multilookup-dialog .rc-section.rt-section[data-v-26c4f8af]{padding-right:0}.multilookup-dialog.plat-multilookup-dialog[data-v-26c4f8af] .section-body.rc-section-body{position:relative}.multilookup-dialog.plat-multilookup-dialog[data-v-26c4f8af] .plat-table-aside .el-table{width:99.9%}.multilookup-dialog.plat-multilookup-dialog[data-v-26c4f8af] .plat-table-aside .el-table table{width:100%}.multilookup-dialog.plat-multilookup-dialog[data-v-26c4f8af] .rt-table-content .el-table{overflow:auto}.multilookup-dialog.plat-multilookup-dialog[data-v-26c4f8af] .el-dialog{background:#fff}.multilookup-dialog.plat-multilookup-dialog.rt-dialog-wrapper .el-dialog__body[data-v-26c4f8af]{overflow:hidden}.multilookup-dialog.plat-multilookup-dialog .el-table__body-wrapper[data-v-26c4f8af]{overflow-x:auto}.multilookup-dialog.plat-multilookup-dialog .rt-table-aside[data-v-26c4f8af]{margin-right:0}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer[data-v-26c4f8af]{position:absolute;top:0;bottom:0;right:0}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer[data-v-26c4f8af] .el-drawer__body{padding:15px 22px 0}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer[data-v-26c4f8af] .el-drawer__body .rt-search .el-input__icon.el-input__validateIcon{display:none}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer[data-v-26c4f8af] .el-drawer{overflow:unset}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-26c4f8af]{margin-left:0;margin-bottom:12px;background:unset}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-26c4f8af] .rt-icon{cursor:pointer}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-26c4f8af] .rt-tag-text{background:#eaeafa;padding:0 5px;line-height:29px;border-radius:2px 0 0 2px}.multilookup-dialog.plat-multilookup-dialog .dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-26c4f8af] .__icon-right{width:16px;float:right;margin-left:0;height:19px;display:flex;justify-content:center;align-items:center;background:#eaeafa;padding:5px;padding-left:0;border-radius:0 2px 2px 0}.multilookup-dialog.plat-multilookup-dialog .drawer-content .plat-choiced[data-v-26c4f8af]{font-weight:700}.multilookup-dialog.plat-multilookup-dialog .drawer-content .plat-choiced .plat-choiced-item[data-v-26c4f8af]{color:#1890ff}.multilookup-dialog.plat-multilookup-dialog .drawer-content .subtitle[data-v-26c4f8af]{margin:20px 0}.multilookup-dialog.plat-multilookup-dialog .drawer-content .subtitle div[data-v-26c4f8af]:nth-child(2){color:#347efd;margin:0 5px}.multilookup-dialog.plat-multilookup-dialog .drawer-content .subtitle div[data-v-26c4f8af]{display:inline-block}.multilookup-dialog.plat-multilookup-dialog .drawer-btn[data-v-26c4f8af]{position:absolute;z-index:999;right:0;top:160px;border-top-left-radius:4px;border-bottom-left-radius:4px}.multilookup-dialog.plat-multilookup-dialog .rt-section[data-v-26c4f8af]{margin:0 24px}.multilookup-dialog.plat-multilookup-dialog .rt-section .section-search[data-v-26c4f8af]{padding:10px 0}.multilookup-dialog.plat-multilookup-dialog .rt-section .section-body[data-v-26c4f8af]{position:relative}.multilookup-dialog.plat-multilookup-dialog .drawer-close-left[data-v-26c4f8af]{position:absolute;left:-27px;top:160px;width:28px;min-width:unset;height:28px;background:#1890ff;color:#fff;border-top-left-radius:4px;border-bottom-left-radius:4px}.multilookup-dialog.plat-multilookup-dialog .drawer-close-left[data-v-26c4f8af] .rt-button-content .rt-button-text,.multilookup-dialog.plat-multilookup-dialog .el-input__validateIcon[data-v-26c4f8af]{display:none}@media screen and (min-width:1366px){.multilookup-dialog[data-v-26c4f8af] .rt-table .rt-table-content .el-table{max-height:400px;min-height:140px}}@media screen and (max-width:1366px){.multilookup-dialog[data-v-26c4f8af] .rt-table .rt-table-content .el-table{max-height:33vh;min-height:140px}}",""]),e.exports=t},bc36:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-saas-icon.plat-saas-icon[data-v-599cbc46]{display:inline-block}.rt-saas-icon.plat-saas-icon[data-v-599cbc46] svg{vertical-align:middle}",""]),e.exports=t},bc58:function(e,t,r){var i=r("ef49");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("146ccbb9",i,!0,{sourceMap:!1,shadowMode:!1})},bc6c:function(e,t,r){var i=r("7bcc"),a=r("ae34");function n(e){return null==e}function o(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).whiteList=e.whiteList||i.whiteList,e.onAttr=e.onAttr||i.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||i.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,this.options=e}r("8753"),o.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,i=t.onAttr,o=t.onIgnoreAttr,s=t.safeAttrValue;return a(e,(function(e,t,a,l,d){var c=r[a],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(l):c instanceof RegExp&&(u=c.test(l)),!0!==u&&(u=!1),l=s(a,l)){var p,h={position:t,sourcePosition:e,source:d,isWhite:u};return u?n(p=i(a,l,h))?a+":"+l:p:n(p=o(a,l,h))?void 0:p}}))},e.exports=o},bcce:function(e,t,r){"use strict";r("f66a")},bd0b:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","div")}}n(o,"$bindNodeType",i.b.navbarbyrelationshipitem)},bda0:function(e,t,r){var i=r("1ab2").FilterCSS,a=r("1ab2").getDefaultWhiteList,n=r("eb71");function o(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var s=new i;function l(e){return e.replace(d,"<").replace(c,">")}var d=//g,u=/"/g,p=/"/g,h=/&#([a-zA-Z0-9]*);?/gim,f=/:?/gim,m=/&newline;?/gim,g=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,b=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,y=/u\s*r\s*l\s*\(.*/gi;function v(e){return e.replace(u,""")}function x(e){return e.replace(p,'"')}function w(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function _(e){return e.replace(f,":").replace(m," ")}function E(e){for(var t="",r=0,i=e.length;r0?e.addProp("requestUrl",t):delete e.props.requestUrl}if(this.props.ViewId?(e.addProp("requestUrl","api/vlist/ExecuteQueryForLookUp?queryid="+this.props.ViewId),e.addProp("dialogDisplayFields",this.props.dialogDisplayFields),e.addProp("dialogFilterFields",this.props.dialogFilterFields),e.addProp("entity",this.props.entityName)):(e.addProp("entity",this.props.entityName),e.addProp("dialogDisplayFields",this.props.dialogDisplayFields),e.addProp("dialogFilterFields",this.props.dialogFilterFields)),!rt.isNullOrWhiteSpace(this.props.createRequestUrl)){let t=this.props.createRequestUrl||"";try{t=r.getFunctionByExpression(t).call(r)}catch(e){}e.addProp("requestUrl",t)}return e.addProp("relationshipName",this.props.relationshipName),e.addProp("title",this.props.label),e.addProp("nameField",this.props.nameField),e.addProp("idField",this.props.idField),e.addProp("refEntity",this.props.relatedEntityLogicalName),e.addProp("isMultipleField",!0),e.addProp("disabled",this.props.disabled),e.addProp("valueKey",this.props.relationshipName),e.addProp("isFold",this.props.isFold),e.addProp("approveStepId",r.approveStepId),e.addProp("toDoTaskId",r.toDoTaskId),e.addProp("isSaveMainSub",this.props.isSaveMainSub),e.addProp("editForm",r.editForm),e}getCurrentInputField(){const e=this.props;return e.isSaveMainSub&&e.relationshipName?e.relationshipName:""}calcRequired(e,t){return!!this.props.isSaveMainSub&&super.calcRequired(e,t)}}o(s,"$bindNodeType",i.b.MultipleLookupField)},bdc4:function(e,t,r){var i=r("3411");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1fb79e7e",i,!0,{sourceMap:!1,shadowMode:!1})},bdd8:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".loading-container[data-v-5954beca]{width:100%;height:100%;background-color:#fff}.failed[data-v-5954beca]{padding:16px 8px}",""]),e.exports=t},be58:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-46ea2b7d]{display:none}",""]),e.exports=t},be92:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-badge[data-v-44792218]{display:flex;align-items:center}.plat-badge .plat-badge-number[data-v-44792218]{height:19px;box-sizing:border-box;line-height:19px;margin-left:2px;background:#f0f2f4;padding:0 4px;border-radius:10px;color:#363d44;min-width:19px;text-align:center;font-size:12px}",""]),e.exports=t},beb4:function(e,t,r){"use strict";r("227c")},c0a8:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-picklist.plat-picklist-entities[data-v-6a506674] .el-input.is-focus .rt-input-shadow{background:#1890ff;box-shadow:0 1px 3px 0 #1890ff;height:1px}",""]),e.exports=t},c0c3:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".echart-dialog-drawer{pointer-events:none}.echart-dialog-drawer .el-drawer__container .rtxpc-drawer{pointer-events:auto;border-top:1px solid #e8ebee}.echart-dialog-drawer .el-drawer__container .rtxpc-drawer .chart-all{height:calc(100% - 36px)}.echart-dialog-drawer .el-drawer__container .rtxpc-drawer .chart-all .chart-content{height:100%}.echart-dialog-drawer .rt-defaultImage.is-medium{margin-top:200px}.echart-dialog-drawer .chart-all .echarts-no-data img{width:140px!important;height:unset}.echart-dialog-drawer .no-echart{position:absolute;top:25%;display:flex;flex-direction:column;align-items:center;width:100%;height:calc(100% - 56px)}.echart-dialog-drawer .no-echart .default-image{margin-top:0;margin-bottom:0}.echart-dialog-drawer .no-echart .default-image.rt-defaultImage .rtxpc-medium img{width:140px;height:unset}.echart-dialog-drawer .no-echart .default-image .describe div{position:relative;top:-24px;color:#788796}.echart-dialog-drawer .no-echart .create-icon{display:flex;justify-content:center}.echart-dialog-drawer .no-echart .create-icon .rt-button{height:48px;font-size:18px}.edit.echart-dialog-drawer .el-drawer{max-width:unset}.el-popover.plat-echart-left{max-height:450;padding:8px;overflow-x:hidden;overflow-y:auto}.el-popover.plat-echart-left .title{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-popover.plat-echart-left .echart-personal,.el-popover.plat-echart-left .echart-system{padding:0 8px}.el-popover.plat-echart-left .echart-personal .classify-name,.el-popover.plat-echart-left .echart-system .classify-name{height:32px;font-size:12px;font-weight:400;line-height:32px;color:#788796}.el-popover.plat-echart-left .echart-personal .echart-item,.el-popover.plat-echart-left .echart-system .echart-item{max-width:300px;height:35px;padding:0 16px;margin:0 -16px;overflow:hidden;font-size:14px;font-weight:400;line-height:35px;color:#21262c;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.el-popover.plat-echart-left .echart-personal .echart-item:hover,.el-popover.plat-echart-left .echart-system .echart-item:hover{color:#1a8cff;background:#e5f2ff}.el-popover.plat-echart-left .echart-system{padding-top:8px}.el-popover.plat-echart-left .echart-system-hasBoard{margin-top:8px;border-top:1px solid #e8ebee}.el-popover.plat-echart-left .rt-icon{margin-left:8px;cursor:pointer}.plat-echart{padding:0 16px}.plat-echart .plat-echart-view{display:flex;align-items:center;justify-content:space-between;height:36px}.plat-echart .plat-echart-view .plat-echart-left{display:flex;align-items:center;font-size:13px;cursor:pointer}.plat-echart .plat-echart-view .plat-echart-right,.plat-echart .plat-echart-view .plat-echart-right .plat-echart-flex{display:flex;align-items:center}.plat-echart .plat-echart-view .plat-echart-right .plat-echart-flex>*{margin-left:8px}.plat-echart .plat-echart-view .plat-echart-right .drawer-large-icon{margin-left:16px}.plat-echart .plat-echart-view .plat-echart-right .drawer-large-icon.rt-icon:hover{color:#1a8cff!important}.plat-echart .plat-echart-view .plat-echart-right .drawer-close-icon{margin-left:12px}.plat-echart .plat-echart-view .plat-echart-right .drawer-close-icon.rt-icon:hover{color:#1a8cff!important}.plat-echart .plat-echart-view .plat-echart-right .rt-button.rtxpc-no-text.rt-button--small.more-add-btn{box-sizing:border-box;width:24px;height:24px}.plat-echart .plat-echart-view .plat-echart-right .rt-icon{cursor:pointer}.plat-echart .plat-echart-edit{justify-content:space-between;height:56px}.plat-echart .plat-echart-edit,.plat-echart .plat-echart-edit .plat-echart-edit-left{display:flex;align-items:center}.plat-echart .plat-echart-edit .plat-echart-edit-left .plat-echart-edit-title{margin-right:8px}.plat-echart .plat-echart-edit .plat-echart-edit-left .rt-icon{cursor:pointer}.plat-echart .plat-echart-edit .plat-echart-edit-right .rt-button{border-radius:16px}.plat-echart .plat-echart-edit .plat-echart-edit-right .rt-icon.ecahrt-height-icon{margin-left:18px;cursor:pointer}",""]),e.exports=t},c0e2:function(e,t){function r(){}r.prototype={on:function(e,t,r){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var i=this;function a(){i.off(e,a),t.apply(r,arguments)}return a._=t,this.on(e,a,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),i=0,a=r.length;i({searchAddress:"",map:null,ac:null,myValue:"",local:null,value:"",addComp:"",newAddress:[],Provinces:[],Cities:[],Counties:[]}),watch:{value:{handler(){this.$nextTick(()=>{if(document.getElementsByClassName("tangram-suggestion-main")&&document.getElementsByClassName("tangram-suggestion-main").length>0){let e=document.getElementsByClassName("tangram-suggestion-main").length;document.getElementsByClassName("tangram-suggestion-main")[e-1].style["z-index"]="9999"}})},deep:!0}},beforeDestroy(){this.local&&(this.local.clearResults(),this.local.dispose()),this.ac&&this.ac.dispose(),this.map&&this.map.destroy(),this.local=null,this.ac=null,this.map=null},methods:{getMapScript:()=>e.BMapGL?e.BMapGL._preloader?e.BMapGL._preloader:Promise.resolve(e.BMapGL):(e.BMapGL={},e.BMapGL._preloader=new Promise(t=>{e._initBaiduMap=function(){t(e.BMapGL),e.document.body.removeChild(r),e.BMapGL._preloader=null,e._initBaiduMap=null};const r=document.createElement("script");r.src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=06e0XaD4f2LqGYpl75xoH7ZLw0K5GAAy&callback=_initBaiduMap",e.document.body.appendChild(r)}),e.BMapGL._preloader),focusHandle(){const{getMapScript:e,initMap:t}=this;e().then(t)},initMap(){if(this.map)return;let e=document.querySelector("#addressLocation");if(!e)return;if(this.$PlatUtils.eventListenerHook(this,"paste",e=>{setTimeout(()=>{this.value=window.AddressParse.parse(this.value)[0].province+window.AddressParse.parse(this.value)[0].area+window.AddressParse.parse(this.value)[0].city+window.AddressParse.parse(this.value)[0].details})},e),!e.children||0==e.children.length||!e.children[0].children||0==e.children[0].children.length)return;const t=this.$el.querySelector("input");t&&t.setAttribute("id","suggestId"),this.getProvince(),this.map=new BMapGL.Map("bmapContainer"),this.ac=new BMapGL.Autocomplete({input:"suggestId",location:this.map}),this.map.centerAndZoom(this.$_t("platform.addresslocation.suzhou","苏州"),12),this.$PlatUtils.eventListenerHook(this,"onhighlight",e=>{var t="",r=e.fromitem.value,i="";e.fromitem.index>-1&&(i=r.province+r.city+r.district+r.street+r.business),t="FromItem
index = "+e.fromitem.index+"
value = "+i,i="",e.toitem.index>-1&&(i=(r=e.toitem.value).province+r.city+r.district+r.street+r.business),t+="
ToItem
index = "+e.toitem.index+"
value = "+i,document.getElementById("searchResultPanel").innerHTML=t},this.ac),this.$PlatUtils.eventListenerHook(this,"onconfirm",e=>{var t=e.item.value;this.searchAddress=e.item.value,this.myValue=t.province+t.city+t.district+t.street+t.business,t.province||(t.province=window.AddressParse.parse(this.myValue)[0].province),document.getElementById("searchResultPanel").innerHTML="onconfirm
index = "+e.item.index+"
myValue = "+this.myValue,this.setPlace().then(()=>{this.$confirm(this.$_t("addresslocation.searchaddresspaste","是否将搜索到的地址粘贴到省市区?"),this.$_t("addresslocation.Tipconfirm","确认提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning"}).then(()=>{this.newAddress[this.datafield_address]=this.myValue,this.$emit("setAddress",this.newAddress),this.$emit("input",this.newAddress)}).catch(()=>{})})},this.ac)},getProvince(){rt.get("api/ProvinceCityCounty/GetProvince").then(e=>{this.province=e}),rt.get("api/ProvinceCityCounty/GetCity").then(e=>{this.Cities=e}),rt.get("api/ProvinceCityCounty/GetCounty").then(e=>{this.Counties=e})},setPlace(){return new Promise(e=>{this.map.clearOverlays(),this.local=new BMapGL.LocalSearch(this.map,{onSearchComplete:this.myFun}),this.local.search(this.myValue),e()})},myFun(){var e=this,t=e.local.getResults().getPoi(0).point,r=new BMapGL.Point(t.lng,t.lat);(new BMapGL.Geocoder).getLocation(r,t=>{e.addComp=t.addressComponents;var r={},i={},a={};e.addComp.province&&e.province.forEach(t=>{t.Name==e.addComp.province&&(r={id:t.Id,name:t.Name})}),e.addComp.city?e.Cities.forEach(t=>{t.Name==e.addComp.city&&t.ParentId==r.id&&(i={id:t.Id,name:t.Name})}):e.Counties.forEach(t=>{t.Name==e.searchAddress.city&&t.ParentId==r.id&&(i={id:t.Id,name:t.Name})}),e.addComp.district?e.Counties.forEach(t=>{t.Name==e.addComp.district&&t.ParentId==i.id&&(a={id:t.Id,name:t.Name})}):e.Counties.forEach(t=>{t.Name==e.searchAddress.district&&t.ParentId==i.id&&(a={id:t.Id,name:t.Name})}),e.newAddress[e.datafield_province]=r,e.newAddress[e.datafield_city]=i,e.newAddress[e.datafield_county]=a}),this.map.centerAndZoom(t,18),this.map.addOverlay(new BMapGL.Marker(t))}}}}).call(this,r("c8ba"))},c13e:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("336e");class l extends s.default{constructor(e){super(e)}registerComputedFunctions(e){if(this.props.disableExpression&&(this.calcReadonlyFunc=this.getFunctionByExpression(this.props.disableExpression)),this.props.readonlyExpression&&(this.calcReadonlyFunc=this.getFunctionByExpression(this.props.readonlyExpression)),this.props.hiddenExpression&&(this.calcHiddenFunc=this.getFunctionByExpression(this.props.hiddenExpression)),this.props.requiredExpression&&(this.calcRequiredFunc=this.getFunctionByExpression(this.props.requiredExpression)),this.props.ifEditableExpression)try{this.calcEditableFunc=this.getFunctionByExpression(this.props.ifEditableExpression)}catch(e){rt.showErrorToast("subgrid:"+e)}}registerCalculateFunctions(e){this.props.calculateExpression&&(this.calcExpressionFunc=this.getFunctionByExpression(this.props.calculateExpression))}addChildByPermission(e,t,r){const i=t.targetComponent;this.children.forEach((a,n)=>{if(a.$nodetype==o.b.cardTableButton&&a.props.availableOnPhone!=o.a.MOBILE){if(a.props.enablePermissions&&a.props.roles&&i.checkRolePermissions(a.props.roles))return;this.calcHidden(a,t)||(a.props.location="cardTable",a.extendParentInfo(this.parentInfo),"primary"!==a.props.type||this.props.isDialogMode||this.props.hidetext?r?a.createVNode(e,t,r):a.createVNode(e,t):a.createVNode(e,t,"primary"))}})}}i=l,a="$bindNodeType",n=o.b.cardTableToolbar,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},c181:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-rt-uploader .plat-input[data-v-3bea66c2]{display:none}.plat-rt-uploader .el-menu[data-v-3bea66c2]{margin-top:10px;width:100%}.plat-rt-uploader .el-menu .el-menu-item[data-v-3bea66c2]{width:100%}.plat-rt-uploader .el-menu .el-menu-item a.plat-rt-uploader-a[data-v-3bea66c2]{width:100%;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.plat-rt-uploader .tips[data-v-3bea66c2]{color:#888;font-size:14px}",""]),e.exports=t},c181c:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.attachEventHandlers(i),this.appendNode(e,i,t)}buildVNode(e,t){super.buildVNode(e,t),e.ref="notes_"+e.cid;const r=this.props,i=t.targetComponent,a=!!r.disabled,n=this.calcReadonly(i,t),o=!(a||n)&&(r.canupload||void 0===r.canupload)&&this.calcRequired(i,t);let{limitCount:s,limitMinCount:l}=r;s=0===s?99:s,l=o?l||1:0;let d="";d=null==r.enableCustomLabel||r.enableCustomLabel?r.langkey?i.$_t(r.langkey,r.label):r.label||"":i.$_t("common.attachment","附件"),e.addProp("title",d),e.addProp("filename",r.filename),e.addProp("canDelete",r.candelete),e.addProp("canDownload",r.candownload),e.addProp("canUpload",r.canupload),e.addProp("canAppUpload",r.canappupload),e.addProp("canAppTakePhoto",r.canapptakephoto),e.addProp("appSetting",r.appsetting),e.addProp("isOverwrite",r.isoverwrite),e.addProp("fileSize",r.fileSize),e.addProp("isLimitCount",r.isLimitCount),e.addProp("limitCount",s),e.addProp("limitMinCount",l),e.addProp("fileType",r.fileType),e.addProp("hiddenDefaultDiagram",r.hiddendefaultdiagram),e.addProp("paged",r.paged),e.addProp("defaultPageSize",r.pageSize),0===r.fileType?e.addProp("fileExtensions","*"):e.addProp("fileExtensions",r.fileExtensions),e.addProp("showStyle",r.showStyle),e.addProp("notekey",r.notekey),e.addProp("customRequestUrl",r.customRequestUrl),e.addProp("customUploadUrl",r.customUploadUrl),e.addProp("rowNum",r.rowNum),e.addProp("pdfReviewerURL",i.$store.state.systemparameter.PdfReviewerURL),e.addProp("disabled",a||n),e.addProp("required",o),e.addProp("objectId",i.objectId),e.addProp("objectTypeName",i.objectTypeName),e.addProp("isPreview",i.isPreview),e.addProp("isPrint",i.isPrint);const c=!!rt.isNull(r.isExpand)||r.isExpand;e.addProp("isOpenCollapse",!0),e.addProp("isExpand",c)}}i=d,a="$bindNodeType",n=o.b.Notes,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},c1b4:function(e,t,r){"use strict";r("fdb6")},c1ec:function(e,t,r){var i=r("4df3");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("ab14ea5e",i,!0,{sourceMap:!1,shadowMode:!1})},c224:function(e,t,r){"use strict";r("2cf2")},c246:function(e,t,r){var i=r("8d3a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("79ea09f8",i,!0,{sourceMap:!1,shadowMode:!1})},c315:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-card-table .rt-alert[data-v-009f4eb3]{width:100%}.plat-card-table[data-v-009f4eb3] .plat-section{padding:0 16px 16px 16px}",""]),e.exports=t},c358:function(e,t,r){var i=r("9832");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("b97331ca",i,!0,{sourceMap:!1,shadowMode:!1})},c384:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-drawer-condition-title[data-v-b64a9de8]{display:flex;align-items:center;cursor:pointer}.plat-drawer-condition-title .title[data-v-b64a9de8]{color:#2563eb;font-size:13px}.plat-drawer-condition-title .arrow-icon[data-v-b64a9de8]{margin-left:4px;transition:transform .15s}.plat-drawer-condition-title .arrow-icon.opened[data-v-b64a9de8]{transform:rotate(180deg)}.condition-list[data-v-b64a9de8]{display:flex;flex-direction:column}.condition-item[data-v-b64a9de8]{margin:0;display:flex}.condition-item[data-v-b64a9de8]:not(:last-child){margin-bottom:8px}.condition-item .rt-tag[data-v-b64a9de8]{cursor:pointer}.condition-item[data-v-b64a9de8] .rt-tag-info .rt-tag-text{color:#0b0c0e}.condition-item[data-v-b64a9de8] .rt-tag:hover .rt-tag-text{color:#5182ef}",""]),e.exports=t},c3dc:function(e,t,r){var i=r("ecca");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e5e9601a",i,!0,{sourceMap:!1,shadowMode:!1})},c40c:function(e,t,r){"use strict";var i;r.d(t,"a",(function(){return i})),function(e){e[e.HiddenExp=10]="HiddenExp",e[e.ReadonlyExp=20]="ReadonlyExp",e[e.RequiredExp=30]="RequiredExp",e[e.EditableExp=40]="EditableExp"}(i||(i={})),t.b=class{static getFunctionByExpressionWithCheck(e,t){let r;try{r=this.getFunctionByExpressionCommon(e,t)}catch(e){r=new Function("return null")}return r}static getFunctionByExpressionCommon(e,t=[]){if(!e)return new Function(...t,"return null");const r=0==(e=e.replace(/(^\s*)|(\s*$)/g,"")).indexOf("{");return t&&t.length>0?new Function(...t,this.optimizeExpression(`${r?"":"return"} ${e}`)):new Function(this.optimizeExpression(`${r?"":"return"} ${e}`))}static optimizeExpression(e){return e}static execFunction(e,t,r,a){let n=!1;try{n=e.call(t)}catch(e){let t="",n="";switch(a){case i.HiddenExp:t="隐藏表达式",n="hiddenExpression";break;case i.ReadonlyExp:t="禁用表达式",n="readonlyExpression";break;case i.RequiredExp:t="必填表达式",n="requiredExpression";break;case i.EditableExp:t="可编辑表达式",n="ifEditableExpression";break;default:t="脚本",n="hiddenExpression"}const{error:o}=console;o(`请注意!!【${t}执行错误】;\n 错误原因为:${e.message}\n 错误位置:控件名称【${r.props.label}】;nodetype:【${r.$nodetype}】;id:${r.id}\n 错误语法:【${r.props[n]}】`)}return n}}},c44f:function(e,t,r){"use strict";r("1c27")},c45e:function(e,t,r){var i=r("309f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("18c1c01c",i,!0,{sourceMap:!1,shadowMode:!1})},c48d:function(e,t,r){var i=r("da88");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("08283c19",i,!0,{sourceMap:!1,shadowMode:!1})},c49e:function(e,t,r){var i=r("526e");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("77ed9bb7",i,!0,{sourceMap:!1,shadowMode:!1})},c4ee:function(e,t,r){var i=r("a582");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4f5a7bd3",i,!0,{sourceMap:!1,shadowMode:!1})},c52f:function(e,t,r){"use strict";r("4947")},c53f:function(e,t,r){var i=r("a5b1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("70a7e86f",i,!0,{sourceMap:!1,shadowMode:!1})},c597:function(e,t,r){var i=r("aec1");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("3f56b838",i,!0,{sourceMap:!1,shadowMode:!1})},c622:function(e,t,r){var i=r("cfa4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("c10e3b96",i,!0,{sourceMap:!1,shadowMode:!1})},c672:function(e,t,r){"use strict";r("f86f")},c6be:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".statusline.plat-statusline[data-v-4987741c]{padding-bottom:8px}.statusline.plat-statusline .rc-section[data-v-4987741c]{padding:8px 24px}.statusline.plat-statusline[data-v-4987741c] .rt-stateline.rt-stateline--vertical{padding:0}.statusline.plat-statusline[data-v-4987741c] .rt-stateline.rt-stateline--vertical .rt-stateline-item .rt-stateline-item__head.is-success .rt-stateline-item__title{color:#2563eb;font-weight:550}.statusline.plat-statusline[data-v-4987741c] .rt-stateline.rt-stateline--vertical .rt-stateline-item .rt-stateline-item__head.is-success+.rt-stateline-item__content-contaniner .rt-stateline-item__description{color:#0b0c0e}.statusline.plat-statusline[data-v-4987741c] .rt-stateline.rt-stateline--vertical .rt-stateline-item .rt-stateline-item__head .rt-stateline-item__time{color:#4c5966}.statusline.plat-statusline[data-v-4987741c] .rt-stateline.rt-stateline--vertical .rt-stateline-item .rt-stateline-item__head .rt-stateline-item__title{color:#363d44}",""]),e.exports=t},c6e4:function(e,t,r){"use strict";r("7e11")},c70b:function(e,t,r){"use strict";r.r(t),r.d(t,"config",(function(){return ae})),r.d(t,"BigNumber",(function(){return Xd})),r.d(t,"Complex",(function(){return Kd})),r.d(t,"e",(function(){return Yd})),r.d(t,"_false",(function(){return Jd})),r.d(t,"fineStructure",(function(){return Zd})),r.d(t,"Fraction",(function(){return ec})),r.d(t,"i",(function(){return tc})),r.d(t,"_Infinity",(function(){return rc})),r.d(t,"LN10",(function(){return ic})),r.d(t,"LOG10E",(function(){return ac})),r.d(t,"Matrix",(function(){return nc})),r.d(t,"_NaN",(function(){return oc})),r.d(t,"_null",(function(){return sc})),r.d(t,"phi",(function(){return lc})),r.d(t,"Range",(function(){return dc})),r.d(t,"ResultSet",(function(){return cc})),r.d(t,"SQRT1_2",(function(){return uc})),r.d(t,"sackurTetrode",(function(){return pc})),r.d(t,"tau",(function(){return hc})),r.d(t,"_true",(function(){return fc})),r.d(t,"version",(function(){return mc})),r.d(t,"DenseMatrix",(function(){return gc})),r.d(t,"efimovFactor",(function(){return bc})),r.d(t,"LN2",(function(){return yc})),r.d(t,"pi",(function(){return vc})),r.d(t,"replacer",(function(){return xc})),r.d(t,"SQRT2",(function(){return wc})),r.d(t,"typed",(function(){return _c})),r.d(t,"unaryPlus",(function(){return Ec})),r.d(t,"weakMixingAngle",(function(){return Cc})),r.d(t,"abs",(function(){return Nc})),r.d(t,"acos",(function(){return Sc})),r.d(t,"acot",(function(){return Tc})),r.d(t,"acsc",(function(){return kc})),r.d(t,"addScalar",(function(){return Oc})),r.d(t,"arg",(function(){return Ic})),r.d(t,"asech",(function(){return Dc})),r.d(t,"asinh",(function(){return Ac})),r.d(t,"atan",(function(){return Mc})),r.d(t,"atanh",(function(){return Lc})),r.d(t,"bignumber",(function(){return Rc})),r.d(t,"bitNot",(function(){return Pc})),r.d(t,"boolean",(function(){return $c})),r.d(t,"clone",(function(){return Fc})),r.d(t,"combinations",(function(){return jc})),r.d(t,"complex",(function(){return Bc})),r.d(t,"conj",(function(){return Uc})),r.d(t,"cosh",(function(){return Vc})),r.d(t,"coth",(function(){return qc})),r.d(t,"csc",(function(){return zc})),r.d(t,"cube",(function(){return Hc})),r.d(t,"equalScalar",(function(){return Gc})),r.d(t,"erf",(function(){return Wc})),r.d(t,"exp",(function(){return Qc})),r.d(t,"expm1",(function(){return Xc})),r.d(t,"filter",(function(){return Kc})),r.d(t,"forEach",(function(){return Yc})),r.d(t,"format",(function(){return Jc})),r.d(t,"getMatrixDataType",(function(){return Zc})),r.d(t,"hex",(function(){return eu})),r.d(t,"im",(function(){return tu})),r.d(t,"isInteger",(function(){return ru})),r.d(t,"isNegative",(function(){return iu})),r.d(t,"isPositive",(function(){return au})),r.d(t,"isZero",(function(){return nu})),r.d(t,"LOG2E",(function(){return ou})),r.d(t,"log10",(function(){return su})),r.d(t,"log2",(function(){return lu})),r.d(t,"map",(function(){return du})),r.d(t,"multiplyScalar",(function(){return cu})),r.d(t,"not",(function(){return uu})),r.d(t,"number",(function(){return pu})),r.d(t,"oct",(function(){return hu})),r.d(t,"pickRandom",(function(){return fu})),r.d(t,"print",(function(){return mu})),r.d(t,"random",(function(){return gu})),r.d(t,"re",(function(){return bu})),r.d(t,"sec",(function(){return yu})),r.d(t,"sign",(function(){return vu})),r.d(t,"sin",(function(){return xu})),r.d(t,"SparseMatrix",(function(){return wu})),r.d(t,"splitUnit",(function(){return _u})),r.d(t,"square",(function(){return Eu})),r.d(t,"string",(function(){return Cu})),r.d(t,"tan",(function(){return Nu})),r.d(t,"typeOf",(function(){return Su})),r.d(t,"acosh",(function(){return Tu})),r.d(t,"acsch",(function(){return ku})),r.d(t,"apply",(function(){return Ou})),r.d(t,"asec",(function(){return Iu})),r.d(t,"bin",(function(){return Du})),r.d(t,"combinationsWithRep",(function(){return Au})),r.d(t,"cos",(function(){return Mu})),r.d(t,"csch",(function(){return Lu})),r.d(t,"isNaN",(function(){return Ru})),r.d(t,"isPrime",(function(){return Pu})),r.d(t,"randomInt",(function(){return $u})),r.d(t,"sech",(function(){return Fu})),r.d(t,"sinh",(function(){return ju})),r.d(t,"sparse",(function(){return Bu})),r.d(t,"sqrt",(function(){return Uu})),r.d(t,"tanh",(function(){return Vu})),r.d(t,"unaryMinus",(function(){return qu})),r.d(t,"acoth",(function(){return zu})),r.d(t,"cot",(function(){return Hu})),r.d(t,"fraction",(function(){return Gu})),r.d(t,"isNumeric",(function(){return Wu})),r.d(t,"matrix",(function(){return Qu})),r.d(t,"matrixFromFunction",(function(){return Xu})),r.d(t,"mod",(function(){return Ku})),r.d(t,"nthRoot",(function(){return Yu})),r.d(t,"numeric",(function(){return Ju})),r.d(t,"or",(function(){return Zu})),r.d(t,"prod",(function(){return ep})),r.d(t,"reshape",(function(){return tp})),r.d(t,"size",(function(){return rp})),r.d(t,"smaller",(function(){return ip})),r.d(t,"squeeze",(function(){return ap})),r.d(t,"subset",(function(){return np})),r.d(t,"subtract",(function(){return op})),r.d(t,"to",(function(){return sp})),r.d(t,"transpose",(function(){return lp})),r.d(t,"xgcd",(function(){return dp})),r.d(t,"zeros",(function(){return cp})),r.d(t,"and",(function(){return up})),r.d(t,"bitAnd",(function(){return pp})),r.d(t,"bitXor",(function(){return hp})),r.d(t,"cbrt",(function(){return fp})),r.d(t,"compare",(function(){return mp})),r.d(t,"compareText",(function(){return gp})),r.d(t,"concat",(function(){return bp})),r.d(t,"count",(function(){return yp})),r.d(t,"ctranspose",(function(){return vp})),r.d(t,"diag",(function(){return xp})),r.d(t,"divideScalar",(function(){return wp})),r.d(t,"dotDivide",(function(){return _p})),r.d(t,"equal",(function(){return Ep})),r.d(t,"flatten",(function(){return Cp})),r.d(t,"gcd",(function(){return Np})),r.d(t,"hasNumericValue",(function(){return Sp})),r.d(t,"hypot",(function(){return Tp})),r.d(t,"ImmutableDenseMatrix",(function(){return kp})),r.d(t,"Index",(function(){return Op})),r.d(t,"kron",(function(){return Ip})),r.d(t,"largerEq",(function(){return Dp})),r.d(t,"leftShift",(function(){return Ap})),r.d(t,"lsolve",(function(){return Mp})),r.d(t,"matrixFromColumns",(function(){return Lp})),r.d(t,"min",(function(){return Rp})),r.d(t,"mode",(function(){return Pp})),r.d(t,"nthRoots",(function(){return $p})),r.d(t,"ones",(function(){return Fp})),r.d(t,"partitionSelect",(function(){return jp})),r.d(t,"resize",(function(){return Bp})),r.d(t,"rightLogShift",(function(){return Up})),r.d(t,"round",(function(){return Vp})),r.d(t,"smallerEq",(function(){return qp})),r.d(t,"unequal",(function(){return zp})),r.d(t,"usolve",(function(){return Hp})),r.d(t,"xor",(function(){return Gp})),r.d(t,"add",(function(){return Wp})),r.d(t,"atan2",(function(){return Qp})),r.d(t,"bitOr",(function(){return Xp})),r.d(t,"catalan",(function(){return Kp})),r.d(t,"compareNatural",(function(){return Yp})),r.d(t,"deepEqual",(function(){return Jp})),r.d(t,"diff",(function(){return Zp})),r.d(t,"dot",(function(){return eh})),r.d(t,"equalText",(function(){return th})),r.d(t,"floor",(function(){return rh})),r.d(t,"identity",(function(){return ih})),r.d(t,"larger",(function(){return ah})),r.d(t,"log",(function(){return nh})),r.d(t,"lsolveAll",(function(){return oh})),r.d(t,"matrixFromRows",(function(){return sh})),r.d(t,"multiply",(function(){return lh})),r.d(t,"pow",(function(){return dh})),r.d(t,"qr",(function(){return ch})),r.d(t,"range",(function(){return uh})),r.d(t,"rightArithShift",(function(){return ph})),r.d(t,"row",(function(){return hh})),r.d(t,"setCartesian",(function(){return fh})),r.d(t,"setDistinct",(function(){return mh})),r.d(t,"setIsSubset",(function(){return gh})),r.d(t,"setPowerset",(function(){return bh})),r.d(t,"slu",(function(){return yh})),r.d(t,"sum",(function(){return vh})),r.d(t,"trace",(function(){return xh})),r.d(t,"usolveAll",(function(){return wh})),r.d(t,"asin",(function(){return _h})),r.d(t,"ceil",(function(){return Eh})),r.d(t,"column",(function(){return Ch})),r.d(t,"composition",(function(){return Nh})),r.d(t,"cross",(function(){return Sh})),r.d(t,"distance",(function(){return Th})),r.d(t,"dotMultiply",(function(){return kh})),r.d(t,"FibonacciHeap",(function(){return Oh})),r.d(t,"fix",(function(){return Ih})),r.d(t,"gamma",(function(){return Dh})),r.d(t,"index",(function(){return Ah})),r.d(t,"lcm",(function(){return Mh})),r.d(t,"max",(function(){return Lh})),r.d(t,"quantileSeq",(function(){return Rh})),r.d(t,"setDifference",(function(){return Ph})),r.d(t,"setMultiplicity",(function(){return $h})),r.d(t,"setSymDifference",(function(){return Fh})),r.d(t,"sort",(function(){return jh})),r.d(t,"Unit",(function(){return Bh})),r.d(t,"vacuumImpedance",(function(){return Uh})),r.d(t,"wienDisplacement",(function(){return Vh})),r.d(t,"atomicMass",(function(){return qh})),r.d(t,"bohrMagneton",(function(){return zh})),r.d(t,"boltzmann",(function(){return Hh})),r.d(t,"conductanceQuantum",(function(){return Gh})),r.d(t,"createUnit",(function(){return Wh})),r.d(t,"deuteronMass",(function(){return Qh})),r.d(t,"dotPow",(function(){return Xh})),r.d(t,"electricConstant",(function(){return Kh})),r.d(t,"elementaryCharge",(function(){return Yh})),r.d(t,"factorial",(function(){return Jh})),r.d(t,"fermiCoupling",(function(){return Zh})),r.d(t,"gasConstant",(function(){return ef})),r.d(t,"gravity",(function(){return tf})),r.d(t,"intersect",(function(){return rf})),r.d(t,"inverseConductanceQuantum",(function(){return af})),r.d(t,"klitzing",(function(){return nf})),r.d(t,"loschmidt",(function(){return of})),r.d(t,"magneticConstant",(function(){return sf})),r.d(t,"molarMass",(function(){return lf})),r.d(t,"molarPlanckConstant",(function(){return df})),r.d(t,"neutronMass",(function(){return cf})),r.d(t,"nuclearMagneton",(function(){return uf})),r.d(t,"permutations",(function(){return pf})),r.d(t,"planckConstant",(function(){return hf})),r.d(t,"planckMass",(function(){return ff})),r.d(t,"planckTime",(function(){return mf})),r.d(t,"quantumOfCirculation",(function(){return gf})),r.d(t,"reducedPlanckConstant",(function(){return bf})),r.d(t,"rydberg",(function(){return yf})),r.d(t,"setIntersect",(function(){return vf})),r.d(t,"setUnion",(function(){return xf})),r.d(t,"Spa",(function(){return wf})),r.d(t,"stefanBoltzmann",(function(){return _f})),r.d(t,"unit",(function(){return Ef})),r.d(t,"avogadro",(function(){return Cf})),r.d(t,"bohrRadius",(function(){return Nf})),r.d(t,"coulomb",(function(){return Sf})),r.d(t,"electronMass",(function(){return Tf})),r.d(t,"faraday",(function(){return kf})),r.d(t,"hartreeEnergy",(function(){return Of})),r.d(t,"log1p",(function(){return If})),r.d(t,"magneticFluxQuantum",(function(){return Df})),r.d(t,"molarMassC12",(function(){return Af})),r.d(t,"planckCharge",(function(){return Mf})),r.d(t,"planckTemperature",(function(){return Lf})),r.d(t,"secondRadiation",(function(){return Rf})),r.d(t,"speedOfLight",(function(){return Pf})),r.d(t,"stirlingS2",(function(){return $f})),r.d(t,"bellNumbers",(function(){return Ff})),r.d(t,"firstRadiation",(function(){return jf})),r.d(t,"lup",(function(){return Bf})),r.d(t,"molarVolume",(function(){return Uf})),r.d(t,"protonMass",(function(){return Vf})),r.d(t,"setSize",(function(){return qf})),r.d(t,"thomsonCrossSection",(function(){return zf})),r.d(t,"classicalElectronRadius",(function(){return Hf})),r.d(t,"det",(function(){return Gf})),r.d(t,"gravitationConstant",(function(){return Wf})),r.d(t,"inv",(function(){return Qf})),r.d(t,"lusolve",(function(){return Xf})),r.d(t,"sqrtm",(function(){return Kf})),r.d(t,"divide",(function(){return Yf})),r.d(t,"expm",(function(){return Jf})),r.d(t,"kldivergence",(function(){return Zf})),r.d(t,"mean",(function(){return em})),r.d(t,"median",(function(){return tm})),r.d(t,"planckLength",(function(){return rm})),r.d(t,"variance",(function(){return im})),r.d(t,"std",(function(){return am})),r.d(t,"eigs",(function(){return nm})),r.d(t,"multinomial",(function(){return om})),r.d(t,"mad",(function(){return sm})),r.d(t,"norm",(function(){return lm})),r.d(t,"rotationMatrix",(function(){return dm})),r.d(t,"rotate",(function(){return cm})),r.d(t,"Chain",(function(){return Gg})),r.d(t,"Node",(function(){return Wg})),r.d(t,"ObjectNode",(function(){return Qg})),r.d(t,"OperatorNode",(function(){return Xg})),r.d(t,"ParenthesisNode",(function(){return Kg})),r.d(t,"RelationalNode",(function(){return Yg})),r.d(t,"ArrayNode",(function(){return Jg})),r.d(t,"BlockNode",(function(){return Zg})),r.d(t,"ConditionalNode",(function(){return eb})),r.d(t,"ConstantNode",(function(){return tb})),r.d(t,"RangeNode",(function(){return rb})),r.d(t,"reviver",(function(){return ib})),r.d(t,"chain",(function(){return ab})),r.d(t,"FunctionAssignmentNode",(function(){return nb})),r.d(t,"AccessorNode",(function(){return ob})),r.d(t,"AssignmentNode",(function(){return sb})),r.d(t,"IndexNode",(function(){return lb})),r.d(t,"SymbolNode",(function(){return db})),r.d(t,"FunctionNode",(function(){return cb})),r.d(t,"parse",(function(){return ub})),r.d(t,"compile",(function(){return pb})),r.d(t,"evaluate",(function(){return hb})),r.d(t,"Help",(function(){return fb})),r.d(t,"Parser",(function(){return mb})),r.d(t,"parser",(function(){return gb})),r.d(t,"simplify",(function(){return bb})),r.d(t,"derivative",(function(){return yb})),r.d(t,"help",(function(){return vb})),r.d(t,"rationalize",(function(){return xb})),r.d(t,"docs",(function(){return vg})),r.d(t,"isAccessorNode",(function(){return O})),r.d(t,"isArray",(function(){return h})),r.d(t,"isArrayNode",(function(){return I})),r.d(t,"isAssignmentNode",(function(){return D})),r.d(t,"isBigNumber",(function(){return l})),r.d(t,"isBlockNode",(function(){return A})),r.d(t,"isBoolean",(function(){return x})),r.d(t,"isChain",(function(){return z})),r.d(t,"isCollection",(function(){return m})),r.d(t,"isComplex",(function(){return d})),r.d(t,"isConditionalNode",(function(){return M})),r.d(t,"isConstantNode",(function(){return L})),r.d(t,"isDate",(function(){return C})),r.d(t,"isDenseMatrix",(function(){return g})),r.d(t,"isFraction",(function(){return c})),r.d(t,"isFunction",(function(){return E})),r.d(t,"isFunctionAssignmentNode",(function(){return R})),r.d(t,"isFunctionNode",(function(){return P})),r.d(t,"isHelp",(function(){return _})),r.d(t,"isIndex",(function(){return v})),r.d(t,"isIndexNode",(function(){return $})),r.d(t,"isMatrix",(function(){return f})),r.d(t,"isNode",(function(){return F})),r.d(t,"isNull",(function(){return T})),r.d(t,"isNumber",(function(){return s})),r.d(t,"isString",(function(){return p})),r.d(t,"isUndefined",(function(){return k})),r.d(t,"isObject",(function(){return S})),r.d(t,"isObjectNode",(function(){return j})),r.d(t,"isOperatorNode",(function(){return B})),r.d(t,"isParenthesisNode",(function(){return U})),r.d(t,"isRange",(function(){return y})),r.d(t,"isRangeNode",(function(){return V})),r.d(t,"isRegExp",(function(){return N})),r.d(t,"isResultSet",(function(){return w})),r.d(t,"isSparseMatrix",(function(){return b})),r.d(t,"isSymbolNode",(function(){return q})),r.d(t,"isUnit",(function(){return u})),r.d(t,"IndexError",(function(){return Fe})),r.d(t,"DimensionError",(function(){return $e})),r.d(t,"ArgumentsError",(function(){return Rs})),r.d(t,"absDependencies",(function(){return Tb})),r.d(t,"AccessorNodeDependencies",(function(){return Mb})),r.d(t,"acosDependencies",(function(){return Lb})),r.d(t,"acoshDependencies",(function(){return Rb})),r.d(t,"acotDependencies",(function(){return Pb})),r.d(t,"acothDependencies",(function(){return $b})),r.d(t,"acscDependencies",(function(){return Fb})),r.d(t,"acschDependencies",(function(){return jb})),r.d(t,"addDependencies",(function(){return Ub})),r.d(t,"addScalarDependencies",(function(){return Bb})),r.d(t,"andDependencies",(function(){return zb})),r.d(t,"applyDependencies",(function(){return Gb})),r.d(t,"applyTransformDependencies",(function(){return Wb})),r.d(t,"argDependencies",(function(){return Qb})),r.d(t,"ArrayNodeDependencies",(function(){return Xb})),r.d(t,"asecDependencies",(function(){return Kb})),r.d(t,"asechDependencies",(function(){return Yb})),r.d(t,"asinDependencies",(function(){return Jb})),r.d(t,"asinhDependencies",(function(){return Zb})),r.d(t,"AssignmentNodeDependencies",(function(){return ey})),r.d(t,"atanDependencies",(function(){return ty})),r.d(t,"atan2Dependencies",(function(){return ry})),r.d(t,"atanhDependencies",(function(){return iy})),r.d(t,"atomicMassDependencies",(function(){return Sy})),r.d(t,"avogadroDependencies",(function(){return Ty})),r.d(t,"bellNumbersDependencies",(function(){return Ly})),r.d(t,"BigNumberDependencies",(function(){return wb})),r.d(t,"bignumberDependencies",(function(){return ay})),r.d(t,"binDependencies",(function(){return Ry})),r.d(t,"bitAndDependencies",(function(){return Py})),r.d(t,"bitNotDependencies",(function(){return $y})),r.d(t,"bitOrDependencies",(function(){return Fy})),r.d(t,"bitXorDependencies",(function(){return jy})),r.d(t,"BlockNodeDependencies",(function(){return Uy})),r.d(t,"bohrMagnetonDependencies",(function(){return Vy})),r.d(t,"bohrRadiusDependencies",(function(){return qy})),r.d(t,"boltzmannDependencies",(function(){return zy})),r.d(t,"booleanDependencies",(function(){return Hy})),r.d(t,"catalanDependencies",(function(){return Gy})),r.d(t,"cbrtDependencies",(function(){return Wy})),r.d(t,"ceilDependencies",(function(){return uy})),r.d(t,"chainDependencies",(function(){return Xy})),r.d(t,"ChainDependencies",(function(){return Qy})),r.d(t,"classicalElectronRadiusDependencies",(function(){return Ky})),r.d(t,"cloneDependencies",(function(){return Yy})),r.d(t,"columnDependencies",(function(){return av})),r.d(t,"columnTransformDependencies",(function(){return nv})),r.d(t,"combinationsDependencies",(function(){return Oy})),r.d(t,"combinationsWithRepDependencies",(function(){return ov})),r.d(t,"compareDependencies",(function(){return sv})),r.d(t,"compareNaturalDependencies",(function(){return lv})),r.d(t,"compareTextDependencies",(function(){return dv})),r.d(t,"compileDependencies",(function(){return Ev})),r.d(t,"complexDependencies",(function(){return Cv})),r.d(t,"ComplexDependencies",(function(){return _b})),r.d(t,"compositionDependencies",(function(){return Sv})),r.d(t,"concatDependencies",(function(){return Tv})),r.d(t,"concatTransformDependencies",(function(){return kv})),r.d(t,"ConditionalNodeDependencies",(function(){return cv})),r.d(t,"conductanceQuantumDependencies",(function(){return Ov})),r.d(t,"conjDependencies",(function(){return yy})),r.d(t,"ConstantNodeDependencies",(function(){return uv})),r.d(t,"cosDependencies",(function(){return Iv})),r.d(t,"coshDependencies",(function(){return Dv})),r.d(t,"cotDependencies",(function(){return Av})),r.d(t,"cothDependencies",(function(){return Mv})),r.d(t,"coulombDependencies",(function(){return Lv})),r.d(t,"countDependencies",(function(){return Pv})),r.d(t,"createUnitDependencies",(function(){return $v})),r.d(t,"crossDependencies",(function(){return Fv})),r.d(t,"cscDependencies",(function(){return jv})),r.d(t,"cschDependencies",(function(){return Bv})),r.d(t,"ctransposeDependencies",(function(){return Vv})),r.d(t,"cubeDependencies",(function(){return qv})),r.d(t,"deepEqualDependencies",(function(){return zv})),r.d(t,"DenseMatrixDependencies",(function(){return Cb})),r.d(t,"derivativeDependencies",(function(){return Zv})),r.d(t,"detDependencies",(function(){return Xv})),r.d(t,"deuteronMassDependencies",(function(){return ex})),r.d(t,"diagDependencies",(function(){return tx})),r.d(t,"diffDependencies",(function(){return rx})),r.d(t,"diffTransformDependencies",(function(){return ix})),r.d(t,"distanceDependencies",(function(){return nx})),r.d(t,"divideDependencies",(function(){return Yv})),r.d(t,"divideScalarDependencies",(function(){return ly})),r.d(t,"dotDependencies",(function(){return xy})),r.d(t,"dotDivideDependencies",(function(){return ox})),r.d(t,"dotMultiplyDependencies",(function(){return sx})),r.d(t,"dotPowDependencies",(function(){return lx})),r.d(t,"eDependencies",(function(){return dx})),r.d(t,"efimovFactorDependencies",(function(){return cx})),r.d(t,"eigsDependencies",(function(){return xx})),r.d(t,"electricConstantDependencies",(function(){return wx})),r.d(t,"electronMassDependencies",(function(){return _x})),r.d(t,"elementaryChargeDependencies",(function(){return Ex})),r.d(t,"equalDependencies",(function(){return dy})),r.d(t,"equalScalarDependencies",(function(){return Ob})),r.d(t,"equalTextDependencies",(function(){return Cx})),r.d(t,"erfDependencies",(function(){return Nx})),r.d(t,"evaluateDependencies",(function(){return Sx})),r.d(t,"expDependencies",(function(){return Tx})),r.d(t,"expmDependencies",(function(){return kx})),r.d(t,"expm1Dependencies",(function(){return Ox})),r.d(t,"factorialDependencies",(function(){return Dy})),r.d(t,"falseDependencies",(function(){return Ix})),r.d(t,"faradayDependencies",(function(){return Dx})),r.d(t,"fermiCouplingDependencies",(function(){return Ax})),r.d(t,"FibonacciHeapDependencies",(function(){return Gv})),r.d(t,"filterDependencies",(function(){return Mx})),r.d(t,"filterTransformDependencies",(function(){return Lx})),r.d(t,"fineStructureDependencies",(function(){return Rx})),r.d(t,"firstRadiationDependencies",(function(){return Px})),r.d(t,"fixDependencies",(function(){return hy})),r.d(t,"flattenDependencies",(function(){return ux})),r.d(t,"floorDependencies",(function(){return py})),r.d(t,"forEachDependencies",(function(){return $x})),r.d(t,"forEachTransformDependencies",(function(){return Fx})),r.d(t,"formatDependencies",(function(){return fy})),r.d(t,"fractionDependencies",(function(){return ny})),r.d(t,"FractionDependencies",(function(){return Nb})),r.d(t,"FunctionAssignmentNodeDependencies",(function(){return pv})),r.d(t,"FunctionNodeDependencies",(function(){return fv})),r.d(t,"gammaDependencies",(function(){return Iy})),r.d(t,"gasConstantDependencies",(function(){return jx})),r.d(t,"gcdDependencies",(function(){return Bx})),r.d(t,"getMatrixDataTypeDependencies",(function(){return Ux})),r.d(t,"gravitationConstantDependencies",(function(){return Vx})),r.d(t,"gravityDependencies",(function(){return qx})),r.d(t,"hartreeEnergyDependencies",(function(){return zx})),r.d(t,"hasNumericValueDependencies",(function(){return Hx})),r.d(t,"helpDependencies",(function(){return Wx})),r.d(t,"HelpDependencies",(function(){return Gx})),r.d(t,"hexDependencies",(function(){return Qx})),r.d(t,"hypotDependencies",(function(){return Xx})),r.d(t,"iDependencies",(function(){return Kx})),r.d(t,"identityDependencies",(function(){return by})),r.d(t,"imDependencies",(function(){return px})),r.d(t,"ImmutableDenseMatrixDependencies",(function(){return Zy})),r.d(t,"indexDependencies",(function(){return Yx})),r.d(t,"IndexDependencies",(function(){return ev})),r.d(t,"IndexNodeDependencies",(function(){return gv})),r.d(t,"indexTransformDependencies",(function(){return Jx})),r.d(t,"InfinityDependencies",(function(){return Zx})),r.d(t,"intersectDependencies",(function(){return ew})),r.d(t,"invDependencies",(function(){return Kv})),r.d(t,"inverseConductanceQuantumDependencies",(function(){return tw})),r.d(t,"isIntegerDependencies",(function(){return Hb})),r.d(t,"isNaNDependencies",(function(){return rw})),r.d(t,"isNegativeDependencies",(function(){return ky})),r.d(t,"isNumericDependencies",(function(){return my})),r.d(t,"isPositiveDependencies",(function(){return Nv})),r.d(t,"isPrimeDependencies",(function(){return iw})),r.d(t,"isZeroDependencies",(function(){return Hv})),r.d(t,"kldivergenceDependencies",(function(){return ow})),r.d(t,"klitzingDependencies",(function(){return sw})),r.d(t,"kronDependencies",(function(){return lw})),r.d(t,"LN10Dependencies",(function(){return dw})),r.d(t,"LN2Dependencies",(function(){return cw})),r.d(t,"LOG10EDependencies",(function(){return uw})),r.d(t,"LOG2EDependencies",(function(){return pw})),r.d(t,"largerDependencies",(function(){return Ay})),r.d(t,"largerEqDependencies",(function(){return tv})),r.d(t,"lcmDependencies",(function(){return hw})),r.d(t,"leftShiftDependencies",(function(){return fw})),r.d(t,"logDependencies",(function(){return aw})),r.d(t,"log10Dependencies",(function(){return mw})),r.d(t,"log1pDependencies",(function(){return gw})),r.d(t,"log2Dependencies",(function(){return bw})),r.d(t,"loschmidtDependencies",(function(){return yw})),r.d(t,"lsolveDependencies",(function(){return vw})),r.d(t,"lsolveAllDependencies",(function(){return xw})),r.d(t,"lupDependencies",(function(){return Qv})),r.d(t,"lusolveDependencies",(function(){return _w})),r.d(t,"madDependencies",(function(){return Sw})),r.d(t,"magneticConstantDependencies",(function(){return Tw})),r.d(t,"magneticFluxQuantumDependencies",(function(){return kw})),r.d(t,"mapDependencies",(function(){return Ew})),r.d(t,"mapTransformDependencies",(function(){return Ow})),r.d(t,"matrixDependencies",(function(){return Db})),r.d(t,"MatrixDependencies",(function(){return Eb})),r.d(t,"matrixFromColumnsDependencies",(function(){return hx})),r.d(t,"matrixFromFunctionDependencies",(function(){return Iw})),r.d(t,"matrixFromRowsDependencies",(function(){return Dw})),r.d(t,"maxDependencies",(function(){return Aw})),r.d(t,"maxTransformDependencies",(function(){return Mw})),r.d(t,"meanDependencies",(function(){return Lw})),r.d(t,"meanTransformDependencies",(function(){return Rw})),r.d(t,"medianDependencies",(function(){return Nw})),r.d(t,"minDependencies",(function(){return Pw})),r.d(t,"minTransformDependencies",(function(){return $w})),r.d(t,"modDependencies",(function(){return Fw})),r.d(t,"modeDependencies",(function(){return jw})),r.d(t,"molarMassDependencies",(function(){return Bw})),r.d(t,"molarMassC12Dependencies",(function(){return Uw})),r.d(t,"molarPlanckConstantDependencies",(function(){return Vw})),r.d(t,"molarVolumeDependencies",(function(){return qw})),r.d(t,"multinomialDependencies",(function(){return zw})),r.d(t,"multiplyDependencies",(function(){return wy})),r.d(t,"multiplyScalarDependencies",(function(){return gy})),r.d(t,"NaNDependencies",(function(){return Hw})),r.d(t,"neutronMassDependencies",(function(){return Gw})),r.d(t,"NodeDependencies",(function(){return kb})),r.d(t,"normDependencies",(function(){return Ww})),r.d(t,"notDependencies",(function(){return Vb})),r.d(t,"nthRootDependencies",(function(){return Qw})),r.d(t,"nthRootsDependencies",(function(){return Xw})),r.d(t,"nuclearMagnetonDependencies",(function(){return Kw})),r.d(t,"nullDependencies",(function(){return Yw})),r.d(t,"numberDependencies",(function(){return oy})),r.d(t,"numericDependencies",(function(){return sy})),r.d(t,"ObjectNodeDependencies",(function(){return bv})),r.d(t,"octDependencies",(function(){return Jw})),r.d(t,"onesDependencies",(function(){return Zw})),r.d(t,"OperatorNodeDependencies",(function(){return yv})),r.d(t,"orDependencies",(function(){return e_})),r.d(t,"ParenthesisNodeDependencies",(function(){return vv})),r.d(t,"parseDependencies",(function(){return _v})),r.d(t,"parserDependencies",(function(){return r_})),r.d(t,"ParserDependencies",(function(){return t_})),r.d(t,"partitionSelectDependencies",(function(){return Cw})),r.d(t,"permutationsDependencies",(function(){return i_})),r.d(t,"phiDependencies",(function(){return a_})),r.d(t,"piDependencies",(function(){return n_})),r.d(t,"pickRandomDependencies",(function(){return o_})),r.d(t,"planckChargeDependencies",(function(){return s_})),r.d(t,"planckConstantDependencies",(function(){return l_})),r.d(t,"planckLengthDependencies",(function(){return d_})),r.d(t,"planckMassDependencies",(function(){return c_})),r.d(t,"planckTemperatureDependencies",(function(){return u_})),r.d(t,"planckTimeDependencies",(function(){return p_})),r.d(t,"powDependencies",(function(){return _y})),r.d(t,"printDependencies",(function(){return h_})),r.d(t,"prodDependencies",(function(){return Rv})),r.d(t,"protonMassDependencies",(function(){return f_})),r.d(t,"qrDependencies",(function(){return mx})),r.d(t,"quantileSeqDependencies",(function(){return m_})),r.d(t,"quantumOfCirculationDependencies",(function(){return g_})),r.d(t,"randomDependencies",(function(){return b_})),r.d(t,"randomIntDependencies",(function(){return y_})),r.d(t,"rangeDependencies",(function(){return iv})),r.d(t,"RangeDependencies",(function(){return mv})),r.d(t,"RangeNodeDependencies",(function(){return xv})),r.d(t,"rangeTransformDependencies",(function(){return v_})),r.d(t,"rationalizeDependencies",(function(){return x_})),r.d(t,"reDependencies",(function(){return gx})),r.d(t,"reducedPlanckConstantDependencies",(function(){return w_})),r.d(t,"RelationalNodeDependencies",(function(){return wv})),r.d(t,"replacerDependencies",(function(){return __})),r.d(t,"reshapeDependencies",(function(){return E_})),r.d(t,"resizeDependencies",(function(){return C_})),r.d(t,"ResultSetDependencies",(function(){return By})),r.d(t,"reviverDependencies",(function(){return N_})),r.d(t,"rightArithShiftDependencies",(function(){return S_})),r.d(t,"rightLogShiftDependencies",(function(){return T_})),r.d(t,"rotateDependencies",(function(){return O_})),r.d(t,"rotationMatrixDependencies",(function(){return k_})),r.d(t,"roundDependencies",(function(){return cy})),r.d(t,"rowDependencies",(function(){return I_})),r.d(t,"rowTransformDependencies",(function(){return D_})),r.d(t,"rydbergDependencies",(function(){return A_})),r.d(t,"SQRT1_2Dependencies",(function(){return M_})),r.d(t,"SQRT2Dependencies",(function(){return L_})),r.d(t,"sackurTetrodeDependencies",(function(){return R_})),r.d(t,"secDependencies",(function(){return P_})),r.d(t,"sechDependencies",(function(){return $_})),r.d(t,"secondRadiationDependencies",(function(){return F_})),r.d(t,"setCartesianDependencies",(function(){return j_})),r.d(t,"setDifferenceDependencies",(function(){return B_})),r.d(t,"setDistinctDependencies",(function(){return U_})),r.d(t,"setIntersectDependencies",(function(){return V_})),r.d(t,"setIsSubsetDependencies",(function(){return q_})),r.d(t,"setMultiplicityDependencies",(function(){return z_})),r.d(t,"setPowersetDependencies",(function(){return H_})),r.d(t,"setSizeDependencies",(function(){return G_})),r.d(t,"setSymDifferenceDependencies",(function(){return W_})),r.d(t,"setUnionDependencies",(function(){return Q_})),r.d(t,"signDependencies",(function(){return fx})),r.d(t,"simplifyDependencies",(function(){return Jv})),r.d(t,"sinDependencies",(function(){return bx})),r.d(t,"sinhDependencies",(function(){return X_})),r.d(t,"sizeDependencies",(function(){return vy})),r.d(t,"sluDependencies",(function(){return ww})),r.d(t,"smallerDependencies",(function(){return Jy})),r.d(t,"smallerEqDependencies",(function(){return rv})),r.d(t,"sortDependencies",(function(){return K_})),r.d(t,"SpaDependencies",(function(){return Wv})),r.d(t,"sparseDependencies",(function(){return Y_})),r.d(t,"SparseMatrixDependencies",(function(){return Ib})),r.d(t,"speedOfLightDependencies",(function(){return J_})),r.d(t,"splitUnitDependencies",(function(){return Z_})),r.d(t,"sqrtDependencies",(function(){return ax})),r.d(t,"sqrtmDependencies",(function(){return eE})),r.d(t,"squareDependencies",(function(){return tE})),r.d(t,"squeezeDependencies",(function(){return rE})),r.d(t,"stdDependencies",(function(){return aE})),r.d(t,"stdTransformDependencies",(function(){return nE})),r.d(t,"stefanBoltzmannDependencies",(function(){return oE})),r.d(t,"stirlingS2Dependencies",(function(){return My})),r.d(t,"stringDependencies",(function(){return sE})),r.d(t,"subsetDependencies",(function(){return Ab})),r.d(t,"subsetTransformDependencies",(function(){return lE})),r.d(t,"subtractDependencies",(function(){return Cy})),r.d(t,"sumDependencies",(function(){return nw})),r.d(t,"sumTransformDependencies",(function(){return dE})),r.d(t,"SymbolNodeDependencies",(function(){return hv})),r.d(t,"tanDependencies",(function(){return cE})),r.d(t,"tanhDependencies",(function(){return uE})),r.d(t,"tauDependencies",(function(){return pE})),r.d(t,"thomsonCrossSectionDependencies",(function(){return hE})),r.d(t,"toDependencies",(function(){return fE})),r.d(t,"traceDependencies",(function(){return mE})),r.d(t,"transposeDependencies",(function(){return Uv})),r.d(t,"trueDependencies",(function(){return gE})),r.d(t,"typeOfDependencies",(function(){return bE})),r.d(t,"typedDependencies",(function(){return Sb})),r.d(t,"unaryMinusDependencies",(function(){return Ey})),r.d(t,"unaryPlusDependencies",(function(){return yE})),r.d(t,"unequalDependencies",(function(){return vE})),r.d(t,"UnitDependencies",(function(){return Ny})),r.d(t,"unitDependencies",(function(){return xE})),r.d(t,"EDependencies",(function(){return wE})),r.d(t,"PIDependencies",(function(){return _E})),r.d(t,"usolveDependencies",(function(){return yx})),r.d(t,"usolveAllDependencies",(function(){return vx})),r.d(t,"vacuumImpedanceDependencies",(function(){return EE})),r.d(t,"varianceDependencies",(function(){return iE})),r.d(t,"varianceTransformDependencies",(function(){return CE})),r.d(t,"versionDependencies",(function(){return NE})),r.d(t,"weakMixingAngleDependencies",(function(){return SE})),r.d(t,"wienDisplacementDependencies",(function(){return TE})),r.d(t,"xgcdDependencies",(function(){return kE})),r.d(t,"xorDependencies",(function(){return OE})),r.d(t,"zerosDependencies",(function(){return qb})),r.d(t,"all",(function(){return IE})),r.d(t,"createTyped",(function(){return di})),r.d(t,"createResultSet",(function(){return Hr})),r.d(t,"createBigNumberClass",(function(){return st})),r.d(t,"createComplexClass",(function(){return ct})),r.d(t,"createFractionClass",(function(){return Vr})),r.d(t,"createRangeClass",(function(){return zr})),r.d(t,"createMatrixClass",(function(){return qr})),r.d(t,"createDenseMatrixClass",(function(){return Gr})),r.d(t,"createClone",(function(){return La})),r.d(t,"createIsInteger",(function(){return cn})),r.d(t,"createIsNegative",(function(){return mn})),r.d(t,"createIsNumeric",(function(){return yo})),r.d(t,"createHasNumericValue",(function(){return vs})),r.d(t,"createIsPositive",(function(){return gn})),r.d(t,"createIsZero",(function(){return bn})),r.d(t,"createIsNaN",(function(){return no})),r.d(t,"createTypeOf",(function(){return Qn})),r.d(t,"createEqualScalar",(function(){return Ga})),r.d(t,"createSparseMatrixClass",(function(){return qn})),r.d(t,"createNumber",(function(){return kn})),r.d(t,"createString",(function(){return Gn})),r.d(t,"createBoolean",(function(){return Ma})),r.d(t,"createBignumber",(function(){return ma})),r.d(t,"createComplex",(function(){return ja})),r.d(t,"createFraction",(function(){return bo})),r.d(t,"createMatrix",(function(){return vo})),r.d(t,"createMatrixFromFunction",(function(){return xo})),r.d(t,"createMatrixFromRows",(function(){return pl})),r.d(t,"createMatrixFromColumns",(function(){return Os})),r.d(t,"createSplitUnit",(function(){return zn})),r.d(t,"createUnaryMinus",(function(){return fo})),r.d(t,"createUnaryPlus",(function(){return Vi})),r.d(t,"createAbs",(function(){return qi})),r.d(t,"createApply",(function(){return Yn})),r.d(t,"createAddScalar",(function(){return da})),r.d(t,"createCbrt",(function(){return ns})),r.d(t,"createCeil",(function(){return Bl})),r.d(t,"createCube",(function(){return za})),r.d(t,"createExp",(function(){return Za})),r.d(t,"createExpm1",(function(){return en})),r.d(t,"createFix",(function(){return Wl})),r.d(t,"createFloor",(function(){return sl})),r.d(t,"createGcd",(function(){return ys})),r.d(t,"createLcm",(function(){return Zl})),r.d(t,"createLog10",(function(){return yn})),r.d(t,"createLog2",(function(){return vn})),r.d(t,"createMod",(function(){return ko})),r.d(t,"createMultiplyScalar",(function(){return _n})),r.d(t,"createMultiply",(function(){return hl})),r.d(t,"createNthRoot",(function(){return Do})),r.d(t,"createSign",(function(){return Un})),r.d(t,"createSqrt",(function(){return po})),r.d(t,"createSquare",(function(){return Hn})),r.d(t,"createSubtract",(function(){return Ko})),r.d(t,"createXgcd",(function(){return es})),r.d(t,"createDotMultiply",(function(){return Hl})),r.d(t,"createBitAnd",(function(){return is})),r.d(t,"createBitNot",(function(){return Aa})),r.d(t,"createBitOr",(function(){return Js})),r.d(t,"createBitXor",(function(){return as})),r.d(t,"createArg",(function(){return ca})),r.d(t,"createConj",(function(){return Ba})),r.d(t,"createIm",(function(){return dn})),r.d(t,"createRe",(function(){return jn})),r.d(t,"createNot",(function(){return Tn})),r.d(t,"createOr",(function(){return Po})),r.d(t,"createXor",(function(){return Qs})),r.d(t,"createConcat",(function(){return ls})),r.d(t,"createColumn",(function(){return Ul})),r.d(t,"createCount",(function(){return cs})),r.d(t,"createCross",(function(){return ql})),r.d(t,"createDiag",(function(){return ps})),r.d(t,"createFilter",(function(){return tn})),r.d(t,"createFlatten",(function(){return gs})),r.d(t,"createForEach",(function(){return an})),r.d(t,"createGetMatrixDataType",(function(){return sn})),r.d(t,"createIdentity",(function(){return ll})),r.d(t,"createKron",(function(){return Es})),r.d(t,"createMap",(function(){return xn})),r.d(t,"createDiff",(function(){return al})),r.d(t,"createOnes",(function(){return Ms})),r.d(t,"createRange",(function(){return gl})),r.d(t,"createReshape",(function(){return jo})),r.d(t,"createResize",(function(){return Ps})),r.d(t,"createRotate",(function(){return Qd})),r.d(t,"createRotationMatrix",(function(){return Gd})),r.d(t,"createRow",(function(){return yl})),r.d(t,"createSize",(function(){return Bo})),r.d(t,"createSqueeze",(function(){return qo})),r.d(t,"createSubset",(function(){return zo})),r.d(t,"createTranspose",(function(){return Zo})),r.d(t,"createCtranspose",(function(){return us})),r.d(t,"createZeros",(function(){return ts})),r.d(t,"createErf",(function(){return Wa})),r.d(t,"createMode",(function(){return Ds})),r.d(t,"createProd",(function(){return Fo})),r.d(t,"createFormat",(function(){return on})),r.d(t,"createBin",(function(){return eo})),r.d(t,"createOct",(function(){return On})),r.d(t,"createHex",(function(){return ln})),r.d(t,"createPrint",(function(){return Rn})),r.d(t,"createTo",(function(){return Jo})),r.d(t,"createIsPrime",(function(){return oo})),r.d(t,"createNumeric",(function(){return Ro})),r.d(t,"createDivideScalar",(function(){return hs})),r.d(t,"createPow",(function(){return fl})),r.d(t,"createRound",(function(){return qs})),r.d(t,"createLog",(function(){return cl}));r.d(t,"createLog1p",(function(){return vd})),r.d(t,"createNthRoots",(function(){return As})),r.d(t,"createDotPow",(function(){return cd})),r.d(t,"createDotDivide",(function(){return fs})),r.d(t,"createLsolve",(function(){return ks})),r.d(t,"createUsolve",(function(){return Ws})),r.d(t,"createLsolveAll",(function(){return ul})),r.d(t,"createUsolveAll",(function(){return Fl})),r.d(t,"createLeftShift",(function(){return Ss})),r.d(t,"createRightArithShift",(function(){return bl})),r.d(t,"createRightLogShift",(function(){return $s})),r.d(t,"createAnd",(function(){return rs})),r.d(t,"createCompare",(function(){return os})),r.d(t,"createCompareNatural",(function(){return rl})),r.d(t,"createCompareText",(function(){return ss})),r.d(t,"createEqual",(function(){return ms})),r.d(t,"createEqualText",(function(){return ol})),r.d(t,"createSmaller",(function(){return Vo})),r.d(t,"createSmallerEq",(function(){return Hs})),r.d(t,"createLarger",(function(){return dl})),r.d(t,"createLargerEq",(function(){return Cs})),r.d(t,"createDeepEqual",(function(){return il})),r.d(t,"createUnequal",(function(){return Gs})),r.d(t,"createPartitionSelect",(function(){return Ls})),r.d(t,"createSort",(function(){return nd})),r.d(t,"createMax",(function(){return ed})),r.d(t,"createMin",(function(){return Is})),r.d(t,"createImmutableDenseMatrixClass",(function(){return ws})),r.d(t,"createIndexClass",(function(){return _s})),r.d(t,"createFibonacciHeapClass",(function(){return Gl})),r.d(t,"createSpaClass",(function(){return bd})),r.d(t,"createUnitClass",(function(){return ld})),r.d(t,"createUnitFunction",(function(){return yd})),r.d(t,"createSparse",(function(){return uo})),r.d(t,"createCreateUnit",(function(){return dd})),r.d(t,"createAcos",(function(){return zi})),r.d(t,"createAcosh",(function(){return Xn})),r.d(t,"createAcot",(function(){return sa})),r.d(t,"createAcoth",(function(){return mo})),r.d(t,"createAcsc",(function(){return la})),r.d(t,"createAcsch",(function(){return Kn})),r.d(t,"createAsec",(function(){return Zn})),r.d(t,"createAsech",(function(){return ua})),r.d(t,"createAsin",(function(){return jl})),r.d(t,"createAsinh",(function(){return pa})),r.d(t,"createAtan",(function(){return ha})),r.d(t,"createAtan2",(function(){return Ys})),r.d(t,"createAtanh",(function(){return fa})),r.d(t,"createCos",(function(){return io})),r.d(t,"createCosh",(function(){return Ua})),r.d(t,"createCot",(function(){return go})),r.d(t,"createCoth",(function(){return Va})),r.d(t,"createCsc",(function(){return qa})),r.d(t,"createCsch",(function(){return ao})),r.d(t,"createSec",(function(){return Bn})),r.d(t,"createSech",(function(){return lo})),r.d(t,"createSin",(function(){return Vn})),r.d(t,"createSinh",(function(){return co})),r.d(t,"createTan",(function(){return Wn})),r.d(t,"createTanh",(function(){return ho})),r.d(t,"createSetCartesian",(function(){return vl})),r.d(t,"createSetDifference",(function(){return rd})),r.d(t,"createSetDistinct",(function(){return xl})),r.d(t,"createSetIntersect",(function(){return md})),r.d(t,"createSetIsSubset",(function(){return wl})),r.d(t,"createSetMultiplicity",(function(){return id})),r.d(t,"createSetPowerset",(function(){return _l})),r.d(t,"createSetSize",(function(){return Ed})),r.d(t,"createSetSymDifference",(function(){return ad})),r.d(t,"createSetUnion",(function(){return gd})),r.d(t,"createAdd",(function(){return Xs})),r.d(t,"createHypot",(function(){return xs})),r.d(t,"createNorm",(function(){return zd})),r.d(t,"createDot",(function(){return nl})),r.d(t,"createTrace",(function(){return $l})),r.d(t,"createIndex",(function(){return Jl})),r.d(t,"createNode",(function(){return hm})),r.d(t,"createAccessorNode",(function(){return Bm})),r.d(t,"createArrayNode",(function(){return Im})),r.d(t,"createAssignmentNode",(function(){return Um})),r.d(t,"createBlockNode",(function(){return Dm})),r.d(t,"createConditionalNode",(function(){return Am})),r.d(t,"createConstantNode",(function(){return Mm})),r.d(t,"createFunctionAssignmentNode",(function(){return $m})),r.d(t,"createIndexNode",(function(){return Vm})),r.d(t,"createObjectNode",(function(){return fm})),r.d(t,"createOperatorNode",(function(){return Tm})),r.d(t,"createParenthesisNode",(function(){return km})),r.d(t,"createRangeNode",(function(){return Lm})),r.d(t,"createRelationalNode",(function(){return Om})),r.d(t,"createSymbolNode",(function(){return qm})),r.d(t,"createFunctionNode",(function(){return Gm})),r.d(t,"createParse",(function(){return Qm})),r.d(t,"createCompile",(function(){return Km})),r.d(t,"createEvaluate",(function(){return Jm})),r.d(t,"createParserClass",(function(){return rg})),r.d(t,"createParser",(function(){return ag})),r.d(t,"createLup",(function(){return _d})),r.d(t,"createQr",(function(){return ml})),r.d(t,"createSlu",(function(){return Rl})),r.d(t,"createLusolve",(function(){return Td})),r.d(t,"createHelpClass",(function(){return eg})),r.d(t,"createChainClass",(function(){return um})),r.d(t,"createHelp",(function(){return xg})),r.d(t,"createChain",(function(){return Pm})),r.d(t,"createDet",(function(){return Cd})),r.d(t,"createInv",(function(){return Nd})),r.d(t,"createEigs",(function(){return Fd})),r.d(t,"createExpm",(function(){return Id})),r.d(t,"createSqrtm",(function(){return kd})),r.d(t,"createDivide",(function(){return Od})),r.d(t,"createDistance",(function(){return zl})),r.d(t,"createIntersect",(function(){return pd})),r.d(t,"createSum",(function(){return Pl})),r.d(t,"createMean",(function(){return Ad})),r.d(t,"createMedian",(function(){return Md})),r.d(t,"createMad",(function(){return Vd})),r.d(t,"createVariance",(function(){return Ld})),r.d(t,"createQuantileSeq",(function(){return td})),r.d(t,"createStd",(function(){return Rd})),r.d(t,"createCombinations",(function(){return $a})),r.d(t,"createCombinationsWithRep",(function(){return to})),r.d(t,"createGamma",(function(){return Yl})),r.d(t,"createFactorial",(function(){return ud})),r.d(t,"createKldivergence",(function(){return Dd})),r.d(t,"createMultinomial",(function(){return Bd})),r.d(t,"createPermutations",(function(){return hd})),r.d(t,"createPickRandom",(function(){return Ln})),r.d(t,"createRandom",(function(){return Fn})),r.d(t,"createRandomInt",(function(){return so})),r.d(t,"createStirlingS2",(function(){return xd})),r.d(t,"createBellNumbers",(function(){return wd})),r.d(t,"createCatalan",(function(){return Zs})),r.d(t,"createComposition",(function(){return Vl})),r.d(t,"createSimplify",(function(){return fg})),r.d(t,"createDerivative",(function(){return gg})),r.d(t,"createRationalize",(function(){return wg})),r.d(t,"createReviver",(function(){return Rm})),r.d(t,"createReplacer",(function(){return Wr})),r.d(t,"createE",(function(){return Ot})),r.d(t,"createUppercaseE",(function(){return jt})),r.d(t,"createFalse",(function(){return Et})),r.d(t,"createI",(function(){return $t})),r.d(t,"createInfinity",(function(){return Nt})),r.d(t,"createLN10",(function(){return At})),r.d(t,"createLN2",(function(){return Dt})),r.d(t,"createLOG10E",(function(){return Lt})),r.d(t,"createLOG2E",(function(){return Mt})),r.d(t,"createNaN",(function(){return St})),r.d(t,"createNull",(function(){return Ct})),r.d(t,"createPhi",(function(){return It})),r.d(t,"createPi",(function(){return Tt})),r.d(t,"createUppercasePi",(function(){return Ft})),r.d(t,"createSQRT1_2",(function(){return Rt})),r.d(t,"createSQRT2",(function(){return Pt})),r.d(t,"createTau",(function(){return kt})),r.d(t,"createTrue",(function(){return _t})),r.d(t,"createVersion",(function(){return Bt})),r.d(t,"createAtomicMass",(function(){return br})),r.d(t,"createAvogadro",(function(){return yr})),r.d(t,"createBohrMagneton",(function(){return Yt})),r.d(t,"createBohrRadius",(function(){return ir})),r.d(t,"createBoltzmann",(function(){return vr})),r.d(t,"createClassicalElectronRadius",(function(){return ar})),r.d(t,"createConductanceQuantum",(function(){return Jt})),r.d(t,"createCoulomb",(function(){return Xt})),r.d(t,"createDeuteronMass",(function(){return cr})),r.d(t,"createEfimovFactor",(function(){return gr})),r.d(t,"createElectricConstant",(function(){return Wt})),r.d(t,"createElectronMass",(function(){return nr})),r.d(t,"createElementaryCharge",(function(){return Kt})),r.d(t,"createFaraday",(function(){return xr})),r.d(t,"createFermiCoupling",(function(){return or})),r.d(t,"createFineStructure",(function(){return sr})),r.d(t,"createFirstRadiation",(function(){return wr})),r.d(t,"createGasConstant",(function(){return Er})),r.d(t,"createGravitationConstant",(function(){return qt})),r.d(t,"createGravity",(function(){return Ar})),r.d(t,"createHartreeEnergy",(function(){return lr})),r.d(t,"createInverseConductanceQuantum",(function(){return Zt})),r.d(t,"createKlitzing",(function(){return rr})),r.d(t,"createLoschmidt",(function(){return _r})),r.d(t,"createMagneticConstant",(function(){return Gt})),r.d(t,"createMagneticFluxQuantum",(function(){return er})),r.d(t,"createMolarMass",(function(){return Ir})),r.d(t,"createMolarMassC12",(function(){return Dr})),r.d(t,"createMolarPlanckConstant",(function(){return Cr})),r.d(t,"createMolarVolume",(function(){return Nr})),r.d(t,"createNeutronMass",(function(){return ur})),r.d(t,"createNuclearMagneton",(function(){return tr})),r.d(t,"createPlanckCharge",(function(){return Pr})),r.d(t,"createPlanckConstant",(function(){return zt})),r.d(t,"createPlanckLength",(function(){return Mr})),r.d(t,"createPlanckMass",(function(){return Lr})),r.d(t,"createPlanckTemperature",(function(){return $r})),r.d(t,"createPlanckTime",(function(){return Rr})),r.d(t,"createProtonMass",(function(){return dr})),r.d(t,"createQuantumOfCirculation",(function(){return pr})),r.d(t,"createReducedPlanckConstant",(function(){return Ht})),r.d(t,"createRydberg",(function(){return hr})),r.d(t,"createSackurTetrode",(function(){return Sr})),r.d(t,"createSecondRadiation",(function(){return Tr})),r.d(t,"createSpeedOfLight",(function(){return Vt})),r.d(t,"createStefanBoltzmann",(function(){return kr})),r.d(t,"createThomsonCrossSection",(function(){return fr})),r.d(t,"createVacuumImpedance",(function(){return Qt})),r.d(t,"createWeakMixingAngle",(function(){return mr})),r.d(t,"createWienDisplacement",(function(){return Or})),r.d(t,"createApplyTransform",(function(){return kg})),r.d(t,"createColumnTransform",(function(){return jg})),r.d(t,"createFilterTransform",(function(){return Eg})),r.d(t,"createForEachTransform",(function(){return Ng})),r.d(t,"createIndexTransform",(function(){return Dg})),r.d(t,"createMapTransform",(function(){return Sg})),r.d(t,"createMaxTransform",(function(){return Lg})),r.d(t,"createMeanTransform",(function(){return Bg})),r.d(t,"createMinTransform",(function(){return Rg})),r.d(t,"createRangeTransform",(function(){return Pg})),r.d(t,"createRowTransform",(function(){return $g})),r.d(t,"createSubsetTransform",(function(){return Ag})),r.d(t,"createConcatTransform",(function(){return Mg})),r.d(t,"createDiffTransform",(function(){return Ig})),r.d(t,"createStdTransform",(function(){return Vg})),r.d(t,"createSumTransform",(function(){return Fg})),r.d(t,"createVarianceTransform",(function(){return Ug})),r.d(t,"create",(function(){return LE})),r.d(t,"factory",(function(){return at}));var i={};r.r(i),r.d(i,"createTyped",(function(){return di})),r.d(i,"createResultSet",(function(){return Hr})),r.d(i,"createBigNumberClass",(function(){return st})),r.d(i,"createComplexClass",(function(){return ct})),r.d(i,"createFractionClass",(function(){return Vr})),r.d(i,"createRangeClass",(function(){return zr})),r.d(i,"createMatrixClass",(function(){return qr})),r.d(i,"createDenseMatrixClass",(function(){return Gr})),r.d(i,"createClone",(function(){return La})),r.d(i,"createIsInteger",(function(){return cn})),r.d(i,"createIsNegative",(function(){return mn})),r.d(i,"createIsNumeric",(function(){return yo})),r.d(i,"createHasNumericValue",(function(){return vs})),r.d(i,"createIsPositive",(function(){return gn})),r.d(i,"createIsZero",(function(){return bn})),r.d(i,"createIsNaN",(function(){return no})),r.d(i,"createTypeOf",(function(){return Qn})),r.d(i,"createEqualScalar",(function(){return Ga})),r.d(i,"createSparseMatrixClass",(function(){return qn})),r.d(i,"createNumber",(function(){return kn})),r.d(i,"createString",(function(){return Gn})),r.d(i,"createBoolean",(function(){return Ma})),r.d(i,"createBignumber",(function(){return ma})),r.d(i,"createComplex",(function(){return ja})),r.d(i,"createFraction",(function(){return bo})),r.d(i,"createMatrix",(function(){return vo})),r.d(i,"createMatrixFromFunction",(function(){return xo})),r.d(i,"createMatrixFromRows",(function(){return pl})),r.d(i,"createMatrixFromColumns",(function(){return Os})),r.d(i,"createSplitUnit",(function(){return zn})),r.d(i,"createUnaryMinus",(function(){return fo})),r.d(i,"createUnaryPlus",(function(){return Vi})),r.d(i,"createAbs",(function(){return qi})),r.d(i,"createApply",(function(){return Yn})),r.d(i,"createAddScalar",(function(){return da})),r.d(i,"createCbrt",(function(){return ns})),r.d(i,"createCeil",(function(){return Bl})),r.d(i,"createCube",(function(){return za})),r.d(i,"createExp",(function(){return Za})),r.d(i,"createExpm1",(function(){return en})),r.d(i,"createFix",(function(){return Wl})),r.d(i,"createFloor",(function(){return sl})),r.d(i,"createGcd",(function(){return ys})),r.d(i,"createLcm",(function(){return Zl})),r.d(i,"createLog10",(function(){return yn})),r.d(i,"createLog2",(function(){return vn})),r.d(i,"createMod",(function(){return ko})),r.d(i,"createMultiplyScalar",(function(){return _n})),r.d(i,"createMultiply",(function(){return hl})),r.d(i,"createNthRoot",(function(){return Do})),r.d(i,"createSign",(function(){return Un})),r.d(i,"createSqrt",(function(){return po})),r.d(i,"createSquare",(function(){return Hn})),r.d(i,"createSubtract",(function(){return Ko})),r.d(i,"createXgcd",(function(){return es})),r.d(i,"createDotMultiply",(function(){return Hl})),r.d(i,"createBitAnd",(function(){return is})),r.d(i,"createBitNot",(function(){return Aa})),r.d(i,"createBitOr",(function(){return Js})),r.d(i,"createBitXor",(function(){return as})),r.d(i,"createArg",(function(){return ca})),r.d(i,"createConj",(function(){return Ba})),r.d(i,"createIm",(function(){return dn})),r.d(i,"createRe",(function(){return jn})),r.d(i,"createNot",(function(){return Tn})),r.d(i,"createOr",(function(){return Po})),r.d(i,"createXor",(function(){return Qs})),r.d(i,"createConcat",(function(){return ls})),r.d(i,"createColumn",(function(){return Ul})),r.d(i,"createCount",(function(){return cs})),r.d(i,"createCross",(function(){return ql})),r.d(i,"createDiag",(function(){return ps})),r.d(i,"createFilter",(function(){return tn})),r.d(i,"createFlatten",(function(){return gs})),r.d(i,"createForEach",(function(){return an})),r.d(i,"createGetMatrixDataType",(function(){return sn})),r.d(i,"createIdentity",(function(){return ll})),r.d(i,"createKron",(function(){return Es})),r.d(i,"createMap",(function(){return xn})),r.d(i,"createDiff",(function(){return al})),r.d(i,"createOnes",(function(){return Ms})),r.d(i,"createRange",(function(){return gl})),r.d(i,"createReshape",(function(){return jo})),r.d(i,"createResize",(function(){return Ps})),r.d(i,"createRotate",(function(){return Qd})),r.d(i,"createRotationMatrix",(function(){return Gd})),r.d(i,"createRow",(function(){return yl})),r.d(i,"createSize",(function(){return Bo})),r.d(i,"createSqueeze",(function(){return qo})),r.d(i,"createSubset",(function(){return zo})),r.d(i,"createTranspose",(function(){return Zo})),r.d(i,"createCtranspose",(function(){return us})),r.d(i,"createZeros",(function(){return ts})),r.d(i,"createErf",(function(){return Wa})),r.d(i,"createMode",(function(){return Ds})),r.d(i,"createProd",(function(){return Fo})),r.d(i,"createFormat",(function(){return on})),r.d(i,"createBin",(function(){return eo})),r.d(i,"createOct",(function(){return On})),r.d(i,"createHex",(function(){return ln})),r.d(i,"createPrint",(function(){return Rn})),r.d(i,"createTo",(function(){return Jo})),r.d(i,"createIsPrime",(function(){return oo})),r.d(i,"createNumeric",(function(){return Ro})),r.d(i,"createDivideScalar",(function(){return hs})),r.d(i,"createPow",(function(){return fl})),r.d(i,"createRound",(function(){return qs})),r.d(i,"createLog",(function(){return cl})),r.d(i,"createLog1p",(function(){return vd})),r.d(i,"createNthRoots",(function(){return As})),r.d(i,"createDotPow",(function(){return cd})),r.d(i,"createDotDivide",(function(){return fs})),r.d(i,"createLsolve",(function(){return ks})),r.d(i,"createUsolve",(function(){return Ws})),r.d(i,"createLsolveAll",(function(){return ul})),r.d(i,"createUsolveAll",(function(){return Fl})),r.d(i,"createLeftShift",(function(){return Ss})),r.d(i,"createRightArithShift",(function(){return bl})),r.d(i,"createRightLogShift",(function(){return $s})),r.d(i,"createAnd",(function(){return rs})),r.d(i,"createCompare",(function(){return os})),r.d(i,"createCompareNatural",(function(){return rl})),r.d(i,"createCompareText",(function(){return ss})),r.d(i,"createEqual",(function(){return ms})),r.d(i,"createEqualText",(function(){return ol})),r.d(i,"createSmaller",(function(){return Vo})),r.d(i,"createSmallerEq",(function(){return Hs})),r.d(i,"createLarger",(function(){return dl})),r.d(i,"createLargerEq",(function(){return Cs})),r.d(i,"createDeepEqual",(function(){return il})),r.d(i,"createUnequal",(function(){return Gs})),r.d(i,"createPartitionSelect",(function(){return Ls})),r.d(i,"createSort",(function(){return nd})),r.d(i,"createMax",(function(){return ed})),r.d(i,"createMin",(function(){return Is})),r.d(i,"createImmutableDenseMatrixClass",(function(){return ws})),r.d(i,"createIndexClass",(function(){return _s})),r.d(i,"createFibonacciHeapClass",(function(){return Gl})),r.d(i,"createSpaClass",(function(){return bd})),r.d(i,"createUnitClass",(function(){return ld})),r.d(i,"createUnitFunction",(function(){return yd})),r.d(i,"createSparse",(function(){return uo})),r.d(i,"createCreateUnit",(function(){return dd})),r.d(i,"createAcos",(function(){return zi})),r.d(i,"createAcosh",(function(){return Xn})),r.d(i,"createAcot",(function(){return sa})),r.d(i,"createAcoth",(function(){return mo})),r.d(i,"createAcsc",(function(){return la})),r.d(i,"createAcsch",(function(){return Kn})),r.d(i,"createAsec",(function(){return Zn})),r.d(i,"createAsech",(function(){return ua})),r.d(i,"createAsin",(function(){return jl})),r.d(i,"createAsinh",(function(){return pa})),r.d(i,"createAtan",(function(){return ha})),r.d(i,"createAtan2",(function(){return Ys})),r.d(i,"createAtanh",(function(){return fa})),r.d(i,"createCos",(function(){return io})),r.d(i,"createCosh",(function(){return Ua})),r.d(i,"createCot",(function(){return go})),r.d(i,"createCoth",(function(){return Va})),r.d(i,"createCsc",(function(){return qa})),r.d(i,"createCsch",(function(){return ao})),r.d(i,"createSec",(function(){return Bn})),r.d(i,"createSech",(function(){return lo})),r.d(i,"createSin",(function(){return Vn})),r.d(i,"createSinh",(function(){return co})),r.d(i,"createTan",(function(){return Wn})),r.d(i,"createTanh",(function(){return ho})),r.d(i,"createSetCartesian",(function(){return vl})),r.d(i,"createSetDifference",(function(){return rd})),r.d(i,"createSetDistinct",(function(){return xl})),r.d(i,"createSetIntersect",(function(){return md})),r.d(i,"createSetIsSubset",(function(){return wl})),r.d(i,"createSetMultiplicity",(function(){return id})),r.d(i,"createSetPowerset",(function(){return _l})),r.d(i,"createSetSize",(function(){return Ed})),r.d(i,"createSetSymDifference",(function(){return ad})),r.d(i,"createSetUnion",(function(){return gd})),r.d(i,"createAdd",(function(){return Xs})),r.d(i,"createHypot",(function(){return xs})),r.d(i,"createNorm",(function(){return zd})),r.d(i,"createDot",(function(){return nl})),r.d(i,"createTrace",(function(){return $l})),r.d(i,"createIndex",(function(){return Jl})),r.d(i,"createNode",(function(){return hm})),r.d(i,"createAccessorNode",(function(){return Bm})),r.d(i,"createArrayNode",(function(){return Im})),r.d(i,"createAssignmentNode",(function(){return Um})),r.d(i,"createBlockNode",(function(){return Dm})),r.d(i,"createConditionalNode",(function(){return Am})),r.d(i,"createConstantNode",(function(){return Mm})),r.d(i,"createFunctionAssignmentNode",(function(){return $m})),r.d(i,"createIndexNode",(function(){return Vm})),r.d(i,"createObjectNode",(function(){return fm})),r.d(i,"createOperatorNode",(function(){return Tm})),r.d(i,"createParenthesisNode",(function(){return km})),r.d(i,"createRangeNode",(function(){return Lm})),r.d(i,"createRelationalNode",(function(){return Om})),r.d(i,"createSymbolNode",(function(){return qm})),r.d(i,"createFunctionNode",(function(){return Gm})),r.d(i,"createParse",(function(){return Qm})),r.d(i,"createCompile",(function(){return Km})),r.d(i,"createEvaluate",(function(){return Jm})),r.d(i,"createParserClass",(function(){return rg})),r.d(i,"createParser",(function(){return ag})),r.d(i,"createLup",(function(){return _d})),r.d(i,"createQr",(function(){return ml})),r.d(i,"createSlu",(function(){return Rl})),r.d(i,"createLusolve",(function(){return Td})),r.d(i,"createHelpClass",(function(){return eg})),r.d(i,"createChainClass",(function(){return um})),r.d(i,"createHelp",(function(){return xg})),r.d(i,"createChain",(function(){return Pm})),r.d(i,"createDet",(function(){return Cd})),r.d(i,"createInv",(function(){return Nd})),r.d(i,"createEigs",(function(){return Fd})),r.d(i,"createExpm",(function(){return Id})),r.d(i,"createSqrtm",(function(){return kd})),r.d(i,"createDivide",(function(){return Od})),r.d(i,"createDistance",(function(){return zl})),r.d(i,"createIntersect",(function(){return pd})),r.d(i,"createSum",(function(){return Pl})),r.d(i,"createMean",(function(){return Ad})),r.d(i,"createMedian",(function(){return Md})),r.d(i,"createMad",(function(){return Vd})),r.d(i,"createVariance",(function(){return Ld})),r.d(i,"createQuantileSeq",(function(){return td})),r.d(i,"createStd",(function(){return Rd})),r.d(i,"createCombinations",(function(){return $a})),r.d(i,"createCombinationsWithRep",(function(){return to})),r.d(i,"createGamma",(function(){return Yl})),r.d(i,"createFactorial",(function(){return ud})),r.d(i,"createKldivergence",(function(){return Dd})),r.d(i,"createMultinomial",(function(){return Bd})),r.d(i,"createPermutations",(function(){return hd})),r.d(i,"createPickRandom",(function(){return Ln})),r.d(i,"createRandom",(function(){return Fn})),r.d(i,"createRandomInt",(function(){return so})),r.d(i,"createStirlingS2",(function(){return xd})),r.d(i,"createBellNumbers",(function(){return wd})),r.d(i,"createCatalan",(function(){return Zs})),r.d(i,"createComposition",(function(){return Vl})),r.d(i,"createSimplify",(function(){return fg})),r.d(i,"createDerivative",(function(){return gg})),r.d(i,"createRationalize",(function(){return wg})),r.d(i,"createReviver",(function(){return Rm})),r.d(i,"createReplacer",(function(){return Wr})),r.d(i,"createE",(function(){return Ot})),r.d(i,"createUppercaseE",(function(){return jt})),r.d(i,"createFalse",(function(){return Et})),r.d(i,"createI",(function(){return $t})),r.d(i,"createInfinity",(function(){return Nt})),r.d(i,"createLN10",(function(){return At})),r.d(i,"createLN2",(function(){return Dt})),r.d(i,"createLOG10E",(function(){return Lt})),r.d(i,"createLOG2E",(function(){return Mt})),r.d(i,"createNaN",(function(){return St})),r.d(i,"createNull",(function(){return Ct})),r.d(i,"createPhi",(function(){return It})),r.d(i,"createPi",(function(){return Tt})),r.d(i,"createUppercasePi",(function(){return Ft})),r.d(i,"createSQRT1_2",(function(){return Rt})),r.d(i,"createSQRT2",(function(){return Pt})),r.d(i,"createTau",(function(){return kt})),r.d(i,"createTrue",(function(){return _t})),r.d(i,"createVersion",(function(){return Bt})),r.d(i,"createAtomicMass",(function(){return br})),r.d(i,"createAvogadro",(function(){return yr})),r.d(i,"createBohrMagneton",(function(){return Yt})),r.d(i,"createBohrRadius",(function(){return ir})),r.d(i,"createBoltzmann",(function(){return vr})),r.d(i,"createClassicalElectronRadius",(function(){return ar})),r.d(i,"createConductanceQuantum",(function(){return Jt})),r.d(i,"createCoulomb",(function(){return Xt})),r.d(i,"createDeuteronMass",(function(){return cr})),r.d(i,"createEfimovFactor",(function(){return gr})),r.d(i,"createElectricConstant",(function(){return Wt})),r.d(i,"createElectronMass",(function(){return nr})),r.d(i,"createElementaryCharge",(function(){return Kt})),r.d(i,"createFaraday",(function(){return xr})),r.d(i,"createFermiCoupling",(function(){return or})),r.d(i,"createFineStructure",(function(){return sr})),r.d(i,"createFirstRadiation",(function(){return wr})),r.d(i,"createGasConstant",(function(){return Er})),r.d(i,"createGravitationConstant",(function(){return qt})),r.d(i,"createGravity",(function(){return Ar})),r.d(i,"createHartreeEnergy",(function(){return lr})),r.d(i,"createInverseConductanceQuantum",(function(){return Zt})),r.d(i,"createKlitzing",(function(){return rr})),r.d(i,"createLoschmidt",(function(){return _r})),r.d(i,"createMagneticConstant",(function(){return Gt})),r.d(i,"createMagneticFluxQuantum",(function(){return er})),r.d(i,"createMolarMass",(function(){return Ir})),r.d(i,"createMolarMassC12",(function(){return Dr})),r.d(i,"createMolarPlanckConstant",(function(){return Cr})),r.d(i,"createMolarVolume",(function(){return Nr})),r.d(i,"createNeutronMass",(function(){return ur})),r.d(i,"createNuclearMagneton",(function(){return tr})),r.d(i,"createPlanckCharge",(function(){return Pr})),r.d(i,"createPlanckConstant",(function(){return zt})),r.d(i,"createPlanckLength",(function(){return Mr})),r.d(i,"createPlanckMass",(function(){return Lr})),r.d(i,"createPlanckTemperature",(function(){return $r})),r.d(i,"createPlanckTime",(function(){return Rr})),r.d(i,"createProtonMass",(function(){return dr})),r.d(i,"createQuantumOfCirculation",(function(){return pr})),r.d(i,"createReducedPlanckConstant",(function(){return Ht})),r.d(i,"createRydberg",(function(){return hr})),r.d(i,"createSackurTetrode",(function(){return Sr})),r.d(i,"createSecondRadiation",(function(){return Tr})),r.d(i,"createSpeedOfLight",(function(){return Vt})),r.d(i,"createStefanBoltzmann",(function(){return kr})),r.d(i,"createThomsonCrossSection",(function(){return fr})),r.d(i,"createVacuumImpedance",(function(){return Qt})),r.d(i,"createWeakMixingAngle",(function(){return mr})),r.d(i,"createWienDisplacement",(function(){return Or})),r.d(i,"createApplyTransform",(function(){return kg})),r.d(i,"createColumnTransform",(function(){return jg})),r.d(i,"createFilterTransform",(function(){return Eg})),r.d(i,"createForEachTransform",(function(){return Ng})),r.d(i,"createIndexTransform",(function(){return Dg})),r.d(i,"createMapTransform",(function(){return Sg})),r.d(i,"createMaxTransform",(function(){return Lg})),r.d(i,"createMeanTransform",(function(){return Bg})),r.d(i,"createMinTransform",(function(){return Rg})),r.d(i,"createRangeTransform",(function(){return Pg})),r.d(i,"createRowTransform",(function(){return $g})),r.d(i,"createSubsetTransform",(function(){return Ag})),r.d(i,"createConcatTransform",(function(){return Mg})),r.d(i,"createDiffTransform",(function(){return Ig})),r.d(i,"createStdTransform",(function(){return Vg})),r.d(i,"createSumTransform",(function(){return Fg})),r.d(i,"createVarianceTransform",(function(){return Ug}));var a=r("4c47"),n=r.n(a),o={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function s(e){return"number"==typeof e}function l(e){return!(!e||"object"!=typeof e||"function"!=typeof e.constructor)&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function d(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function c(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function u(e){return e&&!0===e.constructor.prototype.isUnit||!1}function p(e){return"string"==typeof e}var h=Array.isArray;function f(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function m(e){return Array.isArray(e)||f(e)}function g(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function b(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function y(e){return e&&!0===e.constructor.prototype.isRange||!1}function v(e){return e&&!0===e.constructor.prototype.isIndex||!1}function x(e){return"boolean"==typeof e}function w(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function _(e){return e&&!0===e.constructor.prototype.isHelp||!1}function E(e){return"function"==typeof e}function C(e){return e instanceof Date}function N(e){return e instanceof RegExp}function S(e){return!(!e||"object"!=typeof e||e.constructor!==Object||d(e)||c(e))}function T(e){return null===e}function k(e){return void 0===e}function O(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function I(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function D(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function A(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function M(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function L(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function R(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function P(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function $(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function F(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function j(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function B(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function U(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function V(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function q(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function z(e){return e&&!0===e.constructor.prototype.isChain||!1}function H(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":l(e)?"BigNumber":d(e)?"Complex":c(e)?"Fraction":f(e)?"Matrix":u(e)?"Unit":v(e)?"Index":y(e)?"Range":w(e)?"ResultSet":F(e)?e.type:z(e)?"Chain":_(e)?"Help":"Object":"function"===t?"Function":t}function G(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map((function(e){return G(e)}));if(e instanceof Date)return new Date(e.valueOf());if(l(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return W(e,G)}function W(e,t){var r={};for(var i in e)J(e,i)&&(r[i]=t(e[i]));return r}function Q(e,t){for(var r in t)J(t,r)&&(e[r]=t[r]);return e}function X(e,t){var r,i,a;if(Array.isArray(e)){if(!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(i=0,a=e.length;ie[t])}var ee=["Matrix","Array"],te=["number","BigNumber","Fraction"];function re(e,t){function r(r){if(r){var i=W(e,G);ie(r,"matrix",ee),ie(r,"number",te),function e(t,r){if(Array.isArray(r))throw new TypeError("Arrays are not supported by deepExtend");for(var i in r)if(J(r,i)&&!(i in Object.prototype)&&!(i in Function.prototype))if(r[i]&&r[i].constructor===Object)void 0===t[i]&&(t[i]={}),t[i]&&t[i].constructor===Object?e(t[i],r[i]):t[i]=r[i];else{if(Array.isArray(r[i]))throw new TypeError("Arrays are not supported by deepExtend");t[i]=r[i]}return t}(e,r);var a=W(e,G),n=W(r,G);return t("config",a,i,n),a}return W(e,G)}return r.MATRIX_OPTIONS=ee,r.NUMBER_OPTIONS=te,Object.keys(o).forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),r}function ie(e,t,r){var i,a;void 0!==e[t]&&(i=r,a=e[t],i.indexOf(a))}var ae=function(e){if(e)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(o)};n()(ae,o,{MATRIX_OPTIONS:ee,NUMBER_OPTIONS:te});var ne=r("4128"),oe=r.n(ne);function se(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}var le=Math.sign||function(e){return e>0?1:e<0?-1:0},de=Math.log2||function(e){return Math.log(e)/Math.LN2},ce=Math.log10||function(e){return Math.log(e)/Math.LN10},ue=Math.log1p||function(e){return Math.log(e+1)},pe=Math.cbrt||function(e){if(0===e)return e;var t,r=e<0;return r&&(e=-e),t=isFinite(e)?(e/((t=Math.exp(Math.log(e)/3))*t)+2*t)/3:e,r?-t:t},he=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function fe(e,t,r){var i={2:"0b",8:"0o",16:"0x"}[t],a="";if(r){if(r<1)throw new Error("size must be in greater than 0");if(!se(r))throw new Error("size must be an integer");if(e>2**(r-1)-1||e<-(2**(r-1)))throw new Error("Value must be in range [-2^".concat(r-1,", 2^").concat(r-1,"-1]"));if(!se(e))throw new Error("Value must be an integer");e<0&&(e+=2**r),a="i".concat(r)}var n="";return e<0&&(e=-e,n="-"),"".concat(n).concat(i).concat(e.toString(t)).concat(a)}function me(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var r,i,a="auto";if(t&&(t.notation&&(a=t.notation),s(t)?r=t:s(t.precision)&&(r=t.precision),t.wordSize&&"number"!=typeof(i=t.wordSize)))throw new Error('Option "wordSize" must be a number');switch(a){case"fixed":return be(e,r);case"exponential":return ye(e,r);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var r=ve(ge(e),t),i=r.exponent,a=r.coefficients,n=i%3==0?i:i<0?i-3-i%3:i-i%3;if(s(t))for(;t>a.length||i-n+1>a.length;)a.push(0);else for(var o=Math.abs(i-n)-(a.length-1),l=0;l0;)c++,d--;var u=a.slice(c).join(""),p=s(t)&&u.length||u.match(/[1-9]/)?"."+u:"",h=a.slice(0,c).join("")+p+"e"+(i>=0?"+":"")+n.toString();return r.sign+h}(e,r);case"bin":return fe(e,2,i);case"oct":return fe(e,8,i);case"hex":return fe(e,16,i);case"auto":return function(e,t,r){if(isNaN(e)||!isFinite(e))return String(e);var i=r&&void 0!==r.lowerExp?r.lowerExp:-3,a=r&&void 0!==r.upperExp?r.upperExp:5,n=ge(e),o=t?ve(n,t):n;if(o.exponent=a)return ye(e,t);var s=o.coefficients,l=o.exponent;s.length0?l:0;return d0?"."+a.join(""):"")+"e"+(n>=0?"+":"")+n}function ve(e,t){for(var r={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},i=r.coefficients;t<=0;)i.unshift(0),r.exponent++,t++;if(i.length>t&&i.splice(t,i.length-t)[0]>=5){var a=t-1;for(i[a]++;10===i[a];)i.pop(),0===a&&(i.unshift(0),r.exponent++,a++),i[--a]++}return r}function xe(e){for(var t=[],r=0;r=0?"+":"")+i.toString()}(e,r);case"bin":return Oe(e,2,i);case"oct":return Oe(e,8,i);case"hex":return Oe(e,16,i);case"auto":var n=t&&void 0!==t.lowerExp?t.lowerExp:-3,o=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var s=e.toSignificantDigits(r),l=s.e;return(l>=n&&l'"'+r+'": '+Me(e[r],t)).join(", ")+"}":String(e)}function Le(e){for(var t=String(e),r="",i=0;i/g,">")}function Pe(e,t){if(!p(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+H(e)+", index: 0)");if(!p(t))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+H(t)+", index: 1)");return e===t?0:e>t?1:-1}function $e(e,t,r){if(!(this instanceof $e))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=r,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=(new Error).stack}function Fe(e,t,r){if(!(this instanceof Fe))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=r),void 0!==this.min&&this.index=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=(new Error).stack}function je(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function Be(e,t){if(0===t.length){if(Array.isArray(e))throw new $e(e.length,0)}else!function e(t,r,i){var a,n=t.length;if(n!==r[i])throw new $e(n,r[i]);if(i")}(e,t,0)}function Ue(e,t){if(!s(e)||!se(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new Fe(e,t)}function Ve(e,t,r){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(0===t.length)throw new Error("Resizing to scalar is not supported");return t.forEach((function(e){if(!s(e)||!se(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Me(t)+")")})),function e(t,r,i,a){var n,o,s=t.length,l=r[i],d=Math.min(s,l);if(t.length=l,i=0){if(t%r!=0)throw new Error("Could not replace wildcard, since "+t+" is no multiple of "+-r);i[a]=-t/r}return i}function He(e){return e.reduce((e,t)=>e*t,1)}function Ge(e,t){for(var r=t||je(e);Array.isArray(e)&&1===e.length;)e=e[0],r.shift();for(var i=r.length;1===r[i-1];)i--;return it.test(e))}function Ze(e,t){return Array.prototype.join.call(e,t)}function et(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(0===e.length)return e;var t=[],r=0;t[0]={value:e[0],identifier:0};for(var i=1;i!function(e){return e&&"?"===e[0]}(e)).every(e=>void 0!==r[e])){var i=t.filter(e=>void 0===r[e]);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(i.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,i),r(a)}return a.isFactory=!0,a.fn=e,a.dependencies=t.slice().sort(),i&&(a.meta=i),a}function nt(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function ot(e){return e&&"?"===e[0]?e.slice(1):e}$e.prototype=new RangeError,$e.prototype.constructor=RangeError,$e.prototype.name="DimensionError",$e.prototype.isDimensionError=!0,Fe.prototype=new RangeError,Fe.prototype.constructor=RangeError,Fe.prototype.name="IndexError",Fe.prototype.isIndexError=!0;var st=at("BigNumber",["?on","config"],e=>{var{on:t,config:r}=e,i=oe.a.clone({precision:r.precision,modulo:oe.a.EUCLID});return i.prototype=Object.create(i.prototype),i.prototype.type="BigNumber",i.prototype.isBigNumber=!0,i.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},i.fromJSON=function(e){return new i(e.value)},t&&t("config",(function(e,t){e.precision!==t.precision&&i.config({precision:e.precision})})),i},{isClass:!0}),lt=r("5f7b"),dt=r.n(lt),ct=at("Complex",[],()=>(dt.a.prototype.type="Complex",dt.a.prototype.isComplex=!0,dt.a.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},dt.a.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},dt.a.prototype.format=function(e){var t=this.im,r=this.re,i=me(this.re,e),a=me(this.im,e),n=s(e)?e:e?e.precision:null;if(null!==n){var o=Math.pow(10,-n);Math.abs(r/t)t.re?1:e.ret.im?1:e.im1&&void 0!==arguments[1]?arguments[1]:{};return r=null==r?Number.POSITIVE_INFINITY:r,t=null==t?JSON.stringify:t,function i(){"object"!=typeof i.cache&&(i.cache={values:new Map,lru:ut(r||Number.POSITIVE_INFINITY)});for(var a=[],n=0;n!0),Et=at("false",[],()=>!1),Ct=at("null",[],()=>null),Nt=Ut("Infinity",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1/0):1/0}),St=Ut("NaN",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(NaN):NaN}),Tt=Ut("pi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?gt(r):vt}),kt=Ut("tau",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?bt(r):xt}),Ot=Ut("e",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?ft(r):wt}),It=Ut("phi",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?mt(r):1.618033988749895}),Dt=Ut("LN2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(2).ln():Math.LN2}),At=Ut("LN10",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(10).ln():Math.LN10}),Mt=Ut("LOG2E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1).div(new r(2).ln()):Math.LOG2E}),Lt=Ut("LOG10E",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(1).div(new r(10).ln()):Math.LOG10E}),Rt=Ut("SQRT1_2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r("0.5").sqrt():Math.SQRT1_2}),Pt=Ut("SQRT2",["config","?BigNumber"],e=>{var{config:t,BigNumber:r}=e;return"BigNumber"===t.number?new r(2).sqrt():Math.SQRT2}),$t=Ut("i",["Complex"],e=>{var{Complex:t}=e;return t.I}),Ft=at("PI",["pi"],e=>{var{pi:t}=e;return t}),jt=at("E",["e"],e=>{var{e:t}=e;return t}),Bt=at("version",[],()=>"10.0.0");function Ut(e,t,r){return at(e,t,r,{recreateOnConfigChange:!0})}var Vt=Fr("speedOfLight","299792458","m s^-1"),qt=Fr("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),zt=Fr("planckConstant","6.62607015e-34","J s"),Ht=Fr("reducedPlanckConstant","1.0545718176461565e-34","J s"),Gt=Fr("magneticConstant","1.25663706212e-6","N A^-2"),Wt=Fr("electricConstant","8.8541878128e-12","F m^-1"),Qt=Fr("vacuumImpedance","376.730313667","ohm"),Xt=Fr("coulomb","8.987551792261171e9","N m^2 C^-2"),Kt=Fr("elementaryCharge","1.602176634e-19","C"),Yt=Fr("bohrMagneton","9.2740100783e-24","J T^-1"),Jt=Fr("conductanceQuantum","7.748091729863649e-5","S"),Zt=Fr("inverseConductanceQuantum","12906.403729652257","ohm"),er=Fr("magneticFluxQuantum","2.0678338484619295e-15","Wb"),tr=Fr("nuclearMagneton","5.0507837461e-27","J T^-1"),rr=Fr("klitzing","25812.807459304513","ohm"),ir=Fr("bohrRadius","5.29177210903e-11","m"),ar=Fr("classicalElectronRadius","2.8179403262e-15","m"),nr=Fr("electronMass","9.1093837015e-31","kg"),or=Fr("fermiCoupling","1.1663787e-5","GeV^-2"),sr=jr("fineStructure",.0072973525693),lr=Fr("hartreeEnergy","4.3597447222071e-18","J"),dr=Fr("protonMass","1.67262192369e-27","kg"),cr=Fr("deuteronMass","3.3435830926e-27","kg"),ur=Fr("neutronMass","1.6749271613e-27","kg"),pr=Fr("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),hr=Fr("rydberg","10973731.568160","m^-1"),fr=Fr("thomsonCrossSection","6.6524587321e-29","m^2"),mr=jr("weakMixingAngle",.2229),gr=jr("efimovFactor",22.7),br=Fr("atomicMass","1.66053906660e-27","kg"),yr=Fr("avogadro","6.02214076e23","mol^-1"),vr=Fr("boltzmann","1.380649e-23","J K^-1"),xr=Fr("faraday","96485.33212331001","C mol^-1"),wr=Fr("firstRadiation","3.7417718521927573e-16","W m^2"),_r=Fr("loschmidt","2.686780111798444e25","m^-3"),Er=Fr("gasConstant","8.31446261815324","J K^-1 mol^-1"),Cr=Fr("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),Nr=Fr("molarVolume","0.022413969545014137","m^3 mol^-1"),Sr=jr("sackurTetrode",-1.16487052358),Tr=Fr("secondRadiation","0.014387768775039337","m K"),kr=Fr("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),Or=Fr("wienDisplacement","2.897771955e-3","m K"),Ir=Fr("molarMass","0.99999999965e-3","kg mol^-1"),Dr=Fr("molarMassC12","11.9999999958e-3","kg mol^-1"),Ar=Fr("gravity","9.80665","m s^-2"),Mr=Fr("planckLength","1.616255e-35","m"),Lr=Fr("planckMass","2.176435e-8","kg"),Rr=Fr("planckTime","5.391245e-44","s"),Pr=Fr("planckCharge","1.87554603778e-18","C"),$r=Fr("planckTemperature","1.416785e+32","K");function Fr(e,t,r){return at(e,["config","Unit","BigNumber"],e=>{var{config:i,Unit:a,BigNumber:n}=e,o=new a("BigNumber"===i.number?new n(t):parseFloat(t),r);return o.fixPrefix=!0,o})}function jr(e,t){return at(e,["config","BigNumber"],e=>{var{config:r,BigNumber:i}=e;return"BigNumber"===r.number?new i(t):t})}var Br=r("4af7"),Ur=r.n(Br),Vr=at("Fraction",[],()=>(Ur.a.prototype.type="Fraction",Ur.a.prototype.isFraction=!0,Ur.a.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},Ur.a.fromJSON=function(e){return new Ur.a(e)},Ur.a),{isClass:!0}),qr=at("Matrix",[],()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,r){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,r){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0}),zr=at("Range",[],()=>{function e(t,r,i){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var a=null!=t,n=null!=r,o=null!=i;if(a)if(l(t))t=t.toNumber();else if("number"!=typeof t)throw new TypeError("Parameter start must be a number");if(n)if(l(r))r=r.toNumber();else if("number"!=typeof r)throw new TypeError("Parameter end must be a number");if(o)if(l(i))i=i.toNumber();else if("number"!=typeof i)throw new TypeError("Parameter step must be a number");this.start=a?parseFloat(t):0,this.end=n?parseFloat(r):0,this.step=o?parseFloat(i):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if("string"!=typeof t)return null;var r=t.split(":").map((function(e){return parseFloat(e)}));if(r.some((function(e){return isNaN(e)})))return null;switch(r.length){case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[2],r[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var e=0,t=this.start,r=this.step,i=this.end-t;return le(r)===le(i)?e=Math.ceil(i/r):0===i&&(e=0),isNaN(e)&&(e=0),[e]},e.prototype.min=function(){var e=this.size()[0];return e>0?this.step>0?this.start:this.start+(e-1)*this.step:void 0},e.prototype.max=function(){var e=this.size()[0];return e>0?this.step>0?this.start+(e-1)*this.step:this.start:void 0},e.prototype.forEach=function(e){var t=this.start,r=this.step,i=this.end,a=0;if(r>0)for(;ti;)e(t,[a],this),t+=r,a++},e.prototype.map=function(e){var t=[];return this.forEach((function(r,i,a){t[i[0]]=e(r,i,a)})),t},e.prototype.toArray=function(){var e=[];return this.forEach((function(t,r){e[r[0]]=t})),e},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(e){var t=me(this.start,e);return 1!==this.step&&(t+=":"+me(this.step,e)),t+":"+me(this.end,e)},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e},{isClass:!0}),Hr=at("ResultSet",[],()=>{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0}),Gr=at("DenseMatrix",["Matrix"],e=>{var{Matrix:t}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!p(t))throw new Error("Invalid datatype: "+t);if(f(e))"DenseMatrix"===e.type?(this._data=G(e._data),this._size=G(e._size),this._datatype=t||e._datatype):(this._data=e.toArray(),this._size=e.size(),this._datatype=t||e._datatype);else if(e&&h(e.data)&&h(e.size))this._data=e.data,this._size=e.size,Be(this._data,this._size),this._datatype=t||e.datatype;else if(h(e))this._data=function e(t){for(var r=0,i=t.length;r");o(e,t.max().map((function(e){return e+1})),i);var c=n.length;!function e(t,r,i,a,n){var o=n===a-1,s=r.dimension(n);o?s.forEach((function(e,r){Ue(e),t[e]=i[r[0]]})):s.forEach((function(o,s){Ue(o),e(t[o],r,i[s[0]],a,n+1)}))}(e._data,t,r,c,0)}return e}function n(e,t,r){if(0===t.length){for(var i=e._data;h(i);)i=i[0];return i}return e._size=t.slice(0),e._data=Ve(e._data,e._size,r),e}function o(e,t,r){for(var i=e._size.slice(0),a=!1;i.lengthi[o]&&(i[o]=t[o],a=!0);a&&n(e,i,r)}return r.prototype=new t,r.prototype.createDenseMatrix=function(e,t){return new r(e,t)},r.prototype.type="DenseMatrix",r.prototype.isDenseMatrix=!0,r.prototype.getDataType=function(){return rt(this._data,H)},r.prototype.storage=function(){return"dense"},r.prototype.datatype=function(){return this._datatype},r.prototype.create=function(e,t){return new r(e,t)},r.prototype.subset=function(e,t,r){switch(arguments.length){case 1:return i(this,e);case 2:case 3:return a(this,e,t,r);default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.get=function(e){if(!h(e))throw new TypeError("Array expected");if(e.length!==this._size.length)throw new $e(e.length,this._size.length);for(var t=0;tArray.isArray(e)&&1===e.length?e[0]:e);return n(r?this.clone():this,i,t)},r.prototype.reshape=function(e,t){var r=t?this.clone():this;r._data=qe(r._data,e);var i=r._size.reduce((e,t)=>e*t);return r._size=ze(e,i),r},r.prototype.clone=function(){return new r({data:G(this._data),size:G(this._size),datatype:this._datatype})},r.prototype.size=function(){return this._size.slice(0)},r.prototype.map=function(e){var t=this,i=function r(i,a){return h(i)?i.map((function(e,t){return r(e,a.concat(t))})):e(i,a,t)}(this._data,[]);return new r(i,void 0!==this._datatype?rt(i,H):void 0)},r.prototype.forEach=function(e){var t=this;!function r(i,a){h(i)?i.forEach((function(e,t){r(e,a.concat(t))})):e(i,a,t)}(this._data,[])},r.prototype[Symbol.iterator]=function*(){yield*function*e(t,r){if(h(t))for(var i=0;i[e[i]]);t.push(new r(n,e._datatype))},o=0;o0?e:0,i=e<0?-e:0,a=this._size[0],n=this._size[1],o=Math.min(a-i,n-t),d=[],c=0;c0?i:0,d=i<0?-i:0,c=e[0],u=e[1],p=Math.min(c-d,u-o);if(h(t)){if(t.length!==p)throw new Error("Invalid value array length");n=function(e){return t[e]}}else if(f(t)){var m=t.size();if(1!==m.length||m[0]!==p)throw new Error("Invalid matrix length");n=function(e){return t.get([e])}}else n=function(){return t};a||(a=l(n(0))?n(0).mul(0):0);var g=[];if(e.length>0){g=Ve(g,e,a);for(var b=0;bfunction(e,t){return"number"!=typeof t||isFinite(t)&&!isNaN(t)?t:{mathjs:"number",value:String(t)}}),Qr=r("7634"),Xr=r.n(Qr);function Kr(e,t){if(ei(e)&&Jr(e,t))return e[t];if("function"==typeof e[t]&&Zr(e,t))throw new Error('Cannot access method "'+t+'" as a property');throw new Error('No access to property "'+t+'"')}function Yr(e,t,r){if(ei(e)&&Jr(e,t))return e[t]=r,r;throw new Error('No access to property "'+t+'"')}function Jr(e,t){return!(!e||"object"!=typeof e)&&(!!J(ti,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function Zr(e,t){return null!=e&&"function"==typeof e[t]&&!(J(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e))&&(!!J(ri,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function ei(e){return"object"==typeof e&&e&&e.constructor===Object}var ti={length:!0,name:!0},ri={toString:!0,valueOf:!0,toLocaleString:!0};class ii{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){return Kr(this.wrappedObject,e)}set(e,t){return Yr(this.wrappedObject,e,t),this}has(e){return t=this.wrappedObject,e in t;var t}}function ai(){return new Map}function ni(e){if(!e)return ai();if(oi(e))return e;if(S(e))return new ii(e);throw new Error("createMap can create maps from objects or Maps")}function oi(e){return!!e&&(e instanceof Map||e instanceof ii||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}function si(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return r||ui(e),new r(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return r||ui(e),new r(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return r||ui(e),new r(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){a||pi(e);var t=new a(e);if(t.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw new Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||ci(e);try{return new t(e)}catch(t){throw new Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){a||pi(e);try{return new a(e)}catch(t){throw new Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){r||ui(e);try{return new r(e)}catch(t){throw new Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||ci(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return a||pi(e),new a(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return i||function(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new i(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],n}));function ci(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function ui(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function pi(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}function hi(e){for(var t=0;t=i.length)throw new Fe(t,i.length);return f(e)?e.create(bi(e.valueOf(),t,r)):bi(e,t,r)}function bi(e,t,r){var i,a,n,o;if(t<=0){if(Array.isArray(e[0])){for(o=function(e){var t,r,i=e.length,a=e[0].length,n=[];for(r=0;r0)return e-t*Math.floor(e/t);if(0===t)return e;throw new Error("Cannot calculate mod for a negative divisor")}function Pi(e,t){var r=t<0;if(r&&(t=-t),0===t)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!=1)throw new Error("Root must be odd when a is negative.");if(0===e)return r?1/0:0;if(!isFinite(e))return r?0:e;var i=Math.pow(Math.abs(e),1/t);return i=e<0?-i:i,r?1/i:i}function $i(e){return le(e)}function Fi(e){return e*e}function ji(e,t){var r,i,a,n=0,o=1,s=1,l=0;if(!se(e)||!se(t))throw new Error("Parameters in function xgcd must be integer numbers");for(;t;)a=e-(i=Math.floor(e/t))*t,r=n,n=o-i*n,o=r,r=s,s=l-i*s,l=r,e=t,t=a;return e<0?[-e,-o,-l]:[e,e?o:0,l]}function Bi(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}function Ui(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(be(e,t))}xi.signature="number",wi.signature=vi,_i.signature=vi,Ei.signature="number",Ci.signature="number",Ni.signature="number",Si.signature="number",Ti.signature="number",ki.signature="number",Oi.signature="number",Ii.signature=vi,Di.signature=vi,Ai.signature="number",Mi.signature="number",Li.signature="number",Ri.signature=vi,Pi.signature=vi,$i.signature="number",Fi.signature="number",ji.signature=vi,Bi.signature=vi,Ui.signature=vi;var Vi=at("unaryPlus",["typed","config","BigNumber"],e=>{var{typed:t,config:r,BigNumber:i}=e;return t("unaryPlus",{number:Ci,Complex:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Unit:function(e){return e.clone()},"Array | Matrix":function(e){return mi(e,this,!0)},"boolean | string":function(e){return"BigNumber"===r.number?new i(+e):+e}})}),qi=at("abs",["typed"],e=>{var{typed:t}=e;return t("abs",{number:xi,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},Fraction:function(e){return e.abs()},"Array | Matrix":function(e){return mi(e,this,!0)},Unit:function(e){return e.abs()}})}),zi=at("acos",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("acos",{number:function(e){return e>=-1&&e<=1||r.predictable?Math.acos(e):new i(e,0).acos()},Complex:function(e){return e.acos()},BigNumber:function(e){return e.acos()},"Array | Matrix":function(e){return mi(e,this)}})});function Hi(e){return Ee(e)}function Gi(e){return Math.atan(1/e)}function Wi(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}function Qi(e){return Math.asin(1/e)}function Xi(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}function Ki(e){return Math.acos(1/e)}function Yi(e){var t=1/e,r=Math.sqrt(t*t-1);return Math.log(r+t)}function Ji(e){return Ce(e)}function Zi(e){return Ne(e)}function ea(e){return 1/Math.tan(e)}function ta(e){var t=Math.exp(2*e);return(t+1)/(t-1)}function ra(e){return 1/Math.sin(e)}function ia(e){return 0===e?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*le(e)}function aa(e){return 1/Math.cos(e)}function na(e){return 2/(Math.exp(e)+Math.exp(-e))}function oa(e){return Te(e)}Hi.signature="number",Gi.signature="number",Wi.signature="number",Qi.signature="number",Xi.signature="number",Ki.signature="number",Yi.signature="number",Ji.signature="number",Zi.signature="number",ea.signature="number",ta.signature="number",ra.signature="number",ia.signature="number",aa.signature="number",na.signature="number",oa.signature="number";var sa=at("acot",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("acot",{number:Gi,Complex:function(e){return e.acot()},BigNumber:function(e){return new r(1).div(e).atan()},"Array | Matrix":function(e){return mi(e,this)}})}),la=at("acsc",["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:i,BigNumber:a}=e;return t("acsc",{number:function(e){return e<=-1||e>=1||r.predictable?Qi(e):new i(e,0).acsc()},Complex:function(e){return e.acsc()},BigNumber:function(e){return new a(1).div(e).asin()},"Array | Matrix":function(e){return mi(e,this)}})}),da=at("addScalar",["typed"],e=>{var{typed:t}=e;return t("addScalar",{"number, number":wi,"Complex, Complex":function(e,t){return e.add(t)},"BigNumber, BigNumber":function(e,t){return e.plus(t)},"Fraction, Fraction":function(e,t){return e.add(t)},"Unit, Unit":function(e,t){if(null===e.value||void 0===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value||void 0===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var r=e.clone();return r.value=this(r.value,t.value),r.fixPrefix=!1,r}})}),ca=at("arg",["typed"],e=>{var{typed:t}=e;return t("arg",{number:function(e){return Math.atan2(0,e)},BigNumber:function(e){return e.constructor.atan2(0,e)},Complex:function(e){return e.arg()},"Array | Matrix":function(e){return mi(e,this)}})}),ua=at("asech",["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:i,BigNumber:a}=e;return t("asech",{number:function(e){if(e<=1&&e>=-1||r.predictable){var t=1/e;if(t>0||r.predictable)return Yi(e);var a=Math.sqrt(t*t-1);return new i(Math.log(a-t),Math.PI)}return new i(e,0).asech()},Complex:function(e){return e.asech()},BigNumber:function(e){return new a(1).div(e).acosh()},"Array | Matrix":function(e){return mi(e,this)}})}),pa=at("asinh",["typed"],e=>{var{typed:t}=e;return t("asinh",{number:Ji,Complex:function(e){return e.asinh()},BigNumber:function(e){return e.asinh()},"Array | Matrix":function(e){return mi(e,this,!0)}})}),ha=at("atan",["typed"],e=>{var{typed:t}=e;return t("atan",{number:function(e){return Math.atan(e)},Complex:function(e){return e.atan()},BigNumber:function(e){return e.atan()},"Array | Matrix":function(e){return mi(e,this,!0)}})}),fa=at("atanh",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("atanh",{number:function(e){return e<=1&&e>=-1||r.predictable?Zi(e):new i(e,0).atanh()},Complex:function(e){return e.atanh()},BigNumber:function(e){return e.atanh()},"Array | Matrix":function(e){return mi(e,this,!0)}})}),ma=at("bignumber",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("bignumber",{"":function(){return new r(0)},number:function(e){return new r(e+"")},string:function(e){var t=e.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(t){var i=t[2],a=r(t[1]),n=new r(2).pow(Number(i));if(a.gt(n.sub(1)))throw new SyntaxError('String "'.concat(e,'" is out of range'));var o=new r(2).pow(Number(i)-1);return a.gte(o)?a.sub(n):a}return new r(e)},BigNumber:function(e){return e},Fraction:function(e){return new r(e.n).div(e.d).times(e.s)},null:function(e){return new r(0)},"Array | Matrix":function(e){return mi(e,this)}})});function ga(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new r(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new r(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new r(0):e}return va(e,t,(function(e,t){return e&t}))}function ba(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,r=t.precision;t.config({precision:1e9});var i=e.plus(new t(1));return i.s=-i.s||null,t.config({precision:r}),i}function ya(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);var i=new r(-1);return e.isZero()||t.eq(i)||e.eq(t)?t:t.isZero()||e.eq(i)?e:e.isFinite()&&t.isFinite()?va(e,t,(function(e,t){return e|t})):!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?i:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e}function va(e,t,r){var i,a,n,o,s,l=e.constructor,d=+(e.s<0),c=+(t.s<0);if(d){i=xa(ba(e));for(var u=0;u0;)r(n[--h],o[--f])===m&&(g=g.plus(b)),b=b.times(y);for(;f>0;)r(s,o[--f])===m&&(g=g.plus(b)),b=b.times(y);return l.config({precision:v}),0===m&&(g.s=-g.s),g}function xa(e){for(var t=e.d,r=t[0]+"",i=1;i0)if(++s>d)for(s-=d;s--;)l+="0";else s1&&(null!==c[h+1]&&void 0!==c[h+1]||(c[h+1]=0),c[h+1]+=c[h]>>1,c[h]&=1)}return c.reverse()}function wa(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var r=e.constructor;if(e.isNaN()||t.isNaN())return new r(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new r(0);var i=new r(-1);return e.eq(i)?ba(t):t.eq(i)?ba(e):e.isFinite()&&t.isFinite()?va(e,t,(function(e,t){return e^t})):e.isFinite()||t.isFinite()?new r(e.isNegative()===t.isNegative()?1/0:-1/0):i}function _a(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:e.isFinite()||t.isFinite()?t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new r(2).pow(t)):new r(NaN)}function Ea(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var r=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new r(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new r(2).pow(t)).floor():e.isNegative()?new r(-1):e.isFinite()?new r(0):new r(NaN)}var Ca="number, number";function Na(e,t){if(!se(e)||!se(t))throw new Error("Integers expected in function bitAnd");return e&t}function Sa(e){if(!se(e))throw new Error("Integer expected in function bitNot");return~e}function Ta(e,t){if(!se(e)||!se(t))throw new Error("Integers expected in function bitOr");return e|t}function ka(e,t){if(!se(e)||!se(t))throw new Error("Integers expected in function bitXor");return e^t}function Oa(e,t){if(!se(e)||!se(t))throw new Error("Integers expected in function leftShift");return e<>t}function Da(e,t){if(!se(e)||!se(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}Na.signature=Ca,Sa.signature="number",Ta.signature=Ca,ka.signature=Ca,Oa.signature=Ca,Ia.signature=Ca,Da.signature=Ca;var Aa=at("bitNot",["typed"],e=>{var{typed:t}=e;return t("bitNot",{number:Sa,BigNumber:ba,"Array | Matrix":function(e){return mi(e,this)}})}),Ma=at("boolean",["typed"],e=>{var{typed:t}=e;return t("boolean",{"":function(){return!1},boolean:function(e){return e},number:function(e){return!!e},null:function(e){return!1},BigNumber:function(e){return!e.isZero()},string:function(e){var t=e.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;var r=Number(e);if(""!==e&&!isNaN(r))return!!r;throw new Error('Cannot convert "'+e+'" to a boolean')},"Array | Matrix":function(e){return mi(e,this)}})}),La=at("clone",["typed"],e=>{var{typed:t}=e;return t("clone",{any:G})});function Ra(e,t){if(t>1;return Ra(e,r)*Ra(r+1,t)}function Pa(e,t){if(!se(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!se(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(t>e)throw new TypeError("k must be less than or equal to n");var r=e-t;return t{var{typed:t}=e;return t("combinations",{"number, number":Pa,"BigNumber, BigNumber":function(e,t){var r,i,a=e.constructor,n=e.minus(t),o=new a(1);if(!Fa(e)||!Fa(t))throw new TypeError("Positive integer value expected in function combinations");if(t.gt(e))throw new TypeError("k must be less than n in function combinations");if(r=o,t.lt(n))for(i=o;i.lte(n);i=i.plus(o))r=r.times(t.plus(i)).dividedBy(i);else for(i=o;i.lte(t);i=i.plus(o))r=r.times(n.plus(i)).dividedBy(i);return r}})});function Fa(e){return e.isInteger()&&e.gte(0)}var ja=at("complex",["typed","Complex"],e=>{var{typed:t,Complex:r}=e;return t("complex",{"":function(){return r.ZERO},number:function(e){return new r(e,0)},"number, number":function(e,t){return new r(e,t)},"BigNumber, BigNumber":function(e,t){return new r(e.toNumber(),t.toNumber())},Fraction:function(e){return new r(e.valueOf(),0)},Complex:function(e){return e.clone()},string:function(e){return r(e)},null:function(e){return r(0)},Object:function(e){if("re"in e&&"im"in e)return new r(e.re,e.im);if("r"in e&&"phi"in e||"abs"in e&&"arg"in e)return new r(e);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":function(e){return mi(e,this)}})}),Ba=at("conj",["typed"],e=>{var{typed:t}=e;return t("conj",{number:function(e){return e},BigNumber:function(e){return e},Complex:function(e){return e.conjugate()},"Array | Matrix":function(e){return mi(e,this)}})}),Ua=at("cosh",["typed"],e=>{var{typed:t}=e;return t("cosh",{number:Se,Complex:function(e){return e.cosh()},BigNumber:function(e){return e.cosh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cosh is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),Va=at("coth",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("coth",{number:ta,Complex:function(e){return e.coth()},BigNumber:function(e){return new r(1).div(e.tanh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function coth is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),qa=at("csc",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("csc",{number:ra,Complex:function(e){return e.csc()},BigNumber:function(e){return new r(1).div(e.sin())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csc is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),za=at("cube",["typed"],e=>{var{typed:t}=e;return t("cube",{number:Ti,Complex:function(e){return e.mul(e).mul(e)},BigNumber:function(e){return e.times(e).times(e)},Fraction:function(e){return e.pow(3)},"Array | Matrix":function(e){return mi(e,this,!0)},Unit:function(e){return e.pow(3)}})});function Ha(e,t,r){if(null==r)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var i=e.minus(t).abs();if(i.isZero())return!0;var a=e.constructor.max(e.abs(),t.abs());return i.lte(a.times(r))}return!1}var Ga=at("equalScalar",["typed","config"],e=>{var{typed:t,config:r}=e;return t("equalScalar",{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return _e(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||Ha(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){return function(e,t,r){return _e(e.re,t.re,r)&&_e(e.im,t.im,r)}(e,t,r.epsilon)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)}})}),Wa=(at("equalScalar",["typed","config"],e=>{var{typed:t,config:r}=e;return t("equalScalar",{"number, number":function(e,t){return _e(e,t,r.epsilon)}})}),at("erf",["typed"],e=>{var{typed:t}=e;return t("name",{number:function(e){var t=Math.abs(e);return t>=Ja?le(e):t<=Qa?le(e)*function(e){var t,r=e*e,i=Ka[0][4]*r,a=r;for(t=0;t<3;t+=1)i=(i+Ka[0][t])*r,a=(a+Ya[0][t])*r;return e*(i+Ka[0][3])/(a+Ya[0][3])}(t):t<=4?le(e)*(1-function(e){var t,r=Ka[1][8]*e,i=e;for(t=0;t<7;t+=1)r=(r+Ka[1][t])*e,i=(i+Ya[1][t])*e;var a=(r+Ka[1][7])/(i+Ya[1][7]),n=parseInt(16*e)/16,o=(e-n)*(e+n);return Math.exp(-n*n)*Math.exp(-o)*a}(t)):le(e)*(1-function(e){var t,r=1/(e*e),i=Ka[2][5]*r,a=r;for(t=0;t<4;t+=1)i=(i+Ka[2][t])*r,a=(a+Ya[2][t])*r;var n=r*(i+Ka[2][4])/(a+Ya[2][4]);n=(Xa-n)/e,r=parseInt(16*e)/16;var o=(e-r)*(e+r);return Math.exp(-r*r)*Math.exp(-o)*n}(t))},"Array | Matrix":function(e){return mi(e,this)}})})),Qa=.46875,Xa=.5641895835477563,Ka=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,2.1531153547440383e-8],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Ya=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],Ja=Math.pow(2,53),Za=at("exp",["typed"],e=>{var{typed:t}=e;return t("exp",{number:ki,Complex:function(e){return e.exp()},BigNumber:function(e){return e.exp()},"Array | Matrix":function(e){return mi(e,this)}})}),en=at("expm1",["typed","Complex"],e=>{var{typed:t,Complex:r}=e;return t("expm1",{number:Oi,Complex:function(e){var t=Math.exp(e.re);return new r(t*Math.cos(e.im)-1,t*Math.sin(e.im))},BigNumber:function(e){return e.exp().minus(1)},"Array | Matrix":function(e){return mi(e,this)}})}),tn=at("filter",["typed"],e=>{var{typed:t}=e;return t("filter",{"Array, function":rn,"Matrix, function":function(e,t){return e.create(rn(e.toArray(),t))},"Array, RegExp":Je,"Matrix, RegExp":function(e,t){return e.create(Je(e.toArray(),t))}})});function rn(e,t){var r=ht(t);return Ye(e,(function(e,i,a){return 1===r?t(e):2===r?t(e,[i]):t(e,[i],a)}))}var an=at("forEach",["typed"],e=>{var{typed:t}=e;return t("forEach",{"Array, function":nn,"Matrix, function":function(e,t){return e.forEach(t)}})});function nn(e,t){var r=ht(t);!function i(a,n){Array.isArray(a)?Ke(a,(function(e,t){i(e,n.concat(t))})):1===r?t(a):2===r?t(a,n):t(a,n,e)}(e,[])}var on=at("format",["typed"],e=>{var{typed:t}=e;return t("format",{any:Me,"any, Object | function | number":Me})}),sn=at("getMatrixDataType",["typed"],e=>{var{typed:t}=e;return t("getMatrixDataType",{Array:function(e){return rt(e,H)},Matrix:function(e){return e.getDataType()}})}),ln=at("hex",["typed","format"],e=>{var{typed:t,format:r}=e;return t("hex",{"number | BigNumber":function(e){return r(e,{notation:"hex"})},"number | BigNumber, number":function(e,t){return r(e,{notation:"hex",wordSize:t})}})}),dn=at("im",["typed"],e=>{var{typed:t}=e;return t("im",{number:function(e){return 0},BigNumber:function(e){return e.mul(0)},Fraction:function(e){return e.mul(0)},Complex:function(e){return e.im},"Array | Matrix":function(e){return mi(e,this)}})}),cn=at("isInteger",["typed"],e=>{var{typed:t}=e;return t("isInteger",{number:se,BigNumber:function(e){return e.isInt()},Fraction:function(e){return 1===e.d&&isFinite(e.n)},"Array | Matrix":function(e){return mi(e,this)}})});function un(e){return e<0}function pn(e){return e>0}function hn(e){return 0===e}function fn(e){return Number.isNaN(e)}un.signature="number",pn.signature="number",hn.signature="number",fn.signature="number";var mn=at("isNegative",["typed"],e=>{var{typed:t}=e;return t("isNegative",{number:un,BigNumber:function(e){return e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s<0},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),gn=at("isPositive",["typed"],e=>{var{typed:t}=e;return t("isPositive",{number:pn,BigNumber:function(e){return!e.isNeg()&&!e.isZero()&&!e.isNaN()},Fraction:function(e){return e.s>0&&e.n>0},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),bn=at("isZero",["typed"],e=>{var{typed:t}=e;return t("isZero",{number:hn,BigNumber:function(e){return e.isZero()},Complex:function(e){return 0===e.re&&0===e.im},Fraction:function(e){return 1===e.d&&0===e.n},Unit:function(e){return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),yn=at("log10",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("log10",{number:function(e){return e>=0||r.predictable?Mi(e):new i(e,0).log().div(Math.LN10)},Complex:function(e){return new i(e).log().div(Math.LN10)},BigNumber:function(e){return!e.isNegative()||r.predictable?e.log():new i(e.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":function(e){return mi(e,this)}})}),vn=at("log2",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("log2",{number:function(e){return e>=0||r.predictable?Li(e):a(new i(e,0))},Complex:a,BigNumber:function(e){return!e.isNegative()||r.predictable?e.log(2):a(new i(e.toNumber(),0))},"Array | Matrix":function(e){return mi(e,this)}});function a(e){var t=Math.sqrt(e.re*e.re+e.im*e.im);return new i(Math.log2?Math.log2(t):Math.log(t)/Math.LN2,Math.atan2(e.im,e.re)/Math.LN2)}}),xn=at("map",["typed"],e=>{var{typed:t}=e;return t("map",{"Array, function":wn,"Matrix, function":function(e,t){return e.map(t)}})});function wn(e,t){var r=ht(t);return function i(a,n){return Array.isArray(a)?a.map((function(e,t){return i(e,n.concat(t))})):1===r?t(a):2===r?t(a,n):t(a,n,e)}(e,[])}var _n=at("multiplyScalar",["typed"],e=>{var{typed:t}=e;return t("multiplyScalar",{"number, number":_i,"Complex, Complex":function(e,t){return e.mul(t)},"BigNumber, BigNumber":function(e,t){return e.times(t)},"Fraction, Fraction":function(e,t){return e.mul(t)},"number | Fraction | BigNumber | Complex, Unit":function(e,t){var r=t.clone();return r.value=null===r.value?r._normalize(e):this(r.value,e),r},"Unit, number | Fraction | BigNumber | Complex":function(e,t){var r=e.clone();return r.value=null===r.value?r._normalize(t):this(r.value,t),r},"Unit, Unit":function(e,t){return e.multiply(t)}})});function En(e){return!e}function Cn(e,t){return!(!e&&!t)}function Nn(e,t){return!!e!=!!t}function Sn(e,t){return!(!e||!t)}En.signature="number",Cn.signature="number, number",Nn.signature="number, number",Sn.signature="number, number";var Tn=at("not",["typed"],e=>{var{typed:t}=e;return t("not",{number:En,Complex:function(e){return 0===e.re&&0===e.im},BigNumber:function(e){return e.isZero()||e.isNaN()},Unit:function(e){return null===e.value||this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),kn=at("number",["typed"],e=>{var{typed:t}=e,r=t("number",{"":function(){return 0},number:function(e){return e},string:function(e){if("NaN"===e)return NaN;var t,r,i=(r=(t=e).match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/))?{input:t,radix:{"0b":2,"0o":8,"0x":16}[r[1]],integerPart:r[2],fractionalPart:r[3]}:null;if(i)return function(e){for(var t=parseInt(e.integerPart,e.radix),r=0,i=0;i2**a-1)throw new SyntaxError('String "'.concat(e,'" is out of range'));o>=2**(a-1)&&(o-=2**a)}return o},BigNumber:function(e){return e.toNumber()},Fraction:function(e){return e.valueOf()},Unit:function(e){throw new Error("Second argument with valueless unit expected")},null:function(e){return 0},"Unit, string | Unit":function(e,t){return e.toNumber(t)},"Array | Matrix":function(e){return mi(e,this)}});return r.fromJSON=function(e){return parseFloat(e.value)},r}),On=at("oct",["typed","format"],e=>{var{typed:t,format:r}=e;return t("oct",{"number | BigNumber":function(e){return r(e,{notation:"oct"})},"number | BigNumber, number":function(e,t){return r(e,{notation:"oct",wordSize:t})}})}),In=r("6125"),Dn=r.n(In),An=Dn()(Date.now());function Mn(e){var t,r;return t=null===(r=e)?An:Dn()(String(r)),function(){return t()}}var Ln=at("pickRandom",["typed","config","?on"],e=>{var{typed:t,config:r,on:i}=e,a=Mn(r.randomSeed);return i&&i("config",(function(e,t){e.randomSeed!==t.randomSeed&&(a=Mn(e.randomSeed))})),t("pickRandom",{"Array | Matrix":function(e){return n(e,{})},"Array | Matrix, Object":function(e,t){return n(e,t)},"Array | Matrix, number":function(e,t){return n(e,{number:t})},"Array | Matrix, Array | Matrix":function(e,t){return n(e,{weights:t})},"Array | Matrix, Array | Matrix, number":function(e,t,r){return n(e,{number:r,weights:t})},"Array | Matrix, number, Array | Matrix":function(e,t,r){return n(e,{number:t,weights:r})}});function n(e,t){var{number:r,weights:i,elementWise:n=!0}=t,o=void 0===r;o&&(r=1);var l=f(e)?e.create:f(i)?i.create:null;e=e.valueOf(),i&&(i=i.valueOf()),!0===n&&(e=Qe(e),i=Qe(i));var d=0;if(void 0!==i){if(i.length!==e.length)throw new Error("Weights must have the same length as possibles");for(var c=0,u=i.length;c{var{typed:t}=e;return t("print",{"string, Object | Array":Pn,"string, Object | Array, number | Object":Pn})});function Pn(e,t,r){return e.replace(/\$([\w.]+)/g,(function(e,i){for(var a=i.split("."),n=t[a.shift()];a.length&&void 0!==n;){var o=a.shift();n=o?n[o]:n+"."}return void 0!==n?p(n)?n:Me(n,r):e}))}function $n(e,t){var r=[];if((e=e.slice(0)).length>1)for(var i=0,a=e.shift();i{var{typed:t,config:r,on:i}=e,a=Mn(r.randomSeed);return i&&i("config",(function(e,t){e.randomSeed!==t.randomSeed&&(a=Mn(e.randomSeed))})),t("random",{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>n(e,0,1),"Array | Matrix, number":(e,t)=>n(e,0,t),"Array | Matrix, number, number":(e,t,r)=>n(e,t,r)});function n(e,t,r){var i=$n(e.valueOf(),()=>o(t,r));return f(e)?e.create(i):i}function o(e,t){return e+a()*(t-e)}}),jn=at("re",["typed"],e=>{var{typed:t}=e;return t("re",{number:function(e){return e},BigNumber:function(e){return e},Fraction:function(e){return e},Complex:function(e){return e.re},"Array | Matrix":function(e){return mi(e,this)}})}),Bn=at("sec",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("sec",{number:aa,Complex:function(e){return e.sec()},BigNumber:function(e){return new r(1).div(e.cos())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sec is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),Un=at("sign",["typed","BigNumber","Fraction","complex"],e=>{var{typed:t,BigNumber:r,complex:i,Fraction:a}=e;return t("sign",{number:$i,Complex:function(e){return 0===e.im?i($i(e.re)):e.sign()},BigNumber:function(e){return new r(e.cmp(0))},Fraction:function(e){return new a(e.s,1)},"Array | Matrix":function(e){return mi(e,this,!0)},Unit:function(e){return this(e.value)}})}),Vn=at("sin",["typed"],e=>{var{typed:t}=e;return t("sin",{number:Math.sin,Complex:function(e){return e.sin()},BigNumber:function(e){return e.sin()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sin is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this,!0)}})}),qn=at("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:r,Matrix:i}=e;function a(e,t){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!p(t))throw new Error("Invalid datatype: "+t);if(f(e))!function(e,t,r){"SparseMatrix"===t.type?(e._values=t._values?G(t._values):void 0,e._index=G(t._index),e._ptr=G(t._ptr),e._size=G(t._size),e._datatype=r||t._datatype):n(e,t.valueOf(),r||t._datatype)}(this,e,t);else if(e&&h(e.index)&&h(e.ptr)&&h(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(h(e))n(this,e,t);else{if(e)throw new TypeError("Unsupported type of data ("+H(e)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}}function n(e,i,a){e._values=[],e._index=[],e._ptr=[],e._datatype=a;var n=i.length,o=0,s=r,l=0;if(p(a)&&(s=t.find(r,[a,a])||r,l=t.convert(0,a)),n>0){var d=0;do{e._ptr.push(e._index.length);for(var c=0;c");for(var d=t.min()[0],c=t.min()[1],u=a[0],p=a[1],h=0;hm){for(c=m;cf){if(h){var g=0;for(c=0;ci-1&&(e._values.splice(u,1),e._index.splice(u,1),y++)}e._ptr[c]=e._values.length}return e._size[0]=i,e._size[1]=a,e}function b(e,t,r,i,a){var n,o,s=i[0],l=i[1],d=[];for(n=0;ns-1||o>l-1)&&(g(this,Math.max(n+1,s),Math.max(o+1,l),a),s=this._size[0],l=this._size[1]),Ue(n,s),Ue(o,l);var m=c(n,this._ptr[o],this._ptr[o+1],this._index);return mArray.isArray(e)&&1===e.length?e[0]:e);if(2!==i.length)throw new Error("Only two dimensions matrix are supported");return i.forEach((function(e){if(!s(e)||!se(e)||e<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Me(i)+")")})),g(r?this.clone():this,i[0],i[1],t)},a.prototype.reshape=function(e,t){if(!h(e))throw new TypeError("Array expected");if(2!==e.length)throw new Error("Sparse matrices can only be reshaped in two dimensions");e.forEach((function(t){if(!s(t)||!se(t)||t<=-2||0===t)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+Me(e)+")")}));var r=this._size[0]*this._size[1];if(r!==(e=ze(e,r))[0]*e[1])throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var i=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return i;for(var a=[],n=0;n=i&&w<=n&&g(e._values[x],w-i,b-o)}else{for(var _={},E=y;E "+(this._values?Me(this._values[l],e):"X");return a},a.prototype.toString=function(){return Me(this.toArray())},a.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},a.prototype.diagonal=function(e){if(e){if(l(e)&&(e=e.toNumber()),!s(e)||!se(e))throw new TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,r=e<0?-e:0,i=this._size[0],n=this._size[1],o=Math.min(i-r,n-t),d=[],c=[],u=[];u[0]=0;for(var p=t;p0?n:0,b=n<0?-n:0,y=e[0],v=e[1],x=Math.min(y-b,v-g);if(h(i)){if(i.length!==x)throw new Error("Invalid value array length");m=function(e){return i[e]}}else if(f(i)){var w=i.size();if(1!==w.length||w[0]!==x)throw new Error("Invalid matrix length");m=function(e){return i.get([e])}}else m=function(){return i};for(var _=[],E=[],C=[],N=0;N=0&&S=l||a[u]!==t)){var h=i?i[d]:void 0;a.splice(u,0,t),i&&i.splice(u,0,h),a.splice(u<=d?d+1:d,1),i&&i.splice(u<=d?d+1:d,1)}else if(u=l||a[d]!==e)){var f=i?i[u]:void 0;a.splice(d,0,e),i&&i.splice(d,0,f),a.splice(d<=u?u+1:u,1),i&&i.splice(d<=u?u+1:u,1)}}},a},{isClass:!0}),zn=at("splitUnit",["typed"],e=>{var{typed:t}=e;return t("splitUnit",{"Unit, Array":function(e,t){return e.splitUnit(t)}})}),Hn=at("square",["typed"],e=>{var{typed:t}=e;return t("square",{number:Fi,Complex:function(e){return e.mul(e)},BigNumber:function(e){return e.times(e)},Fraction:function(e){return e.mul(e)},"Array | Matrix":function(e){return mi(e,this,!0)},Unit:function(e){return e.pow(2)}})}),Gn=at("string",["typed"],e=>{var{typed:t}=e;return t("string",{"":function(){return""},number:me,null:function(e){return"null"},boolean:function(e){return e+""},string:function(e){return e},"Array | Matrix":function(e){return mi(e,this)},any:function(e){return String(e)}})}),Wn=at("tan",["typed"],e=>{var{typed:t}=e;return t("tan",{number:Math.tan,Complex:function(e){return e.tan()},BigNumber:function(e){return e.tan()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tan is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this,!0)}})}),Qn=at("typeOf",["typed"],e=>{var{typed:t}=e;return t("typeOf",{any:H})}),Xn=at("acosh",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("acosh",{number:function(e){return e>=1||r.predictable?Hi(e):e<=-1?new i(Math.log(Math.sqrt(e*e-1)-e),Math.PI):new i(e,0).acosh()},Complex:function(e){return e.acosh()},BigNumber:function(e){return e.acosh()},"Array | Matrix":function(e){return mi(e,this)}})}),Kn=at("acsch",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("acsch",{number:Xi,Complex:function(e){return e.acsch()},BigNumber:function(e){return new r(1).div(e).asinh()},"Array | Matrix":function(e){return mi(e,this)}})}),Yn=at("apply",["typed","isInteger"],e=>{var{typed:t,isInteger:r}=e;return t("apply",{"Array | Matrix, number | BigNumber, function":function(e,t,i){if(!r(t))throw new TypeError("Integer number expected for dimension");var a=Array.isArray(e)?je(e):e.size();if(t<0||t>=a.length)throw new Fe(t,a.length);return f(e)?e.create(Jn(e.valueOf(),t,i)):Jn(e,t,i)}})});function Jn(e,t,r){var i,a,n;if(t<=0){if(Array.isArray(e[0])){for(n=function(e){var t,r,i=e.length,a=e[0].length,n=[];for(r=0;r{var{typed:t,config:r,Complex:i,BigNumber:a}=e;return t("asec",{number:function(e){return e<=-1||e>=1||r.predictable?Ki(e):new i(e,0).asec()},Complex:function(e){return e.asec()},BigNumber:function(e){return new a(1).div(e).acos()},"Array | Matrix":function(e){return mi(e,this)}})}),eo=at("bin",["typed","format"],e=>{var{typed:t,format:r}=e;return t("bin",{"number | BigNumber":function(e){return r(e,{notation:"bin"})},"number | BigNumber, number":function(e,t){return r(e,{notation:"bin",wordSize:t})}})}),to=at("combinationsWithRep",["typed"],e=>{var{typed:t}=e;return t("combinationsWithRep",{"number, number":function(e,t){if(!se(e)||e<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!se(t)||t<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(e<1)throw new TypeError("k must be less than or equal to n + k - 1");return t{var{typed:t}=e;return t("cos",{number:Math.cos,Complex:function(e){return e.cos()},BigNumber:function(e){return e.cos()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cos is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),ao=at("csch",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("csch",{number:ia,Complex:function(e){return e.csch()},BigNumber:function(e){return new r(1).div(e.sinh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function csch is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),no=at("isNaN",["typed"],e=>{var{typed:t}=e;return t("isNaN",{number:fn,BigNumber:function(e){return e.isNaN()},Fraction:function(e){return!1},Complex:function(e){return e.isNaN()},Unit:function(e){return Number.isNaN(e.value)},"Array | Matrix":function(e){return mi(e,Number.isNaN)}})}),oo=at("isPrime",["typed"],e=>{var{typed:t}=e;return t("isPrime",{number:function(e){if(0*e!=0)return!1;if(e<=3)return e>1;if(e%2==0||e%3==0)return!1;for(var t=5;t*t<=e;t+=6)if(e%t==0||e%(t+2)==0)return!1;return!0},BigNumber:function(e){if(0*e.toNumber()!=0)return!1;if(e.lte(3))return e.gt(1);if(e.mod(2).eq(0)||e.mod(3).eq(0))return!1;if(e.lt(Math.pow(2,32))){for(var t=e.toNumber(),r=5;r*r<=t;r+=6)if(t%r==0||t%(r+2)==0)return!1;return!0}function i(e,t,r){for(var i=1;!t.eq(0);)t.mod(2).eq(0)?(t=t.div(2),e=e.mul(e).mod(r)):(t=t.sub(1),i=e.mul(i).mod(r));return i}for(var a=e.constructor.clone({precision:2*e.toFixed(0).length}),n=0,o=(e=new a(e)).sub(1);o.mod(2).eq(0);)o=o.div(2),n+=1;var s=null;if(e.lt("3317044064679887385961981"))s=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(t=>t{var{typed:t,config:r,on:i}=e,a=Mn(r.randomSeed);return i&&i("config",(function(e,t){e.randomSeed!==t.randomSeed&&(a=Mn(e.randomSeed))})),t("randomInt",{"":()=>o(0,1),number:e=>o(0,e),"number, number":(e,t)=>o(e,t),"Array | Matrix":e=>n(e,0,1),"Array | Matrix, number":(e,t)=>n(e,0,t),"Array | Matrix, number, number":(e,t,r)=>n(e,t,r)});function n(e,t,r){var i=$n(e.valueOf(),()=>o(t,r));return f(e)?e.create(i):i}function o(e,t){return Math.floor(e+a()*(t-e))}}),lo=at("sech",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("sech",{number:na,Complex:function(e){return e.sech()},BigNumber:function(e){return new r(1).div(e.cosh())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sech is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),co=at("sinh",["typed"],e=>{var{typed:t}=e;return t("sinh",{number:oa,Complex:function(e){return e.sinh()},BigNumber:function(e){return e.sinh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function sinh is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this,!0)}})}),uo=at("sparse",["typed","SparseMatrix"],e=>{var{typed:t,SparseMatrix:r}=e;return t("sparse",{"":function(){return new r([])},string:function(e){return new r([],e)},"Array | Matrix":function(e){return new r(e)},"Array | Matrix, string":function(e,t){return new r(e,t)}})}),po=at("sqrt",["config","typed","Complex"],e=>{var{config:t,typed:r,Complex:i}=e;return r("sqrt",{number:a,Complex:function(e){return e.sqrt()},BigNumber:function(e){return!e.isNegative()||t.predictable?e.sqrt():a(e.toNumber())},"Array | Matrix":function(e){return mi(e,this,!0)},Unit:function(e){return e.pow(.5)}});function a(e){return isNaN(e)?NaN:e>=0||t.predictable?Math.sqrt(e):new i(e,0).sqrt()}}),ho=at("tanh",["typed"],e=>{var{typed:t}=e;return t("tanh",{number:ke,Complex:function(e){return e.tanh()},BigNumber:function(e){return e.tanh()},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function tanh is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this,!0)}})}),fo=at("unaryMinus",["typed"],e=>{var{typed:t}=e;return t("unaryMinus",{number:Ei,Complex:function(e){return e.neg()},BigNumber:function(e){return e.neg()},Fraction:function(e){return e.neg()},Unit:function(e){var t=e.clone();return t.value=this(e.value),t},"Array | Matrix":function(e){return mi(e,this,!0)}})}),mo=at("acoth",["typed","config","Complex","BigNumber"],e=>{var{typed:t,config:r,Complex:i,BigNumber:a}=e;return t("acoth",{number:function(e){return e>=1||e<=-1||r.predictable?Wi(e):new i(e,0).acoth()},Complex:function(e){return e.acoth()},BigNumber:function(e){return new a(1).div(e).atanh()},"Array | Matrix":function(e){return mi(e,this)}})}),go=at("cot",["typed","BigNumber"],e=>{var{typed:t,BigNumber:r}=e;return t("cot",{number:ea,Complex:function(e){return e.cot()},BigNumber:function(e){return new r(1).div(e.tan())},Unit:function(e){if(!e.hasBase(e.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return this(e.value)},"Array | Matrix":function(e){return mi(e,this)}})}),bo=at("fraction",["typed","Fraction"],e=>{var{typed:t,Fraction:r}=e;return t("fraction",{number:function(e){if(!isFinite(e)||isNaN(e))throw new Error(e+" cannot be represented as a fraction");return new r(e)},string:function(e){return new r(e)},"number, number":function(e,t){return new r(e,t)},null:function(e){return new r(0)},BigNumber:function(e){return new r(e.toString())},Fraction:function(e){return e},Object:function(e){return new r(e)},"Array | Matrix":function(e){return mi(e,this)}})}),yo=at("isNumeric",["typed"],e=>{var{typed:t}=e;return t("isNumeric",{"number | BigNumber | Fraction | boolean":function(){return!0},"Complex | Unit | string | null | undefined | Node":function(){return!1},"Array | Matrix":function(e){return mi(e,this)}})}),vo=at("matrix",["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:r,DenseMatrix:i,SparseMatrix:a}=e;return t("matrix",{"":function(){return n([])},string:function(e){return n([],e)},"string, string":function(e,t){return n([],e,t)},Array:function(e){return n(e)},Matrix:function(e){return n(e,e.storage())},"Array | Matrix, string":n,"Array | Matrix, string, string":n});function n(e,t,r){if("dense"===t||"default"===t||void 0===t)return new i(e,r);if("sparse"===t)return new a(e,r);throw new TypeError("Unknown matrix type "+JSON.stringify(t)+".")}}),xo=at("matrixFromFunction",["typed","matrix","isZero"],e=>{var{typed:t,matrix:r,isZero:i}=e;return t("matrixFromFunction",{"Array | Matrix, function, string, string":function(e,t,r,i){return a(e,t,r,i)},"Array | Matrix, function, string":function(e,t,r){return a(e,t,r)},"Matrix, function":function(e,t){return a(e,t,"dense")},"Array, function":function(e,t){return a(e,t,"dense").toArray()},"Array | Matrix, string, function":function(e,t,r){return a(e,r,t)},"Array | Matrix, string, string, function":function(e,t,r,i){return a(e,i,t,r)}});function a(e,t,a,n){var o;return(o=void 0!==n?r(a,n):r(a)).resize(e),o.forEach((function(e,r){var a=t(r);i(a)||o.set(r,a)})),o}}),wo=at("algorithm02",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,i,a,n){var o=e._data,s=e._size,l=e._datatype,d=i._values,c=i._index,u=i._ptr,p=i._size,h=i._datatype;if(s.length!==p.length)throw new $e(s.length,p.length);if(s[0]!==p[0]||s[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+p+")");if(!d)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var f,m=s[0],g=s[1],b=r,y=0,v=a;"string"==typeof l&&l===h&&(f=l,b=t.find(r,[f,f]),y=t.convert(0,f),v=t.find(a,[f,f]));for(var x=[],w=[],_=[],E=0;E{var{typed:t}=e;return function(e,r,i,a){var n=e._data,o=e._size,s=e._datatype,l=r._values,d=r._index,c=r._ptr,u=r._size,p=r._datatype;if(o.length!==u.length)throw new $e(o.length,u.length);if(o[0]!==u[0]||o[1]!==u[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+u+")");if(!l)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var h,f=o[0],m=o[1],g=0,b=i;"string"==typeof s&&s===p&&(h=s,g=t.convert(0,h),b=t.find(i,[h,h]));for(var y=[],v=0;v{var{typed:t,equalScalar:r}=e;return function(e,i,a){var n=e._values,o=e._index,s=e._ptr,l=e._size,d=e._datatype,c=i._values,u=i._index,p=i._ptr,h=i._size,f=i._datatype;if(l.length!==h.length)throw new $e(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");var m,g=l[0],b=l[1],y=r,v=0,x=a;"string"==typeof d&&d===f&&(m=d,y=t.find(r,[m,m]),v=t.convert(0,m),x=t.find(a,[m,m]));var w,_,E,C,N=n&&c?[]:void 0,S=[],T=[],k=N?[]:void 0,O=N?[]:void 0,I=[],D=[];for(_=0;_{var{typed:t,equalScalar:r}=e;return function(e,i,a,n){var o=e._values,s=e._index,l=e._ptr,d=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var u,p=d[0],h=d[1],f=r,m=0,g=a;"string"==typeof c&&(u=c,f=t.find(r,[u,u]),m=t.convert(0,u),i=t.convert(i,u),g=t.find(a,[u,u]));for(var b=[],y=[],v=[],x=0;x{var{typed:t,DenseMatrix:r}=e;return function(e,i,a,n){var o=e._values,s=e._index,l=e._ptr,d=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var u,p=d[0],h=d[1],f=a;"string"==typeof c&&(u=c,i=t.convert(i,u),f=t.find(a,[u,u]));for(var m=[],g=[],b=[],y=0;y{var{typed:t}=e;return function(e,r,i){var a,n=e._data,o=e._size,s=e._datatype,l=r._data,d=r._size,c=r._datatype,u=[];if(o.length!==d.length)throw new $e(o.length,d.length);for(var p=0;p0?function e(t,r,i,a,n,o){var s=[];if(r===i.length-1)for(var l=0;l{var{typed:t}=e;return function(e,r,i,a){var n,o=e._data,s=e._size,l=e._datatype,d=i;"string"==typeof l&&(n=l,r=t.convert(r,n),d=t.find(i,[n,n]));var c=s.length>0?function e(t,r,i,a,n,o,s){var l=[];if(r===i.length-1)for(var d=0;d{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:a}=e,n=wo({typed:t,equalScalar:i}),o=_o({typed:t}),s=Eo({typed:t,equalScalar:i}),l=Co({typed:t,equalScalar:i}),d=No({typed:t,DenseMatrix:a}),c=So({typed:t}),u=To({typed:t});return t("mod",{"number, number":Ri,"BigNumber, BigNumber":function(e,t){if(t.isNeg())throw new Error("Cannot calculate mod for a negative divisor");return t.isZero()?e:e.mod(t)},"Fraction, Fraction":function(e,t){if(t.compare(0)<0)throw new Error("Cannot calculate mod for a negative divisor");return e.compare(0)>=0?e.mod(t):e.mod(t).add(t).mod(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return d(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,this,!0).valueOf()}})}),Oo=at("algorithm01",["typed"],e=>{var{typed:t}=e;return function(e,r,i,a){var n=e._data,o=e._size,s=e._datatype,l=r._values,d=r._index,c=r._ptr,u=r._size,p=r._datatype;if(o.length!==u.length)throw new $e(o.length,u.length);if(o[0]!==u[0]||o[1]!==u[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+u+")");if(!l)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var h,f,m=o[0],g=o[1],b="string"==typeof s&&s===p?s:void 0,y=b?t.find(i,[b,b]):i,v=[];for(h=0;h{var{typed:t,equalScalar:r}=e;return function(e,i,a){var n=e._values,o=e._size,s=e._datatype,l=i._values,d=i._size,c=i._datatype;if(o.length!==d.length)throw new $e(o.length,d.length);if(o[0]!==d[0]||o[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+d+")");var u,p=o[0],h=o[1],f=r,m=0,g=a;"string"==typeof s&&s===c&&(u=s,f=t.find(r,[u,u]),m=t.convert(0,u),g=t.find(a,[u,u]));for(var b=n&&l?[]:void 0,y=[],v=[],x=b?[]:void 0,w=[],_=[],E=0;E{var{typed:t,matrix:r,equalScalar:i,BigNumber:a}=e,n=Oo({typed:t}),o=wo({typed:t,equalScalar:i}),s=Io({typed:t,equalScalar:i}),l=Co({typed:t,equalScalar:i}),d=So({typed:t}),c=To({typed:t}),u="Complex number not supported in function nthRoot. Use nthRoots instead.";return t("nthRoot",{number:function(e){return Pi(e,2)},"number, number":Pi,BigNumber:function(e){return p(e,new a(2))},Complex:function(e){throw new Error(u)},"Complex, number":function(e,t){throw new Error(u)},"BigNumber, BigNumber":p,"Array | Matrix":function(e){return this(e,2)},"SparseMatrix, SparseMatrix":function(e,t){if(1===t.density())return s(e,t,this);throw new Error("Root must be non-zero")},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){if(1===t.density())return n(e,t,this,!1);throw new Error("Root must be non-zero")},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){if(1===t.density())return l(t,e,this,!0);throw new Error("Root must be non-zero")},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,r(t)).valueOf()}});function p(e,t){var r=a.precision,i=a.clone({precision:r+2}),n=new a(0),o=new i(1),s=t.isNegative();if(s&&(t=t.neg()),t.isZero())throw new Error("Root must be non-zero");if(e.isNegative()&&!t.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(e.isZero())return s?new i(1/0):0;if(!e.isFinite())return s?n:e;var l=e.abs().pow(o.div(t));return l=e.isNeg()?l.neg():l,new a((s?o.div(l):l).toPrecision(r))}});function Ao(){throw new Error('No "bignumber" implementation available')}function Mo(){throw new Error('No "fraction" implementation available')}function Lo(){throw new Error('No "matrix" implementation available')}var Ro=at("numeric",["number","?bignumber","?fraction"],e=>{var{number:t,bignumber:r,fraction:i}=e,a={string:!0,number:!0,BigNumber:!0,Fraction:!0},n={number:e=>t(e),BigNumber:r?e=>r(e):Ao,Fraction:i?e=>i(e):Mo};return function(e,t){var r=H(e);if(!(r in a))throw new TypeError("Cannot convert "+e+' of type "'+r+'"; valid input types are '+Object.keys(a).join(", "));if(!(t in n))throw new TypeError("Cannot convert "+e+' to type "'+t+'"; valid output types are '+Object.keys(n).join(", "));return t===r?e:n[t](e)}}),Po=at("or",["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Eo({typed:t,equalScalar:i}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("or",{"number, number":Cn,"Complex, Complex":function(e,t){return 0!==e.re||0!==e.im||0!==t.re||0!==t.im},"BigNumber, BigNumber":function(e,t){return!e.isZero()&&!e.isNaN()||!t.isZero()&&!t.isNaN()},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,this,!0).valueOf()}})});function $o(e,t,r){var i;return-1!==String(e).indexOf("Unexpected type")?(i=arguments.length>2?" (type: "+H(r)+", value: "+JSON.stringify(r)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+i)):-1!==String(e).indexOf("complex numbers")?(i=arguments.length>2?" (type: "+H(r)+", value: "+JSON.stringify(r)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+i)):e}var Fo=at("prod",["typed","config","multiplyScalar","numeric"],e=>{var{typed:t,config:r,multiplyScalar:i,numeric:a}=e;return t("prod",{"Array | Matrix":n,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("prod(A, dim) is not yet supported")},"...":function(e){return n(e)}});function n(e){var t;if(fi(e,(function(e){try{t=void 0===t?e:i(t,e)}catch(t){throw $o(t,"prod",e)}})),"string"==typeof t&&(t=a(t,r.number)),void 0===t)throw new Error("Cannot calculate prod of an empty array");return t}}),jo=at("reshape",["typed","isInteger","matrix"],e=>{var{typed:t,isInteger:r}=e;return t("reshape",{"Matrix, Array":function(e,t){return e.reshape(t)},"Array, Array":function(e,t){return t.forEach((function(e){if(!r(e))throw new TypeError("Invalid size for dimension: "+e)})),qe(e,t)}})}),Bo=at("size",["typed","config","?matrix"],e=>{var{typed:t,config:r,matrix:i}=e;return t("size",{Matrix:function(e){return e.create(e.size())},Array:je,string:function(e){return"Array"===r.matrix?[e.length]:i([e.length])},"number | Complex | BigNumber | Unit | boolean | null":function(e){return"Array"===r.matrix?[]:i?i([]):Lo()}})}),Uo=at("algorithm07",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:r}=e;return function(e,a,n){var o=e._size,s=e._datatype,l=a._size,d=a._datatype;if(o.length!==l.length)throw new $e(o.length,l.length);if(o[0]!==l[0]||o[1]!==l[1])throw new RangeError("Dimension mismatch. Matrix A ("+o+") must match Matrix B ("+l+")");var c,u,p,h=o[0],f=o[1],m=0,g=n;"string"==typeof s&&s===d&&(c=s,m=t.convert(0,c),g=t.find(n,[c,c]));var b=[];for(u=0;u{var{typed:t,config:r,matrix:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Uo({typed:t,DenseMatrix:a}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("smaller",{"boolean, boolean":function(e,t){return e{var{typed:t,matrix:r}=e;return t("squeeze",{Array:function(e){return Ge(G(e))},Matrix:function(e){var t=Ge(e.toArray());return Array.isArray(t)?r(t):t},any:function(e){return G(e)}})}),zo=at("subset",["typed","matrix"],e=>{var{typed:t,matrix:r}=e;return t("subset",{"Array, Index":function(e,t){var i=r(e).subset(t);return t.isScalar()?i:i.valueOf()},"Matrix, Index":function(e,t){return e.subset(t)},"Object, Index":Wo,"string, Index":Ho,"Array, Index, any":function(e,t,i){return r(G(e)).subset(t,i,void 0).valueOf()},"Array, Index, any, any":function(e,t,i,a){return r(G(e)).subset(t,i,a).valueOf()},"Matrix, Index, any":function(e,t,r){return e.clone().subset(t,r)},"Matrix, Index, any, any":function(e,t,r,i){return e.clone().subset(t,r,i)},"string, Index, string":Go,"string, Index, string, string":Go,"Object, Index, any":Qo})});function Ho(e,t){if(!v(t))throw new TypeError("Index expected");if(1!==t.size().length)throw new $e(t.size().length,1);var r=e.length;Ue(t.min()[0],r),Ue(t.max()[0],r);var i=t.dimension(0),a="";return i.forEach((function(t){a+=e.charAt(t)})),a}function Go(e,t,r,i){if(!t||!0!==t.isIndex)throw new TypeError("Index expected");if(1!==t.size().length)throw new $e(t.size().length,1);if(void 0!==i){if("string"!=typeof i||1!==i.length)throw new TypeError("Single character expected as defaultValue")}else i=" ";var a=t.dimension(0);if(a.size()[0]!==r.length)throw new $e(a.size()[0],r.length);var n=e.length;Ue(t.min()[0]),Ue(t.max()[0]);for(var o=[],s=0;sn)for(var l=n-1,d=o.length;l{var{typed:t,DenseMatrix:r}=e;return function(e,i,a,n){var o=e._values,s=e._index,l=e._ptr,d=e._size,c=e._datatype;if(!o)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var u,p=d[0],h=d[1],f=a;"string"==typeof c&&(u=c,i=t.convert(i,u),f=t.find(a,[u,u]));for(var m=[],g=[],b=[],y=0;y{var{typed:t,matrix:r,equalScalar:i,addScalar:a,unaryMinus:n,DenseMatrix:o}=e,s=Oo({typed:t}),l=_o({typed:t}),d=Eo({typed:t,equalScalar:i}),c=Xo({typed:t,DenseMatrix:o}),u=So({typed:t}),p=To({typed:t});return t("subtract",{"number, number":function(e,t){return e-t},"Complex, Complex":function(e,t){return e.sub(t)},"BigNumber, BigNumber":function(e,t){return e.minus(t)},"Fraction, Fraction":function(e,t){return e.sub(t)},"Unit, Unit":function(e,t){if(null===e.value)throw new Error("Parameter x contains a unit with undefined value");if(null===t.value)throw new Error("Parameter y contains a unit with undefined value");if(!e.equalBase(t))throw new Error("Units do not match");var r=e.clone();return r.value=this(r.value,t.value),r.fixPrefix=!1,r},"SparseMatrix, SparseMatrix":function(e,t){return Yo(e,t),d(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return Yo(e,t),l(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return Yo(e,t),s(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return Yo(e,t),u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return c(e,n(t),a)},"DenseMatrix, any":function(e,t){return p(e,t,this)},"any, SparseMatrix":function(e,t){return c(t,e,this,!0)},"any, DenseMatrix":function(e,t){return p(t,e,this,!0)},"Array, any":function(e,t){return p(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return p(r(t),e,this,!0).valueOf()}})});function Yo(e,t){var r=e.size(),i=t.size();if(r.length!==i.length)throw new $e(r.length,i.length)}var Jo=at("to",["typed","matrix"],e=>{var{typed:t,matrix:r}=e,i=So({typed:t}),a=To({typed:t});return t("to",{"Unit, Unit | string":function(e,t){return e.to(t)},"Matrix, Matrix":function(e,t){return i(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"Matrix, any":function(e,t){return a(e,t,this,!1)},"any, Matrix":function(e,t){return a(t,e,this,!0)},"Array, any":function(e,t){return a(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return a(r(t),e,this,!0).valueOf()}})}),Zo=at("transpose",["typed","matrix"],e=>{var{typed:t,matrix:r}=e;return t("transpose",{Array:function(e){return this(r(e)).valueOf()},Matrix:function(e){var t,r=e.size();switch(r.length){case 1:t=e.clone();break;case 2:var i=r[0],a=r[1];if(0===a)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Me(r)+")");switch(e.storage()){case"dense":t=function(e,t,r){for(var i,a=e._data,n=[],o=0;o{var{typed:t,config:r,matrix:i,BigNumber:a}=e;return t("xgcd",{"number, number":function(e,t){var a=ji(e,t);return"Array"===r.matrix?a:i(a)},"BigNumber, BigNumber":function(e,t){var n,o,s,l,d=new a(0),c=new a(1),u=d,p=c,h=c,f=d;if(!e.isInt()||!t.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!t.isZero();)o=e.div(t).floor(),s=e.mod(t),n=u,u=p.minus(o.times(u)),p=n,n=h,h=f.minus(o.times(h)),f=n,e=t,t=s;return l=e.lt(d)?[e.neg(),p.neg(),f.neg()]:[e,e.isZero()?0:p,f],"Array"===r.matrix?l:i(l)}})}),ts=at("zeros",["typed","config","matrix","BigNumber"],e=>{var{typed:t,config:r,matrix:i,BigNumber:a}=e;return t("zeros",{"":function(){return"Array"===r.matrix?n([]):n([],"default")},"...number | BigNumber | string":function(e){if("string"==typeof e[e.length-1]){var t=e.pop();return n(e,t)}return"Array"===r.matrix?n(e):n(e,"default")},Array:n,Matrix:function(e){var t=e.storage();return n(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return n(e.valueOf(),t)}});function n(e,t){var r=function(e){var t=!1;return e.forEach((function(e,r,i){l(e)&&(t=!0,i[r]=e.toNumber())})),t}(e)?new a(0):0;if(function(e){e.forEach((function(e){if("number"!=typeof e||!se(e)||e<0)throw new Error("Parameters in function zeros must be positive integers")}))}(e),t){var n=i(t);return e.length>0?n.resize(e,r):n}var o=[];return e.length>0?Ve(o,e,r):o}}),rs=at("and",["typed","matrix","equalScalar","zeros","not"],e=>{var{typed:t,matrix:r,equalScalar:i,zeros:a,not:n}=e,o=wo({typed:t,equalScalar:i}),s=Io({typed:t,equalScalar:i}),l=Co({typed:t,equalScalar:i}),d=So({typed:t}),c=To({typed:t});return t("and",{"number, number":Sn,"Complex, Complex":function(e,t){return!(0===e.re&&0===e.im||0===t.re&&0===t.im)},"BigNumber, BigNumber":function(e,t){return!(e.isZero()||t.isZero()||e.isNaN()||t.isNaN())},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return n(t)?a(e.size(),e.storage()):l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return n(t)?a(e.size(),e.storage()):c(e,t,this,!1)},"any, SparseMatrix":function(e,t){return n(e)?a(e.size(),e.storage()):l(t,e,this,!0)},"any, DenseMatrix":function(e,t){return n(e)?a(e.size(),e.storage()):c(t,e,this,!0)},"Array, any":function(e,t){return this(r(e),t).valueOf()},"any, Array":function(e,t){return this(e,r(t)).valueOf()}})}),is=at("bitAnd",["typed","matrix","equalScalar"],e=>{var{typed:t,matrix:r,equalScalar:i}=e,a=wo({typed:t,equalScalar:i}),n=Io({typed:t,equalScalar:i}),o=Co({typed:t,equalScalar:i}),s=So({typed:t}),l=To({typed:t});return t("bitAnd",{"number, number":Na,"BigNumber, BigNumber":ga,"SparseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),as=at("bitXor",["typed","matrix","DenseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:i}=e,a=_o({typed:t}),n=Uo({typed:t,DenseMatrix:i}),o=No({typed:t,DenseMatrix:i}),s=So({typed:t}),l=To({typed:t});return t("bitXor",{"number, number":ka,"BigNumber, BigNumber":wa,"SparseMatrix, SparseMatrix":function(e,t){return n(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),ns=at("cbrt",["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],e=>{var{config:t,typed:r,isNegative:i,unaryMinus:a,matrix:n,Complex:o,BigNumber:s,Fraction:u}=e;return r("cbrt",{number:Ni,Complex:p,"Complex, boolean":p,BigNumber:function(e){return e.cbrt()},Unit:function(e){if(e.value&&d(e.value)){var t=e.clone();return t.value=1,(t=t.pow(1/3)).value=p(e.value),t}var r,n=i(e.value);n&&(e.value=a(e.value)),r=l(e.value)?new s(1).div(3):c(e.value)?new u(1,3):1/3;var o=e.pow(r);return n&&(o.value=a(o.value)),o},"Array | Matrix":function(e){return mi(e,this,!0)}});function p(e,r){var i=e.arg()/3,a=e.abs(),s=new o(Ni(a),0).mul(new o(0,i).exp());if(r){var l=[s,new o(Ni(a),0).mul(new o(0,i+2*Math.PI/3).exp()),new o(Ni(a),0).mul(new o(0,i-2*Math.PI/3).exp())];return"Array"===t.matrix?l:n(l)}return s}}),os=at("compare",["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix"],e=>{var{typed:t,config:r,equalScalar:i,matrix:a,BigNumber:n,Fraction:o,DenseMatrix:s}=e,l=_o({typed:t}),d=Eo({typed:t,equalScalar:i}),c=No({typed:t,DenseMatrix:s}),u=So({typed:t}),p=To({typed:t});return t("compare",{"boolean, boolean":function(e,t){return e===t?0:e>t?1:-1},"number, number":function(e,t){return _e(e,t,r.epsilon)?0:e>t?1:-1},"BigNumber, BigNumber":function(e,t){return Ha(e,t,r.epsilon)?new n(0):new n(e.cmp(t))},"Fraction, Fraction":function(e,t){return new o(e.compare(t))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return d(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return l(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(a(e),a(t)).valueOf()},"Array, Matrix":function(e,t){return this(a(e),t)},"Matrix, Array":function(e,t){return this(e,a(t))},"SparseMatrix, any":function(e,t){return c(e,t,this,!1)},"DenseMatrix, any":function(e,t){return p(e,t,this,!1)},"any, SparseMatrix":function(e,t){return c(t,e,this,!0)},"any, DenseMatrix":function(e,t){return p(t,e,this,!0)},"Array, any":function(e,t){return p(a(e),t,this,!1).valueOf()},"any, Array":function(e,t){return p(a(t),e,this,!0).valueOf()}})}),ss=at("compareText",["typed","matrix"],e=>{var{typed:t,matrix:r}=e,i=So({typed:t}),a=To({typed:t});return t("compareText",{"any, any":Pe,"DenseMatrix, DenseMatrix":function(e,t){return i(e,t,Pe)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"DenseMatrix, any":function(e,t){return a(e,t,Pe,!1)},"any, DenseMatrix":function(e,t){return a(t,e,Pe,!0)},"Array, any":function(e,t){return a(r(e),t,Pe,!1).valueOf()},"any, Array":function(e,t){return a(r(t),e,Pe,!0).valueOf()}})}),ls=at("concat",["typed","matrix","isInteger"],e=>{var{typed:t,matrix:r,isInteger:i}=e;return t("concat",{"...Array | Matrix | number | BigNumber":function(e){var t,a,n=e.length,o=-1,d=!1,c=[];for(t=0;t0&&o>a)throw new Fe(o,a+1)}else{var p=G(u).valueOf(),h=je(p);if(c[t]=p,a=o,o=h.length-1,t>0&&o!==a)throw new $e(a+1,o+1)}}if(0===c.length)throw new SyntaxError("At least one matrix expected");for(var m=c.shift();c.length;)m=ds(m,c.shift(),o,0);return d?r(m):m},"...string":function(e){return e.join("")}})});function ds(e,t,r,i){if(i{var{typed:t,size:r,prod:i}=e;return t("count",{string:function(e){return e.length},"Matrix | Array":function(e){return i(r(e))}})}),us=at("ctranspose",["typed","transpose","conj"],e=>{var{typed:t,transpose:r,conj:i}=e;return t("ctranspose",{any:function(e){return i(r(e))}})}),ps=at("diag",["typed","matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:i,SparseMatrix:a}=e;return t("diag",{Array:function(e){return n(e,0,je(e),null)},"Array, number":function(e,t){return n(e,t,je(e),null)},"Array, BigNumber":function(e,t){return n(e,t.toNumber(),je(e),null)},"Array, string":function(e,t){return n(e,0,je(e),t)},"Array, number, string":function(e,t,r){return n(e,t,je(e),r)},"Array, BigNumber, string":function(e,t,r){return n(e,t.toNumber(),je(e),r)},Matrix:function(e){return n(e,0,e.size(),e.storage())},"Matrix, number":function(e,t){return n(e,t,e.size(),e.storage())},"Matrix, BigNumber":function(e,t){return n(e,t.toNumber(),e.size(),e.storage())},"Matrix, string":function(e,t){return n(e,0,e.size(),t)},"Matrix, number, string":function(e,t,r){return n(e,t,e.size(),r)},"Matrix, BigNumber, string":function(e,t,r){return n(e,t.toNumber(),e.size(),r)}});function n(e,t,n,o){if(!se(t))throw new TypeError("Second parameter in function diag must be an integer");var s=t>0?t:0,l=t<0?-t:0;switch(n.length){case 1:return function(e,t,r,n,o,s){var l=[n+o,n+s];if(r&&"sparse"!==r&&"dense"!==r)throw new TypeError("Unknown matrix type ".concat(r,'"'));var d="sparse"===r?a.diagonal(l,e,t):i.diagonal(l,e,t);return null!==r?d:d.valueOf()}(e,t,o,n[0],l,s);case 2:return function(e,t,i,a,n,o){if(f(e)){var s=e.diagonal(t);return null!==i?i!==s.storage()?r(s,i):s:s.valueOf()}for(var l=Math.min(a[0]-n,a[1]-o),d=[],c=0;c{var{typed:t,numeric:r}=e;return t("divideScalar",{"number, number":function(e,t){return e/t},"Complex, Complex":function(e,t){return e.div(t)},"BigNumber, BigNumber":function(e,t){return e.div(t)},"Fraction, Fraction":function(e,t){return e.div(t)},"Unit, number | Fraction | BigNumber":function(e,t){var i=e.clone(),a=r(1,H(t));return i.value=this(null===i.value?i._normalize(a):i.value,t),i},"number | Fraction | BigNumber, Unit":function(e,t){var i=t.clone();i=i.pow(-1);var a=r(1,H(e));return i.value=this(e,null===t.value?t._normalize(a):t.value),i},"Unit, Unit":function(e,t){return e.divide(t)}})}),fs=at("dotDivide",["typed","matrix","equalScalar","divideScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:i,divideScalar:a,DenseMatrix:n}=e,o=wo({typed:t,equalScalar:i}),s=_o({typed:t}),l=Uo({typed:t,DenseMatrix:n}),d=Co({typed:t,equalScalar:i}),c=No({typed:t,DenseMatrix:n}),u=So({typed:t}),p=To({typed:t});return t("dotDivide",{"any, any":a,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,a,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,a,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,a,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,a)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return d(e,t,a,!1)},"DenseMatrix, any":function(e,t){return p(e,t,a,!1)},"any, SparseMatrix":function(e,t){return c(t,e,a,!0)},"any, DenseMatrix":function(e,t){return p(t,e,a,!0)},"Array, any":function(e,t){return p(r(e),t,a,!1).valueOf()},"any, Array":function(e,t){return p(r(t),e,a,!0).valueOf()}})}),ms=at("equal",["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Uo({typed:t,DenseMatrix:a}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("equal",{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:i(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,i)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,i,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,i,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,i)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,i,!1)},"DenseMatrix, any":function(e,t){return d(e,t,i,!1)},"any, SparseMatrix":function(e,t){return s(t,e,i,!0)},"any, DenseMatrix":function(e,t){return d(t,e,i,!0)},"Array, any":function(e,t){return d(r(e),t,i,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,i,!0).valueOf()}})}),gs=(at("equal",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t("equal",{"any, any":function(e,t){return null===e?null===t:null===t?null===e:void 0===e?void 0===t:void 0===t?void 0===e:r(e,t)}})}),at("flatten",["typed","matrix"],e=>{var{typed:t,matrix:r}=e;return t("flatten",{Array:function(e){return Qe(G(e))},Matrix:function(e){var t=Qe(G(e.toArray()));return r(t)}})})),bs=at("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,i,a){var n=e._values,o=e._index,s=e._ptr,l=e._size,d=e._datatype,c=i._values,u=i._index,p=i._ptr,h=i._size,f=i._datatype;if(l.length!==h.length)throw new $e(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");var m,g=l[0],b=l[1],y=r,v=0,x=a;"string"==typeof d&&d===f&&(m=d,y=t.find(r,[m,m]),v=t.convert(0,m),x=t.find(a,[m,m]));var w,_,E,C,N,S=n&&c?[]:void 0,T=[],k=[],O=n&&c?[]:void 0,I=n&&c?[]:void 0,D=[],A=[];for(_=0;_{var{typed:t,matrix:r,equalScalar:i,BigNumber:a,DenseMatrix:n}=e,o=Oo({typed:t}),s=bs({typed:t,equalScalar:i}),l=Xo({typed:t,DenseMatrix:n}),d=So({typed:t}),c=To({typed:t});return t("gcd",{"number, number":Ii,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var r=new a(0);!t.isZero();){var i=e.mod(t);e=t,t=i}return e.lt(r)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return c(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return c(r(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var i=this(e,t),a=0;a{var{typed:t,isNumeric:r}=e;return t("hasNumericValue",{string:function(e){return e.trim().length>0&&!isNaN(Number(e))},any:function(e){return r(e)}})}),xs=at("hypot",["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],e=>{var{typed:t,abs:r,addScalar:i,divideScalar:a,multiplyScalar:n,sqrt:o,smaller:s,isPositive:l}=e;return t("hypot",{"... number | BigNumber":function(e){for(var t=0,d=0,c=0;c{var{smaller:t,DenseMatrix:r}=e;function i(e,t){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(t&&!p(t))throw new Error("Invalid datatype: "+t);if(f(e)||h(e)){var a=new r(e,t);this._data=a._data,this._size=a._size,this._datatype=a._datatype,this._min=null,this._max=null}else if(e&&h(e.data)&&h(e.size))this._data=e.data,this._size=e.size,this._datatype=e.datatype,this._min=void 0!==e.min?e.min:null,this._max=void 0!==e.max?e.max:null;else{if(e)throw new TypeError("Unsupported type of data ("+H(e)+")");this._data=[],this._size=[0],this._datatype=t,this._min=null,this._max=null}}return i.prototype=new r,i.prototype.type="ImmutableDenseMatrix",i.prototype.isImmutableDenseMatrix=!0,i.prototype.subset=function(e){switch(arguments.length){case 1:var t=r.prototype.subset.call(this,e);return f(t)?new i({data:t._data,size:t._size,datatype:t._datatype}):t;case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},i.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},i.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},i.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},i.prototype.clone=function(){return new i({data:G(this._data),size:G(this._size),datatype:this._datatype})},i.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},i.fromJSON=function(e){return new i(e)},i.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},i.prototype.min=function(){if(null===this._min){var e=null;this.forEach((function(r){(null===e||t(r,e))&&(e=r)})),this._min=null!==e?e:void 0}return this._min},i.prototype.max=function(){if(null===this._max){var e=null;this.forEach((function(r){(null===e||t(e,r))&&(e=r)})),this._max=null!==e?e:void 0}return this._max},i},{isClass:!0}),_s=at("Index",["ImmutableDenseMatrix"],e=>{var{ImmutableDenseMatrix:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var t=0,a=arguments.length;t{var{typed:t,matrix:r,multiplyScalar:i}=e;return t("kron",{"Matrix, Matrix":function(e,t){return r(a(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(a(e.toArray(),t))},"Array, Matrix":function(e,t){return r(a(e,t.toArray()))},"Array, Array":a});function a(e,t){if(1===je(e).length&&(e=[e]),1===je(t).length&&(t=[t]),je(e).length>2||je(t).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(e.length)+", y = "+JSON.stringify(t.length)+")");var r=[],a=[];return e.map((function(e){return t.map((function(t){return a=[],r.push(a),e.map((function(e){return t.map((function(t){return a.push(i(e,t))}))}))}))}))&&r}}),Cs=at("largerEq",["typed","config","matrix","DenseMatrix"],e=>{var{typed:t,config:r,matrix:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Uo({typed:t,DenseMatrix:a}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("largerEq",{"boolean, boolean":function(e,t){return e>=t},"number, number":function(e,t){return e>=t||_e(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gte(t)||Ha(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return-1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(i(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(i(t),e,this,!0).valueOf()}})}),Ns=at("algorithm08",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return function(e,i,a){var n=e._values,o=e._index,s=e._ptr,l=e._size,d=e._datatype,c=i._values,u=i._index,p=i._ptr,h=i._size,f=i._datatype;if(l.length!==h.length)throw new $e(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");if(!n||!c)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var m,g=l[0],b=l[1],y=r,v=0,x=a;"string"==typeof d&&d===f&&(m=d,y=t.find(r,[m,m]),v=t.convert(0,m),x=t.find(a,[m,m]));for(var w,_,E,C,N=[],S=[],T=[],k=[],O=[],I=0;I{var{typed:t,matrix:r,equalScalar:i,zeros:a,DenseMatrix:n}=e,o=Oo({typed:t}),s=wo({typed:t,equalScalar:i}),l=Ns({typed:t,equalScalar:i}),d=Xo({typed:t,DenseMatrix:n}),c=Co({typed:t,equalScalar:i}),u=So({typed:t}),p=To({typed:t});return t("leftShift",{"number, number":Oa,"BigNumber, BigNumber":_a,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():p(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):d(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):p(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,r(t)).valueOf()}})});function Ts(e){var{DenseMatrix:t}=e;return function(e,r,i){var a=e.size();if(2!==a.length)throw new RangeError("Matrix must be two dimensional (size: "+Me(a)+")");var n=a[0];if(n!==a[1])throw new RangeError("Matrix must be square (size: "+Me(a)+")");var o=[];if(f(r)){var s=r.size(),l=r._data;if(1===s.length){if(s[0]!==n)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var d=0;d{var{typed:t,matrix:r,divideScalar:i,multiplyScalar:a,subtract:n,equalScalar:o,DenseMatrix:s}=e,l=Ts({DenseMatrix:s});return t("lsolve",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=(t=l(e,t,!0))._data,d=e._size[0],c=e._size[1],u=e._values,p=e._index,h=e._ptr,f=[],m=0;mm&&(y.push(u[_]),v.push(E))}if(o(b,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var C=i(g,b),N=0,S=v.length;N{var{typed:t,matrix:r,flatten:i,size:a}=e;return t("matrixFromColumns",{"...Array":function(e){return n(e)},"...Matrix":function(e){return r(n(e.map(e=>e.toArray())))}});function n(e){if(0===e.length)throw new TypeError("At least one column is needed to construct a matrix.");for(var t=o(e[0]),r=[],a=0;a{var{typed:t,config:r,numeric:i,smaller:a}=e;return t("min",{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return gi(e,t.valueOf(),n)},"...":function(e){if(hi(e))throw new TypeError("Scalar values expected in function min");return o(e)}});function n(e,t){try{return a(e,t)?e:t}catch(e){throw $o(e,"min",t)}}function o(e){var t;if(fi(e,(function(e){try{isNaN(e)&&"number"==typeof e?t=NaN:(void 0===t||a(e,t))&&(t=e)}catch(t){throw $o(t,"min",e)}})),void 0===t)throw new Error("Cannot calculate min of an empty array");return"string"==typeof t&&(t=i(t,r.number)),t}}),Ds=at("mode",["typed","isNaN","isNumeric"],e=>{var{typed:t,isNaN:r,isNumeric:i}=e;return t("mode",{"Array | Matrix":a,"...":function(e){return a(e)}});function a(e){if(0===(e=Qe(e.valueOf())).length)throw new Error("Cannot calculate mode of an empty array");for(var t={},a=[],n=0,o=0;on&&(n=t[s],a=[s])}return a}}),As=at("nthRoots",["config","typed","divideScalar","Complex"],e=>{var{typed:t,config:r,divideScalar:i,Complex:a}=e,n=[function(e){return new a(e,0)},function(e){return new a(0,e)},function(e){return new a(-e,0)},function(e){return new a(0,-e)}];function o(e,t){if(t<0)throw new Error("Root must be greater than zero");if(0===t)throw new Error("Root must be non-zero");if(t%1!=0)throw new Error("Root must be an integer");if(0===e||0===e.abs())return[new a(0,0)];var r,i="number"==typeof e;(i||0===e.re||0===e.im)&&(r=i?2*+(e<0):0===e.im?2*+(e.re<0):2*+(e.im<0)+1);for(var o=e.arg(),s=e.abs(),l=[],d=Math.pow(s,1/t),c=0;c{var{typed:t,config:r,matrix:i,BigNumber:a}=e;return t("ones",{"":function(){return"Array"===r.matrix?n([]):n([],"default")},"...number | BigNumber | string":function(e){if("string"==typeof e[e.length-1]){var t=e.pop();return n(e,t)}return"Array"===r.matrix?n(e):n(e,"default")},Array:n,Matrix:function(e){var t=e.storage();return n(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return n(e.valueOf(),t)}});function n(e,t){var r=function(e){var t=!1;return e.forEach((function(e,r,i){l(e)&&(t=!0,i[r]=e.toNumber())})),t}(e)?new a(1):1;if(function(e){e.forEach((function(e){if("number"!=typeof e||!se(e)||e<0)throw new Error("Parameters in function ones must be positive integers")}))}(e),t){var n=i(t);return e.length>0?n.resize(e,r):n}var o=[];return e.length>0?Ve(o,e,r):o}}),Ls=at("partitionSelect",["typed","isNumeric","isNaN","compare"],e=>{var{typed:t,isNumeric:r,isNaN:i,compare:a}=e,n=a,o=(e,t)=>-a(e,t);return t("partitionSelect",{"Array | Matrix, number":function(e,t){return s(e,t,n)},"Array | Matrix, number, string":function(e,t,r){if("asc"===r)return s(e,t,n);if("desc"===r)return s(e,t,o);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":s});function s(e,t,r){if(!se(t)||t<0)throw new Error("k must be a non-negative integer");if(f(e)){if(e.size().length>1)throw new Error("Only one dimensional matrices supported");return l(e.valueOf(),t,r)}if(Array.isArray(e))return l(e,t,r)}function l(e,t,a){if(t>=e.length)throw new Error("k out of bounds");for(var n=0;n=0){var u=e[d];e[d]=e[l],e[l]=u,--d}else++l;a(e[l],c)>0&&--l,t<=l?s=l:o=l+1}return e[t]}});function Rs(e,t,r,i){if(!(this instanceof Rs))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=r,this.max=i,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+r+(null!=i?"-"+i:"")+" expected)",this.stack=(new Error).stack}Rs.prototype=new Error,Rs.prototype.constructor=Error,Rs.prototype.name="ArgumentsError",Rs.prototype.isArgumentsError=!0;var Ps=at("resize",["config","matrix"],e=>{var{config:t,matrix:r}=e;return function(e,a,n){if(2!==arguments.length&&3!==arguments.length)throw new Rs("resize",arguments.length,2,3);if(f(a)&&(a=a.valueOf()),l(a[0])&&(a=a.map((function(e){return l(e)?e.toNumber():e}))),f(e))return e.resize(a,n,!0);if("string"==typeof e)return i(e,a,n);var o=!Array.isArray(e)&&"Array"!==t.matrix;if(0===a.length){for(;Array.isArray(e);)e=e[0];return G(e)}Array.isArray(e)||(e=[e]);var s=Ve(e=G(e),a,n);return o?r(s):s};function i(e,t,r){if(void 0!==r){if("string"!=typeof r||1!==r.length)throw new TypeError("Single character expected as defaultValue")}else r=" ";if(1!==t.length)throw new $e(t.length,1);var i=t[0];if("number"!=typeof i||!se(i))throw new TypeError("Invalid size, must contain positive integers (size: "+Me(t)+")");if(e.length>i)return e.substring(0,i);if(e.length{var{typed:t,matrix:r,equalScalar:i,zeros:a,DenseMatrix:n}=e,o=Oo({typed:t}),s=wo({typed:t,equalScalar:i}),l=Ns({typed:t,equalScalar:i}),d=Xo({typed:t,DenseMatrix:n}),c=Co({typed:t,equalScalar:i}),u=So({typed:t}),p=To({typed:t});return t("rightLogShift",{"number, number":Da,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():p(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):d(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):p(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,r(t)).valueOf()}})}),Fs=r("8b17"),js=r.n(Fs);function Bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function Us(e){for(var t=1;t{var{typed:t,matrix:r,equalScalar:i,zeros:a,BigNumber:n,DenseMatrix:o}=e,s=Co({typed:t,equalScalar:i}),l=No({typed:t,DenseMatrix:o}),d=To({typed:t});return t("round",Us(Us({},zs),{},{Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw new TypeError(Vs);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(Vs);var r=t.toNumber();return e.round(r)},"number, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(Vs);return new n(e).toDecimalPlaces(t.toNumber())},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw new TypeError(Vs);return e.toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw new TypeError(Vs);return e.round(t)},"Array | Matrix":function(e){return mi(e,this,!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return d(e,t,this,!1)},"number | Complex | BigNumber, SparseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):l(t,e,this,!0)},"number | Complex | BigNumber, DenseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):d(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return d(r(e),t,this,!1).valueOf()},"number | Complex | BigNumber, Array":function(e,t){return d(r(t),e,this,!0).valueOf()}}))}),zs={number:Ui,"number, number":function(e,t){if(!se(t))throw new TypeError(Vs);if(t<0||t>15)throw new Error("Number of decimals in function round must be in the range of 0-15");return Ui(e,t)}},Hs=at("smallerEq",["typed","config","matrix","DenseMatrix"],e=>{var{typed:t,config:r,matrix:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Uo({typed:t,DenseMatrix:a}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("smallerEq",{"boolean, boolean":function(e,t){return e<=t},"number, number":function(e,t){return e<=t||_e(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.lte(t)||Ha(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return 1!==e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(i(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(i(t),e,this,!0).valueOf()}})}),Gs=at("unequal",["typed","config","equalScalar","matrix","DenseMatrix"],e=>{var{typed:t,config:r,equalScalar:i,matrix:a,DenseMatrix:n}=e,o=_o({typed:t}),s=Uo({typed:t,DenseMatrix:n}),l=No({typed:t,DenseMatrix:n}),d=So({typed:t}),c=To({typed:t});return t("unequal",{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:u(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,u)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,u,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,u,!1)},"DenseMatrix, DenseMatrix":function(e,t){return d(e,t,u)},"Array, Array":function(e,t){return this(a(e),a(t)).valueOf()},"Array, Matrix":function(e,t){return this(a(e),t)},"Matrix, Array":function(e,t){return this(e,a(t))},"SparseMatrix, any":function(e,t){return l(e,t,u,!1)},"DenseMatrix, any":function(e,t){return c(e,t,u,!1)},"any, SparseMatrix":function(e,t){return l(t,e,u,!0)},"any, DenseMatrix":function(e,t){return c(t,e,u,!0)},"Array, any":function(e,t){return c(a(e),t,u,!1).valueOf()},"any, Array":function(e,t){return c(a(t),e,u,!0).valueOf()}});function u(e,t){return!i(e,t)}}),Ws=(at("unequal",["typed","equalScalar"],e=>{var{typed:t,equalScalar:r}=e;return t("unequal",{"any, any":function(e,t){return null===e?null!==t:null===t?null!==e:void 0===e?void 0!==t:void 0===t?void 0!==e:!r(e,t)}})}),at("usolve",["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:i,multiplyScalar:a,subtract:n,equalScalar:o,DenseMatrix:s}=e,l=Ts({DenseMatrix:s});return t("usolve",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=(t=l(e,t,!0))._data,d=e._size[0],c=e._size[1],u=e._values,p=e._index,h=e._ptr,f=[],m=c-1;m>=0;m--){var g=r[m][0]||0;if(o(g,0))f[m]=[0];else{for(var b=0,y=[],v=[],x=h[m],w=h[m+1]-1;w>=x;w--){var _=p[w];_===m?b=u[w]:_=0;h--){var f=r[h][0]||0,m=void 0;if(o(f,0))m=0;else{var g=p[h][h];if(o(g,0))throw new Error("Linear system cannot be solved since matrix is singular");m=i(f,g);for(var b=h-1;b>=0;b--)r[b]=[n(r[b][0]||0,a(m,p[b][h]))]}u[h]=[m]}return new s({data:u,size:[d,1]})}})),Qs=at("xor",["typed","matrix","DenseMatrix"],e=>{var{typed:t,matrix:r,DenseMatrix:i}=e,a=_o({typed:t}),n=Uo({typed:t,DenseMatrix:i}),o=No({typed:t,DenseMatrix:i}),s=So({typed:t}),l=To({typed:t});return t("xor",{"number, number":Nn,"Complex, Complex":function(e,t){return(0!==e.re||0!==e.im)!=(0!==t.re||0!==t.im)},"BigNumber, BigNumber":function(e,t){return(!e.isZero()&&!e.isNaN())!=(!t.isZero()&&!t.isNaN())},"Unit, Unit":function(e,t){return this(e.value||0,t.value||0)},"SparseMatrix, SparseMatrix":function(e,t){return n(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return o(e,t,this,!1)},"DenseMatrix, any":function(e,t){return l(e,t,this,!1)},"any, SparseMatrix":function(e,t){return o(t,e,this,!0)},"any, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, any":function(e,t){return l(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return l(r(t),e,this,!0).valueOf()}})}),Xs=at("add",["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix"],e=>{var{typed:t,matrix:r,addScalar:i,equalScalar:a,DenseMatrix:n,SparseMatrix:o}=e,s=Oo({typed:t}),l=bs({typed:t,equalScalar:a}),d=Xo({typed:t,DenseMatrix:n}),c=So({typed:t}),u=To({typed:t});return t("add",Q({"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,i)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,i,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,i,!0)},"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,i)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"DenseMatrix, any":function(e,t){return u(e,t,i,!1)},"SparseMatrix, any":function(e,t){return d(e,t,i,!1)},"any, DenseMatrix":function(e,t){return u(t,e,i,!0)},"any, SparseMatrix":function(e,t){return d(t,e,i,!0)},"Array, any":function(e,t){return u(r(e),t,i,!1).valueOf()},"any, Array":function(e,t){return u(r(t),e,i,!0).valueOf()},"any, any":i,"any, any, ...any":function(e,t,r){for(var i=this(e,t),a=0;a{var{typed:t,equalScalar:r}=e;return function(e,i,a){var n=e._values,o=e._index,s=e._ptr,l=e._size,d=e._datatype,c=i._values,u=i._index,p=i._ptr,h=i._size,f=i._datatype;if(l.length!==h.length)throw new $e(l.length,h.length);if(l[0]!==h[0]||l[1]!==h[1])throw new RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+h+")");var m,g=l[0],b=l[1],y=r,v=0,x=a;"string"==typeof d&&d===f&&(m=d,y=t.find(r,[m,m]),v=t.convert(0,m),x=t.find(a,[m,m]));var w,_,E,C,N,S=n&&c?[]:void 0,T=[],k=[],O=S?[]:void 0,I=[];for(_=0;_{var{typed:t,matrix:r,equalScalar:i,BigNumber:a,DenseMatrix:n}=e,o=wo({typed:t,equalScalar:i}),s=_o({typed:t}),l=Ks({typed:t,equalScalar:i}),d=Co({typed:t,equalScalar:i}),c=No({typed:t,DenseMatrix:n}),u=So({typed:t}),p=To({typed:t});return t("atan2",{"number, number":Math.atan2,"BigNumber, BigNumber":function(e,t){return a.atan2(e,t)},"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return s(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return d(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return p(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return c(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return p(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return p(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return p(r(t),e,this,!0).valueOf()}})}),Js=at("bitOr",["typed","matrix","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:i,DenseMatrix:a}=e,n=Oo({typed:t}),o=bs({typed:t,equalScalar:i}),s=Xo({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("bitOr",{"number, number":Ta,"BigNumber, BigNumber":ya,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(r(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,this,!0).valueOf()}})}),Zs=at("catalan",["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],e=>{var{typed:t,addScalar:r,divideScalar:i,multiplyScalar:a,combinations:n,isNegative:o,isInteger:s}=e;return t("catalan",{"number | BigNumber":function(e){if(!s(e)||o(e))throw new TypeError("Non-negative integer value expected in function catalan");return i(n(a(e,2),e),r(e,1))}})}),el=r("e975"),tl=r.n(el),rl=at("compareNatural",["typed","compare"],e=>{var{typed:t,compare:r}=e,i=r.signatures["boolean,boolean"];return t("compareNatural",{"any, any":function(e,t){var n,o=H(e),s=H(t);if(!("number"!==o&&"BigNumber"!==o&&"Fraction"!==o||"number"!==s&&"BigNumber"!==s&&"Fraction"!==s))return"0"!==(n=r(e,t)).toString()?n>0?1:-1:tl()(o,s);if("Array"===o||"Matrix"===o||"Array"===s||"Matrix"===s)return 0!==(n=function e(t,r,i){return b(r)&&b(i)?a(t,r.toJSON().values,i.toJSON().values):b(r)?e(t,r.toArray(),i):b(i)?e(t,r,i.toArray()):g(r)?e(t,r.toJSON().data,i):g(i)?e(t,r,i.toJSON().data):Array.isArray(r)?Array.isArray(i)?a(t,r,i):e(t,r,[i]):e(t,[r],i)}(this,e,t))?n:tl()(o,s);if(o!==s)return tl()(o,s);if("Complex"===o)return function(e,t){return e.re>t.re?1:e.ret.im?1:e.imr.length?1:t.length{var{typed:t,equal:r}=e;return t("deepEqual",{"any, any":function(e,t){return function e(t,i){if(Array.isArray(t)){if(Array.isArray(i)){var a=t.length;if(a!==i.length)return!1;for(var n=0;n{var{typed:t,matrix:r,subtract:i,number:a}=e;return t("diff",{"Array | Matrix":function(e){return f(e)?r(o(e.toArray())):o(e)},"Array | Matrix, number":function(e,t){if(!se(t))throw new RangeError("Dimension must be a whole number");return f(e)?r(n(e.toArray(),t)):n(e,t)},"Array | Matrix, BigNumber":function(e,t){return this(e,a(t))}});function n(e,t){if(f(e)&&(e=e.toArray()),!Array.isArray(e))throw RangeError("Array/Matrix does not have that many dimensions");if(t>0){var r=[];return e.forEach(e=>{r.push(n(e,t-1))}),r}if(0===t)return o(e);throw RangeError("Cannot have negative dimension")}function o(e){var t=[],r=e.length;if(r<2)return e;for(var i=1;i{var{typed:t,addScalar:r,multiplyScalar:i,conj:a,size:n}=e;return t("dot",{"Array | DenseMatrix, Array | DenseMatrix":function(e,n){var l=o(e,n),d=f(e)?e._data:e,c=f(e)?e._datatype:void 0,u=f(n)?n._data:n,p=f(n)?n._datatype:void 0,h=2===s(e).length,m=2===s(n).length,g=r,b=i;if(c&&p&&c===p&&"string"==typeof c){var y=c;g=t.find(r,[y,y]),b=t.find(i,[y,y])}if(!h&&!m){for(var v=b(a(d[0]),u[0]),x=1;xm?h++:f===m&&(d=c(d,u(n[p],l[h])),p++,h++)}return d}});function o(e,t){var r,i,a=s(e),n=s(t);if(1===a.length)r=a[0];else{if(2!==a.length||1!==a[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+a.join(", ")+")");r=a[0]}if(1===n.length)i=n[0];else{if(2!==n.length||1!==n[1])throw new RangeError("Expected a column vector, instead got a matrix of size ("+n.join(", ")+")");i=n[0]}if(r!==i)throw new RangeError("Vectors must have equal length ("+r+" != "+i+")");if(0===r)throw new RangeError("Cannot calculate the dot product of empty vectors");return r}function s(e){return f(e)?e.size():n(e)}}),ol=at("equalText",["typed","compareText","isZero"],e=>{var{typed:t,compareText:r,isZero:i}=e;return t("equalText",{"any, any":function(e,t){return i(r(e,t))}})}),sl=at("floor",["typed","config","round","matrix","equalScalar"],e=>{var{typed:t,config:r,round:i,matrix:a,equalScalar:n}=e,o=Co({typed:t,equalScalar:n}),s=To({typed:t});return t("floor",{number:function(e){return _e(e,i(e),r.epsilon)?i(e):Math.floor(e)},"number, number":function(e,t){if(_e(e,i(e,t),r.epsilon))return i(e,t);var[a,n]="".concat(e,"e").split("e"),o=Math.floor(Number("".concat(a,"e").concat(Number(n)+t)));return[a,n]="".concat(o,"e").split("e"),Number("".concat(a,"e").concat(Number(n)-t))},Complex:function(e){return e.floor()},"Complex, number":function(e,t){return e.floor(t)},BigNumber:function(e){return Ha(e,i(e),r.epsilon)?i(e):e.floor()},"BigNumber, BigNumber":function(e,t){return Ha(e,i(e,t),r.epsilon)?i(e,t):e.toDecimalPlaces(t.toNumber(),oe.a.ROUND_FLOOR)},Fraction:function(e){return e.floor()},"Fraction, number":function(e,t){return e.floor(t)},"Array | Matrix":function(e){return mi(e,this,!0)},"Array | Matrix, number":function(e,t){return mi(e,e=>this(e,t),!0)},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"number | Complex | BigNumber, Array":function(e,t){return s(a(t),e,this,!0).valueOf()}})}),ll=at("identity",["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],e=>{var{typed:t,config:r,matrix:i,BigNumber:a,DenseMatrix:n,SparseMatrix:o}=e;return t("identity",{"":function(){return"Matrix"===r.matrix?i([]):[]},string:function(e){return i(e)},"number | BigNumber":function(e){return d(e,e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, string":function(e,t){return d(e,e,t)},"number | BigNumber, number | BigNumber":function(e,t){return d(e,t,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(e,t,r){return d(e,t,r)},Array:function(e){return s(e)},"Array, string":function(e,t){return s(e,t)},Matrix:function(e){return s(e.valueOf(),e.storage())},"Matrix, string":function(e,t){return s(e.valueOf(),t)}});function s(e,t){switch(e.length){case 0:return t?i(t):[];case 1:return d(e[0],e[0],t);case 2:return d(e[0],e[1],t);default:throw new Error("Vector containing two values expected")}}function d(e,t,r){var i=l(e)||l(t)?a:null;if(l(e)&&(e=e.toNumber()),l(t)&&(t=t.toNumber()),!se(e)||e<1)throw new Error("Parameters in function identity must be positive integers");if(!se(t)||t<1)throw new Error("Parameters in function identity must be positive integers");var s=i?new a(1):1,d=i?new i(0):0,c=[e,t];if(r){if("sparse"===r)return o.diagonal(c,s,0,d);if("dense"===r)return n.diagonal(c,s,0,d);throw new TypeError('Unknown matrix type "'.concat(r,'"'))}for(var u=Ve([],c,d),p=e{var{typed:t,config:r,matrix:i,DenseMatrix:a}=e,n=_o({typed:t}),o=Uo({typed:t,DenseMatrix:a}),s=No({typed:t,DenseMatrix:a}),l=So({typed:t}),d=To({typed:t});return t("larger",{"boolean, boolean":function(e,t){return e>t},"number, number":function(e,t){return e>t&&!_e(e,t,r.epsilon)},"BigNumber, BigNumber":function(e,t){return e.gt(t)&&!Ha(e,t,r.epsilon)},"Fraction, Fraction":function(e,t){return 1===e.compare(t)},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw new Error("Cannot compare units with different base");return this(e.value,t.value)},"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,this)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return s(e,t,this,!1)},"DenseMatrix, any":function(e,t){return d(e,t,this,!1)},"any, SparseMatrix":function(e,t){return s(t,e,this,!0)},"any, DenseMatrix":function(e,t){return d(t,e,this,!0)},"Array, any":function(e,t){return d(i(e),t,this,!1).valueOf()},"any, Array":function(e,t){return d(i(t),e,this,!0).valueOf()}})}),cl=at("log",["config","typed","divideScalar","Complex"],e=>{var{typed:t,config:r,divideScalar:i,Complex:a}=e;return t("log",{number:function(e){return e>=0||r.predictable?Ai(e):new a(e,0).log()},Complex:function(e){return e.log()},BigNumber:function(e){return!e.isNegative()||r.predictable?e.ln():new a(e.toNumber(),0).log()},"Array | Matrix":function(e){return mi(e,this)},"any, any":function(e,t){return i(this(e),this(t))}})}),ul=at("lsolveAll",["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],e=>{var{typed:t,matrix:r,divideScalar:i,multiplyScalar:a,subtract:n,equalScalar:o,DenseMatrix:s}=e,l=Ts({DenseMatrix:s});return t("lsolveAll",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],d=e._size[0],c=e._size[1],u=e._values,p=e._index,h=e._ptr,f=0;ff&&(y.push(u[E]),v.push(C))}if(o(_,0))if(o(b[f],0)){if(0===g){var N=[...b];N[f]=1;for(var S=0,T=v.length;Snew s({data:e.map(e=>[e]),size:[d,1]}))}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return d(e,t)},"Array, Array | Matrix":function(e,t){return d(r(e),t).map(e=>e.valueOf())}});function d(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],d=e._data,c=e._size[0],u=e._size[1],p=0;pnew s({data:e.map(e=>[e]),size:[c,1]}))}}),pl=at("matrixFromRows",["typed","matrix","flatten","size"],e=>{var{typed:t,matrix:r,flatten:i,size:a}=e;return t("matrixFromRows",{"...Array":function(e){return n(e)},"...Matrix":function(e){return r(n(e.map(e=>e.toArray())))}});function n(e){if(0===e.length)throw new TypeError("At least one row is needed to construct a matrix.");var t=o(e[0]),r=[];for(var a of e){var n=o(a);if(n!==t)throw new TypeError("The vectors had different length: "+(0|t)+" ≠ "+(0|n));r.push(i(a))}return r}function o(e){var t=a(e);if(1===t.length)return t[0];if(2===t.length){if(1===t[0])return t[1];if(1===t[1])return t[0];throw new TypeError("At least one of the arguments is not a vector.")}throw new TypeError("Only one- or two-dimensional vectors are supported.")}}),hl=at("multiply",["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],e=>{var{typed:t,matrix:r,addScalar:i,multiplyScalar:a,equalScalar:n,dot:o}=e,s=Co({typed:t,equalScalar:n}),l=To({typed:t});function d(e,t){switch(e.length){case 1:switch(t.length){case 1:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(e[0]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+e[0]+") must match Matrix rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;case 2:switch(t.length){case 1:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+e[1]+") must match Vector length ("+t[0]+")");break;case 2:if(e[1]!==t[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+e[1]+") must match Matrix B rows ("+t[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+t.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+e.length+" dimensions)")}}function c(e,r){if("dense"!==r.storage())throw new Error("Support for SparseMatrix not implemented");return function(e,r){var n,o=e._data,s=e._size,l=e._datatype,d=r._data,c=r._size,u=r._datatype,p=s[0],h=c[1],f=i,m=a;l&&u&&l===u&&"string"==typeof l&&(n=l,f=t.find(i,[n,n]),m=t.find(a,[n,n]));for(var g=[],b=0;bS)for(var k=0,O=0;O{var{typed:t,config:r,identity:i,multiply:a,matrix:n,number:o,fraction:s,Complex:l}=e;return t("pow",{"number, number":d,"Complex, Complex":function(e,t){return e.pow(t)},"BigNumber, BigNumber":function(e,t){return t.isInteger()||e>=0||r.predictable?e.pow(t):new l(e.toNumber(),0).pow(t.toNumber(),0)},"Fraction, Fraction":function(e,t){var i=e.pow(t);if(null!=i)return i;if(r.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return d(e.valueOf(),t.valueOf())},"Array, number":c,"Array, BigNumber":function(e,t){return c(e,t.toNumber())},"Matrix, number":u,"Matrix, BigNumber":function(e,t){return u(e,t.toNumber())},"Unit, number | BigNumber":function(e,t){return e.pow(t)}});function d(e,t){if(r.predictable&&!se(t)&&e<0)try{var i=s(t),a=o(i);if((t===a||Math.abs((t-a)/t)<1e-14)&&i.d%2==1)return(i.n%2==0?1:-1)*Math.pow(-e,t)}catch(e){}return r.predictable&&(e<-1&&t===1/0||e>-1&&e<0&&t===-1/0)?NaN:se(t)||e>=0||r.predictable?Bi(e,t):e*e<1&&t===1/0||e*e>1&&t===-1/0?0:new l(e,0).pow(t,0)}function c(e,t){if(!se(t)||t<0)throw new TypeError("For A^b, b must be a positive integer (value is "+t+")");var r=je(e);if(2!==r.length)throw new Error("For A^b, A must be 2 dimensional (A has "+r.length+" dimensions)");if(r[0]!==r[1])throw new Error("For A^b, A must be square (size is "+r[0]+"x"+r[1]+")");for(var n=i(r[0]).valueOf(),o=e;t>=1;)1==(1&t)&&(n=a(o,n)),t>>=1,o=a(o,o);return n}function u(e,t){return n(c(e.valueOf(),t))}}),ml=at("qr",["typed","matrix","zeros","identity","isZero","equal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtract","complex"],e=>{var{typed:t,matrix:r,zeros:i,identity:a,isZero:o,equal:s,sign:l,sqrt:d,conj:c,unaryMinus:u,addScalar:p,divideScalar:h,multiplyScalar:f,subtract:m,complex:g}=e;return n()(t("qr",{DenseMatrix:function(e){return y(e)},SparseMatrix:function(e){return function(e){throw new Error("qr not implemented for sparse matrices yet")}()},Array:function(e){var t=y(r(e));return{Q:t.Q.valueOf(),R:t.R.valueOf()}}}),{_denseQRimpl:b});function b(e){var t,r,n,g=e._size[0],b=e._size[1],y=a([g],"dense"),v=y._data,x=e.clone(),w=x._data,_=i([g],"");for(n=0;n0)for(var i="Complex"===r[0][0].type?g(0):0,a=0;a{var{typed:t,config:r,matrix:i,bignumber:a,smaller:n,smallerEq:o,larger:s,largerEq:l}=e;return t("range",{string:c,"string, boolean":c,"number, number":function(e,t){return d(u(e,t,1))},"number, number, number":function(e,t,r){return d(u(e,t,r))},"number, number, boolean":function(e,t,r){return d(r?p(e,t,1):u(e,t,1))},"number, number, number, boolean":function(e,t,r,i){return d(i?p(e,t,r):u(e,t,r))},"BigNumber, BigNumber":function(e,t){return d(h(e,t,new(0,e.constructor)(1)))},"BigNumber, BigNumber, BigNumber":function(e,t,r){return d(h(e,t,r))},"BigNumber, BigNumber, boolean":function(e,t,r){var i=e.constructor;return d(r?f(e,t,new i(1)):h(e,t,new i(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(e,t,r,i){return d(i?f(e,t,r):h(e,t,r))}});function d(e){return"Matrix"===r.matrix?i?i(e):Lo():e}function c(e,t){var i=function(e){var t=e.split(":").map((function(e){return Number(e)}));if(t.some((function(e){return isNaN(e)})))return null;switch(t.length){case 2:return{start:t[0],end:t[1],step:1};case 3:return{start:t[0],end:t[2],step:t[1]};default:return null}}(e);if(!i)throw new SyntaxError('String "'+e+'" is no valid range');return"BigNumber"===r.number?(void 0===a&&Ao(),d((t?f:h)(a(i.start),a(i.end),a(i.step)))):d((t?p:u)(i.start,i.end,i.step))}function u(e,t,r){var i=[],a=e;if(r>0)for(;n(a,t);)i.push(a),a+=r;else if(r<0)for(;s(a,t);)i.push(a),a+=r;return i}function p(e,t,r){var i=[],a=e;if(r>0)for(;o(a,t);)i.push(a),a+=r;else if(r<0)for(;l(a,t);)i.push(a),a+=r;return i}function h(e,t,r){var i=a(0),o=[],l=e;if(r.gt(i))for(;n(l,t);)o.push(l),l=l.plus(r);else if(r.lt(i))for(;s(l,t);)o.push(l),l=l.plus(r);return o}function f(e,t,r){var i=a(0),n=[],s=e;if(r.gt(i))for(;o(s,t);)n.push(s),s=s.plus(r);else if(r.lt(i))for(;l(s,t);)n.push(s),s=s.plus(r);return n}}),bl=at("rightArithShift",["typed","matrix","equalScalar","zeros","DenseMatrix"],e=>{var{typed:t,matrix:r,equalScalar:i,zeros:a,DenseMatrix:n}=e,o=Oo({typed:t}),s=wo({typed:t,equalScalar:i}),l=Ns({typed:t,equalScalar:i}),d=Xo({typed:t,DenseMatrix:n}),c=Co({typed:t,equalScalar:i}),u=So({typed:t}),p=To({typed:t});return t("rightArithShift",{"number, number":Ia,"BigNumber, BigNumber":Ea,"SparseMatrix, SparseMatrix":function(e,t){return l(e,t,this,!1)},"SparseMatrix, DenseMatrix":function(e,t){return s(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():c(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return i(t,0)?e.clone():p(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):d(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return i(e,0)?a(t.size(),t.storage()):p(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return this(r(e),t).valueOf()},"number | BigNumber, Array":function(e,t){return this(e,r(t)).valueOf()}})}),yl=at("row",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:i,range:a}=e;return t("row",{"Matrix, number":n,"Array, number":function(e,t){return n(i(G(e)),t).valueOf()}});function n(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Ue(t,e.size()[0]);var i=a(0,e.size()[1]),n=new r(t,i);return e.subset(n)}}),vl=at("setCartesian",["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:a,Index:n,DenseMatrix:o}=e;return t("setCartesian",{"Array | Matrix, Array | Matrix":function(e,t){var s=[];if(0!==i(r(e),new n(0))&&0!==i(r(t),new n(0))){var l=Qe(Array.isArray(e)?e:e.toArray()).sort(a),d=Qe(Array.isArray(t)?t:t.toArray()).sort(a);s=[];for(var c=0;c{var{typed:t,size:r,subset:i,compareNatural:a,Index:n,DenseMatrix:o}=e;return t("setDistinct",{"Array | Matrix":function(e){var t;if(0===i(r(e),new n(0)))t=[];else{var s=Qe(Array.isArray(e)?e:e.toArray()).sort(a);(t=[]).push(s[0]);for(var l=1;l{var{typed:t,size:r,subset:i,compareNatural:a,Index:n}=e;return t("setIsSubset",{"Array | Matrix, Array | Matrix":function(e,t){if(0===i(r(e),new n(0)))return!0;if(0===i(r(t),new n(0)))return!1;for(var o,s=et(Qe(Array.isArray(e)?e:e.toArray()).sort(a)),l=et(Qe(Array.isArray(t)?t:t.toArray()).sort(a)),d=0;d{var{typed:t,size:r,subset:i,compareNatural:a,Index:n}=e;return t("setPowerset",{"Array | Matrix":function(e){if(0===i(r(e),new n(0)))return[];for(var t=Qe(Array.isArray(e)?e:e.toArray()).sort(a),s=[],l=0;l.toString(2).length<=t.length;)s.push(o(t,l.toString(2).split("").reverse())),l++;return function(e){for(var t=[],r=e.length-1;r>0;r--)for(var i=0;ie[i+1].length&&(t=e[i],e[i]=e[i+1],e[i+1]=t);return e}(s)}});function o(e,t){for(var r=[],i=0;i=0;){var l=r[o+s],d=r[i+l];-1===d?(s--,n[t++]=l):(r[i+l]=r[a+d],r[o+ ++s]=d)}return t}function Cl(e){return-e-2}var Nl=at("csAmd",["add","multiply","transpose"],e=>{var{add:t,multiply:r,transpose:i}=e;return function(e,o){if(!o||e<=0||e>3)return null;var s=o._size,l=s[0],d=s[1],c=0,u=Math.max(16,10*Math.sqrt(d)),p=function(e,a,n,o,s){var l=i(a);if(1===e&&o===n)return t(a,l);if(2===e){for(var d=l._index,c=l._ptr,u=0,p=0;ps))for(var f=c[p+1];ho)r[s+p]=0,r[a+p]=-1,u++,t[p]=Cl(e),r[s+e]++;else{var f=r[l+h];-1!==f&&(d[f]=p),r[c+p]=r[l+h],r[l+h]=p}}return u}(d,I,M,F,$,j,u,L,P,U,R),z=0;qH?(y=m,v=Q,x=M[0+m]-H):(v=I[y=O[Q++]],x=M[0+y]),b=1;b<=x;b++)(w=M[L+(h=O[v++])])<=0||(W+=w,M[L+h]=-w,O[K++]=h,-1!==M[R+h]&&(U[M[R+h]]=U[h]),-1!==U[h]?M[R+U[h]]=M[R+h]:M[P+M[F+h]]=M[R+h]);y!==m&&(I[y]=Cl(m),M[j+y]=0)}for(0!==H&&(D=K),M[F+m]=W,I[m]=X,M[0+m]=K-X,M[$+m]=-2,V=a(V,c,M,j,d),_=X;_=V?M[j+y]-=w:0!==M[j+y]&&(M[j+y]=M[F+y]+Y)}for(_=X;_0?(k+=J,O[S++]=y,T+=y):(I[y]=Cl(m),M[j+y]=0)}M[$+h]=S-C+1;var Z=S,ee=C+M[0+h];for(Q=N+1;Q=0))for(h=M[B+(T=U[h])],M[B+T]=-1;-1!==h&&-1!==M[R+h];h=M[R+h],V++){for(x=M[0+h],E=M[$+h],Q=I[h]+1;Q<=I[h]+x-1;Q++)M[j+O[Q]]=V;var re=h;for(f=M[R+h];-1!==f;){var ie=M[0+f]===x&&M[$+f]===E;for(Q=I[f]+1;ie&&Q<=I[f]+x-1;Q++)M[j+O[Q]]!==V&&(ie=0);ie?(I[f]=Cl(h),M[L+h]+=M[L+f],M[L+f]=0,M[$+f]=-1,f=M[R+f],M[R+re]=f):(re=f,f=M[R+f])}}for(Q=X,_=X;_=0;f--)M[L+f]>0||(M[R+f]=M[P+I[f]],M[P+I[f]]=f);for(y=d;y>=0;y--)M[L+y]<=0||-1!==I[y]&&(M[R+y]=M[P+I[y]],M[P+I[y]]=y);for(m=0,h=0;h<=d;h++)-1===I[h]&&(m=El(h,m,M,P,R,A,j));return A.splice(A.length-1,1),A};function a(e,t,r,i,a){if(e<2||e+t<0){for(var n=0;n{var{transpose:t}=e;return function(e,r,i,a){if(!e||!r||!i)return null;var n,o,s,l,d,c,u,p=e._size,h=p[0],f=p[1],m=4*f+(a?f+h+1:0),g=[],b=f,y=2*f,v=3*f,x=4*f,w=5*f+1;for(s=0;s=1&&_[o]++,2===S.jleaf&&_[S.q]--}-1!==r[o]&&(g[0+o]=r[o])}for(o=0;o{var{add:t,multiply:r,transpose:i}=e,a=Nl({add:t,multiply:r,transpose:i}),n=Tl({transpose:i});return function(e,t,r){var i,o=t._ptr,s=t._size[1],l={};if(l.q=a(e,t),e&&!l.q)return null;if(r){var d=e?function(e,t,r,i){for(var a=e._values,n=e._index,o=e._ptr,s=e._size,l=e._datatype,d=s[0],c=s[1],u=i&&e._values?[]:null,p=[],h=[],f=0,m=0;m=0;r--)-1!==e[r]&&(n[o+r]=n[0+e[r]],n[0+e[r]]=r);for(r=0;r=0;l--)for(c=r[l],u=r[l+1],d=c;d=0;s--)h[s]=-1,-1!==(l=f[s])&&(0==m[y+l]++&&(m[b+l]=s),m[0+s]=m[g+l],m[g+l]=s);for(t.lnz=0,t.m2=n,l=0;l=0;){e=i[u];var p=a?a[e]:e;Ol(d,e)||(Il(d,e),i[c+u]=p<0?0:Dl(d[p]));var h=1;for(o=i[c+u],s=p<0?0:Dl(d[p+1]);o{var{divideScalar:t,multiply:r,subtract:i}=e;return function(e,a,n,o,s,l,d){var c,u,p,h,f=e._values,m=e._index,g=e._ptr,b=e._size[1],y=a._values,v=a._index,x=a._ptr,w=function(e,t,r,i,a){var n,o,s,l=e._ptr,d=e._size,c=t._index,u=t._ptr,p=d[1],h=p;for(o=u[r],s=u[r+1],n=o;n{var{abs:t,divideScalar:r,multiply:i,subtract:a,larger:n,largerEq:o,SparseMatrix:s}=e,l=Ml({divideScalar:r,multiply:i,subtract:a});return function(e,a,d){if(!e)return null;var c,u=e._size[1],p=100,h=100;a&&(c=a.q,p=a.lnz||p,h=a.unz||h);var f,m,g=[],b=[],y=[],v=new s({values:g,index:b,ptr:y,size:[u,u]}),x=[],w=[],_=[],E=new s({values:x,index:w,ptr:_,size:[u,u]}),C=[],N=[],S=[];for(f=0;f{var{typed:t,abs:r,add:i,multiply:a,transpose:n,divideScalar:o,subtract:s,larger:l,largerEq:d,SparseMatrix:c}=e,u=kl({add:i,multiply:a,transpose:n}),p=Ll({abs:r,divideScalar:o,multiply:a,subtract:s,larger:l,largerEq:d,SparseMatrix:c});return t("slu",{"SparseMatrix, number, number":function(e,t,r){if(!se(t)||t<0||t>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(r<0||r>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var i=u(t,e,!1),a=p(e,i,r);return{L:a.L,U:a.U,p:a.pinv,q:i.q,toString:function(){return"L: "+this.L.toString()+"\nU: "+this.U.toString()+"\np: "+this.p.toString()+(this.q?"\nq: "+this.q.toString():"")+"\n"}}}})}),Pl=at("sum",["typed","config","add","numeric"],e=>{var{typed:t,config:r,add:i,numeric:a}=e;return t("sum",{"Array | Matrix":n,"Array | Matrix, number | BigNumber":function(e,t){try{return gi(e,t,i)}catch(e){throw $o(e,"sum")}},"...":function(e){if(hi(e))throw new TypeError("Scalar values expected in function sum");return n(e)}});function n(e){var t;return fi(e,(function(e){try{t=void 0===t?e:i(t,e)}catch(t){throw $o(t,"sum",e)}})),void 0===t&&(t=a(0,r.number)),"string"==typeof t&&(t=a(t,r.number)),t}}),$l=at("trace",["typed","matrix","add"],e=>{var{typed:t,matrix:r,add:i}=e;return t("trace",{Array:function(e){return a(r(e))},SparseMatrix:function(e){var t=e._values,r=e._index,a=e._ptr,n=e._size,o=n[0],s=n[1];if(o===s){var l=0;if(t.length>0)for(var d=0;dd)break}return l}throw new RangeError("Matrix must be square (size: "+Me(n)+")")},DenseMatrix:a,any:G});function a(e){var t=e._size,r=e._data;switch(t.length){case 1:if(1===t[0])return G(r[0]);throw new RangeError("Matrix must be square (size: "+Me(t)+")");case 2:var a=t[0];if(a===t[1]){for(var n=0,o=0;o{var{typed:t,matrix:r,divideScalar:i,multiplyScalar:a,subtract:n,equalScalar:o,DenseMatrix:s}=e,l=Ts({DenseMatrix:s});return t("usolveAll",{"SparseMatrix, Array | Matrix":function(e,t){return function(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],d=e._size[0],c=e._size[1],u=e._values,p=e._index,h=e._ptr,f=c-1;f>=0;f--)for(var m=r.length,g=0;g=x;E--){var C=p[E];C===f?_=u[E]:Cnew s({data:e.map(e=>[e]),size:[d,1]}))}(e,t)},"DenseMatrix, Array | Matrix":function(e,t){return d(e,t)},"Array, Array | Matrix":function(e,t){return d(r(e),t).map(e=>e.valueOf())}});function d(e,t){for(var r=[l(e,t,!0)._data.map(e=>e[0])],d=e._data,c=e._size[0],u=e._size[1]-1;u>=0;u--)for(var p=r.length,h=0;h=0;g--)m[g]=n(m[g],d[g][u]);r.push(m)}}else{if(0===h)return[];r.splice(h,1),h-=1,p-=1}else{f[u]=i(f[u],d[u][u]);for(var b=u-1;b>=0;b--)f[b]=n(f[b],a(f[u],d[b][u]))}}return r.map(e=>new s({data:e.map(e=>[e]),size:[c,1]}))}}),jl=at("asin",["typed","config","Complex"],e=>{var{typed:t,config:r,Complex:i}=e;return t("asin",{number:function(e){return e>=-1&&e<=1||r.predictable?Math.asin(e):new i(e,0).asin()},Complex:function(e){return e.asin()},BigNumber:function(e){return e.asin()},"Array | Matrix":function(e){return mi(e,this,!0)}})}),Bl=at("ceil",["typed","config","round","matrix","equalScalar"],e=>{var{typed:t,config:r,round:i,matrix:a,equalScalar:n}=e,o=Co({typed:t,equalScalar:n}),s=To({typed:t});return t("ceil",{number:function(e){return _e(e,i(e),r.epsilon)?i(e):Si(e)},"number, number":function(e,t){if(_e(e,i(e,t),r.epsilon))return i(e,t);var[a,n]="".concat(e,"e").split("e"),o=Math.ceil(Number("".concat(a,"e").concat(Number(n)+t)));return[a,n]="".concat(o,"e").split("e"),Number("".concat(a,"e").concat(Number(n)-t))},Complex:function(e){return e.ceil()},"Complex, number":function(e,t){return e.ceil(t)},BigNumber:function(e){return Ha(e,i(e),r.epsilon)?i(e):e.ceil()},"BigNumber, BigNumber":function(e,t){return Ha(e,i(e,t),r.epsilon)?i(e,t):e.toDecimalPlaces(t.toNumber(),oe.a.ROUND_CEIL)},Fraction:function(e){return e.ceil()},"Fraction, number":function(e,t){return e.ceil(t)},"Array | Matrix":function(e){return mi(e,this,!0)},"Array | Matrix, number":function(e,t){return mi(e,e=>this(e,t),!0)},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"number | Complex | BigNumber, Array":function(e,t){return s(a(t),e,this,!0).valueOf()}})}),Ul=at("column",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:i,range:a}=e;return t("column",{"Matrix, number":n,"Array, number":function(e,t){return n(i(G(e)),t).valueOf()}});function n(e,t){if(2!==e.size().length)throw new Error("Only two dimensional matrix is supported");Ue(t,e.size()[1]);var i=a(0,e.size()[0]),n=new r(i,t);return e.subset(n)}}),Vl=at("composition",["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],e=>{var{typed:t,addScalar:r,combinations:i,isPositive:a,isNegative:n,isInteger:o,larger:s}=e;return t("composition",{"number | BigNumber, number | BigNumber":function(e,t){if(!(o(e)&&a(e)&&o(t)&&a(t)))throw new TypeError("Positive integer value expected in function composition");if(s(t,e))throw new TypeError("k must be less than or equal to n in function composition");return i(r(e,-1),r(t,-1))}})}),ql=at("cross",["typed","matrix","subtract","multiply"],e=>{var{typed:t,matrix:r,subtract:i,multiply:a}=e;return t("cross",{"Matrix, Matrix":function(e,t){return r(n(e.toArray(),t.toArray()))},"Matrix, Array":function(e,t){return r(n(e.toArray(),t))},"Array, Matrix":function(e,t){return r(n(e,t.toArray()))},"Array, Array":n});function n(e,t){var r=Math.max(je(e).length,je(t).length);e=Ge(e),t=Ge(t);var n=je(e),o=je(t);if(1!==n.length||1!==o.length||3!==n[0]||3!==o[0])throw new RangeError("Vectors with length 3 expected (Size A = ["+n.join(", ")+"], B = ["+o.join(", ")+"])");var s=[i(a(e[1],t[2]),a(e[2],t[1])),i(a(e[2],t[0]),a(e[0],t[2])),i(a(e[0],t[1]),a(e[1],t[0]))];return r>1?[s]:s}}),zl=at("distance",["typed","addScalar","subtract","divideScalar","multiplyScalar","unaryMinus","sqrt","abs"],e=>{var{typed:t,addScalar:r,subtract:i,multiplyScalar:a,divideScalar:n,unaryMinus:o,sqrt:s,abs:d}=e;return t("distance",{"Array, Array, Array":function(e,t,r){if(2===e.length&&2===t.length&&2===r.length){if(!u(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!u(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!u(r))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");var s=n(i(r[1],r[0]),i(t[1],t[0])),l=a(a(s,s),t[0]),d=o(a(s,t[0])),c=e[1];return g(e[0],e[1],l,d,c)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(e,t,r){if(2===Object.keys(e).length&&2===Object.keys(t).length&&2===Object.keys(r).length){if(!u(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!u(t))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!u(r))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"lineOnePtX"in t&&"lineOnePtY"in t&&"lineTwoPtX"in r&&"lineTwoPtY"in r){var s=n(i(r.lineTwoPtY,r.lineTwoPtX),i(t.lineOnePtY,t.lineOnePtX)),l=a(a(s,s),t.lineOnePtX),d=o(a(s,t.lineOnePtX)),c=e.pointX;return g(e.pointX,e.pointY,l,d,c)}throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(e,t){if(2===e.length&&3===t.length){if(!u(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!p(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return g(e[0],e[1],t[0],t[1],t[2])}if(3===e.length&&6===t.length){if(!p(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!f(t))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return b(e[0],e[1],e[2],t[0],t[1],t[2],t[3],t[4],t[5])}if(e.length===t.length&&e.length>0){if(!h(e))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!h(t))throw new TypeError("All values of an array should be numbers or BigNumbers");return y(e,t)}throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(e,t){if(2===Object.keys(e).length&&3===Object.keys(t).length){if(!u(e))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!p(t))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"xCoeffLine"in t&&"yCoeffLine"in t&&"constant"in t)return g(e.pointX,e.pointY,t.xCoeffLine,t.yCoeffLine,t.constant);throw new TypeError("Key names do not match")}if(3===Object.keys(e).length&&6===Object.keys(t).length){if(!p(e))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!f(t))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in e&&"pointY"in e&&"x0"in t&&"y0"in t&&"z0"in t&&"a"in t&&"b"in t&&"c"in t)return b(e.pointX,e.pointY,e.pointZ,t.x0,t.y0,t.z0,t.a,t.b,t.c);throw new TypeError("Key names do not match")}if(2===Object.keys(e).length&&2===Object.keys(t).length){if(!u(e))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!u(t))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointTwoX"in t&&"pointTwoY"in t)return y([e.pointOneX,e.pointOneY],[t.pointTwoX,t.pointTwoY]);throw new TypeError("Key names do not match")}if(3===Object.keys(e).length&&3===Object.keys(t).length){if(!p(e))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!p(t))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in e&&"pointOneY"in e&&"pointOneZ"in e&&"pointTwoX"in t&&"pointTwoY"in t&&"pointTwoZ"in t)return y([e.pointOneX,e.pointOneY,e.pointOneZ],[t.pointTwoX,t.pointTwoY,t.pointTwoZ]);throw new TypeError("Key names do not match")}throw new TypeError("Invalid Arguments: Try again")},Array:function(e){if(!function(e){if(2===e[0].length&&c(e[0][0])&&c(e[0][1])){if(e.some(e=>2!==e.length||!c(e[0])||!c(e[1])))return!1}else{if(!(3===e[0].length&&c(e[0][0])&&c(e[0][1])&&c(e[0][2])))return!1;if(e.some(e=>3!==e.length||!c(e[0])||!c(e[1])||!c(e[2])))return!1}return!0}(e))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return function(e){for(var t=[],r=[],i=[],a=0;a{var{typed:t,matrix:r,equalScalar:i,multiplyScalar:a}=e,n=wo({typed:t,equalScalar:i}),o=Ks({typed:t,equalScalar:i}),s=Co({typed:t,equalScalar:i}),l=So({typed:t}),d=To({typed:t});return t("dotMultiply",{"any, any":a,"SparseMatrix, SparseMatrix":function(e,t){return o(e,t,a,!1)},"SparseMatrix, DenseMatrix":function(e,t){return n(t,e,a,!0)},"DenseMatrix, SparseMatrix":function(e,t){return n(e,t,a,!1)},"DenseMatrix, DenseMatrix":function(e,t){return l(e,t,a)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, any":function(e,t){return s(e,t,a,!1)},"DenseMatrix, any":function(e,t){return d(e,t,a,!1)},"any, SparseMatrix":function(e,t){return s(t,e,a,!0)},"any, DenseMatrix":function(e,t){return d(t,e,a,!0)},"Array, any":function(e,t){return d(r(e),t,a,!1).valueOf()},"any, Array":function(e,t){return d(r(t),e,a,!0).valueOf()}})}),Gl=at("FibonacciHeap",["smaller","larger"],e=>{var{smaller:t,larger:r}=e,i=1/Math.log((1+Math.sqrt(5))/2);function a(){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}function n(e,t,r){t.left.right=t.right,t.right.left=t.left,r.degree--,r.child===t&&(r.child=t.right),0===r.degree&&(r.child=null),t.left=e,t.right=e.right,e.right=t,t.right.left=t,t.parent=null,t.mark=!1}a.prototype.type="FibonacciHeap",a.prototype.isFibonacciHeap=!0,a.prototype.insert=function(e,r){var i={key:e,value:r,degree:0};if(this._minimum){var a=this._minimum;i.left=a,i.right=a.right,a.right=i,i.right.left=i,t(e,a.key)&&(this._minimum=i)}else i.left=i,i.right=i,this._minimum=i;return this._size++,i},a.prototype.size=function(){return this._size},a.prototype.clear=function(){this._minimum=null,this._size=0},a.prototype.isEmpty=function(){return 0===this._size},a.prototype.extractMinimum=function(){var e=this._minimum;if(null===e)return e;for(var a=this._minimum,n=e.degree,s=e.child;n>0;){var l=s.right;s.left.right=s.right,s.right.left=s.left,s.left=a,s.right=a.right,a.right=s,s.right.left=s,s.parent=null,s=l,n--}return e.left.right=e.right,e.right.left=e.left,a=e===e.right?null:function(e,a){var n,s=Math.floor(Math.log(a)*i)+1,l=new Array(s),d=0,c=e;if(c)for(d++,c=c.right;c!==e;)d++,c=c.right;for(;d>0;){for(var u=c.degree,p=c.right;n=l[u];){if(r(c.key,n.key)){var h=n;n=c,c=h}o(n,c),l[u]=null,u++}l[u]=c,c=p,d--}e=null;for(var f=0;f{var{typed:t,Complex:r,matrix:i,ceil:a,floor:n}=e,o=To({typed:t});return t("fix",{number:function(e){return e>0?n(e):a(e)},"number, number | BigNumber":function(e,t){return e>0?n(e,t):a(e,t)},Complex:function(e){return new r(e.re>0?Math.floor(e.re):Math.ceil(e.re),e.im>0?Math.floor(e.im):Math.ceil(e.im))},"Complex, number | BigNumber":function(e,t){return new r(e.re>0?n(e.re,t):a(e.re,t),e.im>0?n(e.im,t):a(e.im,t))},BigNumber:function(e){return e.isNegative()?a(e):n(e)},"BigNumber, number | BigNumber":function(e,t){return e.isNegative()?a(e,t):n(e,t)},Fraction:function(e){return e.s<0?e.ceil():e.floor()},"Fraction, number | BigNumber":function(e,t){return e.s<0?e.ceil(t):e.floor(t)},"Array | Matrix":function(e){return mi(e,this,!0)},"Array | Matrix, number | BigNumber":function(e,t){return mi(e,e=>this(e,t),!0)},"number | Complex | BigNumber, Array":function(e,t){return o(i(t),e,this,!0).valueOf()}})});function Ql(e){var t;if(se(e))return e<=0?isFinite(e)?1/0:NaN:e>171?1/0:Ra(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*Ql(1-e));if(e>=171.35)return 1/0;if(e>85){var r=e*e,i=r*e,a=i*e,n=a*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*r)-139/(51840*i)-571/(2488320*a)+163879/(209018880*n)+5246819/(75246796800*n*e))}--e,t=Kl[0];for(var o=1;o{var{typed:t,config:r,multiplyScalar:i,pow:a,BigNumber:n,Complex:o}=e;return t("gamma",{number:Ql,Complex:function(e){if(0===e.im)return this(e.re);e=new o(e.re-1,e.im);for(var t=new o(Kl[0],0),r=1;r2;)l+=o-=2,s=s.times(l);return new n(s.toPrecision(n.precision))}(e.minus(1));if(!e.isFinite())return new n(e.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")},"Array | Matrix":function(e){return mi(e,this)}})}),Jl=at("index",["typed","Index"],e=>{var{typed:t,Index:r}=e;return t("index",{"...number | string | BigNumber | Range | Array | Matrix":function(e){var t=e.map((function(e){return l(e)?e.toNumber():Array.isArray(e)||f(e)?e.map((function(e){return l(e)?e.toNumber():e})):e})),i=new r;return r.apply(i,t),i}})}),Zl=at("lcm",["typed","matrix","equalScalar"],e=>{var{typed:t,matrix:r,equalScalar:i}=e,a=wo({typed:t,equalScalar:i}),n=Io({typed:t,equalScalar:i}),o=Co({typed:t,equalScalar:i}),s=So({typed:t}),l=To({typed:t});return t("lcm",{"number, number":Di,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(e.isZero())return e;if(t.isZero())return t;for(var r=e.times(t);!t.isZero();){var i=t;t=e.mod(i),e=i}return r.div(e).abs()},"Fraction, Fraction":function(e,t){return e.lcm(t)},"SparseMatrix, SparseMatrix":function(e,t){return n(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return s(e,t,this)},"Array, Array":function(e,t){return this(r(e),r(t)).valueOf()},"Array, Matrix":function(e,t){return this(r(e),t)},"Matrix, Array":function(e,t){return this(e,r(t))},"SparseMatrix, number | BigNumber":function(e,t){return o(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return o(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return l(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return l(r(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return l(r(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,r){for(var i=this(e,t),a=0;a{var{typed:t,config:r,numeric:i,larger:a}=e;return t("max",{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){return gi(e,t.valueOf(),n)},"...":function(e){if(hi(e))throw new TypeError("Scalar values expected in function max");return o(e)}});function n(e,t){try{return a(e,t)?e:t}catch(e){throw $o(e,"max",t)}}function o(e){var t;if(fi(e,(function(e){try{isNaN(e)&&"number"==typeof e?t=NaN:(void 0===t||a(e,t))&&(t=e)}catch(t){throw $o(t,"max",e)}})),void 0===t)throw new Error("Cannot calculate max of an empty array");return"string"==typeof t&&(t=i(t,r.number)),t}}),td=at("quantileSeq",["typed","add","multiply","partitionSelect","compare"],e=>{var{typed:t,add:r,multiply:i,partitionSelect:a,compare:n}=e;function o(e,t,o){var l=Qe(e),c=l.length;if(0===c)throw new Error("Cannot calculate quantile of an empty sequence");if(s(t)){var u=t*(c-1),p=u%1;if(0===p){var h=o?l[u]:a(l,u);return d(h),h}var f,m,g=Math.floor(u);if(o)f=l[g],m=l[g+1];else{m=a(l,g+1),f=l[g];for(var b=0;b0&&(f=l[b])}return d(f),d(m),r(i(f,1-p),i(m,p))}var y=t.times(c-1);if(y.isInteger()){y=y.toNumber();var v=o?l[y]:a(l,y);return d(v),v}var x,w,_=y.floor(),E=y.minus(_),C=_.toNumber();if(o)x=l[C],w=l[C+1];else{w=a(l,C+1),x=l[C];for(var N=0;N0&&(x=l[N])}d(x),d(w);var S=new E.constructor(1);return r(i(x,S.minus(E)),i(w,E))}var d=t({"number | BigNumber | Unit":function(e){return e}});return function(e,t,r){var i,a,n;if(arguments.length<2||arguments.length>3)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(m(e)){if("boolean"==typeof(r=r||!1)){if(a=e.valueOf(),s(t)){if(t<0)throw new Error("N/prob must be non-negative");if(t<=1)return o(a,t,r);if(t>1){if(!se(t))throw new Error("N must be a positive integer");var d=t+1;i=new Array(t);for(var c=0;c4294967295)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var h=new u(p+1);i=new Array(p);for(var f=0;f1)throw new Error("Probability must be between 0 and 1, inclusive")}else{if(!l(b))throw new TypeError("Unexpected type of argument in function quantileSeq");if(n=new b.constructor(1),b.isNegative()||b.gt(n))throw new Error("Probability must be between 0 and 1, inclusive")}i[g]=o(a,b,r)}return i}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}}),rd=at("setDifference",["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:a,Index:n,DenseMatrix:o}=e;return t("setDifference",{"Array | Matrix, Array | Matrix":function(e,t){var s;if(0===i(r(e),new n(0)))s=[];else{if(0===i(r(t),new n(0)))return Qe(e.toArray());var l,d=et(Qe(Array.isArray(e)?e:e.toArray()).sort(a)),c=et(Qe(Array.isArray(t)?t:t.toArray()).sort(a));s=[];for(var u=0;u{var{typed:t,size:r,subset:i,compareNatural:a,Index:n}=e;return t("setMultiplicity",{"number | BigNumber | Fraction | Complex, Array | Matrix":function(e,t){if(0===i(r(t),new n(0)))return 0;for(var o=Qe(Array.isArray(t)?t:t.toArray()),s=0,l=0;l{var{typed:t,size:r,concat:i,subset:a,setDifference:n,Index:o}=e;return t("setSymDifference",{"Array | Matrix, Array | Matrix":function(e,t){if(0===a(r(e),new o(0)))return Qe(t);if(0===a(r(t),new o(0)))return Qe(e);var s=Qe(e),l=Qe(t);return i(n(s,l),n(l,s))}})}),nd=at("sort",["typed","matrix","compare","compareNatural"],e=>{var{typed:t,matrix:r,compare:i,compareNatural:a}=e,n=i,o=(e,t)=>-i(e,t);return t("sort",{Array:function(e){return l(e),e.sort(n)},Matrix:function(e){return d(e),r(e.toArray().sort(n),e.storage())},"Array, function":function(e,t){return l(e),e.sort(t)},"Matrix, function":function(e,t){return d(e),r(e.toArray().sort(t),e.storage())},"Array, string":function(e,t){return l(e),e.sort(s(t))},"Matrix, string":function(e,t){return d(e),r(e.toArray().sort(s(t)),e.storage())}});function s(e){if("asc"===e)return n;if("desc"===e)return o;if("natural"===e)return a;throw new Error('String "asc", "desc", or "natural" expected')}function l(e){if(1!==je(e).length)throw new Error("One dimensional array expected")}function d(e){if(1!==e.size().length)throw new Error("One dimensional matrix expected")}});function od(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function sd(e){for(var t=1;t{var t,r,i,{on:a,config:o,addScalar:s,subtract:l,multiplyScalar:c,divideScalar:p,pow:h,abs:f,fix:m,round:g,equal:b,isNumeric:y,format:v,number:x,Complex:w,BigNumber:_,Fraction:E}=e,C=x;function N(e,t){if(!(this instanceof N))throw new Error("Constructor must be called with the new operator");if(null!=e&&!y(e)&&!d(e))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(void 0!==t&&("string"!=typeof t||""===t))throw new TypeError("Second parameter in Unit constructor must be a string");if(void 0!==t){var r=N.parse(t);this.units=r.units,this.dimensions=r.dimensions}else{this.units=[{unit:j,prefix:R.NONE,power:0}],this.dimensions=[];for(var i=0;i="0"&&e<="9"}function k(){r++,i=t.charAt(r)}function O(e){r=e,i=t.charAt(r)}function I(){var e="",t=r;if("+"===i?k():"-"===i&&(e+=i,k()),!function(e){return e>="0"&&e<="9"||"."===e}(i))return O(t),null;if("."===i){if(e+=i,k(),!T(i))return O(t),null}else{for(;T(i);)e+=i,k();"."===i&&(e+=i,k())}for(;T(i);)e+=i,k();if("E"===i||"e"===i){var a="",n=r;if(a+=i,k(),"+"!==i&&"-"!==i||(a+=i,k()),!T(i))return O(n),e;for(e+=a;T(i);)e+=i,k()}return e}function D(){for(var e="";T(i)||N.isValidAlpha(i);)e+=i,k();var t=e.charAt(0);return N.isValidAlpha(t)?e:null}function A(e){return i===e?(k(),e):null}N.prototype.type="Unit",N.prototype.isUnit=!0,N.parse=function(e,a){if(a=a||{},r=-1,i="","string"!=typeof(t=e))throw new TypeError("Invalid argument in Unit.parse, string expected");var n=new N;n.units=[];var s=1,l=!1;k(),S();var d=I(),c=null;if(d){if("BigNumber"===o.number)c=new _(d);else if("Fraction"===o.number)try{c=new E(d)}catch(e){c=parseFloat(d)}else c=parseFloat(d);S(),A("*")?(s=1,l=!0):A("/")&&(s=-1,l=!0)}for(var u=[],p=1;;){for(S();"("===i;)u.push(s),p*=s,s=1,k(),S();var h=void 0;if(!i)break;var f=i;if(null===(h=D()))throw new SyntaxError('Unexpected "'+f+'" in "'+t+'" at index '+r.toString());var m=M(h);if(null===m)throw new SyntaxError('Unit "'+h+'" not found.');var g=s*p;if(S(),A("^")){S();var b=I();if(null===b)throw new SyntaxError('In "'+e+'", "^" must be followed by a floating-point number');g*=b}n.units.push({unit:m.unit,prefix:m.prefix,power:g});for(var y=0;y1||Math.abs(this.units[0].power-1)>1e-15)},N.prototype._normalize=function(e){var t,r,i,a,n;if(null==e||0===this.units.length)return e;if(this._isDerived()){var o=e;n=N._getNumberConverter(H(e));for(var l=0;l{if(J(B,e)){var t=B[e];return{unit:t,prefix:t.prefixes[""]}}for(var r in B)if(J(B,r)&&Ae(e,r)){var i=B[r],a=e.length-r.length,n=e.substring(0,a),o=J(i.prefixes,n)?i.prefixes[n]:void 0;if(void 0!==o)return{unit:i,prefix:o}}return null},{hasher:e=>e[0],limit:100});function L(e){return e.equalBase($.NONE)&&null!==e.value&&!o.predictable?e.value:e}N.isValuelessUnit=function(e){return null!==M(e)},N.prototype.hasBase=function(e){if("string"==typeof e&&(e=$[e]),!e)return!1;for(var t=0;t1e-12)return!1;return!0},N.prototype.equalBase=function(e){for(var t=0;t1e-12)return!1;return!0},N.prototype.equals=function(e){return this.equalBase(e)&&b(this.value,e.value)},N.prototype.multiply=function(e){for(var t=this.clone(),r=0;r1e-12&&(J(z,s)?i.push({unit:z[s].unit,prefix:z[s].prefix,power:r.dimensions[o]||0}):n=!0)}i.length1e-12){if(!J(q.si,i))throw new Error("Cannot express custom unit "+i+" in SI units");t.push({unit:q.si[i].unit,prefix:q.si[i].prefix,power:e.dimensions[r]||0})}}return e.units=t,e.fixPrefix=!0,e.skipAutomaticSimplification=!0,e},N.prototype.formatUnits=function(){for(var e="",t="",r=0,i=0,a=0;a0?(r++,e+=" "+this.units[a].prefix.name+this.units[a].unit.name,Math.abs(this.units[a].power-1)>1e-15&&(e+="^"+this.units[a].power)):this.units[a].power<0&&i++;if(i>0)for(var n=0;n0?(t+=" "+this.units[n].prefix.name+this.units[n].unit.name,Math.abs(this.units[n].power+1)>1e-15&&(t+="^"+-this.units[n].power)):(t+=" "+this.units[n].prefix.name+this.units[n].unit.name,t+="^"+this.units[n].power));e=e.substr(1),t=t.substr(1),r>1&&i>0&&(e="("+e+")"),i>1&&r>0&&(t="("+t+")");var o=e;return r>0&&i>0&&(o+=" / "),o+t},N.prototype.format=function(e){var t=this.skipAutomaticSimplification||null===this.value?this.clone():this.simplify(),r=!1;for(var i in void 0!==t.value&&null!==t.value&&d(t.value)&&(r=Math.abs(t.value.re)<1e-14),t.units)J(t.units,i)&&t.units[i].unit&&("VA"===t.units[i].unit.name&&r?t.units[i].unit=B.VAR:"VAR"!==t.units[i].unit.name||r||(t.units[i].unit=B.VA));1!==t.units.length||t.fixPrefix||Math.abs(t.units[0].power-Math.round(t.units[0].power))<1e-14&&(t.units[0].prefix=t._bestPrefix());var a=t._denormalize(t.value),n=null!==t.value?v(a,e||{}):"",o=t.formatUnits();return t.value&&d(t.value)&&(n="("+n+")"),o.length>0&&n.length>0&&(n+=" "),n+o},N.prototype._bestPrefix=function(){if(1!==this.units.length)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var e=null!==this.value?f(this.value):0,t=f(this.units[0].unit.value),r=this.units[0].prefix;if(0===e)return r;var i=this.units[0].power,a=Math.log(e/Math.pow(r.value*t,i))/Math.LN10-1.2;if(a>-2.200001&&a<1.800001)return r;a=Math.abs(a);var n=this.units[0].unit.prefixes;for(var o in n)if(J(n,o)){var s=n[o];if(s.scientific){var l=Math.abs(Math.log(e/Math.pow(s.value*t,i))/Math.LN10-1.2);(l0)},B={meter:{name:"meter",base:$.LENGTH,prefixes:R.LONG,value:1,offset:0},inch:{name:"inch",base:$.LENGTH,prefixes:R.NONE,value:.0254,offset:0},foot:{name:"foot",base:$.LENGTH,prefixes:R.NONE,value:.3048,offset:0},yard:{name:"yard",base:$.LENGTH,prefixes:R.NONE,value:.9144,offset:0},mile:{name:"mile",base:$.LENGTH,prefixes:R.NONE,value:1609.344,offset:0},link:{name:"link",base:$.LENGTH,prefixes:R.NONE,value:.201168,offset:0},rod:{name:"rod",base:$.LENGTH,prefixes:R.NONE,value:5.0292,offset:0},chain:{name:"chain",base:$.LENGTH,prefixes:R.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:$.LENGTH,prefixes:R.NONE,value:1e-10,offset:0},m:{name:"m",base:$.LENGTH,prefixes:R.SHORT,value:1,offset:0},in:{name:"in",base:$.LENGTH,prefixes:R.NONE,value:.0254,offset:0},ft:{name:"ft",base:$.LENGTH,prefixes:R.NONE,value:.3048,offset:0},yd:{name:"yd",base:$.LENGTH,prefixes:R.NONE,value:.9144,offset:0},mi:{name:"mi",base:$.LENGTH,prefixes:R.NONE,value:1609.344,offset:0},li:{name:"li",base:$.LENGTH,prefixes:R.NONE,value:.201168,offset:0},rd:{name:"rd",base:$.LENGTH,prefixes:R.NONE,value:5.02921,offset:0},ch:{name:"ch",base:$.LENGTH,prefixes:R.NONE,value:20.1168,offset:0},mil:{name:"mil",base:$.LENGTH,prefixes:R.NONE,value:254e-7,offset:0},m2:{name:"m2",base:$.SURFACE,prefixes:R.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:$.SURFACE,prefixes:R.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:$.SURFACE,prefixes:R.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:$.SURFACE,prefixes:R.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:$.SURFACE,prefixes:R.NONE,value:2589988.110336,offset:0},sqrd:{name:"sqrd",base:$.SURFACE,prefixes:R.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:$.SURFACE,prefixes:R.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:$.SURFACE,prefixes:R.NONE,value:6.4516e-10,offset:0},acre:{name:"acre",base:$.SURFACE,prefixes:R.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:$.SURFACE,prefixes:R.NONE,value:1e4,offset:0},m3:{name:"m3",base:$.VOLUME,prefixes:R.CUBIC,value:1,offset:0},L:{name:"L",base:$.VOLUME,prefixes:R.SHORT,value:.001,offset:0},l:{name:"l",base:$.VOLUME,prefixes:R.SHORT,value:.001,offset:0},litre:{name:"litre",base:$.VOLUME,prefixes:R.LONG,value:.001,offset:0},cuin:{name:"cuin",base:$.VOLUME,prefixes:R.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:$.VOLUME,prefixes:R.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:$.VOLUME,prefixes:R.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:$.VOLUME,prefixes:R.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:$.VOLUME,prefixes:R.NONE,value:15e-6,offset:0},drop:{name:"drop",base:$.VOLUME,prefixes:R.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:$.VOLUME,prefixes:R.NONE,value:5e-8,offset:0},minim:{name:"minim",base:$.VOLUME,prefixes:R.NONE,value:6.161152e-8,offset:0},fluiddram:{name:"fluiddram",base:$.VOLUME,prefixes:R.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:$.VOLUME,prefixes:R.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:$.VOLUME,prefixes:R.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:$.VOLUME,prefixes:R.NONE,value:1e-6,offset:0},cup:{name:"cup",base:$.VOLUME,prefixes:R.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:$.VOLUME,prefixes:R.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:$.VOLUME,prefixes:R.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:$.VOLUME,prefixes:R.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:$.VOLUME,prefixes:R.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:$.VOLUME,prefixes:R.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:$.VOLUME,prefixes:R.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:$.VOLUME,prefixes:R.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:$.VOLUME,prefixes:R.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:$.VOLUME,prefixes:R.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:$.VOLUME,prefixes:R.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:$.VOLUME,prefixes:R.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:$.VOLUME,prefixes:R.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:$.VOLUME,prefixes:R.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:$.VOLUME,prefixes:R.NONE,value:.1173478,offset:0},obl:{name:"obl",base:$.VOLUME,prefixes:R.NONE,value:.1589873,offset:0},g:{name:"g",base:$.MASS,prefixes:R.SHORT,value:.001,offset:0},gram:{name:"gram",base:$.MASS,prefixes:R.LONG,value:.001,offset:0},ton:{name:"ton",base:$.MASS,prefixes:R.SHORT,value:907.18474,offset:0},t:{name:"t",base:$.MASS,prefixes:R.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:$.MASS,prefixes:R.LONG,value:1e3,offset:0},grain:{name:"grain",base:$.MASS,prefixes:R.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:$.MASS,prefixes:R.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:$.MASS,prefixes:R.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:$.MASS,prefixes:R.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:$.MASS,prefixes:R.NONE,value:45.359237,offset:0},stick:{name:"stick",base:$.MASS,prefixes:R.NONE,value:.115,offset:0},stone:{name:"stone",base:$.MASS,prefixes:R.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:$.MASS,prefixes:R.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:$.MASS,prefixes:R.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:$.MASS,prefixes:R.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:$.MASS,prefixes:R.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:$.MASS,prefixes:R.NONE,value:45.359237,offset:0},s:{name:"s",base:$.TIME,prefixes:R.SHORT,value:1,offset:0},min:{name:"min",base:$.TIME,prefixes:R.NONE,value:60,offset:0},h:{name:"h",base:$.TIME,prefixes:R.NONE,value:3600,offset:0},second:{name:"second",base:$.TIME,prefixes:R.LONG,value:1,offset:0},sec:{name:"sec",base:$.TIME,prefixes:R.LONG,value:1,offset:0},minute:{name:"minute",base:$.TIME,prefixes:R.NONE,value:60,offset:0},hour:{name:"hour",base:$.TIME,prefixes:R.NONE,value:3600,offset:0},day:{name:"day",base:$.TIME,prefixes:R.NONE,value:86400,offset:0},week:{name:"week",base:$.TIME,prefixes:R.NONE,value:604800,offset:0},month:{name:"month",base:$.TIME,prefixes:R.NONE,value:2629800,offset:0},year:{name:"year",base:$.TIME,prefixes:R.NONE,value:31557600,offset:0},decade:{name:"decade",base:$.TIME,prefixes:R.NONE,value:315576e3,offset:0},century:{name:"century",base:$.TIME,prefixes:R.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:$.TIME,prefixes:R.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:$.FREQUENCY,prefixes:R.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:$.FREQUENCY,prefixes:R.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:$.ANGLE,prefixes:R.SHORT,value:1,offset:0},radian:{name:"radian",base:$.ANGLE,prefixes:R.LONG,value:1,offset:0},deg:{name:"deg",base:$.ANGLE,prefixes:R.SHORT,value:null,offset:0},degree:{name:"degree",base:$.ANGLE,prefixes:R.LONG,value:null,offset:0},grad:{name:"grad",base:$.ANGLE,prefixes:R.SHORT,value:null,offset:0},gradian:{name:"gradian",base:$.ANGLE,prefixes:R.LONG,value:null,offset:0},cycle:{name:"cycle",base:$.ANGLE,prefixes:R.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:$.ANGLE,prefixes:R.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:$.ANGLE,prefixes:R.NONE,value:null,offset:0},A:{name:"A",base:$.CURRENT,prefixes:R.SHORT,value:1,offset:0},ampere:{name:"ampere",base:$.CURRENT,prefixes:R.LONG,value:1,offset:0},K:{name:"K",base:$.TEMPERATURE,prefixes:R.NONE,value:1,offset:0},degC:{name:"degC",base:$.TEMPERATURE,prefixes:R.NONE,value:1,offset:273.15},degF:{name:"degF",base:$.TEMPERATURE,prefixes:R.NONE,value:1/1.8,offset:459.67},degR:{name:"degR",base:$.TEMPERATURE,prefixes:R.NONE,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:$.TEMPERATURE,prefixes:R.NONE,value:1,offset:0},celsius:{name:"celsius",base:$.TEMPERATURE,prefixes:R.NONE,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:$.TEMPERATURE,prefixes:R.NONE,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:$.TEMPERATURE,prefixes:R.NONE,value:1/1.8,offset:0},mol:{name:"mol",base:$.AMOUNT_OF_SUBSTANCE,prefixes:R.SHORT,value:1,offset:0},mole:{name:"mole",base:$.AMOUNT_OF_SUBSTANCE,prefixes:R.LONG,value:1,offset:0},cd:{name:"cd",base:$.LUMINOUS_INTENSITY,prefixes:R.SHORT,value:1,offset:0},candela:{name:"candela",base:$.LUMINOUS_INTENSITY,prefixes:R.LONG,value:1,offset:0},N:{name:"N",base:$.FORCE,prefixes:R.SHORT,value:1,offset:0},newton:{name:"newton",base:$.FORCE,prefixes:R.LONG,value:1,offset:0},dyn:{name:"dyn",base:$.FORCE,prefixes:R.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:$.FORCE,prefixes:R.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:$.FORCE,prefixes:R.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:$.FORCE,prefixes:R.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:$.FORCE,prefixes:R.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:$.FORCE,prefixes:R.NONE,value:9.80665,offset:0},J:{name:"J",base:$.ENERGY,prefixes:R.SHORT,value:1,offset:0},joule:{name:"joule",base:$.ENERGY,prefixes:R.SHORT,value:1,offset:0},erg:{name:"erg",base:$.ENERGY,prefixes:R.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:$.ENERGY,prefixes:R.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:$.ENERGY,prefixes:R.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:$.ENERGY,prefixes:R.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:$.ENERGY,prefixes:R.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:$.POWER,prefixes:R.SHORT,value:1,offset:0},watt:{name:"watt",base:$.POWER,prefixes:R.LONG,value:1,offset:0},hp:{name:"hp",base:$.POWER,prefixes:R.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:$.POWER,prefixes:R.SHORT,value:w.I,offset:0},VA:{name:"VA",base:$.POWER,prefixes:R.SHORT,value:1,offset:0},Pa:{name:"Pa",base:$.PRESSURE,prefixes:R.SHORT,value:1,offset:0},psi:{name:"psi",base:$.PRESSURE,prefixes:R.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:$.PRESSURE,prefixes:R.NONE,value:101325,offset:0},bar:{name:"bar",base:$.PRESSURE,prefixes:R.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:$.PRESSURE,prefixes:R.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:$.PRESSURE,prefixes:R.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:$.PRESSURE,prefixes:R.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:$.PRESSURE,prefixes:R.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:$.ELECTRIC_CHARGE,prefixes:R.LONG,value:1,offset:0},C:{name:"C",base:$.ELECTRIC_CHARGE,prefixes:R.SHORT,value:1,offset:0},farad:{name:"farad",base:$.ELECTRIC_CAPACITANCE,prefixes:R.LONG,value:1,offset:0},F:{name:"F",base:$.ELECTRIC_CAPACITANCE,prefixes:R.SHORT,value:1,offset:0},volt:{name:"volt",base:$.ELECTRIC_POTENTIAL,prefixes:R.LONG,value:1,offset:0},V:{name:"V",base:$.ELECTRIC_POTENTIAL,prefixes:R.SHORT,value:1,offset:0},ohm:{name:"ohm",base:$.ELECTRIC_RESISTANCE,prefixes:R.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:$.ELECTRIC_INDUCTANCE,prefixes:R.LONG,value:1,offset:0},H:{name:"H",base:$.ELECTRIC_INDUCTANCE,prefixes:R.SHORT,value:1,offset:0},siemens:{name:"siemens",base:$.ELECTRIC_CONDUCTANCE,prefixes:R.LONG,value:1,offset:0},S:{name:"S",base:$.ELECTRIC_CONDUCTANCE,prefixes:R.SHORT,value:1,offset:0},weber:{name:"weber",base:$.MAGNETIC_FLUX,prefixes:R.LONG,value:1,offset:0},Wb:{name:"Wb",base:$.MAGNETIC_FLUX,prefixes:R.SHORT,value:1,offset:0},tesla:{name:"tesla",base:$.MAGNETIC_FLUX_DENSITY,prefixes:R.LONG,value:1,offset:0},T:{name:"T",base:$.MAGNETIC_FLUX_DENSITY,prefixes:R.SHORT,value:1,offset:0},b:{name:"b",base:$.BIT,prefixes:R.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:$.BIT,prefixes:R.BINARY_LONG,value:1,offset:0},B:{name:"B",base:$.BIT,prefixes:R.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:$.BIT,prefixes:R.BINARY_LONG,value:8,offset:0}},U={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function V(e){if("BigNumber"===e.number){var t=gt(_);B.rad.value=new _(1),B.deg.value=t.div(180),B.grad.value=t.div(200),B.cycle.value=t.times(2),B.arcsec.value=t.div(648e3),B.arcmin.value=t.div(10800)}else B.rad.value=1,B.deg.value=Math.PI/180,B.grad.value=Math.PI/200,B.cycle.value=2*Math.PI,B.arcsec.value=Math.PI/648e3,B.arcmin.value=Math.PI/10800;B.radian.value=B.rad.value,B.degree.value=B.deg.value,B.gradian.value=B.grad.value}V(o),a&&a("config",(function(e,t){e.number!==t.number&&V(e)}));var q={si:{NONE:{unit:j,prefix:R.NONE[""]},LENGTH:{unit:B.m,prefix:R.SHORT[""]},MASS:{unit:B.g,prefix:R.SHORT.k},TIME:{unit:B.s,prefix:R.SHORT[""]},CURRENT:{unit:B.A,prefix:R.SHORT[""]},TEMPERATURE:{unit:B.K,prefix:R.SHORT[""]},LUMINOUS_INTENSITY:{unit:B.cd,prefix:R.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:B.mol,prefix:R.SHORT[""]},ANGLE:{unit:B.rad,prefix:R.SHORT[""]},BIT:{unit:B.bits,prefix:R.SHORT[""]},FORCE:{unit:B.N,prefix:R.SHORT[""]},ENERGY:{unit:B.J,prefix:R.SHORT[""]},POWER:{unit:B.W,prefix:R.SHORT[""]},PRESSURE:{unit:B.Pa,prefix:R.SHORT[""]},ELECTRIC_CHARGE:{unit:B.C,prefix:R.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:B.F,prefix:R.SHORT[""]},ELECTRIC_POTENTIAL:{unit:B.V,prefix:R.SHORT[""]},ELECTRIC_RESISTANCE:{unit:B.ohm,prefix:R.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:B.H,prefix:R.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:B.S,prefix:R.SHORT[""]},MAGNETIC_FLUX:{unit:B.Wb,prefix:R.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:B.T,prefix:R.SHORT[""]},FREQUENCY:{unit:B.Hz,prefix:R.SHORT[""]}}};q.cgs=JSON.parse(JSON.stringify(q.si)),q.cgs.LENGTH={unit:B.m,prefix:R.SHORT.c},q.cgs.MASS={unit:B.g,prefix:R.SHORT[""]},q.cgs.FORCE={unit:B.dyn,prefix:R.SHORT[""]},q.cgs.ENERGY={unit:B.erg,prefix:R.NONE[""]},q.us=JSON.parse(JSON.stringify(q.si)),q.us.LENGTH={unit:B.ft,prefix:R.NONE[""]},q.us.MASS={unit:B.lbm,prefix:R.NONE[""]},q.us.TEMPERATURE={unit:B.degF,prefix:R.NONE[""]},q.us.FORCE={unit:B.lbf,prefix:R.NONE[""]},q.us.ENERGY={unit:B.BTU,prefix:R.BTU[""]},q.us.POWER={unit:B.hp,prefix:R.NONE[""]},q.us.PRESSURE={unit:B.psi,prefix:R.NONE[""]},q.auto=JSON.parse(JSON.stringify(q.si));var z=q.auto;for(var W in N.setUnitSystem=function(e){if(!J(q,e))throw new Error("Unit system "+e+" does not exist. Choices are: "+Object.keys(q).join(", "));z=q[e]},N.getUnitSystem=function(){for(var e in q)if(J(q,e)&&q[e]===z)return e},N.typeConverters={BigNumber:function(e){return new _(e+"")},Fraction:function(e){return new E(e)},Complex:function(e){return e},number:function(e){return e}},N._getNumberConverter=function(e){if(!N.typeConverters[e])throw new TypeError('Unsupported type "'+e+'"');return N.typeConverters[e]},B)if(J(B,W)){var Q=B[W];Q.dimensions=Q.base.dimensions}for(var X in U)if(J(U,X)){var K=B[U[X]],Y={};for(var Z in K)J(K,Z)&&(Y[Z]=K[Z]);Y.name=X,B[X]=Y}return N.isValidAlpha=function(e){return/^[a-zA-Z]$/.test(e)},N.createUnit=function(e,t){if("object"!=typeof e)throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(t&&t.override)for(var r in e)if(J(e,r)&&N.deleteUnit(r),e[r].aliases)for(var i=0;i0&&!N.isValidAlpha(i)&&!T(i))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+e+'"')}}(e);var a,n,o,s=null,l=[],d=0;if(t&&"Unit"===t.type)s=t.clone();else if("string"==typeof t)""!==t&&(a=t);else{if("object"!=typeof t)throw new TypeError('Cannot create unit "'+e+'" from "'+t.toString()+'": expecting "string" or "Unit" or "Object"');a=t.definition,n=t.prefixes,d=t.offset,o=t.baseName,t.aliases&&(l=t.aliases.valueOf())}if(l)for(var c=0;c1e-12){f=!1;break}if(f){p=!0,u.base=$[h];break}}if(!p){o=o||e+"_STUFF";var g={dimensions:s.dimensions.slice(0)};g.key=o,$[o]=g,z[o]={unit:u,prefix:R.NONE[""]},u.base=$[o]}}else{if(o=o||e+"_STUFF",P.indexOf(o)>=0)throw new Error('Cannot create new base unit "'+e+'": a base unit with that name already exists (and cannot be overridden)');for(var b in P.push(o),$)J($,b)&&($[b].dimensions[P.length-1]=0);for(var y={dimensions:[]},v=0;v{var{typed:t,Unit:r}=e;return t("createUnit",{"Object, Object":function(e,t){return r.createUnit(e,t)},Object:function(e){return r.createUnit(e,{})},"string, Unit | string | Object, Object":function(e,t,i){var a={};return a[e]=t,r.createUnit(a,i)},"string, Unit | string | Object":function(e,t){var i={};return i[e]=t,r.createUnit(i,{})},string:function(e){var t={};return t[e]={},r.createUnit(t,{})}})}),cd=at("dotPow",["typed","equalScalar","matrix","pow","DenseMatrix"],e=>{var{typed:t,equalScalar:r,matrix:i,pow:a,DenseMatrix:n}=e,o=_o({typed:t}),s=Uo({typed:t,DenseMatrix:n}),l=Co({typed:t,equalScalar:r}),d=No({typed:t,DenseMatrix:n}),c=So({typed:t}),u=To({typed:t});return t("dotPow",{"any, any":a,"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,a,!1)},"SparseMatrix, DenseMatrix":function(e,t){return o(t,e,a,!0)},"DenseMatrix, SparseMatrix":function(e,t){return o(e,t,a,!1)},"DenseMatrix, DenseMatrix":function(e,t){return c(e,t,a)},"Array, Array":function(e,t){return this(i(e),i(t)).valueOf()},"Array, Matrix":function(e,t){return this(i(e),t)},"Matrix, Array":function(e,t){return this(e,i(t))},"SparseMatrix, any":function(e,t){return l(e,t,this,!1)},"DenseMatrix, any":function(e,t){return u(e,t,this,!1)},"any, SparseMatrix":function(e,t){return d(t,e,this,!0)},"any, DenseMatrix":function(e,t){return u(t,e,this,!0)},"Array, any":function(e,t){return u(i(e),t,this,!1).valueOf()},"any, Array":function(e,t){return u(i(t),e,this,!0).valueOf()}})}),ud=at("factorial",["typed","gamma"],e=>{var{typed:t,gamma:r}=e;return t("factorial",{number:function(e){if(e<0)throw new Error("Value must be non-negative");return r(e+1)},BigNumber:function(e){if(e.isNegative())throw new Error("Value must be non-negative");return r(e.plus(1))},"Array | Matrix":function(e){return mi(e,this)}})}),pd=at("intersect",["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten"],e=>{var{typed:t,config:r,abs:i,add:a,addScalar:n,matrix:o,multiply:s,multiplyScalar:d,divideScalar:c,subtract:u,smaller:p,equalScalar:h,flatten:f}=e;return t("intersect",{"Array, Array, Array":m,"Array, Array, Array, Array":g,"Matrix, Matrix, Matrix":function(e,t,r){var i=m(e.valueOf(),t.valueOf(),r.valueOf());return null===i?null:o(i)},"Matrix, Matrix, Matrix, Matrix":function(e,t,r,i){var a=g(e.valueOf(),t.valueOf(),r.valueOf(),i.valueOf());return null===a?null:o(a)}});function m(e,t,r){if(e=b(e),t=b(t),r=b(r),!x(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!function(e){return 4===e.length&&y(e[0])&&y(e[1])&&y(e[2])&&y(e[3])}(r))throw new TypeError("Array with 4 numbers expected as third argument");return function(e,t,r,i,a,o,s,l,p,h){var f=d(e,s),m=d(i,s),g=d(t,l),b=d(a,l),y=d(r,p),v=d(o,p),x=u(u(u(h,f),g),y),w=u(u(u(n(n(m,b),v),f),g),y),_=c(x,w),E=n(e,d(_,u(i,e))),C=n(t,d(_,u(a,t))),N=n(r,d(_,u(o,r)));return[E,C,N]}(e[0],e[1],e[2],t[0],t[1],t[2],r[0],r[1],r[2],r[3])}function g(e,t,o,l){if(e=b(e),t=b(t),o=b(o),l=b(l),2===e.length){if(!v(e))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!v(t))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!v(o))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!v(l))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return function(e,t,o,l){var h=e,f=o,m=u(h,t),g=u(f,l),b=u(d(m[0],g[1]),d(g[0],m[1]));if(p(i(b),r.epsilon))return null;var y=d(g[0],h[1]),v=d(g[1],h[0]),x=d(g[0],f[1]),w=d(g[1],f[0]),_=c(n(u(u(y,v),x),w),b);return a(s(m,_),h)}(e,t,o,l)}if(3===e.length){if(!x(e))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(t))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!x(o))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!x(l))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return f=e[0],m=e[1],g=e[2],y=t[0],_=t[1],E=t[2],C=o[0],N=o[1],S=o[2],T=l[0],k=l[1],O=l[2],I=w(f,C,T,C,m,N,k,N,g,S,O,S),D=w(T,C,y,f,k,N,_,m,O,S,E,g),A=w(f,C,y,f,m,N,_,m,g,S,E,g),M=w(T,C,T,C,k,N,k,N,O,S,O,S),L=w(y,f,y,f,_,m,_,m,E,g,E,g),R=c(u(d(I,D),d(A,M)),u(d(L,M),d(D,D))),P=c(n(I,d(R,D)),M),$=n(f,d(R,u(y,f))),F=n(m,d(R,u(_,m))),j=n(g,d(R,u(E,g))),B=n(C,d(P,u(T,C))),U=n(N,d(P,u(k,N))),V=n(S,d(P,u(O,S))),h($,B)&&h(F,U)&&h(j,V)?[$,F,j]:null}throw new TypeError("Arrays with two or thee dimensional points expected");var f,m,g,y,_,E,C,N,S,T,k,O,I,D,A,M,L,R,P,$,F,j,B,U,V}function b(e){return 1===e.length?e[0]:e.length>1&&Array.isArray(e[0])&&e.every(e=>Array.isArray(e)&&1===e.length)?f(e):e}function y(e){return"number"==typeof e||l(e)}function v(e){return 2===e.length&&y(e[0])&&y(e[1])}function x(e){return 3===e.length&&y(e[0])&&y(e[1])&&y(e[2])}function w(e,t,r,i,a,o,s,l,c,p,h,f){var m=d(u(e,t),u(r,i)),g=d(u(a,o),u(s,l)),b=d(u(c,p),u(h,f));return n(n(m,g),b)}}),hd=at("permutations",["typed","factorial"],e=>{var{typed:t,factorial:r}=e;return t("permutations",{"number | BigNumber":r,"number, number":function(e,t){if(!se(e)||e<0)throw new TypeError("Positive integer value expected in function permutations");if(!se(t)||t<0)throw new TypeError("Positive integer value expected in function permutations");if(t>e)throw new TypeError("second argument k must be less than or equal to first argument n");return Ra(e-t+1,e)},"BigNumber, BigNumber":function(e,t){var r,i;if(!fd(e)||!fd(t))throw new TypeError("Positive integer value expected in function permutations");if(t.gt(e))throw new TypeError("second argument k must be less than or equal to first argument n");for(r=e.mul(0).add(1),i=e.minus(t).plus(1);i.lte(e);i=i.plus(1))r=r.times(i);return r}})});function fd(e){return e.isInteger()&&e.gte(0)}var md=at("setIntersect",["typed","size","subset","compareNatural","Index","DenseMatrix"],e=>{var{typed:t,size:r,subset:i,compareNatural:a,Index:n,DenseMatrix:o}=e;return t("setIntersect",{"Array | Matrix, Array | Matrix":function(e,t){var s;if(0===i(r(e),new n(0))||0===i(r(t),new n(0)))s=[];else{var l=et(Qe(Array.isArray(e)?e:e.toArray()).sort(a)),d=et(Qe(Array.isArray(t)?t:t.toArray()).sort(a));s=[];for(var c=0;c{var{typed:t,size:r,concat:i,subset:a,setIntersect:n,setSymDifference:o,Index:s}=e;return t("setUnion",{"Array | Matrix, Array | Matrix":function(e,t){if(0===a(r(e),new s(0)))return Qe(t);if(0===a(r(t),new s(0)))return Qe(e);var l=Qe(e),d=Qe(t);return i(o(l,d),n(l,d))}})}),bd=at("Spa",["addScalar","equalScalar","FibonacciHeap"],e=>{var{addScalar:t,equalScalar:r,FibonacciHeap:i}=e;function a(){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new i}return a.prototype.type="Spa",a.prototype.isSpa=!0,a.prototype.set=function(e,t){if(this._values[e])this._values[e].value=t;else{var r=this._heap.insert(e,t);this._values[e]=r}},a.prototype.get=function(e){var t=this._values[e];return t?t.value:0},a.prototype.accumulate=function(e,r){var i=this._values[e];i?i.value=t(i.value,r):(i=this._heap.insert(e,r),this._values[e]=i)},a.prototype.forEach=function(e,t,i){var a=this._heap,n=this._values,o=[],s=a.extractMinimum();for(s&&o.push(s);s&&s.key<=t;)s.key>=e&&(r(s.value,0)||i(s.key,s.value,this)),(s=a.extractMinimum())&&o.push(s);for(var l=0;l{var{typed:t,Unit:r}=e;return t("unit",{Unit:function(e){return e.clone()},string:function(e){return r.isValuelessUnit(e)?new r(null,e):r.parse(e,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string":function(e,t){return new r(e,t)},"Array | Matrix":function(e){return mi(e,this)}})}),vd=at("log1p",["typed","config","divideScalar","log","Complex"],e=>{var{typed:t,config:r,divideScalar:i,log:a,Complex:n}=e;return t("log1p",{number:function(e){return e>=-1||r.predictable?ue(e):o(new n(e,0))},Complex:o,BigNumber:function(e){var t=e.plus(1);return!t.isNegative()||r.predictable?t.ln():o(new n(e.toNumber(),0))},"Array | Matrix":function(e){return mi(e,this)},"any, any":function(e,t){return i(this(e),a(t))}});function o(e){var t=e.re+1;return new n(Math.log(Math.sqrt(t*t+e.im*e.im)),Math.atan2(e.im,t))}}),xd=at("stirlingS2",["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","larger"],e=>{var{typed:t,addScalar:r,subtract:i,multiplyScalar:a,divideScalar:n,pow:o,factorial:s,combinations:l,isNegative:d,isInteger:c,larger:u}=e;return t("stirlingS2",{"number | BigNumber, number | BigNumber":function(e,t){if(!c(e)||d(e)||!c(t)||d(t))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(u(t,e))throw new TypeError("k must be less than or equal to n in function stirlingS2");for(var p=s(t),h=0,f=0;f<=t;f++){var m=o(-1,i(t,f)),g=l(t,f),b=o(f,e);h=r(h,a(a(g,b),m))}return n(h,p)}})}),wd=at("bellNumbers",["typed","addScalar","isNegative","isInteger","stirlingS2"],e=>{var{typed:t,addScalar:r,isNegative:i,isInteger:a,stirlingS2:n}=e;return t("bellNumbers",{"number | BigNumber":function(e){if(!a(e)||i(e))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var t=0,o=0;o<=e;o++)t=r(t,n(e,o));return t}})}),_d=at("lup",["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],e=>{var{typed:t,matrix:r,abs:i,addScalar:a,divideScalar:n,multiplyScalar:o,subtract:s,larger:l,equalScalar:d,unaryMinus:c,DenseMatrix:u,SparseMatrix:p,Spa:h}=e;return t("lup",{DenseMatrix:function(e){return f(e)},SparseMatrix:function(e){return m(e)},Array:function(e){var t=f(r(e));return{L:t.L.valueOf(),U:t.U.valueOf(),p:t.p}}});function f(e){var t,r,c,p=e._size[0],h=e._size[1],f=Math.min(p,h),m=G(e._data),g=[],b=[p,f],y=[],v=[f,h],x=[];for(t=0;t0)for(t=0;t0&&e.forEach(0,r-1,(function(t,r){p._forEachRow(t,y,v,x,(function(i,a){i>t&&e.accumulate(i,c(o(a,r)))}))}));var k,O,I,D,A=r,M=e.get(r),L=i(M);e.forEach(r+1,s-1,(function(e,t){var r=i(t);l(r,L)&&(A=e,L=r,M=t)})),r!==A&&(p._swapRows(r,A,w[1],y,v,x),p._swapRows(r,A,N[1],_,E,C),e.swap(r,A),O=A,I=T[k=r],D=T[O],S[I]=O,S[D]=k,T[k]=D,T[O]=I),e.forEach(0,s-1,(function(e,t){e<=r?(_.push(t),E.push(e)):(t=n(t,M),d(t,0)||(y.push(t),v.push(e)))}))};for(r=0;r{var{typed:t,compareNatural:r}=e;return t("setSize",{"Array | Matrix":function(e){return Array.isArray(e)?Qe(e).length:Qe(e.toArray()).length},"Array | Matrix, boolean":function(e,t){if(!1===t||0===e.length)return Array.isArray(e)?Qe(e).length:Qe(e.toArray()).length;for(var i=Qe(Array.isArray(e)?e:e.toArray()).sort(r),a=1,n=1;n{var{typed:t,matrix:r,subtract:i,multiply:a,unaryMinus:n,lup:o}=e;return t("det",{any:function(e){return G(e)},"Array | Matrix":function(e){var t;switch((t=f(e)?e.size():Array.isArray(e)?(e=r(e)).size():[]).length){case 0:return G(e);case 1:if(1===t[0])return G(e.valueOf()[0]);throw new RangeError("Matrix must be square (size: "+Me(t)+")");case 2:var s=t[0],l=t[1];if(s===l)return function(e,t,r){if(1===t)return G(e[0][0]);if(2===t)return i(a(e[0][0],e[1][1]),a(e[1][0],e[0][1]));for(var s=o(e),l=s.U[0][0],d=1;d=t)break;for(var h=u,f=0;!p[s.p[h]];)p[s.p[h]]=!0,h=s.p[h],f++;f%2==0&&c++}return c%2==0?l:n(l)}(e.clone().valueOf(),s);throw new RangeError("Matrix must be square (size: "+Me(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Me(t)+")")}}})}),Nd=at("inv",["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],e=>{var{typed:t,matrix:r,divideScalar:i,addScalar:a,multiply:n,unaryMinus:o,det:s,identity:l,abs:d}=e;return t("inv",{"Array | Matrix":function(e){var t=f(e)?e.size():je(e);switch(t.length){case 1:if(1===t[0])return f(e)?r([i(1,e.valueOf()[0])]):[i(1,e[0])];throw new RangeError("Matrix must be square (size: "+Me(t)+")");case 2:var a=t[0],n=t[1];if(a===n)return f(e)?r(c(e.valueOf(),a,n),e.storage()):c(e,a,n);throw new RangeError("Matrix must be square (size: "+Me(t)+")");default:throw new RangeError("Matrix must be two dimensional (size: "+Me(t)+")")}},any:function(e){return i(1,e)}});function c(e,t,r){var c,u,p,h,f;if(1===t){if(0===(h=e[0][0]))throw Error("Cannot calculate inverse, determinant is zero");return[[i(1,h)]]}if(2===t){var m=s(e);if(0===m)throw Error("Cannot calculate inverse, determinant is zero");return[[i(e[1][1],m),i(o(e[0][1]),m)],[i(o(e[1][0]),m),i(e[0][0],m)]]}var g=e.concat();for(c=0;cv&&(v=d(g[c][y]),x=c),c++;if(0===v)throw Error("Cannot calculate inverse, determinant is zero");(c=x)!==y&&(f=g[y],g[y]=g[c],g[c]=f,f=b[y],b[y]=b[c],b[c]=f);var w=g[y],_=b[y];for(c=0;c{var{typed:t,matrix:r,lup:i,slu:a,usolve:n,lsolve:o,DenseMatrix:s}=e,l=Ts({DenseMatrix:s});return t("lusolve",{"Array, Array | Matrix":function(e,t){e=r(e);var a=i(e);return c(a.L,a.U,a.p,null,t).valueOf()},"DenseMatrix, Array | Matrix":function(e,t){var r=i(e);return c(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix":function(e,t){var r=i(e);return c(r.L,r.U,r.p,null,t)},"SparseMatrix, Array | Matrix, number, number":function(e,t,r,i){var n=a(e,r,i);return c(n.L,n.U,n.p,n.q,t)},"Object, Array | Matrix":function(e,t){return c(e.L,e.U,e.p,e.q,t)}});function d(e){if(f(e))return e;if(h(e))return r(e);throw new TypeError("Invalid Matrix LU decomposition")}function c(e,t,r,i,a){e=d(e),t=d(t),r&&((a=l(e,a,!0))._data=Sd(r,a._data));var s=o(e,a),c=n(t,s);return i&&(c._data=Sd(i,c._data)),c}}),kd=at("sqrtm",["typed","abs","add","multiply","sqrt","subtract","inv","size","max","identity"],e=>{var{typed:t,abs:r,add:i,multiply:a,sqrt:n,subtract:o,inv:s,size:l,max:d,identity:c}=e;function u(e){var t,n=0,u=e,p=c(l(e));do{var h=u;if(u=a(.5,i(h,s(p))),p=a(.5,i(p,s(h))),(t=d(r(o(u,h))))>1e-6&&++n>1e3)throw new Error("computing square root of matrix: iterative method could not converge")}while(t>1e-6);return u}return t("sqrtm",{"Array | Matrix":function(e){var t=f(e)?e.size():je(e);switch(t.length){case 1:if(1===t[0])return n(e);throw new RangeError("Matrix must be square (size: "+Me(t)+")");case 2:if(t[0]===t[1])return u(e);throw new RangeError("Matrix must be square (size: "+Me(t)+")");default:throw new RangeError("Matrix must be at most two dimensional (size: "+Me(t)+")")}}})}),Od=at("divide",["typed","matrix","multiply","equalScalar","divideScalar","inv"],e=>{var{typed:t,matrix:r,multiply:i,equalScalar:a,divideScalar:n,inv:o}=e,s=Co({typed:t,equalScalar:a}),l=To({typed:t});return t("divide",Q({"Array | Matrix, Array | Matrix":function(e,t){return i(e,o(t))},"DenseMatrix, any":function(e,t){return l(e,t,n,!1)},"SparseMatrix, any":function(e,t){return s(e,t,n,!1)},"Array, any":function(e,t){return l(r(e),t,n,!1).valueOf()},"any, Array | Matrix":function(e,t){return i(e,o(t))}},n.signatures))}),Id=at("expm",["typed","abs","add","identity","inv","multiply"],e=>{var{typed:t,abs:r,add:i,identity:a,inv:n,multiply:o}=e;return t("expm",{Matrix:function(e){var t=e.size();if(2!==t.length||t[0]!==t[1])throw new RangeError("Matrix must be square (size: "+Me(t)+")");for(var l=t[0],d=function(e,t){for(var r=0;r<30;r++)for(var i=0;i<=r;i++){var a=r-i;if(s(e,i,a)1&&(g=o(g,p),y=-y),h=i(h,o(m=m*(c-v+1)/((2*c-v+1)*v),g)),f=i(f,o(m*y,g));for(var x=o(n(f),h),w=0;w{var{typed:t,matrix:r,divide:i,sum:a,multiply:n,dotDivide:o,log:s,isNumeric:l}=e;return t("kldivergence",{"Array, Array":function(e,t){return d(r(e),r(t))},"Matrix, Array":function(e,t){return d(e,r(t))},"Array, Matrix":function(e,t){return d(r(e),t)},"Matrix, Matrix":function(e,t){return d(e,t)}});function d(e,t){var r=t.size().length,d=e.size().length;if(r>1)throw new Error("first object must be one dimensional");if(d>1)throw new Error("second object must be one dimensional");if(r!==d)throw new Error("Length of two vectors must be equal");if(0===a(e))throw new Error("Sum of elements in first object must be non zero");if(0===a(t))throw new Error("Sum of elements in second object must be non zero");var c=i(e,a(e)),u=i(t,a(t)),p=a(n(c,s(o(c,u))));return l(p)?p:Number.NaN}}),Ad=at("mean",["typed","add","divide"],e=>{var{typed:t,add:r,divide:i}=e;return t("mean",{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(e,t){try{var a=gi(e,t,r),n=Array.isArray(e)?je(e):e.size();return i(a,n[t])}catch(e){throw $o(e,"mean")}},"...":function(e){if(hi(e))throw new TypeError("Scalar values expected in function mean");return a(e)}});function a(e){var t,a=0;if(fi(e,(function(e){try{t=void 0===t?e:r(t,e),a++}catch(t){throw $o(t,"mean",e)}})),0===a)throw new Error("Cannot calculate the mean of an empty array");return i(t,a)}}),Md=at("median",["typed","add","divide","compare","partitionSelect"],e=>{var{typed:t,add:r,divide:i,compare:a,partitionSelect:n}=e;function o(e){try{var t=(e=Qe(e.valueOf())).length;if(0===t)throw new Error("Cannot calculate median of an empty array");if(t%2==0){for(var r=t/2-1,i=n(e,r+1),o=e[r],d=0;d0&&(o=e[d]);return l(o,i)}var c=n(e,(t-1)/2);return s(c)}catch(e){throw $o(e,"median")}}var s=t({"number | BigNumber | Complex | Unit":function(e){return e}}),l=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(e,t){return i(r(e,t),2)}});return t("median",{"Array | Matrix":o,"Array | Matrix, number | BigNumber":function(e,t){throw new Error("median(A, dim) is not yet supported")},"...":function(e){if(hi(e))throw new TypeError("Scalar values expected in function median");return o(e)}})}),Ld=at("variance",["typed","add","subtract","multiply","divide","apply","isNaN"],e=>{var{typed:t,add:r,subtract:i,multiply:a,divide:n,apply:o,isNaN:s}=e;return t("variance",{"Array | Matrix":function(e){return d(e,"unbiased")},"Array | Matrix, string":d,"Array | Matrix, number | BigNumber":function(e,t){return c(e,t,"unbiased")},"Array | Matrix, number | BigNumber, string":c,"...":function(e){return d(e,"unbiased")}});function d(e,t){var o,d=0;if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(fi(e,(function(e){try{o=void 0===o?e:r(o,e),d++}catch(t){throw $o(t,"variance",e)}})),0===d)throw new Error("Cannot calculate variance of an empty array");var c=n(o,d);if(o=void 0,fi(e,(function(e){var t=i(e,c);o=void 0===o?a(t,t):r(o,a(t,t))})),s(o))return o;switch(t){case"uncorrected":return n(o,d);case"biased":return n(o,d+1);case"unbiased":var u=l(o)?o.mul(0):0;return 1===d?u:n(o,d-1);default:throw new Error('Unknown normalization "'+t+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function c(e,t,r){try{if(0===e.length)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return o(e,t,e=>d(e,r))}catch(e){throw $o(e,"variance")}}}),Rd=at("std",["typed","sqrt","variance"],e=>{var{typed:t,sqrt:r,variance:i}=e;return t("std",{"Array | Matrix":a,"Array | Matrix, string":a,"Array | Matrix, number | BigNumber":a,"Array | Matrix, number | BigNumber, string":a,"...":function(e){return a(e)}});function a(e,t){if(0===e.length)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{return r(i.apply(null,arguments))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf(" variance")?new TypeError(e.message.replace(" variance"," std")):e}}});function Pd(e){var{addScalar:t,subtract:r,flatten:i,multiply:a,multiplyScalar:n,divideScalar:o,sqrt:s,abs:l,bignumber:d,diag:c,inv:u,qr:p,usolve:h,usolveAll:f,equal:m,complex:g,larger:b,smaller:y,matrixFromColumns:v,dot:x}=e;function w(e,t,i,a,n,o,s,c){var u="BigNumber"===c,p="Complex"===c,h=u?d(0):p?g(0):0,f=u?d(1):p?g(1):1;if(y(l(i),s))return[[f,h],[h,f]];if(b(l(r(n,o)),s))return[[r(n,a),r(o,a)],[i,i]];var m=r(e,n),v=r(t,n),x=r(i,n),w=r(a,n);return y(l(v),s)?[[m,f],[x,h]]:[[v,h],[w,f]]}function _(e,t){for(var r=0;r=5)return null;for(s=0;;){var l=h(e,n);if(y(T(S(n,[l])),i))break;if(++s>=10)return null;n=k(l)}return n}function N(e,t,r){var i="BigNumber"===r,a="Complex"===r,n=Array(e).fill(0).map(e=>2*Math.random()-1);return i&&(n=n.map(e=>d(e))),a&&(n=n.map(e=>g(e))),k(n=S(n,t),r)}function S(e,t){for(var i of t)e=r(e,a(o(x(i,e),x(i,i)),i));return e}function T(e){return l(s(x(e,e)))}function k(e,t){var r="Complex"===t,i="BigNumber"===t?d(1):r?g(1):1;return a(o(i,T(e)),e)}return function(e,h,x,N,S){void 0===S&&(S=!0);var T=function(e,r,i,a,s){var u,p="BigNumber"===a,h="Complex"===a,f=p?d(0):h?g(0):0,v=p?d(1):h?g(1):1,x=p?d(10):2,w=n(x,x);s&&(u=Array(r).fill(v));for(var _=!1;!_;){_=!0;for(var E=0;E1&&(L=c(Array(D-1).fill(b)))),D-=1,O.pop();for(var B=0;B2&&(L=c(Array(D-2).fill(b)))),D-=2,O.pop(),O.pop();for(var V=0;V+r(l(e),l(t))),R>100){var q=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+I.join(", "));throw q.values=I,q.vectors=[],q}var z=h?a(M,function(e,t){for(var r=[],i=0;ia(n,e))).shift();R.length<_[A];){var P=C(L,t,R,s,l);if(null==P){D.push(M);break}R.push(P)}T.push(...R.map(e=>i(e)))}if(0!==D.length){var $=new Error("Failed to find eigenvectors for the following eigenvalues: "+D.join(", "));throw $.values=o,$.vectors=T,$}return T}(e,h,I,O,x,N),k=v(...k)),{values:O,vectors:k}}}var $d=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],Fd=at("eigs",$d,e=>{var{config:t,typed:r,matrix:i,addScalar:a,subtract:n,equal:o,abs:u,atan:p,cos:h,sin:f,multiplyScalar:m,divideScalar:g,inv:b,bignumber:y,multiply:v,add:x,larger:w,column:_,flatten:E,number:C,complex:N,sqrt:S,diag:T,qr:k,usolve:O,usolveAll:I,im:D,re:A,smaller:M,matrixFromColumns:L,dot:R}=e,P=function(e){var{config:t,addScalar:r,subtract:i,abs:a,atan:n,cos:o,sin:s,multiplyScalar:l,inv:d,bignumber:c,multiply:u,add:p}=e;function h(e,t){for(var r,i=e.length,a=Math.abs(t/i),n=new Array(i),o=0;o=Math.abs(a);){var l=s[0][0],d=s[0][1];e=x(e,r=m(e[l][l],e[d][d],e[l][d]),l,d),n=b(n,r,l,d),s=w(e)}for(var c=C(i,0),u=0;u=a(n);){var d=l[0][0],c=l[0][1];e=v(e,r=g(e[d][d],e[c][c],e[d][c]),d,c),o=y(o,r,d,c),l=_(e)}for(var u=C(i,0),p=0;p2&&void 0!==arguments[2]?arguments[2]:t.epsilon,a=arguments.length>3?arguments[3]:void 0;if("number"===a)return h(e,i);if("BigNumber"===a)return f(e,i);throw TypeError("Unsupported data type: "+a)}}({config:t,addScalar:a,subtract:n,column:_,flatten:E,equal:o,abs:u,atan:p,cos:h,sin:f,multiplyScalar:m,inv:b,bignumber:y,complex:N,multiply:v,add:x}),$=Pd({config:t,addScalar:a,subtract:n,multiply:v,multiplyScalar:m,flatten:E,divideScalar:g,sqrt:S,abs:u,bignumber:y,diag:T,qr:k,inv:b,usolve:O,usolveAll:I,equal:o,complex:N,larger:w,smaller:M,matrixFromColumns:L,dot:R});return r("eigs",{Array:function(e){return F(i(e))},"Array, number|BigNumber":function(e,t){return F(i(e),t)},Matrix:function(e){var{values:t,vectors:r}=F(e);return{values:i(t),vectors:i(r)}},"Matrix, number|BigNumber":function(e,t){var{values:r,vectors:a}=F(e,t);return{values:i(r),vectors:i(a)}}});function F(e,r){void 0===r&&(r=t.epsilon);var i=e.size();if(2!==i.length||i[0]!==i[1])throw new RangeError("Matrix must be square (size: "+Me(i)+")");var a=e.toArray(),o=i[0];if(function(e,t,r){for(var i=0;i{var{typed:t,add:r,divide:i,multiply:a,factorial:n,isInteger:o,isPositive:s}=e;return t("multinomial",{"Array | Matrix":function(e){var t=0,l=1;return fi(e,(function(e){if(!o(e)||!s(e))throw new TypeError("Positive integer value expected in function multinomial");t=r(t,e),l=a(l,n(e))})),i(n(t),l)}})}),Ud=["typed","abs","map","median","subtract"],Vd=at("mad",Ud,e=>{var{typed:t,abs:r,map:i,median:a,subtract:n}=e;return t("mad",{"Array | Matrix":o,"...":function(e){return o(e)}});function o(e){if(0===(e=Qe(e.valueOf())).length)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var t=a(e);return a(i(e,(function(e){return r(n(e,t))})))}catch(e){throw e instanceof TypeError&&-1!==e.message.indexOf("median")?new TypeError(e.message.replace("median","mad")):$o(e,"mad")}}}),qd=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],zd=at("norm",qd,e=>{var{typed:t,abs:r,add:i,pow:a,conj:n,sqrt:o,multiply:s,equalScalar:l,larger:d,smaller:c,matrix:u,ctranspose:p,eigs:h}=e;return t("norm",{number:Math.abs,Complex:function(e){return e.abs()},BigNumber:function(e){return e.abs()},boolean:function(e){return Math.abs(e)},Array:function(e){return g(u(e),2)},Matrix:function(e){return g(e,2)},"number | Complex | BigNumber | boolean, number | BigNumber | string":function(e){return this(e)},"Array, number | BigNumber | string":function(e,t){return g(u(e),t)},"Matrix, number | BigNumber | string":function(e,t){return g(e,t)}});function f(e,t){if(t===Number.POSITIVE_INFINITY||"inf"===t)return function(e){var t=0;return e.forEach((function(e){var i=r(e);d(i,t)&&(t=i)}),!0),t}(e);if(t===Number.NEGATIVE_INFINITY||"-inf"===t)return function(e){var t;return e.forEach((function(e){var i=r(e);t&&!c(i,t)||(t=i)}),!0),t||0}(e);if("fro"===t)return g(e,2);if("number"==typeof t&&!isNaN(t)){if(!l(t,0)){var n=0;return e.forEach((function(e){n=i(a(r(e),t),n)}),!0),a(n,1/t)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function m(e,t){if(1===t)return function(e){var t=[],a=0;return e.forEach((function(e,n){var o=n[1],s=i(t[o]||0,r(e));d(s,a)&&(a=s),t[o]=s}),!0),a}(e);if(t===Number.POSITIVE_INFINITY||"inf"===t)return function(e){var t=[],a=0;return e.forEach((function(e,n){var o=n[0],s=i(t[o]||0,r(e));d(s,a)&&(a=s),t[o]=s}),!0),a}(e);if("fro"===t)return function(e){var t=0;return e.forEach((function(e,r){t=i(t,s(e,n(e)))})),r(o(t))}(e);if(2===t)return function(e){var t=e.size();if(t[0]!==t[1])throw new RangeError("Invalid matrix dimensions");var i=p(e),a=s(i,e),n=h(a).values.toArray(),l=n[n.length-1];return r(o(l))}(e);throw new Error("Unsupported parameter value "+t)}function g(e,t){var r=e.size();if(1===r.length)return f(e,t);if(2===r.length){if(r[0]&&r[1])return m(e,t);throw new RangeError("Invalid matrix dimensions")}}}),Hd=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],Gd=at("rotationMatrix",Hd,e=>{var{typed:t,config:r,multiplyScalar:i,addScalar:a,unaryMinus:n,norm:o,BigNumber:s,matrix:d,DenseMatrix:c,SparseMatrix:u,cos:p,sin:h}=e;return t("rotationMatrix",{"":function(){return"Matrix"===r.matrix?d([]):[]},string:function(e){return d(e)},"number | BigNumber | Complex | Unit":function(e){return f(e,"Matrix"===r.matrix?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(e,t){return f(e,t)},"number | BigNumber | Complex | Unit, Array":function(e,t){var r=d(t);return m(r),y(e,r,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(e,t){m(t);var i=t.storage()||("Matrix"===r.matrix?"dense":void 0);return y(e,t,i)},"number | BigNumber | Complex | Unit, Array, string":function(e,t,r){var i=d(t);return m(i),y(e,i,r)},"number | BigNumber | Complex | Unit, Matrix, string":function(e,t,r){return m(t),y(e,t,r)}});function f(e,t){var r=l(e)?new s(-1):-1,a=p(e),n=h(e);return b([[a,i(r,n)],[n,a]],t)}function m(e){var t=e.size();if(t.length<1||3!==t[0])throw new RangeError("Vector must be of dimensions 1x3")}function g(e){return e.reduce((e,t)=>i(e,t))}function b(e,t){if(t){if("sparse"===t)return new u(e);if("dense"===t)return new c(e);throw new TypeError('Unknown matrix type "'.concat(t,'"'))}return e}function y(e,t,r){var i=o(t);if(0===i)throw new RangeError("Rotation around zero vector");var d=l(e)?s:null,c=d?new d(1):1,u=d?new d(-1):-1,f=d?new d(t.get([0])/i):t.get([0])/i,m=d?new d(t.get([1])/i):t.get([1])/i,y=d?new d(t.get([2])/i):t.get([2])/i,v=p(e),x=a(c,n(v)),w=h(e);return b([[a(v,g([f,f,x])),a(g([f,m,x]),g([u,y,w])),a(g([f,y,x]),g([m,w]))],[a(g([f,m,x]),g([y,w])),a(v,g([m,m,x])),a(g([m,y,x]),g([u,f,w]))],[a(g([f,y,x]),g([u,m,w])),a(g([m,y,x]),g([f,w])),a(v,g([y,y,x]))]],r)}}),Wd=["typed","multiply","rotationMatrix"],Qd=at("rotate",Wd,e=>{var{typed:t,multiply:r,rotationMatrix:i}=e;return t("rotate",{"Array , number | BigNumber | Complex | Unit":function(e,t){return a(e,2),r(i(t),e).toArray()},"Matrix , number | BigNumber | Complex | Unit":function(e,t){return a(e,2),r(i(t),e)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,n){return a(e,3),r(i(t,n),e)},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(e,t,n){return a(e,3),r(i(t,n),e)}});function a(e,t){var r=Array.isArray(e)?je(e):e.size();if(r.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(t));if(2===r.length&&1!==r[1])throw new RangeError("Vector must be of dimensions 1x".concat(t));if(r[0]!==t)throw new RangeError("Vector must be of dimensions 1x".concat(t))}}),Xd=st({config:ae}),Kd=ct({}),Yd=Ot({BigNumber:Xd,config:ae}),Jd=Et({}),Zd=sr({BigNumber:Xd,config:ae}),ec=Vr({}),tc=$t({Complex:Kd}),rc=Nt({BigNumber:Xd,config:ae}),ic=At({BigNumber:Xd,config:ae}),ac=Lt({BigNumber:Xd,config:ae}),nc=qr({}),oc=St({BigNumber:Xd,config:ae}),sc=Ct({}),lc=It({BigNumber:Xd,config:ae}),dc=zr({}),cc=Hr({}),uc=Rt({BigNumber:Xd,config:ae}),pc=Sr({BigNumber:Xd,config:ae}),hc=kt({BigNumber:Xd,config:ae}),fc=_t({}),mc=Bt({}),gc=Gr({Matrix:nc}),bc=gr({BigNumber:Xd,config:ae}),yc=Dt({BigNumber:Xd,config:ae}),vc=Tt({BigNumber:Xd,config:ae}),xc=Wr({}),wc=Pt({BigNumber:Xd,config:ae}),_c=di({BigNumber:Xd,Complex:Kd,DenseMatrix:gc,Fraction:ec}),Ec=Vi({BigNumber:Xd,config:ae,typed:_c}),Cc=mr({BigNumber:Xd,config:ae}),Nc=qi({typed:_c}),Sc=zi({Complex:Kd,config:ae,typed:_c}),Tc=sa({BigNumber:Xd,typed:_c}),kc=la({BigNumber:Xd,Complex:Kd,config:ae,typed:_c}),Oc=da({typed:_c}),Ic=ca({typed:_c}),Dc=ua({BigNumber:Xd,Complex:Kd,config:ae,typed:_c}),Ac=pa({typed:_c}),Mc=ha({typed:_c}),Lc=fa({Complex:Kd,config:ae,typed:_c}),Rc=ma({BigNumber:Xd,typed:_c}),Pc=Aa({typed:_c}),$c=Ma({typed:_c}),Fc=La({typed:_c}),jc=$a({typed:_c}),Bc=ja({Complex:Kd,typed:_c}),Uc=Ba({typed:_c}),Vc=Ua({typed:_c}),qc=Va({BigNumber:Xd,typed:_c}),zc=qa({BigNumber:Xd,typed:_c}),Hc=za({typed:_c}),Gc=Ga({config:ae,typed:_c}),Wc=Wa({typed:_c}),Qc=Za({typed:_c}),Xc=en({Complex:Kd,typed:_c}),Kc=tn({typed:_c}),Yc=an({typed:_c}),Jc=on({typed:_c}),Zc=sn({typed:_c}),eu=ln({format:Jc,typed:_c}),tu=dn({typed:_c}),ru=cn({typed:_c}),iu=mn({typed:_c}),au=gn({typed:_c}),nu=bn({typed:_c}),ou=Mt({BigNumber:Xd,config:ae}),su=yn({Complex:Kd,config:ae,typed:_c}),lu=vn({Complex:Kd,config:ae,typed:_c}),du=xn({typed:_c}),cu=_n({typed:_c}),uu=Tn({typed:_c}),pu=kn({typed:_c}),hu=On({format:Jc,typed:_c}),fu=Ln({config:ae,typed:_c}),mu=Rn({typed:_c}),gu=Fn({config:ae,typed:_c}),bu=jn({typed:_c}),yu=Bn({BigNumber:Xd,typed:_c}),vu=Un({BigNumber:Xd,Fraction:ec,complex:Bc,typed:_c}),xu=Vn({typed:_c}),wu=qn({Matrix:nc,equalScalar:Gc,typed:_c}),_u=zn({typed:_c}),Eu=Hn({typed:_c}),Cu=Gn({typed:_c}),Nu=Wn({typed:_c}),Su=Qn({typed:_c}),Tu=Xn({Complex:Kd,config:ae,typed:_c}),ku=Kn({BigNumber:Xd,typed:_c}),Ou=Yn({isInteger:ru,typed:_c}),Iu=Zn({BigNumber:Xd,Complex:Kd,config:ae,typed:_c}),Du=eo({format:Jc,typed:_c}),Au=to({typed:_c}),Mu=io({typed:_c}),Lu=ao({BigNumber:Xd,typed:_c}),Ru=no({typed:_c}),Pu=oo({typed:_c}),$u=so({config:ae,typed:_c}),Fu=lo({BigNumber:Xd,typed:_c}),ju=co({typed:_c}),Bu=uo({SparseMatrix:wu,typed:_c}),Uu=po({Complex:Kd,config:ae,typed:_c}),Vu=ho({typed:_c}),qu=fo({typed:_c}),zu=mo({BigNumber:Xd,Complex:Kd,config:ae,typed:_c}),Hu=go({BigNumber:Xd,typed:_c}),Gu=bo({Fraction:ec,typed:_c}),Wu=yo({typed:_c}),Qu=vo({DenseMatrix:gc,Matrix:nc,SparseMatrix:wu,typed:_c}),Xu=xo({isZero:nu,matrix:Qu,typed:_c}),Ku=ko({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),Yu=Do({BigNumber:Xd,equalScalar:Gc,matrix:Qu,typed:_c}),Ju=Ro({bignumber:Rc,fraction:Gu,number:pu}),Zu=Po({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),ep=Fo({config:ae,multiplyScalar:cu,numeric:Ju,typed:_c}),tp=jo({isInteger:ru,matrix:Qu,typed:_c}),rp=Bo({matrix:Qu,config:ae,typed:_c}),ip=Vo({DenseMatrix:gc,config:ae,matrix:Qu,typed:_c}),ap=qo({matrix:Qu,typed:_c}),np=zo({matrix:Qu,typed:_c}),op=Ko({DenseMatrix:gc,addScalar:Oc,equalScalar:Gc,matrix:Qu,typed:_c,unaryMinus:qu}),sp=Jo({matrix:Qu,typed:_c}),lp=Zo({matrix:Qu,typed:_c}),dp=es({BigNumber:Xd,config:ae,matrix:Qu,typed:_c}),cp=ts({BigNumber:Xd,config:ae,matrix:Qu,typed:_c}),up=rs({equalScalar:Gc,matrix:Qu,not:uu,typed:_c,zeros:cp}),pp=is({equalScalar:Gc,matrix:Qu,typed:_c}),hp=as({DenseMatrix:gc,matrix:Qu,typed:_c}),fp=ns({BigNumber:Xd,Complex:Kd,Fraction:ec,config:ae,isNegative:iu,matrix:Qu,typed:_c,unaryMinus:qu}),mp=os({BigNumber:Xd,DenseMatrix:gc,Fraction:ec,config:ae,equalScalar:Gc,matrix:Qu,typed:_c}),gp=ss({matrix:Qu,typed:_c}),bp=ls({isInteger:ru,matrix:Qu,typed:_c}),yp=cs({prod:ep,size:rp,typed:_c}),vp=us({conj:Uc,transpose:lp,typed:_c}),xp=ps({DenseMatrix:gc,SparseMatrix:wu,matrix:Qu,typed:_c}),wp=hs({numeric:Ju,typed:_c}),_p=fs({DenseMatrix:gc,divideScalar:wp,equalScalar:Gc,matrix:Qu,typed:_c}),Ep=ms({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),Cp=gs({matrix:Qu,typed:_c}),Np=ys({BigNumber:Xd,DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),Sp=vs({isNumeric:Wu,typed:_c}),Tp=xs({abs:Nc,addScalar:Oc,divideScalar:wp,isPositive:au,multiplyScalar:cu,smaller:ip,sqrt:Uu,typed:_c}),kp=ws({DenseMatrix:gc,smaller:ip}),Op=_s({ImmutableDenseMatrix:kp}),Ip=Es({matrix:Qu,multiplyScalar:cu,typed:_c}),Dp=Cs({DenseMatrix:gc,config:ae,matrix:Qu,typed:_c}),Ap=Ss({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c,zeros:cp}),Mp=ks({DenseMatrix:gc,divideScalar:wp,equalScalar:Gc,matrix:Qu,multiplyScalar:cu,subtract:op,typed:_c}),Lp=Os({flatten:Cp,matrix:Qu,size:rp,typed:_c}),Rp=Is({config:ae,numeric:Ju,smaller:ip,typed:_c}),Pp=Ds({isNaN:Ru,isNumeric:Wu,typed:_c}),$p=As({Complex:Kd,config:ae,divideScalar:wp,typed:_c}),Fp=Ms({BigNumber:Xd,config:ae,matrix:Qu,typed:_c}),jp=Ls({compare:mp,isNaN:Ru,isNumeric:Wu,typed:_c}),Bp=Ps({config:ae,matrix:Qu}),Up=$s({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c,zeros:cp}),Vp=qs({BigNumber:Xd,DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c,zeros:cp}),qp=Hs({DenseMatrix:gc,config:ae,matrix:Qu,typed:_c}),zp=Gs({DenseMatrix:gc,config:ae,equalScalar:Gc,matrix:Qu,typed:_c}),Hp=Ws({DenseMatrix:gc,divideScalar:wp,equalScalar:Gc,matrix:Qu,multiplyScalar:cu,subtract:op,typed:_c}),Gp=Qs({DenseMatrix:gc,matrix:Qu,typed:_c}),Wp=Xs({DenseMatrix:gc,SparseMatrix:wu,addScalar:Oc,equalScalar:Gc,matrix:Qu,typed:_c}),Qp=Ys({BigNumber:Xd,DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),Xp=Js({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c}),Kp=Zs({addScalar:Oc,combinations:jc,divideScalar:wp,isInteger:ru,isNegative:iu,multiplyScalar:cu,typed:_c}),Yp=rl({compare:mp,typed:_c}),Jp=il({equal:Ep,typed:_c}),Zp=al({matrix:Qu,number:pu,subtract:op,typed:_c}),eh=nl({addScalar:Oc,conj:Uc,multiplyScalar:cu,size:rp,typed:_c}),th=ol({compareText:gp,isZero:nu,typed:_c}),rh=sl({config:ae,equalScalar:Gc,matrix:Qu,round:Vp,typed:_c}),ih=ll({BigNumber:Xd,DenseMatrix:gc,SparseMatrix:wu,config:ae,matrix:Qu,typed:_c}),ah=dl({DenseMatrix:gc,config:ae,matrix:Qu,typed:_c}),nh=cl({Complex:Kd,config:ae,divideScalar:wp,typed:_c}),oh=ul({DenseMatrix:gc,divideScalar:wp,equalScalar:Gc,matrix:Qu,multiplyScalar:cu,subtract:op,typed:_c}),sh=pl({flatten:Cp,matrix:Qu,size:rp,typed:_c}),lh=hl({addScalar:Oc,dot:eh,equalScalar:Gc,matrix:Qu,multiplyScalar:cu,typed:_c}),dh=fl({Complex:Kd,config:ae,fraction:Gu,identity:ih,matrix:Qu,multiply:lh,number:pu,typed:_c}),ch=ml({addScalar:Oc,complex:Bc,conj:Uc,divideScalar:wp,equal:Ep,identity:ih,isZero:nu,matrix:Qu,multiplyScalar:cu,sign:vu,sqrt:Uu,subtract:op,typed:_c,unaryMinus:qu,zeros:cp}),uh=gl({bignumber:Rc,matrix:Qu,config:ae,larger:ah,largerEq:Dp,smaller:ip,smallerEq:qp,typed:_c}),ph=bl({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,typed:_c,zeros:cp}),hh=yl({Index:Op,matrix:Qu,range:uh,typed:_c}),fh=vl({DenseMatrix:gc,Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),mh=xl({DenseMatrix:gc,Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),gh=wl({Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),bh=_l({Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),yh=Rl({SparseMatrix:wu,abs:Nc,add:Wp,divideScalar:wp,larger:ah,largerEq:Dp,multiply:lh,subtract:op,transpose:lp,typed:_c}),vh=Pl({add:Wp,config:ae,numeric:Ju,typed:_c}),xh=$l({add:Wp,matrix:Qu,typed:_c}),wh=Fl({DenseMatrix:gc,divideScalar:wp,equalScalar:Gc,matrix:Qu,multiplyScalar:cu,subtract:op,typed:_c}),_h=jl({Complex:Kd,config:ae,typed:_c}),Eh=Bl({config:ae,equalScalar:Gc,matrix:Qu,round:Vp,typed:_c}),Ch=Ul({Index:Op,matrix:Qu,range:uh,typed:_c}),Nh=Vl({addScalar:Oc,combinations:jc,isInteger:ru,isNegative:iu,isPositive:au,larger:ah,typed:_c}),Sh=ql({matrix:Qu,multiply:lh,subtract:op,typed:_c}),Th=zl({abs:Nc,addScalar:Oc,divideScalar:wp,multiplyScalar:cu,sqrt:Uu,subtract:op,typed:_c,unaryMinus:qu}),kh=Hl({equalScalar:Gc,matrix:Qu,multiplyScalar:cu,typed:_c}),Oh=Gl({larger:ah,smaller:ip}),Ih=Wl({Complex:Kd,ceil:Eh,floor:rh,matrix:Qu,typed:_c}),Dh=Yl({BigNumber:Xd,Complex:Kd,config:ae,multiplyScalar:cu,pow:dh,typed:_c}),Ah=Jl({Index:Op,typed:_c}),Mh=Zl({equalScalar:Gc,matrix:Qu,typed:_c}),Lh=ed({config:ae,larger:ah,numeric:Ju,typed:_c}),Rh=td({add:Wp,compare:mp,multiply:lh,partitionSelect:jp,typed:_c}),Ph=rd({DenseMatrix:gc,Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),$h=id({Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),Fh=ad({Index:Op,concat:bp,setDifference:Ph,size:rp,subset:np,typed:_c}),jh=nd({compare:mp,compareNatural:Yp,matrix:Qu,typed:_c}),Bh=ld({BigNumber:Xd,Complex:Kd,Fraction:ec,abs:Nc,addScalar:Oc,config:ae,divideScalar:wp,equal:Ep,fix:Ih,format:Jc,isNumeric:Wu,multiplyScalar:cu,number:pu,pow:dh,round:Vp,subtract:op}),Uh=Qt({BigNumber:Xd,Unit:Bh,config:ae}),Vh=Or({BigNumber:Xd,Unit:Bh,config:ae}),qh=br({BigNumber:Xd,Unit:Bh,config:ae}),zh=Yt({BigNumber:Xd,Unit:Bh,config:ae}),Hh=vr({BigNumber:Xd,Unit:Bh,config:ae}),Gh=Jt({BigNumber:Xd,Unit:Bh,config:ae}),Wh=dd({Unit:Bh,typed:_c}),Qh=cr({BigNumber:Xd,Unit:Bh,config:ae}),Xh=cd({DenseMatrix:gc,equalScalar:Gc,matrix:Qu,pow:dh,typed:_c}),Kh=Wt({BigNumber:Xd,Unit:Bh,config:ae}),Yh=Kt({BigNumber:Xd,Unit:Bh,config:ae}),Jh=ud({gamma:Dh,typed:_c}),Zh=or({BigNumber:Xd,Unit:Bh,config:ae}),ef=Er({BigNumber:Xd,Unit:Bh,config:ae}),tf=Ar({BigNumber:Xd,Unit:Bh,config:ae}),rf=pd({abs:Nc,add:Wp,addScalar:Oc,config:ae,divideScalar:wp,equalScalar:Gc,flatten:Cp,matrix:Qu,multiply:lh,multiplyScalar:cu,smaller:ip,subtract:op,typed:_c}),af=Zt({BigNumber:Xd,Unit:Bh,config:ae}),nf=rr({BigNumber:Xd,Unit:Bh,config:ae}),of=_r({BigNumber:Xd,Unit:Bh,config:ae}),sf=Gt({BigNumber:Xd,Unit:Bh,config:ae}),lf=Ir({BigNumber:Xd,Unit:Bh,config:ae}),df=Cr({BigNumber:Xd,Unit:Bh,config:ae}),cf=ur({BigNumber:Xd,Unit:Bh,config:ae}),uf=tr({BigNumber:Xd,Unit:Bh,config:ae}),pf=hd({factorial:Jh,typed:_c}),hf=zt({BigNumber:Xd,Unit:Bh,config:ae}),ff=Lr({BigNumber:Xd,Unit:Bh,config:ae}),mf=Rr({BigNumber:Xd,Unit:Bh,config:ae}),gf=pr({BigNumber:Xd,Unit:Bh,config:ae}),bf=Ht({BigNumber:Xd,Unit:Bh,config:ae}),yf=hr({BigNumber:Xd,Unit:Bh,config:ae}),vf=md({DenseMatrix:gc,Index:Op,compareNatural:Yp,size:rp,subset:np,typed:_c}),xf=gd({Index:Op,concat:bp,setIntersect:vf,setSymDifference:Fh,size:rp,subset:np,typed:_c}),wf=bd({FibonacciHeap:Oh,addScalar:Oc,equalScalar:Gc}),_f=kr({BigNumber:Xd,Unit:Bh,config:ae}),Ef=yd({Unit:Bh,typed:_c}),Cf=yr({BigNumber:Xd,Unit:Bh,config:ae}),Nf=ir({BigNumber:Xd,Unit:Bh,config:ae}),Sf=Xt({BigNumber:Xd,Unit:Bh,config:ae}),Tf=nr({BigNumber:Xd,Unit:Bh,config:ae}),kf=xr({BigNumber:Xd,Unit:Bh,config:ae}),Of=lr({BigNumber:Xd,Unit:Bh,config:ae}),If=vd({Complex:Kd,config:ae,divideScalar:wp,log:nh,typed:_c}),Df=er({BigNumber:Xd,Unit:Bh,config:ae}),Af=Dr({BigNumber:Xd,Unit:Bh,config:ae}),Mf=Pr({BigNumber:Xd,Unit:Bh,config:ae}),Lf=$r({BigNumber:Xd,Unit:Bh,config:ae}),Rf=Tr({BigNumber:Xd,Unit:Bh,config:ae}),Pf=Vt({BigNumber:Xd,Unit:Bh,config:ae}),$f=xd({addScalar:Oc,combinations:jc,divideScalar:wp,factorial:Jh,isInteger:ru,isNegative:iu,larger:ah,multiplyScalar:cu,pow:dh,subtract:op,typed:_c}),Ff=wd({addScalar:Oc,isInteger:ru,isNegative:iu,stirlingS2:$f,typed:_c}),jf=wr({BigNumber:Xd,Unit:Bh,config:ae}),Bf=_d({DenseMatrix:gc,Spa:wf,SparseMatrix:wu,abs:Nc,addScalar:Oc,divideScalar:wp,equalScalar:Gc,larger:ah,matrix:Qu,multiplyScalar:cu,subtract:op,typed:_c,unaryMinus:qu}),Uf=Nr({BigNumber:Xd,Unit:Bh,config:ae}),Vf=dr({BigNumber:Xd,Unit:Bh,config:ae}),qf=Ed({compareNatural:Yp,typed:_c}),zf=fr({BigNumber:Xd,Unit:Bh,config:ae}),Hf=ar({BigNumber:Xd,Unit:Bh,config:ae}),Gf=Cd({lup:Bf,matrix:Qu,multiply:lh,subtract:op,typed:_c,unaryMinus:qu}),Wf=qt({BigNumber:Xd,Unit:Bh,config:ae}),Qf=Nd({abs:Nc,addScalar:Oc,det:Gf,divideScalar:wp,identity:ih,matrix:Qu,multiply:lh,typed:_c,unaryMinus:qu}),Xf=Td({DenseMatrix:gc,lsolve:Mp,lup:Bf,matrix:Qu,slu:yh,typed:_c,usolve:Hp}),Kf=kd({abs:Nc,add:Wp,identity:ih,inv:Qf,max:Lh,multiply:lh,size:rp,sqrt:Uu,subtract:op,typed:_c}),Yf=Od({divideScalar:wp,equalScalar:Gc,inv:Qf,matrix:Qu,multiply:lh,typed:_c}),Jf=Id({abs:Nc,add:Wp,identity:ih,inv:Qf,multiply:lh,typed:_c}),Zf=Dd({divide:Yf,dotDivide:_p,isNumeric:Wu,log:nh,matrix:Qu,multiply:lh,sum:vh,typed:_c}),em=Ad({add:Wp,divide:Yf,typed:_c}),tm=Md({add:Wp,compare:mp,divide:Yf,partitionSelect:jp,typed:_c}),rm=Mr({BigNumber:Xd,Unit:Bh,config:ae}),im=Ld({add:Wp,apply:Ou,divide:Yf,isNaN:Ru,multiply:lh,subtract:op,typed:_c}),am=Rd({sqrt:Uu,typed:_c,variance:im}),nm=Fd({abs:Nc,add:Wp,addScalar:Oc,atan:Mc,bignumber:Rc,column:Ch,complex:Bc,config:ae,cos:Mu,diag:xp,divideScalar:wp,dot:eh,equal:Ep,flatten:Cp,im:tu,inv:Qf,larger:ah,matrix:Qu,matrixFromColumns:Lp,multiply:lh,multiplyScalar:cu,number:pu,qr:ch,re:bu,sin:xu,smaller:ip,sqrt:Uu,subtract:op,typed:_c,usolve:Hp,usolveAll:wh}),om=Bd({add:Wp,divide:Yf,factorial:Jh,isInteger:ru,isPositive:au,multiply:lh,typed:_c}),sm=Vd({abs:Nc,map:du,median:tm,subtract:op,typed:_c}),lm=zd({abs:Nc,add:Wp,conj:Uc,ctranspose:vp,eigs:nm,equalScalar:Gc,larger:ah,matrix:Qu,multiply:lh,pow:dh,smaller:ip,sqrt:Uu,typed:_c}),dm=Gd({BigNumber:Xd,DenseMatrix:gc,SparseMatrix:wu,addScalar:Oc,config:ae,cos:Mu,matrix:Qu,multiplyScalar:cu,norm:lm,sin:xu,typed:_c,unaryMinus:qu}),cm=Qd({multiply:lh,rotationMatrix:dm,typed:_c}),um=at("Chain",["?on","math"],e=>{var{on:t,math:r}=e;function i(e){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");z(e)?this.value=e.value:this.value=e}function a(e,t){Y(i.prototype,e,(function(){var e=t();if("function"==typeof e)return n(e)}))}function n(e){return function(){for(var t=[this.value],r=0;re[t])};for(var s in e)r(s)}var l,d};var o={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return i.createProxy(r),t&&t("import",(function(e,t,r){r||a(e,t)})),i},{isClass:!0}),pm=new Set(["end"]),hm=at("Node",["mathWithTransform"],e=>{var{mathWithTransform:t}=e;function r(){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator")}return r.prototype.evaluate=function(e){return this.compile().evaluate(e)},r.prototype.type="Node",r.prototype.isNode=!0,r.prototype.comment="",r.prototype.compile=function(){var e=this._compile(t,{}),r={};return{evaluate:function(t){var i=ni(t);return function(e){for(var t of[...pm])if(e.has(t))throw new Error('Scope contains an illegal symbol, "'+t+'" is a reserved keyword')}(i),e(i,r,null)}}},r.prototype._compile=function(e,t){throw new Error("Method _compile should be implemented by type "+this.type)},r.prototype.forEach=function(e){throw new Error("Cannot run forEach on a Node interface")},r.prototype.map=function(e){throw new Error("Cannot run map on a Node interface")},r.prototype._ifNode=function(e){if(!F(e))throw new TypeError("Callback function must return a Node");return e},r.prototype.traverse=function(e){e(this,null,null),function e(t,r){t.forEach((function(t,i,a){r(t,i,a),e(t,r)}))}(this,e)},r.prototype.transform=function(e){return function t(r,i,a){var n=e(r,i,a);return n!==r?n:r.map(t)}(this,null,null)},r.prototype.filter=function(e){var t=[];return this.traverse((function(r,i,a){e(r,i,a)&&t.push(r)})),t},r.prototype.clone=function(){throw new Error("Cannot clone a Node interface")},r.prototype.cloneDeep=function(){return this.map((function(e){return e.cloneDeep()}))},r.prototype.equals=function(e){return!!e&&X(this,e)},r.prototype.toString=function(e){var t=this._getCustomString(e);return void 0!==t?t:this._toString(e)},r.prototype.toJSON=function(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)},r.prototype.toHTML=function(e){var t=this._getCustomString(e);return void 0!==t?t:this.toHTML(e)},r.prototype._toString=function(){throw new Error("_toString not implemented for "+this.type)},r.prototype.toTex=function(e){var t=this._getCustomString(e);return void 0!==t?t:this._toTex(e)},r.prototype._toTex=function(e){throw new Error("_toTex not implemented for "+this.type)},r.prototype._getCustomString=function(e){if(e&&"object"==typeof e)switch(typeof e.handler){case"object":case"undefined":return;case"function":return e.handler(this,e);default:throw new TypeError("Object or function expected as callback")}},r.prototype.getIdentifier=function(){return this.type},r.prototype.getContent=function(){return this},r},{isClass:!0,isNode:!0}),fm=at("ObjectNode",["Node"],e=>{var{Node:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(this.properties=e||{},e&&("object"!=typeof e||!Object.keys(e).every((function(t){return F(e[t])}))))throw new TypeError("Object containing Nodes expected")}return r.prototype=new t,r.prototype.type="ObjectNode",r.prototype.isObjectNode=!0,r.prototype._compile=function(e,t){var r={};for(var i in this.properties)if(J(this.properties,i)){var a=Le(i),n=JSON.parse(a);if(!Jr(this.properties,n))throw new Error('No access to property "'+n+'"');r[n]=this.properties[i]._compile(e,t)}return function(e,t,i){var a={};for(var n in r)J(r,n)&&(a[n]=r[n](e,t,i));return a}},r.prototype.forEach=function(e){for(var t in this.properties)J(this.properties,t)&&e(this.properties[t],"properties["+Le(t)+"]",this)},r.prototype.map=function(e){var t={};for(var i in this.properties)J(this.properties,i)&&(t[i]=this._ifNode(e(this.properties[i],"properties["+Le(i)+"]",this)));return new r(t)},r.prototype.clone=function(){var e={};for(var t in this.properties)J(this.properties,t)&&(e[t]=this.properties[t]);return new r(e)},r.prototype._toString=function(e){var t=[];for(var r in this.properties)J(this.properties,r)&&t.push(Le(r)+": "+this.properties[r].toString(e));return"{"+t.join(", ")+"}"},r.prototype.toJSON=function(){return{mathjs:"ObjectNode",properties:this.properties}},r.fromJSON=function(e){return new r(e.properties)},r.prototype.toHTML=function(e){var t=[];for(var r in this.properties)J(this.properties,r)&&t.push(''+Re(r)+':'+this.properties[r].toHTML(e));return'{'+t.join(',')+'}'},r.prototype._toTex=function(e){var t=[];for(var r in this.properties)J(this.properties,r)&&t.push("\\mathbf{"+r+":} & "+this.properties[r].toTex(e)+"\\\\");return"\\left\\{\\begin{array}{ll}".concat(t.join("\n"),"\\end{array}\\right\\}")},r},{isClass:!0,isNode:!0}),mm=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{associativity:"left",associativeWith:[]}},{"OperatorNode:and":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{associativity:"left",associativeWith:[]},"OperatorNode:unequal":{associativity:"left",associativeWith:[]},"OperatorNode:smaller":{associativity:"left",associativeWith:[]},"OperatorNode:larger":{associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{associativity:"left",associativeWith:[]}},{"OperatorNode:to":{associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{associativity:"left",associativeWith:[]},"OperatorNode:mod":{associativity:"left",associativeWith:[]}},{"OperatorNode:unaryPlus":{associativity:"right"},"OperatorNode:unaryMinus":{associativity:"right"},"OperatorNode:bitNot":{associativity:"right"},"OperatorNode:not":{associativity:"right"}},{"OperatorNode:pow":{associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{associativity:"left"}},{"OperatorNode:transpose":{associativity:"left"}}];function gm(e,t){var r=e;"keep"!==t&&(r=e.getContent());for(var i=r.getIdentifier(),a=0;a>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},Em={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(_m.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(_m.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(_m.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(_m.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(_m.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(_m.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(_m.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(_m.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(_m.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(_m.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(_m.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(_m.bitAnd,"${args[1]}\\right)")},bitNot:{1:_m.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(_m.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(_m.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(_m.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(_m.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(_m.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(_m.and,"${args[1]}\\right)")},not:{1:_m.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(_m.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(_m.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(_m.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},sqrtm:{1:"{${args[0]}}".concat(_m.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(_m.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(_m.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(_m.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(_m.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(_m.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(_m.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(_m.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(_m.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(_m.to,"${args[1]}\\right)")},numeric:function(e,t){return e.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(wm.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},Cm={deg:"^\\circ"};function Nm(e){return xm()(e,{preserveFormatting:!0})}function Sm(e,t){return(t=void 0!==t&&t)?J(Cm,e)?Cm[e]:"\\mathrm{"+Nm(e)+"}":J(wm,e)?wm[e]:Nm(e)}var Tm=at("OperatorNode",["Node"],e=>{var{Node:t}=e;function r(e,t,i,a,n){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('string expected for parameter "op"');if("string"!=typeof t)throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(i)||!i.every(F))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=!0===a,this.isPercentage=!0===n,this.op=e,this.fn=t,this.args=i||[]}function i(e,t,r,i,a){var n,o=gm(e,t),s=bm(e,t);if("all"===t||i.length>2&&"OperatorNode:add"!==e.getIdentifier()&&"OperatorNode:multiply"!==e.getIdentifier())return i.map((function(e){switch(e.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}}));switch(i.length){case 0:n=[];break;case 1:var l=gm(i[0],t);if(a&&null!==l){var d,c;if("keep"===t?(d=i[0].getIdentifier(),c=e.getIdentifier()):(d=i[0].getContent().getIdentifier(),c=e.getContent().getIdentifier()),!1===mm[o][c].latexLeftParens){n=[!1];break}if(!1===mm[l][d].latexParens){n=[!1];break}}if(null===l){n=[!1];break}if(l<=o){n=[!0];break}n=[!1];break;case 2:var u,p,h=gm(i[0],t),f=ym(e,i[0],t);u=null!==h&&(h===o&&"right"===s&&!f||h=2&&"OperatorNode:multiply"===e.getIdentifier()&&e.implicit&&"auto"===t&&"hide"===r&&(n=i.map((function(e,t){var r="ParenthesisNode"===e.getIdentifier();return!(!n[t]&&!r)}))),n}return r.prototype=new t,r.prototype.type="OperatorNode",r.prototype.isOperatorNode=!0,r.prototype._compile=function(e,t){if("string"!=typeof this.fn||!Zr(e,this.fn))throw e[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var r=Kr(e,this.fn),i=Xe(this.args,(function(r){return r._compile(e,t)}));if(1===i.length){var a=i[0];return function(e,t,i){return r(a(e,t,i))}}if(2===i.length){var n=i[0],o=i[1];return function(e,t,i){return r(n(e,t,i),o(e,t,i))}}return function(e,t,a){return r.apply(null,Xe(i,(function(r){return r(e,t,a)})))}},r.prototype.forEach=function(e){for(var t=0;t2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var u=a.map((function(t,r){return t=t.toString(e),n[r]&&(t="("+t+")"),t}));return this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===r?u.join(" "):u.join(" "+this.op+" ")}return this.fn+"("+this.args.join(", ")+")"},r.prototype.toJSON=function(){return{mathjs:"OperatorNode",op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}},r.fromJSON=function(e){return new r(e.op,e.fn,e.args,e.implicit,e.isPercentage)},r.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=e&&e.implicit?e.implicit:"hide",a=this.args,n=i(this,t,r,a,!1);if(1===a.length){var o=bm(this,t),s=a[0].toHTML(e);return n[0]&&(s='('+s+')'),"right"===o?''+Re(this.op)+""+s:s+''+Re(this.op)+""}if(2===a.length){var l=a[0].toHTML(e),d=a[1].toHTML(e);return n[0]&&(l='('+l+')'),n[1]&&(d='('+d+')'),this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===r?l+''+d:l+''+Re(this.op)+""+d}var c=a.map((function(t,r){return t=t.toHTML(e),n[r]&&(t='('+t+')'),t}));return a.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())?this.implicit&&"OperatorNode:multiply"===this.getIdentifier()&&"hide"===r?c.join(''):c.join(''+Re(this.op)+""):''+Re(this.fn)+'('+c.join(',')+')'},r.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=e&&e.implicit?e.implicit:"hide",a=this.args,n=i(this,t,r,a,!0),o=_m[this.fn];if(o=void 0===o?this.op:o,1===a.length){var s=bm(this,t),l=a[0].toTex(e);return n[0]&&(l="\\left(".concat(l,"\\right)")),"right"===s?o+l:l+o}if(2===a.length){var d=a[0],c=d.toTex(e);n[0]&&(c="\\left(".concat(c,"\\right)"));var u,p=a[1].toTex(e);switch(n[1]&&(p="\\left(".concat(p,"\\right)")),u="keep"===t?d.getIdentifier():d.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return o+"{"+c+"}{"+p+"}";case"OperatorNode:pow":switch(c="{"+c+"}",p="{"+p+"}",u){case"ConditionalNode":case"OperatorNode:divide":c="\\left(".concat(c,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&"hide"===r)return c+"~"+p}return c+o+p}if(a.length>2&&("OperatorNode:add"===this.getIdentifier()||"OperatorNode:multiply"===this.getIdentifier())){var h=a.map((function(t,r){return t=t.toTex(e),n[r]&&(t="\\left(".concat(t,"\\right)")),t}));return"OperatorNode:multiply"===this.getIdentifier()&&this.implicit?h.join("~"):h.join(o)}return"\\mathrm{"+this.fn+"}\\left("+a.map((function(t){return t.toTex(e)})).join(",")+"\\right)"},r.prototype.getIdentifier=function(){return this.type+":"+this.fn},r},{isClass:!0,isNode:!0}),km=at("ParenthesisNode",["Node"],e=>{var{Node:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!F(e))throw new TypeError('Node expected for parameter "content"');this.content=e}return r.prototype=new t,r.prototype.type="ParenthesisNode",r.prototype.isParenthesisNode=!0,r.prototype._compile=function(e,t){return this.content._compile(e,t)},r.prototype.getContent=function(){return this.content.getContent()},r.prototype.forEach=function(e){e(this.content,"content",this)},r.prototype.map=function(e){return new r(e(this.content,"content",this))},r.prototype.clone=function(){return new r(this.content)},r.prototype._toString=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"("+this.content.toString(e)+")":this.content.toString(e)},r.prototype.toJSON=function(){return{mathjs:"ParenthesisNode",content:this.content}},r.fromJSON=function(e){return new r(e.content)},r.prototype.toHTML=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?'('+this.content.toHTML(e)+')':this.content.toHTML(e)},r.prototype._toTex=function(e){return!e||e&&!e.parenthesis||e&&"keep"===e.parenthesis?"\\left(".concat(this.content.toTex(e),"\\right)"):this.content.toTex(e)},r},{isClass:!0,isNode:!0}),Om=at("RelationalNode",["Node"],e=>{var{Node:t}=e;function r(e,t){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(t))throw new TypeError("Parameter params must be an array");if(e.length!==t.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=e,this.params=t}return r.prototype=new t,r.prototype.type="RelationalNode",r.prototype.isRelationalNode=!0,r.prototype._compile=function(e,t){var r=this,i=this.params.map(r=>r._compile(e,t));return function(t,a,n){for(var o,s=i[0](t,a,n),l=0;le(t,"params["+r+"]",this),this)},r.prototype.map=function(e){return new r(this.conditionals.slice(),this.params.map((t,r)=>this._ifNode(e(t,"params["+r+"]",this)),this))},r.prototype.clone=function(){return new r(this.conditionals,this.params)},r.prototype._toString=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",r=gm(this,t),i=this.params.map((function(i,a){var n=gm(i,t);return"all"===t||null!==n&&n<=r?"("+i.toString(e)+")":i.toString(e)})),a={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},n=i[0],o=0;o('+i.toHTML(e)+')':i.toHTML(e)})),a={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="},n=i[0],o=0;o'+Re(a[this.conditionals[o]])+""+i[o+1];return n},r.prototype._toTex=function(e){for(var t=e&&e.parenthesis?e.parenthesis:"keep",r=gm(this,t),i=this.params.map((function(i,a){var n=gm(i,t);return"all"===t||null!==n&&n<=r?"\\left("+i.toTex(e)+"\right)":i.toTex(e)})),a=i[0],n=0;n{var{Node:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(this.items=e||[],!Array.isArray(this.items)||!this.items.every(F))throw new TypeError("Array containing Nodes expected")}return r.prototype=new t,r.prototype.type="ArrayNode",r.prototype.isArrayNode=!0,r.prototype._compile=function(e,t){var r=Xe(this.items,(function(r){return r._compile(e,t)}));if("Array"!==e.config.matrix){var i=e.matrix;return function(e,t,a){return i(Xe(r,(function(r){return r(e,t,a)})))}}return function(e,t,i){return Xe(r,(function(r){return r(e,t,i)}))}},r.prototype.forEach=function(e){for(var t=0;t['+this.items.map((function(t){return t.toHTML(e)})).join(',')+']'},r.prototype._toTex=function(e){return function t(r,i){var a=r.some(I)&&!r.every(I),n=i||a,o=n?"&":"\\\\",s=r.map((function(r){return r.items?t(r.items,!i):r.toTex(e)})).join(o);return a||!n||n&&!i?"\\begin{bmatrix}"+s+"\\end{bmatrix}":s}(this.items,!1)},r},{isClass:!0,isNode:!0}),Dm=at("BlockNode",["ResultSet","Node"],e=>{var{ResultSet:t,Node:r}=e;function i(e){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if(!Array.isArray(e))throw new Error("Array expected");this.blocks=e.map((function(e){var t=e&&e.node,r=!e||void 0===e.visible||e.visible;if(!F(t))throw new TypeError('Property "node" must be a Node');if("boolean"!=typeof r)throw new TypeError('Property "visible" must be a boolean');return{node:t,visible:r}}))}return i.prototype=new r,i.prototype.type="BlockNode",i.prototype.isBlockNode=!0,i.prototype._compile=function(e,r){var i=Xe(this.blocks,(function(t){return{evaluate:t.node._compile(e,r),visible:t.visible}}));return function(e,r,a){var n=[];return Ke(i,(function(t){var i=t.evaluate(e,r,a);t.visible&&n.push(i)})),new t(n)}},i.prototype.forEach=function(e){for(var t=0;t;')})).join('
')},i.prototype._toTex=function(e){return this.blocks.map((function(t){return t.node.toTex(e)+(t.visible?"":";")})).join("\\;\\;\n")},i},{isClass:!0,isNode:!0}),Am=at("ConditionalNode",["Node"],e=>{var{Node:t}=e;function r(e,t,i){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!F(e))throw new TypeError("Parameter condition must be a Node");if(!F(t))throw new TypeError("Parameter trueExpr must be a Node");if(!F(i))throw new TypeError("Parameter falseExpr must be a Node");this.condition=e,this.trueExpr=t,this.falseExpr=i}return r.prototype=new t,r.prototype.type="ConditionalNode",r.prototype.isConditionalNode=!0,r.prototype._compile=function(e,t){var r=this.condition._compile(e,t),i=this.trueExpr._compile(e,t),a=this.falseExpr._compile(e,t);return function(e,t,n){return function(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e)return!!e;if(e){if(l(e))return!e.isZero();if(d(e))return!(!e.re&&!e.im);if(u(e))return!!e.value}if(null==e)return!1;throw new TypeError('Unsupported type of condition "'+H(e)+'"')}(r(e,t,n))?i(e,t,n):a(e,t,n)}},r.prototype.forEach=function(e){e(this.condition,"condition",this),e(this.trueExpr,"trueExpr",this),e(this.falseExpr,"falseExpr",this)},r.prototype.map=function(e){return new r(this._ifNode(e(this.condition,"condition",this)),this._ifNode(e(this.trueExpr,"trueExpr",this)),this._ifNode(e(this.falseExpr,"falseExpr",this)))},r.prototype.clone=function(){return new r(this.condition,this.trueExpr,this.falseExpr)},r.prototype._toString=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=gm(this,t),i=this.condition.toString(e),a=gm(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==a&&a<=r)&&(i="("+i+")");var n=this.trueExpr.toString(e),o=gm(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(n="("+n+")");var s=this.falseExpr.toString(e),l=gm(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==l&&l<=r)&&(s="("+s+")"),i+" ? "+n+" : "+s},r.prototype.toJSON=function(){return{mathjs:"ConditionalNode",condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}},r.fromJSON=function(e){return new r(e.condition,e.trueExpr,e.falseExpr)},r.prototype.toHTML=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=gm(this,t),i=this.condition.toHTML(e),a=gm(this.condition,t);("all"===t||"OperatorNode"===this.condition.type||null!==a&&a<=r)&&(i='('+i+')');var n=this.trueExpr.toHTML(e),o=gm(this.trueExpr,t);("all"===t||"OperatorNode"===this.trueExpr.type||null!==o&&o<=r)&&(n='('+n+')');var s=this.falseExpr.toHTML(e),l=gm(this.falseExpr,t);return("all"===t||"OperatorNode"===this.falseExpr.type||null!==l&&l<=r)&&(s='('+s+')'),i+'?'+n+':'+s},r.prototype._toTex=function(e){return"\\begin{cases} {"+this.trueExpr.toTex(e)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(e)+"}\\\\{"+this.falseExpr.toTex(e)+"}, &\\quad{\\text{otherwise}}\\end{cases}"},r},{isClass:!0,isNode:!0}),Mm=at("ConstantNode",["Node"],e=>{var{Node:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");this.value=e}return r.prototype=new t,r.prototype.type="ConstantNode",r.prototype.isConstantNode=!0,r.prototype._compile=function(e,t){var r=this.value;return function(){return r}},r.prototype.forEach=function(e){},r.prototype.map=function(e){return this.clone()},r.prototype.clone=function(){return new r(this.value)},r.prototype._toString=function(e){return Me(this.value,e)},r.prototype.toHTML=function(e){var t=this._toString(e);switch(H(this.value)){case"number":case"BigNumber":case"Fraction":return''+t+"";case"string":return''+t+"";case"boolean":return''+t+"";case"null":return''+t+"";case"undefined":return''+t+"";default:return''+t+""}},r.prototype.toJSON=function(){return{mathjs:"ConstantNode",value:this.value}},r.fromJSON=function(e){return new r(e.value)},r.prototype._toTex=function(e){var t=this._toString(e);switch(H(this.value)){case"string":return"\\mathtt{"+Nm(t)+"}";case"number":case"BigNumber":if(!isFinite(this.value))return this.value.valueOf()<0?"-\\infty":"\\infty";var r=t.toLowerCase().indexOf("e");return-1!==r?t.substring(0,r)+"\\cdot10^{"+t.substring(r+1)+"}":t;case"Fraction":return this.value.toLatex();default:return t}},r},{isClass:!0,isNode:!0}),Lm=at("RangeNode",["Node"],e=>{var{Node:t}=e;function r(e,t,i){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!F(e))throw new TypeError("Node expected");if(!F(t))throw new TypeError("Node expected");if(i&&!F(i))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=e,this.end=t,this.step=i||null}function i(e,t){var r=gm(e,t),i={},a=gm(e.start,t);if(i.start=null!==a&&a<=r||"all"===t,e.step){var n=gm(e.step,t);i.step=null!==n&&n<=r||"all"===t}var o=gm(e.end,t);return i.end=null!==o&&o<=r||"all"===t,i}return r.prototype=new t,r.prototype.type="RangeNode",r.prototype.isRangeNode=!0,r.prototype.needsEnd=function(){return this.filter((function(e){return q(e)&&"end"===e.name})).length>0},r.prototype._compile=function(e,t){var r=e.range,i=this.start._compile(e,t),a=this.end._compile(e,t);if(this.step){var n=this.step._compile(e,t);return function(e,t,o){return r(i(e,t,o),a(e,t,o),n(e,t,o))}}return function(e,t,n){return r(i(e,t,n),a(e,t,n))}},r.prototype.forEach=function(e){e(this.start,"start",this),e(this.end,"end",this),this.step&&e(this.step,"step",this)},r.prototype.map=function(e){return new r(this._ifNode(e(this.start,"start",this)),this._ifNode(e(this.end,"end",this)),this.step&&this._ifNode(e(this.step,"step",this)))},r.prototype.clone=function(){return new r(this.start,this.end,this.step&&this.step)},r.prototype._toString=function(e){var t,r=i(this,e&&e.parenthesis?e.parenthesis:"keep"),a=this.start.toString(e);if(r.start&&(a="("+a+")"),t=a,this.step){var n=this.step.toString(e);r.step&&(n="("+n+")"),t+=":"+n}var o=this.end.toString(e);return r.end&&(o="("+o+")"),t+":"+o},r.prototype.toJSON=function(){return{mathjs:"RangeNode",start:this.start,end:this.end,step:this.step}},r.fromJSON=function(e){return new r(e.start,e.end,e.step)},r.prototype.toHTML=function(e){var t,r=i(this,e&&e.parenthesis?e.parenthesis:"keep"),a=this.start.toHTML(e);if(r.start&&(a='('+a+')'),t=a,this.step){var n=this.step.toHTML(e);r.step&&(n='('+n+')'),t+=':'+n}var o=this.end.toHTML(e);return r.end&&(o='('+o+')'),t+':'+o},r.prototype._toTex=function(e){var t=i(this,e&&e.parenthesis?e.parenthesis:"keep"),r=this.start.toTex(e);if(t.start&&(r="\\left(".concat(r,"\\right)")),this.step){var a=this.step.toTex(e);t.step&&(a="\\left(".concat(a,"\\right)")),r+=":"+a}var n=this.end.toTex(e);return t.end&&(n="\\left(".concat(n,"\\right)")),r+":"+n},r},{isClass:!0,isNode:!0}),Rm=at("reviver",["classes"],e=>{var{classes:t}=e;return function(e,r){var i=t[r&&r.mathjs];return i&&"function"==typeof i.fromJSON?i.fromJSON(r):r}}),Pm=at("chain",["typed","Chain"],e=>{var{typed:t,Chain:r}=e;return t("chain",{"":function(){return new r},any:function(e){return new r(e)}})}),$m=at("FunctionAssignmentNode",["typed","Node"],e=>{var{typed:t,Node:r}=e;function i(e,t,r){if(!(this instanceof i))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');if(!Array.isArray(t))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!F(r))throw new TypeError('Node expected for parameter "expr"');if(pm.has(e))throw new Error('Illegal function name, "'+e+'" is a reserved keyword');this.name=e,this.params=t.map((function(e){return e&&e.name||e})),this.types=t.map((function(e){return e&&e.type||"any"})),this.expr=r}function a(e,t){var r=gm(e,t),i=gm(e.expr,t);return"all"===t||null!==i&&i<=r}return i.prototype=new r,i.prototype.type="FunctionAssignmentNode",i.prototype.isFunctionAssignmentNode=!0,i.prototype._compile=function(e,r){var i=Object.create(r);Ke(this.params,(function(e){i[e]=!0}));var a=this.expr._compile(e,i),n=this.name,o=this.params,s=Ze(this.types,","),l=n+"("+Ze(this.params,", ")+")";return function(e,r,i){var d={};d[s]=function(){for(var t=Object.create(r),n=0;n'+Re(this.params[i])+"");var n=this.expr.toHTML(e);return a(this,t)&&(n='('+n+')'),''+Re(this.name)+'('+r.join(',')+')='+n},i.prototype._toTex=function(e){var t=e&&e.parenthesis?e.parenthesis:"keep",r=this.expr.toTex(e);return a(this,t)&&(r="\\left(".concat(r,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(Sm).join(",")+"\\right):="+r},i},{isClass:!0,isNode:!0});function Fm(e){return e&&e.isIndexError?new Fe(e.index+1,e.min+1,void 0!==e.max?e.max+1:void 0):e}function jm(e){var{subset:t}=e;return function(e,r){try{if(Array.isArray(e))return t(e,r);if(e&&"function"==typeof e.subset)return e.subset(r);if("string"==typeof e)return t(e,r);if("object"==typeof e){if(!r.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return Kr(e,r.getObjectProperty())}throw new TypeError("Cannot apply index: unsupported type of object")}catch(e){throw Fm(e)}}}var Bm=at("AccessorNode",["subset","Node"],e=>{var{subset:t,Node:r}=e,i=jm({subset:t});function a(e,t){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if(!F(e))throw new TypeError('Node expected for parameter "object"');if(!$(t))throw new TypeError('IndexNode expected for parameter "index"');this.object=e||null,this.index=t,Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function n(e){return!(O(e)||I(e)||L(e)||P(e)||j(e)||U(e)||q(e))}return a.prototype=new r,a.prototype.type="AccessorNode",a.prototype.isAccessorNode=!0,a.prototype._compile=function(e,t){var r=this.object._compile(e,t),a=this.index._compile(e,t);if(this.index.isObjectProperty()){var n=this.index.getObjectProperty();return function(e,t,i){return Kr(r(e,t,i),n)}}return function(e,t,n){var o=r(e,t,n),s=a(e,t,o);return i(o,s)}},a.prototype.forEach=function(e){e(this.object,"object",this),e(this.index,"index",this)},a.prototype.map=function(e){return new a(this._ifNode(e(this.object,"object",this)),this._ifNode(e(this.index,"index",this)))},a.prototype.clone=function(){return new a(this.object,this.index)},a.prototype._toString=function(e){var t=this.object.toString(e);return n(this.object)&&(t="("+t+")"),t+this.index.toString(e)},a.prototype.toHTML=function(e){var t=this.object.toHTML(e);return n(this.object)&&(t='('+t+')'),t+this.index.toHTML(e)},a.prototype._toTex=function(e){var t=this.object.toTex(e);return n(this.object)&&(t="\\left(' + object + '\\right)"),t+this.index.toTex(e)},a.prototype.toJSON=function(){return{mathjs:"AccessorNode",object:this.object,index:this.index}},a.fromJSON=function(e){return new a(e.object,e.index)},a},{isClass:!0,isNode:!0}),Um=at("AssignmentNode",["subset","?matrix","Node"],e=>{var{subset:t,matrix:r,Node:i}=e,a=jm({subset:t}),n=function(e){var{subset:t,matrix:r}=e;return function(e,i,a){try{if(Array.isArray(e))return r(e).subset(i,a).valueOf();if(e&&"function"==typeof e.subset)return e.subset(i,a);if("string"==typeof e)return t(e,i,a);if("object"==typeof e){if(!i.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return Yr(e,i.getObjectProperty(),a),e}throw new TypeError("Cannot apply index: unsupported type of object")}catch(e){throw Fm(e)}}}({subset:t,matrix:r});function o(e,t,r){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(this.object=e,this.index=r?t:null,this.value=r||t,!q(e)&&!O(e))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(q(e)&&"end"===e.name)throw new Error('Cannot assign to symbol "end"');if(this.index&&!$(this.index))throw new TypeError('IndexNode expected as "index"');if(!F(this.value))throw new TypeError('Node expected as "value"');Object.defineProperty(this,"name",{get:function(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}function s(e,t){t||(t="keep");var r=gm(e,t),i=gm(e.value,t);return"all"===t||null!==i&&i<=r}return o.prototype=new i,o.prototype.type="AssignmentNode",o.prototype.isAssignmentNode=!0,o.prototype._compile=function(e,t){var r=this.object._compile(e,t),i=this.index?this.index._compile(e,t):null,o=this.value._compile(e,t),s=this.object.name;if(this.index){if(this.index.isObjectProperty()){var l=this.index.getObjectProperty();return function(e,t,i){var a=r(e,t,i),n=o(e,t,i);return Yr(a,l,n),n}}if(q(this.object))return function(e,t,a){var l=r(e,t,a),d=o(e,t,a),c=i(e,t,l);return e.set(s,n(l,c,d)),d};var d=this.object.object._compile(e,t);if(this.object.index.isObjectProperty()){var c=this.object.index.getObjectProperty();return function(e,t,r){var a=d(e,t,r),s=Kr(a,c),l=i(e,t,s),u=o(e,t,r);return Yr(a,c,n(s,l,u)),u}}var u=this.object.index._compile(e,t);return function(e,t,r){var s=d(e,t,r),l=u(e,t,s),c=a(s,l),p=i(e,t,c),h=o(e,t,r);return n(s,l,n(c,p,h)),h}}if(!q(this.object))throw new TypeError("SymbolNode expected as object");return function(e,t,r){var i=o(e,t,r);return e.set(s,i),i}},o.prototype.forEach=function(e){e(this.object,"object",this),this.index&&e(this.index,"index",this),e(this.value,"value",this)},o.prototype.map=function(e){return new o(this._ifNode(e(this.object,"object",this)),this.index?this._ifNode(e(this.index,"index",this)):null,this._ifNode(e(this.value,"value",this)))},o.prototype.clone=function(){return new o(this.object,this.index,this.value)},o.prototype._toString=function(e){var t=this.object.toString(e),r=this.index?this.index.toString(e):"",i=this.value.toString(e);return s(this,e&&e.parenthesis)&&(i="("+i+")"),t+r+" = "+i},o.prototype.toJSON=function(){return{mathjs:"AssignmentNode",object:this.object,index:this.index,value:this.value}},o.fromJSON=function(e){return new o(e.object,e.index,e.value)},o.prototype.toHTML=function(e){var t=this.object.toHTML(e),r=this.index?this.index.toHTML(e):"",i=this.value.toHTML(e);return s(this,e&&e.parenthesis)&&(i='('+i+')'),t+r+'='+i},o.prototype._toTex=function(e){var t=this.object.toTex(e),r=this.index?this.index.toTex(e):"",i=this.value.toTex(e);return s(this,e&&e.parenthesis)&&(i="\\left(".concat(i,"\\right)")),t+r+":="+i},o},{isClass:!0,isNode:!0}),Vm=at("IndexNode",["Range","Node","size"],e=>{var{Range:t,Node:r,size:i}=e;function a(e,t){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if(this.dimensions=e,this.dotNotation=t||!1,!Array.isArray(e)||!e.every(F))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}function n(e,r,i){return new t(l(e)?e.toNumber():e,l(r)?r.toNumber():r,l(i)?i.toNumber():i)}return a.prototype=new r,a.prototype.type="IndexNode",a.prototype.isIndexNode=!0,a.prototype._compile=function(e,t){var r=Xe(this.dimensions,(function(r,a){if(V(r)){if(r.needsEnd()){var o=Object.create(t);o.end=!0;var s=r.start._compile(e,o),l=r.end._compile(e,o),d=r.step?r.step._compile(e,o):function(){return 1};return function(e,t,r){var o=i(r).valueOf(),c=Object.create(t);return c.end=o[a],n(s(e,c,r),l(e,c,r),d(e,c,r))}}var c=r.start._compile(e,t),u=r.end._compile(e,t),p=r.step?r.step._compile(e,t):function(){return 1};return function(e,t,r){return n(c(e,t,r),u(e,t,r),p(e,t,r))}}if(q(r)&&"end"===r.name){var h=Object.create(t);h.end=!0;var f=r._compile(e,h);return function(e,t,r){var n=i(r).valueOf(),o=Object.create(t);return o.end=n[a],f(e,o,r)}}var m=r._compile(e,t);return function(e,t,r){return m(e,t,r)}})),a=Kr(e,"index");return function(e,t,i){var n=Xe(r,(function(r){return r(e,t,i)}));return a(...n)}},a.prototype.forEach=function(e){for(var t=0;t.'+Re(this.getObjectProperty())+"":'['+t.join(',')+']'},a.prototype._toTex=function(e){var t=this.dimensions.map((function(t){return t.toTex(e)}));return this.dotNotation?"."+this.getObjectProperty():"_{"+t.join(",")+"}"},a},{isClass:!0,isNode:!0}),qm=at("SymbolNode",["math","?Unit","Node"],e=>{var{math:t,Unit:r,Node:i}=e;function a(e){return!!r&&r.isValuelessUnit(e)}function n(e){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if("string"!=typeof e)throw new TypeError('String expected for parameter "name"');this.name=e}return n.prototype=new i,n.prototype.type="SymbolNode",n.prototype.isSymbolNode=!0,n.prototype._compile=function(e,t){var i=this.name;if(!0===t[i])return function(e,t,r){return t[i]};if(i in e)return function(t,r,a){return t.has(i)?t.get(i):Kr(e,i)};var o=a(i);return function(e,t,a){return e.has(i)?e.get(i):o?new r(null,i):n.onUndefinedSymbol(i)}},n.prototype.forEach=function(e){},n.prototype.map=function(e){return this.clone()},n.onUndefinedSymbol=function(e){throw new Error("Undefined symbol "+e)},n.prototype.clone=function(){return new n(this.name)},n.prototype._toString=function(e){return this.name},n.prototype.toHTML=function(e){var t=Re(this.name);return"true"===t||"false"===t?''+t+"":"i"===t?''+t+"":"Infinity"===t?''+t+"":"NaN"===t?''+t+"":"null"===t?''+t+"":"undefined"===t?''+t+"":''+t+""},n.prototype.toJSON=function(){return{mathjs:"SymbolNode",name:this.name}},n.fromJSON=function(e){return new n(e.name)},n.prototype._toTex=function(e){var r=!1;void 0===t[this.name]&&a(this.name)&&(r=!0);var i=Sm(this.name,r);return"\\"===i[0]?i:" "+i},n},{isClass:!0,isNode:!0});function zm(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i{var{math:t,Node:r,SymbolNode:i}=e;function a(e,t){if(!(this instanceof a))throw new SyntaxError("Constructor must be called with the new operator");if("string"==typeof e&&(e=new i(e)),!F(e))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(t)||!t.every(F))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=e,this.args=t||[],Object.defineProperty(this,"name",{get:function(){return this.fn.name||""}.bind(this),set:function(){throw new Error("Cannot assign a new name, name is read-only")}})}a.prototype=new r,a.prototype.type="FunctionNode",a.prototype.isFunctionNode=!0,a.prototype._compile=function(e,t){if(!(this instanceof a))throw new TypeError("No valid FunctionNode");var r=this.args.map(r=>r._compile(e,t));if(!q(this.fn)){if(O(this.fn)&&$(this.fn.index)&&this.fn.index.isObjectProperty()){var i=this.fn.object._compile(e,t),n=this.fn.index.getObjectProperty(),o=this.args;return function(t,a,s){var l=i(t,a,s);if(function(e,t){if(!Zr(e,t))throw new Error('No access to method "'+t+'"')}(l,n),l[n]&&l[n].rawArgs)return l[n](o,e,zm(t,a),t);var d=r.map(e=>e(t,a,s));return l[n].apply(l,d)}}var s=this.fn._compile(e,t),l=this.args;return function(t,i,a){var n=s(t,i,a);if(n&&n.rawArgs)return n(l,e,zm(t,i),t);var o=r.map(e=>e(t,i,a));return n.apply(n,o)}}var d=this.fn.name,c=d in e?Kr(e,d):void 0,u="function"==typeof c&&!0===c.rawArgs,p=t=>t.has(d)?t.get(d):d in e?Kr(e,d):a.onUndefinedFunction(d);if(u){var h=this.args;return function(t,r,i){return p(t)(h,e,zm(t,r),t)}}switch(r.length){case 0:return function(e,t,r){return p(e)()};case 1:return function(e,t,i){return p(e)((0,r[0])(e,t,i))};case 2:return function(e,t,i){var a=p(e),n=r[0],o=r[1];return a(n(e,t,i),o(e,t,i))};default:return function(e,t,i){return p(e)(...r.map(r=>r(e,t,i)))}}},a.prototype.forEach=function(e){e(this.fn,"fn",this);for(var t=0;t'+Re(this.fn)+'('+t.join(',')+')'};var s=a.prototype.toTex;return a.prototype.toTex=function(e){var t;return e&&"object"==typeof e.handler&&J(e.handler,this.name)&&(t=e.handler[this.name](this,e)),void 0!==t?t:s.call(this,e)},a.prototype._toTex=function(e){var r,i,a=this.args.map((function(t){return t.toTex(e)}));switch(Em[this.name]&&(r=Em[this.name]),!t[this.name]||"function"!=typeof t[this.name].toTex&&"object"!=typeof t[this.name].toTex&&"string"!=typeof t[this.name].toTex||(r=t[this.name].toTex),typeof r){case"function":i=r(this,e);break;case"string":i=o(r,this,e);break;case"object":switch(typeof r[a.length]){case"function":i=r[a.length](this,e);break;case"string":i=o(r[a.length],this,e)}}return void 0!==i?i:o("\\mathrm{${name}}\\left(${args}\\right)",this,e)},a.prototype.getIdentifier=function(){return this.type+":"+this.name},a},{isClass:!0,isNode:!0}),Wm=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],Qm=at("parse",Wm,e=>{var{typed:t,numeric:r,config:i,AccessorNode:a,ArrayNode:o,AssignmentNode:s,BlockNode:l,ConditionalNode:d,ConstantNode:c,FunctionAssignmentNode:u,FunctionNode:p,IndexNode:h,ObjectNode:f,OperatorNode:m,ParenthesisNode:g,RangeNode:b,RelationalNode:y,SymbolNode:v}=e,x=t("parse",{string:function(e){return H(e,{})},"Array | Matrix":function(e){return w(e,{})},"string, Object":function(e,t){return H(e,void 0!==t.nodes?t.nodes:{})},"Array | Matrix, Object":w});function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=void 0!==t.nodes?t.nodes:{};return mi(e,(function(e){if("string"!=typeof e)throw new TypeError("String expected");return H(e,r)}))}var _=0,E=1,C=2,N=3,S=4,T={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},k={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},I={true:!0,false:!1,null:null,undefined:void 0},D=["NaN","Infinity"];function A(e,t){return e.expression.substr(e.index,t)}function M(e){return A(e,1)}function R(e){e.index++}function $(e){return e.expression.charAt(e.index-1)}function F(e){return e.expression.charAt(e.index+1)}function j(e){for(e.tokenType=_,e.token="",e.comment="";x.isWhitespace(M(e),e.nestingLevel);)R(e);if("#"===M(e))for(;"\n"!==M(e)&&""!==M(e);)e.comment+=M(e),R(e);if(""!==M(e)){if("\n"===M(e)&&!e.nestingLevel)return e.tokenType=E,e.token=M(e),void R(e);var t=M(e),r=A(e,2),i=A(e,3);if(3===i.length&&T[i])return e.tokenType=E,e.token=i,R(e),R(e),void R(e);if(2===r.length&&T[r])return e.tokenType=E,e.token=r,R(e),void R(e);if(T[t])return e.tokenType=E,e.token=t,void R(e);if(x.isDigitDot(t)){e.tokenType=C;var a=A(e,2);if("0b"===a||"0o"===a||"0x"===a){for(e.token+=M(e),R(e),e.token+=M(e),R(e);x.isHexDigit(M(e));)e.token+=M(e),R(e);if("."===M(e))for(e.token+=".",R(e);x.isHexDigit(M(e));)e.token+=M(e),R(e);else if("i"===M(e))for(e.token+="i",R(e);x.isDigit(M(e));)e.token+=M(e),R(e);return}if("."===M(e)){if(e.token+=M(e),R(e),!x.isDigit(M(e)))return void(e.tokenType=E)}else{for(;x.isDigit(M(e));)e.token+=M(e),R(e);x.isDecimalMark(M(e),F(e))&&(e.token+=M(e),R(e))}for(;x.isDigit(M(e));)e.token+=M(e),R(e);if("E"===M(e)||"e"===M(e))if(x.isDigit(F(e))||"-"===F(e)||"+"===F(e)){if(e.token+=M(e),R(e),"+"!==M(e)&&"-"!==M(e)||(e.token+=M(e),R(e)),!x.isDigit(M(e)))throw fe(e,'Digit expected, got "'+M(e)+'"');for(;x.isDigit(M(e));)e.token+=M(e),R(e);if(x.isDecimalMark(M(e),F(e)))throw fe(e,'Digit expected, got "'+M(e)+'"')}else if("."===F(e))throw R(e),fe(e,'Digit expected, got "'+M(e)+'"')}else{if(!x.isAlpha(M(e),$(e),F(e))){for(e.tokenType=S;""!==M(e);)e.token+=M(e),R(e);throw fe(e,'Syntax error in part "'+e.token+'"')}for(;x.isAlpha(M(e),$(e),F(e))||x.isDigit(M(e));)e.token+=M(e),R(e);J(k,e.token)?e.tokenType=E:e.tokenType=N}}else e.tokenType=E}function U(e){do{j(e)}while("\n"===e.token)}function V(e){e.nestingLevel++}function z(e){e.nestingLevel--}function H(e,t){var r={extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:_,nestingLevel:0,conditionalLevel:null};n()(r,{expression:e,extraNodes:t}),j(r);var i=function(e){var t,r,i=[];for(""!==e.token&&"\n"!==e.token&&";"!==e.token&&((t=G(e)).comment=e.comment);"\n"===e.token||";"===e.token;)0===i.length&&t&&(r=";"!==e.token,i.push({node:t,visible:r})),j(e),"\n"!==e.token&&";"!==e.token&&""!==e.token&&((t=G(e)).comment=e.comment,r=";"!==e.token,i.push({node:t,visible:r}));return i.length>0?new l(i):(t||((t=new c(void 0)).comment=e.comment),t)}(r);if(""!==r.token)throw r.tokenType===E?me(r,"Unexpected operator "+r.token):fe(r,'Unexpected part "'+r.token+'"');return i}function G(e){var t,r,i,a,n=function(e){for(var t=function(e){for(var t=W(e);"or"===e.token;)U(e),t=new m("or","or",[t,W(e)]);return t}(e);"?"===e.token;){var r=e.conditionalLevel;e.conditionalLevel=e.nestingLevel,U(e);var i=t,a=G(e);if(":"!==e.token)throw fe(e,"False part of conditional expression expected");e.conditionalLevel=null,U(e);var n=G(e);t=new d(i,a,n),e.conditionalLevel=r}return t}(e);if("="===e.token){if(q(n))return t=n.name,U(e),i=G(e),new s(new v(t),i);if(O(n))return U(e),i=G(e),new s(n.object,n.index,i);if(P(n)&&q(n.fn)&&(a=!0,r=[],t=n.name,n.args.forEach((function(e,t){q(e)?r[t]=e.name:a=!1})),a))return U(e),i=G(e),new u(t,r,i);throw fe(e,"Invalid left hand side of assignment operator =")}return n}function W(e){for(var t=Q(e);"xor"===e.token;)U(e),t=new m("xor","xor",[t,Q(e)]);return t}function Q(e){for(var t=X(e);"and"===e.token;)U(e),t=new m("and","and",[t,X(e)]);return t}function X(e){for(var t=K(e);"|"===e.token;)U(e),t=new m("|","bitOr",[t,K(e)]);return t}function K(e){for(var t=Y(e);"^|"===e.token;)U(e),t=new m("^|","bitXor",[t,Y(e)]);return t}function Y(e){for(var t=Z(e);"&"===e.token;)U(e),t=new m("&","bitAnd",[t,Z(e)]);return t}function Z(e){for(var t=[ee(e)],r=[],i={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};J(i,e.token);){var a={name:e.token,fn:i[e.token]};r.push(a),U(e),t.push(ee(e))}return 1===t.length?t[0]:2===t.length?new m(r[0].name,r[0].fn,t):new y(r.map(e=>e.fn),t)}function ee(e){var t,r,i,a;t=te(e);for(var n={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};J(n,e.token);)i=n[r=e.token],U(e),a=[t,te(e)],t=new m(r,i,a);return t}function te(e){var t,r,i,a;t=re(e);for(var n={to:"to",in:"to"};J(n,e.token);)i=n[r=e.token],U(e),"in"===r&&""===e.token?t=new m("*","multiply",[t,new v("in")],!0):(a=[t,re(e)],t=new m(r,i,a));return t}function re(e){var t,r=[];if(t=":"===e.token?new c(1):ie(e),":"===e.token&&e.conditionalLevel!==e.nestingLevel){for(r.push(t);":"===e.token&&r.length<3;)U(e),")"===e.token||"]"===e.token||","===e.token||""===e.token?r.push(new v("end")):r.push(ie(e));t=3===r.length?new b(r[0],r[2],r[1]):new b(r[0],r[1])}return t}function ie(e){var t,r,i,a;t=ae(e);for(var n={"+":"add","-":"subtract"};J(n,e.token);){i=n[r=e.token],U(e);var o=ae(e);a=o.isPercentage?[t,new m("*","multiply",[t,o])]:[t,o],t=new m(r,i,a)}return t}function ae(e){var t,r,i,a;r=t=ne(e);for(var n={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};J(n,e.token);)a=n[i=e.token],U(e),r=ne(e),t=new m(i,a,[t,r]);return t}function ne(e){var t,r;for(r=t=oe(e);e.tokenType===N||"in"===e.token&&L(t)||!(e.tokenType!==C||L(r)||B(r)&&"!"!==r.op)||"("===e.token;)r=oe(e),t=new m("*","multiply",[t,r],!0);return t}function oe(e){for(var t=se(e),r=t,i=[];"/"===e.token&&L(r);){if(i.push(n()({},e)),U(e),e.tokenType!==C){n()(e,i.pop());break}if(i.push(n()({},e)),U(e),e.tokenType!==N&&"("!==e.token){i.pop(),n()(e,i.pop());break}n()(e,i.pop()),i.pop(),r=se(e),t=new m("/","divide",[t,r])}return t}function se(e){var t,r,i,a;t=le(e);for(var n={"%":"mod",mod:"mod"};J(n,e.token);)i=n[r=e.token],U(e),"%"===r&&e.tokenType===E&&"("!==e.token?t=new m("/","divide",[t,new c(100)],!1,!0):(a=[t,le(e)],t=new m(r,i,a));return t}function le(e){var t,a,n,s={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return J(s,e.token)?(n=s[e.token],t=e.token,U(e),a=[le(e)],new m(t,n,a)):function(e){var t,a,n,s;return t=function(e){var t,a,n;t=function(e){var t=[];if(e.tokenType===N&&J(e.extraNodes,e.token)){var a=e.extraNodes[e.token];if(j(e),"("===e.token){if(t=[],V(e),j(e),")"!==e.token)for(t.push(G(e));","===e.token;)j(e),t.push(G(e));if(")"!==e.token)throw fe(e,"Parenthesis ) expected");z(e),j(e)}return new a(t)}return function(e){var t,a;return e.tokenType===N||e.tokenType===E&&e.token in k?(a=e.token,j(e),t=J(I,a)?new c(I[a]):-1!==D.indexOf(a)?new c(r(a,"number")):new v(a),de(e,t)):function(e){var t,a;return'"'===e.token?(a=ce(e),t=new c(a),de(e,t)):function(e){var t,a;return"'"===e.token?(a=ue(e),t=new c(a),de(e,t)):function(e){var t,a,n,s;if("["===e.token){if(V(e),j(e),"]"!==e.token){var l=pe(e);if(";"===e.token){for(n=1,a=[l];";"===e.token;)j(e),a[n]=pe(e),n++;if("]"!==e.token)throw fe(e,"End of matrix ] expected");z(e),j(e),s=a[0].items.length;for(var d=1;d0},x.isDecimalMark=function(e,t){return"."===e&&"/"!==t&&"*"!==t&&"^"!==t},x.isDigitDot=function(e){return e>="0"&&e<="9"||"."===e},x.isDigit=function(e){return e>="0"&&e<="9"},x.isHexDigit=function(e){return e>="0"&&e<="9"||e>="a"&&e<="f"||e>="A"&&e<="F"},x}),Xm=["typed","parse"],Km=at("compile",Xm,e=>{var{typed:t,parse:r}=e;return t("compile",{string:function(e){return r(e).compile()},"Array | Matrix":function(e){return mi(e,(function(e){return r(e).compile()}))}})}),Ym=["typed","parse"],Jm=at("evaluate",Ym,e=>{var{typed:t,parse:r}=e;return t("evaluate",{string:function(e){var t=ai();return r(e).compile().evaluate(t)},"string, Map | Object":function(e,t){return r(e).compile().evaluate(t)},"Array | Matrix":function(e){var t=ai();return mi(e,(function(e){return r(e).compile().evaluate(t)}))},"Array | Matrix, Map | Object":function(e,t){return mi(e,(function(e){return r(e).compile().evaluate(t)}))}})}),Zm=["parse"],eg=at("Help",Zm,e=>{var{parse:t}=e;function r(e){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(!e)throw new Error('Argument "doc" missing');this.doc=e}return r.prototype.type="Help",r.prototype.isHelp=!0,r.prototype.toString=function(){var e=this.doc||{},r="\n";if(e.name&&(r+="Name: "+e.name+"\n\n"),e.category&&(r+="Category: "+e.category+"\n\n"),e.description&&(r+="Description:\n "+e.description+"\n\n"),e.syntax&&(r+="Syntax:\n "+e.syntax.join("\n ")+"\n\n"),e.examples){r+="Examples:\n";for(var i={},a=0;a"mathjs"!==e).forEach(r=>{t[r]=e[r]}),new r(t)},r.prototype.valueOf=r.prototype.toString,r},{isClass:!0}),tg=["evaluate"],rg=at("Parser",tg,e=>{var{evaluate:t}=e;function r(){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:ai(),writable:!1})}return r.prototype.type="Parser",r.prototype.isParser=!0,r.prototype.evaluate=function(e){return t(e,this.scope)},r.prototype.get=function(e){if(this.scope.has(e))return this.scope.get(e)},r.prototype.getAll=function(){return function(e){if(e instanceof ii)return e.wrappedObject;var t={};for(var r of e.keys())Yr(t,r,e.get(r));return t}(this.scope)},r.prototype.getAllAsMap=function(){return this.scope},r.prototype.set=function(e,t){return this.scope.set(e,t),t},r.prototype.remove=function(e){this.scope.delete(e)},r.prototype.clear=function(){this.scope.clear()},r},{isClass:!0}),ig=["typed","Parser"],ag=at("parser",ig,e=>{var{typed:t,Parser:r}=e;return t("parser",{"":function(){return new r}})}),ng=["FunctionNode","OperatorNode","SymbolNode"],og=at("simplifyUtil",ng,e=>{var{FunctionNode:t,OperatorNode:r,SymbolNode:i}=e,a={add:!0,multiply:!0},n={add:!0,multiply:!0};function o(e,t){if(!B(e))return!1;var r=e.fn.toString();return t&&J(t,r)&&J(t[r],"associative")?t[r].associative:n[r]||!1}function s(e){var t,r=[];return o(e)?(t=e.op,function e(i){for(var a=0;a2&&o(t)){for(var n=t.args.pop();t.args.length>0;)n=r([t.args.pop(),n]);t.args=n.args}}},unflattenl:function e(t){if(t.args&&0!==t.args.length){for(var r=l(t),i=t.args.length,a=0;a2&&o(t)){for(var n=t.args.shift();t.args.length>0;)n=r([n,t.args.shift()]);t.args=n.args}}}}}),sg=["equal","isZero","add","subtract","multiply","divide","pow","ConstantNode","OperatorNode","FunctionNode","ParenthesisNode"],lg=at("simplifyCore",sg,e=>{var{equal:t,isZero:r,add:i,subtract:a,multiply:n,divide:o,pow:s,ConstantNode:l,OperatorNode:d,FunctionNode:c,ParenthesisNode:u}=e,p=new l(0),h=new l(1);return function e(f){if(B(f)&&f.isUnary()){var m=e(f.args[0]);if("+"===f.op)return m;if("-"===f.op){if(B(m)){if(m.isUnary()&&"-"===m.op)return m.args[0];if(m.isBinary()&&"subtract"===m.fn)return new d("-","subtract",[m.args[1],m.args[0]])}return new d(f.op,f.fn,[m])}}else if(B(f)&&f.isBinary()){var g=e(f.args[0]),b=e(f.args[1]);if("+"===f.op){if(L(g)){if(r(g.value))return b;if(L(b))return new l(i(g.value,b.value))}return L(b)&&r(b.value)?g:B(b)&&b.isUnary()&&"-"===b.op?new d("-","subtract",[g,b.args[0]]):new d(f.op,f.fn,b?[g,b]:[g])}if("-"===f.op){if(L(g)&&b){if(L(b))return new l(a(g.value,b.value));if(r(g.value))return new d("-","unaryMinus",[b])}if("subtract"===f.fn)return L(b)&&r(b.value)?g:B(b)&&b.isUnary()&&"-"===b.op?e(new d("+","add",[g,b.args[0]])):new d(f.op,f.fn,[g,b])}else{if("*"===f.op){if(L(g)){if(r(g.value))return p;if(t(g.value,1))return b;if(L(b))return new l(n(g.value,b.value))}if(L(b)){if(r(b.value))return p;if(t(b.value,1))return g;if(B(g)&&g.isBinary()&&g.op===f.op){var y=g.args[0];if(L(y)){var v=new l(n(y.value,b.value));return new d(f.op,f.fn,[v,g.args[1]],f.implicit)}}return new d(f.op,f.fn,[b,g],f.implicit)}return new d(f.op,f.fn,[g,b],f.implicit)}if("/"===f.op){if(L(g)){if(r(g.value))return p;if(L(b)&&(t(b.value,1)||t(b.value,2)||t(b.value,4)))return new l(o(g.value,b.value))}return new d(f.op,f.fn,[g,b])}if("^"===f.op){if(L(b)){if(r(b.value))return h;if(t(b.value,1))return g;if(L(g))return new l(s(g.value,b.value));if(B(g)&&g.isBinary()&&"^"===g.op){var x=g.args[1];if(L(x))return new d(f.op,f.fn,[g.args[0],new l(n(x.value,b.value))])}}return new d(f.op,f.fn,[g,b])}}}else{if(U(f)){var w=e(f.content);return U(w)||q(w)||L(w)?w:new u(w)}if(P(f)){var _=f.args.map(e).map((function(e){return U(e)?e.content:e}));return new c(e(f.fn),_)}}return f}}),dg=["typed","config","mathWithTransform","?fraction","?bignumber","ConstantNode","OperatorNode","FunctionNode","SymbolNode"],cg=at("simplifyConstant",dg,e=>{var{typed:t,config:r,mathWithTransform:i,fraction:a,bignumber:n,ConstantNode:o,OperatorNode:s,FunctionNode:l,SymbolNode:d}=e,{isCommutative:u,isAssociative:p,allChildren:h,createMakeNodeFunction:f}=og({FunctionNode:l,OperatorNode:s,SymbolNode:d});function m(e,t,r){try{return y(i[e].apply(null,t),r)}catch(a){return t=t.map((function(e){return c(e)?e.valueOf():e})),y(i[e].apply(null,t),r)}}var g=t({Fraction:function(e){var t,r=e.s*e.n;return t=r<0?new s("-","unaryMinus",[new o(-r)]):new o(r),1===e.d?t:new s("/","divide",[t,new o(e.d)])},number:function(e){return e<0?v(new o(-e)):new o(e)},BigNumber:function(e){return e<0?v(new o(-e)):new o(e)},Complex:function(e){throw new Error("Cannot convert Complex number to Node")}});function b(e,t){if(t&&!1!==t.exactFractions&&isFinite(e)&&a){var r=a(e),i=t&&"number"==typeof t.fractionsLimit?t.fractionsLimit:1/0;if(r.valueOf()===e&&r.ne(t,r));if(!a.some(F))try{return m(t.name,a,r)}catch(e){}return a=a.map((function(e){return F(e)?e:g(e)})),new l(t.name,a)}case"OperatorNode":var n,o,s=t.fn.toString(),d=f(t);if(B(t)&&t.isUnary())n=[e(t.args[0],r)],o=F(n[0])?d(n):m(s,n,r);else if(p(t))if(n=(n=h(t)).map(t=>e(t,r)),u(s)){for(var c=[],b=[],v=0;v1?(o=x(s,c,d,r),b.unshift(o),o=x(s,b,d,r)):o=x(s,n,d,r)}else o=x(s,n,d,r);else n=t.args.map(t=>e(t,r)),o=x(s,n,d,r);return o;case"ParenthesisNode":return e(t.content,r);case"AccessorNode":case"ArrayNode":case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"IndexNode":case"ObjectNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(t.type))}}(e,t);return F(r)?r:g(r)}}),ug=["parse","FunctionNode","OperatorNode","ParenthesisNode"],pg=at("resolve",ug,e=>{var{parse:t,FunctionNode:r,OperatorNode:i,ParenthesisNode:a}=e;return function e(n,o){if(!o)return n;if(oi(o)||(o=ni(o)),q(n)){var s=o.get(n.name);if(F(s))return e(s,o);if("number"==typeof s)return t(String(s))}else{if(B(n)){var l=n.args.map((function(t){return e(t,o)}));return new i(n.op,n.fn,l,n.implicit)}if(U(n))return new a(e(n.content,o));if(P(n)){var d=n.args.map((function(t){return e(t,o)}));return new r(n.name,d)}}return n}}),hg=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","?fraction","?bignumber","mathWithTransform","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],fg=at("simplify",hg,e=>{var{config:t,typed:r,parse:i,add:a,subtract:n,multiply:o,divide:s,pow:l,isZero:d,equal:c,fraction:u,bignumber:p,mathWithTransform:h,ConstantNode:f,FunctionNode:m,OperatorNode:g,ParenthesisNode:b,SymbolNode:y}=e,v=cg({typed:r,config:t,mathWithTransform:h,fraction:u,bignumber:p,ConstantNode:f,OperatorNode:g,FunctionNode:m,SymbolNode:y}),x=lg({equal:c,isZero:d,add:a,subtract:n,multiply:o,divide:s,pow:l,ConstantNode:f,OperatorNode:g,FunctionNode:m,ParenthesisNode:b}),w=pg({parse:i,FunctionNode:m,OperatorNode:g,ParenthesisNode:b}),{isCommutative:_,isAssociative:E,flatten:C,unflattenr:N,unflattenl:S,createMakeNodeFunction:T}=og({FunctionNode:m,OperatorNode:g,SymbolNode:y}),k=r("simplify",{string:function(e){return this(i(e),this.rules,ai(),{})},"string, Map | Object":function(e,t){return this(i(e),this.rules,t,{})},"string, Map | Object, Object":function(e,t,r){return this(i(e),this.rules,t,r)},"string, Array":function(e,t){return this(i(e),t,ai(),{})},"string, Array, Map | Object":function(e,t,r){return this(i(e),t,r,{})},"string, Array, Map | Object, Object":function(e,t,r,a){return this(i(e),t,r,a)},"Node, Map | Object":function(e,t){return this(e,this.rules,t,{})},"Node, Map | Object, Object":function(e,t,r){return this(e,this.rules,t,r)},Node:function(e){return this(e,this.rules,ai(),{})},"Node, Array":function(e,t){return this(e,t,ai(),{})},"Node, Array, Map | Object":function(e,t,r){return this(e,t,r,{})},"Node, Array, Object, Object":function(e,t,r,i){return this(e,t,ni(r),i)},"Node, Array, Map, Object":function(e,t,r,a){t=function(e){for(var t=[],r=0;r");if(2!==s.length)throw SyntaxError("Could not parse rule: "+a);a={l:s[0],r:s[1]};case"object":if(n={l:O(i(a.l)),r:O(i(a.r))},a.context&&(n.evaluate=a.context),a.evaluate&&(n.evaluate=i(a.evaluate)),E(n.l)){var l=T(n.l),d=new y("_p"+D++);n.expanded={},n.expanded.l=l([n.l.clone(),d]),C(n.expanded.l),N(n.expanded.l),n.expanded.r=l([n.r,d])}break;case"function":n=a;break;default:throw TypeError("Unsupported type of rule: "+o)}t.push(n)}return t}(t);for(var n=w(e,r),o={},s=(n=O(n)).toString({parenthesis:"all"});!o[s];){o[s]=!0,D=0;for(var l=0;l=2&&2===e.args.length){for(var a=function(e,t){var r,i,a=[],n=T(e);if(_(e,t))for(var o=0;o2)throw Error("Unexpected non-binary associative function: "+e.toString());return[]}for(var l=[],d=0;d{var{typed:t,config:r,parse:i,simplify:a,equal:n,isZero:o,numeric:s,ConstantNode:l,FunctionNode:d,OperatorNode:c,ParenthesisNode:u,SymbolNode:p}=e,h=t("derivative",{"Node, SymbolNode, Object":function(e,t,r){var i={};m(i,e,t.name);var n=g(e,i);return r.simplify?a(n):n},"Node, SymbolNode":function(e,t){return this(e,t,{simplify:!0})},"string, SymbolNode":function(e,t){return this(i(e),t)},"string, SymbolNode, Object":function(e,t,r){return this(i(e),t,r)},"string, string":function(e,t){return this(i(e),i(t))},"string, string, Object":function(e,t,r){return this(i(e),i(t),r)},"Node, string":function(e,t){return this(e,i(t))},"Node, string, Object":function(e,t,r){return this(e,i(t),r)}});h._simplify=!0,h.toTex=function(e){return f.apply(null,e.args)};var f=t("_derivTex",{"Node, SymbolNode":function(e,t){return L(e)&&"string"===H(e.value)?f(i(e.value).toString(),t.toString(),1):f(e.toString(),t.toString(),1)},"Node, ConstantNode":function(e,t){if("string"===H(t.value))return f(e,i(t.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(e,t,r){return f(e.toString(),t.name,r.value)},"string, string, number":function(e,t,r){return(1===r?"{d\\over d"+t+"}":"{d^{"+r+"}\\over d"+t+"^{"+r+"}}")+"\\left[".concat(e,"\\right]")}}),m=t("constTag",{"Object, ConstantNode, string":function(e,t){return e[t]=!0,!0},"Object, SymbolNode, string":function(e,t,r){return t.name!==r&&(e[t]=!0,!0)},"Object, ParenthesisNode, string":function(e,t,r){return m(e,t.content,r)},"Object, FunctionAssignmentNode, string":function(e,t,r){return-1===t.params.indexOf(r)?(e[t]=!0,!0):m(e,t.expr,r)},"Object, FunctionNode | OperatorNode, string":function(e,t,r){if(t.args.length>0){for(var i=m(e,t.args[0],r),a=1;a0){var i=e.args.filter((function(e){return void 0===t[e]})),a=1===i.length?i[0]:new c("*","multiply",i),s=r.concat(g(a,t));return new c("*","multiply",s)}return new c("+","add",e.args.map((function(r){return new c("*","multiply",e.args.map((function(e){return e===r?g(e,t):e.clone()})))})))}if("/"===e.op&&e.isBinary()){var l=e.args[0],u=e.args[1];return void 0!==t[u]?new c("/","divide",[g(l,t),u]):void 0!==t[l]?new c("*","multiply",[new c("-","unaryMinus",[l]),new c("/","divide",[g(u,t),new c("^","pow",[u.clone(),b(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[g(l,t),u.clone()]),new c("*","multiply",[l.clone(),g(u,t)])]),new c("^","pow",[u.clone(),b(2)])])}if("^"===e.op&&e.isBinary()){var p=e.args[0],h=e.args[1];if(void 0!==t[p])return L(p)&&(o(p.value)||n(p.value,1))?b(0):new c("*","multiply",[e,new c("*","multiply",[new d("log",[p.clone()]),g(h.clone(),t)])]);if(void 0!==t[h]){if(L(h)){if(o(h.value))return b(0);if(n(h.value,1))return g(p,t)}var f=new c("^","pow",[p.clone(),new c("-","subtract",[h,b(1)])]);return new c("*","multiply",[h.clone(),new c("*","multiply",[g(p,t),f])])}return new c("*","multiply",[new c("^","pow",[p.clone(),h.clone()]),new c("+","add",[new c("*","multiply",[g(p,t),new c("/","divide",[h.clone(),p.clone()])]),new c("*","multiply",[g(h,t),new d("log",[p.clone()])])])])}throw new Error('Operator "'+e.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function b(e,t){return new l(s(e,t||r.number))}return h}),bg={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},yg={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},vg={bignumber:{name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},boolean:{name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},complex:{name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},createUnit:{name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},fraction:{name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(num,den)"],description:"Create a fraction from a number or from a numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},index:{name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[]","[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[0:2, 0:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},matrix:{name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},number:{name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},sparse:{name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},splitUnit:{name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},string:{name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},unit:{name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},e:yg,E:yg,false:{name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},i:{name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},Infinity:{name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},LN2:{name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},LN10:{name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},LOG2E:{name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},LOG10E:{name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},NaN:{name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},null:{name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},pi:bg,PI:bg,phi:{name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},SQRT1_2:{name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},SQRT2:{name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},tau:{name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},true:{name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},version:{name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:{name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},lsolve:{name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},lsolveAll:{name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},lup:{name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},lusolve:{name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},simplify:{name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["derivative","parse","evaluate"]},rationalize:{name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},slu:{name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},usolve:{name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},usolveAll:{name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},qr:{name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},abs:{name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},add:{name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},cbrt:{name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},ceil:{name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},cube:{name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},divide:{name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},dotDivide:{name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},dotMultiply:{name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},dotPow:{name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},exp:{name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},expm:{name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},expm1:{name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},fix:{name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},floor:{name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},gcd:{name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},hypot:{name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},lcm:{name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},log:{name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},log2:{name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},log1p:{name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},log10:{name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},mod:{name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},multiply:{name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},norm:{name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},nthRoot:{name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},nthRoots:{name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},pow:{name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},round:{name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},sign:{name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},sqrt:{name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},sqrtm:{name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[1, 2], [3, 4]])"],seealso:["sqrt","abs","square","multiply"]},square:{name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},subtract:{name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},unaryMinus:{name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},unaryPlus:{name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},xgcd:{name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},bitAnd:{name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitNot:{name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},bitOr:{name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},bitXor:{name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},leftShift:{name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rightArithShift:{name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},rightLogShift:{name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},bellNumbers:{name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},catalan:{name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},composition:{name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},stirlingS2:{name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},config:{name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},import:{name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},typed:{name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number, number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},arg:{name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},conj:{name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},re:{name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},im:{name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},evaluate:{name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},help:{name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},distance:{name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},intersect:{name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},and:{name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},not:{name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},or:{name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xor:{name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},concat:{name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},count:{name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},cross:{name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},column:{name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},ctranspose:{name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},det:{name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diag:{name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},diff:{name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},dot:{name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},getMatrixDataType:{name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},identity:{name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},filter:{name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},flatten:{name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},forEach:{name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["forEach([1, 2, 3], function(val) { console.log(val) })"],seealso:["map","sort","filter"]},inv:{name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},eigs:{name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},kron:{name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},matrixFromFunction:{name:"matrixFromFunction",category:"Matrix",syntax:["math.matrixFromFunction(size, fn)","math.matrixFromFunction(size, fn, format)","math.matrixFromFunction(size, fn, format, datatype)","math.matrixFromFunction(size, format, fn)","math.matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},matrixFromRows:{name:"matrixFromRows",category:"Matrix",syntax:["math.matrixFromRows(...arr)","math.matrixFromRows(row1, row2)","math.matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},matrixFromColumns:{name:"matrixFromColumns",category:"Matrix",syntax:["math.matrixFromColumns(...arr)","math.matrixFromColumns(row1, row2)","math.matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},map:{name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},ones:{name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},partitionSelect:{name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1)'],seealso:["sort"]},range:{name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},resize:{name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},reshape:{name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])"],seealso:["size","squeeze","resize"]},rotate:{name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], math.pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},rotationMatrix:{name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},row:{name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},size:{name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},sort:{name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"])',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},squeeze:{name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},subset:{name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of a matrix or string. Indexes are one-based. Both the ranges lower-bound and upper-bound are included.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},trace:{name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},transpose:{name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},zeros:{name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},combinations:{name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},combinationsWithRep:{name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},factorial:{name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},gamma:{name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},kldivergence:{name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},multinomial:{name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},permutations:{name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},pickRandom:{name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},random:{name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},randomInt:{name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},compare:{name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},compareNatural:{name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},compareText:{name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},deepEqual:{name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},equal:{name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},equalText:{name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},larger:{name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},largerEq:{name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},smaller:{name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},smallerEq:{name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},unequal:{name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},setCartesian:{name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},setDifference:{name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},setDistinct:{name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},setIntersect:{name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},setIsSubset:{name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},setMultiplicity:{name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},setPowerset:{name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},setSize:{name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},setSymDifference:{name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},setUnion:{name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},erf:{name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},mad:{name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},max:{name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dim)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},mean:{name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dim)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},median:{name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},min:{name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dim)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},mode:{name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},prod:{name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},quantileSeq:{name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:"Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber. \n\nIn case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.",examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},std:{name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},sum:{name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},variance:{name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},acos:{name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},acosh:{name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},acot:{name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},acoth:{name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},acsc:{name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},acsch:{name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},asec:{name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},asech:{name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},asin:{name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},asinh:{name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},atan:{name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},atanh:{name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},atan2:{name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},cos:{name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},cosh:{name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},cot:{name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},coth:{name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},csc:{name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},csch:{name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},sec:{name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},sech:{name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},sin:{name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},sinh:{name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},tan:{name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},tanh:{name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},to:{name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},clone:{name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},format:{name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},bin:{name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},oct:{name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},hex:{name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},isNaN:{name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isInteger:{name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},isNegative:{name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},isNumeric:{name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},hasNumericValue:{name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},isPositive:{name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isPrime:{name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},isZero:{name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},typeOf:{name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},numeric:{name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]}},xg=at("help",["typed","mathWithTransform","Help"],e=>{var{typed:t,mathWithTransform:r,Help:i}=e;return t("help",{any:function(e){var t,a=e;if("string"!=typeof e)for(t in r)if(J(r,t)&&e===r[t]){a=t;break}var n=Kr(vg,a);if(!n){var o="function"==typeof a?a.name:a;throw new Error('No documentation found on "'+o+'"')}return new i(n)}})}),wg=at("rationalize",["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplify","?bignumber","?fraction","mathWithTransform","ConstantNode","OperatorNode","FunctionNode","SymbolNode","ParenthesisNode"],e=>{var{config:t,typed:r,equal:i,isZero:a,add:n,subtract:o,multiply:s,divide:l,pow:d,parse:c,simplify:u,fraction:p,bignumber:h,mathWithTransform:f,ConstantNode:m,OperatorNode:g,FunctionNode:b,SymbolNode:y,ParenthesisNode:v}=e,x=cg({typed:r,config:t,mathWithTransform:f,fraction:p,bignumber:h,ConstantNode:m,OperatorNode:g,FunctionNode:b,SymbolNode:y}),w=lg({equal:i,isZero:a,add:n,subtract:o,multiply:s,divide:l,pow:d,ConstantNode:m,OperatorNode:g,FunctionNode:b,ParenthesisNode:v});return r("rationalize",{string:function(e){return this(c(e),{},!1)},"string, boolean":function(e,t){return this(c(e),{},t)},"string, Object":function(e,t){return this(c(e),t,!1)},"string, Object, boolean":function(e,t,r){return this(c(e),t,r)},Node:function(e){return this(e,{},!1)},"Node, boolean":function(e,t){return this(e,{},t)},"Node, Object":function(e,t){return this(e,t,!1)},"Node, Object, boolean":function(e,t,r){var i=function(){var e=[w,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},x,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],t=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],r=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],i={};return i.firstRules=e.concat(t,r),i.distrDivRules=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],i.sucDivRules=r,i.firstRulesAgain=e.concat(t),i.finalRules=[w,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},x,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],i}(),a=function(e,t,r,i){var a=[],n=u(e,i,t,{exactFractions:!1}),o="+-*"+((r=!!r)?"/":"");!function e(t){var r=t.type;if("FunctionNode"===r)throw new Error("There is an unsolved function call");if("OperatorNode"===r)if("^"===t.op){if("ConstantNode"!==t.args[1].type||!se(parseFloat(t.args[1].value)))throw new Error("There is a non-integer exponent");e(t.args[0])}else{if(-1===o.indexOf(t.op))throw new Error("Operator "+t.op+" invalid in polynomial expression");for(var i=0;i=1){var o,s;e=function e(t,r,i){var a=t.type,n=arguments.length>1;if("OperatorNode"===a&&t.isBinary()){var o,s=!1;if("^"===t.op&&("ParenthesisNode"!==t.args[0].type&&"OperatorNode"!==t.args[0].type||"ConstantNode"!==t.args[1].type||(o=parseFloat(t.args[1].value),s=o>=2&&se(o))),s){if(o>2){var l=t.args[0],d=new g("^","pow",[t.args[0].cloneDeep(),new m(o-1)]);t=new g("*","multiply",[l,d])}else t=new g("*","multiply",[t.args[0],t.args[0].cloneDeep()]);n&&("content"===i?r.content=t:r.args[i]=t)}}if("ParenthesisNode"===a)e(t.content,t,"content");else if("ConstantNode"!==a&&"SymbolNode"!==a)for(var c=0;ci&&(t[d]=0),t[d]+=o.cte*("+"===o.oper?1:-1),void(i=Math.max(d,i))}o.cte=d,""===o.fire&&(t[0]+=o.cte*("+"===o.oper?1:-1))}}(e,null,r);for(var n,o=!0,s=i=t.length-1;s>=0;s--)if(0!==t[s]){var l=new m(o?t[s]:Math.abs(t[s])),d=t[s]<0?"-":"+";if(s>0){var c=new y(a);if(s>1){var u=new m(s);c=new g("^","pow",[c,u])}l=-1===t[s]&&o?new g("-","unaryMinus",[c]):1===Math.abs(t[s])?c:new g("*","multiply",[l,c])}n=o?l:"+"===d?new g("+","add",[n,l]):new g("-","subtract",[n,l]),o=!1}return o?new m(0):n}});function _g(e,t,r){var i=e.filter((function(e){return q(e)&&!(e.name in t)&&!r.has(e.name)}))[0];if(!i)throw new Error('No undefined variable found in inline expression "'+e+'"');var a=i.name,n=zm(r),o=e.compile();return function(e){return n.set(a,e),o.evaluate(n)}}var Eg=at("filter",["typed"],e=>{var{typed:t}=e;function r(e,t,r){var a,n;return e[0]&&(a=e[0].compile().evaluate(r)),e[1]&&(n=q(e[1])||R(e[1])?e[1].compile().evaluate(r):_g(e[1],t,r)),i(a,n)}r.rawArgs=!0;var i=t("filter",{"Array, function":Cg,"Matrix, function":function(e,t){return e.create(Cg(e.toArray(),t))},"Array, RegExp":Je,"Matrix, RegExp":function(e,t){return e.create(Je(e.toArray(),t))}});return r},{isTransformFunction:!0});function Cg(e,t){var r=ht(t);return Ye(e,(function(e,i,a){return 1===r?t(e):2===r?t(e,[i+1]):t(e,[i+1],a)}))}var Ng=at("forEach",["typed"],e=>{var{typed:t}=e;function r(e,t,r){var a,n;return e[0]&&(a=e[0].compile().evaluate(r)),e[1]&&(n=q(e[1])||R(e[1])?e[1].compile().evaluate(r):_g(e[1],t,r)),i(a,n)}r.rawArgs=!0;var i=t("forEach",{"Array | Matrix, function":function(e,t){var r=ht(t);!function i(a,n){Array.isArray(a)?Ke(a,(function(e,t){i(e,n.concat(t+1))})):1===r?t(a):2===r?t(a,n):t(a,n,e)}(e.valueOf(),[])}});return r},{isTransformFunction:!0}),Sg=at("map",["typed"],e=>{var{typed:t}=e;function r(e,t,r){var a,n;return e[0]&&(a=e[0].compile().evaluate(r)),e[1]&&(n=q(e[1])||R(e[1])?e[1].compile().evaluate(r):_g(e[1],t,r)),i(a,n)}r.rawArgs=!0;var i=t("map",{"Array, function":function(e,t){return Tg(e,t,e)},"Matrix, function":function(e,t){return e.create(Tg(e.valueOf(),t,e))}});return r},{isTransformFunction:!0});function Tg(e,t,r){var i=ht(t);return function e(a,n){return Array.isArray(a)?Xe(a,(function(t,r){return e(t,n.concat(r+1))})):1===i?t(a):2===i?t(a,n):t(a,n,r)}(e,[])}var kg=at("apply",["typed","isInteger"],e=>{var{typed:t,isInteger:r}=e,i=Yn({typed:t,isInteger:r});return t("apply",{"...any":function(e){var t=e[1];s(t)?e[1]=t-1:l(t)&&(e[1]=t.minus(1));try{return i.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0});function Og(e){if(2===e.length&&m(e[0])){var t=(e=e.slice())[1];s(t)?e[1]=t-1:l(t)&&(e[1]=t.minus(1))}return e}var Ig=at("diff",["typed","matrix","subtract","number","bignumber"],e=>{var{typed:t,matrix:r,subtract:i,number:a,bignumber:n}=e,o=al({typed:t,matrix:r,subtract:i,number:a,bignumber:n});return t("diff",{"...any":function(e){e=Og(e);try{return o.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Dg=at("index",["Index"],e=>{var{Index:t}=e;return function(){for(var e=[],r=0,i=arguments.length;r0?0:2;else if(a&&!0===a.isSet)a=a.map((function(e){return e-1}));else if(h(a)||f(a))a=a.map((function(e){return e-1}));else if(s(a))a--;else if(l(a))a=a.toNumber()-1;else if("string"!=typeof a)throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");e[r]=a}var n=new t;return t.apply(n,e),n}},{isTransformFunction:!0}),Ag=at("subset",["typed","matrix"],e=>{var{typed:t,matrix:r}=e,i=zo({typed:t,matrix:r});return t("subset",{"...any":function(e){try{return i.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Mg=at("concat",["typed","matrix","isInteger"],e=>{var{typed:t,matrix:r,isInteger:i}=e,a=ls({typed:t,matrix:r,isInteger:i});return t("concat",{"...any":function(e){var t=e.length-1,r=e[t];s(r)?e[t]=r-1:l(r)&&(e[t]=r.minus(1));try{return a.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Lg=at("max",["typed","config","numeric","larger"],e=>{var{typed:t,config:r,numeric:i,larger:a}=e,n=ed({typed:t,config:r,numeric:i,larger:a});return t("max",{"...any":function(e){e=Og(e);try{return n.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Rg=at("min",["typed","config","numeric","smaller"],e=>{var{typed:t,config:r,numeric:i,smaller:a}=e,n=Is({typed:t,config:r,numeric:i,smaller:a});return t("min",{"...any":function(e){e=Og(e);try{return n.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Pg=at("range",["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],e=>{var{typed:t,config:r,matrix:i,bignumber:a,smaller:n,smallerEq:o,larger:s,largerEq:l}=e,d=gl({typed:t,config:r,matrix:i,bignumber:a,smaller:n,smallerEq:o,larger:s,largerEq:l});return t("range",{"...any":function(e){return"boolean"!=typeof e[e.length-1]&&e.push(!0),d.apply(null,e)}})},{isTransformFunction:!0}),$g=at("row",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:i,range:a}=e,n=yl({typed:t,Index:r,matrix:i,range:a});return t("row",{"...any":function(e){var t=e.length-1,r=e[t];s(r)&&(e[t]=r-1);try{return n.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Fg=at("sum",["typed","config","add","numeric"],e=>{var{typed:t,config:r,add:i,numeric:a}=e,n=Pl({typed:t,config:r,add:i,numeric:a});return t("sum",{"...any":function(e){e=Og(e);try{return n.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),jg=at("column",["typed","Index","matrix","range"],e=>{var{typed:t,Index:r,matrix:i,range:a}=e,n=Ul({typed:t,Index:r,matrix:i,range:a});return t("column",{"...any":function(e){var t=e.length-1,r=e[t];s(r)&&(e[t]=r-1);try{return n.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Bg=at("mean",["typed","add","divide"],e=>{var{typed:t,add:r,divide:i}=e,a=Ad({typed:t,add:r,divide:i});return t("mean",{"...any":function(e){e=Og(e);try{return a.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Ug=at("variance",["typed","add","subtract","multiply","divide","apply","isNaN"],e=>{var{typed:t,add:r,subtract:i,multiply:a,divide:n,apply:o,isNaN:s}=e,l=Ld({typed:t,add:r,subtract:i,multiply:a,divide:n,apply:o,isNaN:s});return t("variance",{"...any":function(e){e=Og(e);try{return l.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),Vg=at("std",["typed","sqrt","variance"],e=>{var{typed:t,sqrt:r,variance:i}=e,a=Rd({typed:t,sqrt:r,variance:i});return t("std",{"...any":function(e){e=Og(e);try{return a.apply(null,e)}catch(e){throw Fm(e)}}})},{isTransformFunction:!0}),qg={},zg={},Hg={},Gg=um({math:qg}),Wg=hm({mathWithTransform:zg}),Qg=fm({Node:Wg}),Xg=Tm({Node:Wg}),Kg=km({Node:Wg}),Yg=Om({Node:Wg}),Jg=Im({Node:Wg}),Zg=Dm({Node:Wg,ResultSet:cc}),eb=Am({Node:Wg}),tb=Mm({Node:Wg}),rb=Lm({Node:Wg}),ib=Rm({classes:Hg}),ab=Pm({Chain:Gg,typed:_c}),nb=$m({Node:Wg,typed:_c}),ob=Bm({Node:Wg,subset:np}),sb=Um({matrix:Qu,Node:Wg,subset:np}),lb=Vm({Node:Wg,Range:dc,size:rp}),db=qm({Unit:Bh,Node:Wg,math:qg}),cb=Gm({Node:Wg,SymbolNode:db,math:qg}),ub=Qm({AccessorNode:ob,ArrayNode:Jg,AssignmentNode:sb,BlockNode:Zg,ConditionalNode:eb,ConstantNode:tb,FunctionAssignmentNode:nb,FunctionNode:cb,IndexNode:lb,ObjectNode:Qg,OperatorNode:Xg,ParenthesisNode:Kg,RangeNode:rb,RelationalNode:Yg,SymbolNode:db,config:ae,numeric:Ju,typed:_c}),pb=Km({parse:ub,typed:_c}),hb=Jm({parse:ub,typed:_c}),fb=eg({parse:ub}),mb=rg({evaluate:hb}),gb=ag({Parser:mb,typed:_c}),bb=fg({bignumber:Rc,fraction:Gu,ConstantNode:tb,FunctionNode:cb,OperatorNode:Xg,ParenthesisNode:Kg,SymbolNode:db,add:Wp,config:ae,divide:Yf,equal:Ep,isZero:nu,mathWithTransform:zg,multiply:lh,parse:ub,pow:dh,subtract:op,typed:_c}),yb=gg({ConstantNode:tb,FunctionNode:cb,OperatorNode:Xg,ParenthesisNode:Kg,SymbolNode:db,config:ae,equal:Ep,isZero:nu,numeric:Ju,parse:ub,simplify:bb,typed:_c}),vb=xg({Help:fb,mathWithTransform:zg,typed:_c}),xb=wg({bignumber:Rc,fraction:Gu,ConstantNode:tb,FunctionNode:cb,OperatorNode:Xg,ParenthesisNode:Kg,SymbolNode:db,add:Wp,config:ae,divide:Yf,equal:Ep,isZero:nu,mathWithTransform:zg,multiply:lh,parse:ub,pow:dh,simplify:bb,subtract:op,typed:_c});n()(qg,{e:Yd,false:Jd,fineStructure:Zd,i:tc,Infinity:rc,LN10:ic,LOG10E:ac,NaN:oc,null:sc,phi:lc,SQRT1_2:uc,sackurTetrode:pc,tau:hc,true:fc,E:Yd,version:mc,efimovFactor:bc,LN2:yc,pi:vc,replacer:xc,reviver:ib,SQRT2:wc,typed:_c,unaryPlus:Ec,PI:vc,weakMixingAngle:Cc,abs:Nc,acos:Sc,acot:Tc,acsc:kc,addScalar:Oc,arg:Ic,asech:Dc,asinh:Ac,atan:Mc,atanh:Lc,bignumber:Rc,bitNot:Pc,boolean:$c,chain:ab,clone:Fc,combinations:jc,complex:Bc,conj:Uc,cosh:Vc,coth:qc,csc:zc,cube:Hc,equalScalar:Gc,erf:Wc,exp:Qc,expm1:Xc,filter:Kc,forEach:Yc,format:Jc,getMatrixDataType:Zc,hex:eu,im:tu,isInteger:ru,isNegative:iu,isPositive:au,isZero:nu,LOG2E:ou,log10:su,log2:lu,map:du,multiplyScalar:cu,not:uu,number:pu,oct:hu,pickRandom:fu,print:mu,random:gu,re:bu,sec:yu,sign:vu,sin:xu,splitUnit:_u,square:Eu,string:Cu,tan:Nu,typeOf:Su,acosh:Tu,acsch:ku,apply:Ou,asec:Iu,bin:Du,combinationsWithRep:Au,cos:Mu,csch:Lu,isNaN:Ru,isPrime:Pu,randomInt:$u,sech:Fu,sinh:ju,sparse:Bu,sqrt:Uu,tanh:Vu,unaryMinus:qu,acoth:zu,cot:Hu,fraction:Gu,isNumeric:Wu,matrix:Qu,matrixFromFunction:Xu,mod:Ku,nthRoot:Yu,numeric:Ju,or:Zu,prod:ep,reshape:tp,size:rp,smaller:ip,squeeze:ap,subset:np,subtract:op,to:sp,transpose:lp,xgcd:dp,zeros:cp,and:up,bitAnd:pp,bitXor:hp,cbrt:fp,compare:mp,compareText:gp,concat:bp,count:yp,ctranspose:vp,diag:xp,divideScalar:wp,dotDivide:_p,equal:Ep,flatten:Cp,gcd:Np,hasNumericValue:Sp,hypot:Tp,kron:Ip,largerEq:Dp,leftShift:Ap,lsolve:Mp,matrixFromColumns:Lp,min:Rp,mode:Pp,nthRoots:$p,ones:Fp,partitionSelect:jp,resize:Bp,rightLogShift:Up,round:Vp,smallerEq:qp,unequal:zp,usolve:Hp,xor:Gp,add:Wp,atan2:Qp,bitOr:Xp,catalan:Kp,compareNatural:Yp,deepEqual:Jp,diff:Zp,dot:eh,equalText:th,floor:rh,identity:ih,larger:ah,log:nh,lsolveAll:oh,matrixFromRows:sh,multiply:lh,pow:dh,qr:ch,range:uh,rightArithShift:ph,row:hh,setCartesian:fh,setDistinct:mh,setIsSubset:gh,setPowerset:bh,slu:yh,sum:vh,trace:xh,usolveAll:wh,asin:_h,ceil:Eh,column:Ch,composition:Nh,cross:Sh,distance:Th,dotMultiply:kh,fix:Ih,gamma:Dh,index:Ah,lcm:Mh,max:Lh,quantileSeq:Rh,setDifference:Ph,setMultiplicity:$h,setSymDifference:Fh,sort:jh,vacuumImpedance:Uh,wienDisplacement:Vh,atomicMass:qh,bohrMagneton:zh,boltzmann:Hh,conductanceQuantum:Gh,createUnit:Wh,deuteronMass:Qh,dotPow:Xh,electricConstant:Kh,elementaryCharge:Yh,factorial:Jh,fermiCoupling:Zh,gasConstant:ef,gravity:tf,intersect:rf,inverseConductanceQuantum:af,klitzing:nf,loschmidt:of,magneticConstant:sf,molarMass:lf,molarPlanckConstant:df,neutronMass:cf,nuclearMagneton:uf,permutations:pf,planckConstant:hf,planckMass:ff,planckTime:mf,quantumOfCirculation:gf,reducedPlanckConstant:bf,rydberg:yf,setIntersect:vf,setUnion:xf,stefanBoltzmann:_f,unit:Ef,avogadro:Cf,bohrRadius:Nf,coulomb:Sf,electronMass:Tf,faraday:kf,hartreeEnergy:Of,log1p:If,magneticFluxQuantum:Df,molarMassC12:Af,parse:ub,planckCharge:Mf,planckTemperature:Lf,secondRadiation:Rf,speedOfLight:Pf,stirlingS2:$f,bellNumbers:Ff,compile:pb,evaluate:hb,firstRadiation:jf,lup:Bf,molarVolume:Uf,protonMass:Vf,setSize:qf,thomsonCrossSection:zf,classicalElectronRadius:Hf,det:Gf,gravitationConstant:Wf,inv:Qf,lusolve:Xf,parser:gb,sqrtm:Kf,divide:Yf,expm:Jf,kldivergence:Zf,mean:em,median:tm,planckLength:rm,simplify:bb,variance:im,derivative:yb,help:vb,rationalize:xb,std:am,eigs:nm,multinomial:om,mad:sm,norm:lm,rotationMatrix:dm,rotate:cm,config:ae}),n()(zg,qg,{filter:Eg({typed:_c}),forEach:Ng({typed:_c}),map:Sg({typed:_c}),apply:kg({isInteger:ru,typed:_c}),diff:Ig({bignumber:Rc,matrix:Qu,number:pu,subtract:op,typed:_c}),index:Dg({Index:Op}),subset:Ag({matrix:Qu,typed:_c}),concat:Mg({isInteger:ru,matrix:Qu,typed:_c}),max:Lg({config:ae,larger:ah,numeric:Ju,typed:_c}),min:Rg({config:ae,numeric:Ju,smaller:ip,typed:_c}),range:Pg({bignumber:Rc,matrix:Qu,config:ae,larger:ah,largerEq:Dp,smaller:ip,smallerEq:qp,typed:_c}),row:$g({Index:Op,matrix:Qu,range:uh,typed:_c}),sum:Fg({add:Wp,config:ae,numeric:Ju,typed:_c}),column:jg({Index:Op,matrix:Qu,range:uh,typed:_c}),mean:Bg({add:Wp,divide:Yf,typed:_c}),variance:Ug({add:Wp,apply:Ou,divide:Yf,isNaN:Ru,multiply:lh,subtract:op,typed:_c}),std:Vg({sqrt:Uu,typed:_c,variance:im})}),n()(Hg,{BigNumber:Xd,Chain:Gg,Complex:Kd,Fraction:ec,Matrix:nc,Node:Wg,ObjectNode:Qg,OperatorNode:Xg,ParenthesisNode:Kg,Range:dc,RelationalNode:Yg,ResultSet:cc,ArrayNode:Jg,BlockNode:Zg,ConditionalNode:eb,ConstantNode:tb,DenseMatrix:gc,RangeNode:rb,FunctionAssignmentNode:nb,SparseMatrix:wu,AccessorNode:ob,AssignmentNode:sb,ImmutableDenseMatrix:kp,Index:Op,IndexNode:lb,FibonacciHeap:Oh,Unit:Bh,Spa:wf,SymbolNode:db,FunctionNode:cb,Help:fb,Parser:mb}),Gg.createProxy(qg);var wb={createBigNumberClass:st},_b={createComplexClass:ct},Eb={createMatrixClass:qr},Cb={MatrixDependencies:Eb,createDenseMatrixClass:Gr},Nb={createFractionClass:Vr},Sb={BigNumberDependencies:wb,ComplexDependencies:_b,DenseMatrixDependencies:Cb,FractionDependencies:Nb,createTyped:di},Tb={typedDependencies:Sb,createAbs:qi},kb={createNode:hm},Ob={typedDependencies:Sb,createEqualScalar:Ga},Ib={MatrixDependencies:Eb,equalScalarDependencies:Ob,typedDependencies:Sb,createSparseMatrixClass:qn},Db={DenseMatrixDependencies:Cb,MatrixDependencies:Eb,SparseMatrixDependencies:Ib,typedDependencies:Sb,createMatrix:vo},Ab={matrixDependencies:Db,typedDependencies:Sb,createSubset:zo},Mb={NodeDependencies:kb,subsetDependencies:Ab,createAccessorNode:Bm},Lb={ComplexDependencies:_b,typedDependencies:Sb,createAcos:zi},Rb={ComplexDependencies:_b,typedDependencies:Sb,createAcosh:Xn},Pb={BigNumberDependencies:wb,typedDependencies:Sb,createAcot:sa},$b={BigNumberDependencies:wb,ComplexDependencies:_b,typedDependencies:Sb,createAcoth:mo},Fb={BigNumberDependencies:wb,ComplexDependencies:_b,typedDependencies:Sb,createAcsc:la},jb={BigNumberDependencies:wb,typedDependencies:Sb,createAcsch:Kn},Bb={typedDependencies:Sb,createAddScalar:da},Ub={DenseMatrixDependencies:Cb,SparseMatrixDependencies:Ib,addScalarDependencies:Bb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createAdd:Xs},Vb={typedDependencies:Sb,createNot:Tn},qb={BigNumberDependencies:wb,matrixDependencies:Db,typedDependencies:Sb,createZeros:ts},zb={equalScalarDependencies:Ob,matrixDependencies:Db,notDependencies:Vb,typedDependencies:Sb,zerosDependencies:qb,createAnd:rs},Hb={typedDependencies:Sb,createIsInteger:cn},Gb={isIntegerDependencies:Hb,typedDependencies:Sb,createApply:Yn},Wb={isIntegerDependencies:Hb,typedDependencies:Sb,createApplyTransform:kg},Qb={typedDependencies:Sb,createArg:ca},Xb={NodeDependencies:kb,createArrayNode:Im},Kb={BigNumberDependencies:wb,ComplexDependencies:_b,typedDependencies:Sb,createAsec:Zn},Yb={BigNumberDependencies:wb,ComplexDependencies:_b,typedDependencies:Sb,createAsech:ua},Jb={ComplexDependencies:_b,typedDependencies:Sb,createAsin:jl},Zb={typedDependencies:Sb,createAsinh:pa},ey={matrixDependencies:Db,NodeDependencies:kb,subsetDependencies:Ab,createAssignmentNode:Um},ty={typedDependencies:Sb,createAtan:ha},ry={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createAtan2:Ys},iy={ComplexDependencies:_b,typedDependencies:Sb,createAtanh:fa},ay={BigNumberDependencies:wb,typedDependencies:Sb,createBignumber:ma},ny={FractionDependencies:Nb,typedDependencies:Sb,createFraction:bo},oy={typedDependencies:Sb,createNumber:kn},sy={bignumberDependencies:ay,fractionDependencies:ny,numberDependencies:oy,createNumeric:Ro},ly={numericDependencies:sy,typedDependencies:Sb,createDivideScalar:hs},dy={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createEqual:ms},cy={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,zerosDependencies:qb,createRound:qs},uy={equalScalarDependencies:Ob,matrixDependencies:Db,roundDependencies:cy,typedDependencies:Sb,createCeil:Bl},py={equalScalarDependencies:Ob,matrixDependencies:Db,roundDependencies:cy,typedDependencies:Sb,createFloor:sl},hy={ComplexDependencies:_b,ceilDependencies:uy,floorDependencies:py,matrixDependencies:Db,typedDependencies:Sb,createFix:Wl},fy={typedDependencies:Sb,createFormat:on},my={typedDependencies:Sb,createIsNumeric:yo},gy={typedDependencies:Sb,createMultiplyScalar:_n},by={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,SparseMatrixDependencies:Ib,matrixDependencies:Db,typedDependencies:Sb,createIdentity:ll},yy={typedDependencies:Sb,createConj:Ba},vy={matrixDependencies:Db,typedDependencies:Sb,createSize:Bo},xy={addScalarDependencies:Bb,conjDependencies:yy,multiplyScalarDependencies:gy,sizeDependencies:vy,typedDependencies:Sb,createDot:nl},wy={addScalarDependencies:Bb,dotDependencies:xy,equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,typedDependencies:Sb,createMultiply:hl},_y={ComplexDependencies:_b,fractionDependencies:ny,identityDependencies:by,matrixDependencies:Db,multiplyDependencies:wy,numberDependencies:oy,typedDependencies:Sb,createPow:fl},Ey={typedDependencies:Sb,createUnaryMinus:fo},Cy={DenseMatrixDependencies:Cb,addScalarDependencies:Bb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,unaryMinusDependencies:Ey,createSubtract:Ko},Ny={BigNumberDependencies:wb,ComplexDependencies:_b,FractionDependencies:Nb,absDependencies:Tb,addScalarDependencies:Bb,divideScalarDependencies:ly,equalDependencies:dy,fixDependencies:hy,formatDependencies:fy,isNumericDependencies:my,multiplyScalarDependencies:gy,numberDependencies:oy,powDependencies:_y,roundDependencies:cy,subtractDependencies:Cy,createUnitClass:ld},Sy={BigNumberDependencies:wb,UnitDependencies:Ny,createAtomicMass:br},Ty={BigNumberDependencies:wb,UnitDependencies:Ny,createAvogadro:yr},ky={typedDependencies:Sb,createIsNegative:mn},Oy={typedDependencies:Sb,createCombinations:$a},Iy={BigNumberDependencies:wb,ComplexDependencies:_b,multiplyScalarDependencies:gy,powDependencies:_y,typedDependencies:Sb,createGamma:Yl},Dy={gammaDependencies:Iy,typedDependencies:Sb,createFactorial:ud},Ay={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createLarger:dl},My={addScalarDependencies:Bb,combinationsDependencies:Oy,divideScalarDependencies:ly,factorialDependencies:Dy,isIntegerDependencies:Hb,isNegativeDependencies:ky,largerDependencies:Ay,multiplyScalarDependencies:gy,powDependencies:_y,subtractDependencies:Cy,typedDependencies:Sb,createStirlingS2:xd},Ly={addScalarDependencies:Bb,isIntegerDependencies:Hb,isNegativeDependencies:ky,stirlingS2Dependencies:My,typedDependencies:Sb,createBellNumbers:wd},Ry={formatDependencies:fy,typedDependencies:Sb,createBin:eo},Py={equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createBitAnd:is},$y={typedDependencies:Sb,createBitNot:Aa},Fy={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createBitOr:Js},jy={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createBitXor:as},By={createResultSet:Hr},Uy={NodeDependencies:kb,ResultSetDependencies:By,createBlockNode:Dm},Vy={BigNumberDependencies:wb,UnitDependencies:Ny,createBohrMagneton:Yt},qy={BigNumberDependencies:wb,UnitDependencies:Ny,createBohrRadius:ir},zy={BigNumberDependencies:wb,UnitDependencies:Ny,createBoltzmann:vr},Hy={typedDependencies:Sb,createBoolean:Ma},Gy={addScalarDependencies:Bb,combinationsDependencies:Oy,divideScalarDependencies:ly,isIntegerDependencies:Hb,isNegativeDependencies:ky,multiplyScalarDependencies:gy,typedDependencies:Sb,createCatalan:Zs},Wy={BigNumberDependencies:wb,ComplexDependencies:_b,FractionDependencies:Nb,isNegativeDependencies:ky,matrixDependencies:Db,typedDependencies:Sb,unaryMinusDependencies:Ey,createCbrt:ns},Qy={createChainClass:um},Xy={ChainDependencies:Qy,typedDependencies:Sb,createChain:Pm},Ky={BigNumberDependencies:wb,UnitDependencies:Ny,createClassicalElectronRadius:ar},Yy={typedDependencies:Sb,createClone:La},Jy={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createSmaller:Vo},Zy={DenseMatrixDependencies:Cb,smallerDependencies:Jy,createImmutableDenseMatrixClass:ws},ev={ImmutableDenseMatrixDependencies:Zy,createIndexClass:_s},tv={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createLargerEq:Cs},rv={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createSmallerEq:Hs},iv={bignumberDependencies:ay,matrixDependencies:Db,largerDependencies:Ay,largerEqDependencies:tv,smallerDependencies:Jy,smallerEqDependencies:rv,typedDependencies:Sb,createRange:gl},av={IndexDependencies:ev,matrixDependencies:Db,rangeDependencies:iv,typedDependencies:Sb,createColumn:Ul},nv={IndexDependencies:ev,matrixDependencies:Db,rangeDependencies:iv,typedDependencies:Sb,createColumnTransform:jg},ov={typedDependencies:Sb,createCombinationsWithRep:to},sv={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,FractionDependencies:Nb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createCompare:os},lv={compareDependencies:sv,typedDependencies:Sb,createCompareNatural:rl},dv={matrixDependencies:Db,typedDependencies:Sb,createCompareText:ss},cv={NodeDependencies:kb,createConditionalNode:Am},uv={NodeDependencies:kb,createConstantNode:Mm},pv={NodeDependencies:kb,typedDependencies:Sb,createFunctionAssignmentNode:$m},hv={UnitDependencies:Ny,NodeDependencies:kb,createSymbolNode:qm},fv={NodeDependencies:kb,SymbolNodeDependencies:hv,createFunctionNode:Gm},mv={createRangeClass:zr},gv={NodeDependencies:kb,RangeDependencies:mv,sizeDependencies:vy,createIndexNode:Vm},bv={NodeDependencies:kb,createObjectNode:fm},yv={NodeDependencies:kb,createOperatorNode:Tm},vv={NodeDependencies:kb,createParenthesisNode:km},xv={NodeDependencies:kb,createRangeNode:Lm},wv={NodeDependencies:kb,createRelationalNode:Om},_v={AccessorNodeDependencies:Mb,ArrayNodeDependencies:Xb,AssignmentNodeDependencies:ey,BlockNodeDependencies:Uy,ConditionalNodeDependencies:cv,ConstantNodeDependencies:uv,FunctionAssignmentNodeDependencies:pv,FunctionNodeDependencies:fv,IndexNodeDependencies:gv,ObjectNodeDependencies:bv,OperatorNodeDependencies:yv,ParenthesisNodeDependencies:vv,RangeNodeDependencies:xv,RelationalNodeDependencies:wv,SymbolNodeDependencies:hv,numericDependencies:sy,typedDependencies:Sb,createParse:Qm},Ev={parseDependencies:_v,typedDependencies:Sb,createCompile:Km},Cv={ComplexDependencies:_b,typedDependencies:Sb,createComplex:ja},Nv={typedDependencies:Sb,createIsPositive:gn},Sv={addScalarDependencies:Bb,combinationsDependencies:Oy,isIntegerDependencies:Hb,isNegativeDependencies:ky,isPositiveDependencies:Nv,largerDependencies:Ay,typedDependencies:Sb,createComposition:Vl},Tv={isIntegerDependencies:Hb,matrixDependencies:Db,typedDependencies:Sb,createConcat:ls},kv={isIntegerDependencies:Hb,matrixDependencies:Db,typedDependencies:Sb,createConcatTransform:Mg},Ov={BigNumberDependencies:wb,UnitDependencies:Ny,createConductanceQuantum:Jt},Iv={typedDependencies:Sb,createCos:io},Dv={typedDependencies:Sb,createCosh:Ua},Av={BigNumberDependencies:wb,typedDependencies:Sb,createCot:go},Mv={BigNumberDependencies:wb,typedDependencies:Sb,createCoth:Va},Lv={BigNumberDependencies:wb,UnitDependencies:Ny,createCoulomb:Xt},Rv={multiplyScalarDependencies:gy,numericDependencies:sy,typedDependencies:Sb,createProd:Fo},Pv={prodDependencies:Rv,sizeDependencies:vy,typedDependencies:Sb,createCount:cs},$v={UnitDependencies:Ny,typedDependencies:Sb,createCreateUnit:dd},Fv={matrixDependencies:Db,multiplyDependencies:wy,subtractDependencies:Cy,typedDependencies:Sb,createCross:ql},jv={BigNumberDependencies:wb,typedDependencies:Sb,createCsc:qa},Bv={BigNumberDependencies:wb,typedDependencies:Sb,createCsch:ao},Uv={matrixDependencies:Db,typedDependencies:Sb,createTranspose:Zo},Vv={conjDependencies:yy,transposeDependencies:Uv,typedDependencies:Sb,createCtranspose:us},qv={typedDependencies:Sb,createCube:za},zv={equalDependencies:dy,typedDependencies:Sb,createDeepEqual:il},Hv={typedDependencies:Sb,createIsZero:bn},Gv={largerDependencies:Ay,smallerDependencies:Jy,createFibonacciHeapClass:Gl},Wv={FibonacciHeapDependencies:Gv,addScalarDependencies:Bb,equalScalarDependencies:Ob,createSpaClass:bd},Qv={DenseMatrixDependencies:Cb,SpaDependencies:Wv,SparseMatrixDependencies:Ib,absDependencies:Tb,addScalarDependencies:Bb,divideScalarDependencies:ly,equalScalarDependencies:Ob,largerDependencies:Ay,matrixDependencies:Db,multiplyScalarDependencies:gy,subtractDependencies:Cy,typedDependencies:Sb,unaryMinusDependencies:Ey,createLup:_d},Xv={lupDependencies:Qv,matrixDependencies:Db,multiplyDependencies:wy,subtractDependencies:Cy,typedDependencies:Sb,unaryMinusDependencies:Ey,createDet:Cd},Kv={absDependencies:Tb,addScalarDependencies:Bb,detDependencies:Xv,divideScalarDependencies:ly,identityDependencies:by,matrixDependencies:Db,multiplyDependencies:wy,typedDependencies:Sb,unaryMinusDependencies:Ey,createInv:Nd},Yv={divideScalarDependencies:ly,equalScalarDependencies:Ob,invDependencies:Kv,matrixDependencies:Db,multiplyDependencies:wy,typedDependencies:Sb,createDivide:Od},Jv={bignumberDependencies:ay,fractionDependencies:ny,ConstantNodeDependencies:uv,FunctionNodeDependencies:fv,OperatorNodeDependencies:yv,ParenthesisNodeDependencies:vv,SymbolNodeDependencies:hv,addDependencies:Ub,divideDependencies:Yv,equalDependencies:dy,isZeroDependencies:Hv,multiplyDependencies:wy,parseDependencies:_v,powDependencies:_y,subtractDependencies:Cy,typedDependencies:Sb,createSimplify:fg},Zv={ConstantNodeDependencies:uv,FunctionNodeDependencies:fv,OperatorNodeDependencies:yv,ParenthesisNodeDependencies:vv,SymbolNodeDependencies:hv,equalDependencies:dy,isZeroDependencies:Hv,numericDependencies:sy,parseDependencies:_v,simplifyDependencies:Jv,typedDependencies:Sb,createDerivative:gg},ex={BigNumberDependencies:wb,UnitDependencies:Ny,createDeuteronMass:cr},tx={DenseMatrixDependencies:Cb,SparseMatrixDependencies:Ib,matrixDependencies:Db,typedDependencies:Sb,createDiag:ps},rx={matrixDependencies:Db,numberDependencies:oy,subtractDependencies:Cy,typedDependencies:Sb,createDiff:al},ix={bignumberDependencies:ay,matrixDependencies:Db,numberDependencies:oy,subtractDependencies:Cy,typedDependencies:Sb,createDiffTransform:Ig},ax={ComplexDependencies:_b,typedDependencies:Sb,createSqrt:po},nx={absDependencies:Tb,addScalarDependencies:Bb,divideScalarDependencies:ly,multiplyScalarDependencies:gy,sqrtDependencies:ax,subtractDependencies:Cy,typedDependencies:Sb,unaryMinusDependencies:Ey,createDistance:zl},ox={DenseMatrixDependencies:Cb,divideScalarDependencies:ly,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createDotDivide:fs},sx={equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,typedDependencies:Sb,createDotMultiply:Hl},lx={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,powDependencies:_y,typedDependencies:Sb,createDotPow:cd},dx={BigNumberDependencies:wb,createE:Ot},cx={BigNumberDependencies:wb,createEfimovFactor:gr},ux={matrixDependencies:Db,typedDependencies:Sb,createFlatten:gs},px={typedDependencies:Sb,createIm:dn},hx={flattenDependencies:ux,matrixDependencies:Db,sizeDependencies:vy,typedDependencies:Sb,createMatrixFromColumns:Os},fx={BigNumberDependencies:wb,FractionDependencies:Nb,complexDependencies:Cv,typedDependencies:Sb,createSign:Un},mx={addScalarDependencies:Bb,complexDependencies:Cv,conjDependencies:yy,divideScalarDependencies:ly,equalDependencies:dy,identityDependencies:by,isZeroDependencies:Hv,matrixDependencies:Db,multiplyScalarDependencies:gy,signDependencies:fx,sqrtDependencies:ax,subtractDependencies:Cy,typedDependencies:Sb,unaryMinusDependencies:Ey,zerosDependencies:qb,createQr:ml},gx={typedDependencies:Sb,createRe:jn},bx={typedDependencies:Sb,createSin:Vn},yx={DenseMatrixDependencies:Cb,divideScalarDependencies:ly,equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,subtractDependencies:Cy,typedDependencies:Sb,createUsolve:Ws},vx={DenseMatrixDependencies:Cb,divideScalarDependencies:ly,equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,subtractDependencies:Cy,typedDependencies:Sb,createUsolveAll:Fl},xx={absDependencies:Tb,addDependencies:Ub,addScalarDependencies:Bb,atanDependencies:ty,bignumberDependencies:ay,columnDependencies:av,complexDependencies:Cv,cosDependencies:Iv,diagDependencies:tx,divideScalarDependencies:ly,dotDependencies:xy,equalDependencies:dy,flattenDependencies:ux,imDependencies:px,invDependencies:Kv,largerDependencies:Ay,matrixDependencies:Db,matrixFromColumnsDependencies:hx,multiplyDependencies:wy,multiplyScalarDependencies:gy,numberDependencies:oy,qrDependencies:mx,reDependencies:gx,sinDependencies:bx,smallerDependencies:Jy,sqrtDependencies:ax,subtractDependencies:Cy,typedDependencies:Sb,usolveDependencies:yx,usolveAllDependencies:vx,createEigs:Fd},wx={BigNumberDependencies:wb,UnitDependencies:Ny,createElectricConstant:Wt},_x={BigNumberDependencies:wb,UnitDependencies:Ny,createElectronMass:nr},Ex={BigNumberDependencies:wb,UnitDependencies:Ny,createElementaryCharge:Kt},Cx={compareTextDependencies:dv,isZeroDependencies:Hv,typedDependencies:Sb,createEqualText:ol},Nx={typedDependencies:Sb,createErf:Wa},Sx={parseDependencies:_v,typedDependencies:Sb,createEvaluate:Jm},Tx={typedDependencies:Sb,createExp:Za},kx={absDependencies:Tb,addDependencies:Ub,identityDependencies:by,invDependencies:Kv,multiplyDependencies:wy,typedDependencies:Sb,createExpm:Id},Ox={ComplexDependencies:_b,typedDependencies:Sb,createExpm1:en},Ix={createFalse:Et},Dx={BigNumberDependencies:wb,UnitDependencies:Ny,createFaraday:xr},Ax={BigNumberDependencies:wb,UnitDependencies:Ny,createFermiCoupling:or},Mx={typedDependencies:Sb,createFilter:tn},Lx={typedDependencies:Sb,createFilterTransform:Eg},Rx={BigNumberDependencies:wb,createFineStructure:sr},Px={BigNumberDependencies:wb,UnitDependencies:Ny,createFirstRadiation:wr},$x={typedDependencies:Sb,createForEach:an},Fx={typedDependencies:Sb,createForEachTransform:Ng},jx={BigNumberDependencies:wb,UnitDependencies:Ny,createGasConstant:Er},Bx={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createGcd:ys},Ux={typedDependencies:Sb,createGetMatrixDataType:sn},Vx={BigNumberDependencies:wb,UnitDependencies:Ny,createGravitationConstant:qt},qx={BigNumberDependencies:wb,UnitDependencies:Ny,createGravity:Ar},zx={BigNumberDependencies:wb,UnitDependencies:Ny,createHartreeEnergy:lr},Hx={isNumericDependencies:my,typedDependencies:Sb,createHasNumericValue:vs},Gx={parseDependencies:_v,createHelpClass:eg},Wx={HelpDependencies:Gx,typedDependencies:Sb,createHelp:xg},Qx={formatDependencies:fy,typedDependencies:Sb,createHex:ln},Xx={absDependencies:Tb,addScalarDependencies:Bb,divideScalarDependencies:ly,isPositiveDependencies:Nv,multiplyScalarDependencies:gy,smallerDependencies:Jy,sqrtDependencies:ax,typedDependencies:Sb,createHypot:xs},Kx={ComplexDependencies:_b,createI:$t},Yx={IndexDependencies:ev,typedDependencies:Sb,createIndex:Jl},Jx={IndexDependencies:ev,createIndexTransform:Dg},Zx={BigNumberDependencies:wb,createInfinity:Nt},ew={absDependencies:Tb,addDependencies:Ub,addScalarDependencies:Bb,divideScalarDependencies:ly,equalScalarDependencies:Ob,flattenDependencies:ux,matrixDependencies:Db,multiplyDependencies:wy,multiplyScalarDependencies:gy,smallerDependencies:Jy,subtractDependencies:Cy,typedDependencies:Sb,createIntersect:pd},tw={BigNumberDependencies:wb,UnitDependencies:Ny,createInverseConductanceQuantum:Zt},rw={typedDependencies:Sb,createIsNaN:no},iw={typedDependencies:Sb,createIsPrime:oo},aw={ComplexDependencies:_b,divideScalarDependencies:ly,typedDependencies:Sb,createLog:cl},nw={addDependencies:Ub,numericDependencies:sy,typedDependencies:Sb,createSum:Pl},ow={divideDependencies:Yv,dotDivideDependencies:ox,isNumericDependencies:my,logDependencies:aw,matrixDependencies:Db,multiplyDependencies:wy,sumDependencies:nw,typedDependencies:Sb,createKldivergence:Dd},sw={BigNumberDependencies:wb,UnitDependencies:Ny,createKlitzing:rr},lw={matrixDependencies:Db,multiplyScalarDependencies:gy,typedDependencies:Sb,createKron:Es},dw={BigNumberDependencies:wb,createLN10:At},cw={BigNumberDependencies:wb,createLN2:Dt},uw={BigNumberDependencies:wb,createLOG10E:Lt},pw={BigNumberDependencies:wb,createLOG2E:Mt},hw={equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createLcm:Zl},fw={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,zerosDependencies:qb,createLeftShift:Ss},mw={ComplexDependencies:_b,typedDependencies:Sb,createLog10:yn},gw={ComplexDependencies:_b,divideScalarDependencies:ly,logDependencies:aw,typedDependencies:Sb,createLog1p:vd},bw={ComplexDependencies:_b,typedDependencies:Sb,createLog2:vn},yw={BigNumberDependencies:wb,UnitDependencies:Ny,createLoschmidt:_r},vw={DenseMatrixDependencies:Cb,divideScalarDependencies:ly,equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,subtractDependencies:Cy,typedDependencies:Sb,createLsolve:ks},xw={DenseMatrixDependencies:Cb,divideScalarDependencies:ly,equalScalarDependencies:Ob,matrixDependencies:Db,multiplyScalarDependencies:gy,subtractDependencies:Cy,typedDependencies:Sb,createLsolveAll:ul},ww={SparseMatrixDependencies:Ib,absDependencies:Tb,addDependencies:Ub,divideScalarDependencies:ly,largerDependencies:Ay,largerEqDependencies:tv,multiplyDependencies:wy,subtractDependencies:Cy,transposeDependencies:Uv,typedDependencies:Sb,createSlu:Rl},_w={DenseMatrixDependencies:Cb,lsolveDependencies:vw,lupDependencies:Qv,matrixDependencies:Db,sluDependencies:ww,typedDependencies:Sb,usolveDependencies:yx,createLusolve:Td},Ew={typedDependencies:Sb,createMap:xn},Cw={compareDependencies:sv,isNaNDependencies:rw,isNumericDependencies:my,typedDependencies:Sb,createPartitionSelect:Ls},Nw={addDependencies:Ub,compareDependencies:sv,divideDependencies:Yv,partitionSelectDependencies:Cw,typedDependencies:Sb,createMedian:Md},Sw={absDependencies:Tb,mapDependencies:Ew,medianDependencies:Nw,subtractDependencies:Cy,typedDependencies:Sb,createMad:Vd},Tw={BigNumberDependencies:wb,UnitDependencies:Ny,createMagneticConstant:Gt},kw={BigNumberDependencies:wb,UnitDependencies:Ny,createMagneticFluxQuantum:er},Ow={typedDependencies:Sb,createMapTransform:Sg},Iw={isZeroDependencies:Hv,matrixDependencies:Db,typedDependencies:Sb,createMatrixFromFunction:xo},Dw={flattenDependencies:ux,matrixDependencies:Db,sizeDependencies:vy,typedDependencies:Sb,createMatrixFromRows:pl},Aw={largerDependencies:Ay,numericDependencies:sy,typedDependencies:Sb,createMax:ed},Mw={largerDependencies:Ay,numericDependencies:sy,typedDependencies:Sb,createMaxTransform:Lg},Lw={addDependencies:Ub,divideDependencies:Yv,typedDependencies:Sb,createMean:Ad},Rw={addDependencies:Ub,divideDependencies:Yv,typedDependencies:Sb,createMeanTransform:Bg},Pw={numericDependencies:sy,smallerDependencies:Jy,typedDependencies:Sb,createMin:Is},$w={numericDependencies:sy,smallerDependencies:Jy,typedDependencies:Sb,createMinTransform:Rg},Fw={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createMod:ko},jw={isNaNDependencies:rw,isNumericDependencies:my,typedDependencies:Sb,createMode:Ds},Bw={BigNumberDependencies:wb,UnitDependencies:Ny,createMolarMass:Ir},Uw={BigNumberDependencies:wb,UnitDependencies:Ny,createMolarMassC12:Dr},Vw={BigNumberDependencies:wb,UnitDependencies:Ny,createMolarPlanckConstant:Cr},qw={BigNumberDependencies:wb,UnitDependencies:Ny,createMolarVolume:Nr},zw={addDependencies:Ub,divideDependencies:Yv,factorialDependencies:Dy,isIntegerDependencies:Hb,isPositiveDependencies:Nv,multiplyDependencies:wy,typedDependencies:Sb,createMultinomial:Bd},Hw={BigNumberDependencies:wb,createNaN:St},Gw={BigNumberDependencies:wb,UnitDependencies:Ny,createNeutronMass:ur},Ww={absDependencies:Tb,addDependencies:Ub,conjDependencies:yy,ctransposeDependencies:Vv,eigsDependencies:xx,equalScalarDependencies:Ob,largerDependencies:Ay,matrixDependencies:Db,multiplyDependencies:wy,powDependencies:_y,smallerDependencies:Jy,sqrtDependencies:ax,typedDependencies:Sb,createNorm:zd},Qw={BigNumberDependencies:wb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createNthRoot:Do},Xw={ComplexDependencies:_b,divideScalarDependencies:ly,typedDependencies:Sb,createNthRoots:As},Kw={BigNumberDependencies:wb,UnitDependencies:Ny,createNuclearMagneton:tr},Yw={createNull:Ct},Jw={formatDependencies:fy,typedDependencies:Sb,createOct:On},Zw={BigNumberDependencies:wb,matrixDependencies:Db,typedDependencies:Sb,createOnes:Ms},e_={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createOr:Po},t_={evaluateDependencies:Sx,createParserClass:rg},r_={ParserDependencies:t_,typedDependencies:Sb,createParser:ag},i_={factorialDependencies:Dy,typedDependencies:Sb,createPermutations:hd},a_={BigNumberDependencies:wb,createPhi:It},n_={BigNumberDependencies:wb,createPi:Tt},o_={typedDependencies:Sb,createPickRandom:Ln},s_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckCharge:Pr},l_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckConstant:zt},d_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckLength:Mr},c_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckMass:Lr},u_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckTemperature:$r},p_={BigNumberDependencies:wb,UnitDependencies:Ny,createPlanckTime:Rr},h_={typedDependencies:Sb,createPrint:Rn},f_={BigNumberDependencies:wb,UnitDependencies:Ny,createProtonMass:dr},m_={addDependencies:Ub,compareDependencies:sv,multiplyDependencies:wy,partitionSelectDependencies:Cw,typedDependencies:Sb,createQuantileSeq:td},g_={BigNumberDependencies:wb,UnitDependencies:Ny,createQuantumOfCirculation:pr},b_={typedDependencies:Sb,createRandom:Fn},y_={typedDependencies:Sb,createRandomInt:so},v_={bignumberDependencies:ay,matrixDependencies:Db,largerDependencies:Ay,largerEqDependencies:tv,smallerDependencies:Jy,smallerEqDependencies:rv,typedDependencies:Sb,createRangeTransform:Pg},x_={bignumberDependencies:ay,fractionDependencies:ny,ConstantNodeDependencies:uv,FunctionNodeDependencies:fv,OperatorNodeDependencies:yv,ParenthesisNodeDependencies:vv,SymbolNodeDependencies:hv,addDependencies:Ub,divideDependencies:Yv,equalDependencies:dy,isZeroDependencies:Hv,multiplyDependencies:wy,parseDependencies:_v,powDependencies:_y,simplifyDependencies:Jv,subtractDependencies:Cy,typedDependencies:Sb,createRationalize:wg},w_={BigNumberDependencies:wb,UnitDependencies:Ny,createReducedPlanckConstant:Ht},__={createReplacer:Wr},E_={isIntegerDependencies:Hb,matrixDependencies:Db,typedDependencies:Sb,createReshape:jo},C_={matrixDependencies:Db,createResize:Ps},N_={createReviver:Rm},S_={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,zerosDependencies:qb,createRightArithShift:bl},T_={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,zerosDependencies:qb,createRightLogShift:$s},k_={BigNumberDependencies:wb,DenseMatrixDependencies:Cb,SparseMatrixDependencies:Ib,addScalarDependencies:Bb,cosDependencies:Iv,matrixDependencies:Db,multiplyScalarDependencies:gy,normDependencies:Ww,sinDependencies:bx,typedDependencies:Sb,unaryMinusDependencies:Ey,createRotationMatrix:Gd},O_={multiplyDependencies:wy,rotationMatrixDependencies:k_,typedDependencies:Sb,createRotate:Qd},I_={IndexDependencies:ev,matrixDependencies:Db,rangeDependencies:iv,typedDependencies:Sb,createRow:yl},D_={IndexDependencies:ev,matrixDependencies:Db,rangeDependencies:iv,typedDependencies:Sb,createRowTransform:$g},A_={BigNumberDependencies:wb,UnitDependencies:Ny,createRydberg:hr},M_={BigNumberDependencies:wb,createSQRT1_2:Rt},L_={BigNumberDependencies:wb,createSQRT2:Pt},R_={BigNumberDependencies:wb,createSackurTetrode:Sr},P_={BigNumberDependencies:wb,typedDependencies:Sb,createSec:Bn},$_={BigNumberDependencies:wb,typedDependencies:Sb,createSech:lo},F_={BigNumberDependencies:wb,UnitDependencies:Ny,createSecondRadiation:Tr},j_={DenseMatrixDependencies:Cb,IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetCartesian:vl},B_={DenseMatrixDependencies:Cb,IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetDifference:rd},U_={DenseMatrixDependencies:Cb,IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetDistinct:xl},V_={DenseMatrixDependencies:Cb,IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetIntersect:md},q_={IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetIsSubset:wl},z_={IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetMultiplicity:id},H_={IndexDependencies:ev,compareNaturalDependencies:lv,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetPowerset:_l},G_={compareNaturalDependencies:lv,typedDependencies:Sb,createSetSize:Ed},W_={IndexDependencies:ev,concatDependencies:Tv,setDifferenceDependencies:B_,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetSymDifference:ad},Q_={IndexDependencies:ev,concatDependencies:Tv,setIntersectDependencies:V_,setSymDifferenceDependencies:W_,sizeDependencies:vy,subsetDependencies:Ab,typedDependencies:Sb,createSetUnion:gd},X_={typedDependencies:Sb,createSinh:co},K_={compareDependencies:sv,compareNaturalDependencies:lv,matrixDependencies:Db,typedDependencies:Sb,createSort:nd},Y_={SparseMatrixDependencies:Ib,typedDependencies:Sb,createSparse:uo},J_={BigNumberDependencies:wb,UnitDependencies:Ny,createSpeedOfLight:Vt},Z_={typedDependencies:Sb,createSplitUnit:zn},eE={absDependencies:Tb,addDependencies:Ub,identityDependencies:by,invDependencies:Kv,maxDependencies:Aw,multiplyDependencies:wy,sizeDependencies:vy,sqrtDependencies:ax,subtractDependencies:Cy,typedDependencies:Sb,createSqrtm:kd},tE={typedDependencies:Sb,createSquare:Hn},rE={matrixDependencies:Db,typedDependencies:Sb,createSqueeze:qo},iE={addDependencies:Ub,applyDependencies:Gb,divideDependencies:Yv,isNaNDependencies:rw,multiplyDependencies:wy,subtractDependencies:Cy,typedDependencies:Sb,createVariance:Ld},aE={sqrtDependencies:ax,typedDependencies:Sb,varianceDependencies:iE,createStd:Rd},nE={sqrtDependencies:ax,typedDependencies:Sb,varianceDependencies:iE,createStdTransform:Vg},oE={BigNumberDependencies:wb,UnitDependencies:Ny,createStefanBoltzmann:kr},sE={typedDependencies:Sb,createString:Gn},lE={matrixDependencies:Db,typedDependencies:Sb,createSubsetTransform:Ag},dE={addDependencies:Ub,numericDependencies:sy,typedDependencies:Sb,createSumTransform:Fg},cE={typedDependencies:Sb,createTan:Wn},uE={typedDependencies:Sb,createTanh:ho},pE={BigNumberDependencies:wb,createTau:kt},hE={BigNumberDependencies:wb,UnitDependencies:Ny,createThomsonCrossSection:fr},fE={matrixDependencies:Db,typedDependencies:Sb,createTo:Jo},mE={addDependencies:Ub,matrixDependencies:Db,typedDependencies:Sb,createTrace:$l},gE={createTrue:_t},bE={typedDependencies:Sb,createTypeOf:Qn},yE={BigNumberDependencies:wb,typedDependencies:Sb,createUnaryPlus:Vi},vE={DenseMatrixDependencies:Cb,equalScalarDependencies:Ob,matrixDependencies:Db,typedDependencies:Sb,createUnequal:Gs},xE={UnitDependencies:Ny,typedDependencies:Sb,createUnitFunction:yd},wE={eDependencies:dx,createUppercaseE:jt},_E={piDependencies:n_,createUppercasePi:Ft},EE={BigNumberDependencies:wb,UnitDependencies:Ny,createVacuumImpedance:Qt},CE={addDependencies:Ub,applyDependencies:Gb,divideDependencies:Yv,isNaNDependencies:rw,multiplyDependencies:wy,subtractDependencies:Cy,typedDependencies:Sb,createVarianceTransform:Ug},NE={createVersion:Bt},SE={BigNumberDependencies:wb,createWeakMixingAngle:mr},TE={BigNumberDependencies:wb,UnitDependencies:Ny,createWienDisplacement:Or},kE={BigNumberDependencies:wb,matrixDependencies:Db,typedDependencies:Sb,createXgcd:es},OE={DenseMatrixDependencies:Cb,matrixDependencies:Db,typedDependencies:Sb,createXor:Qs},IE=i,DE=r("c0e2"),AE=r.n(DE);function ME(e,t,r,i){function a(t,a,o){var s;if(o.wrap&&"function"==typeof a&&(a=function(e){var t=function(){for(var t=[],i=0,a=arguments.length;i2&&void 0!==arguments[2]?arguments[2]:t.fn;if(it(n,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(n));var s=b(t)?r.expression.transform:r,l=n in r.expression.transform,d=J(s,n)?s[n]:void 0,c=function(){var i={};t.dependencies.map(ot).forEach(e=>{if(it(e,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?i.math=r:"mathWithTransform"===e?i.mathWithTransform=r.expression.mathWithTransform:"classes"===e?i.classes=r:i[e]=r[e]});var o=t(i);if(o&&"function"==typeof o.transform)throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===d||a.override)return o;if(h(d)&&h(o))return e(d,o);if(a.silent)return d;throw new Error('Cannot import "'+n+'": already exists')};t.meta&&!1===t.meta.lazy?(s[n]=c(),d&&l?o(n):(b(t)||g(t))&&Y(r.expression.mathWithTransform,n,()=>s[n])):(Y(s,n,c),d&&l?o(n):(b(t)||g(t))&&Y(r.expression.mathWithTransform,n,()=>s[n])),i[n]=t,r.emit("import",n,c)}function p(e){return"function"==typeof e||"number"==typeof e||"string"==typeof e||"boolean"==typeof e||null===e||u(e)||d(e)||l(e)||c(e)||f(e)||Array.isArray(e)}function h(e){return"function"==typeof e&&"object"==typeof e.signatures}function m(e){return!J(y,e)}function g(e){return!(-1!==e.fn.indexOf(".")||J(y,e.fn)||e.meta&&e.meta.isClass)}function b(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction||!1}var y={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(e,t){var r=arguments.length;if(1!==r&&2!==r)throw new Rs("import",r,1,2);function i(e,r,a){if(Array.isArray(r))r.forEach(t=>i(e,t));else if("object"==typeof r)for(var n in r)J(r,n)&&i(e,r[n],n);else if(nt(r)||void 0!==a){var o=nt(r)?b(r)?r.fn+".transform":r.fn:a;if(J(e,o)&&e[o]!==r&&!t.silent)throw new Error('Cannot import "'+o+'" twice');e[o]=r}else if(!t.silent)throw new TypeError("Factory, Object, or Array expected")}t||(t={});var n={};for(var o in i(n,e),n)if(J(n,o)){var l=n[o];if(nt(l))s(l,t);else if(p(l))a(o,l,t);else if(!t.silent)throw new TypeError("Factory, Object, or Array expected")}}}function LE(e,t){var r=n()({},o,t);if("function"!=typeof Object.create)throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var i,a,H=(i={isNumber:s,isComplex:d,isBigNumber:l,isFraction:c,isUnit:u,isString:p,isArray:h,isMatrix:f,isCollection:m,isDenseMatrix:g,isSparseMatrix:b,isRange:y,isIndex:v,isBoolean:x,isResultSet:w,isHelp:_,isFunction:E,isDate:C,isRegExp:N,isObject:S,isNull:T,isUndefined:k,isAccessorNode:O,isArrayNode:I,isAssignmentNode:D,isBlockNode:A,isConditionalNode:M,isConstantNode:L,isFunctionAssignmentNode:R,isFunctionNode:P,isIndexNode:$,isNode:F,isObjectNode:j,isOperatorNode:B,isParenthesisNode:U,isRangeNode:V,isSymbolNode:q,isChain:z},a=new AE.a,i.on=a.on.bind(a),i.off=a.off.bind(a),i.once=a.once.bind(a),i.emit=a.emit.bind(a),i);H.config=re(r,H.emit),H.expression={transform:{},mathWithTransform:{config:H.config}};var G={},W=ME((function(){for(var e=arguments.length,t=new Array(e),r=0;r{Z(G).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&W(e,{override:!0})})}),H.create=LE.bind(null,e),H.factory=at,H.import(Z(K(e))),H.ArgumentsError=Rs,H.DimensionError=$e,H.IndexError=Fe,H}},c780:function(e,t,r){"use strict";r("8b95")},c839:function(e,t,r){var i=r("cc0c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("54f6bd0f",i,!0,{sourceMap:!1,shadowMode:!1})},c87d:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".content-vlistView[data-v-81c58dd2] .apaas-vlist-wrapper .rt-header.rt-xpc-sticky{padding-bottom:8px;background:#e8ebee}.content-vlistView[data-v-81c58dd2] .apaas-vlist-wrapper .rt-content-wrapper .rt-table{padding:0 8px}.content-vlistView[data-v-81c58dd2] .rt-view-wrapper .rt-table{width:100%}.content-vlistView[data-v-81c58dd2] .rt-view-wrapper.content-show-echart .rt-content-wrapper .rt-content-main{display:flex}.content-vlistView[data-v-81c58dd2] .rt-view-wrapper.content-show-echart .rt-content-wrapper .rt-table{width:calc(100% - 400px);transition:width .3s}.content-vlistView[data-v-81c58dd2] .rt-view-wrapper .rt-header.rt-header-sticky{margin-bottom:unset}.content-vlistView[data-v-81c58dd2] .rt-view-wrapper .rt-content-wrapper .rt-content-main{padding:unset}",""]),e.exports=t},c895:function(e,t,r){"use strict";r("8f38")},c89a:function(e,t,r){var i=r("c0c3");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("cad38c60",i,!0,{sourceMap:!1,shadowMode:!1})},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},c8c7:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-input-number[data-v-f561cf50] .el-input-number .el-input .el-input__inner{padding:0 8px;text-align:left}",""]),e.exports=t},c8eb:function(e,t,r){"use strict";r("7592")},c956:function(e,t,r){var i=r("fd69");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("c157e280",i,!0,{sourceMap:!1,shadowMode:!1})},c99f:function(e,t,r){var i=r("d1a4");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("567f2a08",i,!0,{sourceMap:!1,shadowMode:!1})},ca13:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".fetch-select[data-v-35d9fbf1]{position:relative}.fetch-select[data-v-35d9fbf1] .el-input__inner{height:32px!important}",""]),e.exports=t},ca95:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag",2===this.props.showStyle?n.a.RtRadioGroup:n.a.RtCheckBox)}buildVNodeInForm(e,t){return super.buildVNodeInForm(e,t),e.setAttrs(this.props),t.targetComponent,e.addProp("showStyle",this.props.showStyle),2===this.props.showStyle?this.initPicklist(e,t):e.addProp("label",""),e}initPicklist(e,t){t.targetComponent;const r=e.addChildByTag(n.a.RtRadio);r.addAttr("label",!0),r.nodeType=i.b.Radio,r.vtext=this.props.boolValues[1];const a=e.addChildByTag(n.a.RtRadio);a.addAttr("label",!1),a.nodeType=i.b.Radio,a.vtext=this.props.boolValues[0]}}o(s,"$bindNodeType",i.b.Boolean)},cae0:function(e,t,r){(function(e){var i;!function(e,a,n){function o(e){var t=this;t.next=function(){var e,r,i=t.x,a=t.i;return e=i[a],r=(e^=e>>>7)^e<<24,r^=(e=i[a+1&7])^e>>>10,r^=(e=i[a+3&7])^e>>>3,r^=(e=i[a+4&7])^e<<7,e=i[a+7&7],r^=(e^=e<<13)^e<<9,i[a]=r,t.i=a+1&7,r},function(e,t){var r,i=[];if(t===(0|t))i[0]=t;else for(t=""+t,r=0;r0;--r)e.next()}(t,e)}function s(e,t){return t.x=e.x.slice(),t.i=e.i,t}function l(e,t){null==e&&(e=+new Date);var r=new o(e),i=t&&t.state,a=function(){return(r.next()>>>0)/4294967296};return a.double=function(){do{var e=((r.next()>>>11)+(r.next()>>>0)/4294967296)/(1<<21)}while(0===e);return e},a.int32=r.next,a.quick=a,i&&(i.x&&s(i,r),a.state=function(){return s(r,{})}),a}a&&a.exports?a.exports=l:r("07d6")&&r("3c35")?void 0===(i=function(){return l}.call(t,r,t,a))||(a.exports=i):this.xorshift7=l}(0,e,r("07d6"))}).call(this,r("62e4")(e))},cb0b:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-saas-btn.plat-saas-btn[data-v-2648e4a0]{padding:9px 15px}.rt-saas-btn.plat-saas-btn[data-v-2648e4a0] >span{display:flex;align-items:center}.rt-saas-btn.plat-saas-btn .btn-icon[data-v-2648e4a0]{margin-right:4px}.rt-saas-btn.plat-saas-btn .btn-icon svg[data-v-2648e4a0]{fill:#557ab4}.rt-saas-btn.plat-saas-btn .el-icon-loading[data-v-2648e4a0]{top:6px}.rt-saas-btn.plat-saas-btn:active svg[data-v-2648e4a0]{fill:#fff}.rt-saas-btn.plat-saas-btn:focus svg[data-v-2648e4a0]{fill:#557ab4}.rt-saas-btn.plat-saas-btn:hover svg[data-v-2648e4a0]{fill:#09f}",""]),e.exports=t},cb18:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".editFormSass[data-v-5fb86138]{overflow:visible}.editFormSass.plat-editor-wrapper[data-v-5fb86138]{padding-top:16px}.editFormSass[data-v-5fb86138] :not(font,.w-e-toolbar,.w-e-tooltip,.placeholder){font-family:inherit}.plat-saas-edit[data-v-5fb86138] .w-e-text table td,.plat-saas-edit[data-v-5fb86138] .w-e-text table th{padding:3px 5px;min-height:30px;height:30px}.plat-saas-edit[data-v-5fb86138] .w-e-text table td img,.plat-saas-edit[data-v-5fb86138] .w-e-text table th img{max-width:100%}.plat-saas-edit[data-v-5fb86138] .w-e-text-container p{font-size:14px!important}.plat-saas-edit[data-v-5fb86138] .w-e-text{font-size:14px}.plat-saas-edit.readonly[data-v-5fb86138]{cursor:not-allowed}.plat-saas-edit[data-v-5fb86138] ol,.plat-saas-edit[data-v-5fb86138] ul{list-style:revert}[data-v-5fb86138] .w-e-toolbar .w-e-droplist ul.w-e-list{overflow:auto;max-height:250px}[data-v-5fb86138] .w-e-toolbar .w-e-menu-tooltip{font-size:12px;padding:8px;background-color:rgba(0,0,0,.7)}",""]),e.exports=t},cc0c:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rc-section.plat-section[data-v-c59299d2]{padding:12px 12px 8px}.rc-section.plat-section .rt-form-wrapper[data-v-c59299d2]{padding:0 12px}.rc-section.plat-section .rc-section-header.section-header[data-v-c59299d2]{padding:0;padding-left:12px;height:40px;position:relative;border-radius:8px}.rc-section.plat-section .rc-section-header.section-header .section-header-content[data-v-c59299d2]{display:flex;align-items:center;pointer-events:none}.rc-section.plat-section .rc-section-header.section-header.open-collapse[data-v-c59299d2]{transition:background .2s linear}.rc-section.plat-section .rc-section-header.section-header.open-collapse[data-v-c59299d2]:hover{cursor:pointer;background:#f0f2f4}.rc-section.plat-section .rc-section-header.section-header .section-btns[data-v-c59299d2]{margin-left:auto;margin-right:32px}.rc-section.plat-section .rc-section-header.section-header .rc-section-icon[data-v-c59299d2]{cursor:pointer;font-size:18px;transition:all .15s linear;transform:rotate(-90deg);margin-right:4px}.rc-section.plat-section .rc-section-header.section-header .rc-section-icon.collapsed[data-v-c59299d2]{transform:rotate(0deg)}.rc-section.plat-section .rc-section-header.section-header .section-title[data-v-c59299d2]{margin-top:0}.rc-section.plat-section .section-body .sectionNoData[data-v-c59299d2]{position:relative;width:100%;text-align:center;font-size:14px;line-height:19px;color:#86909c;overflow-wrap:anywhere}.rc-section.plat-section .bottom-divider[data-v-c59299d2]{width:100%;margin-top:24px;border-bottom:1px dashed #d6dbe1}.rc-section.plat-section .icon-blue-line[data-v-c59299d2]{width:4px;height:16px;background-color:#0072e6;border-radius:2px;margin-right:8px}",""]),e.exports=t},cc28:function(e,t,r){"use strict";r("63f0")},cc4a:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".flex-radio .flex-radio-title[data-v-93ac0958]{font-size:13px;color:#4c5966;line-height:17px;padding:12px 0}.flex-radio .rtxpc-radio-group .rtxpc-radio[data-v-93ac0958]{margin-bottom:8px;height:18px}.flex-radio .rtxpc-radio-group .rtxpc-radio[data-v-93ac0958]:last-child{margin-right:0}",""]),e.exports=t},cc82:function(e,t,r){var i=r("ca13");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("f8b206f2",i,!0,{sourceMap:!1,shadowMode:!1})},cdcc:function(e,t,r){var i=r("f200");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("64ceeff4",i,!0,{sourceMap:!1,shadowMode:!1})},ce0c:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".textarea-translate-icon[data-v-4a690756]{position:absolute;top:-10px;right:0;width:100%;display:flex;justify-content:flex-end;align-items:flex-start;height:calc(100% + 8px)!important}.textarea-translate-icon .rt-button[data-v-4a690756]{z-index:2}[data-v-4a690756] .textarea-translate-icon+.rtxpc-textarea{z-index:1}",""]),e.exports=t},cebe:function(e,t){e.exports=__WEBPACK_EXTERNAL_MODULE_cebe__},cf2d:function(e,t,r){var i=r("6f1d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("f8356cb0",i,!0,{sourceMap:!1,shadowMode:!1})},cfa4:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog{height:auto}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body{padding-bottom:0;scrollbar-width:none}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body::-webkit-scrollbar{display:none}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .el-form .el-form-item.rt-form-item-wrapper .el-form-item__label{max-width:120px;padding-left:24px}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .el-table{margin-top:0}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .el-table .el-table__body-wrapper{height:unset}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .el-table .cell .rt-checkbox{display:flex}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .nocount .el-pagination__total{display:none}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-dialog__body .estimatecount:before{display:inline-block;content:"大约";font-size:13px;min-width:35.5px;height:28px;line-height:28px;vertical-align:top;box-sizing:border-box}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-form-item{display:flex;margin:10px;align-items:center}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-form-item .el-form-item__label{flex:1}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-form-item .el-form-item__content{flex:8}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-form-item .rt-picklist .rt-icon,.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .el-form-item .rt-search .rt-icon{right:10px}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .dialog-footer button{margin-left:12px}.rt-multilookup-dialog.plat-multilookup-dialog[data-v-39263546] .el-dialog .search-wrap .el-form-item__label{margin-right:8px}',""]),e.exports=t},d0d1:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".excelExport-flex-bottom[data-v-3b9500d2]{display:flex}.excelExport-flex-bottom-last[data-v-3b9500d2],.toolbar-icon[data-v-3b9500d2]{margin-top:8px}.toolbar-icon-text[data-v-3b9500d2]{font-size:12px;color:#4c5966;line-height:16px;margin:8px 0 -4px}.duplicate-config-form-item[data-v-3b9500d2]{width:185px;margin-right:8px}.duplicate-config-form-item[data-v-3b9500d2]:last-of-type{margin-right:0}.many-to-many-form-group[data-v-3b9500d2]{display:flex}.many-to-many-form-group[data-v-3b9500d2] .rtxpc-form-item{flex:1}.many-to-many-form-group[data-v-3b9500d2] .rtxpc-form-item+.rtxpc-form-item{margin-left:8px}",""]),e.exports=t},d0ed:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.plat-section-table[data-v-3f867f48] .rt-advance-table-group{padding-bottom:0}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item{margin-bottom:0}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item .rtxpc-checkbox{padding:0 0 12px}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item .rt-advance-table-item-content{background:transparent}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item .rt-advance-table-item-content.disabled-checked{padding:0 0 12px}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item:not(:last-child) .rt-advance-table-item-content.disabled-checked{padding-bottom:12px}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item:not(:last-child) .rt-advance-table-item-content.disabled-checked:after,.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item:not(:last-child) .rtxpc-checkbox:after{display:block;content:"";width:100%;border-bottom:1px solid #e8ebee;position:absolute;bottom:0;left:0}.plat-section-table[data-v-3f867f48] .rt-advance-table-group .rt-checkbox-group .rt-advance-table-item:not(:first-child) .rt-advance-table-item-content{margin-top:-1px}.plat-section-table[data-v-3f867f48] .advance-table-item-title{width:100%;height:40px;display:flex;align-items:center}.plat-section-table[data-v-3f867f48] .advance-table-item-title:before{display:block;content:"";width:4px;height:16px;background:#2563eb;border-radius:2px;margin-right:8px;flex-shrink:0}.plat-section-table[data-v-3f867f48] .advance-table-item-title .title-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:14px;line-height:19px}.plat-section-table[data-v-3f867f48] .rt-advance-table-item-content{position:relative;page-break-inside:avoid}.plat-section-table[data-v-3f867f48] .hiddenName .rt-advance-table-item-content .el-checkbox .el-checkbox__input{display:none}.plat-section-table .advance-details[data-v-3f867f48]{margin-left:8px;display:flex}.plat-section-table .advance-details[data-v-3f867f48]:not(:hover){color:#788796}.plat-section-table .rt-saas-nodata[data-v-3f867f48]{padding-bottom:16px}.plat-section-statusline[data-v-3f867f48] .rt-stateline-item__head{min-height:12px}.flat-list-descriptions[data-v-3f867f48] .rtxpc-descriptions-item__content{white-space:pre-wrap;word-break:break-word}.flat-list-descriptions[data-v-3f867f48] .el-descriptions__header{margin-bottom:0}.flat-list-descriptions[data-v-3f867f48] .el-descriptions__title{width:100%}.flat-list-descriptions[data-v-3f867f48] :not(.is-bordered) .el-descriptions-item__cell{padding:0 12px 8px}.flat-list-descriptions[data-v-3f867f48] .el-descriptions__table tbody:last-child .el-descriptions-item__cell{padding-bottom:0}.flat-list-descriptions[data-v-3f867f48] .rtxpc-descriptions-item__container{font-size:13px;line-height:17px;align-items:unset}',""]),e.exports=t},d127:function(e,t,r){var i=r("f5d3");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("e47cba9a",i,!0,{sourceMap:!1,shadowMode:!1})},d133:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("6f75"),n=r("0711");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends n.a{constructor(e){super(e),o(this,"VueTag",a.a.partylist)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props.referencedEntityName?this.props.referencedEntityName:"account";return e.addProp("bindEntity",r),e.addProp("defaultViewsRelated",this.props.DefaultViewsRelated),e}}o(s,"$bindNodeType",i.b.PartyList)},d1a4:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27]{min-width:800px;border:1px solid #d7dadf;margin:24px;padding:0;border-radius:4px;overflow:hidden}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .basic-col{border-right:1px solid #d7dadf;padding-right:0!important}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .choiced-feild-list-title-col{padding-left:0!important}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list{height:calc(80vh - 220px);overflow-x:hidden;overflow-y:auto}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.basic .el-tree-node__label{max-width:260px;height:35px;overflow:hidden;line-height:35px;color:#0b0c0e;text-overflow:ellipsis;white-space:nowrap}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.basic .el-tree-node__content{height:35px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .attribute-font{display:inline-block;height:35px;overflow:hidden;line-height:35px;color:#0b0c0e;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree .is-leaf{color:unset}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree .el-tree-node__expand-icon{margin-left:16px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree>.el-tree-node .el-tree-node__content{height:35px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree>.el-tree-node>.el-tree-node__children .el-tree-node__expand-icon,.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree>.el-tree-node>.el-tree-node__content .el-checkbox__input{display:none}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list.related .el-tree>.el-tree-node>.el-tree-node__children .el-tree-node__content .el-checkbox{margin-left:16px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list::-webkit-scrollbar{display:none}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list .el-tree-node__content{width:100%}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list .el-tree-node__content .attribute-layout{width:calc(100% - 48px)}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list .el-tree-node__content .rt-tree-node,.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list .el-tree-node__content .rt-tree-node .rt-tree-node-left{width:100%}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .field-choice-list .el-tree-node__content .rt-tree-node .rt-tree-node-left span{width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow{height:calc(80vh - 220px);overflow-x:hidden;overflow-y:auto}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow::-webkit-scrollbar{display:none}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .el-tree-node__content{position:relative;min-height:35px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node{flex:1;width:calc(100% - 54px)}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap{display:flex;align-items:center;justify-content:space-between}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left{display:flex;align-items:center;width:calc(100% - 80px)}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .choice-list-title{width:auto;height:35px;overflow:hidden;line-height:35px;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .currentSelect{position:absolute;left:4px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .el-form-item{margin-bottom:0;margin-left:-30px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .re-name-input input{height:28px;padding:0;padding-left:8px;font-size:13px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .rt-icon{margin-right:8px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-left .rt-tag{margin-left:16px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-right{display:flex;align-items:center;margin-right:24px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .user-tree-box-shadow .field-custom-tree-node .basicIconWrap .field-tree-node-right .edit{margin-right:18px}.rt-section.plat-section.user-custom-field-selection[data-v-65cc0d27] .el-form-item__error{display:none}.rt-section.plat-section.user-custom-field-selection .choiced-feild-list-title[data-v-65cc0d27]{height:40px;font-size:14px;line-height:40px;color:#0b0c0e;padding-left:16px}",""]),e.exports=t},d226:function(e,t,r){var i=r("5ce7");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("60fb069d",i,!0,{sourceMap:!1,shadowMode:!1})},d240:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".address-parse.plat-address-parse .parseInput .rt-address-parse-label[data-v-3e18da92]{color:#2563eb}",""]),e.exports=t},d245:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".apaas-filter-group-select .el-scrollbar__view.el-select-dropdown__list{display:flex}",""]),e.exports=t},d25d:function(e,t,r){"use strict";r("7832")},d268:function(e,t,r){var i=r("193a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("b9c4f9c0",i,!0,{sourceMap:!1,shadowMode:!1})},d2f7:function(e,t,r){var i=r("d240");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("065e71c8",i,!0,{sourceMap:!1,shadowMode:!1})},d402:function(e,t,r){var i=r("c87d");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("402906c2",i,!0,{sourceMap:!1,shadowMode:!1})},d405:function(e,t,r){"use strict";r("7f58")},d50e:function(e,t,r){"use strict";r("718c")},d513:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".dataListItem[data-v-6faacdd2]{margin-bottom:12px;border-radius:8px}.dataListItem[data-v-6faacdd2]:last-child{margin-bottom:0}.dataListItem .card-col[data-v-6faacdd2]{min-height:68px}.dataListItem .plat-card-header[data-v-6faacdd2]{min-height:40px;border-top-left-radius:8px;border-top-right-radius:8px;padding:0 16px;display:flex;align-items:center;background:#fff;cursor:default}.dataListItem .plat-card-header .plat-card-title[data-v-6faacdd2]{flex-grow:1}.dataListItem .plat-card-header .plat-card-title .title-wrap[data-v-6faacdd2]{display:flex;align-items:center}.dataListItem .plat-card-header .plat-card-title .title-wrap .tooltip-text-btn[data-v-6faacdd2]{display:flex}.dataListItem .plat-card-header .plat-card-title .title-wrap .plat-card-header-text[data-v-6faacdd2]{line-height:16px;font-size:14px;word-break:break-word;font-weight:700;display:inline-block;margin-right:8px;padding:12px 0}.dataListItem .plat-card-header .plat-card-title .title-wrap .rt-button[data-v-6faacdd2]{color:#788796;height:unset}.dataListItem .plat-card-header .plat-card-title .title-wrap .rt-button .rt-button-text[data-v-6faacdd2]{line-height:unset}.dataListItem .plat-card-header .plat-card-title .title-wrap .rt-button[data-v-6faacdd2]:hover{color:#5182ef}.dataListItem .plat-card-header .plat-card-inline-btn[data-v-6faacdd2]{margin-left:16px}",""]),e.exports=t},d52d:function(e,t,r){var i=r("b1bd");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("25dfbc0e",i,!0,{sourceMap:!1,shadowMode:!1})},d55d:function(e,t,r){"use strict";r("1746")},d5ee:function(e,t,r){"use strict";r("c3dc")},d683:function(e,t,r){"use strict";r("baf8")},d690:function(e,t,r){var i=r("9ebd");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("64eb0662",i,!0,{sourceMap:!1,shadowMode:!1})},d747:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var i=r("06c5");const a=r("78d5");class n{static addControlCreator(e,t){this.controlCreators&&(this.controlCreators[e]=t)}static initRenderers(){this.controlCreators||(this.controlCreators={},a.keys().forEach(e=>{const t=a(e);t&&t.default&&this.addControlCreator(t.default.$bindNodeType,e=>new t.default(e))}))}static translateToRuntimeControl(e){this.initRenderers();const t=e.$nodetype;this.controlCreators;const r=this.controlCreators[t];return r?r(e):new i.default(e)}}var o,s,l;o=n,l=null,(s=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(s="controlCreators"))in o?Object.defineProperty(o,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[s]=l},d79f:function(e,t,r){var i=r("987e");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0747416e",i,!0,{sourceMap:!1,shadowMode:!1})},d7f2:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("e3bf");class l extends s.a{constructor(e){super(e)}createVNode(e,t){}}i=l,a="$bindNodeType",n=o.b.gridorderfield,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},d7f5:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"fields",[]),o(this,"VueTag",n.a.Cascader),o(this,"validateTrigger","change")}collectDefaultValues(e){const t=this.props.datafieldname;e.customdisplayfields.push(t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent;e.addProp("requestUrl",r.requestUrl),r.logicalName||(e.tag="div",e.vtext="级联组件未绑定字段,请联系管理员",e.addClass("date-range-deploy")),e.addProp("entityAttributes",r.logicalName);const a=e.props.entityAttributes;a&&(this.fields=a.split(",")||[],e.addProp("attributes",this.fields)),e.addProp("required",r.required),e.addProp("cascaderId",this.id),e.addProp("disabled",r.disabled);const n=this.getCurrentInputField();e.addProp("valueKey",n),e.addProp("formitemkey",n),e.ref=n;const o=[],s=[];i.editForm&&this.fields&&this.fields.forEach(e=>{i.editForm[e]&&(o.push(i.editForm[e].id),s.push(i.editForm[e].name))}),e.addProp("value",o),e.addProp("nameList",s),e.addProp("dataLoadType",r.dataLoadType);const l=!!o.length;if(i.editForm[n]=l,e.on.input=(e=[],t,r)=>{this.emitDataChange(e,i,r);for(let a=0;a{i.customValidata(e,n,t)}),e.props.requestUrl){const t=i.getFunctionByExpression(r.requestUrl).call(i);t&&t.length>0?e.addProp("requestApiUrl",t):e.setProp("requestApiUrl","")}else{const t="api/vform/RetrieveCascaderData?entityLogicalName="+i.objectTypeName+"&attributeStr="+a;e.addProp("requestApiUrl",t)}}extendRules(e,t){const r=t.targetComponent;e.validator=(e,t,i)=>{const a=[];for(const n of this.fields)a.push(!!r.editForm[n]);-1!==a.indexOf(!0)?i():i(new Error)}}getCurrentInputField(){return this.props.logicalName}}o(s,"$bindNodeType",i.b.Cascader)},d951:function(e,t,r){var i=r("9fc9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("40af091f",i,!0,{sourceMap:!1,shadowMode:!1})},da2d:function(e,t,r){"use strict";var i=r("9ab4"),a=r("cebe"),n=r.n(a),o=r("1b40");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let l=class extends o.f{constructor(...e){super(...e),s(this,"objectTypeName",void 0),s(this,"entityName",void 0),s(this,"objectId",void 0),s(this,"filename",void 0),s(this,"title",void 0),s(this,"isOverwrite",void 0),s(this,"isPreview",void 0),s(this,"isLimitCount",void 0),s(this,"limitMinCount",void 0),s(this,"limitCount",void 0),s(this,"notekey",void 0),s(this,"currentUrlIndex",void 0),s(this,"buttonLoading",!1),s(this,"uploadLoading",!1),s(this,"uploadFailed",!1),s(this,"uploaded",!1),s(this,"fileList",[]),s(this,"uploadFiles",[]),s(this,"fileData",{ModuleType:"",FileId:"",FileName:"",ObjectId:"",ObjectTypeName:"",IsOverwrite:"",NodeText:""}),s(this,"imgVisible",!1),s(this,"previewUrl",[]),s(this,"dialogVisible",!1),s(this,"finishUploadCount",0),s(this,"errorData",[]),s(this,"hideRemoveConfirm",!1),s(this,"showUpload",!0),s(this,"tableData",[]),s(this,"seen",!1),s(this,"current",-1),s(this,"canUploadCount",0),s(this,"audioPreviewUrl",""),s(this,"audioVisible",!1),s(this,"signatures",[])}get filenameValue(){return this.filename||this.$_t("common.attachmenttitle","附件")}get titleValue(){return this.title||this.$_t("common.attachmenttitle","附件")}get computedTotal(){return 0}mounted(){this.fileData.FileName=this.filenameValue,this.fileData.IsOverwrite=this.isOverwrite?"1":"0",this.fileData.NodeText=this.notekey||""}async batchUpload(){var e;if(0==this.fileList.length||!this.objectId&&!this.fileList.some(e=>!e.loadStatus))return void rt.showErrorToast(this.$_t("attachmentByOss.nofileselected","至少选中一个文件再上传!"));this.buttonLoading=!0,this.uploadLoading=!0,this.uploadFailed=!1;let t=[];if(this.isOverwrite&&!this.objectId){const e=this.fileList[this.fileList.length-1];t=[{fileName:this.getFileName(e.fileParam.file.name),contentLength:e.fileParam.file.size,contentType:e.fileParam.file.type}]}else t=this.fileList.filter(e=>!e.loadStatus).map(e=>({fileName:this.getFileName(e.fileParam.file.name),contentLength:e.fileParam.file.size,contentType:e.fileParam.file.type}));if(0==t.length)return rt.showErrorToast(this.$_t("attachmentByOss.nofilesneedupload","没有需要上传的文件!")),this.buttonLoading=!1,void(this.uploadLoading=!1);const r={ObjectTypeName:null!==(e=this.objectTypeName)&&void 0!==e?e:this.entityName,ObjectId:this.objectId,FileNameList:t,IsOverWrite:this.isOverwrite,NodeText:this.notekey};try{const e=await rt.post("api/attachment/GetUploadUrls",r)||[];if(!this.objectId&&this.isOverwrite&&(this.signatures=[]),this.signatures=this.signatures.concat(e),!(e.length>0))return this.fileList.forEach(e=>{e.fileParam.onError()}),rt.showErrorToast(this.$_t("attachmentByOss.geturlfailed","获取签名列表失败")),this.buttonLoading=!1,void(this.uploadLoading=!1);{let t="";if(e.forEach(e=>{e.ErrorMsg&&(t+=e.ErrorMsg)}),t&&t.length>0)return rt.showErrorToast(t),this.buttonLoading=!1,void(this.uploadLoading=!1);await this.UploadAttachment(0,e)}}catch(e){this.buttonLoading=!1,this.uploadLoading=!1,rt.showErrorToast(e.message||e)}}getNotesData(){return{signatures:this.signatures,fileList:this.fileList,fileData:this.fileData}}saveMasterFile(e){for(const r in e)this[r]=e[r];const t=[];return this.signatures.forEach((e,r)=>{"local"===e.OssProvider?t.push(this.upload(e,this.fileList[r].fileParam,r)):t.push(this.SaveToAnnotation(e,this.fileList[r].fileParam))}),this.signatures=[],new Promise(async(e,r)=>{if(t.length>0){const r=await Promise.allSettled(t);return await this.getAttachment(!1),this.dispatch(),this.signatures=[],void e(r)}e([])}).finally(()=>{this.handleClosed()})}async upload(e,t,r){return new Promise(async(i,a)=>{const n=new FormData;n.append("ModuleType",this.objectTypeName||""),n.append("FileId",""),n.append("ObjectId",this.objectId||""),n.append("ObjectTypeName",this.objectTypeName||""),n.append("IsOverwrite",this.fileData.IsOverwrite),n.append("NodeText",this.fileData.NodeText),n.append("file",t.file),n.append("FileName",this.getFileName(t.file.name));try{const a=await rt.post(e.requestUrl,n);t.file.loadStatus=!0,t.onSuccess(a),i({signature:e,index:r})}catch(a){this.saveErrData(t.file.name,a.message||a),t.onError(),this.buttonLoading=!1,this.uploadLoading=!1,i({signature:e,index:r})}})}async UploadAttachment(e,t){if(ethis.getFileName(e.fileParam.file.name)==i.fileName&&!e.loadStatus);if(!a)return;const o=a.fileParam;if("local"===i.OssProvider)this.objectId&&await this.upload(i,o,e),this.UploadAttachment(e,t);else{const a=n.a.create();if("azureblob"==i.OssProvider)a.defaults.headers={"x-ms-version":i.x_ms_version,"x-ms-date":i.x_ms_date,"x-ms-client-request-id":i.x_ms_client_request_id,"x-ms-blob-type":i.x_ms_blob_type,Authorization:i.Authorization,"Content-Type":i.Content_Type};else if("huaweiobs"==i.OssProvider)a.defaults.headers={Host:i.Host,"x-obs-date":i.x_obs_date,"Content-Type":i.Content_Type,"Content-Length":i.Content_Length,Authorization:i.Authorization};else if("awss3"==i.OssProvider){var r;const e={Host:i.Host,"x-amz-date":i.x_amz_date,"Content-Type":i.Content_Type,"Content-Length":i.Content_Length,Authorization:i.Authorization},t=null==i||null===(r=i.Headers)||void 0===r?void 0:r.find(e=>"x-amz-content-sha256"==e.name);null!=t&&t.value&&(e["x-amz-content-sha256"]=t.value),a.defaults.headers=e}else{a.defaults.headers={Host:i.Host,"Content-Length":i.Content_Length};const e=i.Headers;e&&e.forEach(e=>{a.defaults.headers[e.name]=e.value})}if(!a)return rt.showErrorToast(this.$_t("attachmentByOss.createinstancefailed","创建oss请求失败!")),this.buttonLoading=!1,void(this.uploadLoading=!1);try{await a.put(i.requestUrl,o.file);try{this.objectId&&await this.SaveToAnnotation(i,o),await this.UploadAttachment(e,t)}catch(r){this.buttonLoading=!1,this.uploadLoading=!1,o.onError(),this.UploadAttachment(e,t)}}catch(r){this.buttonLoading=!1,this.uploadLoading=!1,this.saveErrData(o.file.name,r.message||r),o.onError(),this.UploadAttachment(e,t)}}}else this.uploadLoading=!1,this.buttonLoading=!1,this.uploadFailed||(rt.showSuccessToast(this.$_t("common.uploadSuccess","上传成功")),!this.objectId&&this.fileList.length&&this.fileList.forEach(e=>{e.loadStatus=!0}),this.handleClose(!0))}async SaveToAnnotation(e,t){var r;const i={ObjectTypeName:null!==(r=this.objectTypeName)&&void 0!==r?r:this.entityName,ObjectId:this.objectId,FileName:e.fileName,FilePath:e.filePath,FileSize:t.file.size,NodeText:this.fileData.NodeText,IsOverWrite:this.fileData.IsOverwrite};try{const e=await rt.post("api/attachment/UploadAttachmentByOSS",i);return e&&t.onSuccess(e),Promise.resolve(e)}catch(e){return this.buttonLoading=!1,this.uploadLoading=!1,this.saveErrData(t.file.name,e),t.onError(),Promise.reject(e)}}async downloadFile(e){if(this.checkIsPreview()||!e.id)return void rt.showErrorToast(this.$_t("File_missing","文件已丢失"));const t=await this.getDownloadUrl(e.id);rt.downloadByLink(t)}getDownloadUrl(e){return rt.get(`api/attachment/GetPreviewAttachmentUrl?attachmentId=${e}&isDownload=true`)}previewFile(e,t,r){if(t.name){const e=t.name.lastIndexOf(".");switch((t.name.substring(e+1)||"").toLowerCase()){case"bmp":case"gif":case"jpg":case"jpeg":case"pic":case"png":case"tif":this.showImage(t.url,r);break;case"mov":case"mp4":this.openPlayer(t.url);break;case"avi":case"mpg":case"swf":this.$message({showClose:!0,message:this.$_t("platform.attachmentOnlysupport","仅支持mp4和mov播放"),type:"error"});break;case"wav":case"mp3":this.previewAudio(t.url);break;case"pdf":if(!this.objectId)return void rt.showErrorToast(this.$_t("attachmentByOss.PDFNotSupportPreview","PDF在新增模式不支持预览"));this.showViewPdfOnLine(t);break;case"ppt":case"pptx":case"doc":case"docx":case"xlsx":case"xls":case"txt":if(!this.objectId)return void rt.showErrorToast(this.$_t("attachmentByOss.WordNotSupportPreview","文档在新增模式不支持预览"));this.showView(t);break;default:rt.showErrorToast("当前格式不支持预览")}}}showImage(e,t){const r=t.findIndex(t=>t===e);this.currentUrlIndex=r,this.imgVisible=!0,this.previewUrl=t||[]}closeImage(){this.imgVisible=!1}openPlayer(e){this.$refs.videoPlayer&&this.$refs.videoPlayer.showPlayer(e)}async showViewPdfOnLine(e){try{rt.showLoadingToast();const t=await rt.post("api/attachment/PreviewOnline?attachmentId="+(null==e?void 0:e.id));if(t)return void window.open(t,"_blank");this.showViewPdf((null==e?void 0:e.videoOssUrl)||(null==e?void 0:e.ossUrl))}catch(e){}finally{rt.hideLoadingToast()}}showViewPdf(e){this.$refs.previewPdf&&this.$refs.previewPdf.show(e)}previewAudio(e){e&&(this.audioPreviewUrl=e,this.audioVisible=!0)}checkPathIsUrl(e){return RegExp(/http/).exec(e)}async showView(e){try{rt.showLoadingToast();const t=await rt.post("api/attachment/PreviewOnline?attachmentId="+(null==e?void 0:e.id));if(t)return void window.open(t,"_blank");if(e.previewUrl&&e.previewUrl.length>0)this.showViewPdf(e.previewUrl);else{rt.showLoadingToast(this.$_t("attachment.conversionOffice2Pdf","正在转Pdf..."));const t=await this.conversionOffice2Pdf(e.id);if(rt.hideLoadingToast(),t){let r=t;t.startWith("http")||(r=rt.getBaseUrl()+t);const i=this.tableData.filter(t=>t.id==e.id);1==i.length&&(i[0].previewUrl=r),this.showViewPdf(r)}}}catch(e){}finally{rt.hideLoadingToast()}}async conversionOffice2Pdf(e){if(!e)return;const t="api/attachment/ConversionOffice2Pdf?objectId="+e;try{return await rt.post(t)}catch(e){rt.showErrorToast(e)}}checkIsPreview(){return!!this.isPreview&&(rt.showErrorToast(this.$_t("platform.imagefield_not_button","当前预览模式,不支持按钮操作 .")),!0)}customRequest(e){this.fileList.filter(t=>t.fileParam.file.name==e.file.name).length>0&&!this.isOverwrite||(this.$nextTick(()=>{this.fileList.push({fileParam:e,loadStatus:!1})}),this.$refs.uploadVersion&&(this.uploadFiles=this.$refs.uploadVersion.uploadFiles))}checkRepeat(e,t){if("ready"!=e.status)return;const r=t.filter(t=>t.name==e.name);if(r.length>1){rt.showErrorToast(this.$_t("platform.attachmentDuplicateFile","重复的文件:")+e.name);const i=r[r.length-1],a=t.lastIndexOf(i);t.splice(a,1)}}getAttachment(e=!0){}dispatch(){}async handleClose(e=!1){!0===e?(await this.getAttachment(),this.dispatch(),this.objectId&&this.reset()):(this.reset(!0),await this.getAttachment(),this.dispatch()),this.dialogVisible=!1}handleClosed(){this.objectId?(this.fileList=[],this.finishUploadCount=0):this.fileList=this.fileList.filter(e=>e.loadStatus),this.errorData=[],this.uploadFailed=!1,this.showUpload=!0}closeDialog(){this.$emit("closeDialog")}handleError(e,t,r){}handleSuccess(e,t,r){const i=`${this.objectTypeName}-note-${this.notekey}-afterupload`;return this.$bus.$emit(i,t,r),!0}async reset(e=!1,t=!1){if(this.uploadFiles.length>0&&t){const e=this.$_t("resetting_confirmation","重置后将会清空已选择将要上传的文件,是否确定继续?");await this.$confirm(e)}this.errorData=[],this.hideRemoveConfirm=!1,this.$refs.uploadVersion&&this.$refs.uploadVersion.clearFiles(),this.uploaded=!1,this.objectId?(this.fileList=[],this.signatures=[]):this.objectId||(this.fileList=this.fileList.filter(e=>e.loadStatus)),this.uploadFiles=[]}saveErrData(e,t){this.uploadFailed=!0,this.showUpload=!1,this.errorData.find(t=>t.fileName===e)||this.errorData.push({fileName:e,errMsg:t})}checkSameName(e){if(!this.tableData.length||!e)return!1;const t=e;for(const r in this.tableData)if(this.tableData[r].name==t)return!0;return!1}enter(e){this.seen=!0,this.current=e}leave(){this.seen=!1,this.current=-1}checkMinCount(){let e=0;return e=this.objectId?this.tableData.length+this.fileList.length:this.fileList.length,!(this.limitMinCount&&e=this.limitCount)||(rt.showErrorToast(this.$_t("attachments.maximum","附件最大上传数量为{0}个,无法继续上传!",[this.limitCount])),!1)}uploadexceed(){if(this.canUploadCount>=0){if(this.isOverwrite)return void rt.showErrorToast(this.$_t("platform.attachmentCoverageModePrompt","覆盖模式最多只能上传一个附件"));rt.showErrorToast(this.$_t("platform.attachmentNumberOfAttachments","附件可上传数量为")+this.canUploadCount+this.$_t("platform.attachmentA","个!"))}}getFileName(e){return this.filename&&this.isOverwrite?this.filename+e.substring(e.lastIndexOf("."),e.length):e.replace(/^\s+|\s+$/g,"")}};Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"objectTypeName",void 0),Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"entityName",void 0),Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"objectId",void 0),Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"filename",void 0),Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"title",void 0),Object(i.__decorate)([Object(o.d)({default:!1})],l.prototype,"isOverwrite",void 0),Object(i.__decorate)([Object(o.d)({default:!1})],l.prototype,"isPreview",void 0),Object(i.__decorate)([Object(o.d)({default:!1})],l.prototype,"isLimitCount",void 0),Object(i.__decorate)([Object(o.d)({default:0})],l.prototype,"limitMinCount",void 0),Object(i.__decorate)([Object(o.d)({default:1})],l.prototype,"limitCount",void 0),Object(i.__decorate)([Object(o.d)({default:""})],l.prototype,"notekey",void 0),l=Object(i.__decorate)([Object(o.a)({name:"AttachmentUploadMixin"})],l),t.a=l},da31:function(e,t,r){"use strict";r("874f")},da88:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-datetime-between .is-active+.rt-input-shadow[data-v-166c3814]{background:#2563eb;box-shadow:0 1px 3px 0 #2563eb}",""]),e.exports=t},db43:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag",n.a.AddressLocation)}buildVNode(e,t){super.buildVNode(e,t);const r=this.props;r.datafield_province&&e.addProp("datafield_province",r.datafield_province),r.datafield_county&&e.addProp("datafield_county",r.datafield_county),r.datafield_city&&e.addProp("datafield_city",r.datafield_city),r.datafield_address&&e.addProp("datafield_address",r.datafield_address);const i=[r.datafield_city,r.datafield_county,r.datafield_province,r.datafield_address],a=t.targetComponent;e.addEventHandler("input",(e,t,r)=>{this.emitDataChange(e,a,r),a.updateMultipleFields(i,e)})}}o(s,"$bindNodeType",i.b.AddressLocation)},db5d:function(e,t,r){"use strict";r("6996")},db5f:function(e,t,r){"use strict";r("004b")},db69:function(e,t,r){var i=r("43ad");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7cf26c18",i,!0,{sourceMap:!1,shadowMode:!1})},dbe3:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","viewsecondfield")}createVNode(e,t){}}n(o,"$bindNodeType",i.b.viewsecondfield)},dcdd:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","viewcontentfield")}createVNode(e,t){}}n(o,"$bindNodeType",i.b.viewcontentfield)},dcfe:function(e,t,r){"use strict";r("b94b")},dd32:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.DetailHeader)}createVNode(e,t){var r;const n=this.props,s=t.targetComponent;let l=this.GetDisplayTitle(t);if(n.langkey&&n.langkey.length&&(l=s.$_t(n.langkey,l)),s.isDialogMode){s.$emit("updateTitle",l);const r=this.children.find(e=>e.$nodetype==i.b.toolbar&&!this.calcHidden(e,t));return void(r&&(r.props.isDialogMode=!0,r.extendParentInfo(this.parentInfo),r.createVNode(e,t)))}const d=new a.e(this.VueTag);if(this.appendNode(e,d,t),d.nodeType=this.$nodetype,this.buildVNode(d,t),d.addProp("showBack",n.showback&&0==s.formType&&!s.actualSourceFlowId),s.subGridQuery&&d.addClass("vform-header"),d.addClass("vform-header_"+this.id+s.objectId),!s.paramHideHeaderIcon){const e=d.addChildByTag(o.a.HeaderIcon);e.data.slot="icon",e.nodeType=i.b.HeaderIcon,e.addProp("entity",t.rootEntityName),e.addProp("iconType","iconFont"),this.getHeaderIconImgsrc(e,t),e.addProp("bgColor","primary")}const c=d.addChildByTag(o.a.HeaderTitle);c.nodeType=i.b.HeaderTitle,n.subtitlefield&&(c.addProp("subTitleField",n.subtitlefield),null!=n.subTitleFieldType&&c.addProp("subTitleFieldType",n.subTitleFieldType)),c.addProp("title",l),c.addProp("langkey",n.langkey),c.addProp("stickOnTitle",!0),this.deepFind(i.b.tag).forEach(e=>{e.props.round=!0,this.calcHidden(e,t)||e.props.datafieldname&&s.getAttributeDisplayText(e.props.datafieldname,e.props.attributeType,e.props.picklistOptions)&&e.createVNode(c,t)});const u=this.children.find(e=>e.$nodetype==i.b.toolbar&&!this.calcHidden(e,t));null!=u&&(u.extendParentInfo(this.parentInfo),u.createVNode(d,t,"btn"));const p=c.props.subTitleField;if(p)if(s.isQyWxTenant){const e=s.getAttributeDisplayText(p,c.props.subTitleFieldType);if("new_name"==p&&"new_srv_worker"==s.objectTypeName||"fullname"==p&&"systemuser"==s.objectTypeName||"name"==p&&"businessunit"==s.objectTypeName){const t=new a.e("rt-ww-open-data");t.addClass("wxOpenDataTag"),t.addProp("type","new_srv_worker"==s.objectTypeName||"systemuser"==s.objectTypeName?"userName":"departmentName"),t.addProp("openid",e),t.addProp("corpid",s.editForm.new_wx_chain_idname),c.children.unshift(t)}else{const e=s.getAttributeDisplayText(p,c.props.subTitleFieldType);c.addProp("subTitle",e)}}else{const e=s.getAttributeDisplayText(p,c.props.subTitleFieldType);e&&e instanceof Object==1&&e.hasOwnProperty("reference")?c.addProp("subTitle",e.text):c.addProp("subTitle",e)}const h=null===(r=this.children)||void 0===r?void 0:r.filter(e=>e.$nodetype==i.b.customerComponent);null==h||h.forEach(e=>{this.calcHidden(e,t)||e.createVNode(d,t)})}collectStickyDic(e){this.parent&&this.parent.$nodetype===i.b.Form&&(e.thisVue.__collectStickyDic[i.b.formheader+"_id"]=this.id,(this.props.hiddenExpression||this.props.availableOnPhone==i.a.MOBILE)&&(e.thisVue.__collectStickyDic[i.b.NewTabs]=!1,e.thisVue.__collectStickyDic[i.b.Tabs]=!1,e.thisVue.__collectStickyDic[i.b.Steps]=!1))}GetDisplayTitle(e){const t=this.props;return t.label&&"头部"!=t.label?t.label:e.rootEntityName}createFormExchageNode(e,t){const r=t.targetComponent;if(1==r.formStatus&&r.parameters.IsSupportFormSwitch&&"true"==r.parameters.IsSupportFormSwitch.toLowerCase()){const t=new a.e("form-exchange");t.slot="extra",t.addProp("objectId",r.objectId),e.addChild(t)}}}s(l,"$bindNodeType",i.b.formheader)},dd71:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.FlowApprovalListPublic)}createVNode(e,t,r){const i=new a.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.addProp("dataId",r.objectId),e.addProp("logicalname",r.objectTypeName),e.addProp("editForm",r.editForm),e.addProp("checkIsJApproval",r._checkIsJApproval),e.addProp("inVForm",!0)}}s(l,"$bindNodeType",i.b.MobileApprovalProgress)},ddd7:function(e,t,r){"use strict";r("eb72")},de95:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("ef51"),s=r("0711");class l extends s.a{constructor(e){super(e)}collectDefaultValues(e){const t=this.props.datafieldname;e.customdisplayfields.push(t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props;e.addProp("disabled",r.disabled),e.addProp("datafieldname",r.datafieldname),e.addProp("calculateExpression",r.calculateExpression),e.addProp("logicalName",r.logicalName),e.addProp("fontSize",r.fontSize),e.addProp("fontWeight",r.fontWeight),e.addProp("isCustomDisplayField",!0),e.field=r.logicalName}calcReadonly(e,t){return!0}}i=l,a="$bindNodeType",n=o.b.CustomDisplayField,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},deb3:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".rt-picklist.plat-picklist-attributes[data-v-2fa078ce] .el-input.is-focus .rt-input-shadow{background:#1890ff;box-shadow:0 1px 3px 0 #1890ff;height:1px}",""]),e.exports=t},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,i=e.length-1;i>=0;i--){var a=e[i];"."===a?e.splice(i,1):".."===a?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i=-1&&!a;n--){var o=n>=0?arguments[n]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,a="/"===o.charAt(0))}return(a?"/":"")+(t=r(i(t.split("/"),(function(e){return!!e})),!a).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===a(e,-1);return(e=r(i(e.split("/"),(function(e){return!!e})),!n).join("/"))||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function i(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var a=i(e.split("/")),n=i(r.split("/")),o=Math.min(a.length,n.length),s=o,l=0;l=1;--n)if(47===(t=e.charCodeAt(n))){if(!a){i=n;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,i=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,i=-1,a=!0,n=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===i&&(a=!1,i=o+1),46===s?-1===t?t=o:1!==n&&(n=1):-1!==t&&(n=-1);else if(!a){r=o+1;break}}return-1===t||-1===i||0===n||1===n&&t===i-1&&t===r+1?"":e.slice(t,i)};var a="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},dff8:function(e,t,r){"use strict";r("4c46")},e004:function(e,t,r){"use strict";r("d2f7")},e00c:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".div-401[data-v-b0af7416]{width:100%;height:100%;text-align:center;vertical-align:middle}.div-401 button[data-v-b0af7416]{width:142px;height:24px;line-height:8px;color:#888;vertical-align:middle;border:1px solid #888!important;border-radius:20px}.button-style[data-v-b0af7416]:hover{color:#fff!important;background:#09f;border:1px solid #09f!important}.div-401 button>span[data-v-b0af7416]{font-size:14px;color:#888}.img-box[data-v-b0af7416]{padding-top:60px}.img-box p[data-v-b0af7416]{margin-bottom:14px;font-size:32px;color:#555}.img-box img[data-v-b0af7416]{margin-bottom:30px}.font-box[data-v-b0af7416]{margin-bottom:40px;div{margin-top:12px;font-size:16px;color:#888}}.font-box span[data-v-b0af7416]{font-size:24px;color:#888!important}",""]),e.exports=t},e027:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".upload-subapp.plat-subapp input[data-v-c915233a]{width:100%;height:300px;padding:0;font-size:12px;color:#6388c2;text-align:center;cursor:pointer;border:none;outline-color:#40a9ff;box-shadow:0 2px 6px 4px rgba(165,172,197,.2)}",""]),e.exports=t},e0ab:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i,a,n,o=r("0711"),s=r("ef51");class l extends o.a{constructor(e){super(e)}}i=l,a="$bindNodeType",n=s.b.Input,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},e0ad:function(e,t,r){var i=r("513a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("f65011ea",i,!0,{sourceMap:!1,shadowMode:!1})},e166:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".is-error .plookup-select input{border-color:#f53f3f!important;outline:none}",""]),e.exports=t},e1c7:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{get stepType(){return this.props.stepType}set stepType(e){this.props&&(this.props.stepType=e)}constructor(e){super(e)}createVNode(e,t,r){const i=new s.e("plat-steps");i.addClass("apaas-card"),i.addProp("formHeaderId",t.targetComponent.__collectStickyDic[o.b.formheader+"_id"]),i.addProp("currentId",this.id),i.addProp("newTabsId",t.targetComponent.__collectStickyDic[o.b.NewTabs+"_id"]),i.nodeType=this.$nodetype,this.buildStepsVNode(i,t),this.appendNode(e,i,t)}buildStepsVNode(e,t){this.buildVNode(e,t);const r=this.props,i=t.targetComponent;if(!r.options&&!r.optionsExpression){e.tag="rc-card",e.children=[];const t=new s.e("rc-node"),a=new s.e("rc-default-image");e.children.push(t),e.children.push(a),t.addProp("title",i.$_t("Step.bar","步骤条")),a.addProp("text",r.hiddendefaultdiagram)}e.addProp("stepType",this.stepType),e.addProp("datafieldname",r.datafieldname),e.addProp("optionValue",r.optionValue),e.addProp("optionsExpression",r.optionsExpression),e.addProp("disabled",!!r.disabled),e.addProp("mode",r.stepMode||"evenly"),e.addProp("isSticky",r.isSticky),e.addProp("objectId",i.objectId),r.isSticky&&e.addClass("plat-step-is-sticky_"+this.id+i.objectId),e.ref=e.props.datafieldname+"_"+i.objectId+"_steps";const{error:a}=console;1==e.props.stepType?(e.addProp("value",i.editForm[e.props.datafieldname]),e.addProp("entity",i.objectTypeName),e.addProp("attribute",e.props.datafieldname),e.props.datafieldname||(a(i.$_t("vform_steps2","步骤条缺少绑定字段")),e.setProp("stepType",0))):2==e.props.stepType&&(e.props.optionsExpression?(e.addProp("options",i.getFunctionByExpression(e.props.optionsExpression).call(i)),e.props.optionValue&&e.addProp("value",i.getFunctionByExpression(e.props.optionValue).call(i))):a(i.$_t("vform_steps1","步骤条缺少表达式")))}collectStickyDic(e){this.parent&&this.parent.$nodetype===o.b.Form&&(this.props.isSticky&&!e.thisVue.isPrint||(e.thisVue.__collectStickyDic[o.b.NewTabs]=!1,e.thisVue.__collectStickyDic[o.b.Tabs]=!1,e.thisVue.__collectStickyDic[o.b.Steps]=!1),e.thisVue.__collectStickyDic[o.b.Steps+"_id"]=this.id)}}i=d,a="$bindNodeType",n=o.b.Steps,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},e1ce:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADG0lEQVRIS71WW27TUBCde68d5+G8m7SoqAJVebSwCfhgB7QUWED/ESqwgSIhFsA/BQpiAQgJNhGaOqgCoQpK0rwd53nvRePUIUmTCFrB/NnzOJ6ZMzMmMEP29/cvM8bWOOfXCSGrABA7MS9IKfcYYx8456/T6fSXaWHIJEUmk1lSVfUxpXTN7fYyTXODoqpAKbPNheDQ63ah3W5Bq2VxIcQbRVG2lpeXv43HOwWQzWY3GGPPfD6/3+vzA6V0VpIghACrUQfTrJlSys10Or0z7DACYBjGPcaUJ6FwlKiqa2bgcWW324FKuSg5791PpVJPHf0AIJfL3aaUPY9E44Sxfin+VjjvQalYkELwu8lk8gX62wAHBwdLvR7/FJ2L65O+XEoJZr0KlmXamF6vDro/CIScbiFmUjzOm4rCrmBPbAvDMF7pemAdnSaJadZsAJ8esNUNs2YD6CfP4z5oa5q13VQqdYv0qah8nostMKehlUrRbp4j3U4bPB4fBIJh+1WtWoZmswGqSxvYoG8oFD1hmYDjwhHnvJcghmE88Hr1bcfZCTAMIKUAZBTSFQXpicwh5DfDEGA8hmWZDzGDd5FI7Ibm9oxk2m417Sw8Xt/MXjethk3lSf7l8vF7zOAwFr+wyJgyEqhaKQGyIhKN9weqaUEwFLFtqtUSuN0e0DQPlIp5QF9H5wRB30L+xyECdOcXLirjjBgGwCZjSeLzi7Z/If8dPMgkPTAVAJn38+iw968B2n9UorNkMCjRtCaft0RIEqfJp2hqN3KoyWfJAGfFssxHEwdtHAC/ptm0IBTuD1K1UgTN7bWZNIlFSO/BoE1bFUjFTrs9dR04dMTsXJoGwWCfwigjqwJf4LLjnGci0bjfWXbdTgfK5cLIypg0cThk4XAMVFd/veOyKxXzdcbY1cGyQwUeGlV17ZxvXXMMjuv6TjKZfIlx/9/BcdLP5XIbAHCGk1k3KSWbiURi+sl0QLLZ7CVK6Tal9OYfHv23QoitlZWVr+N9mvhX4RjhrSCErEspr1FKV6WUcbuuhOSFEHuEkI9Syt1Zvy2/AH8sG/9nHoEJAAAAAElFTkSuQmCC"},e2c4:function(e,t,r){"use strict";r("c53f")},e2fb:function(e,t,r){var i=r("60da");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("834ffb46",i,!0,{sourceMap:!1,shadowMode:!1})},e37a:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"iscontainer",!0)}prepare(e){super.prepare(e),this.computeSearchStr(e)}BindAttributes(){const e={},t=this.props;return e.checkall=t.checkall,e.pagingCount=t.pagingCount,e.paging=t.paging,e.jump=t.jump,e.disableJump=t.disableJump,t.jumpFormLogicalName&&t.referencedEntity,t.jumpFormId&&(e.jumpFormId=t.jumpFormId),e.jumpUrlExpression=t.jumpUrlExpression,t.jumpAddFormLogicalName&&t.referencedEntity,t.jumpAddFormId&&(e.jumpAddFormId=t.jumpAddFormId),e.disableFetch=t.disableFetch||!1,e.jumpAddUrlExpression=t.jumpAddUrlExpression,e.mapJumpUrlExpression=t.mapJumpUrlExpression,e.gridWidth=t.gridWidth,t.requestApi&&(e.requestApi=t.requestApi),e.returntotalrecordcount=t.returntotalrecordcount,e.quickfindcount=t.quickfindcount,e.fixedHead=t.fixedHead,e}createVNode(e,t){const r=t.targetComponent,n=new a.e(o.a.RTView);let s=!0;t.grid&&2==t.grid.availableOnPhone&&(s=!1),n.nodeType=this.$nodetype,n.addClass("apaas-vlist-wrapper"),this.buildVNode(n,t),n.addKey("list_view"),this.appendNode(e,n,t);const l=new a.e(o.a.Header);t.targetComponent.isDialogMode||l.addAttr("rt-xpc-sticky",!0),n.addChild(l);const d=new a.e(o.a.ContentContainer);r.$refs.echartDrawer&&r.$refs.echartDrawer.showEchart&&n.addClass("content-show-echart"),r.newTabObject&&r.newTabObject.isRelatedView&&(n.addClass("apaas-relevant-view"),d.addProp("contentMainStyle",{padding:"0"})),s&&n.addChild(d);const c=this.children.find(e=>e.$nodetype==i.b.gridheader);if(c){c.createVNode(l,t),this.addChildByPermission(d,t);const r=c.children.find(e=>e.$nodetype===i.b.toolbar);if(r&&(t.targetComponent.isDialogMode?r.createVNode(e,t):r.createVNode(d,t)),!c.children.find(e=>e.$nodetype==i.b.gridconditions)){const r=new a.e("rt-plat-filter-drawer");r.nodeType=i.b.Filterdrawer,this.extendFilterDrawer(r,t);const n=r.addChildByTag(o.a.Form);n.slot="filterdrawerform",n.nodeType=i.b.Form,e.addChild(r);const s=r.addChildByTag("template");s.slot="btns";const l=new a.e(o.a.Button);l.nodeType=i.b.Button,l.vtext=t.targetComponent.$_t("xpc.common.reset","重置"),l.ctrlType="filetrreset",l.data.props.langkey="BUTTON_RESET",l.on.click=t.targetComponent.filetrreset,s.addChild(l);const c=new a.e(o.a.Button);c.nodeType=i.b.Button,c.vtext=t.targetComponent.$_t("xpc.dialog.confirm","确认"),c.ctrlType="filetrprimary",c.on.click=t.targetComponent._filetrprimary,c.data.props.langkey="BUTTON_CONFIRM",c.addProp("type","primary"),s.addChild(c),this.children.forEach(e=>{e.VueTag==o.a.Template&&e.createVNode(d,t)})}}else this.addChildByPermission(d,t)}buildVNodeInView(e,t){super.buildVNodeInView(e,t)}addMultiLookup(e,t){const r=this.props,n=t.targetComponent,s=new a.e(o.a.rtLookupMultiDialog);if(this.buildVNode(s,t),s.nodeType=i.b.Manytomanylookup,s.addKey(s.cid+this.id),s.on.dialogCallback=e=>{n.saveManyToManyData(e)},r.customRequestUrl){const e=n.getFunctionByExpression(r.customRequestUrl).call(n);e&&e.length>0?r.requestUrl=e:delete r.requestUrl}s.addProp("subgridkey",r.Id),s.addProp("objectTypeName",r.TargetEntityType),s.addProp("location","subgrid"),s.ref="manytomanylookup_vlist_"+s.cid,n.newTabObject&&(n.newTabObject.manytomanylookup=s.cid),rt.isNullOrWhiteSpace(r.requestUrl)||s.addProp("customRequestUrl",r.requestUrl);const l=[],d=n.EntityDisplayName,c=e=>{"gridtable"===e.$nodetype?e.children.forEach(e=>{"gridcell"===e.$nodetype&&l.push({label:e.props.displayName,name:e.props.name,width:e.props.width})}):e.children.forEach(e=>{c(e)})};return c(this),s.addProp("requestUrl","api/vlist/ExecuteQueryForLookUp?queryid="+n.currentQueryId),l.length>0&&s.addProp("displayFields",l),s.addProp("filterFields",""),s.addProp("entity",n.objectTypeName||n.targetEntityType),s.addProp("title",d),e.addChild(s),s}buildVNodeTree(e){const t=e.targetComponent,r=new a.e("div");e.FirstDiv=r,this.createVNode(r,e);const n=r.addChildByTag("excel-export-dialog");n.nodeType=i.b.Excelexportdialog,n.ref="ExcelExportDialog",n.props.ImportSuccessCallback=()=>{t.$bus.$emit("reloadList")};const s=r.addChildByTag("mapping-excel-import-Dialog");s.nodeType=i.b.MappingExcelImportDialog,s.ref="MappingExcelImportDialog",s.props.ImportSuccessCallback=()=>{t.$bus.$emit("reloadList")};const l=r.addChildByTag("excel-export-new-dialog");l.nodeType=i.b.Excelexportnewdialog,l.ref="ExcelExportNewDialog",l.on.exportData=t.exportData;const d=r.addChildByTag("grant-access-dialog");d.nodeType=i.b.GrantAccessDialog,d.ref="GrantAccessDialog",d.addProp("entityName",t.objectTypeName||t.targetEntityType);const c=r.addChildByTag(o.a.VDialog);if(c.ref="vdialog",c.nodeType=i.b.Vdialog,c.addProp("dialogFormId",this.id),t.userqueryDialog){const e=r.addChildByTag("userquerydialog");e.nodeType=i.b.UserQueryDialog,e.ref="userQueryList",e.addProp("visible",t.userqueryDialog.visible),e.addProp("title",t.userqueryDialog.title),e.addProp("entityName",t.objectTypeName||t.targetEntityType),e.on.update=t.__userqueryDialogUpdateHandler,e.on.openDesign=e=>{const r=t.userviewdesigner(e.$id,e),i=t.$refs.userViewDialog;null==i||i.show(r)},e.on.openCreate=()=>{t.showUserViewDesigner()},e.on.refreshtable=t.refreshtable,e.on.deleted=e=>{e.includes(t.currentQueryId)?t.handleUserQueryChanged(""):t.refreshtable()},e.on.saved=t.handleUserQueryChanged}const u=r.addChildByTag("assign-dialog");u.nodeType=i.b.AssignDialog,u.props.entityName=t.objectTypeName||t.targetEntityType,u.ref="AssignDialog",t.assignCallback&&(u.on.AssignCallback=t.assignCallback);const p=r.addChildByTag("plat-userview-dialog");if(p.nodeType=i.b.UserViewDialog,p.ref="userViewDialog",p.on.saved=t.handleUserQueryChanged,[i.e.PCQuery].includes(e.PageType)){const e=r.addChildByTag("echart-drawer");e.nodeType=i.b.EchartDrawer,e.ref="echartDrawer",e.addProp("globalConditions",t._globalConditions),e.addProp("echartConditon",t.echartConditon||[]),e.addProp("entityName",t.objectTypeName||t.targetEntityType),e.addProp("queryId",t.currentQueryId),e.addProp("queryList",t.queries),e.addProp("currentViewType",t.currentViewType),e.addProp("editForm",t.editForm),e.addProp("filterFormList",t.filterFormList),e.addProp("searchString",t.searchString),e.addProp("echartQueryOptions",t.echartQueryOptions),t.$refs.echartDrawer&&t.$refs.echartDrawer.showEchart&&(e.on.propCondition=t.conditionProp,e.on.changeChart=t.conditionProp)}const h=r.addChildByTag("word-template-dialog");return h.nodeType=i.b.Wordtemplatedialog,h.addProp("entityName",t.objectTypeName||t.targetEntityType),h.addProp("entityDisplayName",t.EntityDisplayName),t.wordTemplateDialogCallback&&(h.on.WordTemplateDialogCallback=t.wordTemplateDialogCallback),h.ref="WordTemplateDialog",t.isManyToManyRelationship&&this.addMultiLookup(r,e),r}extendFilterDrawer(e,t){const r=t.targetComponent;e.props.objectTypeName=r.objectTypeName,e.props.filterFormList=r.filterFormList||[],e.props.queryId=r.currentQueryId,e.props.editForm=r.editForm}addChildByPermission(e,t,r){this.children.forEach(a=>{this.props.availableOnPhone!=i.a.MOBILE&&a.$nodetype!=i.b.gridheader&&a.$nodetype!=i.b.gridconditions&&(this.calcHidden(a,t)||(a.extendParentInfo(this.parentInfo),r?a.createVNode(e,t,r):a.createVNode(e,t)))})}computeSearchStr(e){const t=e.thisVue;if(t.searchPlaceholder="",!this.props.searchableFields)return;const r=this.props.searchableFields||[],i="1033"===t.languageId;let a="";if(r.length>0){const e=i?"/ ":"/";a=r.map(e=>e.displayName).join(e)}else a=t.$_t("Please_searchable","请联系管理员配置可搜索字段");t.searchPlaceholder=a}}s(l,"$bindNodeType",i.b.grid)},e3ac:function(e,t,r){"use strict";r("4e81")},e3b7:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".div-404[data-v-07d6cae4]{width:100%;height:100%;text-align:center;vertical-align:middle}.div-404 button[data-v-07d6cae4]{width:142px;height:24px;line-height:8px;color:#888;vertical-align:middle;border:1px solid #888!important;border-radius:20px}.button-style[data-v-07d6cae4]:hover{color:#fff!important;background:#09f;border:1px solid #09f!important}.isVisable[data-v-07d6cae4]{background:#000}.div-404 button>span[data-v-07d6cae4]{font-size:14px;color:#888}.img-box[data-v-07d6cae4]{padding-top:60px}.img-box p[data-v-07d6cae4]{margin-bottom:14px;font-size:32px;color:#555}.img-box img[data-v-07d6cae4]{margin-bottom:30px}.font-box[data-v-07d6cae4]{margin-bottom:40px}.font-box span[data-v-07d6cae4]{font-size:24px;color:#888!important}",""]),e.exports=t},e3bf:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var i=r("ef51"),a=r("f6dc"),n=r("c40c");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s{constructor(e){o(this,"functionType",void 0),o(this,"originReadonly",!1),o(this,"id",void 0),o(this,"classid",void 0),o(this,"props",void 0),o(this,"nodeIndex",void 0),o(this,"parentIndex",void 0),o(this,"VueTag",void 0),o(this,"$nodetype",void 0),o(this,"tagName",void 0),o(this,"children",void 0),o(this,"parent",void 0),o(this,"Label",void 0),o(this,"indicationOfSubgrid",void 0),o(this,"parameters",void 0),o(this,"events",void 0),o(this,"hooks",void 0),o(this,"rules",void 0),o(this,"calcDisableFunc",void 0),o(this,"calcReadonlyFunc",void 0),o(this,"calcRequiredFunc",void 0),o(this,"calcHiddenFunc",void 0),o(this,"calcExpressionFunc",void 0),o(this,"calcEditableFunc",void 0),o(this,"validateTrigger","blur"),o(this,"parentInfo",{readonly:!1,ruleReadonly:a.a.Default}),o(this,"extendsChain",[]),o(this,"emptyFunction",()=>alert("no script specified")),Object.assign(this,e),this.children=new Array}deepFind(e){const t=new Array,r=new Array;for(r.push(this);r.length>0;){const i=r.pop();i.$nodetype==e&&t.push(i),r.push(...i.children)}return t.reverse(),t}findContainer(){let e=this.parent;for(;!e.iscontainer;)if(e=e.parent,!e)return e;return e}collectDependAttributes(e){this.children&&this.children.forEach(t=>t.collectDependAttributes(e))}collectDefaultValues(e){e.editForm||(e.editForm={}),e.changedProps||(e.changedProps=[])}collectApprovalFlow(e){}prepare(e){e.thisVue.isFlow||this.registerComputedFunctions(e),this.registerCalculateFunctions(e),this.registerHookHandlers(e),this.registerControlEventHandlers(e),this.registerInputHandlers(e),this.registerDependControlNotification(e),this.collectSubgridKey(e),e.pageTypes===i.e.PCForm&&(this.collectMaskData(e.thisVue),0==e.thisVue.formStatus&&this.collectDefaultValues(e.thisVue)),this.collectApprovalFlow(e.thisVue),this.collectExtendsChain(),this.collectStickyDic(e),this.children&&this.children.forEach(t=>t.prepare(e)),this.originReadonly=this.props.readonly}collectExtendsChain(){this.parent?this.extendsChain=[...this.parent.extendsChain,this.$nodetype]:this.extendsChain=[this.$nodetype]}collectStickyDic(e){this.parent&&this.parent.$nodetype===i.b.Form&&(e.thisVue.__collectStickyDic[i.b.NewTabs]=!1,e.thisVue.__collectStickyDic[i.b.Tabs]=!1)}collectMaskData(e){e.editForm||(e.editForm={})}collectSubgridKey(e){}registerInputHandlers(e){}registerDependControlNotification(e){}registerComputedFunctions(e){const t=e.thisVue;if(this.props.disableExpression&&(this.calcReadonlyFunc=this.getFunctionByExpression(this.props.disableExpression).bind(t)),this.props.readonlyExpression&&(this.calcReadonlyFunc=this.getFunctionByExpression(this.props.readonlyExpression).bind(t)),this.props.hiddenExpression&&(this.calcHiddenFunc=this.getFunctionByExpression(this.props.hiddenExpression).bind(t)),this.props.requiredExpression&&(this.calcRequiredFunc=this.getFunctionByExpression(this.props.requiredExpression).bind(t)),this.props.ifEditableExpression)try{this.calcEditableFunc=this.getFunctionByExpression(this.props.ifEditableExpression).bind(t)}catch(e){rt.showErrorToast("subgrid:"+e)}}registerCalculateFunctions(e){const t=e.thisVue;this.props.calculateExpression&&(this.calcExpressionFunc=this.getFunctionByExpression(this.props.calculateExpression).bind(t))}createVNode(e,t,r){}createDialogFooterVNode(e,t,r){}buildVNode(e,t){const r=[i.b.section,i.b.customerComponent,i.b.DialogForm];if(this.props.subContent&&!r.includes(this.$nodetype)&&e.addClass("apaas-sub-content"),[i.e.PCQuery,i.e.PCSubGrid,i.e.PCUserQuery].includes(t.PageType))return this.id&&e.addKey("vlist_"+this.id),this.buildVNodeInView(e,t);if([i.e.PCForm,i.e.PCPrintForm].includes(t.PageType))return this.id&&e.addKey("vform_"+this.id),this.buildVNodeInForm(e,t);throw Error("pageType is unknown")}buildVNodeInView(e,t){const r=t.targetComponent,i=this.props;if(e.addProp("langkey",i.langkey),e.addProp("availableOnPhone",i.availableOnPhone),e.addProp("roles",i.roles),e.addProp("enablePermissions",i.enablePermissions),e.addProp("label",this.getLangLabel(t)),e.addProp("placeholder",this.getLangPlaceholder(i,t)),i.disableExpression&&this.calcDisableFunc){const t=this.calcDisableFunc.call(r);t&&e.addProp("disabled",t)}const a=this.calcReadonly(r,t);e.addProp("readonly",a)}buildVNodeInForm(e,t){const r=t.targetComponent,a=this.props;if(e.addAttr("langkey",a.langkey),e.addAttr("availableOnPhone",a.availableOnPhone),e.addAttr("roles",a.roles),e.addAttr("enablePermissions",a.enablePermissions),e.addAttr("label",this.getLangLabel(t)),e.addAttr("placeholder",this.getLangPlaceholder(a,t)),a.disableExpression&&this.calcDisableFunc){const t=this.calcDisableFunc.call(r);t&&e.addProp("disabled",t)}const n=this.calcReadonly(r,t);this.$nodetype!==i.b.Form&&e.addProp("readonly",n)}getLangLabel(e,t=this){let r="";return t.props.hideLabel?"":(r=t.props.langkey?e.targetComponent.$_t(t.props.langkey,t.Label||(null==t?void 0:t.props.label)||(null==t?void 0:t.props.displayName)):t.Label||t.props.label||t.props.displayName,r||"")}getAttrLabel(e=this){return e.props.hideLabel?"":e.props.label||""}getLangPlaceholder(e,t,r=this){const a=t.targetComponent;let n="",o="";const s=["lookup","multipletypelookup","owner","picklist","picklistarray","state","status","datetime","partylist","customer","entitylogicalname"];e&&(n=e.attributeType||"",o=e.displayName||"");let l="";return l=r.props.placeholderLangkey?a.$_t(r.props.placeholderLangkey,r.props.placeholder):r.props.placeholder?r.props.placeholder:s.includes(n.toLowerCase())||this.$nodetype===i.b.Cascader?a.$_t("platform.PleaseSelect","请选择"):a.$_t("platform.enterString","请输入"),l}attachEventHandlers(e){this.events&&this.events.length&&this.events.forEach(t=>{t.name&&t.buildHandler&&(e.on[t.name]=t.buildHandler)})}appendNode(e,t,r){e.addChild(t)}addChildByPermission(e,t,r){const a=this.children.filter(a=>a.props.availableOnPhone!=i.a.MOBILE&&(!this.calcHidden(a,t)&&(a.extendParentInfo(this.parentInfo),r?a.createVNode(e,t,r):a.createVNode(e,t),!0)));t.PageStatus==i.d.print||a.length||-1===[i.b.SubGrid,i.b.toolbar].indexOf(this.$nodetype)&&(e.isChildrenEmpty=!0)}createAttributeEventKey(e,t,r){return e.objectTypeName+":a:"+t+":"+r}createControlEventKey(e,t,r,i){return e.objectTypeName+":c:"+t+":"+r}saveControlEventHandler(e,t,r){e.fieldInputHandlers||(e.fieldInputHandlers={});let i=e.fieldInputHandlers[t];i?i.push(r):(i=new Array,i.push(r),e.fieldInputHandlers[t]=i)}__addEvent(e,t,r){e.$PlatUtils.listenerHook(e,t,r),e.eventKeys.push(t)}__clearEvents(e){e.eventKeys.forEach(t=>{e.$bus.$off(t)})}getFunctionByExpression(e,...t){return n.b.getFunctionByExpressionWithCheck(e,t)}__createScriptHandler(e,t,r,i,a){const o=r;try{const r=new Function(...t,n.b.optimizeExpression(o));return function(...n){if(e.checkIsPreview())return;if(this&&"inlineButton"===this.functionType){const t=e,r=this;t.currentRow=r.row,t.row=r.row}else if(this&&"inlineInput"===this.functionType){const t=e,r=this;t.currentRow=r.row,t.row=r.row}const s=window.rt;if(r)try{const i=t.map((e,t)=>"rt"===e?s:n[t]);r.call(e,...i)}catch(e){const{error:r}=console;r(`请注意!!【${i}事件】执行错误;\n 错误原因为:${e.message}\n 错误位置:控件名称【${a.props.label}】;nodetype:【${a.$nodetype}】;id:${a.id}\n 错误语法:【${o}】`)}}}catch(e){throw e}}registerControlEventHandlers(e){const t=e.thisVue;if(this.events&&this.events.length>0)for(let r=0;r0&&i.args.forEach(e=>{r.push(e.argName)}),r.push("rt");const a=this.__createScriptHandler(t,r,i.script,e.name,this);e.buildHandler=a,this.saveControlEventHandler(t,n,a)}else if("string"==typeof i){const r=this.__createScriptHandler(t,[],i,e.name,this);e.buildHandler=r,this.saveControlEventHandler(t,n,r)}}}registerHookHandlers(e){if(![i.b.grid,i.b.Form].includes(this.$nodetype))return;const t=e.thisVue;t.hookHandlers={},this.hooks&&this.hooks.length&&this.hooks.length>0&&this.hooks.forEach(e=>{e&&e.name&&e.script&&(t.hookHandlers[e.name]||(t.hookHandlers[e.name]=[]),t.hookHandlers[e.name].push(new Function(n.b.optimizeExpression(e.script)).bind(t)))})}calcEntityReadonly(e){if(this.extendsChain.includes(i.b.SubGrid)||this.extendsChain.includes(i.b.cardTable))return!1;const t=e.entityPrivilege.IsWrite;return e.pageType===i.e.PCForm&&!1===t&&""===e.actualSourceFlowId}calcReadonly(e,t){if(this.calcEntityReadonly(e))return!0;let r=this.parentInfo.readonly;const i=t.rules?t.rules[this.id]||t.rules[this.props.datafieldname]:null;return i&&i.readonly!==a.a.Default?(i.readonly===a.a.On?r=!0:i.readonly===a.a.Off&&(r=!1),this.parentInfo.ruleReadonly=i.readonly):this.parentInfo.ruleReadonly!==a.a.Default?r=this.parentInfo.ruleReadonly===a.a.On:this.calcReadonlyFunc?(r=n.b.execFunction(this.calcReadonlyFunc,e,this,n.a.ReadonlyExp),r=this.getBooleanResult(r)):this.originReadonly&&(r=!0),this.parentInfo.readonly=r,r}calcRequired(e,t){let r=!1;const i=t.rules?t.rules[this.id]||t.rules[this.props.datafieldname]:null;return i&&i.required!==a.a.Default?i.required===a.a.On?r=!0:i.required===a.a.Off&&(r=!1):this.calcRequiredFunc?(r=n.b.execFunction(this.calcRequiredFunc,e,this,n.a.RequiredExp),r=this.getBooleanResult(r)):this.props.required&&(r=!0),r}calcHidden(e,t){const r=t.targetComponent;let o=!1;if(e.props.availableOnPhone==i.a.MOBILE)return!0;if(e.props.unavailableModule)return!0;const s=t.rules?t.rules[e.id]||t.rules[e.props.datafieldname]:null;if(s&&s.visible!==a.a.Default)return s.visible===a.a.On?o=!1:s.visible===a.a.Off&&(o=!0),o;if(r.isFlow)return o;if(e.props.hiddenExpression){const t=this.getFunctionByExpression(e.props.hiddenExpression).bind(r);o=n.b.execFunction(t,r,e,n.a.HiddenExp),o=this.getBooleanResult(o)}return o}isSingleTable(e){return e.targetComponent.isDashboard||!1}getBooleanResult(e){if("boolean"==typeof e)return e;try{return!!JSON.parse(e)}catch(t){return!!e}}extendParentInfo(e){this.parentInfo={...e}}getHeaderIconImgsrc(e,t){const r=this.props,i=t.targetComponent;if(r.imgsrc){let t="";r.imgsrc.startsWith("$entity-")||r.imgsrc.startsWith("$attr-")?(t=r.imgsrc.replace(/^[^-{1}]*(?=-{1})-{1}/,""),e.addProp("icon",t),e.addProp("color","#fff"),e.addProp("iconSrc","")):r.imgsrc.startsWith("https")||r.imgsrc.startsWith("data")?e.addProp("iconSrc",r.imgsrc):r.hasOwnProperty("hasEntityImage")&&!r.hasEntityImage?e.addProp("icon","rt-base-defaultIcon"):e.addProp("iconSrc",rt.getBaseUrl()+r.imgsrc)}else if(r.imgPermission){let t="";r.imgPermission.startsWith("$entity-")||r.imgPermission.startsWith("$attr-")?(t=r.imgsrc.replace(/^[^-{1}]*(?=-{1})-{1}/,""),e.addProp("iconSrc",t)):r.imgPermission.startsWith("https")?e.addProp("iconSrc",r.imgPermission):r.hasOwnProperty("hasEntityImage")&&!r.hasEntityImage?e.addProp("icon","rt-base-defaultIcon"):e.addProp("iconSrc",rt.getBaseUrl()+r.imgPermission),e.addProp("loadingPermission",!0)}else e.addProp("icon","rt-base-defaultIcon");"lookup"!=i.pageSource&&"userQueryDialog"!==i.pageSource&&e.addProp("iconSize","24")}getChildNodeByNodeType(e,t){const r=this.children.find(t=>t.$nodetype===e);if(r&&!this.calcHidden(r,t)&&r.props.availableOnPhone!=i.a.MOBILE)return r}findFirstNodeByNodeTypeDFS(e,t,r){if(!Array.isArray(e))return null;for(const i of e){if(!(i.$nodetype!==t||r&&r(i)))return i;if(i.children&&i.children.length){const e=this.findFirstNodeByNodeTypeDFS(i.children,t,r);if(e)return e}}return null}}},e3f2:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.apaas-header[data-v-c90c72c6]{min-height:48px;padding:12px 16px;border-top-left-radius:8px;border-top-right-radius:8px;box-sizing:border-box;display:flex;align-items:center;position:relative;cursor:default;background:#fff}.apaas-header.open-collapse[data-v-c90c72c6]{transition:background .2s linear}.apaas-header.open-collapse[data-v-c90c72c6]:hover:is(.btns-hovering){background:#f6f7f8;border-radius:8px}.apaas-header.open-collapse .apaas-header-title[data-v-c90c72c6],.apaas-header.open-collapse .collapsed-icon[data-v-c90c72c6]{cursor:pointer}.apaas-header.blue-line[data-v-c90c72c6]:before{content:"";display:block;width:4px;height:16px;border-radius:2px;position:absolute;left:0}.apaas-header-content[data-v-c90c72c6]{flex:1;display:flex;align-items:center}.apaas-header-content .header-icon[data-v-c90c72c6]{width:24px;height:24px;min-width:24px;background:#2563eb;border-radius:4px;display:flex;align-items:center;justify-content:center;margin-right:8px;color:#fff}.apaas-header-title[data-v-c90c72c6]{font-size:15px;font-weight:700;color:#0b0c0e;line-height:21px;display:flex;align-items:center}.collapsed-icon[data-v-c90c72c6]{transform:rotate(90deg);transition:transform .2s linear;margin-left:4px}.collapsed-icon.collapsed[data-v-c90c72c6]{transform:rotate(0deg)}.apaas-header-more[data-v-c90c72c6]{margin-left:8px;font-size:13px;color:#788796;line-height:17px;cursor:pointer}.apaas-header-btns[data-v-c90c72c6]{margin-left:16px}.apaas-header-btns>.plat-button-group[data-v-c90c72c6] >.rt-header-button-group{height:auto}.apaas-header-btns[data-v-c90c72c6] .rt-header-button-group{height:unset}',""]),e.exports=t},e425:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".batch-upload-image.plat-batch-upload-image[data-v-823f7760]{overflow-y:hidden;max-height:calc(70vh - 47px)}.batch-upload-image.plat-batch-upload-image .plat-batch-form[data-v-823f7760]{max-height:calc(70vh - 104px);overflow:hidden}.batch-upload-image.plat-batch-upload-image .rt-card[data-v-823f7760]{margin-top:0;max-height:calc(70vh - 104px);overflow-y:auto}.batch-upload-image.plat-batch-upload-image .rt-upload[data-v-823f7760] .el-upload,.batch-upload-image.plat-batch-upload-image .rt-upload[data-v-823f7760] .el-upload .el-upload-dragger{width:100%}.batch-upload-image.plat-batch-upload-image .rt-upload .el-upload-list[data-v-823f7760]{max-height:200px;overflow-y:auto}.batch-upload-image.plat-batch-upload-image .rt-upload .el-upload-list[data-v-823f7760]::-webkit-scrollbar{width:0}.batch-upload-image.plat-batch-upload-image .footer-group[data-v-823f7760]{background:#fff}.batch-upload-image.plat-batch-upload-image .footer-button-group[data-v-823f7760]{display:flex;justify-content:flex-end;align-items:center;padding:12px 24px 12px;border-top:1px solid #d6dbe1;border-radius:0 0 4px 4px}.batch-upload-image.plat-batch-upload-image .footer-button-group .rt-button[data-v-823f7760]{margin-left:16px}.batch-upload-image.plat-batch-upload-image .upload-result .rt-table[data-v-823f7760]{margin:0}",""]),e.exports=t},e50e:function(e,t,r){var i=r("c181");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("b9b4c3d2",i,!0,{sourceMap:!1,shadowMode:!1})},e5e3:function(e,t,r){"use strict";r("d402")},e5e4:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".date-picker[data-v-cac8d9fe]{width:100%}",""]),e.exports=t},e61e:function(e,t,r){var i=r("6382");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("5aa6d5af",i,!0,{sourceMap:!1,shadowMode:!1})},e62a:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-flowSubmit-dialog .plat-flow-step[data-v-311e7e74]{color:#606266;border:1px solid #ddd;padding:0 4px;line-height:24px;margin-top:10px;border-radius:4px;font-size:inherit}",""]),e.exports=t},e66a:function(e,t,r){"use strict";r("d226")},e68c:function(e,t,r){var i=r("907c");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("3e592adc",i,!0,{sourceMap:!1,shadowMode:!1})},e6e0:function(e,t,r){var i=r("bbf9");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("111ba22e",i,!0,{sourceMap:!1,shadowMode:!1})},e701:function(e,t,r){"use strict";r("c48d")},e7f4:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".team-popper .el-popper{padding:8px}.team-popper .editBtn{display:block;padding:8px;text-align:center;word-break:break-word;cursor:pointer;background:#fff}.team-popper .editBtn:hover{color:#0072e6;background:#e6f1fd}",""]),e.exports=t},e88c:function(e,t,r){var i=r("b535");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("4871dbcf",i,!0,{sourceMap:!1,shadowMode:!1})},e8ef:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=this.props,a=new s.e(this.VueTag);a.nodeType=this.$nodetype,this.buildVNode(a,t),a.addProp("title",i.title),a.addProp("showStyle",i.showStyle),a.addProp("hiddenDefaultDiagram",i.hiddendefaultdiagram);const n=!!rt.isNull(i.isExpand)||i.isExpand;a.addProp("isOpenCollapse",!0),a.addProp("isExpand",n),this.appendNode(e,a,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t),e.ref="audits";const r=t.targetComponent;e.addProp("objectId",r.objectId),e.addProp("objectTypeName",r.objectTypeName),e.addProp("isPreview",r.isPreview)}}i=d,a="$bindNodeType",n=o.b.Audits,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},e926:function(e,t,r){"use strict";function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"a",(function(){return b})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return f})),r.d(t,"f",(function(){return g}));class a{}function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}i(a,"int","int"),i(a,"bigint","bigint"),i(a,"string","string"),i(a,"text","text"),i(a,"nvarchar","nvarchar"),i(a,"memo","memo"),i(a,"integer","integer"),i(a,"float","float"),i(a,"money","money"),i(a,"decimal","decimal"),i(a,"double","double"),i(a,"owner","owner"),i(a,"ownerLookup","ownerlookup"),i(a,"businessunit","businessunit"),i(a,"datetime","datetime"),i(a,"date","date"),i(a,"picklist","picklist"),i(a,"picklistarray","picklistarray"),i(a,"entitylogicalname","entitylogicalname"),i(a,"bool","bool"),i(a,"boolean","boolean"),i(a,"bit","bit"),i(a,"state","state"),i(a,"status","status"),i(a,"lookup","lookup"),i(a,"multipleTypeLookup","multipletypelookup"),i(a,"customer","customer"),i(a,"uniqueidentifier","uniqueidentifier"),i(a,"timestamp","timestamp"),i(a,"entityname","entityname"),i(a,"worker","worker"),i(a,"incurrentusersrelation","incurrentusersrelation"),i(a,"formstatus","formstatus"),i(a,"role","role"),i(a,"script","script"),i(a,"system_params","system_params"),i(a,"flow","flow"),i(a,"formRulesLookup","formruleslookup"),i(a,"nullOrNotNull","nullornotnull");const o={currentUser:{label:"当前用户",fetchXMLOperator:"eq-userid",key:"bi.cusers",fun:void 0,conditionOperator:"EqualUserId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},notCurrentUser:{label:"不是当前用户",key:"bi.ntcuser",fun:void 0,fetchXMLOperator:"ne-userid",conditionOperator:"NeUserId",description:"不是当前用户",noValue:!0,valueCount:0},allUnder:{label:"下属",key:"bi.subordinate",fun:void 0,fetchXMLOperator:"under-currentuserid",conditionOperator:"UnderCurrentuserid",description:"当前负责人下属所有权限",noValue:!0,valueCount:0},allUnderAndOwner:{label:"下属及自己",key:"bi.sathemselves",fun:void 0,fetchXMLOperator:"eq-or-under-currentuserid",conditionOperator:"EqOrUnderCurrentuserid",description:"当前负责人权限以及下属所有权限",noValue:!0,valueCount:0},NotNull:{label:"不为空",fun:void 0,key:"Operator.Notempty",fetchXMLOperator:"not-null",conditionOperator:"NotNull",description:"The value is not null.",noValue:!0,valueCount:0},Null:{label:"为空",fun:void 0,key:"Operator.Empty",fetchXMLOperator:"null",conditionOperator:"Null",description:"The value is null.",noValue:!0,valueCount:0},Equal:{label:"等于",key:"Operator.Equal",fun:void 0,fetchXMLOperator:"eq",conditionOperator:"Equal",description:"The values are compared for equality.",noValue:!1,valueCount:1},NotEqual:{label:"不等于",fetchXMLOperator:"ne",fun:void 0,key:"Operator.Unequal",conditionOperator:"NotEqual",description:"The two values are not equal.",noValue:!1,valueCount:1},In:{label:"存在于",key:"Operator.Exist",fun:void 0,fetchXMLOperator:"in",conditionOperator:"In",description:"TheThe value exists in a list of values.",noValue:!1,valueCount:3},NotIn:{label:"不存在于",key:"Operator.NotExist",fun:void 0,fetchXMLOperator:"not-in",conditionOperator:"NotIn",description:"The value does not exist in a list of values.",noValue:!1,valueCount:3}},s={...o,currentBusiness:{label:"当前部门",key:"bi.Cdept",fetchXMLOperator:"eq-businessid",fun:void 0,conditionOperator:"EqualBusinessId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},notCurrentBusiness:{label:"不是当前部门",key:"bi.NCdept",fun:void 0,fetchXMLOperator:"ne-businessid",conditionOperator:"NeBusinessId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},underOrEqualBusinessid:{label:"所选部门以及下级部门",key:"bi.subordinateAndSelvesDept",fun:void 0,fetchXMLOperator:"under-or-equal-businessid",conditionOperator:"underOrEqualBusinessid",description:"under or equal businessid",noValue:!1,valueCount:1},underOrEqualCurrentbusiness:{label:"当前部门以及下级部门",key:"bi.currentAndSubordinateDepts",fun:void 0,fetchXMLOperator:"under-or-equal-currentbusinessid",conditionOperator:"underOrEqualBusinessid",description:"under or equal currentbusinessid",noValue:!0,valueCount:0},currentWorker:{label:"当前服务人员",key:"bi.ctechnician",fun:void 0,fetchXMLOperator:"eq-outteruserid",conditionOperator:"EqualOutterUserId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},Contains:{label:"包含(like)",key:"Operator.Include",fun:void 0,fetchXMLOperator:"like",conditionOperator:"Contains",description:"The string occurs at the beginning of another string.",noValue:!1,valueCount:0},Exsits:{label:"包含",key:"Operator.Include",fun:void 0,fetchXMLOperator:"contains",conditionOperator:"Contains",description:"The string occurs at the beginning of another string.",noValue:!1,valueCount:0},Between:{label:"在两者之间",key:"Operator.Between",fun:void 0,fetchXMLOperator:"between",conditionOperator:"Between",description:"The value is between two values.",noValue:!1,valueCount:2},DoesNotContain:{label:"不包含",fun:void 0,key:"Not.Include",fetchXMLOperator:"not-like",conditionOperator:"DoesNotContain",description:"The string does not begin with another string.",noValue:!1,valueCount:1},NotNull:{label:"不为空",fun:void 0,key:"Operator.Notempty",fetchXMLOperator:"not-null",conditionOperator:"NotNull",description:"The value is not null.",noValue:!0,valueCount:0},Null:{label:"为空",fun:void 0,key:"Operator.Empty",fetchXMLOperator:"null",conditionOperator:"Null",description:"The value is null.",noValue:!0,valueCount:0},Equal:{label:"等于",key:"Operator.Equal",fun:void 0,fetchXMLOperator:"eq",conditionOperator:"Equal",description:"The values are compared for equality.",noValue:!1,valueCount:1},NotEqual:{label:"不等于",fetchXMLOperator:"ne",fun:void 0,key:"Operator.Unequal",conditionOperator:"NotEqual",description:"The two values are not equal.",noValue:!1,valueCount:1},GreaterEqual:{label:"大于等于",key:"Operator.GtoEqualto",fun:void 0,fetchXMLOperator:"ge",conditionOperator:"GreaterEqual",description:"The value is greater than or equal to the compared value.",noValue:!1,valueCount:1},GreaterThan:{label:"大于",key:"Operator.Gthan",fun:void 0,fetchXMLOperator:"gt",conditionOperator:"GreaterThan",description:"The value is greater than the compared value.",noValue:!1,valueCount:1},In:{label:"存在于",key:"Operator.Exist",fun:void 0,fetchXMLOperator:"in",conditionOperator:"In",description:"The value exists in a list of values.",noValue:!1,valueCount:3},NotIn:{label:"不存在于",key:"Operator.NotExist",fun:void 0,fetchXMLOperator:"not-in",conditionOperator:"NotIn",description:"The value does not exist in a list of values.",noValue:!1,valueCount:3},LessEqual:{label:"小于等于",key:"Operator.LtoEqualto",fun:void 0,fetchXMLOperator:"le",conditionOperator:"LessEqual",description:"The value is less than or equal to the compared value.",noValue:!1,valueCount:1},LessThan:{label:"小于",key:"Operator.Lthan",fun:void 0,fetchXMLOperator:"lt",conditionOperator:"LessThan",description:"The value is less than the compared value.",noValue:!1,valueCount:1},Today:{label:"今天",fun:void 0,key:"Operator.Today",fetchXMLOperator:"today",conditionOperator:"Today",description:"The value equals today’s date.",noValue:!0,valueCount:0,applyTypes:[a.datetime,a.date]},GtNow:{label:"晚于当前时间",key:"bi.actime",fun:void 0,fetchXMLOperator:"after-now",conditionOperator:"AfterNow",description:"The value equals today’s date.",noValue:!0,valueCount:0},GtToday:{label:"晚于今天",key:"Operator.LtToday",fun:void 0,fetchXMLOperator:"after-today",conditionOperator:"AfterToday",description:"The value equals today’s date.",noValue:!0,valueCount:0},GeToday:{label:"晚于等于今天",fun:void 0,key:"Operator.LtoEtToday",fetchXMLOperator:"on-or-after-today",conditionOperator:"OnOrAfterToday",description:"The value equals today’s date.",noValue:!0,valueCount:0},LtNow:{label:"早于当前时间",key:"bi.bctime",fun:void 0,fetchXMLOperator:"before-now",conditionOperator:"BeforeNow",description:"The value equals today’s date.",noValue:!0,valueCount:0},LtToday:{label:"早于今天",fun:void 0,key:"Operator.BToday",fetchXMLOperator:"before-today",conditionOperator:"BeforeToday",description:"The value equals today’s date.",noValue:!0,valueCount:0},LeToday:{label:"早于等于今天",key:"bi.tabtoady",fun:void 0,fetchXMLOperator:"on-or-before-today",conditionOperator:"OnOrBeforeToday",description:"The value equals today’s date.",noValue:!0,valueCount:0},OlderThanXDays:{label:"早于X天",fun:void 0,key:"Operator.xDayago",fetchXMLOperator:"olderthan-x-days",conditionOperator:"OlderThanXDays",description:"The value olderthan x date.",noValue:!1,valueCount:0},Tomorrow:{label:"明天",key:"Operator.Tomorrow",fun:void 0,fetchXMLOperator:"tomorrow",conditionOperator:"Tomorrow",description:"The value equals tomorrow’s date.",noValue:!0,valueCount:0},Yesterday:{label:"昨天",key:"Operator.Yesterday",fun:void 0,fetchXMLOperator:"yesterday",conditionOperator:"Yesterday",description:"The value equals yesterday’s date.",noValue:!0,valueCount:0},ThisMonth:{label:"当月",fun:void 0,key:"Operator.TMonth",fetchXMLOperator:"this-month",conditionOperator:"ThisMonth",description:"The value is within the current month.",noValue:!0,valueCount:0},LastMonth:{label:"上月",fun:void 0,key:"Operator.LastMonth",fetchXMLOperator:"last-month",conditionOperator:"LastMonth",description:"The value is within the last month.",noValue:!0,valueCount:0},ThisWeek:{label:"本周",fun:void 0,key:"Operator.TWeek",fetchXMLOperator:"this-week",conditionOperator:"ThisWeek",description:"The value is within the current week.",noValue:!0,valueCount:0},ThisYear:{label:"今年",fun:void 0,key:"Operator.TYear",fetchXMLOperator:"this-year",conditionOperator:"ThisYear",description:"The value is within the current year.",noValue:!0,valueCount:0},LastYear:{label:"去年",fun:void 0,key:"Operator.LastYear",fetchXMLOperator:"last-year",conditionOperator:"LastYear",description:"The value is within the last year.",noValue:!0,valueCount:0},Last7Days:{label:"最近7天",fun:void 0,key:"Operator.L7days",fetchXMLOperator:"last-seven-days",conditionOperator:"Last7Days",description:"The value is within the last seven days including today.",noValue:!0,valueCount:0},Next7Days:{label:"今后7天",fun:void 0,key:"Operator.N7days",fetchXMLOperator:"next-seven-days",conditionOperator:"Next7Days",description:"The value is within the next seven days.",noValue:!0,valueCount:0},LastXHours:{label:"最近x小时",fun:void 0,key:"Operator.LxHours",fetchXMLOperator:"last-x-hours",conditionOperator:"LastXHours",description:"The value is within last X hours.",noValue:!1,valueCount:1},NextXHours:{label:"今后x小时",key:"Operator.NxHours",fun:void 0,fetchXMLOperator:"next-x-hours",conditionOperator:"NextXHours",description:"The value is within the next X (specified value) hours.",noValue:!1,valueCount:1},OlderThanXHours:{label:"x小时以前",key:"Operator.xHago",fun:void 0,fetchXMLOperator:"olderthan-x-hours",conditionOperator:"OlderThanXHours",description:"The value is within the older than X (specified value) hours.",noValue:!1,valueCount:1},LastXDays:{label:"最近x天",key:"Operator.LxDays",fun:void 0,fetchXMLOperator:"last-x-days",conditionOperator:"LastXDays",description:"The value is within last X days.",noValue:!1,valueCount:1},NextXDays:{label:"今后x天",fun:void 0,key:"Operator.NxDays",fetchXMLOperator:"next-x-days",conditionOperator:"NextXDays",description:"The value is within the next X (specified value) days.",noValue:!1,valueCount:1},LastXWeeks:{label:"最近x周",fun:void 0,key:"Operator.LxWeeks",fetchXMLOperator:"last-x-weeks",conditionOperator:"LastXWeeks",description:"The value is within the last X (specified value) weeks.",noValue:!1,valueCount:1},NextXWeeks:{label:"今后x周",fun:void 0,key:"Operator.NxWeeks",fetchXMLOperator:"next-x-weeks",conditionOperator:"NextXWeeks",description:"The value is within the next X weeks.",noValue:!1,valueCount:1},LastXMonths:{label:"最近x月",fun:void 0,key:"Operator.LxMonths",fetchXMLOperator:"last-x-months",conditionOperator:"LastXMonths",description:"The value is within the last X (specified value) months.",noValue:!1,valueCount:1},NextXMonths:{label:"今后x月",fun:void 0,key:"Operator.NxMonths",fetchXMLOperator:"next-x-months",conditionOperator:"NextXMonths",description:"The value is within the next X (specified value) months.",noValue:!1,valueCount:1},LastXYears:{label:"最近x年",fun:void 0,key:"Operator.LxYears",fetchXMLOperator:"last-x-years",conditionOperator:"LastXYears",description:"The value is within the last X years.",noValue:!1,valueCount:1},NextXYears:{label:"今后x年",fun:void 0,key:"Operator.NxYears",fetchXMLOperator:"next-x-years",conditionOperator:"NextXYears",description:"The value is within the next X years.",noValue:!1,valueCount:1},ArrayContains:{label:"包含",key:"Operator.Include",fun:void 0,fetchXMLOperator:"array-contains",conditionOperator:"ArrayContains",description:"多选picklist 包含",noValue:!1},ArrayIn:{label:"存在于",key:"Operator.Exist",fun:void 0,fetchXMLOperator:"array-in",conditionOperator:"ArrayIn",description:"多选picklist 被包含",noValue:!1},ArrayEqual:{label:"等于",key:"Operator.Equal",fun:void 0,fetchXMLOperator:"array-equal",conditionOperator:"ArrayEqual",description:"多选picklist 等于",noValue:!1},ArrayNotEqual:{label:"不等于",key:"Operator.Unequal",fun:void 0,fetchXMLOperator:"array-not-equal",conditionOperator:"ArrayNotEqual",description:"多选picklist 不等于",noValue:!1},InCurrentUsersRelation:{label:"属于当前用户的",key:"Operator.InCurrentUsersRelation",fun:void 0,fetchXMLOperator:"in-currentusersrelation",conditionOperator:"InCurrentUsersRelation",description:"The value is within the current user relation.",noValue:!1},NameIn:{label:"名称存在于",key:"Operator.NameIn",fun:void 0,fetchXMLOperator:"name-in",conditionOperator:"NameIn",description:"The value is within the current user relation.",noValue:!1},NameNotIn:{label:"名称不存在于",key:"Operator.NameNotIn",fun:void 0,fetchXMLOperator:"name-not-in",conditionOperator:"NameNotIn",description:"The value is not within the current user relation.",noValue:!1}};class l{}n(l,"LookupEditor","filter-value-lookup"),n(l,"LookupArrayEditor","filter-value-lookuparray"),n(l,"LookupNameArrayEditor","filter-value-lookup-name-array"),n(l,"NumberEditor","filter-value-number"),n(l,"StringEditor","filter-value-string"),n(l,"DateEditor","filter-value-date"),n(l,"PicklistEditor","filter-value-picklist"),n(l,"PicklistArrayEditor","filter-value-picklistarray"),n(l,"EntitylogicalnameEditor","filter-value-entitylogicalname"),n(l,"DateTimeBetweenEditor","filter-value-datetimebetween"),n(l,"NumberBetweenEditor","filter-value-numberbetween"),n(l,"InCurrentUsersRelationEditor","filter-value-incurrentusersrelation");const d={DateAndTimeGroup_none:[{...s.Today,editor:""},{...s.Tomorrow,editor:""},{...s.Yesterday,editor:""},{...s.Last7Days,editor:""},{...s.Next7Days,editor:""},{...s.GtToday,editor:""},{...s.GtNow,editor:""},{...s.GeToday,editor:""},{...s.LtToday,editor:""},{...s.LtNow,editor:""},{...s.LeToday,editor:""},{...s.ThisMonth,editor:""},{...s.LastMonth,editor:""},{...s.ThisWeek,editor:""},{...s.ThisYear,editor:""},{...s.LastYear,editor:""}],DateAndTimeGroup_number:[{...s.OlderThanXDays,editor:l.NumberEditor},{...s.LastXHours,editor:l.NumberEditor},{...s.NextXHours,editor:l.NumberEditor},{...s.OlderThanXHours,editor:l.NumberEditor},{...s.LastXDays,editor:l.NumberEditor},{...s.NextXDays,editor:l.NumberEditor},{...s.LastXWeeks,editor:l.NumberEditor},{...s.NextXWeeks,editor:l.NumberEditor},{...s.LastXMonths,editor:l.NumberEditor},{...s.NextXMonths,editor:l.NumberEditor},{...s.LastXYears,editor:l.NumberEditor},{...s.NextXYears,editor:l.NumberEditor}],GreaterAndLessGroup:[{...s.GreaterEqual,editor:l.NumberEditor},{...s.GreaterThan,editor:l.NumberEditor},{...s.LessEqual,editor:l.NumberEditor},{...s.LessThan,editor:l.NumberEditor}],GreaterAndLessDateGroup:[{...s.GreaterEqual,editor:l.DateEditor},{...s.GreaterThan,editor:l.DateEditor},{...s.LessEqual,editor:l.DateEditor},{...s.LessThan,editor:l.DateEditor}],NullOrNotNullGroup:[{...s.NotNull,editor:""},{...s.Null,editor:""}]},c={[a.int]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},{...s.Between,editor:l.NumberBetweenEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup],[a.float]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},{...s.Between,editor:l.NumberBetweenEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup],[a.integer]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.bigint]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.money]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.double]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.decimal]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.string]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.nvarchar]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.text]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.memo]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor}],[a.owner]:[{...s.currentUser,editor:""},{...s.notCurrentUser,editor:""},{...s.allUnder,editor:""},{...s.allUnderAndOwner,editor:""},{...s.Equal,editor:l.LookupArrayEditor},{...s.NotEqual,editor:l.LookupArrayEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.LookupArrayEditor}],[a.businessunit]:[{...s.currentBusiness,editor:""},{...s.notCurrentBusiness,editor:""},{...s.underOrEqualBusinessid,editor:""},{...s.underOrEqualCurrentbusiness,editor:""}],[a.incurrentusersrelation]:[{...s.InCurrentUsersRelation,editor:""}],[a.multipleTypeLookup]:[{...s.Equal,editor:l.LookupArrayEditor},{...s.NotEqual,editor:l.LookupArrayEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.LookupArrayEditor},{...s.NotIn,editor:l.LookupArrayEditor}],[a.customer]:[{...s.Equal,editor:l.LookupArrayEditor},{...s.NotEqual,editor:l.LookupArrayEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.LookupArrayEditor}],[a.date]:[{...s.Equal,editor:l.DateEditor},{...s.NotEqual,editor:l.DateEditor},...d.NullOrNotNullGroup,...d.DateAndTimeGroup_none,...d.GreaterAndLessDateGroup,{...s.Between,editor:l.DateTimeBetweenEditor},...d.DateAndTimeGroup_number],[a.datetime]:[{...s.Between,editor:l.DateTimeBetweenEditor},...d.NullOrNotNullGroup,...d.DateAndTimeGroup_none,...d.GreaterAndLessDateGroup,...d.DateAndTimeGroup_number],[a.picklist]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.picklistarray]:[{...s.ArrayEqual,editor:l.PicklistArrayEditor},{...s.ArrayNotEqual,editor:l.PicklistArrayEditor},...d.NullOrNotNullGroup,{...s.ArrayIn,editor:l.PicklistArrayEditor},{...s.ArrayContains,editor:l.PicklistArrayEditor}],[a.entitylogicalname]:[{...s.In,editor:l.EntitylogicalnameEditor}],[a.entityname]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor}],[a.bool]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.boolean]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.bit]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.state]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.status]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.lookup]:[{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.LookupArrayEditor},{...s.NotIn,editor:l.LookupArrayEditor}],[a.owner]:[{...s.currentUser,editor:""},{...s.notCurrentUser,editor:""},{...s.allUnder,editor:""},{...s.allUnderAndOwner,editor:""},{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup],[a.customer]:[{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup],[a.uniqueidentifier]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup],[a.timestamp]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup],[a.worker]:[{...s.currentWorker,editor:""}],[a.formstatus]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},{...s.In,editor:l.PicklistArrayEditor}],[a.role]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},{...s.In,editor:l.PicklistArrayEditor},{...s.ArrayContains,editor:l.PicklistArrayEditor}],[a.script]:[{...s.Equal,editor:l.PicklistEditor}],[a.system_params]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor}],[a.flow]:[{...s.Equal,editor:l.StringEditor,disabled:!0}],[a.formRulesLookup]:[{...s.NameIn,editor:l.LookupNameArrayEditor},{...s.NameNotIn,editor:l.LookupNameArrayEditor},...d.NullOrNotNullGroup],[a.nullOrNotNull]:[...d.NullOrNotNullGroup]},u={[a.int]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},{...s.Between,editor:l.NumberBetweenEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup],[a.float]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},{...s.Between,editor:l.NumberBetweenEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup],[a.integer]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.bigint]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.money]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.double]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.decimal]:[{...s.Equal,editor:l.NumberEditor},{...s.NotEqual,editor:l.NumberEditor},...d.GreaterAndLessGroup,...d.NullOrNotNullGroup,{...s.Between,editor:l.NumberBetweenEditor}],[a.string]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.nvarchar]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.text]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor},{...s.In,editor:l.StringEditor}],[a.memo]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup,{...s.Contains,editor:l.StringEditor},{...s.DoesNotContain,editor:l.StringEditor}],[a.businessunit]:[{...s.currentBusiness,editor:""},{...s.notCurrentBusiness,editor:""},{...s.underOrEqualCurrentbusiness,editor:""}],[a.incurrentusersrelation]:[{...s.InCurrentUsersRelation,editor:""}],[a.multipleTypeLookup]:[...d.NullOrNotNullGroup],[a.date]:[{...s.Equal,editor:l.DateEditor},{...s.NotEqual,editor:l.DateEditor},...d.NullOrNotNullGroup,...d.DateAndTimeGroup_none,...d.GreaterAndLessDateGroup,{...s.Between,editor:l.DateTimeBetweenEditor},...d.DateAndTimeGroup_number],[a.datetime]:[{...s.Between,editor:l.DateTimeBetweenEditor},...d.NullOrNotNullGroup,...d.DateAndTimeGroup_none,...d.GreaterAndLessDateGroup,...d.DateAndTimeGroup_number],[a.picklist]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.picklistarray]:[{...s.ArrayEqual,editor:l.PicklistArrayEditor},{...s.ArrayNotEqual,editor:l.PicklistArrayEditor},...d.NullOrNotNullGroup,{...s.ArrayIn,editor:l.PicklistArrayEditor},{...s.ArrayContains,editor:l.PicklistArrayEditor}],[a.entitylogicalname]:[{...s.In,editor:l.EntitylogicalnameEditor}],[a.entityname]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor}],[a.bool]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.boolean]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.bit]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup],[a.state]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.status]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},...d.NullOrNotNullGroup,{...s.In,editor:l.PicklistArrayEditor},{...s.NotIn,editor:l.PicklistArrayEditor}],[a.lookup]:[{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup],[a.owner]:[{...s.currentUser,editor:""},{...s.notCurrentUser,editor:""},{...s.allUnder,editor:""},{...s.allUnderAndOwner,editor:""},...d.NullOrNotNullGroup],[a.ownerLookup]:[{...s.currentUser,editor:""},{...s.notCurrentUser,editor:""},{...s.allUnder,editor:""},{...s.allUnderAndOwner,editor:""},{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup],[a.customer]:[{...s.Equal,editor:l.LookupEditor},{...s.NotEqual,editor:l.LookupEditor},...d.NullOrNotNullGroup],[a.uniqueidentifier]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup],[a.timestamp]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor},...d.NullOrNotNullGroup],[a.worker]:[{...s.currentWorker,editor:""}],[a.formstatus]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},{...s.In,editor:l.PicklistArrayEditor}],[a.role]:[{...s.Equal,editor:l.PicklistEditor},{...s.NotEqual,editor:l.PicklistEditor},{...s.In,editor:l.PicklistArrayEditor},{...s.ArrayContains,editor:l.PicklistArrayEditor}],[a.script]:[],[a.system_params]:[{...s.Equal,editor:l.StringEditor},{...s.NotEqual,editor:l.StringEditor}],[a.flow]:[{...s.Equal,editor:l.StringEditor,disabled:!0}]},p=["not-null","null","next-seven-days","last-seven-days","on-or-before-today","before-today","on-or-after-today","after-today","yesterday","tomorrow","today","under-currentuserid","eq-or-under-currentuserid","under-or-equal-currentbusinessid","ne-userid","eq-userid","ne-businessid","eq-businessid","before-now","after-now","this-week","this-month","this-year"],h=["next-x-years","last-x-years","next-x-months","last-x-months","next-x-weeks","last-x-weeks","next-x-days","last-x-days","olderthan-x-days","last-x-hours","next-x-hours","olderthan-x-hours"],f=["next-x-hours","last-x-hours","olderthan-x-hours"],m=[];Object.keys(s).forEach(e=>{const t=s[e];t&&t.noValue&&m.push(t.fetchXMLOperator)}),["currentUser","notCurrentUser","allUnder","allUnderAndOwner","currentOutterUser","not-null","null","today","tomorrow","yesterday","this-month","this-week","this-year","last-seven-days","next-seven-days","after-today","on-or-after-today","before-today","on-or-before-today","after-now","before-now"].forEach(e=>{m.includes(e)||m.push(e)});const g=[...u[a.ownerLookup],{...o.In,editor:l.LookupArrayEditor},{...o.NotIn,editor:l.LookupArrayEditor}],b=function(e){const t=e.toLowerCase();return c[t]||[]}},e975:function(e,t){e.exports=function e(t,r){"use strict";var i,a,n=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,o=/(^[ ]*|[ ]*$)/g,s=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,l=/^0x[0-9a-f]+$/i,d=/^0/,c=function(t){return e.insensitive&&(""+t).toLowerCase()||""+t},u=c(t).replace(o,"")||"",p=c(r).replace(o,"")||"",h=u.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=p.replace(n,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),m=parseInt(u.match(l),16)||1!==h.length&&u.match(s)&&Date.parse(u),g=parseInt(p.match(l),16)||m&&p.match(s)&&Date.parse(p)||null;if(g){if(mg)return 1}for(var b=0,y=Math.max(h.length,f.length);ba)return 1}return 0}},ea7b:function(e,t,r){"use strict";r("4d1b")},eb71:function(e,t){e.exports={indexOf:function(e,t){var r,i;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,i=e.length;r0&&(this.props.autosize={minRows:this.props.rows,maxRows:this.props.rows}),this.props.rows&&(e.addAttr("rows",this.props.rows),e.addAttr("autosize",this.props.autosize));const i=r.attributemappingsMasked.filter(e=>e.fieldName==this.props.datafieldname);let a,n=!1;if(i[0]&&i[0].fieldName==this.props.datafieldname&&"lookup"==i[0].from&&(a=i[0].value,Array.isArray(i[0].originValue)?i[0].originValue.length>0&&(n=!0):i[0].originValue instanceof Object?Object.keys(i[0].originValue).length>0&&(n=!0):null!=i[0].originValue&&""!=i[0].originValue&&null!=i[0].originValue&&(n=!0)),this.props.isMask||(n=!1),this.props.isMask||n){const r={...this.props,hideMaskIcon:n,maskFieldIsMapping:a,isTextarea:!0};this.buildMaskNode(e,t,r)}const o=this.props.datafieldname,s=r.editForm[o];if(this.props.enableTranslation&&window.rtconfig.enableTranslate&&s){const t=e.addChildByTag("plat-textarea-translate");t.addClass("textarea-translate-icon"),t.slot="textareaSuffixTop"}return e}}i=l,a="$bindNodeType",n=o.b.TextArea,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},ef2d:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.calcReadonly(t.targetComponent,t)&&i.addProp("disabled",!0),i.ref="addressparse",this.buildVNode(i,t),this.attachEventHandlers(i),e.addChild(i)}}i=d,a="$bindNodeType",n=o.b.addressparse,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},ef3e:function(e,t,r){var i=r("24fb"),a=r("1de5"),n=r("e1ce"),o=r("2570");t=i(!1);var s=a(n),l=a(o);t.push([e.i,".rt-sass-grid .el-date-editor--daterange.el-input__inner,.rt-sass-grid.el-date-editor.el-input__inner{width:100%}.rt-sass-grid .el-range-editor.el-input__inner{padding:0 10px;position:relative}.rt-sass-grid .el-date-editor .el-range-input{position:relative;top:0}.rt-sass-grid .el-date-editor .el-range-separator{color:#888;position:relative;top:-5px}.rt-sass-grid .rt-lookup .rt-icon{margin-top:9px!important}.rt-sass-grid .el-date-editor .el-range__close-icon{position:absolute;right:-1px;z-index:999}#rt-sass-grid .el-input__inner{height:34px;line-height:34px;border-radius:2px}.rt-sass-grid .el-date-editor .el-range-separator{top:-1px}.rt-sass-grid .el-tabs__nav-wrap:after{height:0}.rt-sass-grid .el-tabs__header{top:-10px;width:100%;background:#fff;left:-5px;margin-bottom:0}.rt-sass-grid .el-tabs__nav-scroll{padding-top:10px}.rt-sass-grid .el-tabs__nav-wrap{padding-left:15px}.rt-sass-grid .el-pagination .el-select .el-input .el-input__inner{border:none}.rt-sass-grid .el-pagination .btn-next,.rt-sass-grid .el-pagination .btn-prev{padding:0;width:32px;height:32px;border:1px solid #f0f0f0}.rt-sass-grid .el-pagination .btn-prev{margin-right:10px}.rt-sass-grid .el-pager li{min-width:32px;height:32px;line-height:34px;margin-right:10px;border:1px solid #f0f0f0}.rt-sass-grid .el-pager li.active{border:none}.rt-sass-grid .el-pager li.active+li{border-left:1px solid #f0f0f0}.rt-sass-grid .el-pagination__total{margin-right:0;padding-top:1px}.rt-sass-grid .el-select{top:-2px}.rt-sass-grid .el-pagination .el-input__suffix{right:10px}#rt-sass-grid .el-table th>.cell{color:rgba(0,0,0,.45)!important}#rt-sass-grid .worknum{display:block;padding:5px 0;cursor:pointer;min-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#rt-sass-grid .el-table__body tr.hover-row .worknum{text-decoration:underline}#rt-sass-grid .el-table--striped .el-table__body tr.el-table__row--striped td{background:#fafbfe}.rt-sass-grid .isshow{display:none!important}.rt-sass-grid .el-table__body tr:hover .isshow{display:block!important}.rt-sass-grid .el-table__body tr:hover td{color:#557ab4}.rt-sass-grid .el-table--scrollable-x .el-table__body-wrapper::-webkit-scrollbar{width:8px;height:8px;cursor:pointer}.rt-sass-grid .el-table--scrollable-x .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:rgba(0,0,0,.2)}.rt-sass-grid .el-table--scrollable-x .el-table__body-wrapper::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px transparent;border-radius:0;background:transparent}.rt-sass-grid .el-table--scrollable-y .el-table__body-wrapper::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0,0,0,.2);background:rgba(0,0,0,.2)}.rt-sass-grid .el-table--scrollable-y .el-table__body-wrapper::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 5px transparent;border-radius:0;background:transparent}.rt-sass-grid .el-table__fixed{height:100%!important}.rt-sass-grid .el-table__fixed-right:before,.rt-sass-grid .el-table__fixed:before{background-color:transparent}.status_wrap{border-top:1px solid #ccc;overflow:hidden;width:100%}.status_label{float:left;width:80px;margin:24px 15px;font-size:14px;color:#555}.status_item{overflow:hidden;padding-top:15px}.status_item li{float:left;padding:8px 14px;font-size:14px;border-radius:5px;margin-bottom:15px;margin-right:28px;color:#888;cursor:pointer;position:relative}.status_item li.active{background:#e4f1ff}.status_item li.active i{width:18px;height:16px;line-height:16px;text-align:right;background:#09f;position:absolute;top:0;right:0;display:block;border-radius:0 0 0 16px;color:#fff;font-size:10px}.status_item li.active .el-icon-check:before{display:block;margin-top:-1px;margin-right:2px}.delete-list-icon{display:block;width:24px;height:24px;cursor:pointer;background-image:url("+s+")}.delete-list-icon:hover{background-image:url("+l+")}.icon-tip{display:flex;align-items:center;justify-content:center;text-align:center;width:30px;height:30px;background:#09f;border-radius:2px;margin-right:10px}.rightsection-ul{margin-left:20px;margin-right:20px}.rightsection-ul li{margin-bottom:20px}.rightsection-ul li h2{min-height:18px;margin-bottom:5px}.rightsection-ul li h2 span{color:#557ab4;font-size:16px;line-height:20px}.rightsection-ul li h2 a{float:right;font-size:14px;color:#888;text-decoration:underline;cursor:pointer}.rightsection-ul li p{line-height:23px;font-size:14px;color:#839dbe;margin:0 20px 0 0;width:94%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.show-more{text-align:center;color:#888;font-size:14px}.vloading{background-image:url(data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBaAACSyGbEDYD4zN1YIEmh0SCQQgYehNmTNNaKsQJXmBuuEYPi9ECAU/UFnNzeUp9VBQEBoFOLmFxWHNoQw6RWEocEQAh+QQFBQAAACwHAAAAGQARAAAEaRDICdZZNOvNDsvfBhBDdpwZgohBgE3nQaki0AYEjEqOGmqDlkEnAzBUjhrA0CoBYhLVSkm4SaAAWkahCFAWTU0A4RxzFWJnzXFWJJWb9pTihRu5dvghl+/7NQmBggo/fYKHCX8AiAmEEQAh+QQFBQAAACwOAAAAEgAYAAAEZXCwAaq9ODAMDOUAI17McYDhWA3mCYpb1RooXBktmsbt944BU6zCQCBQiwPB4jAihiCK86irTB20qvWp7Xq/FYV4TNWNz4oqWoEIgL0HX/eQSLi69boCikTkE2VVDAp5d1p0CW4RACH5BAUFAAAALA4AAAASAB4AAASAkBgCqr3YBIMXvkEIMsxXhcFFpiZqBaTXisBClibgAnd+ijYGq2I4HAamwXBgNHJ8BEbzgPNNjz7LwpnFDLvgLGJMdnw/5DRCrHaE3xbKm6FQwOt1xDnpwCvcJgcJMgEIeCYOCQlrF4YmBIoJVV2CCXZvCooHbwGRcAiKcmFUJhEAIfkEBQUAAAAsDwABABEAHwAABHsQyAkGoRivELInnOFlBjeM1BCiFBdcbMUtKQdTN0CUJru5NJQrYMh5VIFTTKJcOj2HqJQRhEqvqGuU+uw6AwgEwxkOO55lxIihoDjKY8pBoThPxmpAYi+hKzoeewkTdHkZghMIdCOIhIuHfBMOjxiNLR4KCW1ODAlxSxEAIfkEBQUAAAAsCAAOABgAEgAABGwQyEkrCDgbYvvMoOF5ILaNaIoGKroch9hacD3MFMHUBzMHiBtgwJMBFolDB4GoGGBCACKRcAAUWAmzOWJQExysQsJgWj0KqvKalTiYPhp1LBFTtp10Is6mT5gdVFx1bRN8FTsVCAqDOB9+KhEAIfkEBQUAAAAsAgASAB0ADgAABHgQyEmrBePS4bQdQZBdR5IcHmWEgUFQgWKaKbWwwSIhc4LonsXhBSCsQoOSScGQDJiWwOHQnAxWBIYJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs=);background-repeat:no-repeat;width:35px;height:35px;top:50%;left:50%;position:absolute}.vDiv{height:100%;width:100%;background-color:#f1f3f7;text-align:center;vertical-align:middle}.wxOpenData{line-height:35px}.wxOpenDataInputSpan{height:35px;line-height:35px}.wxOpenDataTag{margin-top:6px;color:#627084;font-size:14px;margin-right:16px;font-weight:400}",""]),e.exports=t},ef49:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-base-loading-dialog[data-v-76de9893]{display:none}[data-v-76de9893] .plat-standard-dialog .el-dialog__body{overflow:unset}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(70vh - 47px);overflow:hidden;display:flex;flex-direction:column}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode>.apaas-vlist-wrapper{height:100%;overflow-y:auto}[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog{height:unset}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(100vh - 87px)}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-oversize[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(100vh - 147px);overflow-y:auto}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(80vh - 47px)}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-large[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(80vh - 107px);overflow-y:auto}.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper,.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-list-header .rt-list-header-top{padding-right:12px}.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.content-vlistView>.rt-view-wrapper .rt-tabs.rt-saas-tabs.plat-saas-tabs .rt-list-header .rt-list-header-top{padding:12px 16px}.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode{max-height:calc(60vh - 47px)}.rt-dialog-small[data-v-76de9893] .plat-standard-dialog .el-dialog__body>.rt-dialog-content-wrapper>.apaas-dialog-mode .rt-content-wrapper{max-height:calc(60vh - 107px);overflow-y:auto}",""]),e.exports=t},ef51:function(e,t,r){"use strict";function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,"b",(function(){return a})),r.d(t,"e",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"g",(function(){return s})),r.d(t,"c",(function(){return l})),r.d(t,"i",(function(){return d})),r.d(t,"h",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"a",(function(){return p}));class a{}var n,o,s,l;i(a,"Unknown","unknown-control"),i(a,"Cell","cell"),i(a,"Sectioncard","sectioncard"),i(a,"Form","form"),i(a,"Content","content"),i(a,"Columns","columns"),i(a,"Column","column"),i(a,"Header","header"),i(a,"HeaderIcon","headericon"),i(a,"HeaderTitle","headertitle"),i(a,"Queryselector","queryselector"),i(a,"Row","row"),i(a,"Tabs","tabs"),i(a,"NewTabs","newtabs"),i(a,"Tab","tab"),i(a,"Control","control"),i(a,"Sections","sections"),i(a,"Section","section"),i(a,"DetailHeader","detailheader"),i(a,"grid","grid"),i(a,"gridheader","gridheader"),i(a,"gridtable","gridtable"),i(a,"cardTable","cardTable"),i(a,"cardTableToolbar","cardTableToolbar"),i(a,"cardTableButton","cardTableButton"),i(a,"gridcell","gridcell"),i(a,"gridCondition","gridcondition"),i(a,"gridconditions","gridconditions"),i(a,"formItem","formitem"),i(a,"toolbar","toolbar"),i(a,"Radio","radio"),i(a,"ButtonGroup","rc-button-group"),i(a,"Button","button"),i(a,"Button_Add","button.add"),i(a,"Button_BatchDelete","button.batchdelete"),i(a,"Button_Save","button.save"),i(a,"Button_Delete","button.delete"),i(a,"Button_Enable","button.enable"),i(a,"Button_Disable","button.disable"),i(a,"Button_DiableOrEnable","button.disableorenable"),i(a,"Button_SubGrid_Prefix","button.subgrid."),i(a,"Button_SubGrid_Add","button.subgrid.add"),i(a,"Button_SubGrid_BatchDelete","button.subgrid.batchdelete"),i(a,"Button_SubGrid_Delete","button.subgrid.delete"),i(a,"Button_SubGrid_RowDelete","button.subgrid.rowdelete"),i(a,"Button_SubGrid_RowEdit","button.subgrid.rowedit"),i(a,"Button_SubGrid_Edit","button.subgrid.edit"),i(a,"Button_SubGrid_Custom","button.subgrid.custom"),i(a,"Button_SubGrid_RowCustom","button.subgrid.rowcustom"),i(a,"SubGrid","subgrid"),i(a,"Input","input"),i(a,"Lookup","lookup"),i(a,"Tag","tag"),i(a,"Printinput","printinput"),i(a,"DateTime","datetime"),i(a,"Picklist","picklist"),i(a,"RelationDialog","relationdialog"),i(a,"Notes","notes"),i(a,"GroupNotes","groupnotes"),i(a,"Audits","audits"),i(a,"Iframe","iframe"),i(a,"Steps","steps"),i(a,"Timeline","timeline"),i(a,"LogisticsTrack","logisticstrack"),i(a,"Cron","cron"),i(a,"Logo","logo"),i(a,"Filterdrawer","filterdrawer"),i(a,"UserCustomBtn","userCustomBtn"),i(a,"Manytomanylookup","manytomanylookup"),i(a,"FlowApprovalList","rt-flowapprovallist"),i(a,"FlowSubmit","rt-flowsubmit"),i(a,"FlowApprove","rt-flowapprove"),i(a,"GrantAccessDialog","grantaccessdialog"),i(a,"UserQueryDialog","userquerydialog"),i(a,"UserViewDialog","userviewdialog"),i(a,"EchartDrawer","echartdrawer"),i(a,"AssignDialog","assigndialog"),i(a,"Dialog","dialog"),i(a,"DialogForm","dialog-form"),i(a,"RelationWordTemplateDialog","relationWordTemplateDialog"),i(a,"Wordtemplatedialog","wordtemplatedialog"),i(a,"RelationImportExcelDialog","relationImportExcelDialog"),i(a,"Vdialog","vdialog"),i(a,"Vdrawer","vdrawer"),i(a,"Excelexportdialog","excelexportdialog"),i(a,"MappingExcelImportDialog","mappingexcelimportdialog"),i(a,"Excelexportnewdialog","excelexportnewdialog"),i(a,"Editor","editor"),i(a,"Cascader","cascader"),i(a,"StatuslineView","statusline-view"),i(a,"TimelineView","timeline-view"),i(a,"Phone","phone"),i(a,"Boolean","boolean"),i(a,"Decimal","decimal"),i(a,"ImageField","imagefield"),i(a,"TextArea","textarea"),i(a,"Number","number"),i(a,"Money","money"),i(a,"MultipleLookupField","multiple-lookup-field"),i(a,"form","form"),i(a,"tabs","tabs"),i(a,"tab","tab"),i(a,"columns","columns"),i(a,"column","column"),i(a,"sections","sections"),i(a,"section","section"),i(a,"rows","rows"),i(a,"row","row"),i(a,"cell","cell"),i(a,"control","control"),i(a,"formheader","formheader"),i(a,"events","events"),i(a,"event","event"),i(a,"FormEvent",a.event),i(a,"navigation","navigation"),i(a,"controldescriptions","controldescriptions"),i(a,"formlibraries","formlibraries"),i(a,"rules","rules"),i(a,"hooks","hooks"),i(a,"hook","hook"),i(a,"tags","tags"),i(a,"tag","tag"),i(a,"subgrid","subgrid"),i(a,"notes","notes"),i(a,"gridcondition","gridcondition"),i(a,"gridorderfield","gridorderfield"),i(a,"gridorders","gridorders"),i(a,"mobilelistitem","mobilelistitem"),i(a,"mobilelistitemprimary","mobilelistitemprimary"),i(a,"mobilelistitemstatus","mobilelistitemstatus"),i(a,"text","text"),i(a,"addressparse","addressparse"),i(a,"AddressLocation","address-location"),i(a,"InputAddress","input-address"),i(a,"autograph","autograph"),i(a,"viewsecondfield","viewsecondfield"),i(a,"viewprimaryfield","viewprimaryfield"),i(a,"viewcontentfield","viewcontentfield"),i(a,"navbar","navbar"),i(a,"navbaritem","navbaritem"),i(a,"navbarbyrelationshipitem","navbarbyrelationshipitem"),i(a,"navbarareas","navbarareas"),i(a,"libraries","libraries"),i(a,"customerComponent","customerComponent"),i(a,"ScanInput","scaninput"),i(a,"CommentComponent","commentcomponent"),i(a,"MobileApprovalProgress","mobileapprovalprogress"),i(a,"JMobileApprovalProgress","jmobileapprovalprogress"),i(a,"CustomDisplayField","customdisplayfield"),i(a,"Attribute","rt-saas-attributes"),i(a,"RtSaasEntities","rt-saas-entities"),i(a,"RtSaasEntitiesLookup","rt-saas-entities-lookup"),i(a,"DatetimeBetween","input-datetimebetween"),i(a,"AppHeaderImage","appheader-image"),i(a,"InputIcon","inputicon"),i(a,"PartyList","partylist"),i(a,"TeamMembers","teammembers"),i(a,"Remark","remark"),function(e){e[e.PCQuery=10]="PCQuery",e[e.PCForm=20]="PCForm",e[e.PCUserQuery=11]="PCUserQuery",e[e.PCSubGrid=30]="PCSubGrid",e[e.PCFormRule=40]="PCFormRule",e[e.PCPrintForm=50]="PCPrintForm"}(n||(n={})),function(e){e[e.create=0]="create",e[e.edit=1]="edit",e[e.detail=2]="detail",e[e.print=3]="print"}(o||(o={})),function(e){e[e.None=0]="None",e[e.SystemRequired=1]="SystemRequired",e[e.ApplicationRequired=2]="ApplicationRequired",e[e.ReadOnly=3]="ReadOnly",e[e.CalculateFields=4]="CalculateFields"}(s||(s={})),function(e){e[e.Boolean=0]="Boolean",e[e.Customer=1]="Customer",e[e.DateTime=2]="DateTime",e[e.Decimal=3]="Decimal",e[e.Double=4]="Double",e[e.Integer=5]="Integer",e[e.Lookup=6]="Lookup",e[e.Memo=7]="Memo",e[e.Money=8]="Money",e[e.Owner=9]="Owner",e[e.PartyList=10]="PartyList",e[e.Picklist=11]="Picklist",e[e.State=12]="State",e[e.Status=13]="Status",e[e.String=14]="String",e[e.Uniqueidentifier=15]="Uniqueidentifier",e[e.CalendarRules=16]="CalendarRules",e[e.Virtual=17]="Virtual",e[e.BigInt=18]="BigInt",e[e.ManagedProperty=19]="ManagedProperty",e[e.EntityName=20]="EntityName",e[e.Image=21]="Image",e[e.PrimaryKey=100]="PrimaryKey",e[e.Short=101]="Short",e[e.Byte=102]="Byte",e[e.Binary=103]="Binary",e[e.TimeStamp=104]="TimeStamp",e[e.Json=105]="Json",e[e.JsonB=106]="JsonB",e[e.MultipleTypeLookup=30]="MultipleTypeLookup",e[e.EntityLogicalName=31]="EntityLogicalName",e[e.PicklistArray=32]="PicklistArray"}(l||(l={}));const d=[{label:"自定义",value:"custom"},{label:"业务操作",value:"business"},{label:"新增",value:"add"},{label:"编辑",value:"edit"},{label:"保存",value:"save"},{label:"保存",value:"saveWithOptions"},{label:"保存",value:"save&new"},{label:"保存并提交",value:"save&submit"},{label:"查看隐私信息",value:"showMask"},{label:"添加行",value:"addsubgridrow"},{label:"审批",value:"flowapprove"},{label:"提交",value:"submitapprove"},{label:"撤回",value:"revoke"},{label:"审批历史记录",value:"approvelist"},{label:"提交|撤回",value:"submitapprove|revoke"},{label:"同意",value:"approvalagree"},{label:"加签",value:"approvalcountersign"},{label:"转办",value:"approvaltransfer"},{label:"否决",value:"approvaloverrule"},{label:"驳回",value:"approvalreject"},{label:"删除",value:"delete"},{label:"删除",value:"batchdelete"},{label:"共享",value:"grantaccess"},{label:"分派",value:"Assign"},{label:"批量上传(图片)",value:"importallimage"},{label:"导入",value:"import"},{label:"导入",value:"importtemplate"},{label:"导出本页",value:"exportpage"},{label:"导出本页(图片)",value:"exportpageimg"},{label:"导出全部",value:"exportall"},{label:"导出全部(图片)",value:"exportallimg"},{label:"重载",value:"reload"},{label:"启用|停用",value:"disable|enable"},{label:"停用",value:"disable"},{label:"启用",value:"enable"},{label:"个人视图",value:"adduserquery"},{label:"电话",value:"phone"},{label:"打印",value:"print"},{label:"弹出视图",value:"dialog-view"},{label:"下载打印文件",value:"downLoadPrintWord"},{label:"预览打印文件",value:"previewPrintWord"},{label:"下载打印文件",value:"downLoadBatchPrintWord"},{label:"预览打印文件",value:"previewBatchPrintWord"},{label:"批量上传(附件图片)",value:"importallFileimage"}],c={add:{langkey:"BUTTON_ADD"},delete:{langkey:"BUTTON_DELETE"},batchdelete:{langkey:"BUTTON_DELETE"},import:{langkey:"BUTTON_IMPORT"},importtemplate:{langkey:"BUTTON_IMPORT"},grantaccess:{langkey:"BUTTON_SHARE"},adduserquery:{langkey:"BUTTON_USERQUERY"},exportpage:{langkey:"commonc.exportbypage"},exportpageimg:{langkey:"common.exportimgpage"},exportall:{langkey:"common.exportall"},exportallimg:{langkey:"common.exportimgall"},Assign:{langkey:"BUTTON_FENPAI"},showMask:{langkey:"BUTTON_SHOWMASK"},print:{langkey:"BUTTON_PRINT"},importallimage:{langkey:"BUTTON_IMPORTALLIMAGE"},enable:{langkey:"BUTTON_ENABLE"},disable:{langkey:"BUTTON_DISABLE"},saveWithOptions:{langkey:"BUTTON_SAVEWITHOPTIONS"},reload:{langkey:"BUTTON_RELOAD"},phone:{langkey:"BUTTON_PHONE"},downLoadPrintWord:{langkey:"BUTTON_DOWNLOADPRINTWORD"},previewPrintWord:{langkey:"BUTTON_PREVIEWPRINTWORD"},importallFileimage:{langkey:"BUTTON_IMPORTALLFILEIMAGE"},edit:{langkey:"BUTTON_EDIT"},rowdelete:{langkey:"BUTTON_DELETE"},executeworkflowbyconfig:{langkey:"BUTTON_EXECUTEWORKFLOW"},save:{langkey:"BUTTON_SAVE"},"save&new":{langkey:"BUTTON_SAVE"},"disable|enable":{langkey:""},flowapprove:{langkey:"BUTTON_Approve"},submitapprove:{langkey:"BUTTON_SUBMIT"},"save&submit":{langkey:"BUTTON_SaveAndSubmit"},revoke:{langkey:"common.recall"},"submitapprove|revoke":{langkey:""},approvelist:{langkey:"Approvelist"},newsubmitapprove:{langkey:"BUTTON_SUBMIT"},newrevoke:{langkey:"common.recall"},"newsubmitapprove|revoke":{langkey:""},newapprovelist:{langkey:"Approvelist"},approvalagree:{langkey:"BUTTON_Agree"},approvalcountersign:{langkey:"BUTTON_Countersign"},approvaltransfer:{langkey:"BUTTON_Transfer"},approvaloverrule:{langkey:"BUTTON_Overrule"},approvalreject:{langkey:"BUTTON_Reject"},addsubgridrow:{langkey:"platform.addSubgrid"},downLoadBatchPrintWord:{langkey:"BUTTON_DOWNLOADPRINTWORD"},previewBatchPrintWord:{langkey:"BUTTON_PREVIEWPRINTWORD"}};var u,p,h,f;!function(e){e[e.Default=-1]="Default",e[e.One2Many=0]="One2Many",e[e.Many2Many=1]="Many2Many",e[e.Many2One=2]="Many2One"}(u||(u={})),function(e){e[e.PC=1]="PC",e[e.MOBILE=2]="MOBILE",e[e.ALL=3]="ALL"}(p||(p={})),function(e){e[e.All=0]="All",e[e.Createdby=1]="Createdby",e[e.Owner=2]="Owner"}(h||(h={})),function(e){e.ExportPage="exportPage",e.ExportPageImg="exportPageImg",e.ExportAll="exportAll",e.ExportAllImg="exportAllImg"}(f||(f={}))},ef99:function(e,t,r){var i=r("b994");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7ab06810",i,!0,{sourceMap:!1,shadowMode:!1})},efbb:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat_echart_dialog[data-v-7e477608] .el-dialog__body .chart-all .chart-content{height:70vh}.plat_echart_dialog[data-v-7e477608] .plat-chart-dialog-title{display:flex;align-items:center}.plat_echart_dialog[data-v-7e477608] .plat-chart-dialog-title .jump-to-help-document{margin:0 4px 0 12px}.plat_echart_dialog[data-v-7e477608] .plat-chart-dialog-title .jump-to-help-document+.plat-chart-dialog-title-sub{line-height:19px}.plat_echart_dialog[data-v-7e477608] .plat-chart-dialog-title .plat-chart-dialog-title-sub{margin-left:6px;font-size:14px;font-weight:400;color:#989fb3}.plat_echart_dialog[data-v-7e477608] .el-dialog__body{overflow:hidden}.plat_echart_dialog[data-v-7e477608] .el-dialog__body .chart-all,.plat_echart_dialog[data-v-7e477608] .el-dialog__body .chart-all .chart-content{height:calc(70vh - 10px)}.plat_echart_dialog[data-v-7e477608] .el-dialog__body .chart-all .chart-content .chart-settting .chart-design .rt-tabs__content{height:calc(70vh - 136px)}",""]),e.exports=t},f087:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".plat-list-empty[data-v-3064fba8]{margin:32px auto 40px}.plat-list-empty[data-v-3064fba8] .rtxpc-image-content{display:flex}.plat-list-empty[data-v-3064fba8] .rtxpc-image-content .list-empty_img{height:100px;width:auto}.plat-list-empty .list-empty_describe[data-v-3064fba8]{font-size:14px;color:#788796;line-height:19px;font-style:normal}",""]),e.exports=t},f0a1:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return s}));var i=r("ef51"),a=r("0711"),n=r("6f75");function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class s extends a.a{constructor(e){super(e),o(this,"VueTag",n.a.ImageField)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=t.targetComponent;e.addProp("attributename",this.props.datafieldname),e.addProp("entityname",r.objectTypeName),e.addProp("required",this.props.required),e.addProp("disabled",this.props.disabled),e.addProp("referencedEntityLogicalName",this.props.referencedEntityLogicalName),e.ref="imagefield_"+this.props.attributename,e.addProp("objectid",r.objectId);const i=r.editForm[this.props.datafieldname];return i&&(0==i.indexOf("http")?e.props.value=i:e.props.value=rt.getBaseUrl()+i),e}changeInputTag(e,t){this.props.RequiredLevel&&[i.g.ReadOnly,i.g.CalculateFields].includes(this.props.RequiredLevel)&&e.addProp("disabled",!0)}}o(s,"$bindNodeType",i.b.ImageField)},f0b5:function(e,t,r){"use strict";r("acc9")},f142:function(e,t,r){var i=r("8871");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("7b418f48",i,!0,{sourceMap:!1,shadowMode:!1})},f157:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return l}));var i=r("ef51"),a=r("a829"),n=r("e3bf"),o=r("6f75");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class l extends n.a{constructor(e){super(e),s(this,"VueTag",o.a.Tag)}createVNode(e,t){const r=new a.e(o.a.Tag),n=this.props,s=t.targetComponent;if(r.nodeType=this.$nodetype,this.extendTag(r,t),this.buildVNode(r,t),e&&e.nodeType==i.b.HeaderTitle&&(r.addProp("maxWidth",600),s.paramHideHeaderIcon&&r.addClass("form-header-tag")),r.addProp("fieldType",n.fieldType),r.addProp("color",n.color),r.addProp("round",n.round),r.addProp("size","medium"),r.addProp("picklistOptions",n.picklistOptions),r.addProp("dark",!0),["picklist","bit","state","status"].includes(n.attributeType&&n.attributeType.toLocaleLowerCase())&&n.enablePicklistColor){let e,t;const i=s.editForm.FormattedColors[n.datafieldname];i?i.startsWith("#")?e=i:(e=s.SCSS_VARIABLES[i]||i,"COLOR_I1"===i&&(t=s.SCSS_VARIABLES.NEUTRAL_COLOR_PRIMARY)):(e=s.SCSS_VARIABLES.COLOR_I1,t=s.SCSS_VARIABLES.BREADCRUMB_FONT_COLOR_ACTIVE),r.addProp("bgColor",e),r.addProp("fontColor",t)}else r.addProp("colorType",n.colorType);this.appendNode(e,r,t)}extendTag(e,t){const r=t.targetComponent,i=this.props.datafieldname?r.getAttributeDisplayText(this.props.datafieldname,this.props.attributeType,this.props.picklistOptions):"";this.props.hidden_formstatus=0==r.formStatus,r.dataLoaded&&this.isEmpty(i)?e.tag="span":(this.props.colorType||(this.props.colorType="primary"),i&&(i instanceof Object==1&&i.hasOwnProperty("reference")?e.vtext=i.text:e.vtext=i))}isEmpty(e){return!e||(e instanceof Array?0===e.length:e instanceof Object?0===Object.keys(e).length:void 0)}}s(l,"$bindNodeType",i.b.tag)},f182:function(e,t,r){"use strict";r("a35d")},f1b4:function(e,t,r){var i=r("a65f");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2bf9ddd8",i,!0,{sourceMap:!1,shadowMode:!1})},f200:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".requiredLevel.rt-picklist[data-v-066568e0] .is-disabled .el-input__inner{padding-left:15px;color:#c0c4cc}",""]),e.exports=t},f202:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return o}));var i=r("ef51"),a=r("e3bf");function n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class o extends a.a{constructor(e){super(e),n(this,"VueTag","div")}}n(o,"$bindNodeType",i.b.navbaritem)},f2e6:function(e,t,r){"use strict";r("8ff5")},f398:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".fecth-filters .row-group[data-v-72c18b1e]{display:flex;margin:6px 0 0 6px}.fecth-filters .row-group .col-group-operator[data-v-72c18b1e]{display:flex;align-items:center;justify-content:center;width:60px;background-color:#eee}.fecth-filters .row-group .col-group-operator[data-v-72c18b1e] .el-dropdown-link{display:flex;color:#4e5969}.fecth-filters .row-group .row-field[data-v-72c18b1e]{flex:1}.fecth-filters .row-group .condition-selected[data-v-72c18b1e]{background-color:#0072e6}.fecth-filters .row-group .condition-selected[data-v-72c18b1e] .el-dropdown,.fecth-filters .row-group .condition-selected[data-v-72c18b1e] .el-dropdown-link{color:#fff}.fecth-filters .row-attribute[data-v-72c18b1e]{display:flex;align-items:center;margin:0 0 6px 6px}.fecth-filters .row-attribute .col-operator[data-v-72c18b1e]{display:flex;align-items:center;justify-content:center;min-width:62px}.fecth-filters .row-attribute .col-operator[data-v-72c18b1e] .el-dropdown-link{display:flex;color:#4e5969}.fecth-filters .row-attribute .condition-selected[data-v-72c18b1e]{height:32px;background-color:#0072e6}.fecth-filters .row-attribute .condition-selected[data-v-72c18b1e] .el-dropdown,.fecth-filters .row-attribute .condition-selected[data-v-72c18b1e] .el-dropdown-link{color:#fff}.col-attribute-default[data-v-72c18b1e] .fetch-condition-container{width:50vw}.col-attribute-default[data-v-72c18b1e] .fetch-condition-container .fetch-select{width:33.3333%}.col-attribute-default[data-v-72c18b1e] .fetch-condition-container .fetch-select:nth-child(2){width:25%}.col-attribute-default[data-v-72c18b1e] .fetch-condition-container .filter-value{width:41.6667%;max-width:inherit}.col-attribute-default[data-v-72c18b1e] .fetch-condition-container .filter-value .fetch-select{width:100%}",""]),e.exports=t},f4a0:function(e,t,r){var i=r("e3b7");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("3012ea49",i,!0,{sourceMap:!1,shadowMode:!1})},f533:function(e,t,r){var i=r("3e9a");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1e9e7374",i,!0,{sourceMap:!1,shadowMode:!1})},f541:function(e,t,r){"use strict";r("4666")},f5d3:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".menu[data-v-2cf38434]{position:fixed;padding:8px 0;background:#fff;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04)}.menu_body[data-v-2cf38434]{display:block}.menu_item[data-v-2cf38434]{display:flex;align-items:center;padding:0 16px;margin:0;font-size:13px;line-height:32px;list-style:none;border-bottom:1px solid transparent;outline:0;transition:.2s}.menu_item__divided[data-v-2cf38434]{border-bottom-color:#ebeef5}.menu_item .menu_item_icon[data-v-2cf38434]{width:13px;margin-right:8px}.menu_item .menu_item_label[data-v-2cf38434]{flex:1}.menu_item .menu_item_expand_icon[data-v-2cf38434]{width:10px;margin-left:16px;font-size:6px}.menu_item__available[data-v-2cf38434]{color:#606266;cursor:pointer}.menu_item__available[data-v-2cf38434]:hover{color:#409eff;background:#ecf5ff}.menu_item__disabled[data-v-2cf38434]{color:#c0c4cc;cursor:not-allowed}.menu_item_expand[data-v-2cf38434]{color:#409eff;background:#ecf5ff}",""]),e.exports=t},f66a:function(e,t,r){var i=r("74ab");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("1bb3cc48",i,!0,{sourceMap:!1,shadowMode:!1})},f66d:function(e,t,r){var i=r("1d91");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("2c44dc58",i,!0,{sourceMap:!1,shadowMode:!1})},f688:function(e,t,r){var i=r("8536");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("c4c31e66",i,!0,{sourceMap:!1,shadowMode:!1})},f6dc:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var i,a=r("9ab4"),n=r("1b40"),o=r("6053");function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e[e.Default=0]="Default",e[e.On=1]="On",e[e.Off=2]="Off"}(i||(i={}));let l=class extends(Object(n.c)(o.a)){constructor(...e){super(...e),s(this,"brules",[]),s(this,"editForm",{}),s(this,"relatedForm",{}),s(this,"systemParams",{}),s(this,"$store",void 0),s(this,"sourceFlowId",void 0),s(this,"activityId",void 0),s(this,"actualSourceFlowId",this.sourceFlowId||""),s(this,"actualActivityId",this.activityId||"")}get jumpRefAttribute(){return""}mounted(){this.actualSourceFlowId=this.sourceFlowId||"",this.actualActivityId=this.activityId||""}restructRule(e){if(!e||"formrule-ifstatement"!=e.$nodetype)return null;const t={conditionList:[],conditionRuleType:e.props.filterType||"all",YResult:[],YChildren:[],NResult:[],NChildren:[]};for(const r of e.children)if("formrule-condition"==r.$nodetype&&t.conditionList.push(r.props),"formrule-conditionresult"==r.$nodetype){const e=r.props,i=[],a=[];for(const t of r.children)if("formrule-operation"==t.$nodetype&&i.push(t.props),"formrule-ifstatement"==t.$nodetype){const e=this.restructRule(t);e&&a.push(e)}"yes"==e.matchResult?(t.YResult=i,t.YChildren=a):(t.NResult=i,t.NChildren=a)}return t}ruleOperation(e,t,r={}){if(e&&e.length>0)for(const i of e)if(i.conditionList&&i.conditionList.length>0)if(this.evaluateConditions(i.conditionList,i.conditionRuleType)){const e=i.YResult;this.createRules(e,r,t),i.YChildren&&i.YChildren.length>0&&this.ruleOperation(i.YChildren,t,r)}else{const e=i.NResult;this.createRules(e,r,t),i.NChildren&&i.NChildren.length>0&&this.ruleOperation(i.NChildren,t,r)}return r}evaluateConditions(e,t="all"){if(!e||0===e.length)return!0;const r=e.map(e=>{const t=this.getConditionValue(e);return!!t.status&&this.conditionSure(e,t.value)});return"any"===t?r.some(e=>!0===e):r.every(e=>!0===e)}getConditionValue(e){const t={status:!0,value:""},r=e.attribute;if(!r)return;let i;if("flow"===r)i=!0;else switch(e.groupType){case 1:i=this.editForm[r];break;case 2:switch(r){case"formStatus":i=this.formStatus;break;case"role":i=this.$store.state.user.roles;break;case"script":i=this.getFunctionByExpression(e.value,[]).call(this)}break;case 3:i=this.systemParams[r];break;case 4:i=this.getRelatedValue(e)}return t.value=i,t}createRules(e,t,r){if(e&&e.length>0)for(const a of e){const e=a.operationType,{boundForm:n=[],datafields:o,boundButtons:s=[],boundSection:l=[],boundSubgrid:d=[],boundTab:c=[],boundCustomComponent:u=[],boundNotes:p=[],boundRemark:h=[],boundRelaEntities:f}=a,m=[...n,...s,...l,...d,...c,...u,...p,...h],g=[];for(const t in a)a[t]instanceof Object&&a[t].hasOwnProperty("itemName")&&g.push(a[t]);switch(g.length&&(r._formRulesExtra=(r._formRulesExtra||[]).concat(g)),"string"==typeof o?m.push(o):o instanceof Array&&m.push(...o),e){case"SetRequired":m.forEach(e=>{this.setRuleByKey(t,e,"required",i.On)});break;case"CancelRequired":m.forEach(e=>{this.setRuleByKey(t,e,"required",i.Off)});break;case"Lock":m.forEach(e=>{this.setRuleByKey(t,e,"readonly",i.On)});break;case"Unlock":m.forEach(e=>{this.setRuleByKey(t,e,"readonly",i.Off)});break;case"ShowFields":m.forEach(e=>{this.setRuleByKey(t,e,"visible",i.On)});break;case"HideFields":m.forEach(e=>{this.setRuleByKey(t,e,"visible",i.Off)})}}}setRuleByKey(e,t,r,a){const n=e[t]?e[t]:{required:i.Default,readonly:i.Default,visible:i.Default};n[r]=a,e[t]=n}conditionSure(e,t){const r=e.operator;let i=e.value;i instanceof Array&&(i=[...i]),t instanceof Array&&(t=[...t]);let a=!1;if("script"===e.attribute||"flow"===e.attribute)return t;switch(r){case"eq":a=i==t;break;case"ne":a=i!=t;break;case"array-equal":if(t instanceof Array&&i instanceof Array){const e=i.sort().join(",");a=t.sort().join(",")===e}break;case"array-not-equal":if(t instanceof Array&&i instanceof Array){const e=i.sort().join(",");a=t.sort().join(",")!==e}else a=!0;break;case"in":i instanceof Array||(i=(i||"").split(/,|,|\s+/)),a=t instanceof Array?!!t.length&&t.every(e=>i.findIndex(t=>t==e)>-1):i.findIndex(e=>e==t)>-1;break;case"not-in":i instanceof Array||(i=(i||"").split(/,|,|\s+/)),a=t instanceof Array?!t.length||t.some(e=>-1===i.findIndex(t=>t==e)):-1===i.findIndex(e=>e==t);break;case"array-in":t instanceof Array&&i instanceof Array&&(a=!!t.length&&t.every(e=>i.findIndex(t=>t==e)>-1));break;case"array-contains":t instanceof Array&&i instanceof Array&&(a=!!t.length&&i.every(e=>t.findIndex(t=>t==e)>-1));break;case"not-null":a=t instanceof Array?0!==t.length:!(null==t||""===t);break;case"null":a=t instanceof Array?0===t.length:null==t||""===t;break;case"like":a=(t||"").indexOf(i)>-1;break;case"not-like":a=-1===(t||"").indexOf(i);break;case"ge":a=null!=t&&""!==t&&t>=i;break;case"gt":a=null!=t&&""!==t&&t>i;break;case"le":a=null!=t&&""!==t&&t<=i;break;case"lt":a=null!=t&&""!==t&&t=i[0]&&t<=i[1];break;case"today":a=0==this.judgeTime(t.replace(/-|T|:/g,""));break;case"tomorrow":a=-1==this.judgeTime(t.replace(/-|T|:/g,""));break;case"yesterday":a=1==this.judgeTime(t.replace(/-|T|:/g,""));break;case"after-today":a=this.judgeTime(t.replace(/-|T|:/g,""))<0;break;case"on-or-after-today":a=this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"before-today":a=this.judgeTime(t.replace(/-|T|:/g,""))>0;break;case"on-or-before-today":a=this.judgeTime(t.replace(/-|T|:/g,""))>=0;break;case"olderthan-x-days":a=this.judgeTime(t.replace(/-|T|:/g,""))>t;break;case"this-month":const e=this.judgeTime(t.replace(/-|T|:/g,""));a=e<=31&&e>=-31&&new RtDate(t).getMonth()==(new RtDate).getMonth();break;case"last-month":a=new RtDate(t).getMonth()==(new RtDate).getMonth()-1;break;case"this-week":const r=this.judgeTime(t.replace(/-|T|:/g,""));a=r<=7&&r>=-7&&this.getWeek(new RtDate(t))==this.getWeek(new RtDate);break;case"this-year":a=new RtDate(t).getFullYear()==(new RtDate).getFullYear();break;case"last-year":a=new RtDate(t).getFullYear()==(new RtDate).getFullYear()-1;break;case"last-seven-days":a=this.judgeTime(t.replace(/-|T|:/g,""))<7&&this.judgeTime(t.replace(/-|T|:/g,""))>=0;break;case"next-seven-days":a=this.judgeTime(t.replace(/-|T|:/g,""))>-7&&this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"last-x-days":a=this.judgeTime(t.replace(/-|T|:/g,""))=0;break;case"next-x-days":a=this.judgeTime(t.replace(/-|T|:/g,""))>-i&&this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"last-x-weeks":a=this.judgeTime(t.replace(/-|T|:/g,""))<7*i&&this.judgeTime(t.replace(/-|T|:/g,""))>=0;break;case"next-x-weeks":a=this.judgeTime(t.replace(/-|T|:/g,""))>7*-i&&this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"last-x-months":a=this.judgeTime(t.replace(/-|T|:/g,""))<30*i&&this.judgeTime(t.replace(/-|T|:/g,""))>=0;break;case"next-x-months":a=this.judgeTime(t.replace(/-|T|:/g,""))>30*-i&&this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"last-x-years":a=this.judgeTime(t.replace(/-|T|:/g,""))<365*i&&this.judgeTime(t.replace(/-|T|:/g,""))>=0;break;case"next-x-years":a=this.judgeTime(t.replace(/-|T|:/g,""))>365*-i&&this.judgeTime(t.replace(/-|T|:/g,""))<=0;break;case"eq-userid":a=t==this.editForm.ownerid.id;break;case"name-in":if(i instanceof Array){const e=t&&t.name||"";a=i.includes(e)}else a=!1;break;case"name-not-in":if(i instanceof Array){const e=t&&t.name||"";a=!i.includes(e)}else a=!1}return a}judgeTime(e){const t=e.toString(),r=t.substring(0,4),i=t.substring(4,6),a=t.substring(6,8),n=new RtDate(r+"/"+i+"/"+a),o=new RtDate,s=o.getFullYear(),l=o.getMonth()+1,d=o.getDate();return(new RtDate(s+"/"+l+"/"+d).getTime()-n.getTime())/1e3/60/60/24}getWeek(e){const t=new RtDate(e),r=new RtDate(e);r.setMonth(0),r.setDate(1);const i=t.getTime()-r.getTime(),a=Math.ceil(i/864e5);return Math.ceil(a/7)+1}getRelatedValue(e){const{referencedEntityName:t,referencingAttributeName:r,attribute:i}=e;let a={};r&&this.relatedForm.hasOwnProperty(r)&&(a=this.relatedForm[r]);const n=this.jumpFromEntity;return n&&n.$logicalname===t&&(r?this.jumpRefAttribute===r&&(a=n):a=n),a&&a[i]}};Object(a.__decorate)([Object(n.d)()],l.prototype,"sourceFlowId",void 0),Object(a.__decorate)([Object(n.d)()],l.prototype,"activityId",void 0),l=Object(a.__decorate)([n.a],l),t.b=l},f744:function(e,t,r){"use strict";r("bb2f")},f7c4:function(e,t,r){var i=r("1b69");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("789d7752",i,!0,{sourceMap:!1,shadowMode:!1})},f86f:function(e,t,r){var i=r("2f0b");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0741f708",i,!0,{sourceMap:!1,shadowMode:!1})},f881:function(e,t,r){"use strict";r("17ab")},f964:function(e,t,r){(t=r("24fb")(!1)).push([e.i,".date-picker[data-v-32872970]{width:100%}.filterlookup[data-v-32872970] .el-input__inner{height:32px!important;color:#143e81;border-color:#ced5ef;border-radius:2px}",""]),e.exports=t},f9c2:function(e,t,r){var i=r("8166");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("bf1fd238",i,!0,{sourceMap:!1,shadowMode:!1})},f9f6:function(e,t,r){"use strict";r("6bcd")},f9fe:function(e,t,r){"use strict";r("7ef1")},fb15:function(e,t,r){"use strict";if(r.r(t),"undefined"!=typeof window){var i=window.document.currentScript,a=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(r.p=a[1])}r("b841");const n=window.rtconfig,o="vformcore_"+(localStorage.$tenantcode||n.keycloak_realm),s=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB,l={openDB(e){const t=s.open(o,1);t.onerror=function(){},t.onsuccess=function(t){const r=t.target.result;r.objectStoreNames.contains("vform")?e&&"function"==typeof e&&e(r):r.createObjectStore("vform",{keyPath:"id"})},t.onupgradeneeded=function(e){const t=e.target.result;t.objectStoreNames.contains("vform")||t.createObjectStore("vform",{keyPath:"id"})}},add:function(e,t,r,i,a){e?this.find(e,t,n=>{const o=e.transaction("vform","readwrite").objectStore("vform");let s;const l={id:t,data:r,createdon:new RtDate};s=n?o.put(l):o.add(l),s.onsuccess=t=>{i&&i(t.target.result),e.close()},s.onerror=t=>{a&&a(t.target.result),e.close()}},e=>{},!0):i&&i(void 0)},find:function(e,t,r,i,a){if(!e)return void(r&&r(void 0));const n=e.transaction("vform").objectStore("vform").get(t);n.onsuccess=function(e){let t=e.target.result;a||(t=this.__getValue(t)),r&&r(t)},n.onerror=e=>{i&&i(e)}},getAll:function(e,t,r){if(void 0===e)return void(t&&t(void 0));const i=e.transaction("vform").objectStore("vform").openCursor(),a=[];i.onsuccess=e=>{const r=e.target.result;if(r){const e=this.__getValue(r.value);e&&a.push(e),r.continue()}else t&&t(a)},i.onerror=e=>{r&&r(e)}},__getValue:function(e){if(e&&e.id&&e.data&&e.createdon)return(new RtDate).valueOf()-e.createdon.valueOf()<864e5?e.data:void 0},clear:function(e,t,r){try{const i=e.transaction("vform","readwrite"),a=i.objectStore("vform").clear();a.onsuccess=function(){t&&"function"==typeof t&&(t(),e.close())},a.onerror=function(){r&&"function"==typeof r&&(r(),e.close())}}catch(e){}}};var d,c={install:function(e){e.prototype.$vformStorage=l}};!function(e){e[e.LIST=1]="LIST",e[e.FORM=2]="FORM",e[e.USERVIEW=10]="USERVIEW",e[e.COLUMN_WIDTH=10001]="COLUMN_WIDTH"}(d||(d={}));const u=window.rtconfig,p=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB;class h{openDB(e,t,r){const i=localStorage.$tenantcode||u.keycloak_realm;let a="common";switch(e){case d.LIST:case d.COLUMN_WIDTH:a="vlist";break;case d.FORM:a="vform";break;case d.USERVIEW:a="vuser"}const n=p.open(a+"_"+i,1);n.onerror=e=>{r&&"function"==typeof r&&r(e)},n.onsuccess=e=>{const r=e.target.result;t&&"function"==typeof t&&t(r,a)},n.onupgradeneeded=e=>{const t=e.target.result;this.createObjectStore(t,a,{keyPath:"id"})}}createObjectStore(e,t,r){e.objectStoreNames.contains(t)||e.createObjectStore(t,r)}add(e,t,r,i,a,n){e?this.find(e,t,r,o=>{const s=e.transaction(t,"readwrite").objectStore(t);let l;const d={id:r,data:i,createdon:new Date};l=o?s.put(d):s.add(d),l.onsuccess=t=>{a&&a(t.target.result),e.close()},l.onerror=t=>{n&&n(t.target.result),e.close()}},e=>{},!0):a&&a(void 0)}addBadge(e,t,r,i,a,n){e?this.find(e,t,r,o=>{const s=e.transaction(t,"readwrite").objectStore(t);let l;if(o){const e={id:r,data:i,createdon:new Date};l=s.put(e)}else{const e={id:r,data:i,createdon:new Date};l=s.add(e)}l.onsuccess=t=>{a&&a(t.target.result),e.close()},l.onerror=t=>{n&&n(t.target.result),e.close()}},e=>{},!0):a&&a(void 0)}find(e,t,r,i,a,n){if(e)try{const o=e.transaction(t),s=o.objectStore(t).get(r);s.onsuccess=function(e){let t=e.target.result;n||(t=this.__getValue(t)),i&&i(t)},s.onerror=e=>{a&&a(e)}}catch(a){}else i&&i(void 0)}getAll(e,t,r,i){if(void 0===e)return void(r&&r(void 0));const a=e.transaction(t).objectStore(t).openCursor(),n=[];a.onsuccess=e=>{const t=e.target.result;if(t){const e=this.__getValue(t.value);e&&n.push(e),t.continue()}else r&&r(n)},a.onerror=e=>{i&&i(e)}}__getValue(e){if(e&&e.id&&e.data&&e.createdon)return(new Date).valueOf()-e.createdon.valueOf()<864e5?e.data:void 0}clearData(e,t,r,i){try{const a=e.transaction(t,"readwrite"),n=a.objectStore(t).clear();n.onsuccess=function(){r&&"function"==typeof r&&(r(),e.close())},n.onerror=function(){i&&"function"==typeof i&&(i(),e.close())}}catch(e){}}}var f={install(e){e.prototype.$apaasStorage=new h}};const m={__needClear:!1,pageIndex:0,getAll:function(){return null!=sessionStorage.historycache&&""!=sessionStorage.historycache||(sessionStorage.historycache="{}"),JSON.parse(sessionStorage.historycache)},getPageIndex:function(){return++this.pageIndex},getCurrentPageIndex:function(){return this.pageIndex},getDashIndex:function(){if(sessionStorage.historycache&&"{}"!=sessionStorage.historycache){const e=JSON.parse(sessionStorage.historycache),t=Object.values(e),r=Object.keys(e),i=t.findIndex(e=>"/dashboardview"==e.fullPath);return r[i]?r[i]:this.pageIndex++}return this.pageIndex++},getDashboard:function(e,t){if(null==e||!t)return null;const r=this.getAll();return r[e]&&r[e].fullPath==t?r[e].data:{}},saveDashboard:function(e,t,r){if(null==e||!t)return null;const i=this.getAll();i[e]&&i[e].fullPath==t?"/dashboardview"===t&&(i[e].data[[r.objectTypeName+"_"+r.queryLogicalName]]=r):i[e]={fullPath:t,data:{[r.objectTypeName+"_"+r.queryLogicalName]:r}},sessionStorage.historycache=JSON.stringify(i)},get:function(e,t){if(null==e||!t)return null;const r=this.getAll();return r[e]&&r[e].fullPath==t?r[e].data:{}},save:function(e,t,r){if(null==e||!t)return null;const i=this.getAll();i[e]&&i[e].fullPath==t?i[e].data=r:i[e]="/dashboardview"===t?{fullPath:t,data:{[r.objectTypeName+"_"+r.queryLogicalName]:r}}:{fullPath:t,data:r},sessionStorage.historycache=JSON.stringify(i)},clear:function(){sessionStorage.historycache="{}",this.pageIndex=0,window.history.state&&window.history.state.pageIndex&&(window.history.state.pageIndex=null)},clearDrawerFilterList(){const e=this.getAll();if(e)for(const t in e)(e[t]&&e[t].data&&e[t].data.filterFormList?e[t].data.filterFormList:[]).forEach(e=>e.val=null);sessionStorage.historycache=JSON.stringify(e)},needClear(){this.clear()}};var g={install:function(e){e.prototype.$historyStorage=m}};const b=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB,y=window.rtconfig,v={openDB(e){const t=localStorage.$tenantcode||y.keycloak_realm,r=b.open("vlistcore_"+t);r.onerror=function(e){},r.onsuccess=function(t){const r=t.target.result;r.objectStoreNames.contains("userqueryview")?e&&"function"==typeof e&&e(r):r.createObjectStore("userqueryview",{keyPath:"id"})},r.onupgradeneeded=function(e){const t=e.target.result;t.objectStoreNames.contains("userqueryview")||t.createObjectStore("userqueryview",{keyPath:"id"})}},deleteDB(e,t){const r=b.deleteDatabase("vlistcore_"+e);r.onerror=function(){},r.onsuccess=function(){t&&"function"==typeof t&&t()}},closeDB(e){e.close()},find(e,t,r,i){if(void 0===e)return void(r&&r(void 0));if(!t)return;const a=e.transaction("userqueryview").objectStore("userqueryview").get(t);a.onsuccess=e=>{const t=e.target.result;r&&r(t)},a.onerror=e=>{i&&i(e)}},add(e,t,r,i,a){void 0!==e?this.find(e,t,n=>{const o=e.transaction("userqueryview","readwrite").objectStore("userqueryview");let s;const l={id:t,data:r,createdon:new RtDate};s=n?o.put(l):o.add(l),s.onsuccess=t=>{i&&i(t.target.result),e.close()},s.onerror=t=>{a&&a(t.target.result),e.close()}},()=>{}):i&&i(void 0)},deleteData(e,t,r){e.transaction("userqueryview","readwrite").objectStore("userqueryview").delete(t),r&&"function"==typeof r&&r()},clearData(e,t){e.transaction("userqueryview","readwrite").objectStore("userqueryview").clear(),t&&"function"==typeof t&&t()}};var x={install:function(e){e.prototype.$vlistgridcellDB=v}},w={name:"PlatView",props:{disabled:Boolean}},_=r("0c7c"),E=Object(_.a)(w,(function(){var e=this.$createElement;return(this._self._c||e)("div",[this._t("default")],2)}),[],!1,null,null,null).exports,C=r("8bbf"),N=r.n(C);const S=N.a.prototype.$isServer,T=(S||Number(document.documentMode),!S&&document.addEventListener?function(e,t,r,i){e&&t&&r&&(i=i||`${(e=>{if(e===window)return"#window";if(e===document)return"#document";if(document.body&&!document.body.contains(e))return e.nodeName;let t,r,i="",a=e;for(;a!==document.documentElement;){for(t=0,r=a;r;)1===r.nodeType&&r.nodeName===a.nodeName&&(t+=1),r=r.previousSibling;i=`*[name()='${a.nodeName}'][${t}]/${i}`,a=a.parentNode}return i=`/*[name()='${document.documentElement.nodeName}']/${i}`,i=i.replace(/\/$/,""),i})(e)}/*${t}`,window.__RT_Instance__&&window.__RT_Instance__._isMounted?(e.addEventListener(t,r,!1),"function"==typeof window.addUnmountHook&&window.addUnmountHook(i,()=>{k(e,t,r)})):"function"==typeof window.addMountedHook&&window.addMountedHook(i,()=>{e.getRootNode&&e.getRootNode()===document&&(e.addEventListener(t,r,!1),"function"==typeof window.addUnmountHook&&window.addUnmountHook(i,()=>{k(e,t,r)}))}))}:function(e,t,r){e&&t&&r&&e.attachEvent("on"+t,r)}),k=!S&&document.removeEventListener?function(e,t,r){e&&t&&e.removeEventListener(t,r,!1)}:function(e,t,r){e&&t&&e.detachEvent("on"+t,r)};function O(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function I(e,t){if(e){for(var r=e.className,i=(t||"").split(" "),a=0,n=i.length;a{e.apply(this,r),t=!1}))}}"object"==typeof Int8Array||!N.a.prototype.$isServer&&document.childNodes,Object.prototype.hasOwnProperty;let M=window.__RT_PopupManager__;if(!M){let e,t=!1,r=!1;const i=function(){if(N.a.prototype.$isServer)return;let e=M.modalDom;return e?t=!0:(t=!1,e=document.createElement("div"),M.modalDom=e,e.__touchmoveHandler__=function(e){e.preventDefault(),e.stopPropagation()},e.addEventListener("touchmove",e.__touchmoveHandler__),e.__clickHandler__=function(){M.doOnModalClick&&M.doOnModalClick()},e.addEventListener("click",e.__clickHandler__)),e},a={};M={modalFade:!0,getInstance:function(e){return a[e]},register:function(e,t){e&&t&&(a[e]=t)},deregister:function(e){e&&(a[e]=null,delete a[e])},nextZIndex:function(){return M.zIndex++},modalStack:[],doOnModalClick:function(){const e=M.modalStack[M.modalStack.length-1];if(!e)return;const t=M.getInstance(e.id);t&&t.closeOnClickModal&&t.close()},openModal:function(e,r,a,n,o,s){if(N.a.prototype.$isServer)return;if(!e||void 0===r)return;this.modalFade=o;const l=this.modalStack;for(let t=0,i=l.length;tI(d,e)),setTimeout(()=>{D(d,"v-modal-enter")},200),a&&a.parentNode&&11!==a.parentNode.nodeType?a.parentNode.appendChild(d):(s||document.body).appendChild(d),r&&(d.style.zIndex=r),d.tabIndex=0,d.style.display="",this.modalStack.push({id:e,zIndex:r,modalClass:n})},closeModal:function(e){const t=this.modalStack,r=i();if(r&&r.__touchmoveHandler__&&(r.removeEventListener("touchmove",r.__touchmoveHandler__),delete r.__touchmoveHandler__),r&&r.__clickHandler__&&(r.removeEventListener("click",r.__clickHandler__),delete r.__clickHandler__),t.length>0){const i=t[t.length-1];if(i.id===e)i.modalClass&&i.modalClass.trim().split(/\s+/).forEach(e=>D(r,e)),t.pop(),t.length>0&&(r.style.zIndex=t[t.length-1].zIndex);else for(let r=t.length-1;r>=0;r--)if(t[r].id===e){t.splice(r,1);break}}0===t.length&&(this.modalFade&&Array.from(r.classList).includes("v-modal")&&I(r,"v-modal-leave"),setTimeout(()=>{0===t.length&&(r.parentNode&&r.parentNode.removeChild(r),r.style.display="none",M.modalDom=void 0),D(r,"v-modal-leave")},300))}},Object.defineProperty(M,"zIndex",{configurable:!0,get:()=>(r||(e=e||(N.a.prototype.$ELEMENT||{}).zIndex||2e3,r=!0),e),set(t){e=t}});const n=function(){if(!N.a.prototype.$isServer&&M.modalStack.length>0){const e=M.modalStack[M.modalStack.length-1];if(!e)return;return M.getInstance(e.id)}};N.a.prototype.$isServer||T(document,"keydown",(function(e){if(27===e.keyCode){const e=n();e&&e.closeOnPressEscape&&(e.handleClose?e.handleClose():e.handleAction?e.handleAction("cancel"):e.close())}}),"#document/#keydown/#popmanager"),window.__RT_PopupManager__=M}var L=M;Boolean,Boolean,Boolean,Boolean,Boolean,Boolean,Boolean;const R={CONTAIN:{name:"contain",icon:"el-icon-full-screen"},ORIGINAL:{name:"original",icon:"el-icon-c-scale-to-original"}},P=!N.a.prototype.$isServer&&window.navigator.userAgent.match(/firefox/i)?"DOMMouseScroll":"mousewheel";var $={name:"RtImageViewer",props:{urlList:{type:Array,default:()=>[]},zIndex:{type:Number,default:2e3},onSwitch:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},initialIndex:{type:Number,default:0},appendToBody:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0}},data(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,mode:R.CONTAIN,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{_computedUrlList(){return this.urlList.filter((e,t)=>t===this.index)},isSingle(){return this.urlList.length<=1},isFirst(){return 0===this.index},isLast(){return this.index===this.urlList.length-1},currentImg(){return this.urlList[this.index]},imgStyle(){const{scale:e,deg:t,offsetX:r,offsetY:i,enableTransition:a}=this.transform,n={transform:`scale(${e}) rotate(${t}deg)`,transition:a?"transform .3s":"","margin-left":r+"px","margin-top":i+"px"};return this.mode===R.CONTAIN&&(n.maxWidth=n.maxHeight="100%"),n},viewerZIndex(){const e=L.nextZIndex();return this.zIndex>e?this.zIndex:e},_scaleTextStyle:()=>({width:"42px","font-size":"16px","text-align":"center"}),computedScale(){const{scale:e}=this.transform;return parseInt(100*e)+"%"}},watch:{index:{handler:function(e){this.reset(),this.onSwitch(e)}},currentImg(e){this.$nextTick(e=>{this.$refs.img[0].complete||(this.loading=!0)})}},mounted(){this.deviceSupportInstall(),this.appendToBody&&(N.a.prototype.$fakeBody||document.body).appendChild(this.$el),this.$refs["el-image-viewer__wrapper"].focus()},destroyed(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)},methods:{handleBeforeEnter(){if(this.$el){const e=window.event?window.event.x+"px":"50%",t=window.event?window.event.y+"px":"50%";this.$el.style["transform-origin"]=`${e} ${t}`}},hide(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall(){this._keyDownHandler=e=>{switch(e.stopPropagation(),e.keyCode){case 27:this.hide();break;case 32:this.toggleMode();break;case 37:this.prev();break;case 38:this.handleActions("zoomIn");break;case 39:this.next();break;case 40:this.handleActions("zoomOut")}},this._mouseWheelHandler=A(e=>{(e.wheelDelta?e.wheelDelta:-e.detail)>0?this.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):this.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})}),T(document,"keydown",this._keyDownHandler),T(document,P,this._mouseWheelHandler)},deviceSupportUninstall(){k(document,"keydown",this._keyDownHandler),k(document,P,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad(e){this.loading=!1},handleImgError(e){this.loading=!1,e.target.alt=this.$tx("加载失败","xpc.common.loadError")},handleMouseDown(e){if(this.loading||0!==e.button)return;const{offsetX:t,offsetY:r}=this.transform,i=e.pageX,a=e.pageY;this._dragHandler=A(e=>{this.transform.offsetX=t+e.pageX-i,this.transform.offsetY=r+e.pageY-a}),T(document,"mousemove",this._dragHandler),function(e,t,r){var i=function(){r&&r.apply(this,arguments),k(e,t,i)};T(e,t,i)}(document,"mouseup",e=>{k(document,"mousemove",this._dragHandler)}),e.preventDefault()},handleMaskClick(){this.maskClosable&&this.hide()},reset(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode(){if(this.loading)return;const e=Object.keys(R),t=(Object.values(R).indexOf(this.mode)+1)%e.length;this.mode=R[e[t]],this.reset()},prev(){if(this.isFirst&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index-1+e)%e},next(){if(this.isLast&&!this.infinite)return;const e=this.urlList.length;this.index=(this.index+1)%e},handleActions(e,t={}){if(this.loading)return;const{zoomRate:r,rotateDeg:i,enableTransition:a}={zoomRate:.2,rotateDeg:90,enableTransition:!0,...t},{transform:n}=this;switch(e){case"zoomOut":n.scale>.2&&(n.scale=parseFloat((n.scale-r).toFixed(3)));break;case"zoomIn":n.scale<4&&(parseFloat((n.scale+r).toFixed(3)),n.scale=parseFloat((n.scale+r).toFixed(3)));break;case"clocelise":n.deg+=i;break;case"anticlocelise":n.deg-=i}n.enableTransition=a}}},F={name:"RtNewAttr",components:{"image-viewer":Object(_.a)($,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"el-image-viewer__wrapper",staticClass:"rt-xpc-image-viewer__wrapper el-image-viewer__wrapper",style:{"z-index":e.viewerZIndex},attrs:{tabindex:"-1"}},[r("div",{staticClass:"el-image-viewer__mask",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleMaskClick.apply(null,arguments)}}}),r("span",{staticClass:"el-image-viewer__btn el-image-viewer__close",on:{click:e.hide}},[r("i",{staticClass:"el-icon-close rtxpc-icon-close"})]),e.isSingle?e._e():[r("span",{staticClass:"el-image-viewer__btn el-image-viewer__prev",class:{"is-disabled rtxpc-is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[r("i",{staticClass:"el-icon-arrow-left"})]),r("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled rtxpc-is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[r("i",{staticClass:"rtxpc-icon-arrow-right el-icon-arrow-right"})])],r("div",{staticClass:"el-image-viewer__btn el-image-viewer__actions"},[r("div",{staticClass:"el-image-viewer__actions__inner"},[r("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),r("span",{style:e._scaleTextStyle},[e._v(e._s(e.computedScale))]),r("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),r("i",{staticClass:"el-image-viewer__actions__divider"}),r("i",{class:e.mode.icon,on:{click:e.toggleMode}}),r("i",{staticClass:"el-image-viewer__actions__divider"}),r("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),r("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}})])]),r("div",{staticClass:"rtxpc-image-viewer__canvas el-image-viewer__canvas"},e._l(e._computedUrlList,(function(t){return r("img",{key:t,ref:"img",refInFor:!0,staticClass:"el-image-viewer__img",style:e.imgStyle,attrs:{src:e.currentImg},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}})})),0)],2)}),[],!1,null,null,null).exports},props:{item:{type:Object}},data:function(){return{baseUrl:rt.getBaseUrl(),showViewer:!1,url:""}},computed:{isImage(){return"image"==this.item.new_attributetype}},methods:{closeViewer(){this.showViewer=!1},openImageViewer(e){this.url=this.baseUrl+e;const t=new Image;t.onload=()=>{this.showViewer=!0},t.onerror=()=>{rt.showErrorToast(this.$_t("Image-been-lost","图片已丢失"))},t.src=this.url}}},j=(r("140b"),Object(_.a)(F,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.item?r("div",[r("div",{staticClass:"flexbox timeTop"},[r("span",{staticClass:"bluecode"},[e._v(e._s(e.item.new_ownerid))]),r("span",[e._v(e._s(e.$_t("rename.display","修改了{0}的").format(e.item.displayname)))]),r("span",{staticClass:"bluecode"},[e._v("["+e._s(e.item.new_fieldname)+"]")])]),r("div",{staticClass:"flexbox timeBottom"},[r("span",{staticClass:"greencode"},[e.isImage&&e.item.new_oldvalue?r("span",{staticClass:"img-text",on:{click:function(t){return e.openImageViewer(e.item.new_oldvalue)}}},[e._v(e._s(e.$_t("common.oldvalue","旧值")))]):r("span",{staticClass:"text"},[e._v(e._s(e.item.new_oldvalue?e.item.new_oldvalue:"--"))])]),r("rc-icon",{staticClass:"clear-btn",attrs:{name:"plat-icon-fwy-arrow-right-lined",size:"20",color:"#86909C"}}),r("span",{staticClass:"greencode"},[e.isImage&&e.item.new_newvalue?r("span",{staticClass:"img-text",on:{click:function(t){return e.openImageViewer(e.item.new_newvalue)}}},[e._v(e._s(e.$_t("common.newvalue","新值")))]):r("span",{staticClass:"text"},[e._v(e._s(e.item.new_newvalue?e.item.new_newvalue:"--"))])])],1),e.showViewer?r("image-viewer",{staticClass:"audilt-img",attrs:{"initial-index":0,"on-close":e.closeViewer,"url-list":[e.url]}}):e._e()],1):e._e()}),[],!1,null,"1b155497",null).exports),B={name:"RtAppNav",props:{showConfigCenter:{type:Boolean,require:!1,default:!1},isCollapse:{type:Boolean,require:!1,default:!0},navName:{type:String,default:"",require:!0},subappKey:{type:String,default:"",require:!1},isMainapp:{type:Boolean,require:!1,default:!1}}},U=Object(_.a)(B,(function(){var e=this.$createElement;return(this._self._c||e)("rt-app-nav-new",{attrs:{"is-collapse":this.isCollapse,"subapp-key":this.subappKey,"is-mainapp":this.isMainapp,"show-config-center":this.showConfigCenter,"nav-name":this.navName}})}),[],!1,null,null,null).exports,V={name:"RtAppHeader",props:{isCollapse:{type:Boolean,require:!1,default:!0},supportHelp:{type:Boolean,require:!1,default:!1},showUser:{type:Boolean,require:!1,default:!0},supportI18n:{type:Boolean,require:!1,default:!1},supportMessage:{type:Boolean,require:!1,default:!1},supportAdvance:{type:Boolean,require:!1,default:!1},subappKey:{type:String,default:"",require:!1},isMainapp:{type:Boolean,require:!1,default:!1}}},q=Object(_.a)(V,(function(){var e=this.$createElement,t=this._self._c||e;return t("rt-app-header-new",{attrs:{"is-collapse":this.isCollapse,"support-help":this.supportHelp,"support-i18n":this.supportI18n,"is-mainapp":this.isMainapp,"support-message":this.supportMessage,"support-advance":this.supportAdvance,"subapp-key":this.subappKey}},[t("template",{slot:"prefix"}),t("template",{slot:"signal"}),t("template",{slot:"suffix"})],2)}),[],!1,null,null,null).exports,z={name:"RtHeader",props:{title:{type:String,default:"",required:!0},hideTag:{type:Boolean,default:null,required:!1}},computed:{hideHead(){return this.hideTag?!this.hideTag:"ApproveCenter"===this.$route.name}}},H=(r("748f"),Object(_.a)(z,(function(){var e=this.$createElement,t=this._self._c||e;return this.hideHead?this._e():t("div",{staticClass:"rt-header rt-crm-header plat-crm-header"},[t("h2",{staticClass:"plat-crm-header-title"},[this._v(this._s(this.title))]),this._t("default")],2)}),[],!1,null,"d8e8dbba",null).exports),G={name:"RtContent",props:{},data:()=>({sideStyle:null}),mounted(){this.$slots.side}},W=(r("63eb"),Object(_.a)(G,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"rt-content plat-content",class:{"with-side":this.$slots.side}},[this.$slots.side?t("div",{staticClass:"rt-content__side",style:this.sideStyle},[this._t("side")],2):this._e(),t("div",{staticClass:"rt-content__main plat-content-main",attrs:{id:"contentMain"}},[this._t("default")],2)])}),[],!1,null,"04695b6a",null).exports),Q={name:"RtToolbar",props:{showBack:{type:Boolean,default:!1,required:!1},showAutoback:{type:Boolean,default:!1,required:!1}},methods:{handleBackClick(){this.showAutoback?this.$router.back():this.$emit("goback")}}},X=(r("80fb"),Object(_.a)(Q,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-toolbar plat-toolbar"},[e._t("default"),e.showBack||e.showAutoback?[r("div",{staticClass:"rt-divider"}),r("el-button",{attrs:{type:"text"},on:{click:e.handleBackClick}},[e._v(e._s(e.$_t("BUTTON_RETURN","返回")))])]:e._e()],2)}),[],!1,null,"501ed804",null).exports),K={name:"RtGrid",props:{quicksearchPlaceholder:{type:String,required:!1,default:function(){return this.quicksearchPlaceholder2}},showQuick:{type:Boolean,default:!0,required:!1},showPagination:{type:Boolean,default:!0,required:!1},totalRecord:{type:Number,required:!1},defaultPageSize:{type:Number,required:!1,default:50},showSearch:{type:Boolean,required:!1,default:!0},isPadding:{type:Boolean,required:!1,default:!0}},data(){return{quickSearch:null,pageIndex:1,showHidden:!1,pageSize:this.defaultPageSize,layout:"total, sizes, prev, pager, next, jumper",pageSizes:[10,20,30,40,50],quicksearchPlaceholder2:this.$_t("QuickSearch","快速搜索")}},computed:{iconClass(){return this.showHidden?"el-icon-arrow-up":"el-icon-arrow-down"}},watch:{pageIndex:function(e,t){this.$emit("page-change",this.pageIndex,this.pageSize)},pageSize:function(e,t){this.$emit("page-change",this.pageIndex,this.pageSize)}},methods:{handleCollapse(){this.showHidden=!this.showHidden},handleReset(){this.$emit("reset")},handleSearch(){this.pageIndex=1,this.$emit("search")},handleQuickSearch(){this.pageIndex=1,this.$emit("quick-search")},handleQuickSearchFromInput(){this.handleQuickSearch()},handleSizeChange(e){let t=!1;t=this.pageSize?this.pageSize!=e&&(0!=this.pageSize||1!=e):1!=e&&0!=e,t&&(this.pageSize=e)},handleIndexChange(e){let t=!1;t=this.pageIndex?this.pageIndex!=e&&(0!=this.pageIndex||1!=e):0!=e&&1!=e,t&&(this.pageIndex=e)},getPageIndex(){return this.pageIndex},getPageSize(){return this.pageSize},getSearchString(){return this.quickSearch},setSearchString(e){this.quickSearch=e},resetPageIndex(){this.pageIndex=1}}},Y=(r("a58b"),Object(_.a)(K,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-grid plat-grid",on:{submit:function(e){e.preventDefault()}}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],staticClass:"rt-grid__header"},[e.$slots.toolbar?r("rt-toolbar",[e._t("toolbar")],2):e._e(),e.$slots.more?r("el-button",{staticClass:"plat-grid-more-btn",attrs:{type:"primary"},on:{click:e.handleCollapse}},[r("i",{class:e.iconClass}),e._v(" "+e._s(e.$_t("BUTTON_MORESCREEN","更多筛选"))+" ")]):e._e(),e.showQuick?r("el-input",{staticClass:"plat-grid-quick-search",attrs:{placeholder:this.$_t("QuickSearch","快速搜索"),clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuickSearch.apply(null,arguments)}},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:e.handleQuickSearch},slot:"append"})],1):e._e()],1),r("div",{directives:[{name:"show",rawName:"v-show",value:e.$slots.more&&e.showHidden,expression:"$slots.more && showHidden"}],staticClass:"rt-grid__moresearch"},[e._t("more"),r("el-row",{attrs:{gutter:40,type:"flex"}},[r("el-col",{staticClass:"plat-grid-elcol",attrs:{span:24}},[r("el-button",{staticClass:"rt-query__reset",attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("BUTTON_RESET","重置"))+" ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$_t("BUTTON_SEARCH","搜索")))])],1)],1)],2),r("div",{class:{"rt-grid__body":e.isPadding}},[e._t("default")],2),r("div",{staticClass:"plat-grid-footer",class:{"rt-grid__footer":e.isPadding}},[e.showPagination?r("el-pagination",{attrs:{"current-page":e.pageIndex,"page-size":e.pageSize,"page-sizes":e.pageSizes,layout:e.layout,total:e.totalRecord},on:{"size-change":e.handleSizeChange,"current-change":e.handleIndexChange}}):e._e()],1)])}),[],!1,null,"fd23771c",null).exports),J=r("9ab4"),Z=r("6f97"),ee=r.n(Z),te=r("1b40");function re(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ie=ee.a.ELEMENT.Select;let ae=class extends te.f{constructor(...e){super(...e),re(this,"alias",void 0),re(this,"readonly",void 0),re(this,"displayValue",void 0),re(this,"showStyle",void 0),re(this,"showMaxSelected",void 0),re(this,"collapseTags",void 0),re(this,"multiple",void 0),re(this,"value",void 0),re(this,"entity",void 0),re(this,"attribute",void 0),re(this,"disabled",void 0),re(this,"requestUrl",void 0),re(this,"optionIndex",void 0),re(this,"clearable",void 0),re(this,"filterable",void 0),re(this,"placeholder",void 0),re(this,"size",void 0),re(this,"isintercept",void 0),re(this,"options",void 0),re(this,"selectedValue",[]),re(this,"selectOptions",[]),re(this,"checkBosList",[]),re(this,"key",0)}get isSelect(){return 1==this.showStyle}handlerValue(e){this.initSelectedValue(e)}handlerDisplayValue(e,t){if(Array.isArray(e)&&Array.isArray(t)&&e.sort().join(",")!==t.sort().join(",")){this.$emit("input",[],this.value,{isInnerInput:!0});const t=e.map(e=>this.checkBosList.filter(t=>t.Value==e));this.selectOptions=t.flat()}}initSelectedValue(e){this.isSelect?this.selectedValue=e:(this.selectedValue=e||[],this.key++)}bindPicklist(){rt.isNullOrWhiteSpace(this.entity)||rt.isNullOrWhiteSpace(this.attribute)?rt.isNullOrWhiteSpace(this.requestUrl)||rt.get(this.requestUrl).then(e=>{this.selectOptions=e,this.checkBosList=[...e],this.initSelectedValue(this.value)}):rt.get("api/crmpicklist/options/"+this.entity+"/"+this.attribute).then(e=>{if(this.isSelect&&e.sort(this.compare("Value")),"new_flowsteps"==this.entity&&"new_roletype"==this.attribute&&(e=e.filter(e=>5!=e.Value)),this.isintercept&&this.isintercept.length>0){let t=e.filter(e=>{if(this.isintercept&&this.isintercept.length>0)return!this.isintercept.some(t=>t===e.Value)});this.selectOptions=t,this.checkBosList=[...t]}else this.selectOptions=e,this.checkBosList=[...e];if((this.optionIndex||0===this.optionIndex)&&this.optionIndex>-1&&(this.selectOptions.splice(this.optionIndex,1),this.checkBosList=[...this.selectOptions]),this.displayValue&&Array.isArray(this.displayValue)){const e=this.displayValue.map(e=>this.checkBosList.filter(t=>t.Value==e));this.selectOptions=e.flat()}(this.value||0==this.value)&&(this.selectedValue=this.value,this.key++)})}compare(e){return function(t,r){return t[e]-r[e]}}handleChange(e){this.$emit("input",e),this.$emit("change",e)}mounted(){this.options&&this.options.length>0&&2!=this.showStyle&&1!=this.showStyle?this.initSelectedValue(this.value):this.bindPicklist()}};Object(J.__decorate)([Object(te.d)()],ae.prototype,"alias",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ae.prototype,"readonly",void 0),Object(J.__decorate)([Object(te.d)()],ae.prototype,"displayValue",void 0),Object(J.__decorate)([Object(te.d)({default:1})],ae.prototype,"showStyle",void 0),Object(J.__decorate)([Object(te.d)({default:null})],ae.prototype,"showMaxSelected",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],ae.prototype,"collapseTags",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ae.prototype,"multiple",void 0),Object(J.__decorate)([Object(te.d)()],ae.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)()],ae.prototype,"entity",void 0),Object(J.__decorate)([Object(te.d)()],ae.prototype,"attribute",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ae.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)()],ae.prototype,"requestUrl",void 0),Object(J.__decorate)([Object(te.d)({default:-1})],ae.prototype,"optionIndex",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],ae.prototype,"clearable",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],ae.prototype,"filterable",void 0),Object(J.__decorate)([Object(te.d)({default:""})],ae.prototype,"placeholder",void 0),Object(J.__decorate)([Object(te.d)({default:""})],ae.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)({default:()=>[]})],ae.prototype,"isintercept",void 0),Object(J.__decorate)([Object(te.d)({default:()=>[]})],ae.prototype,"options",void 0),Object(J.__decorate)([Object(te.g)("value")],ae.prototype,"handlerValue",null),Object(J.__decorate)([Object(te.g)("displayValue")],ae.prototype,"handlerDisplayValue",null),ae=Object(J.__decorate)([Object(te.a)({name:"RtPicklist",components:{ElSelect:ie}})],ae);var ne=ae,oe=(r("db5d"),Object(_.a)(ne,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.options&&e.options.length&&1!=e.showStyle&&2!=e.showStyle?r("rc-picklist",{attrs:{size:e.size,placeholder:e.disabled?e.$_t("common.noData","暂无信息"):e.placeholder?e.placeholder:e.$_t("common.select","请选择"),clearable:e.clearable,disabled:e.disabled,alias:e.alias,filterable:e.filterable,"show-max-selected":e.showMaxSelected,"collapse-tags":!e.multiple,"reserve-keyword":"",multiple:e.multiple,options:e.options},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}}):e.isSelect?r("el-select",{staticClass:"plat-picklist",attrs:{size:e.size,placeholder:e.disabled?e.$_t("common.noData","暂无信息"):e.placeholder?e.placeholder:e.$_t("common.select","请选择"),clearable:e.clearable,disabled:e.disabled,filterable:e.filterable,"show-max-selected":e.showMaxSelected,"collapse-tags":e.collapseTags,multiple:e.multiple},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},e._l(e.selectOptions,(function(t){return r("el-option",{key:t.Value,attrs:{label:t.Text,value:t.Value}},[e._v(" "+e._s(t.Text)+" ")])})),1):r("div",{staticClass:"plat-picklist-checkbox"},[0!=e.selectOptions.length?r("rc-checkbox-group",{key:e.key,on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},e._l(e.selectOptions,(function(t){return r("rc-checkbox",{key:t.Value,staticClass:"no-border",attrs:{label:t.Value,disabled:e.readonly||!!t.StateCode}},[e._v(" "+e._s(t.Text)+" ")])})),1):r("h3",{staticClass:"checkbox-no-data"},[e._v(" "+e._s(e.$_t("platform.noData","暂无数据"))+" ")])],1)}),[],!1,null,"2fec467e",null).exports),se={name:"RtButton",props:{type:{type:String,required:!1,default:"default"},text:{type:String},loading:{type:Boolean,default:function(){return!1}}},data:()=>({iconClass:null}),computed:{buttonText:function(){switch(this.type){case"add":return this.text||this.$_t("BUTTON_ADD","新增");case"print":return this.text||this.$_t("BUTTON_PRINT","打印");case"confirm":return this.text||this.$_t("BUTTON_DETERMINE","确定");case"approve-progress":return this.text||this.$_t("BUTTON_APPROVALPROGRESS","审批进度");case"delete":return this.text||this.$_t("BUTTON_DELETE","删除");case"enable":return this.text||this.$_t("BUTTON_ENABLE","启用");case"disable":return this.text||this.$_t("BUTTON_DISABLE","停用");case"more":return this.text||this.$_t("BUTTON_MORE","更多");case"export":return this.text||this.$_t("BUTTON_EXPORT","导出");case"import":return this.text||this.$_t("BUTTON_IMPORT","导入");case"submit":return this.text||this.$_t("BUTTON_SUBMIT","提交");case"revert":return this.text||this.$_t("BUTTON_WITHDRAW","撤回");case"download":return this.text||this.$_t("BUTTON_DOWNLOAD","下载");case"save":return this.text||this.$_t("BUTTON_SAVE","保存");case"close":return this.text||this.$_t("BUTTON_CLOSE","关闭");default:return this.iconClass="",this.text||""}}},created(){this.iconClass="rt-icon-"+this.type},methods:{handleClick(){this.$emit("click")}}},le=Object(_.a)(se,(function(){var e=this.$createElement,t=this._self._c||e;return t("el-button",{attrs:{type:"text",loading:this.loading},on:{click:this.handleClick}},[t("i",{class:this.iconClass}),this._v(" "+this._s(this.buttonText)+" ")])}),[],!1,null,null,null).exports;function de(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let ce=class extends N.a{constructor(...e){super(...e),de(this,"title",void 0),de(this,"icon",void 0),de(this,"showMore",void 0),de(this,"isOpenCollapse",void 0),de(this,"isExpand",void 0),de(this,"hidebar",void 0),de(this,"isShowNoData",void 0),de(this,"isCollapsed",!0)}mounted(){this.isCollapsed=this.isExpand}get hasIcon(){return!!this.icon}get hasTitle(){return!this.hidebar&&this.title}get iconClass(){return"plat-icon-double-down-lined"}moreClick(){this.$emit("more-click")}handleCollapse(e){e.target.className&&-1===e.target.className.indexOf("section-header")||(this.isCollapsed=!this.isCollapsed)}};Object(J.__decorate)([Object(te.d)()],ce.prototype,"title",void 0),Object(J.__decorate)([Object(te.d)()],ce.prototype,"icon",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ce.prototype,"showMore",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ce.prototype,"isOpenCollapse",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ce.prototype,"isExpand",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ce.prototype,"hidebar",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ce.prototype,"isShowNoData",void 0),ce=Object(J.__decorate)([Object(te.a)({name:"RtSection"})],ce);var ue=ce,pe=(r("510f"),Object(_.a)(ue,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rc-section rt-section plat-section"},[r("div",[e.hasTitle?r("div",{staticClass:"rc-section-header section-header",class:{"open-collapse":e.isOpenCollapse},on:{click:e.handleCollapse}},[r("div",{staticClass:"section-header-content"},[e.isOpenCollapse?r("rc-icon",{staticClass:"rc-section-icon",class:{collapsed:e.isCollapsed},attrs:{slot:"suffix",color:e.SCSS_VARIABLES.COLOR_INFO,name:e.iconClass,size:"16"},slot:"suffix"}):e._e(),e.hasIcon?r("div",{staticClass:"section-icon"},[r("rc-icon",{attrs:{name:e.icon,size:22}})],1):e.hasIcon||e.isOpenCollapse?e._e():r("div",{staticClass:"icon-blue-line"}),r("span",{staticClass:"section-title"},[e._v(e._s(e.title))])],1),e.showMore?r("span",{staticClass:"section-more",on:{click:e.moreClick}},[e._t("more",(function(){return[e._v(e._s(e.$_t("xpc.section.more","更多")))]}))],2):e._e(),r("div",{staticClass:"section-btns"},[e._t("btn")],2)]):e._e(),!e.hasTitle&&e.isOpenCollapse?r("div",{staticClass:"rc-section-header section-header",class:{"open-collapse":e.isOpenCollapse},on:{click:e.handleCollapse}},[e.isOpenCollapse?r("rc-icon",{staticClass:"rc-section-icon",class:{collapsed:e.isCollapsed},attrs:{slot:"suffix",color:e.SCSS_VARIABLES.COLOR_INFO,name:e.iconClass,size:"16"},slot:"suffix"}):r("div",{staticClass:"icon-blue-line"})],1):e._e()]),r("el-collapse-transition",[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isOpenCollapse||e.isCollapsed,expression:"!isOpenCollapse || isCollapsed"}],ref:"sectionBody",staticClass:"section-body rc-section-body"},[e._t("default"),e.isShowNoData?r("div",{staticClass:"sectionNoData"},[e._v(" "+e._s(e.$_t("common.noFill","暂无数据"))+" ")]):e._e()],2)])],1)}),[],!1,null,"c59299d2",null).exports),he={name:"RtSaasSection",props:{title:{type:String,default:"",required:!1},showLabel:{type:Boolean,default:!1,required:!1},showBar:{type:Boolean,default:!1,required:!1}}},fe=Object(_.a)(he,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"base-section"},[this._t("default")],2)}),[],!1,null,null,null).exports,me={name:"rtRangeInput",props:{value:{default:null}},data:()=>({focusBool:!1}),computed:{valueMin:{get(){var e;return null===(e=this.value)||void 0===e?void 0:e[0]},set(e){var t;let r=[e,null===(t=this.value)||void 0===t?void 0:t[1]];!rt.isNull(r[0])&&""!=r[0]||!rt.isNull(r[1])&&""!=r[1]||(r=null),this.$emit("input",r)}},valueMax:{get(){var e;return null===(e=this.value)||void 0===e?void 0:e[1]},set(e){var t;let r=[null===(t=this.value)||void 0===t?void 0:t[0],e];!rt.isNull(r[0])&&""!=r[0]||!rt.isNull(r[1])&&""!=r[1]||(r=null),this.$emit("input",r)}}},mounted(){this.$PlatUtils.eventListenerHook(this,"click",this.handleDocumentClick,document)},methods:{handleDocumentClick(e){var t;null!==(t=this.$refs.range)&&void 0!==t&&t.contains(e.target)||(this.focusBool&&this.$emit("clickoutside"),this.focusBool=!1)},focusInput(){this.focusBool=!0},handleEnter(){this.$emit("enter")},handleClear(){this.$emit("clear")}}},ge=(r("5bf2"),Object(_.a)(me,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{ref:"range",staticClass:"rt-saas-range"},[r("div",{staticClass:"input-wrap"},[r("rc-input",e._b({key:"min",attrs:{placeholder:this.$_t("platform.minNum","最小值")},on:{focus:e.focusInput,clear:e.handleClear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter.apply(null,arguments)}},model:{value:e.valueMin,callback:function(t){e.valueMin=t},expression:"valueMin"}},"rc-input",e.$attrs,!1))],1),r("span",[e._v("-")]),r("div",{staticClass:"input-wrap"},[r("rc-input",e._b({key:"max",attrs:{placeholder:this.$_t("platform.maxNum","最大值")},on:{focus:e.focusInput,clear:e.handleClear},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter.apply(null,arguments)}},model:{value:e.valueMax,callback:function(t){e.valueMax=t},expression:"valueMax"}},"rc-input",e.$attrs,!1))],1)])}),[],!1,null,"744ebd6b",null).exports),be=r("4b59"),ye=r("04d7"),ve={name:"RtLookupDialog",mixins:[ye.a,be.a],props:{entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},isNormal:{type:Boolean,default:!1,required:!1},nameField:{type:String,default:function(){return"new_name"}},idField:{type:String,default:function(){return this.entity+"id"}},lookupValue:{type:Object},displayFields:{type:Array,default:function(){return this.defaultFields}},orderbyFields:{type:String,default:function(){return"createdon desc"}},filterFields:{type:String,default:function(){return"new_name"}},dependentAttributeName:{type:String},dependentRelationShipName:{type:String},conditionFields:{type:String,default:function(){return""}},title:{type:String,default:function(){return""}},showRemoveDialog:{type:Boolean,default:!0},countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},defaultViewLogicalName:{type:String,required:!1},defaultViewId:{type:String,required:!1},showVlist:{type:Boolean,default:!0},rowDblClickFn:{type:Function},toEntity:{type:Object,required:!1,default:()=>({})},customerData:{type:Object,required:!1,default:()=>({})},enableAdd:{type:Boolean,default:!1}},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:20,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableData:[],currentRow:null,computedHeight:300,PaginationClass:"",pageCondition:{},currentRowClick:null,currentObj:{name:null,id:null,logicalname:null},lastFilterValue:""}),computed:{isBindView(){return this.defaultViewLogicalName&&this.defaultViewId&&this.showVlist},dialogTitle(){return this.$_t("TO_FIND_THE","查找")},defaultFields(){return[{name:"new_name",label:this.$_t("common.name","名称")},{name:"createdon",label:this.$_t("crm.createdon","创建时间"),width:180}]},selectString:{get(){let e=[];e.push(this.nameField),e.push(this.idField);for(let t in this.displayFields){let r=this.displayFields[t].name;e.indexOf(r)>=0||this.displayFields[t].noSelect||e.push(r)}return e.join(",")}},orderbyString:{get(){return this.orderbyFields}},filterString:{get(){return this.filterFields}},conditionString:{get(){return this.conditionFields}},IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},customerProps(){return{customerData:this.customerData}}},methods:{handleRowDblClick(){this.rowDblClickFn?this.rowDblClickFn():this.handleConfirm()},getIfChecked(e){return this.currentObj&&this.currentObj.id?e[this.idField]==this.currentObj.id:JSON.stringify(e)===JSON.stringify(this.currentRowClick)||e==this.currentRowClick},isNull(e){return!(!(["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length)||!0!==this.IsNullValueDisplay&&"true"!==this.IsNullValueDisplay)&&(this.NullValueDisplay?this.NullValueDisplay:"--")},getBindViewDisplayValue(e,t){const r=e[t],i=this.isNull(r);return i||(r&&"object"==typeof r&&r.name?r.name:r)},corpId(e){return"api/crmlookupview/getdata"==this.requestUrl?e.new_wx_chain_id:e.new_wx_chain_id?e.new_wx_chain_id.name:""},show(){this.dialogVisible=!0,this.filterValue="",this.pageIndex=1,this.isBindView&&this._fetchRecords(),this.lookupValue&&this.lookupValue.id?this.currentObj=this.lookupValue:(this.currentObj={name:null,id:null,logicalname:null},this.currentRowClick=null),this.$nextTick(()=>{this.$refs.vlistcore&&(this.$refs.vlistcore.resetGridConditions(),this.$refs.vlistcore.searchString="")})},handleSearch(){this.$refs.lookupTable&&(this.updateCurrentPageIndex(),this.$refs.lookupTable.loadData())},handleCurrentChange(e){this.currentRow=this.parseVal(e),this.currentObj=this.parseVal(e),this.$emit("current-change",this.currentRow)},rowClickTable(e){this.currentRowClick=e,this.currentObj={name:null,id:null,logicalname:null}},handleSortChange(){alert(this.$_t("common.Unrealized","未实现"))},handleSizeChange(e){this.pageIndex=1,this.pageSize=e,this.isBindView&&this._fetchRecords()},handleIndexChange(e){this.filterValue&&this.filterValue!==this.lastFilterValue?this.updateCurrentPageIndex():this.pageIndex=e,this.isBindView&&this._fetchRecords()},updateCurrentPageIndex(){this.pageIndex=1,this.$refs.lookupTable&&(this.$refs.lookupTable.pageIndex=1,this.$refs.lookupTable.$refs.pagination&&(this.$refs.lookupTable.$refs.pagination.internalCurrentPage=1))},handleCreate(){this.$emit("data-create")},handleReset(){this.currentRowClick=null,this.$emit("data-selected",null),this.dialogVisible=!1,this.$emit("dialogCallback",null)},callback(e){this.currentRow=this.parseVal(e),this.handleConfirm()},parseVal(e){let t={};for(let r in e){let i=e[r];null!=i&&"object"==typeof i?(i.name&&(t[r]=i.name),i.id&&(t[r+".id"]=i.id),i.hasOwnProperty("reference")&&(t[r]=i.text)):t[r]=i}return t},handleConfirm(){let e=this.currentRow;"{}"==JSON.stringify(e)&&(e=this.currentRowClick),!rt.isNull(e)&&"{}"!=JSON.stringify(e)||this.currentObj.id||!rt.isNull(this.currentRowClick)?(this.currentObj.id?this.$emit("data-selected",this.currentObj):(this.$emit("data-selected",{id:e[this.idField]||e.$id,name:e[this.nameField],logicalName:this.entity,logicalname:this.entity}),this.$emit("dialogCallback",e)),this.dialogVisible=!1,this.currentRow=null):rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"))},_fetchRecords(){this.pageCondition.dependentAttributeName=this.dependentAttributeName,this.pageCondition.dependentRelationShipName=this.dependentRelationShipName,this.loading=!0;let e="",t=!1;if(this.requestUrl&&(t=this.requestUrl.split("?").length>1),this.isNormal?(e=this.requestUrl+(t?"&page=":"?page=")+this.pageIndex+"&count="+this.pageSize+"&queryStr="+this.filterValue+"&filterValue="+encodeURIComponent(this.filterValue||""),this.conditionString&&(e+="&condition="+this.conditionString),this.pageCondition.pageConditionStr=this.conditionString):(e=this.requestUrl+(t?"&entityName=":"?entityName=")+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||""),this.conditionString&&(e+="&condition="+this.conditionString),this.pageCondition.pageConditionStr=this.conditionString),e+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,!this.isBindView)return rt.get(e).then(e=>{Object.prototype.hasOwnProperty.call(e,"Data")?this.tableData=e.Data||[]:this.tableData=e||[];let t=this.tableData.length;return-1==e.TotalRecordCount?(this.PaginationClass="nocount",0==t||t0?this.totalRecordCount=e.Entities.length:this.totalRecordCount=e.TotalRecordCount):(this.PaginationClass="",this.totalRecordCount=e.TotalRecordCount),this.lastFilterValue=this.filterValue,this.tableData}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})},closeDialog(){}}},xe=(r("e66a"),r("9550"),Object(_.a)(ve,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{class:e.isBindView?"rtportal lookup-dialog rt-lookup-dialog is-bind-view plat-base-lookup-dialog "+e.isShowClass:"rtportal lookup-dialog rt-lookup-dialog plat-base-lookup-dialog "+e.isShowClass,attrs:{"append-to-body":!0,"close-on-click-modal":!1,title:e.title?e.title:e.$_t("lookup.title","查找"),size:"large"},on:{input:e.closeDialog},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e.isBindView?r("div",[e.dialogVisible?r("vlistcore",{key:this.entity+this.defaultViewId+this.defaultViewLogicalName,ref:"vlistcore",attrs:{"page-condition":e.pageCondition,"is-dialog-mode":!0,"query-id":e.defaultViewId,"query-logical-name":e.defaultViewLogicalName,"object-type-name":e.entity,"page-source":"lookup","is-single-select":!0,"to-entity":e.toEntity,"customer-props":e.customerProps},on:{callback:e.callback,handleCurrentChange:e.handleCurrentChange}}):e._e()],1):r("div",[r("div",{staticClass:"lookup-header-search"},[r("rc-form",{attrs:{"label-position":"left",border:!0},nativeOn:{submit:function(e){e.preventDefault()}}},[r("rc-form-item",{attrs:{"label-position":"left",label:e.$_t("common.search","搜索")}},[r("rc-search",{attrs:{clearable:"",more:!1,placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录")},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],1)],1),e.dialogVisible?r("rc-table",{ref:"lookupTable",attrs:{fetch:e._fetchRecords,sectionable:!1,height:e.computedHeight,width:"100%","highlight-current-row":"",data:e.tableData,stripe:!0,"show-border":!1,loading:e.loading,"show-pagination":!0,"default-page-index":e.pageIndex,"page-size":e.pageSize,"page-layout":e.layout,"total-record":e.totalRecordCount},on:{"current-change":e.handleCurrentChange,"row-dblclick":e.handleRowDblClick,"sort-change":e.handleSortChange,changesize:e.handleSizeChange,changeindex:e.handleIndexChange,"row-click":e.rowClickTable}},[r("rc-table-column",{attrs:{width:"65","empty-cell":" "},scopedSlots:e._u([{key:"default",fn:function(t){return[e.getIfChecked(t.row)?r("i",{staticClass:"el-icon-check"}):e._e()]}}],null,!1,2175903232)}),e._l(e.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?t.label:e.$_t(e.entity+"."+t.name,e.entity+"."+t.name)},scopedSlots:e._u([{key:"default",fn:function(i){return[e.isQyWxTenant&&("systemuser"==e.entity&&"fullname"==t.name||"new_srv_worker"==e.entity&&"new_name"==t.name||"businessunit"==e.entity&&"name"==t.name||"new_thirdpartyuser"==e.entity&&"new_system_id"==t.name)?r("span",["businessunit"==e.entity?r("rt-ww-open-data",{attrs:{type:"departmentName",openid:i.row[t.name],corpid:e.corpId(i.row)}}):r("rt-ww-open-data",{attrs:{type:"userName",openid:i.row[t.name],corpid:e.corpId(i.row)}})],1):r("span",[e._v(e._s(e.getBindViewDisplayValue(i.row,t.name)))])]}}],null,!0)})}))],2):e._e()],1),e._t("footer",(function(){return[r("span",{staticClass:"dialog-footer"},[r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.enableAdd,expression:"enableAdd"}],attrs:{size:"medium"},on:{click:e.handleCreate}},[e._v(e._s(e.$_t("common.add","新增")))]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showRemoveDialog,expression:"showRemoveDialog"}],attrs:{size:"medium"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("lookup.remove","移除值")))]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v(e._s(e.$_t("common.determine","确定")))])],1)]}),{slot:"footer"})],2)}),[],!1,null,"48cfbeb6",null).exports),we=r("6060"),_e=r("18fc"),Ee={name:"RtLookup",components:{"rt-lookup-dialog":xe},mixins:[ye.a,be.a],props:{value:{type:Object,required:!1},fullEditForm:{type:Object},valueId:{type:String,required:!1},disabled:Boolean,readonly:Boolean,routername:{type:String,required:!1},showRemoveDialog:{type:Boolean,default:!0},entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return""}},isNormal:Boolean,nameField:String,idField:String,dialogDisplayFields:Array,dialogOrderbyFields:{type:String,default:function(){return""}},dialogFilterFields:String,dialogCallback:Function,dialogConditionFields:String,dependentAttributeName:{type:String,required:!1},dependentAttributeDisplayName:String,filterAttributeName:String,filterAttributeValue:{type:[String,Object,Number,Array],required:!1},dependentRelationShipName:String,datafieldname:String,countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},enableJump:{type:Boolean,default:!1},jumpFormLogicaName:{type:String,required:!1},jumpUrl:{type:String,required:!1},getJumpUrl:{type:Function,required:!1},enableAdd:{type:Boolean,default:!1},addFormLogicalName:{type:String,required:!1},defaultViewLogicalName:{type:String,required:!1},defaultViewId:{type:String,required:!1},showVlist:{type:Boolean,default:!0},isDependcy:{type:Number,default:0},isNeedTips:{type:Boolean,default:!1},referencedEntityDisplayName:{type:String,default:""},customerData:{type:Object,required:!1,default:()=>({})},formStatus:{type:Number,default:0},subGridRefAttribute:{type:String,default:""},closeQuickQuery:{type:Boolean,default:function(){return!1}}},data:()=>({lookupValue:{name:null,id:null,logicalname:null},isChanged:!1,lookupValueName:null,showFormDialog:!1,list:[],lookupKey:"plat-base-autocomplete-suggestion el-autocomplete-suggestion_"+parseInt(1e3*Math.random()),enableBlur:!0,hasTipAutocomplete:!0,hasTipJump:!0}),computed:{isLookupWatchLoading(){return!!(this.defaultViewLogicalName&&this.defaultViewId&&this.showVlist)},conditionValue:function(){return this.dialogConditionFields},showJump:function(){return this.lookupValue&&this.lookupValue.id&&this.enableJump},selectString:{get(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.dialogDisplayFields){var r=this.dialogDisplayFields[t].name;e.indexOf(r)>=0||this.dialogDisplayFields[t].noSelect||e.push(r)}return e.join(",")}},lookupValueReadOnly(){return this.disabled||this.readonly?"lookupvalue isreadOnly":"lookupvalue"},placeholderValue(){return this.value&&"{}"!==JSON.stringify(this.value)?"":this.disabled||this.readonly?"--":this.placeholder||this.$_t("common.select","请选择")},autoCompleteCount:()=>20,newLookupKey(){return this.lookupKey&&this.lookupKey.replace("plat-base-autocomplete-suggestion ","")},hasIcon:()=>!_e.a.getBasicCompConfig().hideBtnIcon},watch:{showFormDialog(e){this.createListening(e)},value(e){e||(e={name:null,id:null,logicalname:null}),this.lookupValue=e,this.handleMaskField()},valueId(e){var t=this.requestUrl+"?page=1&count="+this.autoCompleteCount+"&queryStr=";rt.get(t).then(t=>{if(null==t||null==t.Data)return;const r=t.Data||t||[];var i=[];r.forEach(t=>{t.value=t[this.nameField],i.push(t),t.Id==e&&this.selectValue(t)})}).catch(e=>{rt.showErrorToast(e)})},lookupValueName(e,t){e||(this.$refs.autocomplete.suggestions=[]),!e&&!e!=!t&&this.value&&this.value.name!=e&&(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)),e&&this.handlerShowTooltip()},isDependcy(e){e&&this.$emit("input",this.lookupValue,this.value,this.datafieldname)}},beforeDestroy(){let e=document.querySelector("."+this.newLookupKey);e&&(e.removeEventListener("mouseover",this.closeBlurHandle),e.removeEventListener("mouseleave",this.openBlurHandle))},mounted(){this.lookupValue=this.value,this.value&&"object"==typeof this.value.name&&(this.lookupValue.name=this.value.name.text),this.lookupValue&&this.handleMaskField(),this.$nextTick(()=>{let e=document.querySelector("."+this.newLookupKey);this.$PlatUtils.eventListenerHook(this,"mouseover",this.closeBlurHandle,e),this.$PlatUtils.eventListenerHook(this,"mouseleave",this.openBlurHandle,e)}),this.handlerShowTooltip()},methods:{clearLookupValue(){this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)},handlerShowTooltip(){this.$nextTick(()=>{const e=this.$refs.jump;e&&(this.hasTipJump=e.scrollWidth>e.offsetWidth);const t=this.$refs.autocomplete.$el;if(t){const e=t.querySelector("input");this.hasTipAutocomplete=e.scrollWidth>e.offsetWidth}})},changeLookupValueName(){this.isChanged=!0},focus(){this.isChanged=!1},dispatch(e,t,r){for(var i=this.$parent||this.$root,a=i.$options.componentName;i&&(!a||a!==e);)(i=i.$parent)&&(a=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(r))},handleContextmenu(e){we.a.rtContextmenu({text:e,url:this.jumpEdit,docTitle:this.referencedEntityDisplayName})},handleMaskField(){this.lookupValue.name&&this.lookupValue.name instanceof Object==1&&this.lookupValue.name.hasOwnProperty("reference")?this.lookupValueName=this.lookupValue.name.text:this.lookupValueName=this.lookupValue.name},corpId:e=>"",clearData(){this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)},closeBlurHandle(){this.enableBlur=!1},openBlurHandle(){this.enableBlur=!0},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),e||this.$emit("input",null,null,this.datafieldname),this.$emit("dialogCallback",e),this.$emit("change",e),this._fieldMappingHandle(e)},_fieldMappingHandle(e){this.$emit("attributeMappingCallback",e,this.lookupValue,this.datafieldname,this.entity)},blur(e){let t={lookupVal:e.target.value,list:this.list,nameField:this.nameField,idField:this.idField,entity:this.entity};this.$emit("setValueToSubgridLookup",t),this.enableBlur&&this.isChanged&&(this.list&&1==this.list.length?this.lookupValueName&&this.selectValue(this.list[0]):(!this.list||this.list&&Array.isArray(this.list)&&0==this.list.length)&&(this.lookupValueName=null),null!=this.lookupValue&&this.lookupValue.id?this.lookupValueName!=this.lookupValue.name&&(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)):(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)))},showLookupDialog(){if(this.$emit("showLookupDialog"),this.disabled||this.readonly)return!1;this.$refs.lookupDialog&&this.$refs.lookupDialog.show()},handleCreate(){this.showAddForm()},handleDataSelected(e){e||(e={}),this.lookupValue=e,this.handleMaskField(),this.$emit("input",e,null,this.datafieldname)},findValueByApi(e,t){if(null!=e&&e.length>0){var r="",i=!1;this.requestUrl&&(i=this.requestUrl.split("?").length>1);var a=!1;if(this.isNormal)r=this.requestUrl+(i?"&page=":"?page=")+"1&count="+this.autoCompleteCount+"&queryStr="+e+"&filter="+this.nameField+"&filterValue="+e;else if(this.requestUrl.indexOf("api/vlist/ExecuteQuery")>=0&&-1===this.requestUrl.indexOf("api/vlist/ExecuteQueryForLookUp"))a=!0,r=this.requestUrl+(i?"&isPreview=":"?isPreview=")+"false&$pageSize="+this.autoCompleteCount+"&$pageIndex=1&$paging=true&$search="+encodeURIComponent(this.lookupValueName||""),this.filterAttributeName&&(r+="&relationFilterAttribute=",r+=this.filterAttributeName),this.filterAttributeValue&&(r+="&relationFilterValue=",r+=this.filterAttributeValue),r+="&entityName="+this.entity;else{let e=this.nameField;this.requestUrl.indexOf("api/vlist/ExecuteQueryForLookUp")>=0&&(e=""),r=this.requestUrl+(i?"&entityName=":"?entityName=")+this.entity+"&page=1&count="+this.autoCompleteCount+"&select="+this.selectString+"&orderby="+this.dialogOrderbyFields+"&filter="+e+"&filterValue="+encodeURIComponent(this.lookupValueName||""),this.conditionValue&&(r+="&condition=",r+=encodeURIComponent(this.conditionValue))}r+="&countType="+this.countType+"&returnTotalRecordCount=false",rt.get(r).then(e=>{if(a){if(null==e||null==e.Entities)return void t([]);this.list=[],e.Entities.forEach(e=>{e.value=e[this.nameField];for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text);this.list.push(e)}),t(this.list)}else{if(null==e||null==e.Data)return void t([]);const r=e.Data||e||[];this.list=[],r.forEach(e=>{e.value=e[this.nameField];for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text);this.list.push(e)}),t(this.list)}}).catch(e=>{t([]),rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}else t([])},selectValue(e){if(e){let t="object"==typeof e[this.nameField]?e[this.nameField].text:e[this.nameField];this.lookupValue={name:t,id:e[this.idField]||e.$id,logicalname:this.entity},this.handleMaskField(),this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.parseVal(e)),this.$refs.lookupDialog&&(this.$refs.lookupDialog.currentRowClick=null),this.lookupValueName==t&&this.dispatch("ElFormItem","el.form.change",[this.lookupValueName])}},async showTips(){this.isNeedTips&&await this.$confirm(this.$_t("JumpisNeedTips","跳转详情页面可能会导致当前页面刚刚已编辑的数据丢失,是否继续?"),this.$_t("Tip","步骤"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"})},jumpEdit(e=!1){if(!this.lookupValue||!this.lookupValue.id)return"";let t="";if(this.routername)return e?t=this.routername?this.routername.toLowerCase():""+this.lookupValue.id:this.showTips().then(()=>{this.$router.push({name:this.routername,params:{id:this.lookupValue.id}})}).catch(()=>{}),t;if(this.jumpUrl){if(e){let e=this.getJumpUrl(this.lookupValue.id);e&&(t=e.slice(1))}else this.showTips().then(()=>{const e=this.getJumpUrl(this.lookupValue.id);e&&this.$router.push(e)}).catch(()=>{});return t}return this.jumpFormLogicaName?(e?t="vform3/"+this.entity+"/"+this.jumpFormLogicaName+"/"+this.lookupValue.id:this.$emit("jump-edit",{entityName:this.entity,formLogicalName:this.jumpFormLogicaName,objectId:this.lookupValue.id}),t):e?"vform/"+this.entity+"/"+this.lookupValue.id:void this.$emit("jump-edit",{entityName:this.entity,objectId:this.lookupValue.id})},getFunctionByExpression(e,t){try{var r=0==e.replace(/(^\s*)|(\s*$)/g,"").indexOf("{");return t&&t.length>0?new Function(t,`${r?"":"return"} ${e}`):new Function(`${r?"":"return"} ${e}`)}catch(t){return sessionStorage.showException||(sessionStorage.showException=!0,rt.showErrorToast(this.$_t("platform.lookupScript","脚本")+e+this.$_t("platform.lookupPerformerror","执行出错,请检查正确性"))),setTimeout(()=>{sessionStorage.showException=""},1e3),new Function("return null")}},showAddForm(){this.showFormDialog=!0},vformcallback(e){this.selectValue(e),this.showFormDialog=!1,this.$refs.lookupDialog&&(this.$refs.lookupDialog.dialogVisible=!1)},parseVal(e){var t={};for(var r in e){let i=e[r];null!=i&&"object"==typeof i?(i.name&&(t[r]=i.name),i.id&&(t[r+".id"]=i.id),i.hasOwnProperty("reference")&&(t[r]=i.text)):t[r]=i}return t}}},Ce=(r("4ee3"),Object(_.a)(Ee,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rc-base-lookup plat-base-lookup"},[!e.enableAdd||e.readonly||e.disabled?e._e():r("div",{staticClass:"rc-base-lookup-add"},[e.hasIcon?r("rc-icon",{attrs:{slot:"suffix",name:"rt-saas-add",size:"10"},slot:"suffix"}):e._e(),r("div",{on:{click:e.showAddForm}},[e._v(e._s(e.$_t("common.add","新增")))])],1),e.isQyWxTenant&&e.lookupValue&&e.lookupValue.id&&("systemuser"==e.entity||"new_srv_worker"==e.entity||"businessunit"==e.entity)?r("div",{staticClass:"rc-lookup-qywx"},["businessunit"==e.entity?r("rt-ww-open-data",{attrs:{type:"departmentName",openid:e.lookupValueName}}):r("rt-ww-open-data",{attrs:{type:"userName",openid:e.lookupValueName}}),e.readonly||e.disabled?e._e():r("span",{staticClass:"el-input__suffix",on:{click:e.clearData}},[e._m(0)])],1):r("rc-input",{directives:[{name:"show",rawName:"v-show",value:!e.showJump,expression:"!showJump"}],ref:"autocomplete",staticClass:"plat-base-input",attrs:{type:"autocomplete","has-tip":e.hasTipAutocomplete,"tip-text":e.lookupValueName,"popper-class":e.lookupKey,placeholder:e.placeholderValue,disabled:e.disabled||e.readonly,"trigger-on-focus":!1,"fetch-suggestions":e.findValueByApi,readonly:e.closeQuickQuery,"highlight-first-item":!0},on:{blur:e.blur,select:e.selectValue,focus:e.focus,input:e.changeLookupValueName},model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[e.disabled||e.readonly?e._e():r("rc-icon",{attrs:{slot:"suffix",name:"rt-base-lookup",color:e.SCSS_VARIABLES.NEUTRAL_COLOR_REGULAR},on:{click:e.showLookupDialog},slot:"suffix"}),e._t("prefix",null,{slot:"prefix"})],2),r("div",{staticClass:"rt-input-shadow"}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showJump,expression:"showJump"}],class:e.lookupValueReadOnly,attrs:{"has-tip":e.hasTipJump,"tip-text":e.lookupValueName}},[r("span",{ref:"jump",staticClass:"jumpSpan",on:{click:function(t){return e.jumpEdit()},contextmenu:function(t){return e.handleContextmenu(e.lookupValueName)}}},[e._v(e._s(e.lookupValueName))]),r("div",{staticClass:"suffix-icon-wrap"},[e.disabled||e.readonly?e._e():r("rc-icon",{staticClass:"suffix-icon-clearicon",attrs:{color:e.SCSS_VARIABLES.COLOR_INFO,name:"rt-base-circle-close-filled",size:16},on:{click:e.clearLookupValue}}),e.disabled||e.readonly?e._e():r("rc-icon",{staticClass:"lookup",attrs:{slot:"suffix",name:"rt-base-lookup",color:e.SCSS_VARIABLES.NEUTRAL_COLOR_REGULAR},on:{click:e.showLookupDialog},slot:"suffix"})],1),e._t("prefix")],2),r("rt-lookup-dialog",{ref:"lookupDialog",attrs:{entity:e.entity,"is-normal":e.isNormal,"request-url":e.requestUrl,"dependent-attribute-name":e.filterAttributeName,"dependent-relation-ship-name":e.dependentRelationShipName,"show-vlist":e.showVlist,"name-field":e.nameField,"id-field":e.idField,"display-fields":e.dialogDisplayFields,"orderby-fields":e.dialogOrderbyFields,"filter-fields":e.dialogFilterFields,"condition-fields":e.conditionValue,"show-remove-dialog":e.showRemoveDialog,"count-type":e.countType,"return-total-record-count":e.returnTotalRecordCount,"is-watch-loading":e.isLookupWatchLoading,"default-view-logical-name":e.defaultViewLogicalName,"default-view-id":e.defaultViewId,"customer-data":e.customerData,"lookup-value":e.lookupValue,"to-entity":e.fullEditForm,"enable-add":e.enableAdd},on:{"data-create":e.handleCreate,"data-selected":e.handleDataSelected,dialogCallback:e._dialogCallback}}),r("rc-dialog",{class:e.isShowClass,attrs:{"custom-class":"plat-standard-dialog","close-on-click-modal":!1,title:e.$_t("common.add","新增"),"show-footer":!1,size:"large"},model:{value:e.showFormDialog,callback:function(t){e.showFormDialog=t},expression:"showFormDialog"}},[e.showFormDialog?r("vformcore",{attrs:{"form-logical-name":e.addFormLogicalName,"is-lookup-add":!0,"object-type-name":e.entity,"form-type":1,"to-entity":e.fullEditForm,"is-dialog-mode":""},on:{callback:e.vformcallback}}):e._e()],1)],1)}),[function(){var e=this.$createElement,t=this._self._c||e;return t("span",{staticClass:"el-input__suffix-inner"},[t("i",{staticClass:"el-input__icon el-icon-circle-close"})])}],!1,null,"4830737f",null).exports),Ne={name:"RtMultipleLookupDialog",mixins:[ye.a,be.a],props:{entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},dialogShowSelect:{type:Boolean,default:function(){return!1}},isNormal:{type:Boolean,default:!1,required:!1},nameField:{type:String,default:function(){return"new_name"}},idField:{type:String,default:function(){return this.entity+"id"}},displayFields:{type:Array,default:function(){return this.defaultFields}},orderbyFields:{type:String,default:function(){return"createdon desc"}},filterFields:{type:String,default:function(){return"new_name"}},dependentAttributeName:{type:String},dependentRelationShipName:{type:String},conditionFields:{type:String,default:function(){return""}},title:{type:String,default:function(){return""}},showRemoveDialog:{type:Boolean,default:!0},countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},defaultViewLogicalName:{type:String,required:!1},defaultViewId:{type:String,required:!1},showVlist:{type:Boolean,default:!0},checkedData:Array,choiceMaxCount:Number|String},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:10,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableHeight:200,tableData:[],currentRow:null,computedHeight:300,PaginationClass:"",pageCondition:{},drawerVisible:!1,searchVal:"",selectedData:[],selectedAllData:[],multipleDeleteSection:[],building:!1,checkedData2:[],isDisabled:!1}),computed:{isBindView(){return this.defaultViewLogicalName&&this.defaultViewId&&this.showVlist},dialogTitle(){return this.$_t("TO_FIND_THE","查找")},defaultFields(){return[{name:"new_name",label:this.$_t("common.name","名称")},{name:"createdon",label:this.$_t("crm.createdon","创建时间"),width:180}]},selectString:{get(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.displayFields){var r=this.displayFields[t].name;e.indexOf(r)>=0||this.displayFields[t].noSelect||e.push(r)}return e.join(",")}},orderbyString:{get(){return this.orderbyFields}},filterString:{get(){return this.filterFields}},conditionString:{get(){return this.conditionFields}}},watch:{selectedAllData(e){this.drawerSearch()},searchVal(e){e||this.drawerSearch()},checkedData(e){this.checkedData2=[],e.forEach(e=>{e.checked=!0,this.checkedData2.push(e)}),e.length1==e.canSelect,corpId(e){return"api/crmlookupview/getdata"==this.requestUrl?e.new_wx_chain_id:e.new_wx_chain_id?e.new_wx_chain_id.name:""},show(){this.dialogVisible=!0,this.filterValue="",this.multipleDeleteSection=[],this.selectedAllData=JSON.parse(JSON.stringify(this.checkedData)),this.searchVal="",this.drawerVisible=!1,this.$refs.lookupTableRef&&this.$refs.lookupTableRef.$refs&&this.$refs.lookupTableRef.$refs.table&&this.$refs.lookupTableRef.$refs.table.clearSelection(),this.pageIndex=1,this.isBindView&&this._fetchRecords()},getRowKeys:e=>e.$id,handleSearch(){this.pageIndex=1,this.$refs.lookupTableRef&&this.$refs.lookupTableRef.fetchData()},handleCurrentChange(e){this.currentRow=this.parseVal(e)},handleSortChange(){alert(this.$_t("common.Unrealized","未实现"))},handleSizeChange(e){this.pageSize=e,this.isBindView&&this._fetchRecords()},handleIndexChange(e){this.pageIndex=e,this.isBindView&&this._fetchRecords()},handleReset(){this.$emit("data-selected",[]),this.$emit("dialogCallback",null),this.isDisabled=!1,this.selectedAllData.forEach(e=>{this.$refs.lookupTableRef&&this.$refs.lookupTableRef.toggleRowSelection(e,!1),0==this.multipleDeleteSection.filter(t=>t.$id==e.$id).length&&this.multipleDeleteSection.push(e)}),this.selectedAllData=[],this.loadComplete(),this.$emit("cancel")},callback(e){this.currentRow=this.parseVal(e),this.handleConfirm()},parseVal(e){var t={};for(var r in e){let i=e[r];null!=i&&"object"==typeof i?(i.name&&(t[r]=i.name),i.id&&(t[r+".id"]=i.id)):t[r]=i}return t},handleConfirm(){this.selectedAllData.length?(this.$emit("data-selected",this.selectedAllData,this.multipleDeleteSection),this.dialogVisible=!1):this.$message({type:"warning",showClose:!0,message:this.$_t("ChooseOneData","请选择一条记录")})},_fetchRecords(){this.pageCondition.dependentAttributeName=this.dependentAttributeName,this.pageCondition.dependentRelationShipName=this.dependentRelationShipName,this.loading=!0;var e="",t=!1;if(this.requestUrl&&(t=this.requestUrl.split("?").length>1),this.isNormal?(e=this.requestUrl+(t?"&page=":"?page=")+this.pageIndex+"&count="+this.pageSize+"&queryStr="+this.filterValue+"&filterValue="+this.filterValue,this.conditionString&&(e+="&condition="+this.conditionString),this.pageCondition.pageConditionStr=this.conditionString):(e=this.requestUrl+(t?"&entityName=":"?entityName=")+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||""),this.conditionString&&(e+="&condition="+this.conditionString),this.pageCondition.pageConditionStr=this.conditionString),e+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,!this.isBindView)return rt.get(e).then(e=>{this.tableData=e.Data||[],this.isDisabled?this.tableData.map(e=>{if(this.selectedAllData.find(t=>t.$id==e.$id))return e.canSelect=!0}):this.tableData.map(e=>e.canSelect=!0);var t=this.tableData.length;return-1==e.TotalRecordCount?(this.PaginationClass="nocount",0==t||t0?this.totalRecordCount=e.Entities.length:this.totalRecordCount=e.TotalRecordCount):(this.PaginationClass="",this.totalRecordCount=e.TotalRecordCount),e.Data}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})},toShowDrawer(){this.drawerVisible=!0},drawerSearch(){this.searchVal?(this.selectedData=[],this.selectedAllData.filter(e=>{e[this.nameField].contains(this.searchVal)&&this.selectedData.push(e)})):this.selectedData=this.selectedAllData},toCloseDrawer(){this.drawerVisible=!1},selectionChange(e){if(e.length==this.choiceMaxCount)this.tableData.map(e=>e.canSelect=!1),e.map(e=>e.canSelect=!0),this.isDisabled=!0;else if(e.lengthe.canSelect=!0),this.isDisabled=!1;else if(e.length>this.choiceMaxCount){if(rt.showErrorToast(this.$_t("More.filtered","多选lookup数据不能超出{0}条").format(this.choiceMaxCount)),this.$refs.lookupTableRef&&this.$refs.lookupTableRef.$refs&&this.$refs.lookupTableRef.$refs.table){let e=this.selectedAllData.map(e=>e.$id);this.$nextTick(()=>{this.tableData.forEach(t=>{e.includes(t.$id)?this.$refs.lookupTableRef.$refs.table.toggleRowSelection(t,!0):this.$refs.lookupTableRef.$refs.table.toggleRowSelection(t,!1)})})}return}if(this.building)return;e&&e.length>0?this.selectedData.forEach(t=>{let r=e.filter(e=>e.$id==t.$id);0==r.length?this.multipleDeleteSection.push(t):this.multipleDeleteSection.filter((e,t)=>{e.$id==r[0].$id&&this.multipleDeleteSection.splice(t,1)})}):(this.multipleDeleteSection.push(this.selectedAllData),this.$refs.lookupTableRef&&this.$refs.lookupTableRef.$refs&&this.$refs.lookupTableRef.$refs.table&&this.$refs.lookupTableRef.$refs.table.clearSelection());let t=[];e.forEach(e=>{0==t.filter(t=>t.$id==e.$id).length&&(t.push(e),this.multipleDeleteSection.filter((t,r)=>{t.$id==e.$id&&this.multipleDeleteSection.splice(r,1)}))}),this.selectedAllData=t},selectAll(e){var t;this.$emit("change",{data:(t=e,t?JSON.parse(JSON.stringify(t)):""),multiple:!0})},drawerDel(e){var t=-1;if(this.selectedAllData.filter((r,i)=>{r.$id==e.$id&&(t=i)}),-1!=t){this.selectedAllData.splice(t,1),this.multipleDeleteSection.push(e);let r=this.tableData.filter(t=>t.$id==e.$id);null!=r&&r.length>0&&this.$refs.lookupTableRef&&this.$refs.lookupTableRef.toggleRowSelection(r[0],!1)}},loadComplete(){this.$nextTick(()=>{this.building=!0,this.selectedAllData.forEach(e=>{var t=this.tableData.filter(t=>t.$id==e.$id);0==t.length?this.$refs.lookupTableRef&&this.$refs.lookupTableRef.toggleRowSelection(e,!0):this.$refs.lookupTableRef&&this.$refs.lookupTableRef.toggleRowSelection(t[0],!0)}),this.tableData.forEach(e=>{this.multipleDeleteSection.filter(t=>t.$id==e.$id).length>0&&this.$refs.lookupTableRef&&this.$refs.lookupTableRef.toggleRowSelection(e,!1)}),this.building=!1})}}},Se=(r("6972"),r("12e1"),Object(_.a)(Ne,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal multilookup-dialog plat-multilookup-dialog",class:this.isBindView?e.isShowClass:"",attrs:{"append-to-body":!0,"close-on-click-modal":!1,title:e.title,size:"large"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("rc-section",[this.isBindView?r("div",[e.dialogVisible?r("vlistcore",{key:this.entity+this.defaultViewId+this.defaultViewLogicalName,attrs:{"page-condition":e.pageCondition,"query-id":e.defaultViewId,"query-logical-name":e.defaultViewLogicalName,"object-type-name":e.entity,"page-source":"lookup","is-single-select":!0},on:{callback:e.callback,handleCurrentChange:e.handleCurrentChange}}):e._e()],1):r("div",[r("rc-form",{staticClass:"search-wrap",attrs:{"label-position":"left"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("rc-form-item",{attrs:{"label-position":"left",label:e.$_t("common.search","搜索")}},[r("rc-search",{attrs:{clearable:"",more:!1,placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录")},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],1),r("div",{staticClass:"plat-section-content",class:e.isDisabled?"disabledCheckAll":""},[r("rc-button",{staticClass:"drawer-btn",attrs:{"icon-name":"rt-saas-left","icon-size":"12",type:"primary",size:"medium"},on:{click:e.toShowDrawer}},[e._v(" "+e._s(e.$_t("multilookup.selectedlabel","已选"))+" ")]),r("rc-drawer",{staticClass:"dialog-drawer plat-dialog-drawer",attrs:{modal:!1,"append-to-body":!1,"with-header":!1,visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[r("template",{slot:"default"},[r("rc-search",{attrs:{clearable:"",more:!1},on:{"on-search":e.drawerSearch},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),r("rc-button",{staticClass:"drawer-close-left",attrs:{"icon-name":"rt-saas-close-x",type:"primary"},on:{click:e.toCloseDrawer}}),r("div",{staticClass:"drawer-content"},[r("div",{staticClass:"subtitle"},[r("div",{staticClass:"plat-choiced"},[e._v(" "+e._s(this.$_t("multilookup.drawertip","已选择"))+" "),r("span",{staticClass:"plat-choiced-item"},[e._v(e._s(this.selectedAllData.length))]),e._v(" "+e._s(this.$_t("multilookup.drawertip1","项"))+" ")])]),r("div",{staticClass:"choicedTag"},e._l(e.selectedData,(function(t){return r("rc-tag",{key:t.$id,attrs:{"color-type":"normal"}},[e._v(" "+e._s(t[e.nameField])+" ")])})),1)])],1)],2),e.dialogVisible?r("rc-table",{ref:"lookupTableRef",attrs:{fetch:e._fetchRecords,sectionable:!1,width:"100%","highlight-current-row":"",data:e.tableData,height:e.computedHeight,stripe:!0,"row-key":e.getRowKeys,loading:e.loading,"auto-height":!1,"show-pagination":!0,"default-page-index":e.pageIndex,"page-size":e.pageSize,"page-layout":e.layout,"total-record":e.totalRecordCount},on:{"current-change":e.handleCurrentChange,"row-dblclick":e.handleConfirm,"sort-change":e.handleSortChange,changesize:e.handleSizeChange,changeindex:e.handleIndexChange,"load-complete":e.loadComplete,"selection-change":e.selectionChange,"select-all":e.selectAll}},[r("rc-table-column",{attrs:{type:"selection",selectable:e.checkboxSelect,"reserve-selection":!0,width:"50"}}),e._l(e.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?t.label:e.$_t(e.entity+"."+t.name,e.entity+"."+t.name)},scopedSlots:e._u([{key:"default",fn:function(i){return[e.isQyWxTenant&&("systemuser"==e.entity&&"fullname"==t.name||"new_srv_worker"==e.entity&&"new_name"==t.name||"businessunit"==e.entity&&"name"==t.name||"new_thirdpartyuser"==e.entity&&"new_system_id"==t.name)?r("span",["businessunit"==e.entity?r("rt-ww-open-data",{attrs:{type:"departmentName",openid:i.row[t.name],corpid:e.corpId(i.row)}}):r("rt-ww-open-data",{attrs:{type:"userName",openid:i.row[t.name],corpid:e.corpId(i.row)}})],1):r("span",[e._v(e._s(i.row[t.name]))])]}}],null,!0)})}))],2):e._e()],1)],1)]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.showRemoveDialog?r("rc-button",{attrs:{size:"medium"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$_t("BUTTON_RESET","重置"))+" ")]):e._e(),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.$_t("picker.confirm","确认"))+" "),e.selectedAllData.length>0?r("span",[e._v("("+e._s(e.selectedAllData.length)+")")]):e._e()])],1)],1)}),[],!1,null,"46ea2b7d",null).exports),Te={name:"RtMultiLookup",components:{"rt-lookup-dialog":Se},props:{value:{type:[Object,Array],required:!1},disabled:Boolean,readonly:Boolean,routername:{type:String,required:!1},showRemoveDialog:{type:Boolean,default:!0},entity:{type:String,required:!0},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return""}},isNormal:Boolean,nameField:String,idField:String,dialogDisplayFields:Array,dialogOrderbyFields:{type:String,default:function(){return""}},dialogFilterFields:String,dialogCallback:Function,dialogConditionFields:String,dependentAttributeName:{type:String,required:!1},dependentAttributeDisplayName:String,filterAttributeName:String,filterAttributeValue:{type:[String,Object,Number,Array],required:!1},dependentRelationShipName:String,datafieldname:String,countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},enableJump:{type:Boolean,default:!1},jumpFormLogicaName:{type:String,required:!1},jumpUrl:{type:String,required:!1},enableAdd:{type:Boolean,default:!1},addFormLogicalName:{type:String,required:!1},defaultViewLogicalName:{type:String,required:!1},defaultViewId:{type:String,required:!1},showVlist:{type:Boolean,default:!0},isDependcy:{type:Boolean,default:!1},isFold:{type:Boolean,default:!1},max:{type:Boolean,default:!0},title:{type:String,default:""}},data:()=>({lookupValueName:null,list:[],inputHovering:!1,autoWidth:"100%",inputWidth:0,maxIndex:0,inputSizeObserver:null,lookupKey:"el-autocomplete-suggestion_"+parseInt(1e3*Math.random()),enableBlur:!0,hideList:!1}),computed:{getContent(){let e="";return this.list.slice(this.maxIndex).forEach(t=>{e+=t[this.nameField]+";"}),e=e.substring(0,e.length-1),e},isWatchLoading(){return this.defaultViewLogicalName&&this.defaultViewId&&this.showVlist},conditionValue:function(){return this.dialogConditionFields},selectString:{get(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.dialogDisplayFields){var r=this.dialogDisplayFields[t].name;e.indexOf(r)>=0||this.dialogDisplayFields[t].noSelect||e.push(r)}return e.join(",")}},iscollpaseClass(){return this.isFold?"multiple-lookup-wrap iscollpase":"multiple-lookup-wrap"},showClose(){return!!this.inputHovering&&!!this.list&&this.list.length>0},computedDisabled(){return this.disabled},placeholderTip:{get(){return this.list.length>0?"":this.disabled?this.$_t("common.noData","暂无信息"):this.placeholder||this.$_t("common.select","请选择")}},choiceMaxCount(){return this.$store.state&&this.$store.state.systemparameter&&this.$store.state.systemparameter.LimitMultiLookupInQuantity||20}},watch:{value(e){const t=e=>{this.list.push({$id:e.id,new_name:null!=e.name&&"object"==typeof e.name?e.name.text:e.name,[this.idField]:e.id,[this.nameField]:null!=e.name&&"object"==typeof e.name?e.name.text:e.name,$logicalName:e.logicalName})},r=e=>{const r=new Set;e.forEach(e=>{this.list.some(t=>t[this.idField]===e.id)||t(e),r.add(e.id)}),this.list=this.list.filter(e=>r.has(e.$id))};if(e&&0!=e.length)if(Array.isArray(e))r(e);else{if(this.list.some(t=>t[this.idField]===e.id))return;t(e)}else this.list=[]},lookupValueName(e,t){if(!e&&!e!=!t&&this.value&&this.value.name!=e){const e=this.list.map(e=>({name:e[this.nameField],id:e[this.idField],item:this.entity}));this.$emit("input",e,null,this.datafieldname),this._dialogCallback(e)}e||(this.$refs.autocomplete.suggestions=[])},inputWidth(){this.calcMaxIndex()},list(){this.calcMaxIndex()}},beforeDestroy(){let e=document.querySelector("."+this.lookupKey);e&&(e.removeEventListener("mouseover",this.closeBlurHandle),e.removeEventListener("mouseleave",this.openBlurHandle)),this.inputSizeObserver&&this.inputSizeObserver.disconnect()},mounted(){this.value&&this.value.forEach(e=>{this.list.push({$id:e.id,new_name:null!=e.name&&"object"==typeof e.name?e.name.text:e.name,[this.idField]:e.id,[this.nameField]:null!=e.name&&"object"==typeof e.name?e.name.text:e.name,$logicalName:e.logicalName})}),this.$nextTick(()=>{let e=document.querySelector("."+this.lookupKey);this.$PlatUtils.eventListenerHook(this,"mouseover",this.closeBlurHandle,e),this.$PlatUtils.eventListenerHook(this,"mouseleave",this.openBlurHandle,e),this.inputSizeObserver||(this.inputSizeObserver=new ResizeObserver(e=>{e.forEach(e=>{this.inputWidth=e.contentRect.width})}),this.inputSizeObserver.observe(this.$refs.lookup))}),this.$PlatUtils.eventListenerHook(this,"click",this.handleDocumentClick,document)},methods:{handleBlur(){this.hideList=!1},handleDocumentClick(e){var t,r;null!==(t=this.$refs.autocomplete)&&void 0!==t&&null!==(r=t.$el)&&void 0!==r&&r.contains(e.target)||(this.lookupValueName=null)},calcMaxIndex(){this.max&&this.inputWidth&&this.$nextTick(()=>{const e=this.$refs.tag?Array.from(this.$refs.tag.getElementsByClassName("rt-tag-box")):[];let t=0,r=0;for(let i=0;ithis.inputWidth-160)break;t+=e[i].offsetWidth,r=i}this.maxIndex=r+1})},closeBlurHandle(){this.enableBlur=!1},openBlurHandle(){this.enableBlur=!0},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),e||this.$emit("input",null,null,this.datafieldname),this.$emit("dialogCallback",e),this.$emit("attributeMappingCallback",e,this.list,this.datafieldname,this.entity)},showLookupDialog(){if(this.disabled||this.readonly)return!1;this.$refs.lookupDialog&&this.$refs.lookupDialog.show()},handleDataSelected(e,t){this.list=e;let r=[];e.forEach(e=>{r.push({id:e[this.idField],name:e[this.nameField],logicalName:e.$logicalname})}),this.$emit("input",r)},findValueByApi(e,t){if(null!=e&&e.length>0){let r="",i=!1;this.requestUrl&&this.requestUrl.split("?").length>1&&(i=!0),this.isNormal?r=this.requestUrl+(i?"&page=":"?page=")+"1&count=10&queryStr="+e+"&filter="+this.nameField+"&filterValue="+e:(r=this.requestUrl+(i?"&entityName=":"?entityName=")+this.entity+"&page=1&count=10&select="+this.selectString+"&orderby="+this.dialogOrderbyFields+"&filter="+this.nameField+"&filterValue="+encodeURIComponent(this.lookupValueName||""),this.conditionValue&&(r+="&condition=",r+=encodeURIComponent(this.conditionValue))),r+="&countType="+this.countType+"&returnTotalRecordCount=false",rt.get(r).then(e=>{if(null==e||null==e.Data)return void t([]);const r=e.Data.map(e=>{e.value=e[this.nameField];for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text);return e});t(r)}).catch(e=>{t([]),rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}else t([])},selectValue(e){var t,r,i,a;const n=this.list.findIndex(t=>t.$id==e.$id)>-1;if(this.list.length>this.choiceMaxCount-1&&!n)return rt.showErrorToast(this.$_t("More.filtered","多选lookup数据不能超出{0}条").format(this.choiceMaxCount)),void(this.lookupValueName="");if(n||this.list.push(e),this.lookupValueName="",e){let t={name:"object"==typeof e[this.nameField]?e[this.nameField].text:e[this.nameField],id:e[this.idField],logicalname:this.entity};this.$emit("input",t,null,this.datafieldname)}this.hideList=!1,null===(t=this.$refs.autocomplete)||void 0===t||null===(r=t.$refs.input)||void 0===r||null===(i=r.$refs.input)||void 0===i||null===(a=i.blur)||void 0===a||a.call(i)},mouseenter(){setTimeout(()=>{this.inputHovering=!0})},mouseleave(){setTimeout(()=>{this.inputHovering=!1})},del(e){this.disabled||(this.list.splice(e,1),this.$emit("input",this.list.map(e=>({name:e[this.nameField],id:e[this.idField],item:this.entity}))))},clear(){this.disabled||(this.list=null,this.$emit("input",this.list))}}},ke=(r("62d7"),r("45c7"),Object(_.a)(Te,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rc-base-lookup plat-base-lookup plat-multilookup"},[r("div",{ref:"lookup",staticClass:"rt-multiplelookup",class:e.iscollpaseClass,on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave}},[r("rc-input",{ref:"autocomplete",style:{width:e.autoWidth},attrs:{slot:"reference","collapse-tags":"",type:"autocomplete","highlight-first-item":!0,"popper-class":e.lookupKey,placeholder:e.placeholderTip,disabled:e.computedDisabled,"trigger-on-focus":!1,"fetch-suggestions":e.findValueByApi},on:{select:e.selectValue,focus:function(t){e.hideList=!0},blur:e.handleBlur},slot:"reference",model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[r("rc-icon",{directives:[{name:"show",rawName:"v-show",value:!e.computedDisabled,expression:"!computedDisabled"}],staticClass:"search-icon",attrs:{slot:"suffix",name:"rt-base-lookup",color:e.SCSS_VARIABLES.NEUTRAL_COLOR_REGULAR},on:{click:e.showLookupDialog},slot:"suffix"}),e.showClose?r("rc-icon",{staticClass:"clear-icon",attrs:{slot:"suffix",color:e.SCSS_VARIABLES.COLOR_INFO,name:"rt-base-circle-close-filled"},nativeOn:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}},slot:"suffix"}):e._e()],1),e.list&&e.list.length>0?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.hideList,expression:"!hideList"}],staticClass:"multilookup-main"},[[r("span",{ref:"tag",style:{position:"absolute",opacity:0,"pointer-events":"none",width:0,overflow:"hidden"}},e._l(e.list,(function(t){return r("rc-tag",{key:t.id||t.$id,staticClass:"rt-tag-box",attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"}},[e._v(" "+e._s(t[e.nameField]))])})),1)],e.max&&e.list.length>0?[e._l(e.list.slice(0,e.maxIndex),(function(t,i){return r("rc-tag",{key:t.id||t.$id,attrs:{closable:!e.computedDisabled,disabled:e.computedDisabled,type:"outline","icon-color":e.SCSS_VARIABLES.COLOR_PRIMARY,"icon-direction":"right","color-type":"primary"},on:{close:function(t){return e.del(i)}}},[e._v(" "+e._s(t[e.nameField])+" ")])})),e.list.length>2&&e.isFold?r("rc-popover",{ref:"popover",attrs:{trigger:"click"},on:{show:e.showPopover}},[r("ul",{staticClass:"popover_ul"},e._l(e.list.slice(e.maxIndex),(function(t,i){return r("li",{key:i,staticClass:"plat-multilookup-popover_li popover_li"},[r("span",[e._v(e._s(t[e.nameField]))]),e.disabled?e._e():r("rc-icon",{attrs:{name:"rt-base-close_fill"},nativeOn:{click:function(t){return t.stopPropagation(),e.del(i+e.maxIndex)}}})],1)})),0),r("div",{staticClass:"tag",attrs:{slot:"reference"},slot:"reference"},[r("rc-tag",{attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"},on:{close:function(t){return e.del(e.list.length-1)}}},[e._v("+ "+e._s(e.list.length-e.maxIndex)+" ")]),r("span",{staticClass:"tag-text"},[e._v("+ "+e._s(e.list.length-2))])],1)]):e._e(),r("rc-tooltip",{key:e.value,attrs:{content:e.getContent,placement:"bottom"}},[e.list.length>e.maxIndex&!e.isFold?r("rc-tag",{staticClass:"tag-extra",attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"},on:{close:function(t){return e.del(e.list.length-1)}}},[e._v("+ "+e._s(e.list.length-e.maxIndex)+" ")]):e._e()],1)]:e._e()],2):e._e()],1),r("rt-lookup-dialog",{ref:"lookupDialog",attrs:{entity:e.entity,"is-normal":e.isNormal,"request-url":e.requestUrl,"dependent-attribute-name":e.filterAttributeName,"dependent-relation-ship-name":e.dependentRelationShipName,"show-vlist":e.showVlist,"name-field":e.nameField,"id-field":e.idField,"display-fields":e.dialogDisplayFields,"orderby-fields":e.dialogOrderbyFields,"filter-fields":e.dialogFilterFields,"condition-fields":e.conditionValue,"show-remove-dialog":e.showRemoveDialog,"count-type":e.countType,"return-total-record-count":e.returnTotalRecordCount,"choice-max-count":e.choiceMaxCount,"default-view-logical-name":e.defaultViewLogicalName,"default-view-id":e.defaultViewId,"checked-data":e.list,"is-watch-loading":e.isWatchLoading,title:e.title},on:{"data-selected":e.handleDataSelected,dialogCallback:e._dialogCallback}})],1)}),[],!1,null,"355550a3",null).exports),Oe={name:"RtMultiLookupView",mixins:[be.a],provide:()=>({elFormItem:{}}),props:{refEntity:{type:String,required:!0},requestUrl:String,nameField:String,idField:String,countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},displayFields:{type:Array,default:()=>[]},filterFields:{type:String,default:function(){return"new_name"}},isFold:{type:Boolean,default:!1},orderbyFields:String,title:String,total:Number,checkedData:Array},data:()=>({filterValue:"",computedHeight:300,dialogVisible:!1,loading:!1,showPagination:!0,pageIndex:1,pageSize:20,selectedAllData:[],multipleDeleteSection:[],layout:"total, sizes, prev, pager, next",totalRecordCount:0,currentPageData:[],drawerVisible:!1,searchVal:"",selectedData:[],building:!1,checkedData2:[],clickToDelData:[]}),computed:{selectString:{get(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.displayFields){var r=this.displayFields[t].name;e.indexOf(r)>=0||this.displayFields[t].noSelect||e.push(r)}return e.join(",")}},orderbyString:{get(){return this.orderbyFields}},filterString:{get(){return this.filterFields}}},watch:{dialogVisible(e){e||(this.filterValue="")},selectedAllData(e){this.drawerSearch()},filterValue(e){e||this.search()},searchVal(e){e||this.drawerSearch()},checkedData(e){this.checkedData2=[],e.forEach(e=>{e.checked=!0,this.checkedData2.push(e)})}},methods:{toCloseDrawer(){this.drawerVisible=!1},toShowDrawer(){this.drawerVisible=!0},getRowKeys:e=>e.$id,show(){this.dialogVisible=!0,this.initData(),this.$nextTick(()=>{document.querySelectorAll(".plat-multilookup-dialog .el-table__header")&&document.querySelectorAll(".plat-multilookup-dialog .el-table__header").forEach(e=>{e.style.width="100%"}),document.querySelectorAll(".plat-multilookup-dialog .el-table__body")&&document.querySelectorAll(".plat-multilookup-dialog .el-table__body").forEach(e=>{e.style.width="100%"})})},initData(){this.$nextTick(()=>{let e=this.$refs.table&&this.$refs.table.$refs&&this.$refs.table.$refs.table;e&&this.$refs.table.$refs.table.clearSelection(),this.selectedAllData=JSON.parse(JSON.stringify(this.checkedData)),this.filterValue="",this.multipleDeleteSection=[],this.clickToDelData=[],this.searchVal="",this.drawerVisible=!this.isFold,e&&this.loadComplete()})},_fetchRecords(e){this.loading=!0;let t="",r=!1;return this.requestUrl&&(r=this.requestUrl.split("?").length>1),t=this.requestUrl+(r?"&entityName=":"?entityName=")+this.refEntity+"&page="+e.pageIndex+"&count="+e.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||""),this.conditionString&&(t+="&condition="+this.conditionString),t+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,rt.get(t).then(e=>{var t=(e.Data||[]).length;return-1==e.TotalRecordCount?(this.showPagination=!1,0==t||t0?this.totalRecordCount=e.Entities.length:this.totalRecordCount=e.TotalRecordCount):(this.showPagination=!0,this.totalRecordCount=e.TotalRecordCount),this.currentPageData=e.Data,e.Data}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1,this.$nextTick(()=>{this.$emit("schemaLoaded")})})},loadComplete(){this.$nextTick(()=>{this.building=!0,this.selectedAllData.forEach(e=>{let t=this.currentPageData.filter(t=>t.$id==e.$id);0==t.length?this.$refs.table&&this.$refs.table.toggleRowSelection(e,!0):this.$refs.table&&this.$refs.table.toggleRowSelection(t[0],!0)}),this.currentPageData.forEach(e=>{this.multipleDeleteSection.filter(t=>t.$id==e.$id).length>0&&this.$refs.table&&this.$refs.table.toggleRowSelection(e,!1)}),this.building=!1})},search(){this.lodaData()},lodaData(){this.$refs.table&&this.$refs.table.loadData()},selectAll(e){var t;this.$emit("change",{data:(t=e,t?JSON.parse(JSON.stringify(t)):""),multiple:!0})},selectionChange(e){if(!this.building){e&&e.length>0?this.selectedAllData.forEach(t=>{var r=e.filter(e=>e.$id==t.$id);0==r.length?this.multipleDeleteSection.push(t):this.multipleDeleteSection.filter((e,t)=>{e.$id==r[0].$id&&this.multipleDeleteSection.splice(t,1)})}):(this.multipleDeleteSection.push(this.selectedAllData),this.$refs.table&&this.$refs.table.$refs&&this.$refs.table.$refs.table&&this.$refs.table.$refs.table.clearSelection());var t=[];e.forEach(e=>{0==t.filter(t=>t.$id==e.$id).length&&(t.push(e),this.multipleDeleteSection.filter((t,r)=>{t.$id==e.$id&&this.multipleDeleteSection.splice(r,1)}))}),this.selectedAllData=t}},confirm(){let e;e=this.selectedAllData.every(e=>e[this.nameField]),e?(this.$emit("confirm",this.selectedAllData,this.multipleDeleteSection),this.dialogVisible=!1):rt.showErrorToast(this.$_t("multilookup.maintainMainField","请维护所选数据的主字段。"))},cancel(){this.selectedAllData.forEach(e=>{this.$refs.table&&this.$refs.table.toggleRowSelection(e,!1),0==this.multipleDeleteSection.filter(t=>t.$id==e.$id).length&&this.multipleDeleteSection.push(e)}),this.selectedAllData=[],this.clickToDelData=[],this.loadComplete(),this.$emit("cancel")},drawerSearch(){this.searchVal?(this.selectedData=[],this.selectedAllData.filter(e=>{e[this.nameField].contains(this.searchVal)&&this.selectedData.push(e)})):this.selectedData=this.selectedAllData},drawerDel(e){let t=-1;if(this.selectedAllData.filter((r,i)=>{r.$id==e.$id&&(t=i)}),-1!=t){this.multipleDeleteSection.push(e),this.clickToDelData.push(e),this.selectedAllData.splice(t,1),this.$refs.table&&(this.$refs.table.selection.splice(t,1),this.$refs.table.$refs.table.layout.store.states.selection.splice(t,1));let r=this.currentPageData.filter(t=>t.$id==e.$id);null!=r&&r.length>0&&this.$refs.table&&(this.$refs.table.toggleRowSelection(r[0],!1),this.clickToDelData.forEach(e=>{this.selectedAllData=this.selectedAllData.filter(t=>{if(t.$id!==e.$id)return t}),this.$refs.table.selection=this.$refs.table.selection.filter(t=>{if(t.$id!==e.$id)return t})}))}}}},Ie=(r("488b"),Object(_.a)(Oe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"multilookup-dialog plat-multilookup-dialog",class:e.isShowClass,attrs:{"append-to-body":!0,title:e.title,"close-on-click-modal":!1,size:"large","custom-class":"rt-view-wrapper"},on:{confirm:e.confirm,cancel:e.cancel},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("rc-section",[r("div",{staticClass:"section-search"},[r("rc-search",{attrs:{clearable:"",more:!1},on:{"on-search":e.search},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1),r("div",{staticClass:"plat-section-content"},[r("rc-button",{staticClass:"drawer-btn",attrs:{"icon-name":"rt-saas-left","icon-size":"12",type:"primary",size:"medium"},on:{click:e.toShowDrawer}},[e._v(" "+e._s(e.$_t("multilookup.selectedlabel","已选")))]),r("rc-drawer",{staticClass:"dialog-drawer plat-dialog-drawer",attrs:{modal:!1,"append-to-body":!1,"with-header":!1,visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[r("template",{slot:"default"},[r("rc-search",{attrs:{clearable:"",more:!1},on:{"on-search":e.drawerSearch},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}}),r("rc-button",{staticClass:"drawer-close-left",attrs:{"icon-name":"rt-saas-close-x",type:"primary"},on:{click:e.toCloseDrawer}}),r("div",{staticClass:"drawer-content"},[r("div",{staticClass:"subtitle"},[r("div",{staticClass:"plat-choiced"},[e._v(" "+e._s(this.$_t("multilookup.drawertip","已选择"))),r("span",{staticClass:"plat-choiced-item"},[e._v(" "+e._s(this.selectedAllData.length)+" ")]),e._v(e._s(this.$_t("multilookup.drawertip1","项"))+" ")])]),r("div",{staticClass:"choicedTag"},e._l(e.selectedData,(function(t){return r("rc-tag",{key:t.$id,attrs:{"color-type":"normal",icon:"rt-saas-close-x","icon-color":"#005bff","icon-direction":"right"},on:{close:function(r){return e.drawerDel(t)}}},[e._v(e._s(t[e.nameField]))])})),1)])],1)],2),r("rc-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"table",staticClass:"rt-table-aside plat-table-aside",attrs:{fetch:e._fetchRecords,"auto-height":!1,"page-size":e.pageSize,height:e.computedHeight,"total-record":e.totalRecordCount,"row-key":e.getRowKeys,"show-pagination":e.showPagination,"page-layout":e.layout},on:{"selection-change":e.selectionChange,"select-all":e.selectAll,"load-complete":e.loadComplete}},e._l(e.displayFields,(function(t,i){return r("rc-table-column",{key:i,attrs:{prop:t.name,label:t.label,"min-width":t.width},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row[t.name])+" ")]}}],null,!0)})})),1)],1)]),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("div",{staticClass:"rt-dialog-footer-buttons"},[r("rc-button",{attrs:{size:"medium"},on:{click:e.cancel}},[e._v(e._s(e.$_t("BUTTON_RESET","重置")))]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.confirm}},[e._v(" "+e._s(e.$_t("picker.confirm","确认"))+" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.selectedAllData.length>0,expression:"selectedAllData.length > 0"}]},[e._v("("+e._s(e.selectedAllData.length)+")")])])],1)])],1)}),[],!1,null,"26c4f8af",null).exports),De={name:"RtMultipleLookup",components:{RtMultiLookupView:Ie},props:{editForm:{type:Object},isSaveMainSub:{type:Boolean,default:!1},disabled:Boolean,relationshipName:{type:String,required:!1},entity:{type:String,required:!0},refEntity:{type:String,required:!0},max:{type:Boolean,default:!0},objectId:{type:String,required:!1,default:null},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},langkey:{type:String,required:!1},placeholder:{type:String,required:!1,default:function(){return this.$_t("common.select","请选择")}},title:{type:String,default:function(){return this.$_t("platform.multilookupOrderproduct","服务云订单-产品")}},nameField:String,idField:{type:String,default:function(){return this.entity+"id"}},dialogDisplayFields:{type:Array,default:function(){return this.defaultFields}},dialogOrderbyFields:{type:String,default:function(){return""}},dialogFilterFields:String,dialogCallback:Function,dialogConditionFields:String,countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0},isFold:{type:Boolean,default:!1},approveStepId:{type:String,default:""},toDoTaskId:{type:String,default:""}},data:()=>({empty:"",list:[],inputHovering:!1,lookupValueName:"",autoWidth:"100%",inputWidth:0,maxIndex:0,inputSizeObserver:[]}),computed:{computedDisabled(){return this.isSaveMainSub?this.disabled:this.disabled||!this.objectId},iscollpaseClass(){let e=["multiple-lookup-wrap"];return this.list&&this.list.length>0&&e.push("multiple-lookup-has-tag"),this.isFold&&e.push("iscollpase"),e},showClose(){return!!this.inputHovering&&!!this.list&&this.list.length>0&&!this.disabled},conditionValue:function(){return this.dialogConditionFields},defaultFields(){return[{name:"new_name",label:this.$_t("common.name","名称")},{name:"createdon",label:this.$_t("crm.createdon","创建时间"),width:180}]},selectString:{get(){var e=[];for(var t in e.push(this.nameField),e.push(this.idField),this.dialogDisplayFields){var r=this.dialogDisplayFields[t].name;e.indexOf(r)>=0||this.dialogDisplayFields[t].noSelect||e.push(r)}return e.join(",")}},placeholderTip:{get(){return this.list.length>0?"":this.disabled?"--":this.placeholder?this.placeholder:this.$_t("common.select","请选择")}}},watch:{list(){this.calcMaxIndex()},inputWidth(){this.calcMaxIndex()},objectId(e){this.$nextTick(()=>{if(e){let e=this.$el.querySelector("input.el-input__inner"),t=this.node_after(e);if(e&&e.parentElement){let r=e.parentElement,i=document.createElement("div");i.classList.add("rt-input-shadow"),r.insertBefore(i,t)}}this.inputSizeObserver&&(this.inputSizeObserver.disconnect(),this.inputSizeObserver.observe(this.$refs.lookup))})}},mounted(){this._fetchRecords(),this.$nextTick(()=>{0==this.inputSizeObserver.length&&(this.inputSizeObserver=new ResizeObserver(e=>{e.forEach(e=>{this.inputWidth=e.contentRect.width})}),this.$refs.lookup&&this.inputSizeObserver.observe(this.$refs.lookup))})},beforeDestroy(){this.inputSizeObserver&&this.inputSizeObserver.disconnect()},methods:{dispatch(e,t,r){for(var i=this.$parent||this.$root,a=i.$options.componentName;i&&(!a||a!==e);)(i=i.$parent)&&(a=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(r))},calcMaxIndex(){this.max&&this.inputWidth&&this.$nextTick(()=>{const e=this.$refs.tag?Array.from(this.$refs.tag.getElementsByClassName("rt-tag-box")):[];let t=0,r=0;for(let i=0;ithis.inputWidth-185)break;t+=e[i].offsetWidth,r=i}this.maxIndex=r+1})},node_after(e){for(;e&&(e=e.nextSibling);)if(!this.is_ignorable(e))return e;return null},is_ignorable(e){return 8==e.nodeType||3==e.nodeType&&this.is_all_ws(e)},is_all_ws:e=>!/[^\t\n\r ]/.test(e.data),rebuild(){},_fetchRecords(){if(!this.objectId)return;let e={relationshipName:this.relationshipName,entity1Id:this.objectId,entity1Name:this.entity,select:this.selectString,ApproveStepId:this.approveStepId,toDoTaskId:this.toDoTaskId};rt.get("api/dynamic/GetManyToMany",e).then(e=>{this.list=[],e&&e.Entities&&e.Entities.forEach(e=>{delete e.$logicalname,delete e.FormattedValues,delete e.FormattedColors,this.list.push(e)})}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.setEditFormValue()})},setEditFormValue(){this.isSaveMainSub&&this.editForm&&this.$set(this.editForm,this.relationshipName,this.list.map(e=>e.$id))},ClearValue(){this.disabled||this.deleteData(!0).then(()=>{this.list=[],this.$emit("confirm",this.list)}).catch(e=>{rt.showErrorToast(e)})},getMultipleLookupList(){return this.isSaveMainSub?{fieldName:this.relationshipName,value:this.list.map(e=>e.$id)}:{}},findValueByApi(e,t){if(null!=e&&e.length>0){this.loading=!0;let e="",r=!1;return this.requestUrl&&(r=this.requestUrl.split("?").length>1),e=this.requestUrl+(r?"&entityName=":"?entityName=")+this.refEntity+"&page=1&count=10&select="+this.selectString+"&orderby="+this.dialogOrderbyFields+"&filter="+this.nameField+"&filterValue="+encodeURIComponent(this.lookupValueName||""),this.conditionString&&(e+="&condition="+this.conditionString),e+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,rt.get(e).then(e=>{if(null==e||null==e.Data)return void t([]);let r=[];e.Data.forEach(e=>{e.value=e[this.nameField];for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text);r.push(e)}),t(r)}).catch(e=>{t([]),rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}t([])},mouseenter(){setTimeout(()=>{this.inputHovering=!0})},mouseleave(){setTimeout(()=>{this.inputHovering=!1})},del(e){if(this.isSaveMainSub)this.list.splice(e,1),this.$emit("input",this.list.map(e=>e.$id)),this.dispatch("ElFormItem","el.form.blur",[this.lookupValueName]);else{if(this.disabled)return;rt.showLoadingToast(this.$_t("common.deleting","正在删除")),this.deleteData(!1,this.list[e].$id).then(()=>{this.list.splice(e,1),this.$emit("input",this.list),this.$emit("confirm",this.list),rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功"))}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}},clear(){if(this.isSaveMainSub)this.list=[],this.$emit("input",this.list.map(e=>e.$id)),this.dispatch("ElFormItem","el.form.blur",[this.lookupValueName]);else{if(this.disabled)return;rt.showLoadingToast(this.$_t("common.deleting","正在删除")),this.deleteData(!0).then(()=>{this.list=[],this.$emit("confirm",this.list),rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功"))}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}},deleteData(e,t){return new Promise((r,i)=>{let a={relationshipName:this.relationshipName,entity1Id:this.objectId,entity1Name:this.entity,relationEntityId:t,clearAll:e};rt.post("api/dynamic/DelManyToMany",a).then(e=>r()).catch(e=>i(e))})},change({data:e}){this.selected=e},confirm(e,t){!this.isSaveMainSub&&rt.showLoadingToast(this.$_t("SUBMIT_LOADING","提交中..."));let r={entity1Name:this.entity,entity1Id:this.objectId,entity2Ids:e.map(e=>e.$id),deleteIds:t.map(e=>e.$id),ApproveStepId:this.approveStepId,toDoTaskId:this.toDoTaskId};this.isSaveMainSub?(this.$emit("input",r.entity2Ids),this.list=e,this.dispatch("ElFormItem","el.form.blur",r.entity2Ids)):this.saveManyToMany(r).then(()=>{this.list=e,rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("Successfullysaved","保存成功"))}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},saveManyToMany(e){return new Promise((t,r)=>{const i=`api/dynamic/${this.relationshipName}/SaveManyToMany`;rt.post(i,e).then(e=>t()).catch(e=>r(e))})},cancel(){this.$emit("cancel")},selectValue(e){if(this.list.some(t=>t.$id==e.$id))return void(this.lookupValueName="");this.list.push(e);let t={entity1Name:this.entity,entity1Id:this.objectId,entity2Ids:this.list.map(e=>e.$id)};this.isSaveMainSub?(this.$emit("input",t.entity2Ids),this.dispatch("ElFormItem","el.form.blur",t.entity2Ids),this.lookupValueName=""):(this.lookupValueName="",this.saveManyToMany(t).then(()=>{this.$emit("input",t.entity2Ids),this.$emit("confirm",t.entity2Ids)}).catch(e=>{rt.showErrorToast(e)}))},showLookupDialog(){this.disabled||this.$refs.lookupDialog&&this.$refs.lookupDialog.show()},checkCount(){return this.list.length>0},getLookupName:e=>"object"==typeof e?e.text:e}},Ae=(r("755c"),r("066c"),Object(_.a)(De,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("plat-view",{staticClass:"plat-multilookup",attrs:{disabled:e.computedDisabled}},[e.computedDisabled&&!e.objectId?r("div",[r("rc-input",{attrs:{model:"empty",disabled:e.computedDisabled}})],1):r("div",{staticClass:"rt-multiplelookup",on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave}},[r("div",{ref:"lookup",class:e.iscollpaseClass},[e.list&&e.list.length>0?r("div",{staticClass:"multilookup-main"},[[r("span",{ref:"tag",style:{position:"absolute",opacity:0,"pointer-events":"none",width:0,overflow:"hidden"}},e._l(e.list,(function(t){return r("rc-tag",{key:t.$id,staticClass:"rt-tag-box",attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"}},[e._v(" "+e._s(e.getLookupName(t[e.nameField])))])})),1)],e.max&&e.list.length>0?[e._l(e.list.slice(0,e.maxIndex),(function(t,i){return r("rc-tag",{key:t.$id,attrs:{closable:!e.computedDisabled,disabled:e.computedDisabled,type:"outline","icon-color":e.SCSS_VARIABLES.COLOR_PRIMARY,"icon-direction":"right","color-type":"primary"},on:{close:function(t){return e.del(i)}}},[e._v(" "+e._s(e.getLookupName(t[e.nameField])))])})),e.list.length>e.maxIndex&&e.isFold?r("rc-popover",{ref:"popover",attrs:{trigger:"click"}},[r("ul",{staticClass:"popover_ul"},e._l(e.list.slice(e.maxIndex),(function(t,i){return r("li",{key:t.$id,staticClass:"plat-multilookup-popover_li popover_li"},[r("span",[e._v(e._s(e.getLookupName(t[e.nameField])))]),r("rc-icon",{directives:[{name:"show",rawName:"v-show",value:!e.disabled,expression:"!disabled"}],attrs:{name:"rt-base-close_fill"},nativeOn:{click:function(t){return t.stopPropagation(),e.del(i+e.maxIndex)}}})],1)})),0),r("div",{staticClass:"tag",attrs:{slot:"reference"},slot:"reference"},[r("rc-tag",{attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"},on:{close:function(t){return e.del(e.list.length-1)}}},[e._v("+ "+e._s(e.list.length-e.maxIndex)+" ")])],1)]):e._e(),e.list.length>e.maxIndex&&!e.isFold?r("rc-tag",{attrs:{disabled:e.computedDisabled,closable:!e.computedDisabled,type:"outline","text-type":"primary"},on:{close:function(t){return e.del(e.list.length-1)}}},[e._v("+ "+e._s(e.list.length-e.maxIndex)+" ")]):e._e()]:e._e()],2):e._e(),r("rc-input",{style:{width:e.autoWidth},attrs:{slot:"reference","collapse-tags":"",type:"autocomplete","highlight-first-item":!0,disabled:e.computedDisabled,placeholder:e.placeholderTip,"trigger-on-focus":!1,"fetch-suggestions":e.findValueByApi},on:{select:e.selectValue},slot:"reference",model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[r("rc-icon",{directives:[{name:"show",rawName:"v-show",value:!e.computedDisabled&&!e.disabled,expression:"!computedDisabled && !disabled"}],attrs:{slot:"suffix",name:"rt-base-lookup",color:e.SCSS_VARIABLES.NEUTRAL_COLOR_REGULAR},on:{click:e.showLookupDialog},slot:"suffix"}),r("rc-icon",{directives:[{name:"show",rawName:"v-show",value:e.showClose,expression:"showClose"}],staticClass:"clearIcon",attrs:{slot:"suffix",color:e.SCSS_VARIABLES.COLOR_INFO,name:"rt-base-circle-close-filled"},nativeOn:{click:function(t){return t.stopPropagation(),e.clear.apply(null,arguments)}},slot:"suffix"})],1)],1)]),r("rt-multi-lookup-view",{ref:"lookupDialog",attrs:{title:e.langkey?this.$_t(e.langkey,e.title):e.title,"display-fields":e.dialogDisplayFields,"ref-entity":e.refEntity,"request-url":e.requestUrl,"name-field":e.nameField,"id-field":e.idField,"orderby-fields":e.dialogOrderbyFields,"filter-fields":e.dialogFilterFields,"condition-fields":e.conditionValue,"count-type":e.countType,"return-total-record-count":e.returnTotalRecordCount,"checked-data":e.list,"is-fold":e.isFold,"is-watch-loading":!0},on:{change:e.change,confirm:e.confirm,cancel:e.cancel}})],1)}),[],!1,null,"43f10a32",null).exports),Me={name:"RtLookupMultiDialog",mixins:[ye.a],props:{title:{type:String,default:function(){return this.$_t("lookup.title","查找")}},isPost:{type:Boolean,default:function(){return!1}},requestParams:{type:Object,default:function(){return{}}},entity:{type:String,required:!0},attribute:{type:String,default:function(){return""}},dialogShowSelect:{type:Boolean,default:function(){return!1}},requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},nameField:{type:String,default:function(){return"new_name"}},idField:{type:String,default:function(){return this.entity+"id"}},displayFields:{type:Array,default:function(){return this.defaultFields}},orderbyFields:{type:String,default:function(){return"createdon desc"}},filterFields:{type:String,default:function(){return"new_name"}},conditionFields:{type:String,default:function(){return""}},dialogCallback:Function,selectValues:Array,showRemoveDialog:{type:Boolean,default:!1},countType:{type:Number,default:0},returnTotalRecordCount:{type:Boolean,default:!0}},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",computedHeight:300,pageIndex:1,pageSize:20,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableData:[],currentRow:null,selectedValue:"",options:[],selectcontion:"",selectedSelection:null,filterSelectedData:!1,relationFilterAttribute:"",relationFilterValue:"",relationshipName:"",relationshipType:-1,extendConditions:""}),computed:{defaultFields(){return[{name:"new_name",label:this.$_t("common.name","名称")},{name:"createdon",label:this.$_t("crm.createdon","创建时间"),width:180}]},selectString:{get(){let e=[];e.push(this.nameField),e.push(this.idField);for(let t in this.displayFields){let r=this.displayFields[t].name;e.indexOf(r)>=0||this.displayFields[t].noSelect||e.push(r)}return e.join(",")}},orderbyString:{get(){return this.orderbyFields}},filterString:{get(){return this.filterFields}},conditionString:{get(){return this.conditionFields},set:e=>e}},methods:{corpId(e){return"api/crmlookupview/getdata"==this.requestUrl?e.new_wx_chain_id:e.new_wx_chain_id?e.new_wx_chain_id.name:""},show(){this.dialogVisible=!0,this.selectcontion="",this.filterValue="",this.filterSelectedData=!1,this.dialogShowSelect&&this.attribute&&this.getSelectVal(),this.pageIndex=1,arguments&&arguments.length>0&&(this.filterSelectedData=!0,this.relationshipName=arguments[0],this.relationFilterAttribute=arguments[1],this.relationFilterValue=arguments[2],this.relationshipType=1,this.extendConditions=arguments[3]),this.$refs.lookupTable&&this.$refs.lookupTable.clearSelection()},handleRowChange(e){this.$refs.lookupTable.toggleRowSelection(e)},getRowKey(e){return e[this.idField]},getSelectVal(){const e=this;return rt.get("api/crmpicklist/options/"+this.entity+"/"+this.attribute).then((function(t){t.sort(e.compare("Value")),e.options=t,e.optionIndex>-1&&e.options.splice(e.optionIndex,1),t&&t.length>0&&(e.selectedValue=e.options[0].Value);let r=[];return t.forEach(e=>{r.push({Text:e.Text,Value:e.Value})}),r}))},selectChange(){this.selectcontion=this.attribute+" eq "+this.selectedValue,this.pageIndex=1,this._fetchRecords(),this.$refs.lookupTable&&this.$refs.lookupTable.loadData()},compare:e=>function(t,r){return t[e]-r[e]},handleSearch(){this.pageIndex=1,this._fetchRecords(),this.$refs.lookupTable&&this.$refs.lookupTable.loadData()},handleSelectionChange(e){this.selectedSelection=e},handleSortChange(){alert(this.$_t("common.Unrealized","未实现"))},handleSizeChange(e){this.pageIndex=1,this.pageSize=e,this._fetchRecords()},handleIndexChange(e){this.pageIndex=e,this._fetchRecords()},handleClear(){this.$emit("data-clear"),this.dialogVisible=!1,this._dialogCallback(null)},handleDBClick(e,t){this.dialogVisible=!1,this._dialogCallback([e])},handleConfirm(){let e=this.selectedSelection;if(null==e||0==e.length)return rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录")),!1;this._dialogCallback(e)},handleConfirmAndClose(){let e=this.selectedSelection;if(null==e||0==e.length)return rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录")),!1;this._dialogCallback(e),this.dialogVisible=!1},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),this.$emit("dialogCallback",e)},_fetchRecords(){this.loading=!0;let e=!1;this.requestUrl&&(e=this.requestUrl.split("?").length>1);let t=this.requestUrl+(e?"&":"?")+"entityName="+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||"")+"&condition="+(this.selectcontion?this.selectcontion:this.conditionString);if(this.filterSelectedData){t+=`&filterSelectedData=true&relationFilterAttribute=${this.relationFilterAttribute||""}&relationFilterValue=${this.relationFilterValue||""}&relationshipType=1&relationshipName=${this.relationshipName||""}`;let e=this.extendConditions;Array.isArray(e)&&!e.length&&(e=""),"string"!=typeof e&&(e=JSON.stringify(e)),e&&(t+="&extendConditions="+encodeURIComponent(e))}return t+="&countType="+this.countType+"&returnTotalRecordCount="+this.returnTotalRecordCount,this.isPost?rt.post(t,this.requestParams).then(e=>{this.tableData=e.Data||[];let t=this.tableData.length;return-1==e.TotalRecordCount?(this.PaginationClass="nocount",0==t||t{this.tableData.forEach((t,r)=>{e[this.idField]==t[this.idField]&&this.$refs.lookupTable&&this.$refs.lookupTable.toggleRowSelection(this.tableData[r],!0)})}),e.Data}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1}):rt.get(t).then(e=>{this.tableData=e.Data||[];let t=this.tableData.length;return-1==e.TotalRecordCount?(this.PaginationClass="nocount",0==t||t{this.tableData.forEach((t,r)=>{e[this.idField]==t[this.idField]&&this.$refs.lookupTable&&this.$refs.lookupTable.toggleRowSelection(this.tableData[r],!0)})}),e.Data}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}}},Le=(r("3df2"),Object(_.a)(Me,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal rt-multilookup-dialog plat-multilookup-dialog",attrs:{"destroy-on-close":!0,"close-on-click-modal":!1,title:e.title,size:"large"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("div",[r("rc-form",{attrs:{"label-position":"left"},nativeOn:{submit:function(e){e.preventDefault()}}},[e.dialogShowSelect?r("rc-form-item",{staticClass:"search-wrap",attrs:{label:e.$_t("user_types","用户类型")}},[r("rc-picklist",{ref:"picklistRef",attrs:{id:"rtSaasAttributes",fetch:e.getSelectVal,clearable:!1,filterable:!0},on:{change:e.selectChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})],1):e._e(),r("rc-form-item",{staticClass:"search-wrap",attrs:{"label-position":"left",label:e.$_t("common.search","搜索")}},[r("rc-search",{attrs:{clearable:"",more:!1,placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录")},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],1)],1),r("rc-table",{ref:"lookupTable",attrs:{fetch:e._fetchRecords,sectionable:!1,width:"100%","highlight-current-row":"",height:e.computedHeight,data:e.tableData,"row-key":e.getRowKey,stripe:!0,loading:e.loading,"auto-height":!1,"show-pagination":!0,"default-page-index":e.pageIndex,"page-size":e.pageSize,"page-layout":e.layout,"show-border":!0,"total-record":e.totalRecordCount},on:{"row-click":e.handleRowChange,"selection-change":e.handleSelectionChange,"row-dblclick":e.handleDBClick,"sort-change":e.handleSortChange,changesize:e.handleSizeChange,changeindex:e.handleIndexChange}},[r("rc-table-column",{attrs:{type:"selection","reserve-selection":!0,width:"50"}}),e._l(e.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?t.label:e.$_t(e.entity+"."+t.name,e.entity+"."+t.name)},scopedSlots:e._u([{key:"default",fn:function(i){return[e.isQyWxTenant&&("systemuser"==e.entity&&"fullname"==t.name||"new_srv_worker"==e.entity&&"new_name"==t.name||"businessunit"==e.entity&&"name"==t.name||"new_thirdpartyuser"==e.entity&&"new_system_id"==t.name)?r("span",["businessunit"==e.entity?r("rt-ww-open-data",{attrs:{type:"departmentName",openid:i.row[t.name],corpid:e.corpId(i.row)}}):r("rt-ww-open-data",{attrs:{type:"userName",openid:i.row[t.name],corpid:e.corpId(i.row)}})],1):r("span",[e._v(e._s(i.row[t.name]))])]}}],null,!0)})}))],2),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showRemoveDialog,expression:"showRemoveDialog"}],attrs:{type:"primary",size:"medium"},on:{click:e.handleClear}},[e._v(e._s(e.$_t("lookup.remove","移除值"))+" ")]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirmAndClose}},[e._v(e._s(e.$_t("common.btn_confirm_close","确定并关闭"))+" ")])],1)],1)}),[],!1,null,"39263546",null).exports);function Re(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Pe=class extends N.a{constructor(...e){super(...e),Re(this,"title",void 0),Re(this,"action",void 0),Re(this,"templateUrl",void 0),Re(this,"onSuccess",void 0),Re(this,"dialogVisible",!1),Re(this,"isImporting",!1),Re(this,"selectedFile",{}),Re(this,"importResult",null),Re(this,"isSuccessed",null)}get templateExcelUrl(){return rt.getBaseUrl()+this.templateUrl}handleChange(e,t){this.selectedFile=e}handleImport(){this.$refs.upload&&this.$refs.upload.submit()}handleHttpRequest(){if(this.isImporting)return;this.importResult=null,this.isSuccessed=null,this.isImporting=!0;let e=new FormData;e.append("file",this.selectedFile.raw),rt.post(this.action,e).then(e=>{this.isSuccessed=!0,this.importResult=e,this.isImporting=!1,this.onSuccess&&this.onSuccess()},e=>{this.isSuccessed=!1,this.importResult=e,this.isImporting=!1})}handleDialogClose(){this._reset(),this.dialogVisible=!1}show(){this.dialogVisible=!0}_reset(){this.$refs.upload&&this.$refs.upload.clearFiles(),this.isImporting=!1,this.selectedFile={},this.importResult=null,this.isSuccessed=null}};Object(J.__decorate)([Object(te.d)()],Pe.prototype,"title",void 0),Object(J.__decorate)([Object(te.d)()],Pe.prototype,"action",void 0),Object(J.__decorate)([Object(te.d)()],Pe.prototype,"templateUrl",void 0),Object(J.__decorate)([Object(te.d)()],Pe.prototype,"onSuccess",void 0),Pe=Object(J.__decorate)([Object(te.a)({name:"RtExcelImportDialog"})],Pe);var $e=Pe,Fe=Object(_.a)($e,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,"before-close":e.handleDialogClose,visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{staticClass:"rt-excel-import"},[r("div",{staticClass:"rt-excel-import_tip"},[e._v(" "+e._s(e.$_t("platform.excelimportExcel","只能上传Excel(xls或xlsx)文件,且记录数不超过5000条"))+" ")]),r("el-upload",{ref:"upload",attrs:{drag:"",action:"/",accept:".xls,.xlsx","http-request":e.handleHttpRequest,"show-file-list":!1,"on-change":e.handleChange,multiple:!1,"auto-upload":!1}},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" "+e._s(e.$_t("platform.excelimportDragfile","将文件拖到此处,或"))+" "),r("em",[e._v(e._s(e.$_t("CLICK_ON_THE_UPLOAD","点击上传")))])]),r("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(" "+e._s(e.$_t("SELECTED_FILE","已选择文件:"))+e._s(e.selectedFile.name)+" ")])]),r("div",{staticClass:"rt-excel-import__result",class:{"rt-excel-import__result_error":!e.isSuccessed,"rt-excel-import__result_success":e.isSuccessed}},[r("pre",[e._v(e._s(e.importResult))])]),r("div",{staticStyle:{height:"40px","line-height":"40px"}},[e.templateUrl?r("span",[r("a",{attrs:{target:"_blank",href:e.templateExcelUrl}},[e._v(e._s(e.$_t("DOWNLOAD_TEMPLATE","下载模板")))])]):e._e(),r("div",{staticStyle:{float:"right","margin-top":"10px"}},[r("el-button",{attrs:{type:"primary",loading:e.isImporting},on:{click:e.handleImport}},[e._v(e._s(e.$_t("platform.excelImport","导 入")))]),e._v(" > ")],1)])],1)])}),[],!1,null,null,null).exports,je={name:"RtFlowSubmit",props:{entityname:{type:String,required:!0},id:{required:!0},new_name:{type:String},value:{type:Boolean,default:!1},title:{type:String,default:function(){return this.$_t("Flow","签核流程")}}},data:()=>({selectednew_flowid:"",flowList:[],selectedUserId:[],stepList:[],btnloading:!1,dialogVisible:!1,disabledSubmit:!0,flowLoading:!0}),computed:{isDisabled(){return!rt.isNullOrWhiteSpace(this.new_name)}},watch:{selectednew_flowid(e){e?(this.flowLoading=!0,rt.get("api/CrmFlow/GetFlowStepList?flowId="+e+"&entityName="+this.entityname+"&entityId="+this.id).then(e=>{for(var t in e)e[t].ApproveUserId=e[t].new_stepusers[0].systemuserid;this.stepList=e,this.disabledSubmit=!1,this.flowLoading=!1}).catch(e=>{this.disabledSubmit=!0,this.flowLoading=!1,rt.showErrorToast(e)})):this.stepList=[]},value(e,t){this.dialogVisible=e,e&&this.show()}},methods:{show(){this.getFlowList(),this.dialogVisible=!0},getFlowList(){this.id&&rt.get("api/CrmFlow/GetFlowList?entityName="+this.entityname+"&entityid="+this.id).then(e=>{if(this.flowList=e,!(null==e||e.length<=0))if(rt.isNullOrWhiteSpace(this.new_name))this.selectednew_flowid=e[0].new_flowid;else for(var t=0;t{this.flowLoading=!1,rt.showErrorToast(e)})},submitFlow(){var e=[];this.stepList.map(t=>{e.push({StepId:t.new_flowstepsid,ApproveUserId:t.ApproveUserId})});var t={EntityId:this.id,EntityTypeName:this.entityname,FlowId:this.selectednew_flowid,ApproveList:e};this.btnloading=!0,rt.post("api/CrmFlow/submit",t).then(e=>{rt.showSuccessToast(e),this.flowList=[],this.selectednew_flowid="",this.dialogVisible=!1,this.$emit("closesubmit"),this.btnloading=!1}).catch(e=>{this.btnloading=!1,rt.showErrorToast(e)})},closeDialog(){this.flowList=[],this.selectednew_flowid="",this.dialogVisible=!1,this.$emit("input",this.dialogVisible)}}},Be=(r("7135"),Object(_.a)(je,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"rt-portal-flowSubmitDialog",attrs:{title:e.title,visible:e.dialogVisible,"append-to-body":!0},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.flowLoading,expression:"flowLoading"}],staticClass:"rt-portal-Dialog"},[r("div",{staticClass:"rt-portal-DialogContent"},[r("div",{staticClass:"rt-portal-FlowSubmit"},[r("h3",[e._v(" "+e._s(e.$_t("ChooseSignFlow","选择签核流程 (下拉框中可能存在多个可选项目,请注意选择合适的流程)"))+" ")]),r("br"),r("div",[r("el-select",{attrs:{disabled:e.isDisabled},model:{value:e.selectednew_flowid,callback:function(t){e.selectednew_flowid=t},expression:"selectednew_flowid"}},e._l(e.flowList,(function(e){return r("el-option",{key:e.new_flowid,attrs:{value:e.new_flowid,label:e.new_name}})})),1)],1),r("br"),r("br"),r("div",{staticClass:"rt-portal-FlowSteps"},[r("h3",[e._v(" "+e._s(e.$_t("ChooseSignUser","选择签核用户"))+" ")]),e._l(e.stepList,(function(t){return r("div",{key:t.new_name,staticClass:"rt-portal-FlowStep"},[r("br"),r("h4",[e._v(" "+e._s(t.new_name)+" "),1==t.new_approvalway?r("span",[e._v(" "+e._s(e.$_t("ChooseSignUser_default","(下拉框中可能存在多个可选人员,请注意选择合适的下一级呈递人)"))+" ")]):e._e()]),r("br"),2==t.new_approvalway||3==t.new_approvalway||4==t.new_approvalway?r("div",{staticClass:"rt-portal-FlowStep-div"},e._l(t.new_stepusers,(function(t){return r("span",{key:t.systemuserid},[e._v(" "+e._s(t.fullname)+" ")])})),0):r("div",[r("el-select",{model:{value:t.ApproveUserId,callback:function(r){e.$set(t,"ApproveUserId",r)},expression:"step.ApproveUserId"}},e._l(t.new_stepusers,(function(e){return r("el-option",{key:e.systemuserid,attrs:{value:e.systemuserid,label:e.fullname}})})),1)],1)])}))],2)])]),r("br"),r("div",{staticClass:"rt-portal-DialogFooter"},[r("div",{staticClass:"rt-portal-DialogButtons"},[r("el-button",{attrs:{loading:e.btnloading,disabled:e.disabledSubmit},on:{click:e.submitFlow}},[e._v(e._s(e.$_t("BUTTON_SUBMIT","提交")))]),r("el-button",{on:{click:e.closeDialog}},[e._v(e._s(e.$_t("BUTTON_CLOSE","关闭")))])],1)])])])}),[],!1,null,"45024875",null).exports),Ue={name:"RtFlowApprovalList",mixins:[ye.a],props:["entityname","id"],data:()=>({stateList:[],trackList:[],newStateList:{}}),computed:{},watch:{id(e,t){null!=e&&e!=t&&this.dataBind()}},mounted(){this.dataBind()},methods:{dataBind(){this.id&&(this.getStateList(),this.getTrackList())},getStateList(){let e=this;rt.get("api/CrmFlow/GetFlowApproveProgressList?entityName="+this.entityname+"&entityId="+this.id).then((function(t){if(null!=t&&t.length>0){var r=[],i=[];t.forEach(e=>{if(-1==e.new_approvalway)(i=[]).push(e),r.push({stepName:"1",steps:i});else if(2==e.new_approvalway)(i=[]).push(e),r.push({stepName:e.new_flowapproval_stepsId,steps:i});else if(3==e.new_approvalway){var t=!1;r.forEach(r=>{r.stepName==e.new_stepName&&(r.steps.push(e),t=!0)}),t||((i=[]).push(e),r.push({stepName:e.new_stepName,steps:i}))}else(i=[]).push(e),r.push({stepName:e.new_flowapproval_stepsId,steps:i})}),e.newStateList=r}})).catch(e=>{rt.showErrorToast(e)})},getTrackList(){let e=this;rt.get("api/CrmFlow/GetFlowApproveLogList?entityName="+this.entityname+"&entityId="+this.id).then((function(t){e.trackList=t})).catch(e=>{rt.showErrorToast(e)})}}},Ve=(r("073f"),Object(_.a)(Ue,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-approve-list"},[r("div",{attrs:{id:"approveState"}},e._l(e.newStateList,(function(t,i){return r("div",{key:i,staticClass:"nodelist"},[e._l(t.steps,(function(t,i){return r("div",{key:i,staticClass:"node"},[r("i",{staticClass:"node-icon",class:{"icon-approving":2!==t.new_status&&0!==t.new_status,"icon-approved":2===t.new_status,"icon-submit":0===t.new_status}}),r("ul",[e.isQyWxTenant?r("li",{staticClass:"owner"},[r("rt-ww-open-data",{attrs:{type:"userName",openid:t.new_userName}})],1):r("li",{staticClass:"owner"},[e._v(e._s(t.new_userName))]),r("li",{staticClass:"date"},[e._v(e._s(t.new_date))])])])})),i!==e.newStateList.length-1?r("div",{staticClass:"proce"},[r("span",[e._v("- - - - - - - ")])]):e._e()],2)})),0),r("br"),r("h3",[e._v(e._s(e.$_t("approval.approveloglist","历史记录")))]),r("div",{attrs:{id:"approveTrack"}},[r("ul",e._l(e.trackList,(function(t,i){return r("li",{key:t.ew_flowapproval_logId,class:{last:i===e.trackList.length-1}},[r("i",{staticClass:"node-icon",class:{first:0===i}}),r("div",{staticClass:"plat-flow-desc"},[r("span",{staticClass:"date"},[e._v(e._s(t.new_date))]),r("span",{staticClass:"action"},[e._v("["+e._s(t.new_actionName)+"]")]),r("span",{staticClass:"step"},[e._v(e._s(t.new_stepName))]),e.isQyWxTenant?r("span",{staticClass:"owner"},[r("rt-ww-open-data",{attrs:{type:"userName",openid:t.new_userName}})],1):r("span",{staticClass:"owner"},[e._v(e._s(t.new_userName))])]),r("div",{staticClass:"memo"},[r("span",[e._v(e._s(t.new_memo))])])])})),0)])])}),[],!1,null,"6ee4d0e1",null).exports),qe={name:"RtFlowApprovalDialog",components:{RtFlowApprovalList:Ve},props:["entityname","id","value"],data:()=>({dialogVisible:!1}),computed:{entityId:function(){return this.id}},watch:{value(e,t){this.dialogVisible=e,this.dialogVisible}},methods:{show(){this.dialogVisible=!0,this.$refs.rtFlowApprovalList&&this.$refs.rtFlowApprovalList.dataBind()},close(){this.dialogVisible=!1,this.$emit("input",this.dialogVisible)}}},ze=Object(_.a)(qe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{staticClass:"rt-portal-flowListDialog",attrs:{title:e.$_t("BUTTON_APPROVALPROGRESS","审批进度"),visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:e.close}},[e.dialogVisible?r("rt-flow-approval-list",{ref:"rtFlowApprovalList",attrs:{id:e.entityId,entityname:e.entityname}}):e._e()],1)}),[],!1,null,null,null).exports,He=r("cebe"),Ge=r.n(He);let We=class extends te.f{uploadByAzureblob(e,t){const r=e.requestUrl;return Ge.a.create({headers:{"x-ms-version":e.x_ms_version,"x-ms-date":e.x_ms_date,"x-ms-client-request-id":e.x_ms_client_request_id,"x-ms-blob-type":e.x_ms_blob_type,Authorization:e.Authorization,"Content-Type":e.Content_Type}}).put(r,t).then(()=>Promise.resolve()).catch(e=>(rt.showErrorToast(e),Promise.reject()))}uploadByHuaweiobs(e,t){const r=e.requestUrl;return Ge.a.create({headers:{"x-obs-date":e.x_obs_date,Authorization:e.Authorization,"Content-Type":e.Content_Type}}).put(r,t).then(e=>Promise.resolve()).catch(e=>(rt.showErrorToast(e),Promise.reject()))}uploadByAwss3(e,t){var r;const i=e.requestUrl,a={"x-amz-date":e.x_amz_date,Authorization:e.Authorization,"Content-Type":e.Content_Type},n=null==e||null===(r=e.Headers)||void 0===r?void 0:r.find(e=>"x-amz-content-sha256"==e.name);return null!=n&&n.value&&(a["x-amz-content-sha256"]=n.value),Ge.a.create({headers:a}).put(i,t).then(e=>Promise.resolve()).catch(e=>(rt.showErrorToast(e),Promise.reject()))}uploadByAliyun(e,t){const r=e.requestUrl,i=e.Headers,a={};return i.forEach(e=>{a[e.name]=e.value}),Ge.a.create({headers:a}).put(r,t).then(e=>Promise.resolve()).catch(e=>(rt.showErrorToast(e),Promise.reject()))}uploadByOther(e,t){return this.uploadByAliyun(e,t)}getDownloadUrl(e){if(e&&e.length>0){let t=e.substring(e.lastIndexOf("/")+1);return t=t.split("?")[0],rt.get("api/attachment/GetDownloadAttachmentUrl?attachmentId="+t).then(e=>0==e.indexOf("http")?Promise.resolve(e):Promise.resolve(rt.getBaseUrl()+e)).catch((function(e){return rt.showErrorToast(e),Promise.reject(e)}))}return Promise.resolve("")}};We=Object(J.__decorate)([te.a],We);var Qe=We,Xe={name:"RtUploader",mixins:[Qe],props:["attrs","entityId","callBack","fileCount","entityname","canAdd","canDelete","showTip"],data:function(){return{accept:"",fileList:[],fileSize:0,objectId:"",annotationData:[],butLoading:!1}},computed:{isattrs:function(){return this.attrs},isentityId:function(){return this.entityId},tip(e){return this.$_t("kb.notexceed","文件大小不能超过")+e.fileSize+"MB"}},watch:{entityId:function(e){""==e?this.fileList=[]:this._load()}},mounted:function(){this.accept=this.isattrs,this.objectId=this.isentityId,this.fileSize=this.$store.state.user.fileSizeLimit,this._load()},methods:{doSave:function(e,t){var r=(window.URL||window.webkitURL).createObjectURL(e),i=document.createElement("a");if("download"in i){i.style.visibility="hidden",i.href=r,i.download=t,document.body.appendChild(i);var a=document.createEvent("MouseEvents");a.initEvent("click",!0,!0),i.dispatchEvent(a),document.body.removeChild(i)}else navigator.msSaveBlob?navigator.msSaveBlob(e,t):location.href=r},checkSameName:function(e){var t=this.fileList;if(0==t.length)return!1;{const i=e.replace(/\s+/g,"");for(var r in t)if(t[r].filename==i)return!0;return!1}},onFileChange:function(){if(""!=this.entityId){var e=this.$refs.upload?this.$refs.upload.files:null,t=[];for(var r in this.fileList)t.push(this.fileList[r]);var i={};if(i.filename=e[0].name,t.push(i),null!=e)if(t.length>this.fileCount)rt.showErrorToast(this.$_t("platform.mostUpload","最多上传")+this.fileCount+this.$_t("platform.Uploadaccessories","个附件"));else{var a=e[e.length-1];this.saveFile(a),this.$refs.upload&&(this.$refs.upload.value="")}}else rt.showErrorToast(this.$_t("platform.UploadSaveResponse","请先保存响应的操作!"))},deletefile(e){this.$confirm(this.$_t("ThisActionDeletePerpetually","此操作将永久删除记录,是否继续?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{let t="api/attachment/delete/"+this.entityname+"/"+e;rt.get(t).then(e=>{rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功!")),this._load(),this.$refs.upload&&(this.$refs.upload.value="")}).catch(e=>{rt.showErrorToast(e)})})},downLoadFile(e){rt.get("api/attachment/GetDownloadAttachmentUrl?attachmentId="+e.id).then(e=>{e.startWith("http")?window.open(e):window.open(rt.getBaseUrl()+e)})},base64Img2Blob:function(e){for(var t=e.split(";base64,"),r=t[0].split(":")[1],i=window.atob(t[1]),a=i.length,n=new Uint8Array(a),o=0;o{this.fileList=null!=e?e:[]}).catch(e=>{rt.showErrorToast(e)})},saveFile(e){if(this.entityId){this.butLoading=!0;var t=[];t.push({fileName:e.name,contentLength:e.size,contentType:"application/zip"});var r={ObjectId:this.entityId,ObjectTypeName:this.entityname,FileNameList:t};return rt.post("api/attachment/GetUploadUrls",r).then(t=>{if(null==t||t.length<=0)rt.showErrorToast("未获取到上传附件的url");else{var r=t[0],i=r.OssProvider,a=r.filePath,n=r.fileName,o={ObjectId:this.entityId,FileName:n,FilePath:a,FileSize:e.size,ObjectTypeName:this.entityname};"local"==i?this.oldUpload(e):"huaweiobs"==i?this.uploadByHuaweiobs(r,e).then(()=>this.saveAnnotation(o)):"azureblob"==i?this.uploadByAzureblob(r,e).then(()=>this.saveAnnotation(o)):"awss3"==i?this.uploadByAwss3(r,e).then(()=>this.saveAnnotation(o)):this.uploadByOther(r,e).then(()=>this.saveAnnotation(o))}}).catch((function(e){this.butLoading=!1,rt.showErrorToast(e)}))}},oldUpload(e){var t=new FileReader;t.readAsDataURL(e);const r=this;t.onload=function(t){var i={};i.name=e.name,i.type=e.type,"data:"!==t.target.result&&(i.documentbody=t.target.result.substring(t.target.result.indexOf(",")+1)),i.objectId=r.entityId,i.filesize=e.size,i.entityname=r.entityname,rt.post("api/attachment/AddAnnotation",{anno:i}).then(t=>{e.filename=e.name,e.documentbody=i.documentbody,e.id=t,e.mimetype=e.type,r.fileList.push(e),r.butLoading=!1,rt.showSuccessToast(r.$_t("platform.UploadSuccess","上传成功!"))}).catch(e=>{r.butLoading=!1,rt.showErrorToast(e)})}},saveAnnotation(e){rt.post("api/attachment/UploadAttachmentByOSS",e).then(t=>{var r={id:t,filename:e.FileName};this.fileList.push(r),this.butLoading=!1,rt.showSuccessToast(this.$_t("platform.UploadSuccess","上传成功!"))}).catch(e=>{rt.showErrorToast(e),this.butLoading=!1})},getFileIds(){var e=[];for(var t in this.fileList)e.push(this.fileList[t].id);return e}}},Ke=(r("1a43"),Object(_.a)(Xe,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-rt-uploader"},[r("el-button",{directives:[{name:"show",rawName:"v-show",value:e.canAdd,expression:"canAdd"}],attrs:{slot:"reference",size:"small",type:"primary",loading:e.butLoading},on:{click:function(t){return e.chooseFile()}},slot:"reference"},[e._v(e._s(e.$_t("common.choosefile","选择文件")))]),r("span",{directives:[{name:"show",rawName:"v-show",value:!1!==e.showTip,expression:"showTip !== false"}],staticClass:"tips",domProps:{innerHTML:e._s(e.tip)}}),r("el-menu",e._l(e.fileList,(function(t){return r("el-menu-item",{key:t.id,attrs:{index:t.id}},[r("a",{staticClass:"plat-rt-uploader-a",attrs:{href:t.filelink,download:t.filename,title:t.filename},on:{click:function(r){return e.downLoadFile(t)}}},[e._v(e._s(t.filename))]),r("i",{directives:[{name:"show",rawName:"v-show",value:e.canDelete,expression:"canDelete"}],staticClass:"el-icon-delete Catetory-Delete",on:{click:function(r){return e.deletefile(t.id)}}})])})),1),r("input",{ref:"upload",staticClass:"plat-input",attrs:{type:"file",accept:e.accept},on:{change:e.onFileChange}})],1)}),[],!1,null,"3bea66c2",null).exports),Ye={name:"RtMLookupDialog",props:{entityList:Array,requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},title:{type:String,default:function(){return this.$_t("TO_FIND_THE","查找")}},lookupValue:{type:Object}},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:20,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableData:[],currentRow:null,currentEntity:{},computedHeight:300,currentEntityIndex:0,entity:null,tableHeight:document.body.clientHeight-330}),computed:{selectString:{get(){if(this.currentEntity){var e=[];for(var t in e.push(this.currentEntity.nameField),e.push(this.currentEntity.idField),this.currentEntity.displayFields){var r=this.currentEntity.displayFields[t].name;e.indexOf(r)>=0||e.push(r)}return e.join(",")}return""}},displayFields:{get(){return this.currentEntity?this.currentEntity.displayFields:null}},orderbyString:{get(){return this.currentEntity.orderbyFields}},filterString:{get(){if(this.currentEntity.displayFields){var e="";return this.currentEntity.displayFields.forEach(t=>{e+=t.name+","}),e}return""}},conditionString:{get(){return this.currentEntity.conditionFields?this.currentEntity.conditionFields:""}}},watch:{currentEntityIndex(e){this.currentEntity=this.entityList[e],this.entity=this.currentEntity.entity,this.handleSearch()}},mounted(){this.entityList&&this.entityList.length>0&&(this.currentEntity=this.entityList[0],this.currentEntityIndex=0,this.entity=this.currentEntity.entity)},methods:{show(){this.dialogVisible=!0,this.filterValue="",this.pageIndex=1,this.lookupValue&&this.lookupValue.id&&(this.currentRow={[this.currentEntity.idField]:this.lookupValue.id,[this.currentEntity.nameField]:this.lookupValue.name}),this._fetchRecords()},getIfChecked(e){return!(!this.currentRow||!this.currentRow[this.currentEntity.idField])&&e[this.currentEntity.idField]==this.currentRow[this.currentEntity.idField]},handleSearch(){this.pageIndex=1,this._fetchRecords(),this.$refs.lookupTable&&this.$refs.lookupTable.loadData()},handleCurrentChange(e){this.currentRow=e},handleSortChange(){alert(this.$_t("common.Unrealized","未实现"))},handleSizeChange(e){this.pageSize=e,this._fetchRecords()},handleIndexChange(e){this.pageIndex=e,this._fetchRecords()},handleReset(){this.$emit("data-selected",{id:null,logicalName:this.entity,name:null}),this.dialogVisible=!1,this.$emit("dialogCallback",null)},handleConfirm(){var e=this.currentRow;rt.isNull(e)?rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录")):(this.$emit("data-selected",{id:e[this.currentEntity.idField],name:e[this.currentEntity.nameField],logicalName:this.entity}),this.dialogVisible=!1,e.logicalName=this.entity,this.$emit("dialogCallback",e))},_fetchRecords(){if(this.loading=!0,this.currentEntity){var e=this.requestUrl+"?entityName="+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||"")+"&condition="+this.conditionString;return rt.get(e).then(e=>(this.tableData=e.Data,this.totalRecordCount=e.TotalRecordCount,e.Data)).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}return this.tableData}}},Je=(r("4baa"),Object(_.a)(Ye,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal rt-Mlookup-dialog plat-m-lookup-dialog",attrs:{"append-to-body":!0,"close-on-click-modal":!1,title:e.title,size:"large"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("div",[r("rc-form",{attrs:{"label-position":"left"},nativeOn:{submit:function(e){e.preventDefault()}}},[r("div",{staticClass:"lookup-header-search"},[e.entityList&&e.entityList.length>1?r("rc-form-item",{attrs:{label:e.$_t("TO_FIND_THE","查找")}},[r("rc-picklist",{ref:"picklistRef",attrs:{id:"rtMlookup",fetch:e.entityList,placeholder:e.$_t("common.select","请选择"),clearable:!1,filterable:!0},model:{value:e.currentEntityIndex,callback:function(t){e.currentEntityIndex=t},expression:"currentEntityIndex"}})],1):e._e(),r("rc-form-item",{attrs:{label:e.$_t("common.search","搜索")}},[r("rc-search",{attrs:{clearable:"",more:!1,placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录")},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],1)])],1),r("rc-table",{ref:"lookupTable",attrs:{fetch:e._fetchRecords,sectionable:!1,width:"100%",height:e.computedHeight,"highlight-current-row":"",data:e.tableData,stripe:!0,loading:e.loading,"show-pagination":!0,"default-page-index":e.pageIndex,"page-size":e.pageSize,"page-layout":e.layout,"total-record":e.totalRecordCount},on:{"current-change":e.handleCurrentChange,"row-dblclick":e.handleConfirm,"sort-change":e.handleSortChange,changesize:e.handleSizeChange,changeindex:e.handleIndexChange}},[r("rc-table-column",{attrs:{width:"65","empty-cell":" "},scopedSlots:e._u([{key:"default",fn:function(t){return[e.getIfChecked(t.row)?r("i",{staticClass:"el-icon-check"}):e._e()]}}])}),e._l(e.currentEntity.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?t.label:e.$_t(e.currentEntity.entity+"."+t.name)},on:{changesize:e.handleSizeChange,changeindex:e.handleIndexChange}})}))],2),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{attrs:{size:"medium"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("lookup.remove","移除值")))]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v(e._s(e.$_t("BUTTON_DETERMINE","确定")))])],1)],1)}),[],!1,null,"833e6a6a",null).exports),Ze={account:{entity:"account",entityName:"crm.account",orderbyFields:"name asc",nameField:"name",idField:"accountid",displayFields:[{name:"accountnumber",label:""},{name:"name",label:""},{name:"telephone1",label:""},{name:"primarycontactid",label:""},{name:"ownerid",label:""}],filterFields:"accountid,name,telephone1"}},et={name:"RtMLookup",components:{"rt-m-lookup-dialog":Je},props:{requestUrl:{type:String,default:function(){return"api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return this.$_t("common.select","请选择")}},value:{type:Object,required:!1,default:null},disabled:Boolean,readonly:Boolean,entityList:{default:function(){return[Ze.account]}},enableJump:{type:Boolean,default:!1},referencedEntityDisplayName:{type:String,default:""},datafieldname:String,dialogCallback:Function},data:()=>({lookupValue:{name:null,id:null,logicalName:null},lookupValueName:null,hasTipAutocomplete:!0,hasTipJump:!0}),computed:{showJump:function(){return this.lookupValue&&this.lookupValue.id&&this.enableJump}},watch:{value(e){e||(e={name:null,id:null,logicalName:null}),this.lookupValue=e,this.handleMaskField()},lookupValueName(e,t){""==e||null==e?(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)):this.handlerShowTooltip()}},mounted(){this.lookupValue=this.value,this.value&&"object"==typeof this.value.name&&(this.lookupValue.name=this.value.name.text),this.lookupValue&&this.handleMaskField(),this.handlerShowTooltip()},methods:{handlerShowTooltip(){this.$nextTick(()=>{const e=this.$refs.jump;e&&(this.hasTipJump=e.scrollWidth>e.offsetWidth);const t=this.$refs.autocomplete.$el;if(t){const e=t.querySelector("input");this.hasTipAutocomplete=e.scrollWidth>e.offsetWidth}})},handleContextmenu(e){we.a.Contextmenu({text:e,url:this.jumpEdit,docTitle:this.referencedEntityDisplayName})},handleMaskField(){this.lookupValue.name&&this.lookupValue.name instanceof Object==1&&this.lookupValue.name.hasOwnProperty("reference")?this.lookupValueName=this.lookupValue.name.text:this.lookupValueName=this.lookupValue.name},showLookupDialog(){if(this.disabled||this.readonly)return!1;this.$refs.mlookupDialog&&this.$refs.mlookupDialog.show()},handleDataSelected(e){e||(e={}),this.lookupValue=e,this.$emit("input",e)},findValueByApi(e,t){if(null!=e&&e.length>0){var r=this.requestUrl+"?entityName="+Ze.account.entity+"&page=1&count=10&select="+Ze.account.filterFields+"&orderby="+Ze.account.orderbyFields+"&filter="+Ze.account.nameField+"&filterValue="+encodeURIComponent(this.lookupValueName||"");null!=this.dialogConditionFields?r+="&condition="+this.dialogConditionFields:r+="&condition=",rt.get(r).then(e=>{if(null!=e&&null!=e.Data){var r=[];e.Data.forEach(e=>{e.value=e[Ze.account.nameField];for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text);r.push(e)}),t(r)}}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}},selectValue(e){if(e){let t="object"==typeof e[Ze.account.nameField]?e[Ze.account.nameField].text:e[Ze.account.nameField];this.lookupValue={name:t,id:e[Ze.account.idField],logicalName:Ze.account.entity},this.handleMaskField(),this.$emit("input",this.lookupValue),e.logicalName=Ze.account.entity,this._dialogCallback(e)}},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),this.$emit("dialogCallback",e),this.$emit("attributeMappingCallback",e,this.lookupValue,this.datafieldname,Ze.account.entity)},jumpEdit(e=!1){if(!this.lookupValue)return;let t="";return this.routername?(e?t=this.routername?this.routername.toLocaleLowerCase():""+this.lookupValue.id:this.$router.push({name:this.routername,params:{id:this.lookupValue.id}}),t):e?(t="vform/"+Ze.account.entity+"/"+this.lookupValue.id,t):void this.$router.push({path:"/vform/"+Ze.account.entity+"/"+this.lookupValue.id})}}},tt=(r("3bd2"),Object(_.a)(et,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rc-m-lookup plat-m-lookup"},[r("el-autocomplete",{directives:[{name:"show",rawName:"v-show",value:!e.showJump,expression:"!showJump"}],ref:"autocomplete",staticClass:"rt-m-input plat-m-input",attrs:{"has-tip":e.hasTipAutocomplete,"tip-text":e.lookupValueName,placeholder:e.disabled?"--":e.placeholder,disabled:e.disabled||e.readonly,readonly:e.readonly,"trigger-on-focus":!1,"fetch-suggestions":e.findValueByApi},on:{select:e.selectValue},model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[e.disabled||e.readonly?e._e():r("rc-icon",{staticClass:"plat-m-icon",attrs:{slot:"suffix",name:"rt-base-lookup"},on:{click:e.showLookupDialog},slot:"suffix"}),e._t("prefix",null,{slot:"prefix"})],2),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showJump,expression:"showJump"}],staticClass:"lookupvalue",attrs:{"has-tip":e.hasTipJump,"tip-text":e.lookupValueName}},[r("span",{ref:"jump",staticClass:"jumpSpan",on:{click:e.jumpEdit,contextmenu:function(t){return e.handleContextmenu(e.lookupValueName)}}},[e._v(e._s(e.lookupValueName))]),r("div",{staticClass:"lookupIconWrap"},[e.disabled||e.readonly?e._e():r("rc-icon",{staticClass:"lookup",attrs:{slot:"suffix",name:"rt-base-lookup"},on:{click:e.showLookupDialog},slot:"suffix"})],1),e._t("prefix")],2),r("rt-m-lookup-dialog",{ref:"mlookupDialog",attrs:{"entity-list":e.entityList,"lookup-value":e.lookupValue},on:{"data-selected":e.handleDataSelected,dialogCallback:e._dialogCallback}})],1)}),[],!1,null,"0e5b7e6a",null).exports),it={name:"RtSassGrid",props:{quicksearchPlaceholder:{type:String,default:function(){return this.$_t("common.plssearch","请搜索...")}},showQuick:{type:Boolean,default:!0,required:!1},showPagination:{type:Boolean,default:!0,required:!1},totalRecord:{type:Number,required:!1},defaultPageSize:{type:Number,required:!1,default:20},currentPageIndex:{type:Number,required:!1,default:1},currentPageSize:{type:Number,required:!1},showSearch:{type:Boolean,required:!1,default:!0},title:{type:String,default:"",required:!0},iconName:{type:String,required:!1,default:()=>"rt-saas-servicelist"},isPagination:{type:Boolean,default:()=>!0}},data(){return{quickSearch:null,pageIndex:this.currentPageIndex,showHidden:!1,pageSize:this.defaultPageSize,layout:"total, sizes, prev, pager, next, jumper",pageSizes:[10,20,30,40,50],showPagination1:!1}},computed:{iconClass(){return this.showHidden?"el-icon-arrow-up":"el-icon-arrow-down"}},watch:{currentPageIndex(e,t){this.pageIndex!=e&&this.handleIndexChange(e)},currentPageSize(e){this.pageSize=e}},mounted(){this.resetTableheight(),this.$nextTick(()=>{this.showPagination1=this.showPagination})},methods:{resetTableheight(){this.$nextTick(()=>{var e=document.body.clientHeight-250,t=document.getElementById("saas-grid__moresearch")?document.getElementById("saas-grid__moresearch").clientHeight:0,r=document.getElementById("sass-grid_status")?document.getElementById("sass-grid_status").clientHeight:0;this.$store.commit("UPDATE_TABLE_HEIGHT",e-t-r)})},handleCollapse(){this.showHidden=!this.showHidden,this.$nextTick(()=>{var e=document.body.clientHeight-200,t=document.getElementById("saas-grid__moresearch")?document.getElementById("saas-grid__moresearch").clientHeight:0,r=document.getElementById("sass-grid_status")?document.getElementById("sass-grid_status").clientHeight:0;this.$store.commit("UPDATE_TABLE_HEIGHT",e-t-r)})},handleReset(){this.$emit("reset")},handleSearch(){this.pageIndex=1,this.$emit("search")},handleQuickSearch(){this.pageIndex=1,this.$emit("quick-search")},handleQuickSearchFromInput(){this.handleQuickSearch()},handleSizeChange(e){this.pageSize=e,this.$emit("page-change")},handleIndexChange(e){this.pageIndex=e,this.$emit("page-change")},getPageIndex(){return this.pageIndex},getPageSize(){return this.pageSize},getSearchString(){return this.quickSearch},setSearchString(e){this.quickSearch=e},resetPageIndex(){this.pageIndex=1}}},at=(r("a34c"),r("51ca"),Object(_.a)(it,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-sass-grid",attrs:{id:"rt-sass-grid"},on:{submit:function(e){e.preventDefault()}}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],staticClass:"sass-grid_header"},[r("div",{staticClass:"grid-icon"},[r("rt-icon",{attrs:{size:"38",color:"#fff",name:e.iconName}})],1),r("h2",[e._v(e._s(e.title))]),e.$slots.more?r("el-button",{staticClass:"grid-header_btn",attrs:{type:"text"},on:{click:e.handleCollapse}},[e._v(" "+e._s(e.$_t("BUTTON_MORESCREEN","更多筛选"))+" "),r("i",{class:e.iconClass})]):e._e(),e.showQuick?r("rt-search",{staticClass:"grid-header_input",attrs:{placeholder:e.quicksearchPlaceholder,more:!1},on:{"on-search":e.handleQuickSearch},model:{value:e.quickSearch,callback:function(t){e.quickSearch=t},expression:"quickSearch"}}):e._e(),e.$slots.toolbar?r("rt-sass-toolbar",{staticClass:"grid-header_toolbar"},[e._t("toolbar")],2):e._e()],1),r("div",{staticClass:"sass-grid_status",attrs:{id:"sass-grid_status"}},[e._t("status")],2),r("div",{directives:[{name:"show",rawName:"v-show",value:e.$slots.more&&e.showHidden,expression:"$slots.more && showHidden"}],staticClass:"saas-grid__moresearch",attrs:{id:"saas-grid__moresearch"}},[e._t("more"),r("el-row",{attrs:{gutter:40,type:"flex"}},[r("el-col",{staticStyle:{float:"right","text-align":"right"},attrs:{span:24}},[r("el-button",{staticClass:"saas-query__reset",attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("BUTTON_RESET","重置"))+" ")]),r("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$_t("BUTTON_DETERMINE","确定")))])],1)],1)],2),r("div",{staticClass:"sass-grid__body"},[e._t("default")],2),e.showPagination1?r("div",{staticClass:"sass-grid__footer"},[r("el-pagination",{attrs:{"current-page":e.pageIndex,"page-size":e.pageSize,"page-sizes":e.pageSizes,layout:e.layout,total:e.totalRecord},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleIndexChange}})],1):e._e()])}),[],!1,null,"294ccc6a",null).exports),nt={name:"RtSassButton",props:{type:{type:String,required:!1},text:{type:String},size:{type:Number,default:function(){return 16}},loading:{type:Boolean,default:function(){return!1}}},data:()=>({iconClass:null}),computed:{hasIcon(){const e=_e.a.getBasicCompConfig();return(!this.buttonText||!e.hideBtnIcon)&&!!this.iconClass},buttonText:function(){let e="";switch(this.type){case"new":e=this.text||this.$_t("BUTTON_ADD","新增");break;case"import":e=this.text||this.$_t("BUTTON_IMPORT","导入");break;case"export":e=this.text||this.$_t("BUTTON_EXPORT","导出");break;case"cancel":e=this.text||this.$_t("BUTTON_CANCEL","取消");break;case"close":e=this.text||this.$_t("BUTTON_CLOSE","关闭");break;case"back":e=this.text||this.$_t("BUTTON_BACK","返回");break;case"approve-progress":e=this.text||this.$_t("BUTTON_APPROVALPROGRESS","审批进度");break;case"dispatchorderothers":e=this.text||this.$_t("BUTTON_DISPATCHORDEROTHERS","多人派工");break;case"dispatch":e=this.text||this.$_t("BUTTON_DISPATCH","派单");break;case"dispatchorder":e=this.text||this.$_t("BUTTON_DISPATCHORDER","派工");break;case"auto-dispatch":e=this.text||this.$_t("BUTTON_AUTODISPATCH","自动派单");break;case"auto-dispatchorder":e=this.text||this.$_t("BUTTON_AUTODISPATCHORDER","自动派工");break;case"more":e=this.text||"";break;case"reassign":e=this.text||this.$_t("BUTTON_REASSIGN","改派");break;case"recall":e=this.text||this.$_t("BUTTON_WITHDRAW","撤回");break;case"save":e=this.text||this.$_t("BUTTON_SAVE","保存");break;case"send_msg":e=this.text||this.$_t("BUTTON_SENDMSG","发送消息");break;case"submit":e=this.text||this.$_t("BUTTON_SUBMIT","提交");break;case"delete":e=this.text||this.$_t("BUTTON_DELETE","删除");break;case"confirm":e=this.text||this.$_t("BUTTON_DETERMINE","确定");break;case"map-assign":e=this.text||this.$_t("BUTTON_MAPASSIGN","地图派工");break;case"print":e=this.text||this.$_t("BUTTON_PRINT","打印");break;case"disable":e=this.text||this.$_t("BUTTON_DISABLE","停用");break;case"enable":e=this.text||this.$_t("BUTTON_ENABLE","启用");break;case"supervise":e=this.text||this.$_t("BUTTON_SUPERVISE","督办");break;case"download":e=this.text||this.$_t("BUTTON_DOWNLOAD","下载");break;case"recordlist":e=this.text||this.$_t("BUTTON_RECORDLIST","提醒记录列表");break;case"claim-results":e=this.text||this.$_t("BUTTON_CLAIMRESULTS","索赔结果登记");break;case"chatrecord":e=this.text||this.$_t("BUTTON_CHATRECORD","聊天记录");break;case"quotationreminder":e=this.text||this.$_t("BUTTON_QUOTATIONREMINDER","维修报价提醒");break;case"fenpai":e=this.text||this.$_t("BUTTON_FENPAI","分派");break;case"resolve":e=this.text||this.$_t("BUTTON_RESOLVE","解决案例");break;case"yjgd":e=this.text||this.$_t("BUTTON_YJGD","一键工单");break;case"transcribe":e=this.text||this.$_t("BUTTON_TRANSCRIBE","转录线索");break;case"publish":e=this.text||this.$_t("BUTTON_PUBLISH","发布");break;case"unpublish":e=this.text||this.$_t("BUTTON_UNPUBLISH","取消发布");break;case"copy":e=this.text||this.$_t("BUTTON_COPY","复制模板");break;case"edit":e=this.text||this.$_t("BUTTON_EDIT","编辑");break;case"register":e=this.text||this.$_t("BUTTON_REGISTER","注册到IoT");break;case"unregister":e=this.text||this.$_t("BUTTON_UNREGISTER","取消注册");break;case"IoTdisabled":e=this.text||this.$_t("BUTTON_IOTDISABLED","从IoT中心禁用");break;case"productreturn-btn":e=this.text||this.$_t("BUTTOM_RETURN_MACHINE","退换货申请");break;case"return-machine":e=this.text||this.$_t("RETURN_MACHINE_BUTTON","还货");break;case"receipt":e=this.text||this.$_t("BUTTON_RECEIPT","收件");break;case"detail-repair":e=this.text||this.$_t("BUTTON_REPAIR","维修");break;case"exchange-goods":e=this.text||this.$_t("BUTTON_CHANGE","换货");break;case"detection":e=this.text||this.$_t("BUTTON_DETECTION","检测");break;case"servicelist":e=this.text||this.$_t("BUTTON_FENPAI","分派");break;case"unstar":e=this.text||this.$_t("BUTTON_FOLLOW","关注");break;case"star":e=this.text||this.$_t("BUTTON_FOLLOWED","已关注");break;case"win":e=this.text||this.$_t("BUTTON_WINNING_SHEET","赢单");break;case"lose":e=this.text||this.$_t("BUTTON_LOSE_ORDER","丢单");break;case"complete":e=this.text||this.$_t("BUTTON_MAER_COMPLETION","标记完成");break;case"activity-cancel":e=this.text||this.$_t("BUTTON_CANCEL","取消");break;case"activate-quote":e=this.text||this.$_t("BUTTON_ACTIVATE_QUOTE","激活报价单");break;case"close-quote":e=this.text||this.$_t("BUTTON_CLOSE_QUOTE","结束报价单");break;case"revise":e=this.text||this.$_t("BUTTON_REVISE","修订");break;default:this.iconClass="",e=this.text||""}return e}},created(){this.iconClass="rt-saas-"+this.type},methods:{handleClick(){this.$emit("click")}}},ot=(r("d683"),Object(_.a)(nt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-button",{staticClass:"rt-saas-btn plat-saas-btn",attrs:{type:"text",loading:e.loading},on:{click:e.handleClick}},[e.iconClass&&e.hasIcon?r("rt-saas-icon",{staticClass:"btn-icon",attrs:{size:e.size,name:e.iconClass}}):e._e(),e._v(" "+e._s(e.buttonText)+" ")],1)}),[],!1,null,"2648e4a0",null).exports),st={name:"RtSassToolbar",props:{showBack:{type:Boolean,default:!1,required:!1},showAutoback:{type:Boolean,default:!1,required:!1}},methods:{handleBackClick(){this.showAutoback?this.$router.back():this.$emit("goback")}}},lt=(r("c224"),Object(_.a)(st,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"rt-sass-toolbar plat-sass-toolbar"},[this._t("default"),this.showBack||this.showAutoback?[t("rt-sass-button",{attrs:{size:14,type:"back"},on:{click:this.handleBackClick}})]:this._e()],2)}),[],!1,null,"9578b582",null).exports),dt={name:"RtSaasHeader",props:{title:{type:String,default:"",required:!0},IsNeedStyle:{type:Boolean,default:!0,required:!1},src:{type:String,default:"",required:!1},name:{type:String,default:"rt-saas-servicelist",required:!1}},data:()=>({}),computed:{isCollapse(){return this.$store.state.isCollapse},hideHead(){return"ApproveCenter"===this.$route.name}}},ct=(r("173d"),Object(_.a)(dt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.hideHead?e._e():r("div",{staticClass:"rt-saas-header plat-saas-header"},[r("div",{staticClass:"plat-saas-header-wrap"},[r("div",{staticClass:"header-logo"},[r("rt-icon",{attrs:{size:"38",color:"#fff",name:e.name}})],1),r("div",{staticClass:"header-title"},[r("h2",{style:{marginTop:e.$slots.label?"0px":"12px"}},[e._v(" "+e._s(e.title)+" ")]),e._t("label")],2)]),e._t("btn")],2)}),[],!1,null,"52e06338",null).exports),ut={name:"RtSaasIcon",props:{name:{type:String},size:{type:[Number,String],default:16},iconclass:{type:String,default:"rt-saas-icon"}},methods:{iconClick(){this.$emit("click")}}},pt=(r("d405"),Object(_.a)(ut,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:["plat-saas-icon",this.iconclass],on:{click:this.iconClick}},[t("rc-icon",{attrs:{name:this.name,size:this.size}})],1)}),[],!1,null,"599cbc46",null).exports),ht={name:"RtSaasSelect",props:{value:[String,Number,Array,Object],clearable:{type:Boolean,default:!0,required:!1},placeholder:{type:String,default:function(){return this.$_t("visit.choosePlaceholder","请选择")},required:!1},disabled:{type:Boolean,default:!1,required:!1},options:{type:Array,default:()=>[],required:!0},selectCallback:Function},data:()=>({selectedValue:null,selectOption:[]}),watch:{value(e,t){e&&e.id&&this.selectOption.length>0?this.selectedValue=e.id:this.selectedValue=""},options(e,t){e!==t&&(this.value&&(this.selectedValue=this.value.id),this.selectOption=e)}},mounted(){this.selectOption=this.options||[]},methods:{handleChange(e){let t=null;if(e){let r={};r=this.options.find(t=>t.id===e),t={name:r.name,id:r.id}}this.selectCallback&&this.selectCallback(t),this.$emit("input",t)}}},ft=Object(_.a)(ht,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-select",{staticClass:"plat-saas-select",attrs:{placeholder:e.disabled?this.$_t("lable.nodata","暂无"):e.placeholder,filterable:"",clearable:e.clearable,disabled:e.disabled},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},e._l(e.selectOption,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}},[e._v(" "+e._s(t.name)+" ")])})),1)}),[],!1,null,null,null).exports,mt={name:"RtSaasRadiogroup",props:{value:[String,Number,Array],entity:{type:String,required:!1},attribute:{type:String,required:!1},disabled:{type:Boolean,default:!1,required:!1},requestUrl:{type:String,required:!1},optionIndex:{type:Number,required:!1,default:-1}},data:()=>({selectedValue:null,options:[]}),watch:{value(e,t){this.selectedValue=e}},mounted:function(){this.bindPicklist()},methods:{bindPicklist(){rt.isNullOrWhiteSpace(this.entity)||rt.isNullOrWhiteSpace(this.attribute)?rt.isNullOrWhiteSpace(this.requestUrl)||rt.get(this.requestUrl).then(e=>{this.options=e}):rt.get("api/crmpicklist/options/"+this.entity+"/"+this.attribute).then(e=>{e.sort(this.compare("Value")),this.options=e,this.optionIndex>-1&&this.options.splice(this.optionIndex,1),(this.value||0==this.value)&&(this.selectedValue=this.value)})},compare:e=>function(t,r){return t[e]-r[e]},handleChange(e){this.$emit("input",e)}}},gt=Object(_.a)(mt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-radio-group",{staticClass:"rt-saas-radiogroup plat-saas-radiogroup",attrs:{disabled:e.disabled},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},e._l(e.options,(function(t){return r("el-radio",{key:t.Value,attrs:{label:t.Value}},[e._v(e._s(t.Text))])})),1)}),[],!1,null,null,null).exports,bt=r("da2d");function yt(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let vt=class extends(Object(te.c)(bt.a)){constructor(...e){super(...e),yt(this,"pdfReviewerURL",void 0),yt(this,"width",void 0),yt(this,"childEntityName",void 0),yt(this,"parentKey",void 0),yt(this,"canDownload",void 0),yt(this,"canDelete",void 0),yt(this,"canUpload",void 0),yt(this,"disabled",void 0),yt(this,"fileSize",void 0),yt(this,"limitFile",void 0),yt(this,"placement",void 0),yt(this,"showTitle",void 0),yt(this,"fileExtensions",void 0),yt(this,"urlList",[]),yt(this,"isShowImageViwer",!1),yt(this,"loading",!1),yt(this,"attachmentData",[]),yt(this,"versionUploadUrl",rt.getBaseUrl()+"api/attachment/upload"),yt(this,"attachmentList",[]),yt(this,"fileName",""),yt(this,"hasErrorUpload",!1)}get fileSizeValue(){return this.fileSize||parseInt(this.$store.state.systemparameter.FileSizeLimit)}handleObjectIdChanged(e,t){e?this.getAttachment():this.attachmentData=[]}mounted(){this.getAttachment()}get scopeId(){return this.$options&&this.$options._scopeId}closePlayer(){this.$refs.videoPlayer&&this.$refs.videoPlayer.closePlayer()}_previewFile(e,t){if(t.filename&&t.id){let e=t.filename.lastIndexOf(".");switch((t.filename.substring(e+1)||"").toLowerCase()){case"bmp":case"gif":case"jpg":case"jpeg":case"pic":case"png":case"tif":this.showImage(t.fileurl);break;case"mov":case"mp4":this.openPlayer(t.fileurl);break;case"avi":case"mpg":case"swf":this.$message({showClose:!0,message:this.$_t("platform.attachmentOnlysupport","仅支持mp4和mov播放"),type:"error"});break;case"pdf":this.showViewPdfOnLine(t);break;case"ppt":case"pptx":case"doc":case"docx":case"xlsx":case"xls":case"txt":this._showViewOnLine(t)}}}async _showViewOnLine(e){try{rt.showLoadingToast();const t=await rt.post("api/attachment/PreviewOnline?attachmentId="+(null==e?void 0:e.id));if(t)return void window.open(t,"_blank");this._showView(e)}catch(e){}finally{rt.hideLoadingToast()}}async _showView(e){const t=await this.getAttachments(e.id);if(t&&t.length>0){let e=rt.getBaseUrl()+t[0].fileurl;t[0].videoOssUrl&&(e=t[0].videoOssUrl),this.showViewPdf(e)}}async getAttachments(e){if(!e)return;const t={id:e,entityName:"annotation"};try{return await rt.get("api/attachment/GetAllAnnotations",t)}catch(e){rt.showErrorToast(e)}}async getAttachment(){if(!this.objectId)return void(this.attachmentData=[]);this.loading=!0;const e={id:this.objectId,entityName:this.entityName,childEntityName:this.childEntityName,parentKey:this.parentKey};try{const t=await rt.get("api/attachment/GetAllAnnotations",e);for(let e=0;e{const t="api/attachment/delete/"+this.entityName+"/"+e;this.loading=!0;try{await rt.get(t),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功!")),this.getAttachment(),this.$emit("deleteCallback")}catch(e){this.loading=!1,rt.showErrorToast(e)}})}beforeAvatarUpload(e){if(!e.size)return!0;let t=e.size/1024/1024e.fileParam.file.name.split(".")[0]==r.split(".")[0]).length)return new Promise((t,i)=>{this.$confirm(this.$_t("platform.batchUploadImageRemove","确定移除")+e.name+this.$_t("platform.batchUploadImageDoubt","?")).then(()=>{let e=this.fileList.findIndex(e=>e.fileParam.file.name.split(".")[0]==r.split(".")[0]);this.fileList.splice(e,1),t(!0)}).catch(()=>{i(new Error)})})}};Object(J.__decorate)([Object(te.d)({default:""})],vt.prototype,"pdfReviewerURL",void 0),Object(J.__decorate)([Object(te.d)({default:"768"})],vt.prototype,"width",void 0),Object(J.__decorate)([Object(te.d)({default:""})],vt.prototype,"childEntityName",void 0),Object(J.__decorate)([Object(te.d)({default:""})],vt.prototype,"parentKey",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],vt.prototype,"canDownload",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],vt.prototype,"canDelete",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],vt.prototype,"canUpload",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],vt.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)()],vt.prototype,"fileSize",void 0),Object(J.__decorate)([Object(te.d)()],vt.prototype,"limitFile",void 0),Object(J.__decorate)([Object(te.d)({default:"left"})],vt.prototype,"placement",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],vt.prototype,"showTitle",void 0),Object(J.__decorate)([Object(te.d)({default:"*"})],vt.prototype,"fileExtensions",void 0),Object(J.__decorate)([Object(te.g)("objectId")],vt.prototype,"handleObjectIdChanged",null),vt=Object(J.__decorate)([Object(te.a)({name:"RtAttachment"})],vt);var xt=vt,wt=(r("1a36"),r("1283"),Object(_.a)(xt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{staticClass:"attach-wrap plat-attach-wrap"},[e.showTitle?r("apaas-header",{attrs:{slot:"header",icon:"rt-saas-attachment"},slot:"header"},[r("div",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[e._v(" "+e._s(e.$_t("common.attachment","附件"))+" "),e.attachmentData.length>0?r("span",[e._v("("+e._s(e.attachmentData.length)+")")]):e._e()]),e.canUpload?r("rt-saas-icon",{staticClass:"saas-icon btn-add",attrs:{name:"rt-saas-add"},on:{click:e.fileupload}}):e._e()],1):e._e(),e.attachmentData.length>0?r("ul",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"attach-ul"},e._l(e.attachmentData,(function(t,i){return r("li",{key:i,on:{mouseenter:function(t){return e.enter(i)},mouseleave:function(t){return e.leave()}}},[r("el-row",{attrs:{gutter:15}},[r("el-col",{staticClass:"attachment-img",attrs:{span:4}},[t.previewRule?r("el-popover",{attrs:{placement:e.placement,title:"",trigger:"hover",width:e.width}},[r("img",{attrs:{src:t.fileurl,alt:t.subject,width:e.width}}),r("img",{staticClass:"previewimg",attrs:{slot:"reference",src:t.fileurl,alt:t.subject},slot:"reference"})]):r("div",{staticClass:"plat-attach-div",on:{click:function(r){return e._previewFile("",t)}}},[r("rt-icon",{staticClass:"file-icon",attrs:{color:"#CED5EF",size:"40",name:"rt-saas-file-img"}})],1)],1),r("el-col",{staticClass:"attachment-desc",attrs:{span:18}},[e.canDownload?r("a",{on:{click:function(r){return e.downloadFile({url:t.videoOssUrl,name:t.filename,provider:t.Provider,id:t.id})}}},[e._v(e._s(t.subject))]):r("a",[e._v(e._s(t.subject))]),r("p",{staticClass:"attach-size"},[r("span",[e._v(e._s(t.filesize))]),r("span",[e._v(e._s(t.createdon))]),e._t("more")],2)]),r("el-col",{staticClass:"attach-delete",attrs:{span:2}},[r("span",{directives:[{name:"show",rawName:"v-show",value:e.seen&&i==e.current&&e.canDelete,expression:"seen && index == current && canDelete"}]},[r("rt-icon",{staticClass:"attach-icon",attrs:{slot:"suffix",color:"#A9C2E8",name:"rt-saas-delete"},on:{click:function(r){return e.filedeleteClick(t.id)}},slot:"suffix"})],1)])],1)],1)})),0):r("ul",{staticClass:"attach-ul"},[r("rc-defaultImage",{attrs:{size:"small"}})],1),r("el-dialog",{attrs:{"scope-id":"","append-to-body":!0,"custom-class":"uploadDialog",title:e.hasErrorUpload?e.$_t("platform.attachmentErrList","错误列表"):e.$_t("common.uploadattachment","上传附件"),visible:e.dialogVisible,width:"50%","close-on-click-modal":!1,"close-on-press-escape":!1,"before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t},closed:e.handleClosed}},[r("rc-upload",{directives:[{name:"show",rawName:"v-show",value:e.showUpload,expression:"showUpload"},{name:"loading",rawName:"v-loading",value:e.uploadLoading,expression:"uploadLoading"}],ref:"uploadVersion",staticClass:"upload-demo version-attachment",attrs:{limit:e.canUploadCount,"before-upload":e.beforeAvatarUpload,"drag-height":180,"drag-border-radius":10,"http-request":e.customRequest,"drag-bgcolor":"lighter","before-remove":e.handleRemove,"drag-border":"base",drag:"","on-exceed":e.uploadexceed,action:"","on-error":e.handleError,"on-change":e.checkRepeat,accept:e.fileExtensions,"on-success":e.handleSuccess,data:e.fileData}},[r("div",{staticClass:"rtxpc-upload-dragger platform-upload-dragger"},[r("i",{staticClass:"el-icon-upload"}),r("div",{staticClass:"el-upload__text"},[e._v(" "+e._s(e.$_t("platform.batchUploadImage.drag","将文件拖曳到此处,"))),r("em",[e._v(e._s(e.$_t("platform.chooseFile","或点击选择文件")))])])])]),e.hasErrorUpload?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.showUpload,expression:"!showUpload"}]},[r("uploadErrTable",{attrs:{"table-data":e.errorData}})],1):e._e(),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.hasErrorUpload,expression:"hasErrorUpload"}],attrs:{type:"primary"},on:{click:function(t){e.showUpload=!e.showUpload}}},[e._v(" "+e._s(e.showUpload?e.$_t("platform.attachmentShowerrList","显示错误列表"):e.$_t("platform.attachmentShowUploadresult","显示上传结果"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.hasErrorUpload,expression:"hasErrorUpload"}],on:{click:e.handleClose}},[e._v(e._s(e.$_t("platform.attachmentCloseWindow","关闭窗口"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showUpload&&!e.hasErrorUpload,expression:"showUpload && !hasErrorUpload"}],staticClass:"mr10",attrs:{type:"primary",loading:e.buttonLoading},on:{click:e.batchUpload}},[e._v(e._s(e.$_t("platform.attachmentUpload","上 传"))+" ")]),r("rc-button",{directives:[{name:"show",rawName:"v-show",value:e.showUpload&&!e.hasErrorUpload,expression:"showUpload && !hasErrorUpload"}],on:{click:e.reset}},[e._v(e._s(e.$_t("platform.attachmentReset","重 置"))+" ")])],1)],1),r("rt-preview-video",{ref:"videoPlayer"}),r("rt-preview-pdf",{ref:"previewPdf",attrs:{"pdf-reviewer-u-r-l":e.pdfReviewerURL}})],1)}),[],!1,null,"420fd0d4",null).exports);function _t(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Et=class extends N.a{constructor(...e){super(...e),_t(this,"address",""),_t(this,"loading",!1),_t(this,"parseResult",""),_t(this,"reset",void 0),_t(this,"disabled",void 0)}resetAll(){this.address="",this.reset&&this.reset(),this.$emit("reset")}getAddressParseInfo(e){if(rt.isNullOrWhiteSpace(e))return void rt.showErrorToast(this.$_t("PLS_ENTER_ADDRESS_INFO","请填写地址信息"));const t=window.AddressParse.parse(this.address)[0];if(rt.isNullOrWhiteSpace(t.province))return void rt.showErrorToast(this.$_t("PROVINCE_NOT_PARSE","未分析出省份,请确认是否填写"));let r={province:t.province,city:t.city,county:t.area};this.loading=!0,rt.post("api/custom/new_service/AddressParse/GetAddressParseInfo",{model:r}).then(e=>{const r={province:e.province,city:e.city,county:e.county,address:t.details,name:t.name,phone:t.mobile};this.$emit("getAddress",r),this.$emit("setAddress",r),this.loading=!1,null!=r.county?null==r.province||null!=r.city?null!=r.province&&null!=r.city&&null!=r.county&&rt.showSuccessToast(this.$_t("PARSE_SUCCESS","分析成功,如有错误请手动修改")):rt.showErrorToast(this.$_t("CITY_NOT_PARSE","未分析出城市,请确认是否填写")):rt.showErrorToast(this.$_t("COUNTY_NOT_PARSE","未分析出县区,请确认是否填写,如需要请手动选择"))}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})}};Object(J.__decorate)([Object(te.d)()],Et.prototype,"reset",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],Et.prototype,"disabled",void 0),Et=Object(J.__decorate)([Object(te.a)({name:"RtAddressParse"})],Et);var Ct=Et,Nt=(r("0dc1"),r("e004"),Object(_.a)(Ct,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"address-parse plat-address-parse",attrs:{disabled:e.disabled}},[r("rc-form-item",{staticClass:"parseInput",attrs:{label:e.$_t("AddressParseBar","地址识别")}},[r("plat-view",{attrs:{disabled:e.disabled}},[r("rc-row",{staticClass:"address-parse-row"},[r("rc-col",[r("div",{staticClass:"input-container"},[r("rc-input",{attrs:{placeholder:e.$_t("new_srv_incident.exampleAddress","粘贴或输入文本,点击解析识别姓名电话和地址"),"show-suffix-icon":!1,disabled:e.disabled,clearable:""},model:{value:e.address,callback:function(t){e.address=t},expression:"address"}}),e.disabled?e._e():r("div",[r("div",{staticClass:"rt-address-parse-label",on:{click:function(t){return e.getAddressParseInfo(e.address)}}},[e._v(" "+e._s(e.$_t("AddressParseNote","识别"))+" ")])])],1)])],1)],1)],1)],1)}),[],!1,null,"3e18da92",null).exports),St={name:"RtRLookupDialog",props:{value:{type:Object,default:function(){return{}}},entityList:Array,requestUrl:{type:String,default:function(){return"../api/crmlookupview/getdata"}},dialogCallback:Function,title:{type:String,default:function(){return this.$_t("TO_FIND_THE","查找")}},defaultViewLogicalName:{type:String},defaultViewId:{type:String},relationshipId:{type:String},relationshipName:{type:String},bindEntity:{type:String,default:function(){return""}},defaultViewsRelated:{type:Array,default:()=>[]}},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:20,totalRecordCount:0,tableData:[],currentRow:null,currentEntity:{},currentEntityIndex:0,entity:null,tableHeight:document.body.clientHeight-500,activeName:"0",selectedList:[],nameField:"new_name"}),computed:{selectString:{get(){if(this.currentEntity){var e=[];for(var t in e.push(this.currentEntity.nameField),e.push(this.currentEntity.idField),this.currentEntity.displayFields){var r=this.currentEntity.displayFields[t].name;e.indexOf(r)>=0||e.push(r)}return e.join(",")}return""}},displayFields:{get(){return this.currentEntity?this.currentEntity.displayFields:null}},orderbyString:{get(){return this.currentEntity.orderbyFields}},filterString:{get(){if(this.currentEntity.displayFields){var e="";return this.currentEntity.displayFields.forEach(t=>{e+=t.name+","}),e}return""}},conditionString:{get(){return this.currentEntity.conditionFields?this.currentEntity.conditionFields:""}},IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},getTableData(){return this._memoize(this.fetchRequest,"_fetchRecords")}},watch:{currentEntityIndex(e){this.currentEntity=this.entityList[e],this.entity=this.currentEntity.entity,this.isActiveName=e+"",this.handleSearch()}},mounted(){this.entityList&&this.entityList.length>0&&(this.currentEntity=this.entityList[0],this.currentEntityIndex=0,this.entity=this.currentEntity.entity),this.$PlatUtils.listenerHook(this,"tableIsLoadComplete",e=>{if(this.dialogVisible&&e){const e=this.$refs["vlistcore"+this.currentEntity.entity]&&this.$refs["vlistcore"+this.currentEntity.entity][0];this.nameField=e&&e.primaryAttribute;const t=this.getCurrentVlistcoreTable();if(!t)return;if(0===this.selectedList.length)return void t.clearSelection();let r=[...this.selectedList];t&&t.dataList.forEach(e=>{t.toggleRowSelection(e,r.some(t=>(t.id||t.$id)===(e.$id||e.id)))}),this.selectedList.forEach(e=>{t.toggleRowSelection(e,!0)})}})},created(){this.getHeight(),this.$PlatUtils.eventListenerHook(this,"resize",this.getHeight,window)},beforeDestroy(){window.removeEventListener("resize",this.getHeight)},methods:{_memoize(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");const r={};return function(...i){let a;return a="function"==typeof t?t.apply(this,i):JSON.stringify([t,...i]),r[a]||(r[a]=e.apply(this,i)),r[a]}},callback(e){this.setSelectedList(e),this.handleConfirm()},setSelectedList(e){e&&(this.selectedList=[],e={...e,entity:this.entity,$name:e[this.nameField]||e.$name||e.name},this.selectedList.push(e))},onTableLoadComplete(){let e=JSON.parse(JSON.stringify(this.selectedList));this.getHeight();const t=this.getCurrentTable();t&&(0===this.selectedList.length&&t.clearSelection(),t.dataList.forEach(r=>{t.toggleRowSelection(r,e.some(e=>(e.id||e.$id)===(r.$id||r.id)))}),this.selectedList.forEach(e=>{t.toggleRowSelection(e,!0)}),t.selection=this.selectedList)},handleClearSelection(){this.selectedList=[]},getCurrentVlistcoreTable(){const e=this.currentEntity;return this.$refs["vlistcore"+e.entity]&&this.$refs["vlistcore"+e.entity][0]&&this.$refs["vlistcore"+e.entity][0].$refs.table},getCurrentTable(){const e=this.currentEntity;return this.$refs["lookupTable"+e.entity]&&this.$refs["lookupTable"+e.entity][0]},handleSelect(e,t){this.selectedList.length>0&&-1!==this.selectedList.findIndex(e=>(e.id||e.$id)===(t.id||t.$id))?this.$nextTick(()=>{this.getCurrentTable().clearSelection(),this.selectedList=[]}):(e.length>0&&this.getCurrentTable()&&this.$nextTick(()=>{this.getCurrentTable().clearSelection(),this.getCurrentTable().toggleRowSelection(e[e.length-1])}),this.setSelectedList(t))},changeRow(e){let t=e;this.getCurrentTable().selection.find(e=>(e.$id||e.id)===t.$id)?(this.selectedList=this.selectedList.filter(e=>(e.$id||e.id)!==t.$id),this.$nextTick(()=>{this.getCurrentTable().selection=this.selectedList})):(this.selectedList=[],this.getCurrentTable().clearSelection(),this.getCurrentTable().selection=[],this.selectedList.push(t))},handleCurrentChange(e){if(Array.isArray(e)&&(e=e[0]),e)if(e.$name||e.name||e[this.nameField])this.getCurrentTable()&&this.getCurrentTable().clearSelection(),this.setSelectedList(e);else{if(e.$logicalname!==this.entity)return;this.showPrimaryAttributeToast(),this.$nextTick(()=>{this.getCurrentVlistcoreTable()&&this.getCurrentVlistcoreTable().clearSelection()})}else this.selectedList=[]},showPrimaryAttributeToast(){const e=this.$refs["vlistcore"+this.entity][0].queryLogicalName;let t=["name","$name",this.nameField];const r=this.$refs["vlistcore"+this.currentEntity.entity]&&this.$refs["vlistcore"+this.currentEntity.entity][0].lookupTableCellFields;t.some(e=>r&&r.hasOwnProperty(e))?rt.showErrorToast(this.$_t("platform.primaryAttributeIsNotEmpty","所选择的数据主字段不能为空。")):rt.showErrorToast(this.$_t("platform.configureEntity","请配置0视图的实体主字段!",{0:e}))},handleSelectItem(e){const t=e;t.length>1&&this.getCurrentTable()&&(this.getCurrentTable().clearSelection(),this.getCurrentTable().toggleRowSelection(t[t.length-1])),this.setSelectedList(e)},loadData(){const e=this.currentEntity;e.defaultViewLogicalName&&e.defaultViewLogicalId||this.getCurrentTable()&&(this.getCurrentTable().clearSelection(),this.getCurrentTable().loadData())},handleTabClick(){this.pageIndex=1,this.currentEntity=this.entityList[Number(this.activeName)],this.entity=this.currentEntity.entity,this.loadData(),this.getHeight()},isNull(e){return["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length&&(!0===this.IsNullValueDisplay||"true"===this.IsNullValueDisplay)?this.NullValueDisplay?this.NullValueDisplay:"--":e},show(){this.dialogVisible=!0,this.entityList.map((e,t)=>(e.entity==this.bindEntity&&(this.currentEntity=e,this.currentEntityIndex=t,this.activeName=t+"",this.entity=this.currentEntity.entity),this.defaultViewsRelated.filter(t=>{t.entityLogicalName===e.entity&&(e.defaultViewLogicalName=t.defaultViewLogicalName,e.defaultViewLogicalId=t.defaultViewLogicalId)}),e)),this.filterValue="",this.pageIndex=1,this.selectedList=this.value?[this.value]:[],this.loadData(),this.getHeight()},handleSearch(){this.pageIndex=1,this.loadData()},handleSortChange(){alert(this.$_t("common.Unrealized","未实现"))},handleSizeChange(e){this.pageSize=e,this.loadData()},handleIndexChange(e){this.pageIndex=e,this.loadData()},handleReset(){this.$emit("data-selected",null),this.dialogVisible=!1,this._dialogCallback(null)},handleConfirm(e){e&&e.$id&&this.setSelectedList(e);let t=[...this.selectedList][0];if(rt.isNull(t))return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));const r=t.id||t.$id;let i=t.name||t.$name||t[this.nameField];i&&"object"==typeof i&&(i=i.text);const a=t.entity||this.entity;this.$emit("data-selected",{id:r,name:i,logicalName:a}),this.dialogVisible=!1,t.logicalName=this.entity,this._dialogCallback(t)},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),this.$emit("dialogCallback",e)},getHeight(){this.dialogVisible&&setTimeout(()=>{const e=this.$el.querySelector(".rtxpc-dialog__body")&&this.$el.querySelector(".rtxpc-dialog__body").getBoundingClientRect();let t=this.$el.querySelector(".rtxpc-dialog .rt-tabs__content");e&&e.height?(this.tableHeight=e&&e.height-160,t.style.height=this.tableHeight+120+"px"):(this.tableHeight=336,t.style.height=this.tableHeight+120+"px")},500)},_fetchRecords(){if(!this.dialogVisible)return Promise.resolve([]);if(this.loading=!0,this.currentEntity){var e=this.requestUrl+"?entityName="+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||"")+"&condition="+this.conditionString;return this.fetchTableData(e)}},fetchRequest:e=>rt.get(e),fetchTableData(e){return this.getTableData(e).then(e=>(this.tableData=e.Data,this.totalRecordCount=e.TotalRecordCount,e.Data)).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}}},Tt=(r("a14b"),Object(_.a)(St,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal rt-r-lookup-dialog plat-r-lookup-dialog",attrs:{"append-to-body":"","close-on-click-modal":!1,title:e.title},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[e.dialogVisible?r("rc-tabs",{on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.entityList,(function(t){return r("rc-tab-pane",{key:t.entity,attrs:{label:e.$t(t.entityName)}},[e.dialogVisible&&t.defaultViewLogicalName&&t.defaultViewLogicalId?r("vlistcore",{key:e.activeName+t.defaultViewLogicalName,ref:"vlistcore"+t.entity,refInFor:!0,attrs:{height:e.tableHeight,"is-dialog-mode":!0,"object-type-name":t.entity,"query-id":t.defaultViewLogicalId,"query-logical-name":t.defaultViewLogicalName,"page-source":"lookup","is-single-select":!0},on:{handleCurrentChange:e.handleCurrentChange,"clear-selection":e.handleClearSelection,callback:e.callback}}):r("div",[r("div",{staticClass:"rt-lookup-dialog-search"},[r("rc-list-header",{attrs:{icon:"rt-base-defaultIcon"}},[r("rc-header-title",{attrs:{title:e.$t(t.entityName)}}),r("template",{slot:"search"},[r("rt-search",{attrs:{placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录"),more:!1,type:"dark"},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],2)],1),r("rc-table",{key:e.activeName,ref:"lookupTable"+t.entity,refInFor:!0,staticClass:"rt-lookup-dialog-table",attrs:{height:e.tableHeight,width:"100%","highlight-current-row":"",fetch:e._fetchRecords,"total-record":e.totalRecordCount,"show-border":!1,stripe:"","row-key":"$id"},on:{changesize:e.handleSizeChange,changeindex:e.handleIndexChange,"cell-click":e.changeRow,select:e.handleSelect,"row-dblclick":e.handleConfirm,"sort-change":e.handleSortChange,"load-complete":e.onTableLoadComplete,"clear-selection":e.handleClearSelection}},e._l(e.currentEntity.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?e.$t(t.label):e.$t(e.currentEntity.entity+"."+t.name)},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.row;return[e._v(" "+e._s(e.isNull(i[t.name]))+" ")]}}],null,!0)})})),1)],1)],1)})),1):e._e(),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{attrs:{size:"medium"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("lookup.remove","移除值")))]),r("rc-button",{attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v(e._s(e.$_t("BUTTON_DETERMINE","确定")))])],1)],1)}),[],!1,null,"60267500",null).exports),kt={account:{entity:"account",entityName:"crm.account",orderbyFields:"name asc",nameField:"name",idField:"accountid",displayFields:[{name:"name",label:""},{name:"telephone1",label:""},{name:"primarycontactid",label:""},{name:"ownerid",label:""}],filterFields:"accountid,name,telephone1"},contact:{entity:"contact",entityName:"crm.contact",orderbyFields:"fullname asc",nameField:"fullname",idField:"contactid",displayFields:[{name:"fullname",label:""},{name:"mobilephone",label:""},{name:"telephone1",label:""},{name:"new_province_id",label:""},{name:"new_city_id",label:""},{name:"new_county_id",label:""},{name:"emailaddress1",label:""},{name:"parentcustomerid",label:""}],filterFields:"contactid,fullname,mobilephone,telephone1"},opportunity:{entity:"opportunity",entityName:"crm.opportunity",orderbyFields:"name asc",nameField:"name",idField:"opportunityid",displayFields:[{name:"name",label:""},{name:"new_source",label:""},{name:"parentaccountid",label:""}],filterFields:"opportunityid,name,parentaccountid"},lead:{entity:"lead",entityName:"crm.lead",orderbyFields:"subject asc",nameField:"subject",idField:"leadid",displayFields:[{name:"subject",label:""},{name:"leadsourcecode",label:""},{name:"parentaccountid",label:""}],filterFields:"leadid,subject,parentaccountid"}},Ot={name:"RtRLookup",components:{"rt-r-lookup-dialog":Tt},props:{jumpExpression:{type:void 0|Function},requestUrl:{type:String,default:function(){return"../api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return this.$_t("common.select","请选择")}},value:{type:Object,required:!1,default:null},disabled:Boolean,entityList:{default:function(){return[kt.account,kt.contact,kt.opportunity,kt.lead]}},dialogConditionFields:String,jumpid:{type:String,default:function(){return""}},dialogCallback:Function,enableJump:{type:Boolean,default:!1},isNeedTips:{type:Boolean,default:!1},defaultViewLogicalName:{type:String},defaultViewId:{type:String},relationshipId:{type:String},relationshipName:{type:String},bindEntity:{type:String,default:function(){return""}},defaultViewsRelated:{type:Array,default:()=>[]},datafieldname:{type:String,default:function(){return""}}},data:()=>({lookupValue:{name:null,id:null,logicalname:null},lookupValueName:null,suglist:[],hasTipAutocomplete:!0,hasTipJump:!0}),computed:{showJump:function(){return this.lookupValue&&this.lookupValue.id&&this.enableJump},lookupValueReadOnly(){return this.disabled||this.readonly?"lookupvalue isreadOnly":"lookupvalue"},autoCompleteCount:()=>20},watch:{value:{immediate:!0,handler:function(e){e||(e={name:null,id:null,logicalname:null}),this.lookupValue=e,this.handleMaskField()}},lookupValueName(e){e?this.handlerShowTooltip():this.handleDataSelected(null)}},mounted(){this.lookupValue=this.value,this.value&&"object"==typeof this.value.name&&(this.lookupValue.name=this.value.name.text),this.value&&this.handleMaskField(),this.handlerShowTooltip()},methods:{clearLookupValue(){this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)},handlerShowTooltip(){this.$nextTick(()=>{const e=this.$refs.jump;e&&(this.hasTipJump=e.scrollWidth>e.offsetWidth);const t=this.$refs.autocomplete.$el;if(t){const e=t.querySelector("input");this.hasTipAutocomplete=e.scrollWidth>e.offsetWidth}})},handleMaskField(){this.lookupValue.name&&this.lookupValue.name instanceof Object==1&&this.lookupValue.name.hasOwnProperty("reference")?this.lookupValueName=this.lookupValue.name.text:this.lookupValueName=this.lookupValue.name},handleContextmenu(e){let t="";Array.isArray(this.entityList)&&this.entityList.length>0&&this.entityList.find(e=>{e.entity!=this.value.logicalName&&e.entity!=this.value.logicalname||(t=e.entityName)}),we.a.rtContextmenu({text:e,url:this.jumpEdit,urlData:[!0],docTitle:t})},showLookupDialog(){if(this.disabled)return!1;this.$refs.rlookupDialog&&this.$refs.rlookupDialog.show()},handleDataSelected(e){this.lookupValue=e,e&&e.name&&e.name instanceof Object==1&&e.name.hasOwnProperty("reference")?this.lookupValueName=e.name.text:this.lookupValueName=e&&e.name,this.$emit("input",e)},blur(){this.suglist[0]?this.selectValue(this.suglist[0]):this.lookupValueName=null,null!=this.lookupValue&&this.lookupValue.id?this.lookupValueName!=this.lookupValue.name&&(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue)):(this.lookupValue=null,this.$emit("input",this.lookupValue,null,this.datafieldname),this._dialogCallback(this.lookupValue))},findValueByApiSingle(e){let t=this.requestUrl+"?entityName="+e.entity+"&page=1&count="+this.autoCompleteCount+"&select="+e.filterFields+"&orderby="+e.orderbyFields+"&filter="+e.nameField+"&filterValue="+encodeURIComponent(this.lookupValueName||"");return null!=this.dialogConditionFields?t+="&condition="+this.dialogConditionFields:t+="&condition=",new Promise(r=>{rt.get(t).then(t=>{if(null==t||null==t.Data)return;let i=[];t.Data.forEach(t=>{t.value=t[e.nameField];for(let e in t)t[e]&&"object"==typeof t[e]&&t[e].hasOwnProperty("reference")&&(t[e]=t[e].text);i.push(t)}),r(i)}).catch(()=>{r([])})})},findValueByApi(e,t){if(null!=e&&e.length>0){let e=[];this.entityList.forEach(t=>{e.push(this.findValueByApiSingle(t))}),Promise.all(e).then(e=>{e&&(this.suglist=[],e.forEach(e=>{this.suglist=this.suglist.concat(e)}),this.suglist=this.suglist.map(e=>{for(let t in e)e[t]&&"object"==typeof e[t]&&e[t].hasOwnProperty("reference")&&(e[t]=e[t].text)}),t(this.suglist))})}},selectValue(e){e&&(this.lookupValue={name:e.value,id:e.$id,logicalname:e.$logicalname},this.handleMaskField(),this.$emit("input",this.lookupValue),this._dialogCallback(e))},_dialogCallback(e){this.dialogCallback&&this.dialogCallback(e),this.$emit("dialogCallback",e),this.$emit("change",e),this.$emit("attributeMappingCallback",e,this.lookupValue,this.datafieldname,e.logicalName)},async showTips(){this.isNeedTips&&(await this.$confirm(this.$_t("JumpisNeedTips","跳转详情页面可能会导致当前页面刚刚已编辑的数据丢失,是否继续?"),this.$_t("Tip","步骤"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}),window.formDataChanged=!1)},jumpEdit(e){if(this.lookupValue){const t=this.lookupValue.logicalName||this.lookupValue.logicalname;if(this.jumpExpression&&"function"==typeof this.jumpExpression){let r,i=!1;try{r=this.jumpExpression(t,this.lookupValue.id)}catch(e){i=!0,rt.showErrorToast("自定义跳转表达式脚本执行出错,请检查正确性")}if("string"!=typeof r)throw i||rt.showErrorToast("自定义跳转表达式脚本执行出错,请检查正确性"),Error("自定义跳转表达式返回类型错误,应该为string类型");return e?r.substring(1):void this.showTips().then(()=>{this.$router.push(r)}).catch(()=>{})}if(e)return"vform/"+t+"/"+this.lookupValue.id;this.$emit("jump-edit",{entityName:t,objectId:this.lookupValue.id})}}}},It=(r("36b2"),Object(_.a)(Ot,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-r-lookup plat-r-lookup"},[r("el-autocomplete",{directives:[{name:"show",rawName:"v-show",value:!e.showJump,expression:"!showJump"}],ref:"autocomplete",staticClass:"rt-r-input plat-r-input",attrs:{"has-tip":e.hasTipAutocomplete,"tip-text":e.lookupValueName,placeholder:e.disabled?"--":e.placeholder,readonly:!0,disabled:e.disabled,"trigger-on-focus":!1,"fetch-suggestions":e.findValueByApi},on:{select:e.selectValue},model:{value:e.lookupValueName,callback:function(t){e.lookupValueName=t},expression:"lookupValueName"}},[r("template",{slot:"suffix"},[r("div",{staticClass:"suffix-icon-wrap"},[!e.disabled&&e.lookupValueName?r("rc-icon",{staticClass:"suffix-icon-clearicon",attrs:{color:e.SCSS_VARIABLES.COLOR_INFO,name:"rt-base-circle-close-filled",size:16},on:{click:e.clearLookupValue}}):e._e(),e.disabled?e._e():r("rc-icon",{staticClass:"plat-r-icon",attrs:{name:"rt-base-lookup"},on:{click:e.showLookupDialog}})],1)]),e._t("prefix",null,{slot:"prefix"})],2),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showJump,expression:"showJump"}],class:e.lookupValueReadOnly,attrs:{"has-tip":e.hasTipJump,"tip-text":e.lookupValueName}},[e._t("prefix"),r("span",{ref:"jump",staticClass:"jumpSpan",on:{click:function(t){return e.jumpEdit()},contextmenu:function(t){return e.handleContextmenu(e.lookupValueName)}}},[e._v(e._s(e.lookupValueName))]),r("div",{staticClass:"suffix-icon-wrap"},[!e.disabled&&e.lookupValueName?r("rt-icon",{staticClass:"suffix-icon-clearicon",attrs:{color:e.SCSS_VARIABLES.COLOR_INFO,name:"rt-base-circle-close-filled",size:16},on:{click:e.clearLookupValue}}):e._e(),r("rc-icon",{staticClass:"lookup",attrs:{slot:"suffix",name:"rt-base-lookup"},on:{click:e.showLookupDialog},slot:"suffix"})],1)],2),r("rt-r-lookup-dialog",{ref:"rlookupDialog",attrs:{value:e.value,"dialog-callback":e.dialogCallback,"entity-list":e.entityList,"default-view-logical-name":e.defaultViewLogicalName,"default-view-id":e.defaultViewId,"relationship-id":e.relationshipId,"relationship-name":e.relationshipName,"bind-entity":e.bindEntity,"default-views-related":e.defaultViewsRelated},on:{"data-selected":e.handleDataSelected,dialogCallback:e._dialogCallback}})],1)}),[],!1,null,"60a0c00c",null).exports),Dt={name:"RtSaasAssign",props:{entityName:{type:String},id:{type:String}},data:()=>({dialogVisible:!1,assignto:"",editForm:{ownerid:{}}}),computed:{user(){return this.$store.state.user}},methods:{handleClose(e){this.$confirm(this.$_t("common.ConfirmToClose","确认关闭?")).then(t=>{this.dialogVisible=!1,e()}).catch()},close(e){this.$confirm(this.$_t("activity.sureCancel","确认取消?")).then(t=>{this.dialogVisible=!1,e()}).catch()},confirm(){if(this.id)if(this.assignto){rt.showLoadingToast(this.$_t("common.assigning","正在分派...")),"team"==this.assignto&&(this.editForm.ownerid={Id:this.user.userId,LogicalName:"systemuser",name:this.user.nickName});const e="api/custom/new_sales/SfaAssign/Assign";rt.post(e,{model:{LogicalName:this.entityName,EntityID:this.id,OwnerId:this.editForm.ownerid}}).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("task.assignSucessto","成功分配给")+this.editForm.ownerid.name),this.dialogVisible=!1,this.$emit("update")}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}else rt.showErrorToast(this.$_t("common.assigned_user_empty","分派的用户为空"));else rt.showErrorToast(this.$_t("activity.saveMasterFileMsg","请先保存主档信息")),this.dialogVisible=!1}}},At=Object(_.a)(Dt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{title:e.$_t("lead.assign","分派"),visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("el-form",{ref:"editForm",attrs:{model:e.editForm,"label-width":"120px","label-position":"top"}},[r("el-row",[r("el-col",{attrs:{span:24}},[r("el-form-item",{attrs:{label:e.$_t("task.AssignTo","分派到")}},[r("el-select",{attrs:{placeholder:e.$_t("visit.choosePlaceholder","请选择")},model:{value:e.assignto,callback:function(t){e.assignto=t},expression:"assignto"}},[r("el-option",{attrs:{label:e.$_t("crm.systemuser","用户管理"),value:"user"}}),r("el-option",{attrs:{label:e.$_t("SETTING_ABOUT_ME","我"),value:"team"}})],1)],1)],1),r("el-col",{directives:[{name:"show",rawName:"v-show",value:"user"==e.assignto,expression:"assignto == 'user'"}],attrs:{span:24}},[r("el-form-item",{attrs:{label:e.$_t("crm.systemuser","用户管理"),prop:"owinid"}},[r("rt-lookup",{attrs:{"dialog-condition-fields":"new_usertype eq 1",disabled:!1,entity:"systemuser","name-field":"fullname","id-field":"systemuserid","dialog-display-fields":[{name:"fullname",label:"",width:300},{name:"siteid",label:"",width:150},{name:"businessunitid",label:"",width:150},{name:"title",label:"",width:100},{name:"positionid",label:"",width:100},{name:"address1_telephone1",label:"",width:100}],"dialog-orderby-fields":"fullname asc","dialog-filter-fields":"fullname,title,address1_telephone1,businessunitid,siteid,positionid,systemuserid"},model:{value:e.editForm.ownerid,callback:function(t){e.$set(e.editForm,"ownerid",t)},expression:"editForm.ownerid"}})],1)],1)],1)],1),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v(e._s(e.$_t("picker.confirm","确认")))]),r("el-button",{on:{click:e.close}},[e._v(e._s(e.$_t("select.cancel","取消")))])],1)],1)],1)}),[],!1,null,null,null).exports,Mt={name:"RtSassDialog",props:{dialogVisible:{type:Boolean,default:function(){return!1},required:!0},appendtobody:{type:Boolean,default:function(){return!1}},width:{type:String,default:function(){return"50%"},required:!1},title:{type:String,default:function(){return""},required:!0},isScroll:{type:Boolean,default:function(){return!1},required:!1},loading:{type:Boolean,default:function(){return!1},required:!1},disabled:{type:Boolean,default:function(){return!1}}},data:()=>({}),watch:{dialogVisible(e,t){this.isScroll&&this.$refs.dialogScrollbar&&(this.$refs.dialogScrollbar.wrap.scrollTop=0)}},methods:{show(){},handleClose(){this.$emit("handleClose")},handleConfirm(){this.$emit("handleConfirm")}}},Lt=(r("e3ac"),Object(_.a)(Mt,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{"custom-class":"commonDialog plat-sass-dialog",top:"64px",visible:e.dialogVisible,width:e.width,"before-close":e.handleClose,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":e.appendtobody},on:{"update:visible":function(t){e.dialogVisible=t}}},[r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("div",{staticClass:"dialog-header"},[r("h2",{staticClass:"dialog-title"},[e._v(e._s(e.title))]),r("div",{staticClass:"dialog-icon",on:{click:e.handleClose}},[r("i",{staticClass:"el-icon-close"})])]),r("div",{class:{"dialog-content":e.isScroll}},[r("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.isScroll,expression:"isScroll"}],ref:"dialogScrollbar"},[r("div",{staticClass:"content-slot"},[e._t("content")],2)]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isScroll,expression:"!isScroll"}],staticClass:"content-slot"},[e._t("content")],2)],1),r("div",{staticClass:"commonDialog-footer"},[r("el-button",{staticClass:"footer-btn",on:{click:e.handleClose}},[e._v(e._s(e.$_t("BUTTON_CANCEL","取消")))]),r("el-button",{staticClass:"footer-btn footer-primay",attrs:{type:"primary",disabled:e.disabled},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.$_t("BUTTON_DETERMINE","确定")))])],1)])])}),[],!1,null,"38911354",null).exports),Rt={name:"RtSingleEntityCascader",props:{disabled:{type:Boolean,default:()=>!1,required:!1},value:{type:Object,required:!1},separator:{type:String,required:!1,default:()=>"/"},changeSelect:{type:Boolean,default:!0,required:!1},clearable:{type:Boolean,default:!0,required:!1},entityName:{type:String,default:"",required:!0},cascaderField:{type:String,default:"",required:!0},requestUrl:{type:String,default:function(){return""}},dialogCallback:Function,datafieldname:String},data:()=>({options:[],selectedValue:[],currentValue:{}}),watch:{value(e,t){if(e&&e.id){if(t&&e.id==t.id)return void(this.currentValue=e);if(this.currentValue&&this.currentValue.id==e.id)return;var r="api/crmlookupcascader/"+this.entityName+"/"+this.cascaderField+"/"+e.id;rt.get(r).then(e=>{this.selectedValue=e.reverse()}).catch(e=>{this.selectedValue=[],rt.showErrorToast(e)})}else this.selectedValue=[];this.currentValue=e},requestUrl(e){e&&(this.options=[],this.bindData())}},mounted:function(){this.$nextTick(()=>{if(this.bindData(),this.value&&this.value.id){var e="api/crmlookupcascader/"+this.entityName+"/"+this.cascaderField+"/"+this.value.id;rt.get(e).then(e=>{this.selectedValue=e.reverse()}).catch(e=>{this.selectedValue=[],rt.showErrorToast(e)})}})},methods:{expandChange:()=>null,visiblechange(e){e&&this.bindData()},bindData(){if(!this.entityName||"null"==this.entityName||"undefined"==this.entityName)return;if(!this.cascaderField||"null"==this.cascaderField||"undefined"==this.cascaderField)return;let e="api/crmlookupcascader/"+this.entityName+"/"+this.cascaderField;this.requestUrl&&(e=this.requestUrl),rt.get(e).then(e=>{this.options=e}).catch(e=>{this.options=[],rt.showErrorToast(e)})},getCheck(e,t){for(const r of e){if(r.value==t[t.length-1])return r;if(r.children){const e=this.getCheck(r.children,t);if(e)return e}}},handleChange(e){let t=null;if(e&&e.length>0){const r=this.getCheck(this.options,e);r&&(t={id:r.value,name:r.label,logicalname:this.entityName,logicalName:this.entityName})}this.currentValue=t,this.$emit("input",t),this.$emit("change",t),this.$emit("attributeMappingCallback",{},t,this.datafieldname,this.entityName)}}},Pt=(r("a711"),Object(_.a)(Rt,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-cascader",{ref:"myCascader",staticClass:"common-cascader plat-common-cascader",staticStyle:{width:"100%"},attrs:{options:e.options,disabled:e.disabled,props:{checkStrictly:e.changeSelect,expandTrigger:"hover"},placeholder:e.disabled?e.$_t("NoData","暂无数据"):e.$_t("common.pls_enterorselect","请输入或选择"),clearable:!e.disabled&&e.clearable,filterable:"",separator:e.separator},on:{input:e.handleChange,"expand-change":e.expandChange,"visible-change":e.visiblechange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"5e17862a",null).exports),$t=r("8eed"),Ft=r.n($t);function jt(){}const Bt='


';function Ut(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vt=new class{constructor(){Ut(this,"_ua",void 0),Ut(this,"isOldEdge",void 0),Ut(this,"isFirefox",void 0),this._ua=navigator.userAgent;const e=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(e&&"Edge"==e[1]&&parseInt(e[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}isIE(){return"ActiveXObject"in window}isWebkit(){return/webkit/i.test(this._ua)}};function qt(e=""){return e+Math.random().toString().slice(2)}function zt(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&!1===t(r,e[r]))break}function Ht(e,t){let r,i,a;const n=e.length||0;for(r=0;r{const r=e.name;"style"!==r?!1!==o.includes(r)&&s.push(e):t||s.push(e)});const l=function(e,t){let r="";r="<"+e;let i=[];return t.forEach(e=>{i.push(`${e.name}="${e.value}"`)}),i.length>0&&(r=r+" "+i.join(" ")),r=r+(Xt.has(e)?"/":"")+">",r}(e,s);i.push(l)},characters(e){e&&(Jt(a,r)||i.push(e))},endElement(e){if(Jt(e,r))return;const t=function(e){return``}(e);i.push(t),a=""},comment(e){n(e)}});let o=i.join("");return o=function(e){const t=/(.*?)<\/span>/;return e.replace(/.*?<\/span>/gi,e=>{const r=e.match(t);return null==r?"":r[1]})}(o),o};function er(e){const t=e.clipboardData;let r="";return r=null==t?window.clipboardData&&window.clipboardData.getData("text"):t.getData("text/plain"),r.replace(//gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}function tr(e,t=!0,r=!1){const i=e.clipboardData;let a="";if(i&&(a=i.getData("text/html")),!a){const t=er(e);if(!t)return"";a=`

${t}

`}return a=a.replace(/<(\d)/gm,(e,t)=>"<"+t),a=a.replace(/<(\/?meta.*?)>/gim,""),a=Zt(a,t,r),a}var rr=function(e,t){const r=new XMLHttpRequest;if(r.open("POST",e),r.timeout=t.timeout||1e4,r.ontimeout=()=>{t.onTimeout&&t.onTimeout(r)},r.upload&&(r.upload.onprogress=e=>{const r=e.loaded/e.total;t.onProgress&&t.onProgress(r,e)}),t.headers&&zt(t.headers,(e,t)=>{r.setRequestHeader(e,t)}),r.withCredentials=!!t.withCredentials,t.beforeSend){const e=t.beforeSend(r);if(e&&"object"==typeof e&&e.prevent)return e.msg}return r.onreadystatechange=()=>{if(4!==r.readyState)return;const e=r.status;if(e<200)return;if(e>=300&&e<400)return;if(e>=400)return void(t.onError&&t.onError(r));const i=r.responseText;let a;if("object"!=typeof i)try{a=JSON.parse(i)}catch(e){return void(t.onFail&&t.onFail(r,i))}else a=i;t.onSuccess(r,a)},r.send(t.formData||null),r};function ir(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ar=[];function nr(e){let t=[],r=[];return t=Array.isArray(e)?e:e.split(";"),t.forEach(e=>{let t=e.split(":").map(e=>e.trim());2===t.length&&r.push(t[0]+":"+t[1])}),r}class or{constructor(e){if(ir(this,"selector",void 0),ir(this,"length",void 0),ir(this,"elems",void 0),ir(this,"dataSource",void 0),ir(this,"prior",void 0),this.elems=[],this.length=this.elems.length,this.dataSource=new Map,!e)return;if(e instanceof or)return e;let t=[];const r=e instanceof Node?e.nodeType:-1;if(this.selector=e,1===r||9===r)t=[e];else if(function(e){return!!e&&(e instanceof HTMLCollection||e instanceof NodeList)}(e))t=Gt(e);else if(e instanceof Array)t=e;else if("string"==typeof e){const r=e.replace("/\n/mg","").trim();t=0===r.indexOf("<")?function(e){const t=document.createElement("div");return t.innerHTML=e,Gt(t.children)}(r):function(e){return Gt(document.querySelectorAll(e))}(r)}const i=t.length;if(!i)return this;let a=0;for(;a{t.push(r.cloneNode(!!e))}),sr(t)}get(e=0){const t=this.length;return e>=t&&(e%=t),sr(this.elems[e])}first(){return this.get(0)}last(){const e=this.length;return this.get(e-1)}on(e,t,r){return e?("function"==typeof t&&(r=t,t=""),this.forEach(i=>{if(!t)return void i.addEventListener(e,r);const a=function(e){const i=e.target;i.matches(t)&&r.call(i,e)};i.addEventListener(e,a),ar.push({elem:i,selector:t,fn:r,agentFn:a})})):this}off(e,t,r){return e?("function"==typeof t&&(r=t,t=""),this.forEach((function(i){if(t){let a=-1;for(let e=0;e!!e.trim()),r.indexOf(e)<0&&r.push(e),t.className=r.join(" ")}else t.className=e})):this}removeClass(e){return e?this.forEach((function(t){if(!t.className)return;let r=t.className.split(/\s/);r=r.filter(t=>!(!(t=t.trim())||t===e)),t.className=r.join(" ")})):this}hasClass(e){if(!e)return!1;const t=this.elems[0];return!!t.className&&t.className.split(/\s/).includes(e)}css(e,t){let r;return r=""==t?"":`${e}:${t};`,this.forEach(t=>{const i=(t.getAttribute("style")||"").trim();if(i){let a=nr(i);a=a.map(t=>0===t.indexOf(e)?r:t),""!=r&&a.indexOf(r)<0&&a.push(r),""==r&&(a=nr(a)),t.setAttribute("style",a.join("; "))}else t.setAttribute("style",r)})}getBoundingClientRect(){return this.elems[0].getBoundingClientRect()}show(){return this.css("display","block")}hide(){return this.css("display","none")}children(){const e=this.elems[0];return e?sr(e.children):null}childNodes(){const e=this.elems[0];return e?sr(e.childNodes):null}replaceChildAll(e){const t=this.getNode(),r=this.elems[0];for(;r.hasChildNodes();)t.firstChild&&r.removeChild(t.firstChild);this.append(e)}append(e){return this.forEach(t=>{e.forEach((function(e){t.appendChild(e)}))})}remove(){return this.forEach(e=>{if(e.remove)e.remove();else{const t=e.parentElement;t&&t.removeChild(e)}})}isContain(e){const t=this.elems[0],r=e.elems[0];return t.contains(r)}getNodeName(){return this.elems[0].nodeName}getNode(e=0){let t;return t=this.elems[e],t}find(e){return sr(this.elems[0].querySelectorAll(e))}text(e){return e?this.forEach((function(t){t.innerHTML=e})):this.elems[0].innerHTML.replace(/<[^>]+>/g,()=>"")}html(e){const t=this.elems[0];return e?(t.innerHTML=e,this):t.innerHTML}val(){return this.elems[0].value.trim()}focus(){return this.forEach(e=>{e.focus()})}prev(){return sr(this.elems[0].previousElementSibling)}next(){return sr(this.elems[0].nextElementSibling)}getNextSibling(){return sr(this.elems[0].nextSibling)}parent(){return sr(this.elems[0].parentElement)}parentUntil(e,t){const r=t||this.elems[0];if("BODY"===r.nodeName)return null;const i=r.parentElement;return null===i?null:i.matches(e)?sr(i):this.parentUntil(e,i)}parentUntilEditor(e,t,r){const i=r||this.elems[0];if(sr(i).equal(t.$textContainerElem)||sr(i).equal(t.$toolbarElem))return null;const a=i.parentElement;return null===a?null:a.matches(e)?sr(a):this.parentUntilEditor(e,t,a)}equal(e){return e instanceof or?this.elems[0]===e.elems[0]:e instanceof HTMLElement&&this.elems[0]===e}insertBefore(e){const t=sr(e).elems[0];return t?this.forEach(e=>{const r=t.parentNode;null==r||r.insertBefore(e,t)}):this}insertAfter(e){const t=sr(e).elems[0],r=t&&t.nextSibling;return t?this.forEach((function(e){const i=t.parentNode;r?i.insertBefore(e,r):i.appendChild(e)})):this}data(e,t){if(null==t)return this.dataSource.get(e);this.dataSource.set(e,t)}getNodeTop(e){if(this.length<1)return this;const t=this.parent();return e.$textElem.equal(this)||e.$textElem.equal(t)?this:(t.prior=this,t.getNodeTop(e))}getOffsetData(){const e=this.elems[0];return{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight,parent:e.offsetParent}}scrollTop(e){this.elems[0].scrollTo({top:e})}}function sr(...e){return new or(...e)}var lr=sr;function dr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cr=class{constructor(e){dr(this,"editor",void 0),dr(this,"$bar",void 0),dr(this,"$textContainer",void 0),dr(this,"isShow",void 0),dr(this,"time",void 0),dr(this,"timeoutId",void 0),this.editor=e,this.$textContainer=e.$textContainerElem,this.$bar=lr('
'),this.isShow=!1,this.time=0,this.timeoutId=0}show(e){if(this.isShow)return;this.isShow=!0;const t=this.$bar;this.$textContainer.append(t),Date.now()-this.time>100&&e<=1&&(t.css("width",100*e+"%"),this.time=Date.now());let r=this.timeoutId;r&&clearTimeout(r),this.timeoutId=window.setTimeout(()=>{this.hide()},500)}hide(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0}};function ur(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pr=class{constructor(e){ur(this,"editor",void 0),this.editor=e}insertImg(e,t,r){const i=this.editor,a=i.config,n=(e,t="validate.")=>i.i18next.t(t+e);let o=e.replace(//g,">");o=o.replace("'",'"');let s="";r&&(s=r.replace("'",'"'),s=`data-href='${encodeURIComponent(s)}' `);let l="";t&&(l=t.replace(//g,">"),l=l.replace("'",'"'),l=`alt='${l}' `),i.cmd.do("insertHTML",``),a.linkImgCallback(e,t,r);let d=document.createElement("img");d.onload=()=>{d=null},d.onerror=()=>{a.customAlert(n("插入图片错误"),"error",`wangEditor: ${n("插入图片错误")},${n("图片链接")} "${e}",${n("下载链接失败")}`),d=null},d.onabort=()=>d=null,d.src=e}uploadImg(e){if(!e.length)return;const t=this.editor,r=t.config,i=e=>t.i18next.t("validate."+e);let a=r.uploadImgServer;const n=r.uploadImgShowBase64,o=r.uploadImgMaxSize,s=o/1024/1024,l=r.uploadImgMaxLength,d=r.uploadFileName,c=r.uploadImgParams,u=r.uploadImgParamsWithUrl,p=r.uploadImgHeaders,h=r.uploadImgHooks,f=r.uploadImgTimeout,m=r.withCredentials,g=r.customUploadImg;if(!g&&!a&&!n)return;const b=[],y=[];if(Ht(e,e=>{if(!e)return;const r=e.name||e.type.replace("/","."),a=e.size;if(!r||!a)return;const n=t.config.uploadImgAccept.join("|");!1!==new RegExp(`.(${n})$`,"i").test(r)?ol)return void r.customAlert(i("一次最多上传")+l+i("张图片"),"warning");if(g&&"function"==typeof g)return void g(b,this.insertImg.bind(this));const v=new FormData;if(b.forEach((e,t)=>{let r=d||e.name;b.length>1&&(r+=t+1),v.append(r,e)}),a){const e=a.split("#");a=e[0];const n=e[1]||"";zt(c,(e,t)=>{u&&(a.indexOf("?")>0?a+="&":a+="?",a=a+e+"="+t),v.append(e,t)}),n&&(a+="#"+n);const o=rr(a,{timeout:f,formData:v,headers:p,withCredentials:!!m,beforeSend:e=>{if(h.before)return h.before(e,t,b)},onTimeout:e=>{r.customAlert(i("上传图片超时"),"error"),h.timeout&&h.timeout(e,t)},onProgress:(e,r)=>{const i=new cr(t);r.lengthComputable&&(e=r.loaded/r.total,i.show(e))},onError:e=>{r.customAlert(i("上传图片错误"),"error",`${i("上传图片错误")},${i("服务器返回状态")}: ${e.status}`),h.error&&h.error(e,t)},onFail:(e,a)=>{r.customAlert(i("上传图片失败"),"error",i("上传图片返回结果错误")+`,${i("返回结果")}: `+a),h.fail&&h.fail(e,t,a)},onSuccess:(e,a)=>{if(!h.customInsert)return"0"!=a.errno?(r.customAlert(i("上传图片失败"),"error",`${i("上传图片返回结果错误")},${i("返回结果")} errno=${a.errno}`),void(h.fail&&h.fail(e,t,a))):(a.data.forEach(e=>{"string"==typeof e?this.insertImg(e):this.insertImg(e.url,e.alt,e.href)}),void(h.success&&h.success(e,t,a)));h.customInsert(this.insertImg.bind(this),a,t)}});"string"==typeof o&&r.customAlert(o,"error")}else n&&Ht(e,e=>{const t=this,r=new FileReader;r.readAsDataURL(e),r.onload=function(){if(!this.result)return;const e=this.result.toString();t.insertImg(e,e)}})}};function hr(e,t){if(!function(e,t){var r;const i=(null===(r=t.clipboardData)||void 0===r?void 0:r.types)||[];for(let a=0;a{const i=t.type;/image/i.test(i)&&r.push(t.getAsFile())}),r):r}(e);if(!r.length)return;const i=t.config,a=tr(e,i.pasteFilterStyle,i.pasteIgnoreImg);a&&/^]*src=['"]([^'"]+)[^>]*>[\s\r\n]*$/g.test(a)||new pr(t).uploadImg(r)}var fr=function(e){e.txt.eventHooks.pasteEvents.unshift(t=>{hr(t,e)})};function mr(e,t,r,i,a){e.attr("style",`width:${t}px; height:${r}px; left:${i}px; top:${a}px;`)}function gr(e){const t=e.$textContainerElem;let r;const i=function(e,t){const r=lr('
\n
\n
\n
');return r.hide(),t.append(r),r}(0,t);function a(){t.find(".w-e-img-drag-mask").hide()}return function(e,t){e.on("click",(function(e){e.stopPropagation()})),e.on("mousedown",".w-e-img-drag-rb",i=>{if(i.preventDefault(),!r)return;const a=i.clientX,n=i.clientY,o=t.getBoundingClientRect(),s=r.getBoundingClientRect(),l=s.width,d=s.height,c=s.left-o.left,u=s.top-o.top,p=l/d;let h=l,f=d;const m=lr(document);function g(){m.off("mousemove",b),m.off("mouseup",y)}function b(t){t.stopPropagation(),t.preventDefault(),h=l+(t.clientX-a),f=d+(t.clientY-n),h/f!=p&&(f=h/p),h=parseFloat(h.toFixed(2)),f=parseFloat(f.toFixed(2)),e.find(".w-e-img-drag-show-size").text(`${h.toFixed(2).replace(".00","")}px * ${f.toFixed(2).replace(".00","")}px`),mr(e,h,f,c,u)}function y(){r.attr("width",h+""),r.attr("height",f+"");const t=r.getBoundingClientRect();mr(e,h,f,t.left-o.left,t.top-o.top),g()}m.on("mousemove",b),m.on("mouseup",y),m.on("mouseleave",g)})}(i,t),lr(document).on("click",a),e.beforeDestroy((function(){lr(document).off("click",a)})),{showDrag:function(e){if(Vt.isIE())return!1;e&&(r=e,function(e,t,r){const i=e.getBoundingClientRect(),a=r.getBoundingClientRect(),n=a.width.toFixed(2),o=a.height.toFixed(2);t.find(".w-e-img-drag-show-size").text(`${n}px * ${o}px`),mr(t,parseFloat(n),parseFloat(o),a.left-i.left,a.top-i.top),t.show()}(t,i,r))},hideDrag:a}}function br(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r("44f6");var yr=class{constructor(e,t,r){br(this,"$container",void 0),br(this,"$targetElem",void 0),br(this,"editor",void 0),br(this,"conf",void 0),br(this,"_show",void 0),br(this,"_isInsertTextContainer",void 0),this.editor=e,this.$targetElem=t,this.conf=r,this._show=!1,this._isInsertTextContainer=!1;const i=lr("
");i.addClass("w-e-tooltip"),this.$container=i}getPositionData(){const e=this.$container;let t=0,r=0;const i=document.documentElement.scrollTop,a=this.$targetElem.getBoundingClientRect(),n=this.editor.$textElem.getBoundingClientRect(),o=this.$targetElem.getOffsetData(),s=lr(o.parent),l=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=s.equal(this.editor.$textContainerElem),this._isInsertTextContainer){const i=s.getBoundingClientRect().height,{top:a,left:n,height:d}=o,c=a-l;c>25?(t=c-20-15,e.addClass("w-e-tooltip-up")):c+d+200?c:0)+20+10,e.addClass("w-e-tooltip-down")),r=n<0?0:n}else a.top<20||a.top-n.top<20?(t=a.bottom+i+5,e.addClass("w-e-tooltip-down")):(t=a.top+i-20-15,e.addClass("w-e-tooltip-up")),r=a.left<0?0:a.left;return{top:t,left:r}}appendMenus(){const e=this.conf,t=this.editor,r=this.$targetElem,i=this.$container;e.forEach((e,a)=>{const n=e.$elem,o=lr("
");o.addClass("w-e-tooltip-item-wrapper "),o.append(n),i.append(o),n.on("click",i=>{i.preventDefault(),e.onClick(t,r)&&this.remove()})})}create(){const e=this.editor,t=this.$container;this.appendMenus();const{top:r,left:i}=this.getPositionData();t.css("top",r+"px"),t.css("left",i+"px"),t.css("z-index",e.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(t):lr("body").append(t),this._show=!0,e.beforeDestroy(this.remove.bind(this)),e.txt.eventHooks.onBlurEvents.push(this.remove.bind(this))}remove(){this.$container.remove(),this._show=!1}get isShow(){return this._show}};const vr=(e,t)=>{let r=new(N.a.extend({render:r=>r("rc-image-preview",{ref:"preview",props:{src:e,previewSrcList:t}}),store:N.a.prototype.$store}));r.$mount();const i=r.$refs.preview;r.$nextTick(()=>{null==i||i.clickHandler()}),i.$watch("showViewer",(e,t)=>{t&&!e&&(r.$destroy(),r=void 0)})};function xr(e){const{showImgTooltip:t,hideImgTooltip:r}=function(e){let t;const r=(t,r="")=>e.i18next.t(r+t);return{showImgTooltip:function(i){const a=[{$elem:lr(""),onClick:(e,t)=>(e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("delete"),!0)},{$elem:lr("30%"),onClick:(e,t)=>(t.attr("width","30%"),t.removeAttr("height"),!0)},{$elem:lr("50%"),onClick:(e,t)=>(t.attr("width","50%"),t.removeAttr("height"),!0)},{$elem:lr("100%"),onClick:(e,t)=>(t.attr("width","100%"),t.removeAttr("height"),!0)}];a.push({$elem:lr(`${r("重置")}`),onClick:(e,t)=>(t.removeAttr("width"),t.removeAttr("height"),!0)}),i.attr("data-href")&&a.push({$elem:lr(`${r("查看链接")}`),onClick:(e,t)=>{let r=t.attr("data-href");return r&&(r=decodeURIComponent(r),window.open(r,"_target")),!0}}),a.push({$elem:lr(`${N.a.prototype.$_t("common.Preview")}`),onClick:(e,t)=>{let r=t.attr("src");if(r){const t=e.$textElem;r=decodeURIComponent(r);const i=[];t.find("IMG").forEach(e=>{const t=lr(e);if("IMG"===t.getNodeName()&&!t.elems[0].getAttribute("data-emoji")){let e=t.attr("src");e&&(e=decodeURIComponent(e),i.push(e))}}),0===i.length&&i.push(r),vr(r,i)}return!0}}),t=new yr(e,i,a),t.create()},hideImgTooltip:function(){t&&(t.remove(),t=null)}}}(e);e.txt.eventHooks.imgClickEvents.push(t),function(e){const t=e.$textContainerElem;function r(e){let r=null;const i=e.target,a=lr(i);if("IMG"!==a.getNodeName()||a.elems[0].getAttribute("data-emoji")||(e.stopPropagation(),r=a),!r)return;let n=r.attr("src");if(n){n=decodeURIComponent(n);const e=[];t.find("IMG").forEach(t=>{const r=lr(t);if("IMG"===r.getNodeName()&&!r.elems[0].getAttribute("data-emoji")){let t=r.attr("src");t&&(t=decodeURIComponent(t),e.push(t))}}),0===e.length&&e.push(n),vr(n,e)}}t.on("dblclick",r),e.beforeDestroy(()=>{t.off("dblclick",r)})}(e),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.imgDragBarMouseDownEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}var wr=function(e){fr(e),function(e){e.txt.eventHooks.dropEvents.push((function(t){const r=t.dataTransfer&&t.dataTransfer.files;r&&r.length&&new pr(e).uploadImg(r)}))}(e),function(e){const{showDrag:t,hideDrag:r}=gr(e);e.txt.eventHooks.imgClickEvents.push(t),e.txt.eventHooks.textScrollEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.changeEvents.push(r)}(e),xr(e),function(e){const{txt:t,selection:r}=e,{keydownEvents:i}=t.eventHooks;i.push((function(e){const t=r.getSelectionContainerElem(),i=r.getRange();if(!i||!t||8!==e.keyCode||!r.isSelectionEmpty())return;let{startContainer:a,startOffset:n}=i,o=null;if(0===n)for(;a!==t.elems[0]&&t.elems[0].contains(a)&&a.parentNode&&!o;){if(a.previousSibling){o=a.previousSibling;break}a=a.parentNode}else 3!==a.nodeType&&(o=a.childNodes[n-1]);if(!o)return;let s=o;for(;s.childNodes.length;)s=s.childNodes[s.childNodes.length-1];s instanceof HTMLElement&&"IMG"===s.tagName&&(s.remove(),e.preventDefault())}))}(e)},_r=function(e){const t=e.config,r=new pr(e),i=qt("up-trigger-id"),a=qt("up-file-id"),n=qt("input-link-url"),o=qt("input-link-url-alt"),s=qt("input-link-url-href"),l=qt("btn-link"),d=(t,r="menus.panelMenus.image.")=>e.i18next.t(r+t),c=1===t.uploadImgMaxLength?"":'multiple="multiple"',u=t.uploadImgAccept.map(e=>"image/"+e).join(","),p=(e,t,r)=>`
\n
\n \n
\n
\n \n
\n
`,h=[{selector:"#"+i,type:"click",fn:()=>{const e=t.uploadImgFromMedia;if(e&&"function"==typeof e)return e(),!0;const r=lr("#"+a).elems[0];if(!r)return!0;r.click()}},{selector:"#"+a,type:"change",fn:()=>{const e=lr("#"+a).elems[0];if(!e)return!0;const t=e.files;return null!=t&&t.length&&r.uploadImg(t),e&&(e.value=""),!0}}],f=[``];t.showLinkImgAlt&&f.push(`\n `),t.showLinkImgHref&&f.push(`\n `);const m=[{title:d("上传图片"),tpl:p("w-e-up-img-container","w-e-icon-upload2",""),events:h},{title:d("网络图片"),tpl:`
\n ${f.join("")}\n
\n \n
\n
`,events:[{selector:"#"+l,type:"click",fn:()=>{const e=lr("#"+n).val().trim();if(!e)return;let i,a;return t.showLinkImgAlt&&(i=lr("#"+o).val().trim()),t.showLinkImgHref&&(a=lr("#"+s).val().trim()),function(e,r,i){const a=t.linkImgCheck(e);return!0===a||("string"==typeof a&&t.customAlert(a,"error"),!1)}(e)?(r.insertImg(e,i,a),!0):void 0},bindEnter:!0}]}],g={width:300,height:0,tabs:[],onlyUploadConf:{$elem:lr(p("w-e-menu","w-e-icon-image","图片")),events:h}};return window.FileReader&&(t.uploadImgShowBase64||t.uploadImgServer||t.customUploadImg||t.uploadImgFromMedia)&&g.tabs.push(m[0]),t.showLinkImg&&(g.tabs.push(m[1]),g.onlyUploadConf=void 0),g};function Er(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{$:Cr,PanelMenu:Nr,Panel:Sr}=Ft.a;var Tr=class extends Nr{constructor(e){let t=Cr('
');const r=_r(e);r.onlyUploadConf&&(t=r.onlyUploadConf.$elem,r.onlyUploadConf.events.map(e=>{const r=e.type,i=e.fn||jt;t.on(r,e=>{e.stopPropagation(),i(e)})})),super(t,e),Er(this,"imgPanelConfig",void 0),this.imgPanelConfig=r,wr(e)}clickHandler(){this.imgPanelConfig.onlyUploadConf||this.createPanel()}createPanel(){const e=this.imgPanelConfig,t=new Sr(this,e);this.setPanel(t),t.create()}tryChangeActive(){}};function kr(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r("612f");const{$:Or}=Ft.a;var Ir=class{constructor(e){kr(this,"editor",void 0),this.editor=e}createAction(e,t){const r=this.editor,i=Or(r.selection.getSelectionContainerElem()),a=Or(i.elems[0]).parentUntilEditor("UL",r),n=Or(i.elems[0]).parentUntilEditor("OL",r);if(a||n)return;const o=this.createTableHtml(e,t);r.cmd.do("insertHTML",o)}createTableHtml(e,t){let r="",i="";for(let o=0;o":"";r=r+""+i+""}let a="",n="";for(let o=0;o';return a=`${n}`,`${a}`+r+"
"+Bt}};const{$:Dr}=Ft.a;function Ar(e){return e>0&&Number.isInteger(e)}const{$:Mr}=Ft.a;function Lr(e,t){for(;0!==e.children.length;)e.removeChild(e.children[0]);for(let r=0;r=i){const e=document.createElement("col");e.width=r,a.insertBefore(e,a.children[i])}else{for(let r=e;r{e.push(t)});0!==i[a].children.length;)i[a].removeChild(i[a].children[0]);const r="TH"!==Mr(e[0]).getNodeName()?document.createElement("td"):document.createElement("th");e.splice(t+1,0,r);for(let t=0;t=t&&t>=0&&r.removeChild(r.children[t]))}(e,t);const r=Rr(e),i=Array.prototype.slice.apply(r.children);for(let a=0;a{e.push(t)});0!==i[a].children.length;)i[a].removeChild(i[a].children[0]);e.splice(t,1);for(let t=0;t{e.appendChild(t)}),o.appendChild(e)}return a.splice(t,1,o),Lr(i,a),Mr(i.parentNode)}};function $r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const{$:Fr}=Ft.a;var jr=class{constructor(e){$r(this,"editor",void 0),this.editor=e}getRowNode(e){var t;let r=Fr(e).elems[0];return r.parentNode?(r=null===(t=Fr(r).parentUntil("TR",r))||void 0===t?void 0:t.elems[0],r):r}getCurrentRowIndex(e,t){let r=e.children[0];return"COLGROUP"===r.nodeName&&(r=e.children[e.children.length-1]),Array.from(r.children).findIndex(e=>e===t)}getCurrentColIndex(e){var t;const r="TD"===Fr(e).getNodeName()||"TH"===Fr(e).getNodeName()?e:null===(t=Fr(e).parentUntil("TD",e))||void 0===t?void 0:t.elems[0],i=Fr(r).parent();return Array.from(i.elems[0].children).findIndex(e=>e===r)}getTableHtml(e){var t;return`${Fr(e).html()}
`}};const{$:Br,Tooltip:Ur}=Ft.a;function Vr(e){const t=e.selection.getSelectionStartElem(),r=e.selection.getSelectionEndElem();return(null==t?void 0:t.elems[0])!==(null==r?void 0:r.elems[0])}function qr(e){const{showTableTooltip:t,hideTableTooltip:r}=function(e){let t;return{showTableTooltip:function(r){const i=new jr(e),a=(t,r="menus.panelMenus.table.")=>e.i18next.t(r+t),n=[{$elem:Br(`${a("删除表格")}`),onClick:(e,t)=>(e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",Bt),!0)},{$elem:Br(`${a("添加行")}`),onClick:(e,t)=>{if(Vr(e))return!0;const r=Br(e.selection.getSelectionStartElem()),a=i.getRowNode(r.elems[0]);if(!a)return!0;const n=Number(i.getCurrentRowIndex(t.elems[0],a)),o=i.getTableHtml(t.elems[0]);let s=i.getTableHtml(Pr.ProcessingRow(Br(o),n).elems[0]);return s=zr(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}},{$elem:Br(`${a("删除行")}`),onClick:(e,t)=>{if(Vr(e))return!0;const r=Br(e.selection.getSelectionStartElem()),a=i.getRowNode(r.elems[0]);if(!a)return!0;const n=Number(i.getCurrentRowIndex(t.elems[0],a)),o=i.getTableHtml(t.elems[0]),s=Hr(Pr.DeleteRow(Br(o),n)).children.length;let l="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),l=0===s?Bt:i.getTableHtml(Pr.DeleteRow(Br(o),n).elems[0]),l=zr(t,l),e.cmd.do("insertHTML",l),!0}},{$elem:Br(`${a("添加列")}`),onClick:(e,t)=>{if(Vr(e))return!0;const r=Br(e.selection.getSelectionStartElem()),a=i.getCurrentColIndex(r.elems[0]),n=i.getTableHtml(t.elems[0]);let o=i.getTableHtml(Pr.ProcessingCol(Br(n),a).elems[0]);return o=zr(t,o),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",o),!0}},{$elem:Br(`${a("删除列")}`),onClick:(e,t)=>{if(Vr(e))return!0;const r=Br(e.selection.getSelectionStartElem()),a=i.getCurrentColIndex(r.elems[0]),n=i.getTableHtml(t.elems[0]),o=Pr.DeleteCol(Br(n),a),s=Hr(o).children[0].children.length;let l="";return e.selection.createRangeByElem(t),e.selection.restoreSelection(),l=0===s?Bt:i.getTableHtml(o.elems[0]),l=zr(t,l),e.cmd.do("insertHTML",l),!0}},{$elem:Br(`${a("设置表头")}`),onClick:(e,t)=>{if(Vr(e))return!0;const r=Br(e.selection.getSelectionStartElem()),a=i.getRowNode(r.elems[0]);if(!a)return!0;let n=Number(i.getCurrentRowIndex(t.elems[0],a));0!==n&&(n=0);const o=i.getTableHtml(t.elems[0]);let s=i.getTableHtml(Pr.setTheHeader(Br(o),n,"th").elems[0]);return s=zr(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}},{$elem:Br(`${a("取消表头")}`),onClick:(e,t)=>{const r=Br(e.selection.getSelectionStartElem()),a=i.getRowNode(r.elems[0]);if(!a)return!0;let n=Number(i.getCurrentRowIndex(t.elems[0],a));0!==n&&(n=0);const o=i.getTableHtml(t.elems[0]);let s=i.getTableHtml(Pr.setTheHeader(Br(o),n,"td").elems[0]);return s=zr(t,s),e.selection.createRangeByElem(t),e.selection.restoreSelection(),e.cmd.do("insertHTML",s),!0}}];t=new Ur(e,r,n),t.create()},hideTableTooltip:function(){t&&(t.remove(),t=null)}}}(e);e.txt.eventHooks.tableClickEvents.push(t),e.txt.eventHooks.clickEvents.push(r),e.txt.eventHooks.keyupEvents.push(r),e.txt.eventHooks.toolbarClickEvents.push(r),e.txt.eventHooks.menuClickEvents.push(r),e.txt.eventHooks.textScrollEvents.push(r)}function zr(e,t){const r=e.elems[0].nextSibling;return r&&"
"!==r.innerHTML||(t+=""+Bt),t}function Hr(e){let t=e.elems[0].children[0];return"COLGROUP"===t.nodeName&&(t=e.elems[0].children[e.elems[0].children.length-1]),t}const{$:Gr}=Ft.a,{$:Wr}=Ft.a;function Qr(e){var t,r;if((null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0)<1)return null;const i={};let a=0;const n=[],o=function(){var t;const r=[],n=[];null==e||null===(t=e.children())||void 0===t||t.forEach(e=>{var t;("TR"===e.tagName&&n.push(e),["TBODY","THEAD","TFOOT"].includes(e.tagName))&&(null===(t=Wr(e).children())||void 0===t||t.forEach(e=>{"TR"===e.tagName&&n.push(e)}))});for(let e=0;e{const a=Wr(t),n=a.attr("rowSpan")?Number(a.attr("rowSpan")):1,o=a.attr("colSpan")?Number(a.attr("colSpan")):1,s=a.elems[0].offsetWidth;r[e][i]={rowspan:n,colspan:o,width:s}})}return r.forEach((function(e,t){e.forEach((function(e,n){e.pos=function(e,t,r){var n;let o=0,s=0;if(0!=r){const i=e[t][r-1];s=i.pos.x}for(let i=t;i>=0;i--){const a=e[i];for(let e=0;e=t&&(n.pos.x<=s||o==n.pos.x-n.colspan))&&(o+=n.colspan)}}return o+=e[t][r].colspan,(null===(n=i[o-1])||void 0===n?void 0:n.length)>0?i[o-1].push({colspan:e[t][r].colspan,width:e[t][r].width}):i[o-1]=[{colspan:e[t][r].colspan,width:e[t][r].width}],a{"COLGROUP"===e.tagName&&Wr(e).remove()});const s=document.createElement("colgroup");for(let p=0;p0){const t=i[p].sort((e,t)=>e.colspan-t.colspan)[0];e=t.width;for(let r=1;r0?""+e:"auto"),s.append(t)}const c=null==e?void 0:e.elems[0].children;var u;return c&&c.length>0&&(null===(u=c[0].parentNode)||void 0===u||u.insertBefore(s,c[0])),{realPos:o,colWidths:n}}const{$:Xr}=Ft.a;var Kr;function Yr(e){var t,r,i,a;let n=!1,o=0,s=0,l=null;const d=Xr("body");let c;var u;c=null===(t=N.a.prototype.$xpc)||void 0===t?void 0:t.throttle,N.a.prototype.$platType===Kr.mobile&&(c=null===(u=N.a.prototype.$xmobile)||void 0===u?void 0:u.throttle);let p=null,h=null;const f=null===(r=c)||void 0===r?void 0:r((function(e){const t=e.target;if(null==t)return;if("TH"!==t.tagName&&"TD"!==t.tagName)return;const{left:r,width:i,top:a,height:o}=t.getBoundingClientRect(),{clientX:s,clientY:d}=e;n||(s>r+i-5&&sa&&d{var t,r;const i=e.target;if("TH"!==i.tagName&&"TD"!==i.tagName)return;if("col-resize"!==i.style.cursor)return;i.style.cursor="auto",rt.isNull(l)&&(l=i),e.preventDefault(),n=!0;const{clientX:a}=e;o=a,d.on("mousemove",b),d.on("mouseup",g),p=Xr(i).parentUntil("table");const c=Qr(p);var u;null==(u=p)||u.attr("width","auto"),h=null==c?void 0:c.realPos;const f=null!==(t=null==c?void 0:c.colWidths)&&void 0!==t?t:[],m=y(Xr(l));s=null!==(r=f[m-1])&&void 0!==r?r:0},g=e=>{n=!1,l=null,d.off("mousemove",b),d.off("mouseup",g),Qr(p),function(e){const t=null==e?void 0:e.parent();if(t){const r=null==e?void 0:e.elems[0].offsetWidth,i=t.elems[0].clientWidth,a=function(e){try{const t=window.getComputedStyle(null==e?void 0:e.elems[0]),r=parseInt(t.paddingLeft),i=parseInt(t.paddingRight);return r+i}catch(e){return 0}}(t);if(r&&r>0&&i-a>0){const t=r/(i-a)*100;null==e||e.attr("width",t+"%")}}}(p),p=null,h=null},b=null===(i=c)||void 0===i?void 0:i(e=>{if(!n)return;if(null==l)return;e.preventDefault();const{clientX:t}=e;let r=s+(t-o);r=Math.floor(100*r)/100,r<30&&(r=30);const i=y(Xr(l));if(i>=0){var a,d,c;let e;null===(a=p)||void 0===a||null===(d=a.children())||void 0===d||d.forEach(t=>{e||"COLGROUP"!==t.tagName||(e=Xr(t))});const t=null===(c=e)||void 0===c?void 0:c.find(`col:nth-child(${i})`);null==t||t.forEach(e=>{e.setAttribute("width",""+r)})}},100);function y(e){var t,r,i;if(!e)return-1;const a=e.parent(),n=Number(null==a?void 0:a.elems[0].rowIndex),o=Number(null==e?void 0:e.elems[0].cellIndex),s=null===(t=h)||void 0===t||null===(r=t[n][o])||void 0===r?void 0:r.pos;return null!==(i=null==s?void 0:s.x)&&void 0!==i?i:-1}null===(a=e.$textElem)||void 0===a||a.on("mousemove",f),d.on("mousedown",m),e.beforeDestroy(()=>{var t;null===(t=e.$textElem)||void 0===t||t.off("mousemove",f),d.off("mousedown",m)})}!function(e){e[e.pc=1]="pc",e[e.mobile=2]="mobile"}(Kr||(Kr={}));var Jr=function(e){qr(e),function(e){const{txt:t,selection:r}=e,{keydownEvents:i}=t.eventHooks;i.push((function(t){e.selection.saveRange();const i=r.getSelectionContainerElem();if(i){const a=i.getNodeTop(e),n=a.length&&a.prev().length?a.prev():null;if(n&&"TABLE"===n.getNodeName()&&r.isSelectionEmpty()&&0===r.getCursorPos()&&8===t.keyCode){const r=a.next();!!r.length&&function(e){if(!e.length)return!1;const t=e.elems[0];return"P"===t.nodeName&&"
"===t.innerHTML}(a)&&(a.remove(),e.selection.setRangeToElem(r.elems[0])),t.preventDefault()}}}))}(e),function(e){e.txt.eventHooks.tableClickEvents.push((function(t,r){if(r.detail>=3){const r=window.getSelection();if(r){const{focusNode:i,anchorNode:a}=r,n=Gr(null==a?void 0:a.parentElement);if(!t.isContain(Gr(i))){const t="TD"===n.elems[0].tagName?n:n.parentUntilEditor("td",e);if(t){const r=e.selection.getRange();null==r||r.setEnd(t.elems[0],t.elems[0].childNodes.length),e.selection.restoreSelection()}}}}}))}(e),Yr(e)};const{$:Zr,PanelMenu:ei,Panel:ti}=Ft.a;var ri=class extends ei{constructor(e){super(Zr('
'),e),Jr(e)}clickHandler(){this.createPanel()}createPanel(){const e=function(e){const t=new Ir(e),r=qt("w-col-id"),i=qt("w-row-id"),a=qt("btn-link"),n="menus.panelMenus.table.",o=t=>e.i18next.t(t),s=[{title:o(n+"插入表格"),tpl:`
\n
\n ${o("创建")}\n \n ${o(n+"行")}\n \n ${o(n+"列")+o(n+"的")+o(n+"表格")}\n
\n
\n \n
\n
`,events:[{selector:"#"+a,type:"click",fn:()=>{const a=Number(Dr("#"+r).val()),n=Number(Dr("#"+i).val());return Ar(n)&&Ar(a)?(t.createAction(n,a),!0):(e.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],l={width:330,height:0,tabs:[]};return l.tabs.push(s[0]),l}(this.editor);new ti(this,e).create()}tryChangeActive(){}};const ii={"重置":"htmlEditor.reset","插入":"htmlEditor.insert","默认":"htmlEditor.default","创建":"htmlEditor.create","修改":"htmlEditor.edit","如":"htmlEditor.like","请输入正文":"htmlEditor.enterText","查看链接":"htmlEditor.menus.panelMenus.link.viewLinks","menus.title.标题":"htmlEditor.menus.title.head","menus.title.加粗":"htmlEditor.menus.title.bold","menus.title.字号":"htmlEditor.menus.title.fontSize","menus.title.字体":"htmlEditor.menus.title.fontFamily","menus.title.斜体":"htmlEditor.menus.title.italic","menus.title.下划线":"htmlEditor.menus.title.underline","menus.title.删除线":"htmlEditor.menus.title.strikethrough","menus.title.缩进":"htmlEditor.menus.title.indent","menus.title.行高":"htmlEditor.menus.title.lineHeight","menus.title.文字颜色":"htmlEditor.menus.title.fontColor","menus.title.背景色":"htmlEditor.menus.title.background","menus.title.链接":"htmlEditor.menus.title.link","menus.title.序列":"htmlEditor.menus.title.numberedList","menus.title.对齐":"htmlEditor.menus.title.align","menus.title.引用":"htmlEditor.menus.title.quote","menus.title.表情":"htmlEditor.menus.title.emoticons","menus.title.图片":"htmlEditor.menus.title.image","menus.title.视频":"htmlEditor.menus.title.media","menus.title.表格":"htmlEditor.menus.title.table","menus.title.代码":"htmlEditor.menus.title.code","menus.title.分割线":"htmlEditor.menus.title.splitLine","menus.title.恢复":"htmlEditor.menus.title.redo","menus.title.撤销":"htmlEditor.menus.title.undo","menus.title.全屏":"htmlEditor.menus.title.fullscreen","menus.title.取消全屏":"htmlEditor.menus.title.cancelFullscreen","menus.title.待办事项":"htmlEditor.menus.title.todo","menus.dropListMenu.设置标题":"htmlEditor.menus.dropListMenu.title","menus.dropListMenu.背景颜色":"htmlEditor.menus.dropListMenu.background","menus.dropListMenu.文字颜色":"htmlEditor.menus.dropListMenu.fontColor","menus.dropListMenu.设置字号":"htmlEditor.menus.dropListMenu.fontSize","menus.dropListMenu.设置字体":"htmlEditor.menus.dropListMenu.fontFamily","menus.dropListMenu.设置缩进":"htmlEditor.menus.dropListMenu.indent","menus.dropListMenu.对齐方式":"htmlEditor.menus.dropListMenu.align","menus.dropListMenu.设置行高":"htmlEditor.menus.dropListMenu.lineHeight","menus.dropListMenu.序列":"htmlEditor.menus.dropListMenu.list","menus.dropListMenu.head.正文":"htmlEditor.menus.dropListMenu.head.text","menus.dropListMenu.indent.增加缩进":"htmlEditor.menus.dropListMenu.indent.indent","menus.dropListMenu.indent.减少缩进":"htmlEditor.menus.dropListMenu.indent.outdent","menus.dropListMenu.justify.靠左":"htmlEditor.menus.dropListMenu.justify.left","menus.dropListMenu.justify.居中":"htmlEditor.menus.dropListMenu.justify.center","menus.dropListMenu.justify.靠右":"htmlEditor.menus.dropListMenu.justify.right","menus.dropListMenu.justify.两端":"htmlEditor.menus.dropListMenu.justify.justify","menus.dropListMenu.list.无序列表":"htmlEditor.menus.dropListMenu.list.unordered","menus.dropListMenu.list.有序列表":"htmlEditor.menus.dropListMenu.list.ordered","menus.panelMenus.emoticon.表情":"htmlEditor.menus.panelMenus.emoticon.emoji","menus.panelMenus.emoticon.手势":"htmlEditor.menus.panelMenus.emoticon.gesture","menus.panelMenus.image.上传图片":"htmlEditor.menus.panelMenus.image.uploadImage","menus.panelMenus.image.网络图片":"htmlEditor.menus.panelMenus.image.networkImage","menus.panelMenus.image.图片地址":"htmlEditor.menus.panelMenus.image.imageLink","menus.panelMenus.image.图片文字说明":"htmlEditor.menus.panelMenus.image.imageAlt","menus.panelMenus.image.跳转链接":"htmlEditor.menus.panelMenus.image.hyperlink","menus.panelMenus.link.链接":"htmlEditor.menus.panelMenus.link.link","menus.panelMenus.link.链接文字":"htmlEditor.menus.panelMenus.link.linkText","menus.panelMenus.link.取消链接":"htmlEditor.menus.panelMenus.link.unlink","menus.panelMenus.link.查看链接":"htmlEditor.menus.panelMenus.link.viewLinks","menus.panelMenus.video.插入视频":"htmlEditor.menus.panelMenus.video.insertVideo","menus.panelMenus.video.上传视频":"htmlEditor.menus.panelMenus.video.uploadLocalVideo","menus.panelMenus.table.行":"htmlEditor.menus.panelMenus.table.rows","menus.panelMenus.table.列":"htmlEditor.menus.panelMenus.table.columns","menus.panelMenus.table.的":"htmlEditor.menus.panelMenus.table.de","menus.panelMenus.table.表格":"htmlEditor.menus.panelMenus.table.table","menus.panelMenus.table.宽度撑满":"htmlEditor.menus.panelMenus.table.100%","menus.panelMenus.table.宽度默认":"htmlEditor.menus.panelMenus.table.auto","menus.panelMenus.table.添加行":"htmlEditor.menus.panelMenus.table.insertRow","menus.panelMenus.table.删除行":"htmlEditor.menus.panelMenus.table.deleteRow","menus.panelMenus.table.添加列":"htmlEditor.menus.panelMenus.table.insertColumn","menus.panelMenus.table.删除列":"htmlEditor.menus.panelMenus.table.deleteColumn","menus.panelMenus.table.设置表头":"htmlEditor.menus.panelMenus.table.setHeader","menus.panelMenus.table.取消表头":"htmlEditor.menus.panelMenus.table.cancelHeader","menus.panelMenus.table.插入表格":"htmlEditor.menus.panelMenus.table.insertTable","menus.panelMenus.table.删除表格":"htmlEditor.menus.panelMenus.table.deleteTable","menus.panelMenus.code.删除代码":"htmlEditor.menus.panelMenus.code.deleteCode","menus.panelMenus.code.修改代码":"htmlEditor.menus.panelMenus.code.editCode","menus.panelMenus.code.插入代码":"htmlEditor.menus.panelMenus.code.insertCode","validate.张图片":"htmlEditor.validate.images","validate.大于":"htmlEditor.validate.greaterThan","validate.图片链接":"htmlEditor.validate.imageLink","validate.不是图片":"htmlEditor.validate.notImage","validate.返回结果":"htmlEditor.validate.results","validate.上传图片超时":"htmlEditor.validate.uploadImageTimeout","validate.上传图片错误":"htmlEditor.validate.uploadImageError","validate.上传图片失败":"htmlEditor.validate.uploadImageFailed","validate.插入图片错误":"htmlEditor.validate.insertImageError","validate.一次最多上传":"htmlEditor.validate.onceMost","validate.下载链接失败":"htmlEditor.validate.downloadLinkFailed","validate.图片验证未通过":"htmlEditor.validate.imageValidateFailed","validate.服务器返回状态":"htmlEditor.validate.serverStatus","validate.上传图片返回结果错误":"htmlEditor.validate.uploadImageResultsError","validate.请替换为支持的图片类型":"htmlEditor.validate.supportedImageType","validate.您插入的网络图片无法识别":"htmlEditor.validate.pictureNotRecognized","validate.您刚才插入的图片链接未通过编辑器校验":"htmlEditor.validate.imageLinkNotVerification","validate.插入视频错误":"htmlEditor.validate.insertVideoError","validate.视频链接":"htmlEditor.validate.videoLink","validate.不是视频":"htmlEditor.validate.notVideo","validate.视频验证未通过":"htmlEditor.validate.videoValidateFailed","validate.个视频":"htmlEditor.validate.videos","validate.上传视频超时":"htmlEditor.validate.uploadVideoTimeout","validate.上传视频错误":"htmlEditor.validate.uploadVideoError","validate.上传视频失败":"htmlEditor.validate.uploadVideoFailed","validate.上传视频返回结果错误":"htmlEditor.validate.uploadVideoResultsError"};var ai=r("5e38");const ni={...Object(ai.getDefaultWhiteList)(),"history-email":[],"custom-evaluation":[]},oi={whiteList:ni,onIgnoreTagAttr:(e,t,r,i)=>{if(ni[e]&&(["style","class"].includes(t)||null!=t&&t.startsWith("data-")))return`${t}="${r}"`}},si=new ai.FilterXSS(oi);var li={name:"RtSaasEditor",props:{value:String,config:{type:Object},refname:{type:String},readonly:{type:Boolean,default:!1},isText:{type:Boolean,default:!1},menus:{type:Array},boundField:{type:String,default:""},disableLink:Boolean,height:{type:Number,default:300}},data:()=>({editor:null,content:"",editorId:"editContent_"+parseInt(1e3*Math.random()),uploadImgServer:rt.getBaseUrl()+"api/attachment/upload",isInitialLoad:!0,defaultFontName:"",changeCount:0}),computed:{editorStyle(){const e={};return this.defaultFontName&&this.changeCount>1&&(e["font-family"]=this.defaultFontName),e}},watch:{readonly:function(e){e?this.disabledEditor():this.enableEditor()},value(e){this.boundField&&e!==this.content&&this.setUEContent(e)}},mounted(){this.isInitialLoad=!0,this.editor=new Ft.a("#"+this.editorId),this.editor.menus.extend("image",Tr),this.editor.menus.extend("table",ri);const e=rt.isNull(this.menus)?["head","bold","fontSize","fontName","italic","underline","strikeThrough","foreColor","backColor",this.disableLink?null:"link","list","justify","quote","emoticon","image","table","undo","redo"]:this.menus;this.editor.config.menus=e,this.defaultFontName=this.getDefaultFontName();const t=this.getEditorFontNames();var r;this.editor.config.fontNames=t,this.editor.i18next=(r=this.$_t,{init(){},t:e=>{const t=ii[e],i=e.split(".");let a=i[i.length-1];return"htmlEditor.menus.panelMenus.table.de"===t&&(a=" "),t?r(t,a):a}}),this.editor.config.showFullScreen=!1,this.height&&(this.editor.config.height=this.height),this.editor.config.menuTooltipPosition="down",this.editor.config.uploadImgShowBase64=!0,this.editor.config.uploadImgServer=this.uploadImgServer,this.editor.config.uploadImgHeaders={Authorization:window.rtconfig.isLocalAuthen?"Bearer "+this.$store.state.auth.accessToken:"Bearer "+this.$keycloak.token},this.editor.config.uploadImgParams={ModuleType:"annotation",FileId:"",FileName:rt.newGuid()+"_annotation",ObjectId:"",ObjectTypeName:"editor"},this.editor.config.onchange=this.handleOnChange,this.editor.config.uploadImgHooks={before:function(e,t,r){},success:function(e,t,r){},fail:function(e,t,r){rt.showErrorToast(this.$_t("platform.editorError","插入图片失败!"))},error:function(e,t){rt.showErrorToast(this.$_t("platform.editorError","插入图片失败!"))},timeout:function(e,t){rt.showErrorToast(this.$_t("platform.editorError","插入图片失败!"))},customInsert:function(e,t,r){t.Data.forEach(t=>{var r=rt.getBaseUrl()+"api/attachment/download/editor/"+t;e(r)})}},this.editor.create(),this.readonly&&this.disabledEditor(),this.$nextTick(()=>{document.querySelector(`#${this.editorId} .w-e-toolbar`)&&(document.querySelector(`#${this.editorId} .w-e-toolbar`).style["z-index"]=[1]),document.querySelector(`#${this.editorId} .w-e-text-container`)&&(document.querySelector(`#${this.editorId} .w-e-text-container`).style["z-index"]=[0])}),this.setUEContent(this.value)},beforeDestroy(){this.editor.destroy(),this.editor=null},methods:{handleOnChange(e){e=si.process(e),e=this.innerStyleHandler(e),e=this.resetTagAttributes(e,"table",{border:"1",cellpadding:"0",cellspacing:"0",style:{"border-top":"1px solid rgb(204, 204, 204)","border-left":"1px solid rgb(204, 204, 204)"}}),e=this.resetTagAttributes(e,"th",{style:{"border-bottom":"2px solid rgb(204, 204, 204)","background-color":"rgb(241, 241, 241)","min-height":"30px",padding:"3px 5px","border-right":"1px solid rgb(204, 204, 204)",height:"30px"}}),e=this.resetTagAttributes(e,"td",{style:{"border-bottom":"1px solid rgb(204, 204, 204)","border-right":"1px solid rgb(204, 204, 204)",padding:"3px 5px","min-height":"30px",height:"30px"}}),this.disableLink&&(e=this.resetTagAttributes(e,"a",{href:""})),this.content=e,this.boundField?(this.isInitialLoad||(window.formDataChanged=!0,this.$emit("input",e),this.$emit("change",e)),this.isInitialLoad=!1):(this.$emit("input",e),this.$emit("change",e)),this.changeCount++},resetTagAttributes(e,t,r,i=!1){if(!e)return e;let a=new RegExp(`<${t}([^>]*)>`,"gim");return e.replace(a,(e,a)=>{let n="";const o={...r||{}};for(const[t,l]of Object.entries(r))if("style"===t){const e={...l||{}};a=a.replace(/ style="(.*?)"/gim,(t,r)=>{let a=r||"";for(const n in l)i&&a.includes(n+":")?delete e[n]:a=a.replace(new RegExp(n+":.*?;","gim"),"");return n=a,""});for(const[t,r]of Object.entries(e))n+=`${t}:${r};`;delete o.style}else i&&a.includes(t+"=")?delete o[t]:a=a.replace(new RegExp(` ${t}=".*?"`,"gim"),"");let s="";for(const[t,r]of Object.entries(o))s+=` ${t}="${r}"`;return`<${t}${s} style="${n}"${a}>`})},innerStyleHandler(e){return this.defaultFontName?(["p","a","div","table","ul","ol","h1","h2","h3","h4","h5","h6"].forEach(t=>{e=this.resetTagAttributes(e,t,{style:{"font-family":this.defaultFontName}},!0)}),e):e},getDefaultFontName(){try{var e;const t=null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.RichTextFont,r=JSON.parse(t);if(!Array.isArray(r)||r.length<=0)return"";const i=r.filter(e=>e.default);return i.length<=0?"":i.map(e=>null==e?void 0:e.value).join(",")}catch(e){return""}},getEditorFontNames(){var e;const t=null===(e=this.$store.state.systemparameter)||void 0===e?void 0:e.RichTextFont,r=["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"];try{const e=JSON.parse(t);if(!Array.isArray(e)||e.length<=0)return r;const i=[...e];return r.forEach(t=>{e.some(e=>e===t||(null==e?void 0:e.value)===t)||i.push(t)}),i}catch(e){return r}},disabledEditor(){this.editor.disable()},enableEditor(){this.editor.enable()},getUEContent(){return si.process(this.content)},setUEContent(e){const t=si.process(e);this.editor.txt.html(t),this.editor.cmd.do("insertHTML","")},activeUEDom(){this.editor.cmd.do("insertHTML","")}}},di=(r("89a5"),Object(_.a)(li,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"editFormSass"},[t("div",{staticClass:"plat-saas-edit",class:{readonly:this.readonly},style:this.editorStyle,attrs:{id:this.editorId}})])}),[],!1,null,"5fb86138",null).exports);function ci(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let ui=class extends N.a{constructor(...e){super(...e),ci(this,"value",void 0),ci(this,"clearable",void 0),ci(this,"multiple",void 0),ci(this,"placeholder",void 0),ci(this,"disabled",void 0),ci(this,"requestUrl",void 0),ci(this,"isConditionFilter",void 0),ci(this,"size",void 0),ci(this,"returnManyToMany",void 0),ci(this,"options",void 0),ci(this,"deduplication",void 0),ci(this,"selectedValue",null),ci(this,"selectOption",[])}handlerValue(e,t){e&&this.selectOption.length>0?this.selectedValue=e:this.selectedValue=""}mounted(){}loadEntities(){if(this.options&&this.options.length>0){let e=this.changeOptions(this.options);return Promise.resolve(e)}{let e=this.requestUrl;return"api/meta/Entities/GetEntities"===e&&this.returnManyToMany&&(e=e+"?returnmanytomany="+this.returnManyToMany),rt.get(e).then(e=>{let t=this.changeOptions(e);return this.$emit("sendList"),t})}}entityOptions(e){const t=new Set;return Array.isArray(e)?e.filter(e=>{const r=e.LogicalName||e.logicalname;return!r||!t.has(r)&&(t.add(r),!0)}):[]}changeOptions(e){return this.selectOption=this.deduplication?this.entityOptions(e):e,null!=this.value&&(this.selectedValue=this.value),this.selectOption.map(e=>({Text:(e.Label_EntityName?e.Label_EntityName+"--":"")+e.LogicalName,Value:e.LogicalName}))}handleChange(){var e,t;this.selectOption.forEach(r=>{r.LogicalName==this.selectedValue&&(e=r.Label_EntityName,t=r.isManyToMany)}),this.$emit("callback",{logicalname:this.selectedValue,displayname:e,isManyToMany:t}),this.$emit("input",this.selectedValue),this.$emit("change",this.selectedValue)}};Object(J.__decorate)([Object(te.d)()],ui.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],ui.prototype,"clearable",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ui.prototype,"multiple",void 0),Object(J.__decorate)([Object(te.d)({default:function(){return this.$_t("common.select","请选择")}})],ui.prototype,"placeholder",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ui.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)({default:"api/meta/Entities/GetEntities"})],ui.prototype,"requestUrl",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ui.prototype,"isConditionFilter",void 0),Object(J.__decorate)([Object(te.d)()],ui.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ui.prototype,"returnManyToMany",void 0),Object(J.__decorate)([Object(te.d)({default:()=>[]})],ui.prototype,"options",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],ui.prototype,"deduplication",void 0),Object(J.__decorate)([Object(te.g)("value")],ui.prototype,"handlerValue",null),ui=Object(J.__decorate)([Object(te.a)({name:"RtSaasEntities"})],ui);var pi=ui,hi=(r("2b2f"),Object(_.a)(pi,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-picklist",{staticClass:"plat-picklist-entities",attrs:{id:"rtSaasEntities",fetch:e.loadEntities,placeholder:e.disabled?e.$_t("lable.nodata","暂无"):e.placeholder,clearable:e.clearable,filterable:!0,disabled:e.disabled,size:e.size,multiple:e.multiple,"reserve-keyword":"","word-break":"break-word"},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"6a506674",null).exports);function fi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let mi=class extends N.a{constructor(...e){super(...e),fi(this,"value",void 0),fi(this,"clearable",void 0),fi(this,"multiple",void 0),fi(this,"placeholder",void 0),fi(this,"disabled",void 0),fi(this,"requestUrl",void 0),fi(this,"isConditionFilter",void 0),fi(this,"size",void 0),fi(this,"returnManyToMany",void 0),fi(this,"options",void 0),fi(this,"preferredRelationshipName",void 0),fi(this,"preferredReferencingAttributeLogicalName",void 0),fi(this,"selectedValue",null),fi(this,"selectOption",[])}handlerValue(e,t){const r=this.selectOption||[];if(e&&r.length>0){const t=r.find(e=>e.ValueKey===this.selectedValue);if(t&&t.LogicalName===e)return;this.selectedValue=e}else this.selectedValue=""}mounted(){}loadEntities(){if(this.options&&this.options.length>0){let e=this.changeOptions(this.options);return Promise.resolve(e)}{let e=this.requestUrl;return"api/meta/Entities/GetEntities"===e&&this.returnManyToMany&&(e=e+"?returnmanytomany="+this.returnManyToMany),rt.get(e).then(e=>{let t=this.changeOptions(e);return this.$emit("sendList"),t})}}changeOptions(e){this.selectOption=e;const t={};e.forEach((e,r)=>{void 0===t[e.LogicalName]&&(t[e.LogicalName]=r)});const r=e.map((e,r)=>{const i=t[e.LogicalName]===r,a=e.ValueKey||e.LogicalName+"_"+(e.ReferencingAttributeLogicalName||""),n=i?e.LogicalName:a;return{Text:(e.Label_EntityName?e.Label_EntityName:"")+(e.Label_EntityName?"--":"")+e.LogicalName,Value:n}});if(null!=this.value){const t=String(this.value);let i=null;if(this.preferredRelationshipName&&(i=e.find(e=>e.LogicalName===t&&e.RelationshipName===this.preferredRelationshipName)),!i&&this.preferredReferencingAttributeLogicalName&&(i=e.find(e=>e.LogicalName===t&&e.ReferencingAttributeLogicalName===this.preferredReferencingAttributeLogicalName)),i){const a=e.indexOf(i);this.selectedValue=a>-1&&r[a]&&r[a].Value||t}else this.selectedValue=t}else this.selectedValue="";return r}handleChange(){let e;const t=this.selectedValue;let r=null,i=t;"string"==typeof t&&t&&(r=this.selectOption.find(e=>e.ValueKey===t),r?(i=r.LogicalName,e=r.Label_EntityName):(r=this.selectOption.find(e=>e.LogicalName===t),r&&(e=r.Label_EntityName))),this.$emit("callback",{logicalname:i,displayname:e,currentOption:r})}};Object(J.__decorate)([Object(te.d)()],mi.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],mi.prototype,"clearable",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],mi.prototype,"multiple",void 0),Object(J.__decorate)([Object(te.d)({default:function(){return this.$_t("common.select","请选择")}})],mi.prototype,"placeholder",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],mi.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)({default:"api/meta/Entities/GetEntities"})],mi.prototype,"requestUrl",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],mi.prototype,"isConditionFilter",void 0),Object(J.__decorate)([Object(te.d)()],mi.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],mi.prototype,"returnManyToMany",void 0),Object(J.__decorate)([Object(te.d)({default:()=>[]})],mi.prototype,"options",void 0),Object(J.__decorate)([Object(te.d)()],mi.prototype,"preferredRelationshipName",void 0),Object(J.__decorate)([Object(te.d)()],mi.prototype,"preferredReferencingAttributeLogicalName",void 0),Object(J.__decorate)([Object(te.g)("value")],mi.prototype,"handlerValue",null),mi=Object(J.__decorate)([Object(te.a)({name:"RtSaasSubEntities"})],mi);var gi=mi,bi=(r("80d8"),Object(_.a)(gi,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-picklist",{staticClass:"plat-picklist-entities",attrs:{id:"rtSaasEntities",fetch:e.loadEntities,placeholder:e.disabled?e.$_t("lable.nodata","暂无"):e.placeholder,clearable:e.clearable,filterable:!0,disabled:e.disabled,size:e.size,multiple:e.multiple,"reserve-keyword":"","word-break":"break-word"},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"76551bb2",null).exports);function yi(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let vi=class extends N.a{constructor(...e){super(...e),yi(this,"value",void 0),yi(this,"multiple",void 0),yi(this,"placeholder",void 0),yi(this,"disabled",void 0),yi(this,"requestUrl",void 0),yi(this,"size",void 0),yi(this,"logicalName",void 0),yi(this,"displayName",void 0),yi(this,"returnManyToMany",void 0),yi(this,"selectedValue",null),yi(this,"suggestions",[]),yi(this,"isSelectedValue",!1)}handlerValue(e,t){e?this.selectedValue||this.updateDefaultValue():this.selectedValue=null}mounted(){this.updateDefaultValue()}async querySearch(e,t){const r={pageIndex:1,pageSize:1e4,queryValue:e+""};e?(await this.loadEntities(r),this.suggestions=this.suggestions.map(e=>({displayName:e.DisplayName+"--"+e.LogicalName,logicalName:e.LogicalName})),t(this.suggestions)):t(null,[])}updateDefaultValue(){if(!this.multiple&&this.logicalName){let e=this.displayName||this.logicalName;this.$route.query&&this.$route.query.displayname&&(e=this.$route.query.displayname+"--"+this.logicalName),this.selectedValue={logicalName:this.logicalName,displayName:e}}}handlerSelect(e){if(!e)return this.selectedValue=null,this.$emit("callback",null),this.$emit("input",null),void this.$emit("change",null);if(this.multiple){this.selectedValue=e.map(e=>({logicalName:e.logicalName,displayName:e.displayName,isManyToMany:e.IsManyToManyRelationship}));const t=Array.isArray(this.selectedValue)?this.selectedValue.map(e=>e.logicalName):[];this.$emit("callback",this.selectedValue),this.$emit("input",t),this.$emit("change",t)}else this.isSelectedValue=!0,this.selectedValue={logicalName:e.logicalName,displayName:e.displayName,isManyToMany:e.data.IsManyToManyRelationship},this.$emit("callback",this.selectedValue),this.$emit("input",e.logicalName),this.$emit("change",e.logicalName)}loadEntities(e){let t=this.requestUrl;const r={pageIndex:e.pageIndex,pageSize:e.pageSize,name:e.queryValue};return"api/Meta/Entities/Query"===t&&this.returnManyToMany&&(t=t+"?needManyToMany="+this.returnManyToMany),rt.get(t,r).then(e=>(this.$emit("sendList"),e.Data.map(e=>(e.displayName=e.DisplayName+"-"+e.LogicalName,e.logicalName=e.LogicalName,e)),this.suggestions=e?e.Data:[],e?{data:e.Data,total:e.TotalRecordCount}:[]))}};Object(J.__decorate)([Object(te.d)()],vi.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],vi.prototype,"multiple",void 0),Object(J.__decorate)([Object(te.d)({default:function(){return this.$_t("common.select","请选择")}})],vi.prototype,"placeholder",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],vi.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)({default:"api/Meta/Entities/Query"})],vi.prototype,"requestUrl",void 0),Object(J.__decorate)([Object(te.d)()],vi.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)()],vi.prototype,"logicalName",void 0),Object(J.__decorate)([Object(te.d)()],vi.prototype,"displayName",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],vi.prototype,"returnManyToMany",void 0),Object(J.__decorate)([Object(te.g)("value")],vi.prototype,"handlerValue",null),vi=Object(J.__decorate)([Object(te.a)({name:"RtSaasEntitiesLookup"})],vi);var xi=vi,wi=(r("492e"),Object(_.a)(xi,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-lookup",{staticClass:"plat-picklist-entities-lookup",attrs:{fetch:e.loadEntities,multiple:e.multiple,placeholder:e.placeholder,disabled:e.disabled,size:e.size,max:!0,"display-fields":[{prop:"displayName",label:e.$_t("new_autonumber.new_name","实体名称")}],alias:{id:"logicalName",name:"displayName"},"fetch-suggestions":e.querySearch},on:{input:e.handlerSelect},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"06c550ca",null).exports);function _i(e,t,r={}){if("function"!=typeof e)throw new TypeError("Expected a function");const i={},a=new Map;return function(...n){let o;if(o="function"==typeof t?t.apply(this,n):JSON.stringify([t,...n]),i.hasOwnProperty(o))return i[o];function s(){const e=r.expireTime;"Number"===rt.getRawType(e)&&a.set(o,setTimeout(()=>{delete i[o],a.delete(o)},e))}a.has(o)&&(clearTimeout(a.get(o)),a.delete(o));const l=i[o]=e.apply(this,n);return l instanceof Promise?l.then(e=>(s(),e)).catch(e=>(r&&r.noCacheOnReject?(delete i[o],a.delete(o)):s(),Promise.reject(e))):s(),l}}const Ei=_i(async(e,t,r,i)=>{let a="api/meta/Attribute/GetAttributesByEntityLogicalName?entityName="+e+"&attributeType="+t+"&needLookupAttr="+r+"&isCustomAttr="+i;return rt.get(a)},"GetAttributesByEntityLogicalName",{expireTime:1e3});function Ci(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ni=class extends N.a{constructor(...e){super(...e),Ci(this,"value",void 0),Ci(this,"clearable",void 0),Ci(this,"placeholder",void 0),Ci(this,"disabled",void 0),Ci(this,"entityname",void 0),Ci(this,"attributeFilterType",void 0),Ci(this,"formEntityName",void 0),Ci(this,"options",void 0),Ci(this,"size",void 0),Ci(this,"isCustomAttr",void 0),Ci(this,"selectedValue",null),Ci(this,"selectOption",[]),Ci(this,"isLoaded",!1)}handlerValue(e,t){this.selectedValue=e}handlerEntityname(e,t){e!=t&&(e&&this.$refs.picklistRef?this.$refs.picklistRef.bindPicklist():(this.selectOption=[],this.selectedValue=null,this.$refs.picklistRef&&this.$refs.picklistRef.bindPicklist(),this.handleChange()))}get needLookupAttr(){return!!this.formEntityName&&-1===["new_autonumber","new_duplicatedetect_key"].indexOf(this.formEntityName)}mounted(){this.selectedValue=this.value}loadAttributes(){if(!this.entityname)return Promise.resolve([]);if(this.options&&this.options.length>0){let e=this.changeOptions(this.options);return this.$nextTick(()=>{this.$emit("dataLoaded")}),Promise.resolve(e)}{let e=this.entityname;return this.entityname&&this.entityname.name&&(e=this.entityname.name),Ei(e,this.attributeFilterType,this.needLookupAttr,this.isCustomAttr).then(e=>{let t=this.changeOptions(e);return this.$nextTick(()=>{this.$emit("dataLoaded")}),t})}}changeOptions(e){if(this.selectOption=e,this.$emit("selectOption",this.selectOption),this.selectOption&&this.selectedValue){let e=this.selectOption.filter(e=>e.LogicalName==this.value);(null==e||e.length<=0)&&(this.selectedValue=null,this.handleChange())}let t=[];return e.forEach(e=>{t.push({Text:e.DisplayName+"--"+e.LogicalName,Value:e.LogicalName})}),t}handleChange(){let e,t,r;this.selectOption.forEach(i=>{i.LogicalName==this.selectedValue&&(e=i.DisplayName,t=i.AttributeTypeName,r=i.ReferencedEntityLogicalName)}),this.$emit("callback",{logicalname:this.selectedValue,displayname:e,attributeTypeName:t,relatedEntity:r}),this.$emit("input",this.selectedValue),this.$emit("change",this.selectedValue)}};Object(J.__decorate)([Object(te.d)()],Ni.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],Ni.prototype,"clearable",void 0),Object(J.__decorate)([Object(te.d)({default:function(){return this.$_t("common.select","请选择")}})],Ni.prototype,"placeholder",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],Ni.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)()],Ni.prototype,"entityname",void 0),Object(J.__decorate)([Object(te.d)({default:function(){return"all"}})],Ni.prototype,"attributeFilterType",void 0),Object(J.__decorate)([Object(te.d)()],Ni.prototype,"formEntityName",void 0),Object(J.__decorate)([Object(te.d)({default:()=>[]})],Ni.prototype,"options",void 0),Object(J.__decorate)([Object(te.d)()],Ni.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],Ni.prototype,"isCustomAttr",void 0),Object(J.__decorate)([Object(te.g)("value")],Ni.prototype,"handlerValue",null),Object(J.__decorate)([Object(te.g)("entityname")],Ni.prototype,"handlerEntityname",null),Ni=Object(J.__decorate)([Object(te.a)({name:"RtSaasAttributes"})],Ni);var Si=Ni,Ti=(r("d50e"),Object(_.a)(Si,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-picklist",{ref:"picklistRef",staticClass:"plat-picklist-attributes",attrs:{id:"rtSaasAttributes",fetch:e.loadAttributes,placeholder:e.disabled?e.$_t("lable.nodata","暂无"):e.placeholder,clearable:e.clearable,filterable:!0,disabled:e.disabled,size:e.size,"clear-icon-right":8},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}})}),[],!1,null,"2fa078ce",null).exports),ki={name:"ExcelExportDialog",props:{IsCustomImport:{type:Boolean,default:!1},Exceltitle:{type:String,default:null},entityName:{type:String},GetImportTemplateUrl:{type:String,default:function(){return"api/import/GetTemplate?queryId="}},ImportUrl:{type:String,default:function(){return"api/import/ImportExcel"}},ImportTemplateData:{type:Object,default:null},ImportSuccessCallback:Function},data:function(){return{showErrorMsg:!1,dialogFormVisible:!1,buttonDisabled:!1,buttonDownLoading:!1,buttonLoading:!1,buttonDisabled_Import:!1,buttonLoading_Import:!1,accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",importMode:2,customerType:0,currentStep:5,duplicateDetect:!1,preResult:1,uploadFileName:"",dialogLoading:!1,category:"",entity_Name:"",isQuick:!0,exportSelect:"",items:[],STATUS:1,isCustomerField:!1,dataMessage:"",customerTypeField:"",isPreResult:!0,showSuccess:!1,showError:!1,isExportfile:!1,promiseAll:[],changeImportUrl:"",showLoading:!1}},computed:{fileAutoSize:function(){let e=10;return this.$store.state.systemparameter.FileSizeLimit&&(e=parseInt(this.$store.state.systemparameter.FileSizeLimit)),1024*e*1e3},notSupported:function(){return 4===this.preResult?this.$_t("ImportTip9","导入暂不支持关于(MultipleTypeLookup)字段"):5===this.preResult&&this.$_t("ImportTip12","导入暂不支持关于(PartyList)字段")},isQuickTrue(){return this.isQuick?"excelExport-button-first checked":"excelExport-button-first"},isQuickFalse(){return this.isQuick?"excelExport-button-first":"excelExport-button-first checked"},isQuickTrueTriangle(){return this.isQuick?"excelExport-button-triangle":"triangleFalse"},isQuickFalseTriangle(){return this.isQuick?"triangleFalse":"excelExport-button-triangle"},dialogFooter(){return 1===this.STATUS?"plat-dialog-footer-buttons has-border":"plat-dialog-footer-buttons"},picklistStyle(){return 1!==this.STATUS||this.showSuccess||this.showError||this.isExportfile||this.showLoading?"rtPicklist isNotStatus":"rtPicklist"}},watch:{entity_Name(){null!=this.$refs.upload&&(this.$refs.upload.value=""),this.dialogFormVisible=!1,this.showErrorMsg=!1},dialogFormVisible(e,t){e&&e!==t&&this.checkCustomerType()},customerType(e,t){e&&e!==t&&this.CheckByCustomer()}},methods:{checkCustomerType(){this.customerType=0},onExceed(e,t){this.$refs.upload&&(this.$refs.upload.clearFiles(),setTimeout(()=>{this.$refs.upload.handleStart(e[0])},600))},show:function(e,t){this.resetDialog(),e?this.entity_Name=e:this.entityName&&(this.entity_Name=this.entityName),this.category=null==t?"":t,this.promiseAll=[],this.promiseAll.push(this.queryDuplicateDetect()),this.importFile(),this.isQuick=!0,this.$nextTick(()=>{this.$refs.upload&&this.$refs.upload.clearFiles()})},importFile(){return new Promise((e,t)=>{this.dialogLoading=!0,this.STATUS=1,this.showSuccess=!1,this.showError=!1,this.exportSelect="";let r="api/import/GetTemplateSelectList?entityName="+this.entity_Name+"&category="+this.category;rt.get(r).then(t=>{if(t&&t.length>0){var r=t.filter(e=>e.isdefault);r&&r.length>0?this.exportSelect=r[0].queryid:1==t.length&&(this.exportSelect=t[0].queryid),this.exportSelect&&(this.promiseAll.push(this.CheckPreConditions()),0!=this.customerType&&this.promiseAll.push(this.CheckByCustomer()))}this.importMode=2,this.items=t,Promise.all(this.promiseAll).then(()=>{this.dialogFormVisible=!0}).catch(()=>{this.customerType=0}),this.dialogLoading=!1,e(t)}).catch(e=>{rt.showErrorToast(e),this.dialogLoading=!1})})},CheckPreConditions(){return new Promise((e,t)=>{let r="api/import/CheckPreConditions?entityName="+this.entity_Name+"&category="+this.category+"&queryId="+this.exportSelect;rt.get(r).then(t=>{t&&(t.errorMsg?(this.customerTypeField=t.errorMsg,this.isCustomerField=!0):this.isCustomerField=!1,this.preResult=t.errorType),this.$nextTick(()=>{this.$refs.upload&&(this.$refs.upload.value=""),this.uploadFileName=""}),this.buttonDisabled=t>2,e(t)}).catch(e=>{rt.showErrorToast(e),this.dialogLoading=!1,this.dialogFormVisible=!1,t(e)})})},Import_Loading(e){this.buttonDisabled_Import=e,this.buttonLoading_Import=e},DownLoadTemplate_Loading(e){this.buttonDisabled=e,this.buttonDownLoading=e},queryDuplicateDetect(){return new Promise((e,t)=>{this.buttonLoading=!0,this.buttonDisabled_Import=!0,rt.get("api/import/GetDuplicateDetect?entityName="+this.entity_Name).then(t=>{this.duplicateDetect=t,this.currentStep=20,this.buttonLoading=!1,this.buttonDisabled_Import=!1,e(t)}).catch(e=>{this.duplicateDetect=!1,this.buttonLoading=!1,this.buttonDisabled_Import=!0,rt.showErrorToast(e),t(e)})})},CheckByCustomer(){return new Promise((e,t)=>{this.buttonLoading=!0;let r="api/import/CheckByCustomer?entityName="+this.entity_Name+"&category="+this.category+"&customerType="+this.customerType+"&queryId="+this.exportSelect;rt.get(r).then(r=>{r?(this.isPreResult=!1,rt.showErrorToast(this.$_t("excelExportDialog.replacerepeated","当前实体导入重复记录检测存在循环关联本身,请更换重复记录检测字段")),this.customerType=0,t(r)):e(),this.buttonLoading=!1}).catch(e=>{rt.showErrorToast(e),this.customerType=0,this.buttonLoading=!1,t(e)})})},closeDialog(){this.dialogFormVisible=!1,this.resetDialog(),this.uploadFileName=""},resetDialog(){this.currentStep=5,this.duplicateDetect=!1,this.showErrorMsg=!1,this.buttonDisabled=!1,this.buttonLoading=!1,this.buttonDisabled_Import=!1,this.buttonLoading_Import=!1,this.importMode=2,this.preResult=1,this.STATUS=1,this.showSuccess=!1,this.showError=!1,this.isExportfile=!1,this.isCustomerField=!1,this.checkCustomerType(),this.exportSelect=""},DownLoadTemplate:function(){if(!this.exportSelect)return void rt.showErrorToast(this.$_t("platform.excelExportDialogchoose","请先选择导入模板!"));if(rt.isNullOrWhiteSpace(this.entity_Name)||rt.isNullOrWhiteSpace(this.GetImportTemplateUrl))return void rt.showErrorToast(this.$_t("NoProvidedTemplate","未提供模板信息"));if(this.isCustomerField&&!this.customerType)return void rt.showErrorToast(this.$_t("platform.import.destination","请先选择导入目标!"));this.DownLoadTemplate_Loading(!0);let e=this.GetImportTemplateUrl+this.exportSelect+"&customerType="+this.customerType;rt.get(e,this.ImportTemplateData).then(e=>{this.downloadExcelFile(e,!0),this.DownLoadTemplate_Loading(!1)}).catch(e=>{rt.showErrorToast(e),this.DownLoadTemplate_Loading(!1)})},Import:function(){if(this.isPreResult){var e=this.$refs.upload?this.$refs.upload.uploadFiles:null;if(null==e||0==e.length)return rt.showErrorToast(this.$_t("PleaseUploadFile","请上传文件")),!1;var t=new FileReader;if(e&&e[0].raw)var r=e[0].raw;t.readAsDataURL(r),t.onload=e=>{if(this.isQuick&&r.size>=this.fileAutoSize)this.$message({type:"warning",message:this.$_t("kb.notexceed","文件大小不能超过")+"10M"});else{this.Import_Loading(!0);var t={};if(t.FileName=r.name,"data:"!==e.target.result&&(t.FileBase64Content=e.target.result.substring(e.target.result.indexOf(",")+1)),t.MimeType=r.type,this.IsCustomImport&&(t={fileModel:t}),this.isQuick?this.changeImportUrl=this.ImportUrl:this.changeImportUrl="api/import/AsyncExcelImport",this.exportSelect){var i=this.changeImportUrl+"?entityName="+this.entity_Name+"&importMode="+this.importMode+"&category="+this.category+"&customerType="+this.customerType+"&queryId="+this.exportSelect;rt.showLoadingToast(this.$_t("common.importing","正在导入...")),this.showLoading=!0,rt.post(i,t).then(e=>{rt.hideLoadingToast(),this.showLoading=!1,this.Import_Loading(!1),e&&!1===e.isSuccess?(this.showError=!0,this.downloadExcelFile(e,!1)):(this.showSuccess=!0,this.$refs.upload&&this.$refs.upload.clearFiles(),e&&e.message?this.dataMessage=e.message:(this.isExportfile=!0,rt.showSuccessToast(this.$_t("import.queue","已加入导入队列"))),this.ImportSuccessCallback&&this.ImportSuccessCallback(this.entity_Name))}).catch(e=>{rt.hideLoadingToast(),this.showLoading=!1,rt.showErrorToast(e),this.Import_Loading(!1)})}else rt.showErrorToast(this.$_t("platform.excelExportDialogchoose","请先选择导入模板!"))}}}else rt.showErrorToast(this.$_t("excelExportDialog.replacerepeated","当前实体导入重复记录检测存在循环关联本身,请更换重复记录检测字段"))},uploadFile:function(){this.clearUploadFile(),this.$refs.upload&&this.$refs.upload.click()},clearUploadFile(){this.$refs.upload&&(this.$refs.upload.value="",this.uploadFileName="")},selectFile:function(){var e=this.$refs.upload;if(e.uploadFiles[0]&&e.uploadFiles[0].raw){e.uploadFiles[0].status="success";var t=e.uploadFiles[0].raw}this.accept.contains(t.type)||(rt.showErrorToast(this.$_t("unsupport_file","不支持的文件类型")),this.clearUploadFile())},downloadExcelFile:function(e,t){let r=e.content;if(rt.isNullOrWhiteSpace(r))return;let i,a=this.base64Excel2Blob(r);if(i=t?null==this.Exceltitle?e.fileName:this.Exceltitle+"-"+this.$_t("ImportTemplate","导入模板"):null==this.Exceltitle?e.fileName:this.Exceltitle+"-"+this.$_t("ImportFailed","导入失败"),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(a,i);else if(navigator.appVersion.toString().indexOf(".NET")>0)window.navigator.msSaveBlob(a,i);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(a),n.download=i,n.style.display="none",document.body.appendChild(n);try{n.click()}finally{document.body.removeChild(n)}}},base64Excel2Blob:function(e){for(var t=window.atob(e),r=t.length,i=new Uint8Array(r),a=0;a({Value:e.queryid,Text:e.name}));return Promise.resolve(e)},handleOptionClicked(e){this.isQuick=e},toExportfile(){this.tenantCode=rtconfig.keycloak_realm||localStorage.$tenantcode,sessionStorage.subappKey?this.subApp=sessionStorage.subappKey:this.qiankunconfig&&this.qiankunconfig.defaultSubAppKey?this.subApp=this.qiankunconfig.defaultSubAppKey:this.subApp="system-manage";const e=`webapp/${this.subApp}/?mainNavName=ConfigurationCenter#/vlist/importfile`;window.open(rt.getBaseUrl()+e)},importAgain(){this.STATUS=1,this.showSuccess=!1,this.showError=!1,this.isExportfile=!1,this.$nextTick(()=>{this.clearUploadFile(),this.$refs.upload&&this.$refs.upload.clearFiles()})},selectValue(e){this.customerType=0,this.CheckPreConditions()}}},Oi=(r("5c6f"),Object(_.a)(ki,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"plat-excel-dialog",attrs:{title:e.$_t("BUTTON_IMPORT","导入"),"before-close":e.closeDialog,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":""},on:{input:e.resetDialog},model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}},[r("rc-view",{staticClass:"excelExport-view"},[r("rc-card",{staticClass:"excelExport-card"},[1===e.STATUS?r("div",[r("rc-section",{staticClass:"excelExport-section"},[r("rc-form",{attrs:{"label-position":"left"}},[r("div",{staticClass:"excelExport-card-form steps"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:"1",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("Select.import.template","选择导入模板")))])],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{attrs:{span:24}},[r("rc-form-item",[r("rc-picklist",{class:e.picklistStyle,attrs:{fetch:e.fetchPicklist,clearable:!1},on:{input:e.selectValue},model:{value:e.exportSelect,callback:function(t){e.exportSelect=t},expression:"exportSelect"}}),r("rc-button",{staticClass:"downloadTemplate",attrs:{"icon-name":"plat-icon-transcribe",text:"",type:"plain"},on:{click:e.DownLoadTemplate}},[e._v(" "+e._s(e.$_t("DOWNLOAD_TEMPLATE","下载模板")))])],1)],1)],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{staticClass:"downloadTemplateTip",attrs:{span:24}},[e._v(" "+e._s(e.$_t("Tip.import","提示:按照下载的模板录入数据,请不要修改表格表头,防止导入失败。")))])],1)],1),e.isCustomerField?r("div",{staticClass:"excelExport-form-second steps"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:"2",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("Select.import.destination","选择导入目标")))])],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{staticClass:"importDestination",attrs:{span:24}},[r("span",[e._v(e._s(e.$_t("Template","模板中")))]),r("span",{staticClass:"excelExport-card-span"},[e._v(e._s(e.customerTypeField))]),r("span",[e._v(e._s(e.$_t("import.destination","为customer类型字段,请选择导入目标:")))])])],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{staticClass:"excelExport-card-radio"},[r("rc-radio",{attrs:{label:1},model:{value:e.customerType,callback:function(t){e.customerType=t},expression:"customerType"}},[e._v(" "+e._s(e.$_t("Customers.usually.enterprises","客户(一般以企业为主体)"))+" ")]),r("rc-radio",{attrs:{label:2},model:{value:e.customerType,callback:function(t){e.customerType=t},expression:"customerType"}},[e._v(" "+e._s(e.$_t("Contact.person.individual","联系人(一般以个人为主体)"))+" ")])],1)],1)],1):e._e(),r("div",{staticClass:"excelExport-form-four steps"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:e.isCustomerField?"3":"2",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("Upload.file","上传文件")))])],1),r("rc-form-item",{staticClass:"excelExport-card-row"},[e.isCustomerField&&0==e.customerType?e._e():r("rc-upload",{ref:"upload",attrs:{"auto-upload":!1,disabled:e.buttonDisabled_Import,action:"",accept:e.accept,"on-change":e.selectFile,limit:1,"on-exceed":e.onExceed}},[r("rc-button",{staticClass:"excelExport-card-upload",attrs:{slot:"trigger","icon-name":"rt-base-plus"},slot:"trigger"},[e._v(" "+e._s(e.$_t("JWorkflow.selectFile","选择文件")))])],1),e.isCustomerField&&0==e.customerType?r("span",{staticClass:"rt-upload-tip"},[e._v(e._s(e.$_t("Select.import.destination","选择导入目标")))]):e._e()],1)],1),r("div",{staticClass:"excelExport-form-five steps"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:e.isCustomerField?"4":"3",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("Select.import.method","选择导入方式")))])],1),r("rc-form-item",[r("div",{staticClass:"excelExport-button-div"},[r("div",{class:e.isQuickTrue,on:{click:function(t){return e.handleOptionClicked(!0)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelEcporeDialogImport","快速导入"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.small","适用于数据量较少的情况")))]),r("div",{class:e.isQuickTrueTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{class:e.isQuickFalse,on:{click:function(t){return e.handleOptionClicked(!1)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelEcporeDialogbackgroundImport","后台导入"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.more","当数据量超过5,000条时建议使用")))]),r("div",{class:e.isQuickFalseTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])])],1),20==e.currentStep&&e.duplicateDetect?r("div",{staticClass:"excelExport-form-three steps"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:e.isCustomerField?"5":"4",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("record.detection","重复性记录检测")))])],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{staticClass:"excelExport-three-importTip",attrs:{span:24}},[e._v(" "+e._s(e.$_t("ImportTip2","系统会根据重复检测设置确定重复记录,如果检测出重复项,您希望怎么处理?"))+" ")])],1),r("rc-row",{staticClass:"excelExport-card-row"},[r("rc-col",{staticClass:"excelExport-card-radio"},[r("rc-radio",{attrs:{label:2},model:{value:e.importMode,callback:function(t){e.importMode=t},expression:"importMode"}},[e._v(e._s(e.$_t("ImportChoose2","提醒我导入失败"))+" ")]),r("rc-radio",{attrs:{label:1},model:{value:e.importMode,callback:function(t){e.importMode=t},expression:"importMode"}},[e._v(" "+e._s(e.$_t("Overwrite.data","更新:覆盖原有数据"))+" ")])],1)],1)],1):e._e()])],1)],1):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showSuccess,expression:"showSuccess"}],staticClass:"excelExport-after"},[r("div",{staticClass:"excelExport-icon"},[r("rc-icon",{attrs:{name:"plat-icon-circle-check-lined",size:"120",color:"#40C8AD"}})],1),r("div",{staticClass:"excelExport-message"},[e._v(e._s(e.dataMessage))]),r("div",{staticClass:"excelExport-button"},[r("rc-button",{staticClass:"excelExport-buttonFirst",on:{click:e.importFile}},[e._v(" "+e._s(e.$_t("Continue.importing","继续导入")))]),r("rc-button",{staticClass:"excelExport-buttonSecond",attrs:{type:"primary"},on:{click:e.closeDialog}},[e._v(" "+e._s(e.$_t("Return.to.list","返回列表")))])],1)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showError,expression:"showError"}],staticClass:"excelExport-error"},[r("div",{staticClass:"excelExport-icon"},[r("rc-icon",{attrs:{name:"plat-icon-circle-warning-lined",size:"100",color:"#F65555"}})],1),r("div",{staticClass:"excelExport-message"},[e._v(" "+e._s(e.$_t("Failed.data","导入失败,失败数据将自动下载"))+" ")]),r("div",{staticClass:"excelExport-button"},[r("rc-button",{staticClass:"excelExport-message-again",attrs:{type:"primary"},on:{click:e.importAgain}},[e._v(" "+e._s(e.$_t("Re-import","重新导入"))+" ")])],1)]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isExportfile,expression:"isExportfile"}],staticClass:"excelExport-background-import"},[r("div",{staticClass:"excelExport-icon"},[r("rc-icon",{attrs:{name:"plat-icon-circle-check-lined",size:"80",color:"#40C8AD"}})],1),r("span",{staticClass:"excelExport-after-span"},[e._v(e._s(e.$_t("Upload.task.submitted","上传任务已提交")))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showLoading,expression:"showLoading"}],staticClass:"excelExport-after"})])],1),r("div",{class:e.dialogFooter,attrs:{slot:"footer"},slot:"footer"},[r("div",{directives:[{name:"show",rawName:"v-show",value:1===e.STATUS&&!e.showSuccess&&!e.showError&&!e.showLoading,expression:"STATUS === 1 && !showSuccess && !showError && !showLoading"}]},[r("rc-button",{on:{click:e.closeDialog}},[e._v(" "+e._s(e.$_t("cancel","取消"))+" ")]),r("rc-button",{attrs:{type:"primary",disabled:e.isCustomerField&&0==e.customerType},on:{click:e.Import}},[e._v(" "+e._s(e.$_t("BUTTON_IMPORT","导入"))+" ")])],1)])],1)}),[],!1,null,"c52cd042",null).exports),Ii=r("aab4"),Di=r("0a16"),Ai=r("3a01"),Mi={name:"ExcelExportNewDialog",components:{PlatFieldSelection:Ii.a},mixins:[Di.a],props:{objectTypeName:{type:String,default:""},layoutObject:{type:Object,default:()=>({})}},data:function(){return{currentQueryId:"",category:"",dialogLoading:!1,dialogFormVisible:!1,isQuick:!0,inputChange:"",currTime:"",STATUS:1,tenantCode:"",subApp:"",hasSubEntityCol:!1,isMergeSubEntity:!0,showFieldSelection:!1,treeData:{},defaultProps:{children:"children",label:"DisplayName"},tableCheckedKeys:[],storeTreeNode:"",showBasicTree:!1,internalObjectTypeName:"",internalLayoutObject:{},updateLayoutObject:!1}},computed:{currentObjectTypeName(){return this.internalObjectTypeName||this.objectTypeName},currentLayoutObject(){return this.internalLayoutObject||this.layoutObject},isQuickTrue(){return this.isQuick?"excelExport-button-first checked":"excelExport-button-first"},isQuickFalse(){return this.isQuick?"excelExport-button-first":"excelExport-button-first checked"},MergeSubEntityTrue(){return this.isMergeSubEntity?"excelExport-button-first checked":"excelExport-button-first"},MergeSubEntityFalse(){return this.isMergeSubEntity?"excelExport-button-first":"excelExport-button-first checked"},isQuickTrueTriangle(){return this.isQuick?"excelExport-button-triangle":"triangleFalse"},isQuickFalseTriangle(){return this.isQuick?"triangleFalse":"excelExport-button-triangle"},MergeSubEntityTrueTriangle(){return this.isMergeSubEntity?"excelExport-button-triangle":"triangleFalse"},MergeSubEntityFalseTriangle(){return this.isMergeSubEntity?"triangleFalse":"excelExport-button-triangle"}},watch:{dialogFormVisible:{handler(e){e?this.showFieldSelection=!1:this.$refs.fieldSelection&&this.$refs.fieldSelection.resetData(),this.storeTreeNode=localStorage.getItem("storeTreeNode")},deep:!0}},methods:{setColumnHandle(){this.showFieldSelection=!this.showFieldSelection,this.showFieldSelection&&this.loadFieldTreeData()},async initializeFieldData(){try{this.tableCheckedKeys=this.extractSelectedFieldsFromLayout(this.currentLayoutObject),this.currentObjectTypeName&&await Promise.all([this.getBasicTreeData(),this.getRelatedTreeData()])}catch(e){this.$message.error("字段数据加载失败,请稍后重试")}},async getBasicTreeData(){this.showBasicTree=!0;const e=await this.getMetaAttributesByEntityLogicalname(this.currentObjectTypeName);this.$set(this.treeData,"basicTreeData",e),this.showBasicTree=!1},async getRelatedTreeData(){const e=await this.getManytooneRelationships(this.currentObjectTypeName);this.$set(this.treeData,"relatedTreeData",e)},async loadFieldTreeData(){if(this.currentObjectTypeName)try{this.treeData.basicTreeData&&0!==this.treeData.basicTreeData.length||await this.getBasicTreeData(),this.treeData.relatedTreeData&&0!==this.treeData.relatedTreeData.length||await this.getRelatedTreeData(),this.tableCheckedKeys=this.extractSelectedFieldsFromLayout(this.currentLayoutObject)}catch(e){this.showBasicTree=!1}},handleFieldSelectionChanged(e){const t=e.map(e=>{if(Object.prototype.hasOwnProperty.call(e,"needRender")){let t="";e.props&&e.props.displayName&&(t=e.props.displayName),e={...Object(Ai.a)(e)},(t||0==t)&&(e.props.displayName=t)}return e}),r=JSON.parse(this.currentLayoutObject?JSON.stringify(this.currentLayoutObject):"{}");r.children.forEach(e=>{"gridtable"===e.$nodetype&&e.children&&(e.children=e.children.filter(e=>!["gridcell","customerComponent"].includes(e.$nodetype)),e.children.push(...t))}),this.internalLayoutObject=r,this.tableCheckedKeys=e,this.updateLayoutObject=!0},show:function(e,t,r,i,a,n,o=null){this.isQuick=!0,this.isMergeSubEntity=!0,this.category=e,this.dialogFormVisible=!0,this.updateLayoutObject=!1,this.tableCheckedKeys=[],this.showFieldSelection=!1,this.internalObjectTypeName=r,this.internalLayoutObject=o||{},r&&this.initializeFieldData();const s=new RtDate;if(this.currTime=s.toISOString().slice(0,10).replace(/-/g,""),null!=t&&t.trim()){var l=`change.${r}.${t}`;i=this.$_t(l,i)}this.inputChange=`${i}_${a}_${this.currTime}`,this.hasSubEntityCol=n},showAgain:function(e){2==e?(this.STATUS=1,rt.showSuccessToast(this.$_t("platform.excelExportDown","下载任务已提交"))):(this.STATUS=e,this.dialogFormVisible=!0)},Export:function(){let e=null;this.updateLayoutObject&&(e=this.currentLayoutObject),this.$emit("exportData",this.isQuick,this.category,this.inputChange,this.isMergeSubEntity,e),this.dialogFormVisible=!1},closeDialog(){this.dialogFormVisible=!1},handleOptionClicked(e){this.isQuick=e},showAndClose(){this.STATUS=1},toExportfile(){var e;this.tenantCode=(null===(e=window.rtconfig)||void 0===e?void 0:e.keycloak_realm)||localStorage.$tenantcode,this.qiankunconfig&&this.qiankunconfig.defaultSubAppKey?this.subApp=this.qiankunconfig.defaultSubAppKey:this.subApp="system-manage";const t=`webapp/${this.subApp}/?mainNavName=ConfigurationCenter#/vlist/exportfile`;window.open(rt.getBaseUrl()+t)}}},Li=(r("c672"),Object(_.a)(Mi,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("rc-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"excelExport-dialog",attrs:{title:e.$_t("ExportTip2","导出"),width:"45%","before-close":e.closeDialog,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":""},on:{input:e.showAndClose,confirm:e.Export},model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}},[r("rc-view",{staticClass:"excelExport-view"},[r("rc-card",{staticClass:"excelExport-card"},[1===e.STATUS?r("div",[r("rc-form",{attrs:{"label-position":"left"}},[r("div",{staticClass:"excelExport-card-form"},[r("div",{staticClass:"excelExport-card-form-div"},[r("span",{staticClass:"excelExport-card-form-span"},[e._v("1."+e._s(e.$_t("platform.excelExportFileName","导出文件名称")))])]),r("div",{staticClass:"excelExport-card-form-input"},[r("rc-form-item",{attrs:{"hidden-label":""}},[r("rc-input",{attrs:{"show-suffix-icon":""},model:{value:e.inputChange,callback:function(t){e.inputChange=t},expression:"inputChange"}})],1),r("rc-button",{attrs:{type:"default"},on:{click:e.setColumnHandle}},[e._v(" "+e._s(e.$_t("platform.excelExportSetColumn","设置列"))+" ")])],1)]),e.showFieldSelection?r("div",{staticClass:"field-selection-section"},[r("plat-field-selection",{directives:[{name:"loading",rawName:"v-loading",value:e.showBasicTree,expression:"showBasicTree"}],ref:"fieldSelection",attrs:{"is-editable":!1,"tree-data":e.treeData,"default-props":e.defaultProps,"table-checked-keys":e.tableCheckedKeys,"store-tree-node":e.storeTreeNode},on:{"selection-changed":e.handleFieldSelectionChanged}})],1):e._e(),r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("span",{staticClass:"excelExport-card-form-span"},[e._v("2."+e._s(e.$_t("platform.exportTip","选择导出方式")))])]),r("div",{staticClass:"excelExport-button-div"},[r("div",{class:e.isQuickTrue,on:{click:function(t){return e.handleOptionClicked(!0)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelEcporeDialogExport","快速导出"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.small","适用于数据量较少的情况")))]),r("div",{class:e.isQuickTrueTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{class:e.isQuickFalse,on:{click:function(t){return e.handleOptionClicked(!1)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelEcporeDialogbackgroundExport","后台导出"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.more","当数据量超过5,000条时建议使用")))]),r("div",{class:e.isQuickFalseTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])]),e.hasSubEntityCol?r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("span",{staticClass:"excelExport-card-form-span"},[e._v("3."+e._s(e.$_t("platform.exportTip.subentity","选择子实体数据导出格式")))])]),r("div",{staticClass:"excelExport-button-div"},[r("div",{class:e.MergeSubEntityTrue,on:{click:function(t){e.isMergeSubEntity=!0}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelExport.merge","合并"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.merge.tip","子实体数据合并到一个单元格")))]),r("div",{class:e.MergeSubEntityTrueTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{class:e.MergeSubEntityFalse,on:{click:function(t){e.isMergeSubEntity=!1}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.excelExport.split","拆分"))+" ")]),r("span",{staticClass:"excelExport-button-span"},[e._v(e._s(e.$_t("platform.excelExport.split.tip","拆分子实体数据为网格的形式")))]),r("div",{class:e.MergeSubEntityFalseTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])]):e._e()])],1):e._e(),2===e.STATUS?r("div",{staticClass:"excelExport-after"},[r("div",{staticClass:"excelExport-icon"},[r("rc-icon",{attrs:{name:"plat-icon-circle-check-lined",size:"80",color:"#40C8AD"}})],1),r("span",{staticClass:"excelExport-after-span"},[e._v(e._s(e.$_t("platform.excelExportDown","下载任务已提交")))]),r("div",{staticClass:"plat-dialog-footer-buttons"})]):e._e()])],1),r("div",{staticClass:"plat-dialog-footer-buttons has-border",attrs:{slot:"footer"},slot:"footer"},[r("rc-button",{on:{click:e.closeDialog}},[e._v(" "+e._s(e.$_t("cancel","取消"))+" ")]),r("rc-button",{attrs:{type:"primary"},on:{click:e.Export}},[e._v(" "+e._s(e.$_t("BUTTON_EXPORT","导出"))+" ")])],1)],1)],1)}),[],!1,null,"f88ba176",null).exports),Ri={name:"RtCron",props:{value:{type:String},readonly:{type:Boolean,default:!1}},data:()=>({isMounted:!1}),mounted(){this.isMounted=!0}},Pi=Object(_.a)(Ri,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"rt-cron"},[this.isMounted?t("customer-component",this._g({ref:"customerComponent",attrs:{appkey:"platCron","component-name":"platCron","custom-component-ref":"platCron",value:this.value,readonly:this.readonly}},this.$listeners)):this._e()],1)}),[],!1,null,null,null).exports;function $i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Fi=class extends N.a{constructor(...e){super(...e),$i(this,"iframeUrl",void 0)}get url(){return this.iframeUrl}changeFrameHeight(){const e=document.getElementById("myiframe");e.height=document.documentElement.clientHeight,e.width=document.documentElement.clientWidth}mounted(){this.changeFrameHeight()}};Object(J.__decorate)([Object(te.d)({default:""})],Fi.prototype,"iframeUrl",void 0),Fi=Object(J.__decorate)([Object(te.a)({name:"RtIframe"})],Fi);var ji=Fi,Bi=Object(_.a)(ji,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"plat-iframe"},[t("iframe",{attrs:{id:"myiframe",src:this.url,scrolling:"auto",onload:this.changeFrameHeight,frameborder:"0"}})])}),[],!1,null,null,null).exports;function Ui(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Vi=ee.a.config;let qi=class extends N.a{constructor(...e){super(...e),Ui(this,"isMask",void 0),Ui(this,"prop",void 0),Ui(this,"editForm",void 0),Ui(this,"objectId",void 0),Ui(this,"readonly",void 0),Ui(this,"isInputAddress",void 0),Ui(this,"displayName",void 0),Ui(this,"rules",void 0),Ui(this,"objectTypeName",void 0),Ui(this,"maskFields",void 0),Ui(this,"formStatus",void 0),Ui(this,"hideMaskIcon",void 0),Ui(this,"changedProps",void 0),Ui(this,"datafieldname",void 0),Ui(this,"datafield_country",void 0),Ui(this,"datafield_province",void 0),Ui(this,"datafield_city",void 0),Ui(this,"datafield_county",void 0),Ui(this,"disabled",void 0),Ui(this,"changeSelect",void 0),Ui(this,"clearable",void 0),Ui(this,"required",void 0),Ui(this,"value",void 0),Ui(this,"formitemkey",void 0),Ui(this,"showStyle",void 0),Ui(this,"countryValue",void 0),Ui(this,"separator",void 0),Ui(this,"loadDataCompleted",void 0),Ui(this,"options",[]),Ui(this,"new_address",null),Ui(this,"returnObj",{}),Ui(this,"new_value",{province:null,city:null,country:null,address:""}),Ui(this,"xpcConfig",{})}handlerValue(e){this.setValue(e)}get computedPlaceholder(){return`${this.$_t("platform.province","省")}${this.separator}${this.$_t("platform.city","市")}${this.separator}${this.$_t("platform.country","县")}`}handleCountryValueChanged(e,t){e!=t&&t&&(this.$emit("input",{}),this.$emit("change",{})),e&&this.initOptions()}get ifCountryValueValid(){return!this.$store.state.systemparameter.is_international||"false"===this.$store.state.systemparameter.is_international||!this.datafield_country||!!this.countryValue}created(){this.xpcConfig=Vi}mounted(){this.setValue(this.value)}updateEditForm(e,t){this.$emit("updateEditForm",e,t)}setValue(e){if(e){this.returnObj=e,this.datafieldname&&(this.new_address=this.returnObj[this.datafieldname]);let t={province:this.datafield_province&&e[this.datafield_province]?e[this.datafield_province]:null,city:this.datafield_city&&e[this.datafield_city]?e[this.datafield_city]:null,country:this.datafield_county&&e[this.datafield_county]?e[this.datafield_county]:null,address:this.datafieldname&&e[this.datafieldname]?e[this.datafieldname]:""};this.new_value=t}else this.returnObj={},this.new_address="",this.new_value={province:{id:"",name:"",logicalname:""},city:{id:"",name:"",logicalname:""},country:{id:"",name:"",logicalname:""},address:""};this.handleBlur()}handleBlur(){this.$emit("customValidata",this.formitemkey,this.checkRequired())}checkRequired(){return!!(this.datafield_province&&this.datafield_city&&this.datafield_county&&this.returnObj[this.datafield_province]&&this.returnObj[this.datafield_city]&&this.returnObj[this.datafield_county]&&this.new_address)}maskChangeInput(e){this.datafieldname&&(this.returnObj[this.datafieldname]=e),this.$emit("input",this.returnObj),this.$emit("change",this.returnObj)}changeInput(e){e&&(this.datafield_province&&this.isEqual(e.province,this.returnObj[this.datafield_province])&&this.datafield_city&&this.isEqual(e.city,this.returnObj[this.datafield_city])&&this.datafield_county&&this.isEqual(e.country,this.returnObj[this.datafield_county])&&this.datafieldname&&this.isEqual(e.address,this.returnObj[this.datafieldname])||(this.datafield_province&&(this.returnObj[this.datafield_province]=e.province&&e.province.id?e.province:null),this.datafield_city&&(this.returnObj[this.datafield_city]=e.city&&e.city.id?e.city:null),this.datafield_county&&(this.returnObj[this.datafield_county]=e.country&&e.country.id?e.country:null),this.datafieldname&&(this.returnObj[this.datafieldname]=e.address),this.$emit("input",this.returnObj),this.$emit("change",this.returnObj),this.handleBlur()))}isEqual(e,t){if(!(e instanceof Object&&t instanceof Object))return e==t;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;let a=!0;for(const n of i)if(!this.isEqual(e[n],t[n])){a=!1;break}return a}initOptions(){this.$refs.cascader&&this.$refs.cascader.bindData(),this.$refs.flat&&this.$refs.flat.bindData()}fetchData(){const e=this.xpcConfig&&this.xpcConfig.get();let t=e&&e.addressCascader&&e.addressCascader.url;return t?(this.ifCountryValueValid&&(t+="?countryId="+this.countryValue),new Promise(async(e,r)=>{try{const r=await rt.post(t);this.clearEmptyChildren(r),e(r)}catch(e){r(e)}})):Promise.reject(new Error("requestUrl is undefined"))}clearEmptyChildren(e){e&&e instanceof Array&&e.forEach(e=>{e.children&&e.children.length?this.clearEmptyChildren(e.children):e.children=void 0})}handleAddressClick(e){this.disabled||this.readonly||this.ifCountryValueValid||rt.showErrorToast(this.$_t("platform.select.country.first","请先选择国家"))}};Object(J.__decorate)([Object(te.d)()],qi.prototype,"isMask",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"prop",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"editForm",void 0),Object(J.__decorate)([Object(te.d)({default:""})],qi.prototype,"objectId",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"readonly",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"isInputAddress",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"displayName",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"rules",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"objectTypeName",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"maskFields",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"formStatus",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"hideMaskIcon",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"changedProps",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"datafieldname",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"datafield_country",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"datafield_province",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"datafield_city",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"datafield_county",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],qi.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],qi.prototype,"changeSelect",void 0),Object(J.__decorate)([Object(te.d)({default:!0})],qi.prototype,"clearable",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],qi.prototype,"required",void 0),Object(J.__decorate)([Object(te.d)()],qi.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({default:""})],qi.prototype,"formitemkey",void 0),Object(J.__decorate)([Object(te.d)({default:"normal"})],qi.prototype,"showStyle",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],qi.prototype,"countryValue",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:" / "})],qi.prototype,"separator",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],qi.prototype,"loadDataCompleted",void 0),Object(J.__decorate)([Object(te.g)("value")],qi.prototype,"handlerValue",null),Object(J.__decorate)([Object(te.g)("countryValue")],qi.prototype,"handleCountryValueChanged",null),qi=Object(J.__decorate)([Object(te.a)({name:"RtAddress"})],qi);var zi=qi,Hi=(r("c1b4"),Object(_.a)(zi,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"address-cascader-control plat-address-control"},[e.ifCountryValueValid?e._e():r("div",{staticClass:"disable-click",on:{click:e.handleAddressClick}}),"flat"===e.showStyle?r("rt-address-flat",e._b({ref:"flat",attrs:{value:e.new_value,"custom-fetch":e.fetchData},on:{input:e.changeInput}},"rt-address-flat",e.$props,!1),[e.isMask?r("template",{slot:"detail"},[r("rt-mask",e._b({on:{input:e.maskChangeInput,updateEditForm:e.updateEditForm}},"rt-mask",e.$props,!1))],1):e._e()],2):r("rc-address-cascader",e._b({ref:"cascader",attrs:{value:e.new_value,placeholder:e.computedPlaceholder,"address-placeholder":e.$_t("platform.enterString","请输入"),"custom-fetch":e.fetchData},on:{input:e.changeInput}},"rc-address-cascader",e.$props,!1),[e.isMask?r("template",{slot:"detail"},[r("rt-mask",e._b({attrs:{"has-border-input":!1},on:{input:e.maskChangeInput,updateEditForm:e.updateEditForm}},"rt-mask",e.$props,!1))],1):e._e()],2)],1)}),[],!1,null,"53e89514",null).exports);const Gi=ee.a.config;var Wi={name:"RtAddressFlat",props:{value:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},separator:{type:String,required:!1,default:" / "},placeholder:{type:String,default:""},clearIconRight:{type:Number,default:0},emptyPlaceholder:{type:String,default:""},clearIconName:{type:String,default:void 0},customFetch:{type:Function},dataSource:{type:Array}},data:()=>({focusInInput:!1,focusInCascader:!1,valueList:[],displayValue:[],details:"",address:{},xpcConfig:{},options:[],tabIndex:"0",popVisible:!1,inputHovering:!1}),inject:{elForm:{default:""},rtRow:{default:""}},computed:{computedEmptyPlaceholder(){return this.emptyPlaceholder||this.xpcConfig&&this.xpcConfig.get("emptyPlaceholder")},computedPlaceholder(){return this.computedDisabled?this.computedEmptyPlaceholder:`${this.$_t("platform.province","省")}${this.separator}${this.$_t("platform.city","市")}${this.separator}${this.$_t("platform.country","县")}`},computedClearable(){return void 0===this.clearable?this.elForm&&this.elForm.$attrs&&this.elForm.$attrs["all-clearable"]:this.clearable},computedDisabled(){return this.disabled||(this.elForm||{}).disabled},computedIconName(){return this.clearIconName||this.xpcConfig&&this.xpcConfig.get("clearicon.clearIconName")},hasFocus(){return this.focusInInput||this.focusInCascader},actualOptions(){const e=this.$_t("platform.Select","请选择");if(this.displayValue&&this.displayValue.length){const t=[];this.displayValue.forEach((e,r)=>{0===r?t.push({label:e.label,value:e.value,options:this.options}):t.push({label:e.label,value:e.value,options:this.displayValue[r-1].children})});const r=this.displayValue[this.displayValue.length-1];return r.children&&r.children.length&&t.push({label:e,value:"-1",options:r.children}),t}return[{label:e,value:"-1",options:this.options}]},showClose(){return this.displayValue&&this.displayValue.length&&this.inputHovering&&!this.computedDisabled&&this.computedClearable&&this.valueList.length}},watch:{value:{handler(e){this.setValue(e)},immediate:!0}},created(){this.xpcConfig=Gi},mounted(){this.$refs.myCascader&&(this.$refs.myCascader.$el.style.marginRight=this.rtRow.gutter+"px"),this.bindData()},methods:{confirm(){const e=this.displayValue.map(e=>({...e,id:e.value}));this.handleProvinceCityCountyChange(e),this.handlePopClose()},dispatch(e,t,r){for(var i=this.$parent||this.$root,a=i.$options.componentName;i&&(!a||a!==e);)(i=i.$parent)&&(a=i.$options.componentName);i&&i.$emit.apply(i,[t].concat(r))},bindData(){const e=e=>{this.options=e,this.setValue(this.value)};this.dataSource?e(this.dataSource):this.customFetch&&"function"==typeof this.customFetch&&this.customFetch().then(t=>{e(t)}).catch(e=>{rt.showErrorToast(e)})},setValue(e){e&&!this.isEmptyObject(e)||(this.address={province:null,city:null,country:null,address:""},this.details="",this.displayValue=[],this.valueList=[],this.tabIndex="0");const t=[],r=[],i=JSON.parse(JSON.stringify(e)),a=i.province,n=i.city,o=i.country,s=i.address;if(a&&this.options&&this.options.length){const e=this.options.find(e=>e.value===a.id);if(this.address.province={id:e.value,name:e.label},t.push(e),r.push(e.value),n&&e.children&&e.children.length){const i=e.children.find(e=>e.value===n.id);if(this.address.city={id:i.value,name:i.label},t.push(i),r.push(i.value),o&&i.children&&i.children.length){const e=i.children.find(e=>e.value===o.id);this.address.country={id:e.value,name:e.label},t.push(e),r.push(e.value)}}}this.address.address=s||"",this.details=s||"",this.displayValue=t,this.valueList=r,t.length?this.tabIndex=String(t.length-1):this.tabIndex="0"},handleProvinceCityCountyChange(e){this.address.province=e&&e[0]?{id:e[0].value,name:e[0].label}:null,this.address.city=e&&e[1]?{id:e[1].value,name:e[1].label}:null,this.address.country=e&&e[2]?{id:e[2].value,name:e[2].label}:null,this.emitChange()},handleAddressChange(e){this.address.address!==e&&(this.address.address=e,this.emitChange())},emitChange(){this.isEqual(this.address,this.value)||(this.$emit("input",this.address),this.dispatch("ElFormItem","el.form.change",[this.address]))},isEmptyObject(e){return!(e&&e instanceof Object)||!Object.keys(e).find(t=>!!e[t])},isEqual(e,t){if(!(e instanceof Object&&t instanceof Object))return e===t;const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;let a=!0;for(const n of i)if(e[n]!==t[n]){a=!1;break}return a},handleCascaderClick(e){if(!e.target.dataset||!e.target.dataset.index)return;const t=e.target.dataset.index,r=parseInt(this.tabIndex||0),i=this.actualOptions[r].options[t],a=[...this.displayValue];if(a[r]=i,a.length=r+1,this.displayValue=a,this.tabIndex=String(r+1),!i.children||!i.children.length){const e=this.displayValue.map(e=>({...e,id:e.value}));this.handleProvinceCityCountyChange(e),this.handlePopClose()}},handlePopShow(){this.setValue(this.value),this.popVisible=!0,this.focusInCascader=!0},handlePopClose(){this.popVisible=!1,this.focusInCascader=!1},focusInput(){this.focusInInput=!0},blurInput(){this.focusInInput=!1},clearCascader(){this.handleProvinceCityCountyChange([])}}},Qi=(r("dcfe"),r("444b"),Object(_.a)(Wi,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-address-cascader",class:{"has-focus":e.hasFocus}},[r("rc-popover",{staticClass:"address-flat-trigger",attrs:{disabled:e.computedDisabled,"popper-class":"address-flat-popper",placement:"bottom-start",trigger:"click"},on:{show:e.handlePopShow,hide:e.handlePopClose},model:{value:e.popVisible,callback:function(t){e.popVisible=t},expression:"popVisible"}},[r("div",{staticClass:"fake-cascader-container",attrs:{slot:"reference"},on:{mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},slot:"reference"},[r("rc-cascader",{ref:"myCascader",staticClass:"fake-cascader",class:{"hide-dropdown":e.showClose},attrs:{options:e.options,disabled:e.computedDisabled,props:{checkStrictly:!0},clearable:!e.computedDisabled&&e.computedClearable,separator:e.separator,placeholder:e.computedPlaceholder,"clear-icon-right":e.clearIconRight},model:{value:e.valueList,callback:function(t){e.valueList=t},expression:"valueList"}}),e.showClose?r("rt-icon",{staticClass:"rt-xpc-input-clearicon",attrs:{name:e.computedIconName,color:e.SCSS_VARIABLES.COLOR_SECONDARY},on:{click:function(t){return t.stopPropagation(),e.clearCascader.apply(null,arguments)}}}):e._e()],1),r("div",[r("rc-tabs",{staticClass:"flat-tabs",attrs:{size:"small","extra-position":"right"},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},[r("rc-button",{staticClass:"confirm-btn",attrs:{slot:"extraContent",type:"plain"},on:{click:e.confirm},slot:"extraContent"},[e._v(" "+e._s(e.$_t("BUTTON_CONFIRM","确认"))+" ")]),e._l(e.actualOptions,(function(t){return r("rc-tab-pane",{key:t.value,staticClass:"flat-tab-pane",attrs:{label:t.label}},[r("ul",{staticClass:"option-list",on:{click:e.handleCascaderClick}},e._l(t.options,(function(t,i){return r("li",{key:t.value,staticClass:"option-list-item",attrs:{"data-index":i,title:t.label}},[e._v(" "+e._s(t.label)+" ")])})),0)])}))],2)],1)]),r("div",{staticClass:"address-input"},[e._t("detail",(function(){return[r("rc-input",{ref:"input",attrs:{disabled:e.computedDisabled,"clear-icon-right":e.clearIconRight,placeholder:e.$_t("platform.enterString","请输入")},on:{focus:e.focusInput,blur:e.blurInput,input:e.handleAddressChange},model:{value:e.details,callback:function(t){e.details=t},expression:"details"}}),r("div",{staticClass:"rt-input-shadow",class:{focusInInput:e.focusInInput}})]}))],2)],1)}),[],!1,null,"3aec6146",null).exports),Xi=r("1e17");function Ki(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Yi=class extends(Object(te.c)(Xi.a)){constructor(...e){super(...e),Ki(this,"datafield_begin",void 0),Ki(this,"datafield_end",void 0),Ki(this,"dateType",void 0),Ki(this,"value",void 0),Ki(this,"disabled",void 0),Ki(this,"required",void 0),Ki(this,"formitemkey",void 0),Ki(this,"format",void 0),Ki(this,"currentValue",[]),Ki(this,"refresh",!0),Ki(this,"returnObj",{})}valueHandler(e){this.setValue(e)}get type(){return"date"===this.dateType?"daterange":"datetime"===this.dateType?"datetimerange":this.dateType}mounted(){this.setValue(this.value)}dateChange(){this.datafield_begin&&this.datafield_end&&(this.currentValue&&this.currentValue.length>0?(this.returnObj[this.datafield_begin]=this.currentValue[0],this.returnObj[this.datafield_end]=this.currentValue[1],this.$emit("input",this.returnObj),this.$parent.$emit("validate",this.returnObj),this.$emit("change",this.returnObj),this.handleBlur()):(this.returnObj[this.datafield_begin]=null,this.returnObj[this.datafield_end]=null,this.$emit("input",this.returnObj),this.$parent.$emit("validate",this.returnObj),this.$emit("change",this.returnObj),this.handleBlur()))}getdateRangeData(e){if(e)if(e[0]||e[1]){let t=[];t[0]=e[0],t[1]=e[1],this.$set(this,"currentValue",t)}else this.currentValue=[];else this.currentValue=null;this.dateChange()}setValue(e){if(e&&this.datafield_begin&&this.datafield_end){var t;if(e[this.datafield_begin]||e[this.datafield_end]){var r=[];r[0]=e[this.datafield_begin],r[1]=e[this.datafield_end],this.$set(this,"currentValue",r)}else this.currentValue.length=0;this.currentValue&&(null===(t=this.currentValue)||void 0===t?void 0:t.length)>1&&(this.returnObj[this.datafield_begin]=this.currentValue[0],this.returnObj[this.datafield_end]=this.currentValue[1]),this.$parent.$emit("validate",this.returnObj),this.handleBlur()}}handleBlur(){this.$emit("customValidata",this.formitemkey,this.checkRequired())}checkRequired(){return!!(this.datafield_begin&&this.datafield_end&&this.returnObj[this.datafield_begin]&&this.returnObj[this.datafield_end])}};Object(J.__decorate)([Object(te.d)({type:String,default:""})],Yi.prototype,"datafield_begin",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Yi.prototype,"datafield_end",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Yi.prototype,"dateType",void 0),Object(J.__decorate)([Object(te.d)()],Yi.prototype,"value",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Yi.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Yi.prototype,"required",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:" "})],Yi.prototype,"formitemkey",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Yi.prototype,"format",void 0),Object(J.__decorate)([Object(te.g)("value")],Yi.prototype,"valueHandler",null),Yi=Object(J.__decorate)([Object(te.a)({name:"RtDatetimebetween"})],Yi);var Ji=Yi,Zi=(r("e701"),Object(_.a)(Ji,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-datetime-between"},[e.refresh?r("rc-date-picker",{attrs:{type:e.type,format:e.format||e.getDateMinuteFormat(),disabled:e.disabled,"start-placeholder":e.$_t("platform.startDate","开始日期"),"end-placeholder":e.$_t("platform.endDate","结束日期")},on:{change:e.getdateRangeData},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}}):e._e(),r("div",{staticClass:"rt-input-shadow customshadow"})],1)}),[],!1,null,"166c3814",null).exports),ea={name:"RtTimeline",mixins:[Xi.a],props:{requestUrl:{type:String,required:!1},objectId:{type:String,required:!1},dataList:{type:Array,required:!1},isSubGrid:{type:Boolean,required:!1},hiddenDefaultDiagram:{type:Boolean,default:!1},title:{type:String,default:""},viewprimaryfield:{type:Boolean,default:!1},defaultExpand:{type:Boolean,default:!1}},data:()=>({timeLineList:[]}),computed:{IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},platformNoData(){return this.isSubGrid?"zh-CN"!==rt.getDefaultLocal()?this.$_t("platform.noData","暂无数据"):this.viewprimaryfield&&0===this.timeLineList.length?this.$_t("platform.noSubGrid","暂无"+this.title,{subGridData:this.title}):this.viewprimaryfield?this.$_t("platform.noData","暂无数据"):this.$_t("platform.viewprimaryfield","请配置主字段"):this.$_t("platform.noTimeLineData","暂无时间轴数据")}},watch:{dataList(e,t){this.timeLineList=e}},mounted:function(){this.getTimeLineList(),this.timeLineList=this.dataList||[]},methods:{isNull(e){return["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length&&(!0===this.IsNullValueDisplay||"true"===this.IsNullValueDisplay)?this.NullValueDisplay?this.NullValueDisplay:"--":e},getTimeLineList(){this.requestUrl&&(this.timeLineList=[],rt.get(this.requestUrl).then(e=>{null!=e&&(this.timeLineList=e)}).catch(e=>{rt.showErrorToast(e)}))}}},ta=(r("43e1"),Object(_.a)(ea,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"timeline plat-timeline"},[e.timeLineList.length>0&&e.viewprimaryfield?r("div",[r("rc-timeline",{attrs:{"default-expand":e.defaultExpand}},e._l(e.timeLineList,(function(t,i){return r("rc-timeline-item",{key:i,attrs:{timestamp:t.content,format:"DateOnly"==t.format?e.getDateFormat():e.getDateTimeFormat(),"icon-color":0==i?"primary":"info"}},[r("span",{staticClass:"temptime"},[e._v(" "+e._s(e.isNull(t.timestamp))+" ")])])})),1)],1):e._e(),0!=e.timeLineList.length&&e.viewprimaryfield?e._e():r("div",{staticClass:"rt-saas-nodata"},[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.platformNoData))])])],1)])}),[],!1,null,"9319569a",null).exports),ra={name:"RtStatusline",components:{},mixins:[ye.a],props:{requestUrl:{type:String,required:!1},objectId:{type:String,required:!1},dataList:{type:Array,required:!1},isSubGrid:{type:Boolean,required:!1},hiddenDefaultDiagram:{type:Boolean,default:!1},title:{type:String,default:""},viewprimaryfield:{type:Boolean,default:!1},defaultExpand:{type:Boolean,default:!1}},data:()=>({statuslineList:[]}),computed:{IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},platformNoData(){if(this.isSubGrid&&"zh-CN"===rt.getDefaultLocal()){if(this.viewprimaryfield&&this.statuslineList&&Array.isArray(this.statuslineList)&&0===this.statuslineList.length)return this.$_t("platform.noSubGrid","暂无"+this.title,{subGridData:this.title});if(!this.viewprimaryfield)return this.$_t("platform.viewprimaryfield","请配置主字段")}return this.$_t("platform.noData","暂无数据")}},watch:{dataList(e,t){this.statuslineList=e}},mounted:function(){this.getStatuslineList(),this.statuslineList=this.dataList||[]},methods:{isNull(e){return!(["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length)||!0!==this.IsNullValueDisplay&&"true"!==this.IsNullValueDisplay?e:this.NullValueDisplay?this.NullValueDisplay:"--"},getStatuslineList(){this.requestUrl&&(this.statuslineList=[],rt.get(this.requestUrl).then(e=>{null!=e&&(this.statuslineList=e)}).catch(e=>{rt.showErrorToast(e)}))}}},ia=(r("f0b5"),Object(_.a)(ra,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"statusline plat-statusline"},[e.statuslineList.length>0&&e.viewprimaryfield?r("div",[r("rc-stateline",{attrs:{"display-count":5,"default-expand":e.defaultExpand}},e._l(e.statuslineList,(function(t,i){return r("rc-stateline-item",{key:i,attrs:{status:0==i?"success":void 0,title:t.primaryField,time:t.secondField}},[r("rc-stateline-content",[e.isQyWxTenant?r("div",{domProps:{innerHTML:e._s(t.contentField)}}):r("div",[e._v(e._s(e.isNull(t.contentField)))])])],1)})),1)],1):r("div",{staticClass:"rt-saas-nodata"},[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.platformNoData))])])],1)])}),[],!1,null,"4987741c",null).exports),aa={name:"RtSaasDialog",props:{componentPath:{type:String,default:""},componentName:{type:String,default:""},props:{type:Object,default:()=>({})},title:{type:String,default:"操作"},size:{type:String,default:"normal"},showFooter:{type:Boolean,default:!0}},data:()=>({isShow:!1}),methods:{show(){this.isShow=!0}},render:function(e){return this.isShow?(t=e(this.componentName,{ref:this.componentName,props:this.props}),e("rc-dialog",{ref:"dialog",props:{value:!0,title:this.title,showFooter:this.showFooter,size:this.size?this.size:"normal"},on:{input:e=>{this.isShow=e},cancel:function(){this.$emit("cancel")},confirm:function(){this.$emit("confirm")}}},[t])):e("div",null);var t}},na=Object(_.a)(aa,void 0,void 0,!1,null,null,null).exports,oa={name:"RtSaasCascader",props:{requestApiUrl:{type:String,require:!0,default:function(){return""}},disabled:{type:Boolean,default:!1,required:!1},required:{type:Boolean,default:!0,required:!1},attributes:{type:Array,require:!0,default:function(){return[]}},value:{type:Array,require:!0},formitemkey:{type:String,required:!1,default:""},changeSelect:{type:Boolean,default:!0,required:!1},nameList:{type:Array,require:!0},dataLoadType:{type:Number,default:1},cascaderId:{type:String}},data(){return{currentValue:this.value,displayValue:[],originData:{},cascaderOptions:[]}},computed:{cascaderProps(){return 2===this.dataLoadType?{expandTrigger:"click",lazy:!0,checkStrictly:this.changeSelect,lazyLoad:this.lazyLoad}:{expandTrigger:"hover",checkStrictly:this.changeSelect}}},watch:{requestApiUrl(e,t){e&&e!=t&&(this.currentValue=[],this.getOptionsData())},currentValue:{handler(e,t){e&&0!=e.length&&this.$emit("customValidata",this.formitemkey,!0)}},value:{handler(e,t){this.currentValue=e||[]},immediate:!0},nameList:{handler(e){this.displayValue=e.map(e=>({name:e}))},immediate:!0}},mounted(){this.getOptionsData()},methods:{lazyLoad(e,t){const{level:r}=e;if(e&&e.data&&e.data.leaf)return t();if(0===r)rt.get(this.requestApiUrl).then(e=>{this.originData[r]=e;const i=e.map(e=>({leaf:!e.children,label:e.label,parentid:e.parentid,pinyin:e.pinyin,value:e.value}));t(i)});else if(e.value){if(this.originData[r]&&this.originData[r][e.value])return void t(this.originData[r][e.value]);let i;if(1===r?i=this.originData[r-1].find(t=>e.value===t.value):this.originData[r-1]&&this.originData[r-1][e.parent.value]&&r>1&&(i=this.originData[r-1][e.parent.value].find(t=>e.value===t.value)),i){this.originData[r]||(this.originData[r]={}),this.originData[r][e.value]=i.children;const a=i.children.map(e=>{const{children:t,...r}=e;return r.leaf=!e.children,r});return void t(a)}}t()},dataFilter(e,t){if(e.pathNodes&&e.pathNodes.length>1){let r=!1;return e.pathNodes.forEach(e=>{this._nodeFilter(e,t)&&(r=!0)}),r}return this._nodeFilter(e,t)},_nodeFilter:(e,t)=>!(rt.isNil(e.label)||!~e.label.indexOf(t)&&!~e.label.toUpperCase().indexOf(t.toUpperCase()))||!(rt.isNil(e.data)||rt.isNil(e.data.pinyin)||!~e.data.pinyin.indexOf(t)&&!~e.data.pinyin.toUpperCase().indexOf(t.toUpperCase()))||void 0,async getOptionsData(){if(this.cascaderOptions=[],window[rtconfig.keycloak_realm+"_cascaderOptions_"+this.cascaderId])return 1===this.dataLoadType&&(this.cascaderOptions=window[rtconfig.keycloak_realm+"_cascaderOptions_"+this.cascaderId]),window[rtconfig.keycloak_realm+"_cascaderOptions_"+this.cascaderId];try{const e=await rt.get(this.requestApiUrl);return window[rtconfig.keycloak_realm+"_cascaderOptions_"+this.cascaderId]=e,1===this.dataLoadType&&(this.cascaderOptions=e),e}catch(e){return rt.showErrorToast(e),[]}},getCascaderObj:(e,t)=>e.map((function(e,r,i){for(var a of t)if(a.value==e)return t=a.children,a;return null})),handleChange(e){let t=[];var r;e.length&&(r=this.getCascaderObj(e,window[rtconfig.keycloak_realm+"_cascaderOptions_"+this.cascaderId]),t=e.map((e,t)=>{if(r[t]&&r[t].label)return{id:e,name:r[t].label}}).filter(e=>!!e));this.$emit("input",t),this.$emit("callback",t),this.$emit("customValidata",this.formitemkey,t.length>0)}}},sa=(r("c780"),Object(_.a)(oa,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"cascader-control-new plat-cascader-control-new"},[r("rc-cascader",e._b({ref:"myCascader",attrs:{"display-value":e.displayValue,disabled:e.disabled,required:e.required,filterable:"",options:2===e.dataLoadType?[]:e.cascaderOptions,props:e.cascaderProps,"filter-method":e.dataFilter,clearable:""},on:{input:e.handleChange},model:{value:e.currentValue,callback:function(t){e.currentValue=t},expression:"currentValue"}},"rc-cascader",e.$attrs,!1))],1)}),[],!1,null,"3892324e",null).exports),la={name:"RtSaasImageField",components:{ElImageViewer:ee.a.ELEMENT.Image.components.ImageViewer},mixins:[Qe],props:{attributename:{type:String,required:!0,default:""},entityname:{type:String,required:!0,default:""},objectid:{type:String|Object,required:!0,default:""},value:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1}},data:()=>({versionUploadUrl:rt.getBaseUrl()+"api/attachment/imagefieldupload2",fileData:{objectid:"",attributename:"",entityname:"",filename:""},dialogImageUrl:"",dialogVisible:!1,color:"",file:null,downloadUrl:"",acceptType:".png, .jpg, .jpeg, .bmp, .gif"}),computed:{config:function(){return{Authorization:window.rtconfig.isLocalAuthen?"Bearer "+this.$store.state.auth.accessToken:"Bearer "+this.$keycloak.token}}},watch:{value(e){this.setDownloadUrlByValue()}},mounted:function(){this.setDownloadUrlByValue()},methods:{setDownloadUrlByValue(){this.value&&(this.value.indexOf("http")<0||this.value.indexOf("/api")<0)?this.getDownloadUrl(this.value).then(e=>{this.downloadUrl=e}):this.downloadUrl=this.value},closeImage(){this.dialogVisible=!1},beforeAvatarUpload(e){var t=!1;if("image/png"!=e.type&&"image/jpeg"!=e.type&&"image/bmp"!=e.type&&"image/gif"!=e.type||(t=!0),!t)return rt.showErrorToast(this.$_t("platform.imageOnlyUploadimgfiles","只能上传图片类型的文件")),!1;this.fileData.filename=e.name,this.fileData.attributename=this.attributename,this.fileData.entityname=this.entityname,this.fileData.objectid=this.objectid,this.file=e},uploadSuccess(e,t,r){if(0==e.ErrorCode){this.$message({showClose:!0,message:this.$_t("platform.UploadSuccess","上传成功!"),type:"success"});var i=e.Data;if(this.$emit("input","api/attachment/download/"+this.entityname+"/"+i,null,this.attributename),this.$refs.avatarUploader&&this.$refs.avatarUploader.$children&&this.$refs.avatarUploader.$children[0]){var a=this.$refs.avatarUploader.$children[0].$el;a&&(a.style["border-color"]="")}}else this.$message({showClose:!0,message:e.Message,type:"error"})},uploadError(e){this.$message({showClose:!0,message:e,type:"error"})},handleRemove(){this.checkIsPreview()||this.$confirm(this.$_t("ThisActionDeletePerpetually","此操作将永久删除记录,是否继续?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{var e="api/attachment/imagefielddelete/"+this.entityname+"/"+this.attributename+"/"+this.objectid;rt.get(e).then(e=>{rt.showSuccessToast(this.$_t("SUCCESS_DELETE","删除成功")),this.$emit("input",null,null,this.attributename)}).catch(e=>{rt.showErrorToast(e)})})},handlePictureCardPreview(){this.dialogImageUrl=this.downloadUrl,this.dialogVisible=!0},handleDownload(){if(!this.checkIsPreview()){var e=this.value;window.open(e)}},checkIsPreview(){return!!this.isPreview&&(rt.showErrorToast(this.$_t("platform.imagefield_not_button","当前预览模式,不支持按钮操作 .")),!0)},checkRequired(e){let t;this.$refs.avatarUploader&&this.$refs.avatarUploader.$children&&this.$refs.avatarUploader.$children[0]&&(t=this.$refs.avatarUploader.$children[0].$el),t.style["border-color"]=e?"#FC5733":""},upload(){if(this.fileData.objectid){var e=[];e.push({fileName:this.file.name,contentLength:this.file.size,contentType:this.file.type});var t={ObjectId:this.fileData.objectid,ObjectTypeName:this.fileData.entityname,FileNameList:e};rt.post("api/attachment/GetUploadUrls",t).then(e=>{if(null==e||e.length<=0)rt.showErrorToast("未获取到上传附件的url");else{var t=e[0],r=t.OssProvider,i=t.filePath,a=t.fileName,n={objectid:this.fileData.objectid,attributename:this.fileData.attributename,entityname:this.fileData.entityname,filename:a,filesize:this.file.size,filepath:i};"local"==r?this.oldUpload():"huaweiobs"==r?this.uploadByHuaweiobs(t,this.file).then(()=>this.saveAnnotation(n)):"azureblob"==r?this.uploadByAzureblob(t,this.file).then(()=>this.saveAnnotation(n)):"awss3"==r?this.uploadByAwss3(t,this.file).then(()=>this.saveAnnotation(n)):this.uploadByOther(t,this.file).then(()=>this.saveAnnotation(n))}}).catch((function(e){rt.showErrorToast(e)}))}else rt.showErrorToast(this.$_t("platform.imageobjectid","请先保存信息再上传图片"))},saveAnnotation(e){rt.post("api/attachment/imagefieldafterupload2",e).then(e=>{rt.showSuccessToast(this.$_t("platform.UploadSuccess","上传成功"));let t=e;if(this.$emit("input",t,null,this.attributename),this.$refs.avatarUploader&&this.$refs.avatarUploader.$children&&this.$refs.avatarUploader.$children[0]){var r=this.$refs.avatarUploader.$children[0].$el;r&&(r.style["border-color"]="")}}).catch((function(e){rt.showErrorToast(e)}))},oldUpload(){var e=new FormData;e.append("objectid",this.objectid),e.append("attributename",this.attributename),e.append("entityname",this.entityname),e.append("filename",this.file.name),e.append("file",this.file),rt.post("api/attachment/imagefieldupload2",e).then(e=>{rt.showSuccessToast(this.$_t("platform.UploadSuccess","上传成功"));let t=e;if(this.$emit("input",t,null,this.attributename),this.$refs.avatarUploader&&this.$refs.avatarUploader.$children&&this.$refs.avatarUploader.$children[0]){var r=this.$refs.avatarUploader.$children[0].$el;r&&(r.style["border-color"]="")}}).catch((function(e){rt.showErrorToast(e)}))}}},da=(r("f182"),Object(_.a)(la,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-upload",{ref:"avatarUploader",staticClass:"avatar-uploader plat-image-field",attrs:{accept:e.acceptType,disabled:e.disabled,action:e.versionUploadUrl,headers:e.config,"show-file-list":!1,data:e.fileData,"on-success":e.uploadSuccess,"auto-upload":!0,"before-upload":e.beforeAvatarUpload,"http-request":e.upload}},[e.value?[r("img",{staticClass:"avatar",attrs:{src:e.downloadUrl}}),r("div",{staticClass:"el-upload-list--picture-card"},[r("span",{staticClass:"el-upload-list__item-actions"},[r("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return t.stopPropagation(),e.handlePictureCardPreview()}}},[r("i",{staticClass:"el-icon-zoom-in"})]),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return t.stopPropagation(),e.handleDownload()}}},[r("i",{staticClass:"el-icon-download"})]),e.disabled?e._e():r("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return t.stopPropagation(),e.handleRemove()}}},[r("i",{staticClass:"el-icon-delete"})])])])]:r("div",{class:e.disabled?"avator-uploader-main is-disabled":"avator-uploader-main"},[r("rc-icon",{staticClass:"avatar-uploader-icon",attrs:{name:"rt-base-plus",color:e.disabled?e.SCSS_VARIABLES.NEUTRAL_COLOR_PLACEHOLDER:e.SCSS_VARIABLES.NEUTRAL_COLOR_TERTIARY,size:"50"}}),r("div",{staticClass:"avatar-uploader-word"},[e._v(" "+e._s(e.$_t("platform.imagefieldAdd","请添加文件"))+" ")])],1)],2),e.dialogVisible?r("el-image-viewer",{attrs:{"on-close":e.closeImage,"url-list":[e.dialogImageUrl]}}):e._e()],1)}),[],!1,null,"26f91821",null).exports),ca={name:"RtSaasImageCell",mixins:[Qe],props:{value:{type:String,required:!1,default:""},align:{type:String,default:""}},data:()=>({downloadUrl:""}),computed:{isNullValueDisplay(){return!!this.$store.state.systemparameter&&"true"==this.$store.state.systemparameter.IsNullValueDisplay}},watch:{value(e){this.getDownloadUrl(e).then(e=>{e.startWith("http")?this.downloadUrl=e:this.downloadUrl=rt.getBaseUrl()+e})}},mounted:function(){this.getDownloadUrl(this.value).then(e=>{e&&(e.startWith("http")?this.downloadUrl=e:this.downloadUrl=rt.getBaseUrl()+e)})},methods:{}},ua=(r("3612"),Object(_.a)(ca,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{class:"rt-saas-image-cell is-"+this.align},[this.downloadUrl?t("img",{staticClass:"avatar",attrs:{src:this.downloadUrl}}):this.isNullValueDisplay?t("span",[this._v("--")]):t("span")])}),[],!1,null,"3089453c",null).exports),pa=r("c137").a,ha=(r("fea7"),r("74bf"),Object(_.a)(pa,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"addressLocation plat-address-location",attrs:{disabled:e.readonly}},[r("div",{attrs:{id:"l-map"}}),r("rc-input",e._b({attrs:{id:"addressLocation",clearable:"",disabled:e.readonly,type:"text",size:"20","show-suffix-icon":!1},on:{focus:e.focusHandle},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},"rc-input",e.$attrs,!1)),r("div",{attrs:{id:"searchResultPanel"}}),r("div",{attrs:{id:"bmapContainer"}})],1)}),[],!1,null,"6b71cba3",null).exports),fa={name:"RtPreviewVideo",data:()=>({isMounted:!1,firstFileUrl:""}),methods:{showPlayer(e){var t,r,i;if(!this.isMounted)return this.isMounted=!0,this.firstFileUrl=e,void rt.showLoadingToast();null===(t=this.$refs.customerComponent)||void 0===t||null===(r=t.$refs.PlatPreviewVideo)||void 0===r||null===(i=r.showPlayer)||void 0===i||i.call(r,e)},firstLoadedHandler(){var e,t,r;rt.hideLoadingToast(),null===(e=this.$refs.customerComponent)||void 0===e||null===(t=e.$refs.PlatPreviewVideo)||void 0===t||null===(r=t.showPlayer)||void 0===r||r.call(t,this.firstFileUrl)},closePlayer(){var e,t,r;null===(e=this.$refs.customerComponent)||void 0===e||null===(t=e.$refs.PlatPreviewVideo)||void 0===t||null===(r=t.closePlayer)||void 0===r||r.call(t)}}},ma=Object(_.a)(fa,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[this.isMounted?t("customer-component",{ref:"customerComponent",attrs:{appkey:"PlatPreviewVideo","component-name":"PlatPreviewVideo","custom-component-ref":"PlatPreviewVideo"},on:{customComponentLoaded:this.firstLoadedHandler}}):this._e()],1)}),[],!1,null,null,null).exports,ga={name:"RtPreviewPdf",components:{},props:["pdfReviewerURL"],data(){return{dialogVisible:!1,src:"",pdfUrl:"",previewType:"system",previewTypeList:[{name:this.$_t("crm.preview.pdf.system","系统推荐"),value:"system"},{name:this.$_t("crm.preview.pdf.browser","浏览器解析"),value:"browser"},{name:this.$_t("crm.preview.pdf.other1","备选方案1"),value:"other1"},{name:this.$_t("crm.preview.pdf.other2","备选方案2"),value:"other2"}]}},methods:{show(e){this.src=null,this.dialogVisible=!0,e.startsWith("http")?this.pdfUrl=e:this.pdfUrl=rt.getBaseUrl()+e,this.getUrl()},getUrl(){switch(this.previewType){case"system":this.pdfReviewerURL&&!rt.isNullOrWhiteSpace(this.pdfReviewerURL)?this.src=this.pdfReviewerURL+"?file="+encodeURIComponent(this.pdfUrl):this.src=this.pdfUrl;break;case"browser":this.src=this.pdfUrl;break;case"other1":this.src=rt.getPublicUrl()+"pdf/web/viewer.html?file="+encodeURIComponent(this.pdfUrl);break;case"other2":this.src=rt.getPublicUrl()+"newpdf/index.html?file="+encodeURIComponent(this.pdfUrl)}},handlePreviewTypeChange(e){this.previewType=e,this.getUrl()},handleClose(){this.dialogVisible=!1}}},ba=(r("7b5b"),Object(_.a)(ga,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{ref:"pdfDialog",attrs:{"append-to-body":"",title:e.$_t("platform.previewPdfFile","文件预览"),"show-footer":!1,width:"65%","custom-class":"pdf-dialog-wrap plat-pdf-dialog","before-close":e.handleClose,"full-screen-page":!0},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("div",{staticClass:"pdf-dialog-header"},[r("rt-list-dropdown",{attrs:{"menu-list":e.previewTypeList},on:{input:e.handlePreviewTypeChange},model:{value:e.previewType,callback:function(t){e.previewType=t},expression:"previewType"}})],1),e.previewType?r("div",{ref:"printContent",staticClass:"pdf-dialog"},[r("iframe",{key:e.src,staticClass:"plat-pdf-iframe",attrs:{src:e.src,frameborder:"0",scrolling:"no"}})]):e._e()])}),[],!1,null,"2ce1e0de",null).exports);function ya(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let va=class extends N.a{constructor(...e){super(...e),ya(this,"url",void 0),ya(this,"visible",void 0),ya(this,"autoplay",void 0),ya(this,"isPlaying",!1),ya(this,"isInitListener",!1)}get audioUrl(){return this.url}get dialogVisible(){return this.visible}set dialogVisible(e){this.$emit("update:visible",e)}handleUrlChanged(e){const t=this.$refs.audioPlayer;t&&(t.src=e,this.$nextTick(()=>{t.load()}))}handleVisibleChanged(e){e?this.$nextTick(()=>{this.initAudioListeners(),this.autoplay&&this.play()}):(this.stop(),this.removeAudioListeners())}mounted(){this.$nextTick(()=>{this.initAudioListeners()})}beforeDestroy(){this.removeAudioListeners()}initAudioListeners(){if(this.isInitListener)return;const e=this.$refs.audioPlayer;e&&(e.addEventListener("play",this.onPlay),e.addEventListener("pause",this.onPause),e.addEventListener("loadedmetadata",this.onLoadedMetadata),e.addEventListener("timeupdate",this.onTimeUpdate),this.isInitListener=!0)}removeAudioListeners(){const e=this.$refs.audioPlayer;e&&(e.removeEventListener("play",this.onPlay),e.removeEventListener("pause",this.onPause),e.removeEventListener("loadedmetadata",this.onLoadedMetadata),e.removeEventListener("timeupdate",this.onTimeUpdate),this.isInitListener=!1)}onLoadedMetadata(){const e=this.$refs.audioPlayer;e&&this.$emit("duration-changed",e.duration)}onTimeUpdate(){const e=this.$refs.audioPlayer;e&&this.$emit("progress-changed",e.currentTime/e.duration)}onPlay(){this.isPlaying=!0}onPause(){this.isPlaying=!1}play(){const e=this.$refs.audioPlayer;e&&(e.play(),this.isPlaying=!0)}stop(){const e=this.$refs.audioPlayer;e&&(e.pause(),this.isPlaying=!1)}togglePlay(){this.isPlaying?this.stop():this.play()}closeDialog(){this.dialogVisible=!1}};Object(J.__decorate)([Object(te.d)({type:String,required:!0})],va.prototype,"url",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,required:!0})],va.prototype,"visible",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,required:!1,default:!1})],va.prototype,"autoplay",void 0),Object(J.__decorate)([Object(te.g)("url")],va.prototype,"handleUrlChanged",null),Object(J.__decorate)([Object(te.g)("dialogVisible")],va.prototype,"handleVisibleChanged",null),va=Object(J.__decorate)([Object(te.a)({name:"RtPreviewAudio"})],va);var xa=va,wa=(r("0cc2"),Object(_.a)(xa,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{attrs:{"custom-class":"audio-preview-dialog","append-to-body":"",title:e.$_t("platform.audiopreview.title","音频播放"),size:"small"},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("div",{staticClass:"audio-wrapper"},[r("audio",{ref:"audioPlayer",staticClass:"audio",attrs:{src:e.audioUrl,controls:"",controlsList:"nodownload noplaybackrate"}})]),r("div",{attrs:{slot:"footer-right"},slot:"footer-right"},[r("rc-button",{on:{click:e.closeDialog}},[e._v(" "+e._s(e.$_t("xpc.dialog.cancel","取消"))+" ")]),r("rc-button",{attrs:{type:"primary"},on:{click:e.togglePlay}},[e._v(" "+e._s(e.isPlaying?e.$_t("platform.audiopreview.pause","暂停"):e.$_t("platform.audiopreview.play","播放"))+" ")])],1)])}),[],!1,null,"83cc7ce6",null).exports),_a={name:"RtEntityPluginMng",props:["objectId"],data:()=>({isMounted:!1}),mounted(){this.isMounted=!0}},Ea=Object(_.a)(_a,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"rt-entity-plugin-mng"},[this.isMounted?t("customer-component",this._g({ref:"customerComponent",attrs:{appkey:"platEntityPluginMng","component-name":"platEntityPluginMng","custom-component-ref":"platEntityPluginMng","object-id":this.objectId}},this.$listeners)):this._e()],1)}),[],!1,null,null,null).exports,Ca={name:"RtSaasTabs",props:{relationFilterValue:{type:String,default:""},showRelatedButton:{type:Boolean,default:!0},lazy:{type:Boolean,default:!1},rcTabPaneNode:{type:Object},fromEntityData:{type:Object},currentName:String,objectTypeName:String,formRulesExtra:{type:Array,default:()=>[]},isSticky:{type:Boolean,default:!1},formHeaderId:{type:String,default:""},stepsId:{type:String,default:""},currentId:{type:String,default:""},objectId:{type:String,default:""},visibleChildren:{type:Array},tabSubgridRels:{type:Object,default:()=>({})},formStatus:{type:Number}},data(){return{list:[],currentKey:null,stepsHeight:0,headerHeight:0,activeName:this.currentName,badgeList:[]}},watch:{showRelatedButton(e){e&&this.getRelevantEntities()},currentName(e){e!==this.activeName&&(this.activeName=e)}},mounted(){this.registerBusListener(),this.getRelevantEntities(),this.$nextTick(()=>{this.stickyStepIsLoaded()}),this.lazy&&0!==this.formStatus&&this.getSubgridListBadges()},methods:{registerBusListener(){this.$PlatUtils.listenerHook(this,"platStepsIsStickyLoad_"+this.currentId,this.stickyStepIsLoaded),this.tabSubgridRels&&Object.keys(this.tabSubgridRels).length&&Object.keys(this.tabSubgridRels).forEach(e=>{Object.keys(this.tabSubgridRels[e]).forEach(t=>{this.$PlatUtils.listenerHook(this,"subgridDataLoaded_"+t,t=>{this.updateBadge(e,t)})})})},__setTabTop(){const e=this.$el.querySelector(".rt-tabs__header");e&&(e.style.top=(this.stepsHeight||0)+this.headerHeight+"px")},stickyStepIsLoaded(){if(this.isSticky){const e=document.querySelector(".plat-step-is-sticky_"+this.stepsId+this.objectId);e&&this.$xpc.addResizeObserver(e,this,e=>{const t=e[0].target;this.stepsHeight=t.clientHeight,this.__setTabTop()});const t=document.querySelector(".vform-header_"+this.formHeaderId+this.objectId);t&&this.$xpc.addResizeObserver(t,this,e=>{const t=e[0].target;this.headerHeight=t.clientHeight,this.__setTabTop()})}},setCurrentName(e){this.$refs.tabRef&&(this.$refs.tabRef.currentName=e),this.$emit("input",e),this.$emit("storeTabCurrentName",e),this.activeName=e},addTabs(e){this.activeName=e.LogicalName;let t={tag:"vlistcore",props:{objectTypeName:e.LogicalName,newTabObject:{isRelatedView:!0,relationshipName:e.relationshipName,relationFilterAttribute:e.IsManyToMany?e.relationshipName:e.ReferencingAttributename,relationFilterValue:this.relationFilterValue||this.objectId,isManyToManyRelationship:e.IsManyToMany,showBadage:!1,fromEntityName:this.fromEntityData[this.fromEntityData.primaryAttribute],fromEntityLogicalName:this.fromEntityData.$logicalname},queryId:""},key:e.LogicalName};const r={tag:"rc-tab-pane",props:{label:e.DisplayName?e.DisplayName:this.$_t("lable.nodata","暂无"),name:e.LogicalName},children:[t]};this.$emit("storeTabPane",r)},convertVnodeItem(e,t){if(!t||0==t.children.length)return e();let r=t.children[0],i=e("vlistcore",{props:r.props,key:r.key},[]);return e(t.tag,{key:"vform_relevant_tab_"+r.key,class:"plat-tabpane",props:{...t.props,name:r.key}},[i])},getRelevantEntities(){if(this.showRelatedButton&&this.objectTypeName){let e="api/vform/GetRelevantEntities?entityLogicalName="+this.objectTypeName;"VFormPreview"==this.$route.name&&(e+="&isPreview=true"),rt.get(e).then(e=>{this.list=e.map((e,t)=>(e.$key=t,e)),this.formRulesExtra.length&&(this.list=this.list.filter(e=>!this.formRulesExtra.includes(e.LogicalName)))})}},handleDropDownInput(e){this.currentKey=e;const t=this.list.find(t=>t.$key===e);t&&this.addTabs(t)},updateBadge(e,t){0!==this.formStatus&&this.$emit("update-badge",e,t)},async getSubgridListBadges(){const e=[],t=new Map;Object.keys(this.tabSubgridRels).forEach(r=>{Object.keys(this.tabSubgridRels[r]).forEach(i=>{const a=this.tabSubgridRels[r][i];if(!a.relationFilterValue)return;let n;e.push({queryid:a.queryid,relationFilterAttribute:a.relationFilterAttribute,relationFilterValue:a.relationFilterValue,relationshipName:a.relationshipName}),(n=t.get(a.queryid))?(n.push(r),t.set(a.queryid,n)):t.set(a.queryid,[r])})}),e.length&&(await rt.post("api/vlist/GetSubgridListBadges",e)).forEach(e=>{if(e.QueryId){const r=t.get(e.QueryId);r&&r.forEach(t=>{t&&this.updateBadge(t,e.BadgeCount)})}})}},render:function(e){if(!this.$slots.default)return;let t=e("rc-list-dropdown",{slot:"label",props:{value:this.currentKey,menuList:this.list,staticTitle:this.$_t("platform.relatedBtnRelevant","相关"),alias:{name:"DisplayName",value:"$key"},titleFontSize:"14",titleColor:this.SCSS_VARIABLES.NEUTRAL_COLOR_SECONDARY},on:{input:this.handleDropDownInput}},[]);if(this.rcTabPaneNode){let t=this.convertVnodeItem(e,this.rcTabPaneNode),r=this.$slots.default.findIndex(e=>e.key===t.key);-1!==r?this.$slots.default[r]=t:this.$slots.default.push(t)}const r=this.visibleChildren.filter(e=>e.children.length>0);if(r&&this.activeName){var i;const e=r;!e||!e.length||e.some(e=>e.props.name===this.activeName)||this.activeName===(null===(i=this.rcTabPaneNode)||void 0===i?void 0:i.props.name)||(this.activeName=e[0].props.name)}let a=this.showRelatedButton?e("rc-tab-pane",{props:{label:"相关",disabled:!0,name:"related"}},[t]):null;return e("rc-tabs",{class:{"rt-saas-tabs plat-saas-tabs":!0},key:this.currentId,ref:"tabRef",props:{extraPosition:"right",activeName:this.activeName,maxLength:100,size:"small"},on:{...this.$listeners,input:this.setCurrentName}},[...this.$slots.default,a])}},Na=(r("6dd5"),Object(_.a)(Ca,void 0,void 0,!1,null,"6e08621b",null).exports),Sa={name:"RtSaasSetMenu",props:{platform:{type:String,default:"xrm",required:!1},menuDesc:{type:String,default:"",required:!1},menuCode:{type:String,default:"",required:!1},menuId:{type:String,default:"",required:!1},menuUrl:{type:String,default:"",required:!1}},data:function(){return{editForm:{MenuDesc:this.menuDesc,MenuId:this.menuId,MenuCode:this.menuCode,Platform:this.platform,FormUrl:this.menuUrl,MenuSeq:"0",optionValue:[],IsActive:!0,IsOpenNewTab:!1,new_linktype:0,MenuRemark:"",new_allowoffline:!1,subApp:{},subAppid:null,subAppName:null,BindType:0},loading:!1,menuOption:[]}},mounted(){this.getMenuList(this.platform),this.loadMenu()},methods:{loadMenu:function(){var e="";this.menuId&&null!=this.menuId&&""!=this.menuId?e="api/PortalMenu/MenuInfo/"+this.menuId:this.menuUrl&&null!=this.menuUrl&&""!=this.menuUrl&&(e="api/PortalMenu/MenuInfoByUrl?menuUrl="+encodeURIComponent(this.menuUrl)),""!=this.apiUrl?(rt.showLoadingToast(this.$_t("common.loading","正在加载数据...")),rt.get(e).then(e=>{var t=e;this.editForm.MenuDesc=t.MenuDesc,this.editForm.MenuCode=t.MenuCode,t.MenuSeq||0===t.MenuSeq?this.editForm.MenuSeq=t.MenuSeq.toString():this.editForm.MenuSeq="",this.editForm.PmenuCode=t.PmenuCode,this.editForm.ParentMenuDesc=t.ParentMenuDesc,this.editForm.FormUrl=t.FormUrl,this.editForm.MenuId=t.MenuId,this.editForm.Platform=t.Platform,this.editForm.IsActive=1!=t.StateCode,this.editForm.MenuRemark=t.MenuRemark,this.editForm.IsOpenNewTab=t.IsOpenNewTab,this.editForm.new_linktype=t.new_linktype,this.editForm.CurrentProject=t.CurrentProject,this.editForm.new_allowoffline=t.new_allowoffline,null!=t.MenuId?this.editForm.optionValue=t.allPmenuCode.reverse():this.editForm.optionValue=[],t.subAppid?this.editForm.subApp={id:t.subAppid,name:t.subAppName}:this.editForm.subApp={},rt.hideLoadingToast()}).catch(()=>{rt.hideLoadingToast()})):this.editForm=this.getBlankMenu()},getMenuList:function(e){if(e&&""!=e){let t="api/PortalMenu/AllMenu/"+e;rt.get(t).then(e=>{for(var t of(this.menuOption=[],e)){var r={value:t.MenuId,label:t.MenuDesc,children:[]},i=[];for(var a of t.SubMenu){var n={value:a.MenuId,label:a.MenuDesc};i.push(n)}r.children=i,this.menuOption.push(r)}}).catch(e=>{rt.showErrorToast(e)})}else this.menuList=[]},saveEditMenu:function(){this.$refs.editForm.validate(e=>{if(e){if(this.editForm.Icon==rt.getPublicUrl()+"imgs/upload.png"&&(this.editForm.Icon=""),this.editForm.StateCode=this.editForm.IsActive?0:1,null!=this.editForm.optionValue&&this.editForm.optionValue.length>0){var t=this.editForm.optionValue.length;-1!=this.editForm.optionValue[t-1]?this.editForm.PmenuCode=this.editForm.optionValue[t-1]:this.editForm.PmenuCode=""}this.editForm.subApp?this.editForm.subAppid=this.editForm.subApp.id:this.editForm.subAppid=null,this.saveMenuToServer(this.editForm)}})},saveMenuToServer:function(e){this.loading=!0,rt.post("api/Admin/SystemMenu/Save",e).then(e=>{this.loading=!1,rt.showSuccessToast(this.$_t("platform.saasSetmenuSuccessfullysaved","保存成功!"))}).catch(e=>{this.loading=!1,rt.showErrorToast(e)})}}},Ta=(r("361f"),Object(_.a)(Sa,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-view",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[r("rc-form",{ref:"editForm",attrs:{model:e.editForm,"labrc-width":"120px","labrc-position":"left"}},[r("rc-header",[r("rc-detail-header",{attrs:{"show-back":!1}},[r("rc-header-icon",{attrs:{slot:"icon",icon:"rt-base-defaultIcon"},slot:"icon"}),r("rc-header-title",{attrs:{title:e.$_t("platform.saasSetmenuSetting","设置菜单")}}),r("template",{slot:"btn"},[r("rc-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary"},on:{click:e.saveEditMenu}},[e._v(" "+e._s(e.$_t("BUTTON_STORAGE","保存"))+" ")])],1)],2)],1),r("rc-content",[r("rc-row",{attrs:{gutter:16}},[r("rc-col",[r("rc-card",[r("rc-section",[r("div",{staticClass:"rt-form-wrapper"},[r("rc-row",{attrs:{gutter:30}},[r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{prop:"MenuDesc",label:e.$_t("wxcustomermenu.menu_name","菜单名称"),rules:[{required:!0,message:this.$_t("platform.saasSetmenu_not_name","菜单名称不能为空"),trigger:"blur"}]}},[r("rc-input",{attrs:{placeholder:e.$_t("common.clickentername","点击此处输入名称")},model:{value:e.editForm.MenuDesc,callback:function(t){e.$set(e.editForm,"MenuDesc",t)},expression:"editForm.MenuDesc"}})],1)],1),r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{prop:"MenuCode",label:e.$_t("platform.saasSetmenuCoding","菜单编码"),rules:[{required:!0,message:this.$_t("platform.saasSetmenuCoding_notNull","菜单编码不能为空"),trigger:"blur"}]}},[r("rc-input",{attrs:{placeholder:e.$_t("platform.saasSetmenuClick","点击此处输入编码"),disabled:e.menuId},model:{value:e.editForm.MenuCode,callback:function(t){e.$set(e.editForm,"MenuCode",t)},expression:"editForm.MenuCode"}})],1)],1)],1),r("rc-row",{attrs:{gutter:30}},[r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{prop:"optionValue",label:e.$_t("common.superiormenu","上级菜单")}},[r("rc-cascader",{staticClass:"saas-cascader",attrs:{options:e.menuOption,"show-all-levels":!0,"change-on-select":""},on:{change:e.handleChange},model:{value:e.editForm.optionValue,callback:function(t){e.$set(e.editForm,"optionValue",t)},expression:"editForm.optionValue"}})],1)],1),r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{prop:"MenuSeq",label:e.$_t("platform.saasSetmenuSequence","菜单顺序"),rules:[{required:!0,message:this.$_t("platform.saasSetmenuSequence_notNull","菜单顺序不能为空"),trigger:"blur"}]}},[r("rc-input",{attrs:{type:"number",placeholder:e.$_t("platform.saasSetmenuSequenceClick","点击此处输入菜单顺序")},model:{value:e.editForm.MenuSeq,callback:function(t){e.$set(e.editForm,"MenuSeq",t)},expression:"editForm.MenuSeq"}})],1)],1)],1),r("rc-row",{attrs:{gutter:30}},[r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{prop:"subApp",label:e.$_t("subapp","子应用")}},[r("rt-lookup",{attrs:{disabled:!1,entity:"staticresource","name-field":"appkey","id-field":"staticresourceid","dialog-display-fields":[{name:"appkey",label:"appkey",width:150},{name:"displayname",label:this.$_t("platform.saasSetmenu.new_displayname","显示名称"),width:150},{name:"appdescription",label:this.$_t("platform.saasSetmenu.new_describe","描述"),width:150},{name:"createdon",label:this.$_t("platform.saasSetmenu.new_createdon","创建时间"),width:100}],"dialog-orderby-fields":"appkey asc","dialog-filter-fields":"appkey,appdescription,displayname","dialog-condition-fields":"resourcetype eq 10"},model:{value:e.editForm.subApp,callback:function(t){e.$set(e.editForm,"subApp",t)},expression:"editForm.subApp"}})],1)],1)],1)],1)])],1)],1)],1)],1)],1)],1)}),[],!1,null,"5a8b7af8",null).exports),ka=r("1fb5"),Oa={name:"UploadSubappAndPublish",components:{},mixins:[Qe],props:{objectId:String,editForm:Object},data:()=>({clipboardData:null}),computed:{},methods:{findVformCore(){for(var e=this.$parent;e&&e.$vnode&&e.$vnode.tag;){if(e.$vnode.tag.contains("-vformcore"))return e;e=e.$parent}},newreadFile(e){var t=[];t.push({fileName:e.name,contentLength:e.size,contentType:"application/zip"});var r={ObjectId:this.objectId,ObjectTypeName:"staticresource",FileNameList:t};return rt.post("api/attachment/GetUploadUrls",r).then(t=>{if(null==t||t.length<=0)rt.showErrorToast("未获取到上传附件的url");else{var r=t[0],i=r.OssProvider,a=r.filePath,n=r.fileName,o={appId:this.objectId,appName:this.editForm.appkey,filePath:a,fileName:n,fileSize:e.size};"local"==i?this.uploadAndPublish(e):"huaweiobs"==i?this.uploadByHuaweiobs(r,e).then(()=>this.CreateAndPublish(o)):"azureblob"==i?this.uploadByAzureblob(r,e).then(()=>this.CreateAndPublish(o)):"awss3"==i?this.uploadByAwss3(r,e).then(()=>this.CreateAndPublish(o)):this.uploadByOther(r,e).then(()=>this.CreateAndPublish(o))}}).catch((function(e){rt.showErrorToast(e)}))},CreateAndPublish(e){rt.post("api/subapp/Create",e).then(e=>{rt.showSuccessToast(this.$_t("common.uploadSuccessAndPublish","上传成功,如需生效请发布!"));let t=this.findVformCore();t&&t.subGridReload&&(t.subGridReload("subappversion"),t.subGridReload("staticresourceversion"),t.subGridReload("staticresourcecomponents"),t.subGridReload("businesscomponent"),t.load())}).catch(e=>{rt.showErrorToast(this.$_t("platform.uploadSubappAndPublish_uploaderr","上传失败:")+e)})},uploadAndPublish(e){var t=e,r=new FileReader;let i=this.objectId,a=this.editForm.appkey;r.onerror=function(e){rt.showErrorToast(this.$_t("platform.uploadSubappAndPublishFileFailed","文件加载失败."))};const n=this;r.onload=function(t){var r=t.result;if(t.result||(r=t.currentTarget.result),r){var o=new Uint8Array(r),s=ka.fromByteArray(o);if(s&&s.length>0){var l={appId:i,appName:a,version:"",content:s,fileName:e.name};rt.post("api/subapp/upload",l).then(e=>{rt.showSuccessToast(n.$_t("common.uploadSuccess","上传成功"));let t=n.findVformCore();t&&t.subGridReload&&(t.subGridReload("subappversion"),t.subGridReload("staticresourceversion"))}).catch(e=>{rt.showErrorToast(n.$_t("platform.uploadSubappAndPublish_uploaderr","上传失败:")+e)})}}else rt.showErrorToast(n.$_t("platform.uploadSubappAndPublishContentEmpty","上传内容为空."))},r.readAsArrayBuffer(t)},pasteFile(e){this.clipboardData=e.clipboardData,this.clipboardData||(e.originalEvent&&e.originalEvent.clipboardData?this.clipboardData=e.originalEvent.clipboardData:this.clipboardData=window.clipboardData);var t=this.clipboardData.files[0];t&&t.type&&t.type.match(/zip/i)?this.newreadFile(t):rt.showErrorToast(this.$_t("platform.uploadSubappAndPublish_zip","只支持zip压缩格式"))}}},Ia=(r("ea7b"),Object(_.a)(Oa,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"upload-subapp plat-subapp"},[t("input",{attrs:{type:"text",readonly:"",name:"upload"},domProps:{value:this.$_t("platform.uploadSubappAndPublishPaste","在这里粘贴zip文件上传并发布(仅支持谷歌浏览器)")},on:{paste:this.pasteFile}})])}),[],!1,null,"c915233a",null).exports),Da={name:"UploadReviewAndPublish",components:{},mixins:[Qe],props:{objectId:String,editForm:Object},data:()=>({clipboardData:null}),computed:{},methods:{findVformCore(){for(var e=this.$parent;e&&e.$vnode&&e.$vnode.tag;){if(e.$vnode.tag.contains("-vformcore"))return e;e=e.$parent}},newreadFile(e){var t=[];t.push({fileName:e.name,contentLength:e.size,contentType:"application/png"});var r={ObjectId:this.objectId,ObjectTypeName:"new_codereview",FileNameList:t};return rt.post("api/attachment/GetUploadUrls",r).then(t=>{if(null==t||t.length<=0)rt.showErrorToast("未获取到上传附件的url");else{var r=t[0],i=r.OssProvider,a=r.filePath,n={FileName:r.fileName,FilePath:a,FileSize:e.size,IsOverWrite:"0",NodeText:"",ObjectId:this.objectId,ObjectTypeName:"new_codereview"};"local"==i?this.uploadAndPublish(e):"huaweiobs"==i?this.uploadByHuaweiobs(r,e).then(()=>this.CreateAndPublish(n)):"azureblob"==i?this.uploadByAzureblob(r,e).then(()=>this.CreateAndPublish(n)):"awss3"==i?this.uploadByAwss3(r,e).then(()=>this.CreateAndPublish(n)):this.uploadByOther(r,e).then(()=>this.CreateAndPublish(n))}}).catch((function(e){rt.showErrorToast(e)}))},CreateAndPublish(e){rt.post("api/attachment/UploadAttachmentByOSS",e).then(e=>{rt.showSuccessToast(this.$_t("common.uploadSuccess","上传成功"));let t=this.findVformCore();if(t.$refs)for(let r in t.$refs)r.indexOf("notes")>-1&&t.$refs[r].getAttachment()}).catch(e=>{rt.showErrorToast(this.$_t("platform.uploadSubappAndPublish_uploaderr","上传失败:")+e)})},uploadAndPublish(e){var t=e,r=new FileReader;let i=this.objectId,a=this.editForm.appkey;r.onerror=function(e){rt.showErrorToast(this.$_t("platform.uploadSubappAndPublishFileFailed","文件加载失败."))},r.onload=function(t){var r=t.result;if(t.result||(r=t.currentTarget.result),r){var n=new Uint8Array(r),o=ka.fromByteArray(n);if(o&&o.length>0){var s={appId:i,appName:a,version:"",content:o,fileName:e.name};rt.post("api/subapp/uploadAndPublish",s).then((function(e){rt.showSuccessToast(this.$_t("common.uploadSuccess","上传成功"));let t=this.findVformCore();t&&t.subGridReload&&(t.subGridReload("subappversion"),t.subGridReload("staticresourceversion"))})).catch((function(e){rt.showErrorToast(this.$_t("platform.uploadSubappAndPublish_uploaderr","上传失败:")+e)}))}}else rt.showErrorToast(this.$_t("platform.uploadSubappAndPublishContentEmpty","上传内容为空."))},r.readAsArrayBuffer(t)},pasteFile(e){this.clipboardData=e.clipboardData,this.clipboardData||(e.originalEvent&&e.originalEvent.clipboardData?this.clipboardData=e.originalEvent.clipboardData:this.clipboardData=window.clipboardData);var t=this.clipboardData.files[0];t&&t.type&&t.type.match(/png/i)?this.newreadFile(t):rt.showErrorToast("只支持png压缩格式")}}},Aa=(r("d5ee"),Object(_.a)(Da,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"upload-subapp plat-subapp"},[t("input",{attrs:{type:"text",readonly:"",name:"upload"},domProps:{value:"在这里粘贴png文件上传并发布(仅支持谷歌浏览器)"},on:{paste:this.pasteFile}})])}),[],!1,null,"72ae136a",null).exports);function Ma(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function La(e){for(var t=1;t=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function ja(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Ba=ja(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ua=ja(/Edge/i),Va=ja(/firefox/i),qa=ja(/safari/i)&&!ja(/chrome/i)&&!ja(/android/i),za=ja(/iP(ad|od|hone)/i),Ha=ja(/chrome/i)&&ja(/android/i),Ga={capture:!1,passive:!1};function Wa(e,t,r){e.addEventListener(t,r,!Ba&&Ga)}function Qa(e,t,r){e.removeEventListener(t,r,!Ba&&Ga)}function Xa(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Ka(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ya(e,t,r,i){if(e){r=r||document;do{if(null!=t&&(">"===t[0]?e.parentNode===r&&Xa(e,t):Xa(e,t))||i&&e===r)return e;if(e===r)break}while(e=Ka(e))}return null}var Ja,Za=/\s+/g;function en(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var i=(" "+e.className+" ").replace(Za," ").replace(" "+t+" "," ");e.className=(i+(r?" "+t:"")).replace(Za," ")}}function tn(e,t,r){var i=e&&e.style;if(i){if(void 0===r)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),void 0===t?r:r[t];t in i||-1!==t.indexOf("webkit")||(t="-webkit-"+t),i[t]=r+("string"==typeof r?"":"px")}}function rn(e,t){var r="";if("string"==typeof e)r=e;else do{var i=tn(e,"transform");i&&"none"!==i&&(r=i+" "+r)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(r)}function an(e,t,r){if(e){var i=e.getElementsByTagName(t),a=0,n=i.length;if(r)for(;a=n:a<=n))return i;if(i===nn())break;i=pn(i,!1)}return!1}function ln(e,t,r,i){for(var a=0,n=0,o=e.children;n2&&void 0!==arguments[2]?arguments[2]:{},i=r.evt,a=Fa(r,En);wn.pluginEvent.bind(bo)(e,t,La({dragEl:Sn,parentEl:Tn,ghostEl:kn,rootEl:On,nextEl:In,lastDownEl:Dn,cloneEl:An,cloneHidden:Mn,dragStarted:Gn,putSortable:jn,activeSortable:bo.active,originalEvent:i,oldIndex:Ln,oldDraggableIndex:Pn,newIndex:Rn,newDraggableIndex:$n,hideGhostForTarget:ho,unhideGhostForTarget:fo,cloneNowHidden:function(){Mn=!0},cloneNowShown:function(){Mn=!1},dispatchSortableEvent:function(e){Nn({sortable:t,name:e,originalEvent:i})}},a))};function Nn(e){_n(La({putSortable:jn,cloneEl:An,targetEl:Sn,rootEl:On,oldIndex:Ln,oldDraggableIndex:Pn,newIndex:Rn,newDraggableIndex:$n},e))}var Sn,Tn,kn,On,In,Dn,An,Mn,Ln,Rn,Pn,$n,Fn,jn,Bn,Un,Vn,qn,zn,Hn,Gn,Wn,Qn,Xn,Kn,Yn=!1,Jn=!1,Zn=[],eo=!1,to=!1,ro=[],io=!1,ao=[],no="undefined"!=typeof document,oo=za,so=Ua||Ba?"cssFloat":"float",lo=no&&!Ha&&!za&&"draggable"in document.createElement("div"),co=function(){if(no){if(Ba)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),uo=function(e,t){var r=tn(e),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),a=ln(e,0,t),n=ln(e,1,t),o=a&&tn(a),s=n&&tn(n),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+on(a).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+on(n).width;if("flex"===r.display)return"column"===r.flexDirection||"column-reverse"===r.flexDirection?"vertical":"horizontal";if("grid"===r.display)return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o.float&&"none"!==o.float){var c="left"===o.float?"left":"right";return!n||"both"!==s.clear&&s.clear!==c?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=i&&"none"===r[so]||n&&"none"===r[so]&&l+d>i)?"vertical":"horizontal"},po=function(e){function t(e,r){return function(i,a,n,o){var s=i.options.group.name&&a.options.group.name&&i.options.group.name===a.options.group.name;if(null==e&&(r||s))return!0;if(null==e||!1===e)return!1;if(r&&"clone"===e)return e;if("function"==typeof e)return t(e(i,a,n,o),r)(i,a,n,o);var l=(r?i:a).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var r={},i=e.group;i&&"object"==Ra(i)||(i={name:i}),r.name=i.name,r.checkPull=t(i.pull,!0),r.checkPut=t(i.put),r.revertClone=i.revertClone,e.group=r},ho=function(){!co&&kn&&tn(kn,"display","none")},fo=function(){!co&&kn&&tn(kn,"display","")};no&&!Ha&&document.addEventListener("click",(function(e){if(Jn)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Jn=!1,!1}),!0);var mo=function(e){if(Sn){e=e.touches?e.touches[0]:e;var t=(a=e.clientX,n=e.clientY,Zn.some((function(e){var t=e[bn].options.emptyInsertThreshold;if(t&&!dn(e)){var r=on(e),i=a>=r.left-t&&a<=r.right+t,s=n>=r.top-t&&n<=r.bottom+t;return i&&s?o=e:void 0}})),o);if(t){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]=e[i]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[bn]._onDragOver(r)}}var a,n,o},go=function(e){Sn&&Sn.parentNode[bn]._isOutsideThisEl(e.target)};function bo(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=$a({},t),e[bn]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return uo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==bo.supportPointer&&"PointerEvent"in window&&!qa,emptyInsertThreshold:5};for(var i in wn.initializePlugins(this,e,r),r)!(i in t)&&(t[i]=r[i]);for(var a in po(t),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&lo,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Wa(e,"pointerdown",this._onTapStart):(Wa(e,"mousedown",this._onTapStart),Wa(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Wa(e,"dragover",this),Wa(e,"dragenter",this)),Zn.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),$a(this,yn())}function yo(e,t,r,i,a,n,o,s){var l,d,c=e[bn],u=c.options.onMove;return!window.CustomEvent||Ba||Ua?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=r,l.draggedRect=i,l.related=a||t,l.relatedRect=n||on(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),u&&(d=u.call(c,l,o)),d}function vo(e){e.draggable=!1}function xo(){io=!1}function wo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,i=0;r--;)i+=t.charCodeAt(r);return i.toString(36)}function _o(e){return setTimeout(e,0)}function Eo(e){return clearTimeout(e)}bo.prototype={constructor:bo,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Wn=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Sn):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,i=this.options,a=i.preventOnFilter,n=e.type,o=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(o||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,d=i.filter;if(function(e){ao.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var i=t[r];i.checked&&ao.push(i)}}(r),!Sn&&!(/mousedown|pointerdown/.test(n)&&0!==e.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!qa||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=Ya(s,i.draggable,r,!1))&&s.animated||Dn===s)){if(Ln=cn(s),Pn=cn(s,i.draggable),"function"==typeof d){if(d.call(this,e,s,this))return Nn({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:r,fromEl:r}),Cn("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(d&&(d=d.split(",").some((function(i){if(i=Ya(l,i.trim(),r,!1))return Nn({sortable:t,rootEl:i,name:"filter",targetEl:s,fromEl:r,toEl:r}),Cn("filter",t,{evt:e}),!0}))))return void(a&&e.cancelable&&e.preventDefault());i.handle&&!Ya(l,i.handle,r,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,r){var i,a=this,n=a.el,o=a.options,s=n.ownerDocument;if(r&&!Sn&&r.parentNode===n){var l=on(r);if(On=n,Tn=(Sn=r).parentNode,In=Sn.nextSibling,Dn=r,Fn=o.group,bo.dragged=Sn,Bn={target:Sn,clientX:(t||e).clientX,clientY:(t||e).clientY},zn=Bn.clientX-l.left,Hn=Bn.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Sn.style["will-change"]="all",i=function(){Cn("delayEnded",a,{evt:e}),bo.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!Va&&a.nativeDraggable&&(Sn.draggable=!0),a._triggerDragStart(e,t),Nn({sortable:a,name:"choose",originalEvent:e}),en(Sn,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){an(Sn,e.trim(),vo)})),Wa(s,"dragover",mo),Wa(s,"mousemove",mo),Wa(s,"touchmove",mo),Wa(s,"mouseup",a._onDrop),Wa(s,"touchend",a._onDrop),Wa(s,"touchcancel",a._onDrop),Va&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Sn.draggable=!0),Cn("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ua||Ba))i();else{if(bo.eventCanceled)return void this._onDrop();Wa(s,"mouseup",a._disableDelayedDrag),Wa(s,"touchend",a._disableDelayedDrag),Wa(s,"touchcancel",a._disableDelayedDrag),Wa(s,"mousemove",a._delayedDragTouchMoveHandler),Wa(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&Wa(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(i,o.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Sn&&vo(Sn),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Qa(e,"mouseup",this._disableDelayedDrag),Qa(e,"touchend",this._disableDelayedDrag),Qa(e,"touchcancel",this._disableDelayedDrag),Qa(e,"mousemove",this._delayedDragTouchMoveHandler),Qa(e,"touchmove",this._delayedDragTouchMoveHandler),Qa(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?Wa(document,"pointermove",this._onTouchMove):Wa(document,t?"touchmove":"mousemove",this._onTouchMove):(Wa(Sn,"dragend",this),Wa(On,"dragstart",this._onDragStart));try{document.selection?_o((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Yn=!1,On&&Sn){Cn("dragStarted",this,{evt:t}),this.nativeDraggable&&Wa(document,"dragover",go);var r=this.options;!e&&en(Sn,r.dragClass,!1),en(Sn,r.ghostClass,!0),bo.active=this,e&&this._appendGhost(),Nn({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Un){this._lastX=Un.clientX,this._lastY=Un.clientY,ho();for(var e=document.elementFromPoint(Un.clientX,Un.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Un.clientX,Un.clientY))!==t;)t=e;if(Sn.parentNode[bn]._isOutsideThisEl(e),t)do{if(t[bn]&&t[bn]._onDragOver({clientX:Un.clientX,clientY:Un.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);fo()}},_onTouchMove:function(e){if(Bn){var t=this.options,r=t.fallbackTolerance,i=t.fallbackOffset,a=e.touches?e.touches[0]:e,n=kn&&rn(kn,!0),o=kn&&n&&n.a,s=kn&&n&&n.d,l=oo&&Kn&&un(Kn),d=(a.clientX-Bn.clientX+i.x)/(o||1)+(l?l[0]-ro[0]:0)/(o||1),c=(a.clientY-Bn.clientY+i.y)/(s||1)+(l?l[1]-ro[1]:0)/(s||1);if(!bo.active&&!Yn){if(r&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))i.right+10||e.clientX<=i.right&&e.clientY>i.bottom&&e.clientX>=i.left:e.clientX>i.right&&e.clientY>i.top||e.clientX<=i.right&&e.clientY>i.bottom+10}(e,a,this)&&!m.animated){if(m===Sn)return D(!1);if(m&&n===e.target&&(o=m),o&&(r=on(o)),!1!==yo(On,n,Sn,t,o,r,e,!!o))return I(),m&&m.nextSibling?n.insertBefore(Sn,m.nextSibling):n.appendChild(Sn),Tn=n,A(),D(!0)}else if(m&&function(e,t,r){var i=on(ln(r.el,0,r.options,!0));return t?e.clientXc+d*n/2:lu-Xn)return-Qn}else if(l>c+d*(1-a)/2&&lu-d*n/2)?l>c+d/2?1:-1:0}(e,o,r,a,w?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,to,Wn===o))){var N=cn(Sn);do{N-=b,v=Tn.children[N]}while(v&&("none"===tn(v,"display")||v===kn))}if(0===b||v===o)return D(!1);Wn=o,Qn=b;var S=o.nextElementSibling,T=!1,k=yo(On,n,Sn,t,o,r,e,T=1===b);if(!1!==k)return 1!==k&&-1!==k||(T=1===k),io=!0,setTimeout(xo,30),I(),T&&!S?n.appendChild(Sn):o.parentNode.insertBefore(Sn,T?S:o),E&&mn(E,0,C-E.scrollTop),Tn=Sn.parentNode,void 0===y||to||(Xn=Math.abs(y-on(o)[_])),A(),D(!0)}if(n.contains(Sn))return D(!1)}return!1}function O(s,l){Cn(s,h,La({evt:e,isOwner:c,axis:a?"vertical":"horizontal",revert:i,dragRect:t,targetRect:r,canSort:u,fromSortable:p,target:o,completed:D,onMove:function(r,i){return yo(On,n,Sn,t,r,on(r),e,i)},changed:A},l))}function I(){O("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function D(t){return O("dragOverCompleted",{insertion:t}),t&&(c?d._hideClone():d._showClone(h),h!==p&&(en(Sn,jn?jn.options.ghostClass:d.options.ghostClass,!1),en(Sn,s.ghostClass,!0)),jn!==h&&h!==bo.active?jn=h:h===bo.active&&jn&&(jn=null),p===h&&(h._ignoreWhileAnimating=o),h.animateAll((function(){O("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(o===Sn&&!Sn.animated||o===n&&!o.animated)&&(Wn=null),s.dragoverBubble||e.rootEl||o===document||(Sn.parentNode[bn]._isOutsideThisEl(e.target),!t&&mo(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),f=!0}function A(){Rn=cn(Sn),$n=cn(Sn,s.draggable),Nn({sortable:h,name:"change",toEl:n,newIndex:Rn,newDraggableIndex:$n,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Qa(document,"mousemove",this._onTouchMove),Qa(document,"touchmove",this._onTouchMove),Qa(document,"pointermove",this._onTouchMove),Qa(document,"dragover",mo),Qa(document,"mousemove",mo),Qa(document,"touchmove",mo)},_offUpEvents:function(){var e=this.el.ownerDocument;Qa(e,"mouseup",this._onDrop),Qa(e,"touchend",this._onDrop),Qa(e,"pointerup",this._onDrop),Qa(e,"touchcancel",this._onDrop),Qa(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;Rn=cn(Sn),$n=cn(Sn,r.draggable),Cn("drop",this,{evt:e}),Tn=Sn&&Sn.parentNode,Rn=cn(Sn),$n=cn(Sn,r.draggable),bo.eventCanceled||(Yn=!1,to=!1,eo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Eo(this.cloneId),Eo(this._dragStartId),this.nativeDraggable&&(Qa(document,"drop",this),Qa(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),qa&&tn(document.body,"user-select",""),tn(Sn,"transform",""),e&&(Gn&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),kn&&kn.parentNode&&kn.parentNode.removeChild(kn),(On===Tn||jn&&"clone"!==jn.lastPutMode)&&An&&An.parentNode&&An.parentNode.removeChild(An),Sn&&(this.nativeDraggable&&Qa(Sn,"dragend",this),vo(Sn),Sn.style["will-change"]="",Gn&&!Yn&&en(Sn,jn?jn.options.ghostClass:this.options.ghostClass,!1),en(Sn,this.options.chosenClass,!1),Nn({sortable:this,name:"unchoose",toEl:Tn,newIndex:null,newDraggableIndex:null,originalEvent:e}),On!==Tn?(Rn>=0&&(Nn({rootEl:Tn,name:"add",toEl:Tn,fromEl:On,originalEvent:e}),Nn({sortable:this,name:"remove",toEl:Tn,originalEvent:e}),Nn({rootEl:Tn,name:"sort",toEl:Tn,fromEl:On,originalEvent:e}),Nn({sortable:this,name:"sort",toEl:Tn,originalEvent:e})),jn&&jn.save()):Rn!==Ln&&Rn>=0&&(Nn({sortable:this,name:"update",toEl:Tn,originalEvent:e}),Nn({sortable:this,name:"sort",toEl:Tn,originalEvent:e})),bo.active&&(null!=Rn&&-1!==Rn||(Rn=Ln,$n=Pn),Nn({sortable:this,name:"end",toEl:Tn,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Cn("nulling",this),On=Sn=Tn=kn=In=An=Dn=Mn=Bn=Un=Gn=Rn=$n=Ln=Pn=Wn=Qn=jn=Fn=bo.dragged=bo.ghost=bo.clone=bo.active=null,ao.forEach((function(e){e.checked=!0})),ao.length=Vn=qn=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Sn&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],r=this.el.children,i=0,a=r.length,n=this.options;ir.dataList.find(t=>String(t[r.rowKey])===e)),setTimeout(()=>{r.$refs.table&&r.$refs.table.$el&&(r.$refs.table.$el.querySelectorAll(".el-table__body .el-table__row").forEach(e=>{e.classList.remove("hover-row","rtxpc-hover-row")}),r.$refs.table.$el.querySelectorAll(".el-table__fixed .el-table__body .el-table__row").forEach(e=>{e.classList.remove("hover-row","rtxpc-hover-row")}),r.$refs.table.$el.querySelectorAll(".el-table__fixed-right .el-table__body .el-table__row").forEach(e=>{e.classList.remove("hover-row","rtxpc-hover-row")}),r.$refs.table.store&&r.$refs.table.store.commit("setHoverRow",null))},0),r.$emit("dragEnd",n,i,a,r.dataList,e)}};this._sortable=jo.create(e,i)},e.beforeDestroy=function(){this._sortable&&(this._sortable.destroy(),this._sortable=null),r&&("function"==typeof r?r.call(this):Array.isArray(r)&&r.forEach(e=>{"function"==typeof e&&e.call(this)}))},e.props.disableDragFunc={type:Function,default:null},e.methods.dragBtnClick=function(e){this.$emit("dragStart",e)}}},Uo=r("fd92"),Vo={name:"RtUpload",props:{enableMessage:{type:Boolean,default:!1}}},qo=Object(_.a)(Vo,void 0,void 0,!1,null,null,null).exports,zo={name:"RtXpcInput",props:{maxLength:{type:Number,default:5e3},debounce:{type:Number,default:500}}},Ho=Object(_.a)(zo,void 0,void 0,!1,null,null,null).exports,Go={name:"RtTabPane"},Wo=(r("66c4"),Object(_.a)(Go,void 0,void 0,!1,null,null,null).exports),Qo={name:"RtHeaderIcon",props:{bgColor:{type:String,default:"primary"}}},Xo=Object(_.a)(Qo,void 0,void 0,!1,null,null,null).exports,Ko={name:"RtTooltip",props:{opacity:{type:Number,default:.7}}},Yo=Object(_.a)(Ko,void 0,void 0,!1,null,null,null).exports,Jo={name:"RtCard",props:{shadow:{type:Boolean,default:!1}}},Zo=Object(_.a)(Jo,void 0,void 0,!1,null,null,null).exports,es=[{name:Uo.a.name,component:Uo.a,replaceMode:"partial"},{name:qo.name,component:qo,replaceMode:"partial"},{name:Ho.name,component:Ho,replaceMode:"partial"},{name:Wo.name,component:Wo,replaceMode:"partial"},{name:Xo.name,component:Xo,replaceMode:"partial"},{name:Yo.name,component:Yo,replaceMode:"partial"},{name:Zo.name,component:Zo,replaceMode:"partial"}],ts=r("b2c6"),rs=r.n(ts),is={name:"BatchUploadImage",mixins:[ye.a],props:{entityName:{type:String,require:!0,default:""}},data(){return{batchFrom:{imageField:"",regField:"",uploadType:1,uploadImageList:[],isUpdate:!1},limitCount:100,uploadResult:[],batchRules:{imageField:[{required:!0,message:this.$_t("platform.batchUploadImage.inputimageField","请选择图片字段"),trigger:"blur"}],regField:[{required:!0,message:this.$_t("platform.batchUploadImage.inputregField","请选择文件名匹配字段"),trigger:"blur"}],uploadType:[{required:!0,message:this.$_t("platform.batchUploadImage.uploadSelect","请选择上传方式"),trigger:"blur"}],uploadImageList:[{validator:(e,t,r)=>{t&&0!=t.length?r():r(new Error(this.$_t("platform.batchUploadImageleastPicture","请至少上传一张图片")))},trigger:"change"}]},acceptType:".bmp,.gif,.jpg,.jpeg,.png",canUpload:!0,uploaded:!1,uploadLoading:!1,uploadImageResult:void 0}},watch:{},mounted(){let e=this.$store.state&&this.$store.state.systemparameter.BatchUploadLimit;this.limitCount=parseInt(e)||100;const t=document.querySelector(".batch-upload-image .el-upload-dragger");t&&t.style&&(t.style.width="100%")},methods:{async batchUpload(){this.$refs.batchFrom&&this.$refs.batchFrom.validate((e,t)=>{if(e){let e="api/attachment/GetObsBatchSignatureRequest",t=this.batchFrom.uploadImageList.filter(e=>!e.loadStatus).map(e=>({fileName:e.fileParam.file.name,contentLength:e.fileParam.file.size,contentType:e.fileParam.file.type}));this.uploadLoading=!0;let r={ObjectTypeName:this.entityName,ObjectId:"batchImageID",FileNameList:t};rt.post(e,r).then(async e=>{let r=e||[];await this.SaveAsync(0,r),this.uploadResult.length==t.length?this.$message.error(this.$_t("platform.batchUploadImage.uploadFaild","上传失败,详情请查看上传结果")):this.uploadResult.length>0?this.$message.error(this.$_t("platform.batchUploadImage.uploadFaild2","部分上传成功,详情请查看上传结果")):(rt.showSuccessToast(this.$_t("platform.batchUploadImage.uploadSuccess","上传成功")),this.$emit("dialog-close"))}).catch(e=>{rt.showErrorToast(e.message||e),this.uploadLoading=!1})}else{let e=Object.entries(t);e.length>0&&rt.showErrorToast(e[0][1][0].message)}})},async SaveAsync(e,t){let r={entityName:this.entityName,imageField:this.batchFrom.imageField,regField:this.batchFrom.regField,uploadType:this.batchFrom.uploadType,isUpdate:this.batchFrom.isUpdate};if(ee.fileParam.file.name==i.fileName);if(!a)return;const n=a.fileParam;if(i.OssProvider&&"local"==i.OssProvider)this.oldUpload(t,a,e,this.batchFrom.isUpdate);else{let o={fileName:i.fileName,fileUrl:i.imgUrl},s=Object.assign(r,{uploadImageInfo:o});const l=Ge.a.create();if("azureblob"==i.OssProvider)l.defaults.headers={"x-ms-version":i["x-ms-version"],"x-ms-date":i["x-ms-date"],"x-ms-client-request-id":i["x-ms-client-request-id"],"x-ms-blob-type":i["x-ms-blob-type"],Authorization:i.Authorization,"Content-Type":n.file.type};else if("huaweiobs"==i.OssProvider)l.defaults.headers={"Content-Type":n.file.type};else if("awss3"==i.OssProvider||"minio"==i.OssProvider)l.defaults.headers={"x-amz-date":i["x-amz-date"],Authorization:i.Authorization,"Content-Type":i["Content-Type"]};else{l.defaults.headers={Host:i.Host,"Content-Length":i.Content_Length};const e=i.Headers;e&&e.forEach(e=>{l.defaults.headers[e.name]=e.value})}try{await l.put(i.signUrl,n.file),await rt.post("api/attachment/SaveAttachmentByOBS",s).then(async r=>(this.uploadImageResult=r,a?r.isSuccess?(n.onSuccess(),a.loadStatus=!0,r.uploadTime=this.getFormatedTime(),void await this.SaveAsync(e,t)):(r.uploadTime=this.getFormatedTime(),this.uploadResult.push(r),n.onError(),void await this.SaveAsync(e,t)):(r.isSuccess=!1,r.uploadTime=this.getFormatedTime(),r.failureReason=this.$_t("platform.batchUploadImage.informationfails","附件信息匹配失败"),this.uploadResult.push(r),n.onError(),void await this.SaveAsync(e,t))))}catch(r){this.uploadImageResult&&(this.uploadImageResult.isSuccess=!1,this.uploadImageResult.uploadTime=this.getFormatedTime(),this.uploadImageResult.failureReason=this.$_t("platform.batchUploadImage.uploadserverfails","上传云服务器失败"),this.uploadResult.push(this.uploadImageResult)),this.uploadLoading=!1,n.onError(),await this.SaveAsync(e,t)}}}else this.uploaded=!0,this.uploadLoading=!1},async oldUpload(e,t,r,i){let a=new FormData;a.append("imgattributename",this.batchFrom.imageField),a.append("attributename",this.batchFrom.regField),a.append("entityname",this.entityName),a.append("file",t.fileParam.file),a.append("isUpdate",i),await rt.post("api/attachment/imagefielduploadnoobjectid",a).then(async i=>{t.fileParam.onSuccess(),t.loadStatus=!0,i.uploadTime=this.getFormatedTime(),i.fileName=t.fileParam.file.name,await this.SaveAsync(r,e)}).catch(async i=>{let a={};a.fileName=t.fileParam.file.name,a.isSuccess=!1,a.uploadTime=this.getFormatedTime(),a.failureReason=i,this.uploadResult.push(a),t.fileParam.onError(),await this.SaveAsync(r,e)})},fetchImageInfo(){if(!this.entityName)return new Promise((e,t)=>{e([])});let e="api/meta/Attribute/GetAttributesByEntityLogicalName?entityName="+this.entityName+"&attributeType=image";return rt.get(e).then(e=>e&&e.length>0?(this.batchFrom.imageField=e[0].LogicalName,e.map(e=>({Text:e.DisplayName,Value:e.LogicalName}))):[])},fetchRegInfo(){if(!this.entityName)return new Promise((e,t)=>{e([])});let e="api/meta/Attribute/GetAttributesByEntityLogicalName?entityName="+this.entityName+"&attributeType=all";return rt.get(e).then(e=>e&&e.length>0?e.filter(e=>["ntext","text","nvarchar"].includes(e.AttributeTypeName)).map(e=>({Text:e.DisplayName,Value:e.LogicalName})):[])},beforeUpload(e){const t=e.name.split(".");let r=t.length>1?t[t.length-1].toLocaleLowerCase():"";return-1==this.acceptType.indexOf(r)?(rt.showErrorToast(this.$_t("platform.batchUploadImage.OnlySupport","仅支持格式为bmp/gif/jpg/jpeg/png")),!1):this.batchFrom.uploadImageList.find(t=>t.fileParam.file.name==e.name)?(rt.showErrorToast("请不要重复上传,"+e.name.substring(0,e.name.lastIndexOf("."))+"图片"),!1):void 0},_fetchRecords(){return new Promise((e,t)=>{e(this.uploadResult)})},findReuslt(){this.canUpload=!this.canUpload},handleRemove(e,t){const r=e.name.split(".");let i=r.length>1?r[r.length-1].toLocaleLowerCase():"";if(-1!=this.acceptType.indexOf(i)&&1==t.filter(t=>t.uid==e.uid).length)return new Promise((t,r)=>{this.$confirm(this.$_t("platform.batchUploadImageRemove","确定移除")+e.name+this.$_t("platform.batchUploadImageDoubt","?")).then(()=>{let r=this.batchFrom.uploadImageList.findIndex(t=>t.fileParam.file.uid==e.uid);this.batchFrom.uploadImageList.splice(r,1),t(!0)}).catch(()=>{r(new Error)})})},handleExceed(e,t){rt.showErrorToast(this.$_t("platform.batchUploadImage.currentLimitSelection","当前限制选择")+this.limitCount+this.$_t("platform.batchUploadImage.filechoose","个文件,本次选择了")+e.length+this.$_t("platform.batchUploadImage.filechoosecommon","个文件,共选择了")+(e.length+t.length)+this.$_t("platform.batchUploadImage.filechoosetotal","个文件"))},customRequest(e){this.batchFrom.uploadImageList.push({fileParam:e,loadStatus:!1}),this.$refs.batchFrom&&this.$refs.batchFrom.clearValidate()},handleSuccess:(e,t,r)=>!0,reset(){this.$refs.batchFrom&&this.$refs.batchFrom.resetFields(),this.$refs.upload&&this.$refs.upload.clearFiles(),this.uploadResult=[],this.batchFrom.uploadImageList=[],this.batchFrom.isUpdate=!1,this.canUpload=!0,this.uploaded=!1}}},as=(r("3eca"),Object(_.a)(is,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-view",{staticClass:"batch-upload-image plat-batch-upload-image"},[e.entityName?r("rc-form",{directives:[{name:"loading",rawName:"v-loading",value:e.uploadLoading,expression:"uploadLoading"}],ref:"batchFrom",staticClass:"plat-batch-form",attrs:{border:"",model:e.batchFrom,disabled:e.uploadLoading,rules:e.batchRules}},[r("rc-card",{attrs:{shadow:!1,"margin-bottom":0}},[r("rc-section",{staticClass:"batch-upload-section"},[r("rc-row",{directives:[{name:"show",rawName:"v-show",value:e.canUpload,expression:"canUpload"}],attrs:{gutter:16}},[r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.imageField","图片字段"),prop:"imageField"}},[r("rc-picklist",{attrs:{filterable:"",disabled:e.uploadLoading,fetch:e.fetchImageInfo},model:{value:e.batchFrom.imageField,callback:function(t){e.$set(e.batchFrom,"imageField",t)},expression:"batchFrom.imageField"}})],1)],1),r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.regField","文件名匹配"),prop:"regField"}},[r("rc-picklist",{attrs:{filterable:"",disabled:e.uploadLoading,fetch:e.fetchRegInfo},model:{value:e.batchFrom.regField,callback:function(t){e.$set(e.batchFrom,"regField",t)},expression:"batchFrom.regField"}})],1)],1),r("rc-col",{attrs:{span:12}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.existImageField","当表单中图片字段已经存在时,您希望怎么处理")}},[r("rc-radio",{attrs:{label:!1},model:{value:e.batchFrom.isUpdate,callback:function(t){e.$set(e.batchFrom,"isUpdate",t)},expression:"batchFrom.isUpdate"}},[e._v(e._s(e.$_t("platform.batchUploadImage.NoUpdate","跳过"))+" ")]),r("rc-radio",{attrs:{label:!0},model:{value:e.batchFrom.isUpdate,callback:function(t){e.$set(e.batchFrom,"isUpdate",t)},expression:"batchFrom.isUpdate"}},[e._v(" "+e._s(e.$_t("platform.batchUploadImage.Update","更新:覆盖原有数据"))+" ")])],1)],1),r("rc-col",{attrs:{span:24}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.uploadImageList","图片上传"),prop:"uploadImageList",tooltip:e.$_t("platform.batchUploadImage.imageNameRule","图片名称规则:匹配字段的值")}},[r("rc-upload",{ref:"upload",attrs:{limit:e.limitCount,"before-upload":e.beforeUpload,"drag-height":120,"drag-border-radius":10,"http-request":e.customRequest,"drag-bgcolor":"lighter","before-remove":e.handleRemove,"drag-border":"base",multiple:"",drag:"","on-exceed":e.handleExceed,action:"","on-error":e.handleError,"on-remove":e.handleRemove,"on-change":e.changeFile,accept:e.acceptType,"on-success":e.handleSuccess}},[r("div",{staticClass:"el-upload__text"},[r("em",[e._v(e._s(e.$_t("common.clicktochoosefile","点击选择文件")))]),r("br"),r("div",{staticClass:"rt-upload__tip"},[e._v(" "+e._s(e.$_t("platform.supportedformats","支持格式bmp/gif/jpg/jpeg/png,最大上传数量为")+e.limitCount+e.$_t("platform.supporteda","个"))+" ")])])])],1)],1)],1),e.canUpload?e._e():r("div",{staticClass:"upload-result"},[r("rc-table",{attrs:{"show-border":"",stripe:"","header-weight":"medium",height:"300","show-pagination":!1,fetch:e._fetchRecords,sectionable:!1}},[r("rc-table-column",{attrs:{prop:"fileName",width:"120",label:e.$_t("platform.batchUploadImage.fileName","文件名")}}),r("rc-table-column",{attrs:{prop:"uploadTime",width:"180",label:e.$_t("platform.batchUploadImage.uploadTime","上传时间")}}),r("rc-table-column",{attrs:{prop:"isSuccess",width:"140",label:e.$_t("platform.batchUploadImage.isSuccess","上传状态")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.isSuccess?e.$_t("platform.batchUploadImage.scopesuccess","成功"):e.$_t("platform.batchUploadImage.scopeerror","失败")))])]}}],null,!1,3274445274)}),r("rc-table-column",{attrs:{prop:"failureReason","show-overflow-tooltip":"",label:e.$_t("platform.batchUploadImage.failureReason","失败原因")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.failureReason))])]}}],null,!1,1400459778)})],1)],1)],1)],1)],1):e._e(),r("div",{staticClass:"footer-group"},[r("div",{staticClass:"footer-button-group"},[r("rc-button",{on:{click:e.reset}},[e._v(e._s(e.$_t("platform.batchUploadImage.reset","重置")))]),e.uploaded&&e.canUpload?r("rc-button",{attrs:{type:"primary"},on:{click:e.findReuslt}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary","查看上传结果")))]):e.canUpload?e._e():r("rc-button",{attrs:{type:"primary"},on:{click:e.findReuslt}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary1","关闭上传结果")))]),e.uploaded?e._e():r("rc-button",{attrs:{type:"primary"},on:{click:e.batchUpload}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary2","上传")))])],1)])],1)}),[],!1,null,"823f7760",null).exports),ns={name:"BatchUploadFileImage",mixins:[ye.a],props:{entityName:{type:String,require:!0,default:""}},data(){return{batchFrom:{imageField:"",regField:"",uploadType:1,uploadImageList:[]},uploadResult:[],batchRules:{imageField:[{required:!0,message:this.$_t("platform.batchUploadImage.inputimageField","请输入文件名前缀匹配字段"),trigger:"blur"}],regField:[{required:!0,message:this.$_t("platform.batchUploadImage.inputregField","请输入文件名匹配字段"),trigger:"blur"}],uploadType:[{required:!0,message:this.$_t("platform.batchUploadImage.uploadSelect","请选择上传方式"),trigger:"blur"}],uploadImageList:[{validator:(e,t,r)=>{t&&0!=t.length?r():r(new Error(this.$_t("platform.batchUploadImageleastPicture","请至少上传一张图片")))},trigger:"change"}]},acceptType:".bmp,.gif,.jpg,.jpeg,.png",canUpload:!0,uploaded:!1,uploadLoading:!1,apiUrl:rt.getBaseUrl()+"api/attachment/BatchUploadImage",fileData:{FileId:"",ModuleType:"metasolution",FileName:"",ObjectId:null,ObjectTypeName:"metasolution",IsOverwrite:"0"},isAutoDelete:!1,uploadImageResult:void 0}},computed:{limitCount(){return this.$store.state.systemparameter.LimitUploadNoteImgeQuantity&&this.$store.state.systemparameter.LimitUploadNoteImgeQuantity>=1?parseInt(this.$store.state.systemparameter.LimitUploadNoteImgeQuantity):100}},watch:{},mounted(){this.$store.state&&this.$store.state.systemparameter.BatchUploadLimit;const e=document.querySelector(".batch-upload-image .el-upload-dragger");e&&e.style&&(e.style.width="100%")},methods:{async batchUpload(){this.$refs.batchFrom&&this.$refs.batchFrom.validate((e,t)=>{if(e){let e="api/attachment/GetObsBatchSignatureRequest",t=this.batchFrom.uploadImageList.filter(e=>!e.loadStatus).map(e=>({fileName:e.fileParam.file.name,contentLength:e.fileParam.file.size,contentType:e.fileParam.file.type,uid:e.fileParam.file.uid}));this.uploadLoading=!0;let r={ObjectTypeName:this.entityName,ObjectId:"batchImageID",FileNameList:t};rt.post(e,r).then(async e=>{let r=e||[];r.forEach((e,r)=>{e.uid=t[r].uid}),await this.SaveAsync(0,r),this.uploadResult.length==t.length?this.$message.error(this.$_t("platform.batchUploadImage.uploadFaild","上传失败,详情请查看上传结果")):this.uploadResult.length>0?this.$message.error(this.$_t("platform.batchUploadImage.uploadFaild2","部分上传成功,详情请查看上传结果")):(rt.showSuccessToast(this.$_t("platform.batchUploadImage.uploadSuccess","上传成功")),this.$emit("dialog-close"))}).catch(e=>{rt.showErrorToast(e.message||e),this.uploadLoading=!1})}else{let e=Object.keys(t);e.includes("regField")?rt.showErrorToast(this.$_t("platform.preFixmatchingField","文件名前缀匹配字段为空")):e.includes("uploadImageList")&&rt.showErrorToast(this.$_t("platform.batchUploadImageleastPicture","请至少上传一张图片"))}})},async SaveAsync(e,t){let r={entityName:this.entityName,regField:this.batchFrom.regField,uploadType:this.batchFrom.uploadType};if(ee.fileParam.file.uid==i.uid);if(!n)return;const o=n.fileParam;if(i.OssProvider&&"local"==i.OssProvider)a=await this.oldUpload(t,n,e);else{let s={fileName:i.fileName,fileUrl:a?void 0:i.imgUrl,attachmentId:a,fileSize:this.batchFrom.uploadImageList[e-1].fileParam.file.size},l=Object.assign(r,{uploadImageInfo:s});const d=Ge.a.create();if("azureblob"==i.OssProvider)d.defaults.headers={"x-ms-version":i["x-ms-version"],"x-ms-date":i["x-ms-date"],"x-ms-client-request-id":i["x-ms-client-request-id"],"x-ms-blob-type":i["x-ms-blob-type"],Authorization:i.Authorization,"Content-Type":o.file.type};else if("huaweiobs"==i.OssProvider)d.defaults.headers={"Content-Type":o.file.type};else if("awss3"==i.OssProvider||"minio"==i.OssProvider)d.defaults.headers={"x-amz-date":i["x-amz-date"],Authorization:i.Authorization,"Content-Type":i["Content-Type"]};else{d.defaults.headers={Host:i.Host,"Content-Length":i.Content_Length};const e=i.Headers;e&&e.forEach(e=>{d.defaults.headers[e.name]=e.value})}try{await d.put(i.signUrl,o.file),await rt.post("api/attachment/UploadNoteImage",l).then(async r=>{if(o.onSuccess(),n.loadStatus=!0,r.uploadTime=this.getFormatedTime(),await this.SaveAsync(e,t),!n)return r.isSuccess=!1,r.uploadTime=this.getFormatedTime(),r.failureReason=this.$_t("platform.batchUploadImage.informationfails","附件信息匹配失败"),this.uploadResult.push(r),o.onError(),void await this.SaveAsync(e,t);r.isSuccess||(r.uploadTime=this.getFormatedTime(),this.uploadResult.push(r),o.onError(),await this.SaveAsync(e,t))})}catch(r){this.uploadImageResult&&(this.uploadImageResult.isSuccess=!1,this.uploadImageResult.uploadTime=this.getFormatedTime(),this.uploadImageResult.failureReason=this.$_t("platform.batchUploadImage.uploadserverfails","上传云服务器失败"),this.uploadResult.push(this.uploadImageResult)),this.uploadLoading=!1,o.onError(),await this.SaveAsync(e,t)}}}else this.uploaded=!0,this.uploadLoading=!1},async oldUpload(e,t,r){let i=new FormData;return i.append("ModuleType",this.entityName),i.append("ObjectTypeName",this.entityName),i.append("file",t.fileParam.file),i.append("FileName",t.fileParam.file.name),i.append("IsOverwrite","0"),i.append("NodeText",this.entityName+"_batchnote"),new Promise((a,n)=>{rt.post("api/attachment/upload",i).then(async e=>{a(e[0])}).catch(async i=>{let n={};n.fileName=t.fileParam.file.name,n.isSuccess=!1,n.uploadTime=this.getFormatedTime(),n.err=":"+i,n.failureReason=this.$_t("platform.batchUploadImage.failureReason4","图片上传失败")+n.err||"",this.uploadResult.push(n),t.fileParam.onError(),a(),await this.SaveAsync(r,e)})})},fetchImageInfo(){if(!this.entityName)return new Promise((e,t)=>{e([])});let e="api/meta/Attribute/GetAttributesByEntityLogicalName?entityName="+this.entityName+"&attributeType=image";return rt.get(e).then(e=>e&&e.length>0?e.map(e=>({Text:e.DisplayName,Value:e.LogicalName})):[])},fetchRegInfo(){if(!this.entityName)return new Promise((e,t)=>{e([])});let e="api/meta/Attribute/GetAttributesByEntityLogicalName?entityName="+this.entityName+"&attributeType=all&needLookupAttr=false";return rt.get(e).then(e=>e&&e.length>0?e.filter(e=>["ntext","text","nvarchar"].includes(e.AttributeTypeName)).map(e=>({Text:e.DisplayName,Value:e.LogicalName})):[])},beforeUpload(e){const t=e.name.split(".");let r=t.length>1?t[t.length-1].toLocaleLowerCase():"";return-1==this.acceptType.indexOf(r)?(this.isAutoDelete=!0,rt.showErrorToast(this.$_t("platform.batchUploadImage.OnlySupport","仅支持格式为bmp/gif/jpg/jpeg/png")),!1):!this.checkSameName(e.name)||(this.isAutoDelete=!0,rt.showErrorToast(this.$_t("ExistSameFile","存在同名文件,请勿重复上传")),!1)},_fetchRecords(){return new Promise((e,t)=>{e(this.uploadResult)})},findReuslt(){this.canUpload=!this.canUpload},handleRemove(e,t){if(!this.isAutoDelete)return new Promise((t,r)=>{this.$confirm(this.$_t("platform.batchUploadImageRemove","确定移除")+e.name+this.$_t("platform.batchUploadImageDoubt","?")).then(()=>{let r=this.batchFrom.uploadImageList.findIndex(t=>t.fileParam.file.uid==e.uid);this.batchFrom.uploadImageList.splice(r,1),t(!0)}).catch(()=>{r(new Error)})});this.isAutoDelete=!1},handleExceed(e,t){rt.showErrorToast(this.$_t("platform.batchUploadImage.currentLimitSelection","当前限制选择")+this.limitCount+this.$_t("platform.batchUploadImage.filechoose","个文件,本次选择了")+e.length+this.$_t("platform.batchUploadImage.filechoosecommon","个文件,共选择了")+(e.length+t.length)+this.$_t("platform.batchUploadImage.filechoosetotal","个文件"))},customRequest(e){this.batchFrom.uploadImageList.push({fileParam:e,loadStatus:!1}),this.$refs.batchFrom&&this.$refs.batchFrom.clearValidate()},handleSuccess:(e,t,r)=>!0,reset(){this.$refs.batchFrom&&this.$refs.batchFrom.resetFields(),this.$refs.upload&&this.$refs.upload.clearFiles(),this.uploadResult=[],this.batchFrom.uploadImageList=[],this.canUpload=!0,this.uploaded=!1},checkSameName(e){if(!this.batchFrom.uploadImageList.length)return!1;const t=e.replace(/\s+/g,"");for(let r in this.batchFrom.uploadImageList){const e=this.batchFrom.uploadImageList[r];if(e.fileParam&&e.fileParam.file&&e.fileParam.file.name==t)return!0}return!1}}},os=(r("145c"),Object(_.a)(ns,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-view",{staticClass:"batch-upload-image plat-batch-upload-image"},[e.entityName?r("rc-form",{ref:"batchFrom",staticClass:"plat-batch-form",attrs:{border:"",model:e.batchFrom,disabled:e.uploadLoading,rules:e.batchRules}},[r("rc-card",{attrs:{shadow:!1,"margin-bottom":0}},[r("rc-section",{staticClass:"batch-upload-section"},[r("rc-row",{directives:[{name:"show",rawName:"v-show",value:e.canUpload,expression:"canUpload"}],attrs:{gutter:16}},[r("rc-col",{attrs:{span:24}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.regField","文件名匹配"),prop:"regField"}},[r("rc-picklist",{attrs:{filterable:"",disabled:e.uploadLoading,fetch:e.fetchRegInfo},model:{value:e.batchFrom.regField,callback:function(t){e.$set(e.batchFrom,"regField",t)},expression:"batchFrom.regField"}})],1)],1),r("rc-col",{attrs:{span:24}},[r("rc-form-item",{attrs:{label:e.$_t("platform.batchUploadImage.uploadFileImageList","附件图片上传"),prop:"uploadImageList",tooltip:e.$_t("platform.batchUploadImage.imageFileNameRule","图片名称规则:A(匹配字段值,必填)_BUP_B(notekey_附件关键字标识,附件信息,选填)_BUP_C(随机字符串,选填)")}},[r("rc-upload",{ref:"upload",attrs:{"before-upload":e.beforeUpload,limit:e.limitCount,"drag-height":120,"drag-border-radius":10,"http-request":e.customRequest,"drag-bgcolor":"lighter","before-remove":e.handleRemove,"drag-border":"base",drag:"","on-exceed":e.handleExceed,"on-error":e.handleError,multiple:"",data:e.fileData,action:"","on-change":e.changeFile,accept:e.acceptType,"on-success":e.handleSuccess}},[r("div",{staticClass:"el-upload__text"},[r("em",[e._v(e._s(e.$_t("common.clicktochoosefile","点击选择文件")))]),r("br"),r("div",{staticClass:"rt-upload__tip"},[e._v(" "+e._s(e.$_t("platform.supportedformats","支持格式bmp/gif/jpg/jpeg/png,最大上传数量为")+e.limitCount+e.$_t("platform.supporteda","个"))+" ")])])])],1)],1)],1),e.canUpload?e._e():r("div",{staticClass:"upload-result"},[r("rc-table",{attrs:{"show-border":"",stripe:"","header-weight":"medium",height:"300","show-pagination":!1,fetch:e._fetchRecords,sectionable:!1}},[r("rc-table-column",{attrs:{prop:"fileName",width:"120",label:e.$_t("platform.batchUploadImage.fileName","文件名")}}),r("rc-table-column",{attrs:{prop:"uploadTime",width:"180",label:e.$_t("platform.batchUploadImage.uploadTime","上传时间")}}),r("rc-table-column",{attrs:{prop:"isSuccess",width:"140",label:e.$_t("platform.batchUploadImage.isSuccess","上传状态")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.isSuccess?e.$_t("platform.batchUploadImage.scopesuccess","成功"):e.$_t("platform.batchUploadImage.scopeerror","失败")))])]}}],null,!1,3274445274)}),r("rc-table-column",{attrs:{prop:"failureReason","show-overflow-tooltip":"",label:e.$_t("platform.batchUploadImage.failureReason","失败原因")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.failureReason))])]}}],null,!1,1400459778)})],1)],1)],1)],1)],1):e._e(),r("div",{staticClass:"footer-group"},[r("div",{staticClass:"footer-button-group"},[r("rc-button",{on:{click:e.reset}},[e._v(e._s(e.$_t("platform.batchUploadImage.reset","重置")))]),e.uploaded&&e.canUpload?r("rc-button",{attrs:{type:"primary"},on:{click:e.findReuslt}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary","查看上传结果")))]):e.canUpload?e._e():r("rc-button",{attrs:{type:"primary"},on:{click:e.findReuslt}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary1","关闭上传结果")))]),e.uploaded?e._e():r("rc-button",{attrs:{type:"primary"},on:{click:e.batchUpload}},[e._v(e._s(e.$_t("platform.batchUploadImage.primary2","上传")))])],1)])],1)}),[],!1,null,"0cb77b60",null).exports);function ss(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}!function(e){e[e.View=0]="View",e[e.Form=1]="Form",e[e.ViewOption=2]="ViewOption",e[e.Subgrid=3]="Subgrid",e[e.SubgridOption=4]="SubgridOption"}(Fo||(Fo={}));class ls{constructor(e,t,r){ss(this,"save",void 0),ss(this,"saveWithoutToast",void 0),ss(this,"savePromise",void 0),ss(this,"showDialog",void 0),ss(this,"subGridReload",void 0),ss(this,"openDialogComponent",void 0),ss(this,"jumpComponentByRouter",void 0),ss(this,"pageType",void 0),ss(this,"userId",void 0),ss(this,"tenantCode",void 0),ss(this,"editForm",void 0),ss(this,"entityName",void 0),ss(this,"entityId",void 0),ss(this,"batchEntities",void 0),ss(this,"$PlatUtils",void 0),ss(this,"systemparameter",void 0),ss(this,"$_t",void 0),ss(this,"load",void 0),ss(this,"execBtnAfterClick",void 0),this.pageType=e.pageType,this.userId=e.$store.state.user.userId,this.tenantCode=localStorage.$tenantcode||window.rtconfig.keycloak_realm,this.entityName=e.objectTypeName,this.entityId="",this.editForm=e.editForm,this.save=()=>Promise.resolve(),this.saveWithoutToast=()=>Promise.resolve(),this.savePromise=()=>Promise.resolve(),this.showDialog=e.showDialog,this.subGridReload=null,this.load=()=>Promise.resolve(),this.openDialogComponent=t,this.jumpComponentByRouter=r,this.execBtnAfterClick=e.execBtnAfterClick,this.$PlatUtils=e.$PlatUtils,this.$_t=e.$_t;const i={...e.$store.state.systemparameter,...e.$store.state.user,signalRUrl:e.$store.state.signalRUrl};this.systemparameter=i}}class ds extends ls{constructor(e,t,r,i,a){super(e,t,r),ss(this,"save",void 0),ss(this,"saveWithoutToast",void 0),ss(this,"load",void 0),ss(this,"reload",void 0),ss(this,"formLogicalName",void 0),ss(this,"formStatus",void 0),ss(this,"formId",void 0),ss(this,"formType",void 0),ss(this,"dataLoaded",void 0),ss(this,"btnLocation",void 0),ss(this,"controlId",void 0),ss(this,"customerData",void 0),ss(this,"goBack",void 0),this.formLogicalName=e.formLogicalName,this.formStatus=e.formStatus,this.formId=e.formId||e.FormId||"",this.formType=e.formType,this.dataLoaded=e.dataLoaded,this.customerData=e.customerData,this.entityName=e.objectTypeName,this.save=e.save,this.subGridReload=e.subGridReload,this.saveWithoutToast=e.saveWithoutToast,this.savePromise=e.savePromise,this.load=e.load,this.reload=e.reload,this.btnLocation=Fo.Form,this.goBack=i,this.controlId=a}}class cs extends ls{constructor(e,t,r,i,a,n){super(e,t,r),ss(this,"multipleSelection",void 0),ss(this,"entityName",void 0),ss(this,"entityId",void 0),ss(this,"btnLocation",void 0),ss(this,"load",void 0),ss(this,"goBack",void 0),ss(this,"controlId",void 0),ss(this,"viewCondition",void 0),this.entityName=e.objectTypeName,this.entityId="",a?this.batchEntities=e.multipleSelection:this.editForm=e.multipleSelection[0],this.btnLocation=Fo.View,this.goBack=i,this.load=e.load,this.controlId=n,this.viewCondition=e.getViewCondition()}}class us extends ls{constructor(e,t,r,i,a,n,o){if(super(e,t,r),ss(this,"load",void 0),ss(this,"customerData",void 0),ss(this,"currentRow",void 0),ss(this,"editForm",void 0),ss(this,"subgridkey",void 0),ss(this,"btnLocation",void 0),ss(this,"goBack",void 0),ss(this,"controlId",void 0),this.load=e.load,this.customerData=e.customerData,o){const t=e.$refs[e.getSubgridRefKey(o)],r=t&&t.multipleSelection||[];a?this.batchEntities=r:this.currentRow=r[0]}this.editForm=e.editForm,this.subgridkey=o&&o.subgridkey||"",this.btnLocation=Fo.Subgrid,this.entityName=e.objectTypeName,this.goBack=i,this.controlId=n}}class ps extends ls{constructor(e,t,r,i,a){super(e,t,r),ss(this,"parentkey",void 0),ss(this,"currentRow",void 0),ss(this,"fromEntity",void 0),ss(this,"fromEntityId",void 0),ss(this,"fromEntityName",void 0),ss(this,"btnLocation",void 0),ss(this,"goBack",void 0),ss(this,"controlId",void 0),this.parentkey=e.objectTypeName,this.currentRow=e.currentRow,this.fromEntity=e.fromEntity,this.fromEntityName=e.fromEntityName,this.fromEntityId=e.fromEntity&&e.fromEntity.$id,this.btnLocation=Fo.SubgridOption,this.goBack=i,this.controlId=a}}class hs extends ls{constructor(e,t,r,i,a){super(e,t,r),ss(this,"currentRow",void 0),ss(this,"btnLocation",void 0),ss(this,"goBack",void 0),ss(this,"controlId",void 0),this.currentRow=e.currentRow,this.btnLocation=Fo.ViewOption,this.goBack=i,this.load=e.load,this.controlId=a}}var fs=r("ef51");function ms(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}async function gs(e){let t;try{t=new bs(e),await t.click()}catch(e){}finally{t=null}}class bs{constructor(e){ms(this,"thisVue",void 0),ms(this,"appkey",void 0),ms(this,"bizOperationName",void 0),ms(this,"location",void 0),ms(this,"controlId",void 0),ms(this,"isbatch",void 0),ms(this,"isLoading",!1),this.thisVue=e.thisVue,this.appkey=e.resourceKey,this.bizOperationName=e.bizOperationName,this.location=e.location,this.controlId=e.controlId,this.isbatch=e.isbatch}async click(e){if("gridtable"===this.location)return this.thisVue.$PlatUtils.listenerHook(this,"init_web_resource_"+this.controlId,this.initWebResource),void this.thisVue.$emit("click",e);"gridheader"===this.location&&!this.isbatch&&this.thisVue.multipleSelection.length>1?rt.showErrorToast(this.thisVue.$_t("platform.bizIsBatch","当前业务操作只支持操作单条数据")):await this.initWebResource()}async initWebResource(e){if(this.isLoading)return;this.thisVue.$bus.$off("init_web_resource_"+this.controlId,this.initWebResource);const t=this.initContext();await this.getWebResource(t)}initContext(){let e=null;if(this.thisVue.pageType==fs.e.PCQuery&&"gridtable"==this.location)return e=new hs(this.thisVue,this.openDialogComponent.bind(this),this.jumpComponentByRouter.bind(this),this.goBack.bind(this)),e;switch(this.location){case"gridheader":e=new cs(this.thisVue,this.openDialogComponent.bind(this),this.jumpComponentByRouter.bind(this),this.goBack.bind(this),this.isbatch);break;case"gridtable":e=new ps(this.thisVue,this.openDialogComponent.bind(this),this.jumpComponentByRouter.bind(this),this.goBack.bind(this));break;case"subgrid":e=new us(this.thisVue,this.openDialogComponent.bind(this),this.jumpComponentByRouter.bind(this),this.goBack.bind(this));break;case"formheader":e=new ds(this.thisVue,this.openDialogComponent.bind(this),this.jumpComponentByRouter.bind(this),this.goBack.bind(this),this.controlId)}return e}goBack(){this.thisVue.$router.go(-1)}openDialogComponent(e,t,r){const i=this.initContext();let a=e.options&&e.options.name||e.name;return a?(a+="_biz_pc","function"!=typeof N.a.component(a)&&window.Vue.component(a,e),new Promise((e,n)=>{const o={bizContext:i};let s=new(N.a.extend({render:e=>e(a,{ref:"bus_"+a,props:o}),store:this.thisVue.$store,i18n:this.thisVue.$i18n,router:this.thisVue.$router}));s.$mount();const l=s.$refs["bus_"+a];s.$nextTick(()=>{t&&l[t](r)});const d=()=>{s&&(s.$destroy(),s=void 0)};l.$once("close",()=>{d(),n()}),l.$once("confirm",()=>{d(),e()}),this.thisVue.$once("hook:beforeDestroy",()=>{d()})})):Promise.reject(new Error(""))}jumpComponentByRouter(e,t,r){const i=this.thisVue.$router,a=this.thisVue.$route,n={name:a.name,params:a.params,query:a.query},o=[{path:"/"+t,name:t,component:e}];i.addRoutes(o),sessionStorage.setItem("currentroute_"+window.rtconfig.keycloak_realm,JSON.stringify(n)),i.push({name:t,...r})}async getWebResource(e){this.isLoading=!0,this.appkey||(this.isLoading=!1);try{const t=(await e.$PlatUtils.getCustomResource(this.appkey,"$bizComponentResource$")).default.businessComponents;if(t&&t.length>0){const r=t.find(e=>e.name==this.bizOperationName);if(r){const t=r.entry(e);t instanceof Promise&&await t}}this.isLoading=!1}catch(e){this.isLoading=!1}}}var ys={name:"ApprovalProcessStart",props:{prefix:{type:String,default:"api"},logicalName:{type:String,default:""},afterEntityId:{type:String,default:""},formId:{type:String,default:""}},data:()=>({editForm:{flowId:""}}),mounted(){this.$PlatUtils.listenerHook(this,"biz-submit-success",()=>{this.$nextTick(()=>{this.$emit("confirm")})},!0),this.$PlatUtils.listenerHook(this,"biz-submit-error",()=>{this.$nextTick(()=>{this.$emit("confirm")})},!0)},methods:{async show(){try{this.objectTypeName=this.logicalName,this.editForm.$id=this.afterEntityId,this.load=()=>{},await gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfSubmitExecute",location:"formheader"})}catch(e){}finally{this.$emit("close")}}}},vs=Object(_.a)(ys,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,null,null).exports,xs=r("39dd"),ws={name:"ApprovalStateLine",components:{customerComponent:xs.a},props:{dataId:{type:String,default:""},logicalname:{type:String,default:""},editForm:{type:Object,default:null},displayCount:{type:Number,default:3},inVForm:{type:Boolean,default:!1}},data:()=>({currentEditForm:null,isInit:!1,customKey:"",setCustomKeyCount:0}),watch:{dataId(e){e&&rt.isNull(this.currentEditForm)&&this.reLoad()}},mounted(){this.init(),this.$PlatUtils.listenerHook(this,"refresh-platform-approval-stateLine",this.setCustomKey,!0)},methods:{setCustomKey(){(this.setCustomKeyCount>0||!this.inVForm)&&(this.customKey=rt.newUUID()),this.setCustomKeyCount=this.setCustomKeyCount+1},async init(){try{var e;null!==(e=this.editForm)&&void 0!==e&&e.$id?this.currentEditForm=this.editForm:this.currentEditForm=await this.fetchData()}catch(e){rt.showErrorToast((null==e?void 0:e.message)||e)}finally{this.isInit=!0}},async reLoad(){try{this.currentEditForm=await this.fetchData()}catch(e){rt.showErrorToast((null==e?void 0:e.message)||e)}},async fetchData(){if(rt.isNullOrWhiteSpace(this.dataId))return null;const e=this.$route.params.stepid||this.$route.params.taskid,t=this.$route.params.todotaskid;let r=`api/dynamic/${this.logicalname}/get?id=${this.dataId}`;return e&&(r=`${r}&ApproveStepId=${e}`),t&&(r=`${r}&toDoTaskId=${t}`),rt.get(r)}}},_s=Object(_.a)(ws,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.isInit?r("customer-component",{attrs:{appkey:"approval-state-line-pc","component-name":"approval-state-line-pc","custom-component-ref":"approval-state-line-pc","edit-form":e.currentEditForm,"load-data-completed":e.isInit,"object-id":e.dataId,"object-type-name":e.logicalname,"display-count":e.displayCount,"refresh-key":e.customKey},on:{reLoad:e.init}}):e._e()],1)}),[],!1,null,null,null).exports,Es={name:"ApprovalStateLinePublic",components:{ApprovalStateLine:_s},props:{dataId:{type:String,default:""},logicalname:{type:String,default:""},editForm:{type:Object,default:null},checkIsJApproval:{type:Function,default:null},displayCount:{type:Number,default:3},inVForm:{type:Boolean,default:!1}},data:()=>({showJApproveBtn:!1,showJApproveLoading:!1}),mounted(){this.checkApprovalBtn()},methods:{async checkApprovalBtn(){if(this.showJApproveLoading=!1,this.checkIsJApproval)try{return this.showJApproveBtn=this.checkIsJApproval(),void(this.showJApproveLoading=!0)}catch(e){}if(this.$store.state.systemparameter.EnableJSignedFlow&&"false"==this.$store.state.systemparameter.EnableJSignedFlow.toLowerCase())this.showJApproveBtn=!1,this.showJApproveLoading=!0;else try{let e=await rt.get("api/CrmFlow/GetFlowApproveProgressList?entityName="+this.entityName+"&entityId="+this.entityId);if(rt.isNull(e)||0===e.length){let e=await rt.get("api/CrmFlow/GetFlowApproveLogList?entityName="+this.entityName+"&entityId="+this.entityId);(rt.isNull(e)||0===e.length)&&(this.showJApproveBtn=!0)}}catch(e){this.showJApproveBtn=!0}finally{this.showJApproveLoading=!0}}}},Cs=Object(_.a)(Es,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"approval-state-line-public apaas-card"},[e.showJApproveLoading&&e.showJApproveBtn?r("ApprovalStateLine",{attrs:{"edit-form":e.editForm,"data-id":e.dataId,logicalname:e.logicalname,"display-count":e.displayCount,"in-v-form":e.inVForm}}):e._e()],1)}),[],!1,null,null,null).exports,Ns={name:"RtWwOpenData",mixins:[ye.a],props:{type:{type:String,required:!0},openid:{type:String,required:!0},corpid:{type:String,required:!1}},computed:{},watch:{openid(e){this.$nextTick(()=>{this.isQyWxTenant&&WWOpenData.bind(this.$el)})}},mounted(){this.isQyWxTenant&&WWOpenData.bind(this.$el)}},Ss=Object(_.a)(Ns,(function(){var e=this.$createElement,t=this._self._c||e;return this.corpid?t("ww-open-data",{attrs:{corpid:this.corpid,type:this.type,openid:this.openid}}):t("ww-open-data",{attrs:{type:this.type,openid:this.openid}})}),[],!1,null,null,null).exports;function Ts(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let ks=class extends te.f{constructor(...e){super(...e),Ts(this,"className",""),Ts(this,"iconname",""),Ts(this,"fillcolor",""),Ts(this,"readonly",!1),Ts(this,"disabled",!1),Ts(this,"maxlength",void 0),Ts(this,"value","")}plantClick(){this.$emit("iconClick",this.value)}showme(e){this.$emit("getInput",e)}goBlur(e){this.$emit("blur",e)}};Object(J.__decorate)([Object(te.d)()],ks.prototype,"className",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"iconname",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"fillcolor",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"readonly",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"maxlength",void 0),Object(J.__decorate)([Object(te.d)()],ks.prototype,"value",void 0),ks=Object(J.__decorate)([Object(te.a)({name:"plant-phone"})],ks);var Os=ks,Is=(r("823b"),Object(_.a)(Os,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"has-plant",class:e.className},[r("rt-icon",{staticClass:"left-icon",attrs:{name:e.iconname,color:e.fillcolor},on:{click:e.plantClick}}),r("rt-input",{ref:"phoneRef",attrs:{value:e.value,maxlength:e.maxlength,readonly:e.readonly,disabled:e.disabled},on:{input:e.showme,blur:e.goBlur}})],1)}),[],!1,null,"3a8aaaca",null).exports),Ds={name:"RtRadioGroupNew",props:{value:[String,Number,Boolean],displayValue:Array,objectTypeName:String,attribute:String,disabled:{type:Boolean,default:!1}},data:()=>({radioList:[],originalOptions:[],loaded:!1}),watch:{displayValue(e,t){Array.isArray(e)&&Array.isArray(t)?e.sort().join(",")!==t.sort().join(",")&&this.setOptions():e!=t&&this.setOptions()}},mounted(){this.getValues()},methods:{getValues(){this.loaded=!1;let e="api/crmpicklist/options/"+this.objectTypeName+"/"+this.attribute;rt.get(e).then(e=>{this.originalOptions=e||[],this.setOptions(),this.loaded=!0}).catch(()=>{this.loaded=!0})},setOptions(){Array.isArray(this.displayValue)?this.radioList=this.originalOptions.filter(e=>this.displayValue.some(t=>e.Value==t)):this.radioList=this.originalOptions,!this.value&&0!==this.value||this.radioList.some(e=>e.Value===this.value)||this.$emit("input","",this.value,{isInnerInput:!0})},handleInput(e){this.$emit("input",e),this.$emit("change",e)}}},As=(r("5f56"),Object(_.a)(Ds,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.radioList.length?r("rc-radio-group",{staticClass:"radioGroupNew-radioGroup",attrs:{value:e.value,"border-size":"small",disabled:e.disabled},on:{input:e.handleInput}},e._l(e.radioList,(function(t){return r("rc-radio",{key:t.Value,attrs:{label:t.Value,disabled:!!t.StateCode}},[e._v(e._s(t.Text))])})),1):e.loaded?r("h3",{staticClass:"radioGroupNew"},[e._v(" "+e._s(e.$_t("platform.noData","暂无数据"))+" ")]):e._e()],1)}),[],!1,null,"1a48af3d",null).exports),Ms=r("18a3"),Ls=r("6053"),Rs={name:"TableCellEdit",mixins:[Ls.a,Xi.a],props:{value:String|Number|void 0,tableColumnProps:Object,dataType:String,subgridLookupProps:Object,defaultvalue:String|Number|void 0,row:Object,subgridkey:String,referencedEntity:String,datafieldname:String,relationshipId:String,minValue:Number|String,maxValue:Number|String,precision:Number|String,attributeType:String,dateTimeFormat:String,showcolor:Boolean,options:{type:Array,default:()=>[]}},data(){return{newValue:this.value,pickOptions:[]}},computed:{renderType(){switch(this.dataType){case"bit":return"boolean";case"lookup":return"lookup";case"picklist":return"picklist";case"picklistarray":return"picklistarray";case"date":case"datetime":return"datetime";case"int":case"float":case"decimal":case"bigint":case"money":return"inputNumber";case"input":default:return"input"}}},watch:{value(e){this.newValue=e}},mounted(){this.loadOptions()},methods:{setSubgridRowProps(){this.$bus.$emit("getSubgridChangedProps_"+this.subgridkey,this.tableColumnProps.property),this.$bus.$emit("getTableColumnProps_"+this.subgridkey,this.tableColumnProps)},blurAndChangeVal(){this.setSubgridRowProps()},setCommonData(){this.$bus.$emit("subgridEditProps_"+this.subgridkey,this.tableColumnProps.property),this.$bus.$emit("getTableColumnProps_"+this.subgridkey,this.tableColumnProps)},changeCurrentValue(e,t){let r;const i=this.subgridLookupProps&&(this.subgridLookupProps.nameField||""),a=this.subgridLookupProps&&(this.subgridLookupProps.idField||"");r=null!=e&&"object"==typeof e&&a?{id:e.$id||e[a],name:e.$name||e[i],logicalname:e.$logicalname}:null==e?null:e,this.setCommonData(),t&&r?this.$emit("change",r,this.tableColumnProps.property,e):this.$emit("input",r,this.tableColumnProps.property)},clearHandle(){setTimeout(()=>{this.$emit("input","",this.tableColumnProps.property)},10)},handlePickListChange(e){this.setSubgridRowProps(),this.setCommonData(),this.$emit("change",e,this.tableColumnProps.property)},handleLookupChange(e){this.setSubgridRowProps(),this.changeCurrentValue(e,!0),this.$emit("attributeMappingCallback",e)},renderInputNumber(e){var t={props:{value:this.newValue,size:"small"},on:{blur:this.blurAndChangeVal,input:this.changeCurrentValue}};rt.isNil(this.maxValue)?t.props.max=1e9:t.props.max=_e.a.getAvailableValue(this.maxValue),rt.isNil(this.minValue)||(t.props.min=_e.a.getAvailableValue(this.minValue)),t.props.localeFormatCode=this.numberLocaleCode;let r=_e.a.getAvailableValue(this.precision);return"float"!==this.attributeType&&(r||(r=0),t.props.needZeroFill=this.needZeroFill),t.props.precision=r,e("rc-input-number",t)},renderDefaultInput(e){return e("rc-input",{attrs:{debounce:0},props:{value:this.newValue,size:"small"},on:{input:this.changeCurrentValue,blur:this.blurAndChangeVal,click:this.clearHandle}})},setRequestUrl(e,t){t.props.requestUrl=this.getFunctionByExpression(e).call(this.tableColumnProps.row)},renderDefaultLookup(e){const{entity:t,nameField:r,idField:i,filterAttributeName:a,dependentAttributeDisplayName:n,requestUrl:o,dialogDisplayFields:s,dialogOrderbyFields:l,DefaultViewId:d,dialogFilterFields:c,DependentAttributeName:u,FilterRelationAttrName:p,defaultViewLogicalName:h}=this.subgridLookupProps;var f={props:{value:this.tableColumnProps.row[this.tableColumnProps.property]||null,entity:t,nameField:r,idField:i,dialogFilterFields:c,filterAttributeName:a,dependentAttributeDisplayName:n},on:{change:this.handleLookupChange}};if(d&&(rt.isNullOrWhiteSpace(o)||this.setRequestUrl(o,f),f.props.requestUrl="api/vlist/ExecuteQuery?queryid="+d),o&&this.setRequestUrl(o,f),f.props.dialogDisplayFields=s,f.props.defaultViewLogicalName=h,f.props.dialogOrderbyFields=l,d?(f.props.dialogFilterFields="",f.props.defaultViewId=d):f.props.dialogFilterFields=c,f.props.requestUrl&&f.props.requestUrl.indexOf("api/vlist/ExecuteQuery")<0&&(f.props.showVlist=!1),u){let e=this.tableColumnProps.row[u];e&&"object"==typeof e&&e.id?this.$set(f.props,"filterAttributeValue",e.id):this.$set(f.props,"filterAttributeValue",e)}if(f.props.filterAttributeValue){let e=[];if(Array.isArray(f.props.filterAttributeValue)&&f.props.filterAttributeValue.length>0&&f.props.filterAttributeValue.forEach(t=>{e.push(t.id)}),0==e.length){let e=p+" eq "+f.props.filterAttributeValue;this.$set(f.props,"dialogConditionFields",e)}}return e("rt-lookup",f)},renderDefaultPicklist(e){const t="picklistarray"===this.dataType,r=this.pickOptions.some(e=>e.Color);return e("rc-picklist",{props:{value:this.newValue,placeholder:this.$_t("common.select","请选择"),options:this.pickOptions,clearable:!0,multiple:t,tag:r},on:{change:this.handlePickListChange}})},renderDefaultDateTime(e){return e("rc-date-picker",{props:{value:this.newValue||null,placeholder:this.$_t("common.select","请选择"),clearable:!0,type:"DateOnly"==this.dateTimeFormat?"date":"datetime"},attrs:{format:"DateOnly"==this.dateTimeFormat?this.getDateFormat():this.getDateMinuteFormat()},on:{input:this.handlePickListChange}})},renderBoolean(e){const t=this.pickOptions.some(e=>e.Color);return e("rc-picklist",{props:{value:this.newValue,placeholder:this.$_t("common.select","请选择"),options:this.pickOptions,clearable:!1,tag:t},on:{change:this.handlePickListChange}})},async loadOptions(){if(!["picklist","picklistarray","bit"].includes(this.dataType))return;const{property:e,row:t}=this.tableColumnProps;try{let r=[];if(this.options&&this.options.length>0)r=this.options;else{const i=`api/crmpicklist/options/${t.$logicalname||""}/${e}`;r=await rt.get(i)}if(this.subgridLookupProps&&this.subgridLookupProps.displayValueExpression){const e=this.getFunctionByExpression(this.subgridLookupProps.displayValueExpression,["options"]).call(this,r);e&&e instanceof Array&&(r=r.filter(t=>e.includes(t.Value)))}r&&r.length>0&&r.forEach(e=>{if(e.StateCode&&(e.disabled=!0),e.IconSrc="",this.showcolor){let t=this.SCSS_VARIABLES.COLOR_I1,r=this.SCSS_VARIABLES.NEUTRAL_COLOR_PRIMARY,i=this.SCSS_VARIABLES.COLOR_INFO;"COLOR_I1"!==e.Color&&(r=this.SCSS_VARIABLES.COLOR_TEXT_WHITE,i=void 0),this.SCSS_VARIABLES[e.Color]?t=this.SCSS_VARIABLES[e.Color]:e.Color&&e.Color.startsWith("#")&&(t=e.Color),e.tagFontColor=r,e.tagBgColor=t,e.tagClosableIconColor=i}}),"bit"===this.dataType?this.pickOptions=r.map(e=>({...e,Value:1===e.Value})):this.pickOptions=r}catch(e){rt.showErrorToast(e)}}},render(e){switch(this.renderType){case"boolean":return this.renderBoolean(e);case"lookup":return this.renderDefaultLookup(e);case"picklist":case"picklistarray":return this.renderDefaultPicklist(e);case"inputNumber":return this.renderInputNumber(e);case"datetime":return this.renderDefaultDateTime(e);case"input":default:return this.renderDefaultInput(e)}}},Ps=Object(_.a)(Rs,void 0,void 0,!1,null,null,null).exports,$s={name:"RtCommentComponent",props:{size:{type:String,default:"small"},formId:{type:String,default:""},objectId:{type:String,default:""},objectTypeName:{type:String,default:""},objectName:{type:String,default:""},editForm:{type:Object,default:()=>({})},label:{type:String,default:"评论组件"},langkey:{type:String,default:""},showLabel:{type:Boolean,default:!1},canUploadPicture:{type:Boolean,default:!1},canUploadNote:{type:Boolean,default:!1},atTeamMember:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:()=>({isMounted:!1}),mounted(){this.isMounted=!0}},Fs=Object(_.a)($s,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{staticClass:"rt-comment-component"},[e.isMounted?r("customer-component",e._g({ref:"customerComponent",attrs:{appkey:"platComment","component-name":"platComment","custom-component-ref":"platComment",size:e.size,"form-id":e.formId,"object-id":e.objectId,"object-type-name":e.objectTypeName,"object-name":e.objectName,"edit-form":e.editForm,label:e.label,langkey:e.langkey,"show-label":e.showLabel,"can-upload-picture":e.canUploadPicture,"can-upload-note":e.canUploadNote,"at-team-member":e.atTeamMember,readonly:e.readonly}},e.$listeners)):e._e()],1)}),[],!1,null,null,null).exports,js={name:"WordTemplateDialog",props:{entityName:{type:String},entityDisplayName:{type:String,required:!1,default:""}},data:function(){return{dialogFormVisible:!1,dialogLoading:!1,wordTemplateItems:[],isPreview:!1,printEntityName:"",isSubGrid:!1,sugGridTagData:null,isAllSubgrid:!1,currTime:"",isMask:!1,selectionLength:0,templateOptions:[],rules:{templateIdSelect:[{message:this.$_t("platform.selectTemplate","请选择打印模板"),required:!0,trigger:"change"}],fileName:[{message:this.$_t("platform.templateFileName","请输入打印文件名称"),required:!0,trigger:"blur"}]},ruleForm:{templateIdSelect:"",isMergePrint:!1,fileName:"",isMask:!0},templateIdSelectCopy:"",limitPrintFileDownloadQuantity:this.$store.state.systemparameter&&this.$store.state.systemparameter.LimitPrintFileDownloadQuantity,currentSelectedIds:[]}},computed:{isQuickFalseTriangle(){return this.ruleForm.isMergePrint?"excelExport-button-triangle":"triangleFalse"},isQuickTrue(){return this.ruleForm.isMergePrint?"excelExport-button-first":"excelExport-button-first checked"},isQuickFalse(){return this.ruleForm.isMergePrint?"excelExport-button-first checked":"excelExport-button-first"},isQuickTrueTriangle(){return this.ruleForm.isMergePrint?"triangleFalse":"excelExport-button-triangle"},badgeCountMask(){return this.isPreview?"2":this.ruleForm.isMergePrint?"4":"3"}},watch:{"ruleForm.templateIdSelect"(e){this.checkIsMask()}},methods:{async show(e,t,r,i,a){this.currentSelectedIds=a.selection,e?(this.isSubGrid=!0,this.sugGridTagData=r,this.isAllSubgrid=i,this.printEntityName=e):this.printEntityName=this.entityName,this.isPreview=t;let n=(null==a?void 0:a.printTemplateId)||"";const o=(null==a?void 0:a.selectionLength)||0;if(this.selectionLength=o,this.templateOptions=await this.getWordTemplate(),0==this.templateOptions.length)return;n&&!this.templateOptions.some(e=>e.Value===n)&&(n=""),n||1!=this.templateOptions.length||(n=this.templateOptions[0].Value),this.ruleForm.isMergePrint=!1;const s=(new RtDate).format("YYYYMMDDHHmmss");let l=this.entityDisplayName||r&&r.targetEntityDisplayName;this.ruleForm.fileName=`${l}_${s}`,this.$refs.wordTemplate&&this.$refs.wordTemplate.clearValidate(),n&&(this.ruleForm.templateIdSelect=n),await this.checkIsMask(),n?this.isMask||o>1&&!t?this.dialogFormVisible=!0:this.Confirm()||(this.dialogFormVisible=!0):this.dialogFormVisible=!0},async checkIsMask(){if(!this.templateIdSelectCopy||this.templateIdSelectCopy!==this.ruleForm.templateIdSelect){this.templateIdSelectCopy=this.ruleForm.templateIdSelect,this.isMask=!1,this.ruleForm.isMask=!0;try{if(!this.ruleForm.templateIdSelect)return;rt.showLoadingToast(),await rt.get("api/WordTemplate/CheckMask?templateId="+this.ruleForm.templateIdSelect)&&(this.isMask=!0)}catch(e){}finally{rt.hideLoadingToast()}}},async getWordTemplate(){try{rt.showLoadingToast();const e=await rt.post("api/WordTemplate/GetTemplateList?entityName="+this.printEntityName,this.currentSelectedIds);return 0==e.length?(rt.showErrorToast(this.$_t("WordTemplateTip2","请维护当前实体的打印模板")),[]):e.map(e=>({Value:e.new_printtemplateid,Text:e.new_name}))}catch(e){return[]}finally{rt.hideLoadingToast()}},Cancel(){this.dialogFormVisible=!1,this.$refs.wordTemplate&&this.$refs.wordTemplate.resetFields()},Confirm(){return this.ruleForm.templateIdSelect?!this.ruleForm.fileName&&this.ruleForm.isMergePrint?(rt.showErrorToast(this.$_t("platform.templateFileName","请输入打印文件名称")),!1):(this.isSubGrid?this.$emit("relationWordTemplateCallback",this.ruleForm.templateIdSelect,this.isPreview,this.sugGridTagData,this.isAllSubgrid,this.ruleForm.isMergePrint,this.ruleForm.fileName,this.limitPrintFileDownloadQuantity,this.ruleForm.isMask):this.$emit("WordTemplateDialogCallback",this.ruleForm.templateIdSelect,this.isPreview,this.ruleForm.isMergePrint,this.ruleForm.fileName,this.limitPrintFileDownloadQuantity,this.ruleForm.isMask),this.Cancel(),!0):(rt.showErrorToast(this.$_t("WordTemplateTipDialogchoose","请先选择打印模板!")),!1)},handleOptionClicked(e){this.ruleForm.isMergePrint=e}}},Bs=(r("5bdc"),Object(_.a)(js,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"WordTemplate",attrs:{title:e.$_t("WordTemplate","模板打印"),size:"small","close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":"",height:"auto",validate:!0,width:"37%"},on:{close:e.Cancel,confirm:e.Confirm,cancel:e.Cancel,input:e.Cancel},model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}},[r("rc-view",[r("rc-card",{staticClass:"wordTemplateCard"},[r("rc-section",{staticClass:"wordTemplateSection"},[r("rc-form",{ref:"wordTemplate",attrs:{model:e.ruleForm,"label-position":"left",rules:e.rules}},[r("div",{staticClass:"excelExport-card-form"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:"1",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("WordTemplateTip1","请选择打印模板")))])],1),r("rc-row",[r("rc-col",{attrs:{span:14}},[r("rc-form-item",{attrs:{prop:"templateIdSelect"}},[r("rc-picklist",{attrs:{placeholder:e.$_t("WordTemplateTip1","请选择打印模板"),options:e.templateOptions},model:{value:e.ruleForm.templateIdSelect,callback:function(t){e.$set(e.ruleForm,"templateIdSelect",t)},expression:"ruleForm.templateIdSelect"}})],1)],1)],1)],1),!e.isPreview&&e.selectionLength>1?r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("rc-badge",{attrs:{value:"2",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("platform.wordMethod","请选择打印方式")))])],1),r("rc-form-item",[r("div",{staticClass:"excelExport-button-div"},[r("div",{class:e.isQuickTrue,on:{click:function(t){return e.handleOptionClicked(!1)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.printSeparately","各个单据分别打印"))+" ")]),r("div",{class:e.isQuickTrueTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{class:e.isQuickFalse,on:{click:function(t){return e.handleOptionClicked(!0)}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("platform.merge","合并为一个文件"))+" ")]),r("div",{class:e.isQuickFalseTriangle},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])])],1):e._e(),e.ruleForm.isMergePrint&&!e.isPreview?r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("rc-badge",{attrs:{value:"3",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("platform.templateName","打印文件名称")))])],1),r("rc-row",[r("rc-col",{attrs:{span:18}},[r("rc-form-item",{attrs:{prop:"fileName"}},[r("rc-input",{attrs:{"show-suffix-icon":"",clearable:!1},model:{value:e.ruleForm.fileName,callback:function(t){e.$set(e.ruleForm,"fileName",t)},expression:"ruleForm.fileName"}})],1)],1)],1)],1):e._e(),e.isMask?r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("rc-badge",{attrs:{value:e.badgeCountMask,type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("wordtemplate.needmask","请选择掩码字段样式")))])],1),r("rc-form-item",[r("div",{staticClass:"excelExport-button-div"},[r("div",{staticClass:"excelExport-button-first",class:{checked:e.ruleForm.isMask},on:{click:function(t){e.ruleForm.isMask=!0}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("wordtemplate.maskedformat","掩码格式"))+" ")]),r("div",{class:[e.ruleForm.isMask?"excelExport-button-triangle":"triangleFalse"]},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{staticClass:"excelExport-button-first",class:{checked:!e.ruleForm.isMask},on:{click:function(t){e.ruleForm.isMask=!1}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("wordtemplate.normaldisplay","正常展示"))+" ")]),r("div",{class:[e.ruleForm.isMask?"triangleFalse":"excelExport-button-triangle"]},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])])],1):e._e()])],1)],1)],1)],1)}),[],!1,null,"ade63fba",null).exports),Us={name:"FormWordTemplateDialog",props:{entityName:{type:String},entityDisplayName:{type:String,required:!1,default:""}},data:function(){return{dialogFormVisible:!1,dialogLoading:!1,isPreview:!1,printEntityName:"",currTime:"",isMask:!1,templateOptions:[],rules:{templateIdSelect:[{message:this.$_t("platform.selectTemplate","请选择打印模板"),required:!0,trigger:"change"}],fileName:[{message:this.$_t("platform.templateFileName","请输入打印文件名称"),required:!0,trigger:"blur"}]},ruleForm:{templateIdSelect:"",fileName:"",isMask:!0},templateIdSelectCopy:"",currentSelectedIds:[]}},watch:{"ruleForm.templateIdSelect"(e){this.checkIsMask()}},methods:{async show(e,t,r,i={}){this.currentSelectedIds=i.selection,this.printEntityName=e||this.entityName,this.isPreview=t;let a=(null==i?void 0:i.printTemplateId)||"";if(this.templateOptions=await this.getWordTemplate(),0!=this.templateOptions.length){if(a&&!this.templateOptions.some(e=>e.Value===a)&&(a=""),a||1!=this.templateOptions.length||(a=this.templateOptions[0].Value),this.$refs.formWordTemplate&&this.$refs.formWordTemplate.clearValidate(),a&&(this.ruleForm.templateIdSelect=a),await this.checkIsMask(),a&&!this.isMask&&this.Confirm())return;this.dialogFormVisible=!0}},async checkIsMask(){if((!this.templateIdSelectCopy||this.templateIdSelectCopy!==this.ruleForm.templateIdSelect)&&(this.templateIdSelectCopy=this.ruleForm.templateIdSelect,this.isMask=!1,this.ruleForm.isMask=!0,this.ruleForm.templateIdSelect))try{rt.showLoadingToast(),await rt.get("api/WordTemplate/CheckMask?templateId="+this.ruleForm.templateIdSelect)&&(this.isMask=!0)}catch(e){}finally{rt.hideLoadingToast()}},async getWordTemplate(){try{rt.showLoadingToast();const e=await rt.post("api/WordTemplate/GetTemplateList?entityName="+this.printEntityName,this.currentSelectedIds);return 0==e.length?(rt.showErrorToast(this.$_t("WordTemplateTip2","请维护当前实体的打印模板")),[]):e.map(e=>({Value:e.new_printtemplateid,Text:e.new_name}))}catch(e){return[]}finally{rt.hideLoadingToast()}},Cancel(){this.dialogFormVisible=!1,this.$refs.formWordTemplate&&this.$refs.formWordTemplate.resetFields()},Confirm(){return this.ruleForm.templateIdSelect?(this.$emit("WordTemplateDialogCallback",this.ruleForm.templateIdSelect,this.isPreview,this.ruleForm.fileName,this.ruleForm.isMask),this.Cancel(),!0):(rt.showErrorToast(this.$_t("WordTemplateTipDialogchoose","请先选择打印模板!")),!1)}}},Vs=(r("0c8c"),Object(_.a)(Us,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"WordTemplate",attrs:{title:e.$_t("WordTemplate","模板打印"),size:"small","close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":"",height:"auto",validate:!0,width:"37%"},on:{close:e.Cancel,confirm:e.Confirm,cancel:e.Cancel,input:e.Cancel},model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}},[r("rc-view",[r("rc-card",{staticClass:"wordTemplateCard"},[r("rc-section",{staticClass:"wordTemplateSection"},[r("rc-form",{ref:"formWordTemplate",attrs:{model:e.ruleForm,"label-position":"left",rules:e.rules}},[r("div",{staticClass:"excelExport-card-form"},[r("div",{staticClass:"excelExport-card-form-div"},[r("rc-badge",{attrs:{value:"1",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("WordTemplateTip1","请选择打印模板")))])],1),r("rc-row",[r("rc-col",{attrs:{span:14}},[r("rc-form-item",{attrs:{prop:"templateIdSelect"}},[r("rc-picklist",{attrs:{placeholder:e.$_t("WordTemplateTip1","请选择打印模板"),options:e.templateOptions},model:{value:e.ruleForm.templateIdSelect,callback:function(t){e.$set(e.ruleForm,"templateIdSelect",t)},expression:"ruleForm.templateIdSelect"}})],1)],1)],1)],1),e.isMask?r("div",{staticClass:"excelExport-form-div"},[r("div",{staticClass:"excelExport-form-div-second"},[r("rc-badge",{attrs:{value:"2",type:"primary"}}),r("span",{staticClass:"excelExport-card-form-span"},[e._v(e._s(e.$_t("wordtemplate.needmask","请选择掩码字段样式")))])],1),r("rc-form-item",[r("div",{staticClass:"excelExport-button-div"},[r("div",{staticClass:"excelExport-button-first",class:{checked:e.ruleForm.isMask},on:{click:function(t){e.ruleForm.isMask=!0}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("wordtemplate.maskedformat","掩码格式"))+" ")]),r("div",{class:[e.ruleForm.isMask?"excelExport-button-triangle":"triangleFalse"]},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)]),r("div",{staticClass:"excelExport-button-first",class:{checked:!e.ruleForm.isMask},on:{click:function(t){e.ruleForm.isMask=!1}}},[r("h4",{staticClass:"excelExport-button-p"},[e._v(" "+e._s(e.$_t("wordtemplate.normaldisplay","正常展示"))+" ")]),r("div",{class:[e.ruleForm.isMask?"triangleFalse":"excelExport-button-triangle"]},[r("rc-icon",{attrs:{name:"plat-icon-completed",size:"14"}})],1)])])])],1):e._e()])],1)],1)],1)],1)}),[],!1,null,"20d0bd4c",null).exports),qs={name:"RtMask",props:{prop:{type:String,default:""},displayName:{type:String},rules:{type:Array,default:()=>[]},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxLength:{type:Number},editForm:{type:Object},objectId:{type:String},objectTypeName:{type:String},maskFields:{type:Object},iconname:{type:String},fillcolor:{type:String},attributemappingsMasked:{type:Array,default:()=>[]},formStatus:{type:Number},isInputAddress:{type:Boolean},loadDataCompleted:{type:Boolean},maskFieldIsMapping:{type:Object|String,default:"lookup"},textareaProps:{type:Object,default:()=>({})},placeholder:{type:String},changedProps:Array,hasBorderInput:{type:Boolean,default:!0}},data(){return{showMaskDialog:!1,isSaving:!1,formModel:{},key:0,newMaskFields:this.maskFields,newEditForm:JSON.parse(JSON.stringify(this.editForm)),maskFieldInCreate:"",realMaskValue:""}},computed:{showIcon(){return(1==this.formStatus&&this.realMaskValue||this.currentAttributemappingsMaskedField==this.prop)&&this.systemParameterMask},newchangedProps(){return[...new Set(this.changedProps)]},systemParameterMask(){return!(!this.$store.state||!this.$store.state.systemparameter)&&"true"==this.$store.state.systemparameter.EnablePrivacyDataMask},currentAttributemappingsMaskedField(){if(this.attributemappingsMasked.length>0){let e=this.attributemappingsMasked.find(e=>e.fieldName==this.prop);return e&&e.fieldName}return null},maskShowVal:{get(){return this.newEditForm[this.prop]?"string"==typeof this.newEditForm[this.prop]?this.newEditForm[this.prop]:this.newEditForm[this.prop].text:null},set(e){this.newEditForm[this.prop]?"string"==typeof this.newEditForm[this.prop]?this.newEditForm[this.prop]=e:(this.newEditForm[this.prop].text=e,this.newEditForm[this.prop].value=e):this.newEditForm[this.prop]=e,this.maskFieldInCreate=e}},maskEditVal:{get(){return this.formModel&&this.formModel[this.prop]?"string"==typeof this.formModel[this.prop]?this.formModel[this.prop]:this.formModel[this.prop].text:this.formModel?this.formModel[this.prop]:null},set(e){let t={text:e,value:e,reference:{},__$type:2};this.$set(this.formModel,this.prop,t)}},canViewMask(){return this.$store.state.user.canviewmask},canEditMask(){return this.$store.state.user.caneditmask},maskStatus(){return!(!this.newMaskFields||!this.prop)&&("string"==typeof this.newEditForm[this.prop]||this.newMaskFields[this.prop])},maskFieldIsRequired(){return this.required}},watch:{loadDataCompleted:{handler(){this.realMaskValue=this.getRealMaskValue()},immediate:!0},editForm:{handler(e){this.newEditForm={...e},0!=this.formStatus&&this.realMaskValue||(this.newEditForm[this.prop]?"object"==typeof this.newEditForm[this.prop]?this.maskFieldInCreate=this.newEditForm[this.prop].text:this.maskFieldInCreate=this.newEditForm[this.prop]:(null!=this.newEditForm[this.prop]||null===this.newEditForm[this.prop])&&(this.maskFieldInCreate=this.newEditForm[this.prop],this.newMaskFields[this.prop]=!1)),0==this.formStatus&&(this.realMaskValue=this.getRealMaskValue())},deep:!0},maskFields:{handler(e){this.newMaskFields=e,this.realMaskValue=this.getRealMaskValue()},deep:!0},newMaskFields:{handler(){this.key++},deep:!0}},created(){this.debouncedGetUnMaskData=this.debounce(this.getUnMaskDataHandler,500),this.debouncedGetMaskData=this.debounce(this.getMaskDataHandler,500),this.emitInputDebounce=this.debounce(this.emitInput,0),this.emitChangeDebounce=this.debounce(this.emitChange,200)},mounted(){0!=this.formStatus&&this.realMaskValue||(this.newEditForm[this.prop]?"object"!=typeof this.newEditForm[this.prop]?this.maskFieldInCreate=this.newEditForm[this.prop].text||this.newEditForm[this.prop]:this.maskFieldInCreate=this.newEditForm[this.prop].text:null!=this.newEditForm[this.prop]&&(this.maskFieldInCreate=this.newEditForm[this.prop])),this.$PlatUtils.listenerHook(this,"fromEntityisMounted",this.getValue)},methods:{getValue(){this.realMaskValue=this.getRealMaskValue()},getRealMaskValue(){return this.editForm[this.prop]?"string"==typeof this.editForm[this.prop]?this.editForm[this.prop]:this.editForm[this.prop].text:null},clear(){setTimeout(()=>{this.emitInputDebounce("")},50)},maskControlBlur(e){let t=null;"string"==typeof e&&rt.isNullOrWhiteSpace(e)?this.maskFieldIsRequired||(t={text:null,value:null,reference:{},__$type:2}):t={text:e,value:e,reference:{},__$type:2},this.$emit("blur",t)},maskControlInput(e){this.isInputAddress?this.emitInput(e):this.emitInputDebounce(e)},commonEmit(e,t,r=!1){if("string"==typeof e&&rt.isNullOrWhiteSpace(e))if(this.maskFieldIsRequired)this.$emit(t,null);else{let e={text:null,value:null,reference:{},__$type:2};this.tiggerHandle(t,e,r)}else{let i={text:e,value:e,reference:{},__$type:2};this.tiggerHandle(t,i,r)}},tiggerHandle(e,t,r=!1){let i=this.editForm[this.prop];i&&"object"==typeof i&&(i=i.value),(r||i!=t.value)&&this.$emit(e,t)},emitChange(e){this.commonEmit(e,"change",!0)},emitInput(e){this.commonEmit(e,"input")},getMaskDataHandler(){return new Promise((e,t)=>{const r=`api/dynamic/${this.objectTypeName}/getmaskdata?id=${this.objectId}`;let i=[this.prop];(this.$route.params.stepid||this.$route.params.taskid)&&(i.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(i.toDoTaskId=this.$route.params.todotaskid),rt.post(r,i).then(t=>{this.$emit("updateEditForm",this.prop,t[this.prop]),this.$set(this.newMaskFields,this.prop,!1),this.newMaskFields={...this.newMaskFields},this.newEditForm.globalHideMask=!1,e(this.newEditForm)}).catch(e=>{rt.showErrorToast(e),t(e)})})},getUnMaskDataHandler(){return new Promise((e,t)=>{const r=`api/dynamic/${this.objectTypeName}/getunmaskdata?id=${this.objectId}`;let i=[this.prop];(this.$route.params.stepid||this.$route.params.taskid)&&(i.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(i.toDoTaskId=this.$route.params.todotaskid),rt.post(r,i).then(t=>{this.$emit("updateEditForm",this.prop,t[this.prop]),this.$set(this.newMaskFields,this.prop,!0),this.newMaskFields={...this.newMaskFields},e(this.newEditForm)}).catch(e=>{rt.showErrorToast(e),t(e)})})},plantClick(){if(this.newMaskFields&&this.prop){let e;this.newMaskFields[this.prop]?(e="object"==typeof this.newEditForm[this.prop]?this.newEditForm[this.prop].value:this.newEditForm[this.prop],this.$emit("iconClick",e)):this.getUnmaskdataInCreate().then(t=>{t?(e="object"==typeof t[this.prop]?t[this.prop].value:t[this.prop],e||(e=this.editForm[this.prop]),this.$emit("iconClick",e)):this.$emit("iconClick",t)})}},toHideMaskHandler(){const e=this.attributemappingsMasked.find(e=>e.fieldName==this.prop);0==this.formStatus||e?this.getUnmaskdataInCreate():this.debouncedGetUnMaskData()},getUnmaskdataInCreate(){return new Promise((e,t)=>{let r=this.newEditForm[this.prop];return null==r&&"lookup"!==this.maskFieldIsMapping&&(r=this.maskFieldIsMapping),"string"==typeof r?e(null):this.maskFieldIsMapping?rt.isNull(r)?e(null):void rt.post("api/dynamic/getunmaskdatabyprivacyvalue",r).then(t=>{this.$set(this.newMaskFields,this.prop,!0),this.newMaskFields={...this.newMaskFields},this.$emit("updateEditForm",this.prop,t.value||t.text),this.attributemappingsMasked.length>0&&(this.maskFieldInCreate=this.newEditForm[this.prop].text),e(this.newEditForm)}).catch(e=>{rt.showErrorToast(e),t(e)}):e(null)})},toShowMaskHandler(){const e=this.attributemappingsMasked.find(e=>e.fieldName==this.prop);0==this.formStatus||e?this.getMaskdataInCreate():this.debouncedGetMaskData()},getMaskdataInCreate(){const e=this.newEditForm[this.prop];"string"!=typeof e&&rt.post("api/dynamic/getmaskdatabyprivacyvalue",e).then(e=>{this.$set(this.newMaskFields,this.prop,!1),this.newMaskFields={...this.newMaskFields},this.$emit("updateEditForm",this.prop,e),this.attributemappingsMasked.length>0&&(this.maskFieldInCreate=this.newEditForm[this.prop].text)}).catch(e=>{rt.showErrorToast(e)})},inputHandler(e){"string"!=typeof this.formModel[this.prop]&&rt.isNullOrWhiteSpace(e)&&(this.formModel[this.prop]="")},toEditMask(){this.showMaskDialog=!0,this.formModel=Object.assign({},this.newEditForm),this.maskStatus||(this.formModel[this.prop]=""),this.formModel={...this.formModel},this.$refs.maskForm&&this.$refs.maskForm.clearValidate()},maskCancel(){this.showMaskDialog=!1},saveMask(){this.$refs.maskForm.validate((e,t)=>{if(e){if(0==this.formStatus){let e=this.formModel[this.prop];if(this.$set(this.newEditForm,this.prop,e),this.showMaskDialog=!1,this.attributemappingsMasked.length>0)if("string"==typeof e&&rt.isNullOrWhiteSpace(e))if(this.maskFieldInCreate=this.newEditForm[this.prop],this.maskFieldIsRequired)this.$emit("input",null);else{let e={text:null,value:null,reference:{},__$type:2};this.$emit("input",e)}else if(this.maskFieldInCreate=this.newEditForm[this.prop].text,"string"==typeof e){let t={text:e,value:e,reference:{},__$type:2};this.$emit("input",t)}else{let t={text:e.text,value:e.text,reference:{},__$type:2};this.$emit("input",t)}return}this.isSaving=!0;let e=`api/dynamic/${this.objectTypeName}/savemaskdata`,t={$id:this.objectId};(this.$route.params.stepid||this.$route.params.taskid)&&(t.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(t.toDoTaskId=this.$route.params.todotaskid),"string"==typeof this.formModel[this.prop]?this.formModel[this.prop]={text:this.formModel[this.prop],value:this.formModel[this.prop],reference:{},__$type:2}:this.formModel[this.prop]&&(this.formModel[this.prop].value=this.formModel[this.prop].text),this.$set(t,this.prop,this.formModel[this.prop]),rt.post(e,t).then(e=>{const t=e[this.prop];this.$set(this.newEditForm,this.prop,t),this.maskFieldInCreate=t.text,rt.showSuccessToast(this.$_t("ModifySuccess","修改成功")),this.showMaskDialog=!1,this.$emit("updateEditForm",this.prop,t),this.$emit("resetMaskFieldStatus")},e=>{rt.showErrorToast(e),this.showMaskDialog=!0}).finally(()=>{this.isSaving=!1})}else t&&Array.isArray(t[this.prop])&&t[this.prop][0]&&t[this.prop][0].message&&rt.showErrorToast(t[this.prop][0].message)})},debounce(e,t,r=!0){const i={leading:!!r,trailing:!r};return this.$xpc.debounce(e,t,i)}}},zs=(r("2d03"),Object(_.a)(qs,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{key:e.key,staticClass:"plat-mask"},[r("div",{staticClass:"plat-mask-wrap"},[e.iconname?r("rt-icon",{staticClass:"left-icon",attrs:{name:e.iconname,color:e.fillcolor},on:{click:e.plantClick}}):e._e(),1==e.formStatus?r("div",[e.realMaskValue?[r("rc-input",{staticClass:"plat-mask-input",attrs:{value:e.maskShowVal,"max-length":e.maxLength,disabled:e.readonly||e.systemParameterMask,"clear-icon-right":e.systemParameterMask?40:0,placeholder:e.placeholder,"need-tips":"","has-border-input":e.hasBorderInput},on:{input:e.maskControlInput,blur:e.maskControlBlur,click:e.clear,change:e.emitChange}})]:[r("rc-input",{key:!!e.realMaskValue,class:e.currentAttributemappingsMaskedField==e.prop?"hideIcon":"",attrs:{value:e.maskFieldInCreate,type:e.textareaProps.isTextarea?"textarea":"input",autosize:e.textareaProps.autosize,placeholder:e.placeholder,"max-length":e.maxLength,rows:e.textareaProps.rows,"has-border-input":e.hasBorderInput,clearable:!0,"need-tips":"",disabled:e.readonly||e.currentAttributemappingsMaskedField==e.prop,"clear-icon-right":e.systemParameterMask&&e.currentAttributemappingsMaskedField?40:0},on:{click:e.clear,input:e.maskControlInput,blur:e.maskControlBlur,change:e.emitChange}})]],2):r("div",[r("rc-input",{class:e.currentAttributemappingsMaskedField==e.prop?"hideIcon":"",attrs:{value:e.maskFieldInCreate,type:e.textareaProps.isTextarea?"textarea":"input",autosize:e.textareaProps.autosize,placeholder:e.placeholder,"max-length":e.maxLength,rows:e.textareaProps.rows,"has-border-input":e.hasBorderInput,clearable:!0,disabled:e.readonly||e.currentAttributemappingsMaskedField==e.prop,"clear-icon-right":e.systemParameterMask&&e.currentAttributemappingsMaskedField?40:0},on:{click:e.clear,input:e.maskControlInput,blur:e.maskControlBlur,change:e.emitChange}})],1),e.showIcon?r("div",[e.canViewMask?r("div",{class:e.canEditMask&&!e.readonly?"hidemask canHideMask":"hidemask"},[e.maskStatus?r("rc-tooltip",{attrs:{slot:"title",content:e.$_t("platform.hideMaskData","隐藏数据"),effect:"dark",placement:"top"},slot:"title"},[r("rc-icon",{attrs:{name:"rt-saas-eye-lined",size:"16"},on:{click:e.toShowMaskHandler}})],1):r("rc-tooltip",{attrs:{slot:"title",content:e.$_t("platform.showMaskData","显示数据"),effect:"dark",placement:"top"},slot:"title"},[r("rc-icon",{attrs:{name:"plat-icon-eye-close-lined",size:"16"},on:{click:e.toHideMaskHandler}})],1)],1):e._e(),e.canEditMask&&!e.readonly?r("div",{staticClass:"editmask"},[r("rc-icon",{attrs:{name:"plat-icon-edit-lined",size:"16"},on:{click:e.toEditMask}})],1):e._e()]):e._e()],1),r("rc-dialog",{staticClass:"plat-mask-dialog",attrs:{"close-on-click-modal":!1,title:e.$_t("common.edit","编辑"),size:"small"},model:{value:e.showMaskDialog,callback:function(t){e.showMaskDialog=t},expression:"showMaskDialog"}},[r("rc-view",{staticClass:"plat-mask-view"},[r("rc-content",[r("rc-card",{attrs:{shadow:!1}},[r("rc-form",{ref:"maskForm",attrs:{model:e.formModel},nativeOn:{submit:function(e){e.preventDefault()}}},[r("rc-form-item",{attrs:{label:e.displayName,prop:e.prop,rules:e.rules,required:e.required}},[r("rc-input",e._b({attrs:{"max-length":e.maxLength,placeholder:e.placeholder},on:{blur:e.maskControlBlur,input:e.inputHandler,change:e.emitChange},model:{value:e.maskEditVal,callback:function(t){e.maskEditVal=t},expression:"maskEditVal"}},"rc-input",e.$attrs,!1))],1)],1)],1)],1)],1),r("template",{slot:"footer"},[r("rc-button",{on:{click:e.maskCancel}},[e._v(e._s(e.$_t("BUTTON_CANCEL","取消")))]),r("rc-button",{attrs:{type:"primary",loading:e.isSaving},on:{click:e.saveMask}},[e._v(e._s(e.$_t("common.determine","确定"))+" ")])],1)],2)],1)}),[],!1,null,"20f4913b",null).exports),Hs={name:"RtSaasMetaRequiredLevel",props:{objectId:{type:String},editForm:{type:Object},disabled:{type:Boolean,default:!1}},data(){return{requiredLevels:[],currentLv:"",rules:[{required:!0,message:this.$_t("common.enter","请输入")+" "+this.$_t("RtSaasMetaRequiredLevel","需求级别"),trigger:"change"}]}},computed:{level:{get(){return this.editForm.metarequiredlevel}}},watch:{currentLv(e,t){e!=t&&this.$emit("input",e)}},methods:{handleChange(e){this.$emit("updateEditForm","metarequiredlevel",e)},getRequiredLevelEnum(){return rt.get("api/meta/Entities/GetEnumList").then(e=>(this.requiredLevels=e.MetaRequiredLevel.map(e=>({Text:e.description,Value:e.value,disabled:e.disable})),this.requiredLevels)).catch(e=>{rt.showErrorToast(e)})},canModify(e){return this.disabled?this.disabled:!!e&&(this.requiredLevels.length>0?this.requiredLevels.find(t=>t.Value==e).disabled:this.getRequiredLevelEnum().then(t=>this.requiredLevels.find(t=>t.Value==e).disabled))}}},Gs=(r("8dd0"),Object(_.a)(Hs,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"optionSelect"},[t("rc-form-item",{attrs:{label:this.$_t("RtSaasMetaRequiredLevel","需求级别"),rules:this.rules,prop:"metarequiredlevel"}},[t("rc-picklist",{staticClass:"requiredLevel",attrs:{value:this.level,fetch:this.getRequiredLevelEnum,disabled:this.canModify(this.level)},on:{change:this.handleChange}})],1)],1)}),[],!1,null,"066568e0",null).exports),Ws={name:"RtRLookupDialog",props:{entityList:Array,requestUrl:{type:String,default:function(){return"../api/crmlookupview/getdata"}},dialogCallback:Function,title:{type:String,default:function(){return this.$_t("TO_FIND_THE","查找")}},items:Array,bindEntity:{type:String,default:function(){return"account"}},defaultViewsRelated:{type:Array,default:()=>[]}},data:()=>({dialogVisible:!1,loading:!1,filterValue:"",pageIndex:1,pageSize:20,layout:"total, sizes, prev, pager, next",pageSizes:[10,20,30,40,50],totalRecordCount:0,tableData:[],currentEntity:{},currentEntityIndex:0,entity:null,tableHeight:document.body.clientHeight-400,freshKey:0,selectedList:[],activeName:"0",drawerVisible:!1,nameField:"new_name"}),computed:{getName(){return e=>{const t=e.name||e.$name||e[this.nameField];return t&&"object"==typeof t?t.text:t}},selectString:{get(){if(this.currentEntity){var e=[];for(var t in e.push(this.currentEntity.nameField),e.push(this.currentEntity.idField),this.currentEntity.displayFields){var r=this.currentEntity.displayFields[t].name;e.indexOf(r)>=0||e.push(r)}return e.join(",")}return""}},displayFields:{get(){return this.currentEntity?this.currentEntity.displayFields:null}},orderbyString:{get(){return this.currentEntity.orderbyFields}},filterString:{get(){if(this.currentEntity.displayFields){var e="";return this.currentEntity.displayFields.forEach(t=>{e+=t.name+","}),e}return""}},conditionString:{get(){return this.currentEntity.conditionFields?this.currentEntity.conditionFields:""}},IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay},NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay},getTableData(){return this._memoize(this.fetchRequest,"_fetchRecords")}},watch:{currentEntityIndex(e){this.currentEntity=this.entityList[e],this.entity=this.currentEntity.entity,this.handleSearch()},dialogVisible(e){e&&(this.drawerVisible=!1,this.entityList.forEach((e,t)=>(e.entity==this.bindEntity&&(this.currentEntity=e,this.currentEntityIndex=t,this.activeName=t+"",this.entity=this.currentEntity.entity),this.defaultViewsRelated.filter(t=>{t.entityLogicalName===e.entity&&(e.defaultViewLogicalName=t.defaultViewLogicalName,e.defaultViewLogicalId=t.defaultViewLogicalId)}),e)),this.getHeight())}},mounted(){this.entityList.forEach((e,t)=>{e.entity==this.bindEntity&&(this.currentEntity=e,this.currentEntityIndex=t,this.entity=this.currentEntity.entity)}),this.$PlatUtils.listenerHook(this,"tableIsLoadComplete",e=>{if(e){this.$nextTick(()=>{const e=this.$refs["vlistcore"+this.currentEntity.entity]&&this.$refs["vlistcore"+this.currentEntity.entity][0];this.nameField=e&&e.primaryAttribute});const e=this.getCurrentVlistcoreTable();if(!e)return;if(0===this.selectedList.length)return void e.clearSelection();let t=[...this.selectedList];e&&e.dataList.forEach(r=>{e.toggleRowSelection&&e.toggleRowSelection(r,t&&t.some(e=>(e.id||e.$id)===(r.$id||r.id)))}),this.$nextTick(()=>{e.selection=this.selectedList}),this.selectedList.forEach(t=>{e.toggleRowSelection&&e.toggleRowSelection(t,!0)})}})},created(){this.getHeight(),this.$PlatUtils.eventListenerHook(this,"resize",this.getHeight,window)},beforeDestroy(){window.removeEventListener("resize",this.getHeight)},methods:{_memoize(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");const r={};return function(...i){let a;return a="function"==typeof t?t.apply(this,i):JSON.stringify([t,...i]),r[a]||(r[a]=e.apply(this,i)),r[a]}},onTableLoadComplete(){this.dialogVisible;let e=JSON.parse(JSON.stringify(this.selectedList));this.getHeight();const t=this.getCurrentTable();t&&(0===this.selectedList.length&&t.clearSelection(),t.dataList.forEach(r=>{t.toggleRowSelection&&t.toggleRowSelection(r,e&&e.some(e=>(e.id||e.$id)===(r.$id||r.id)))}),this.selectedList.forEach(e=>{t.toggleRowSelection&&t.toggleRowSelection(e,!0)}),this.$nextTick(()=>{t.selection=this.selectedList}))},setSelectedList(e){e={...e,entity:this.entity,$name:e[this.nameField]||e.$name||e.name},-1!==this.selectedList.findIndex(t=>(t.id||t.$id)===e.$id)?this.drawerDel(e):this.selectedList[this.selectedList.length]=e,this.$nextTick(()=>{(this.getCurrentVlistcoreTable()||this.getCurrentTable()).selection=this.selectedList})},handleClearSelection(){this.selectedList=[]},handleCurrentChange(e){if(Array.isArray(e))if(e.length!e.some(e=>e.$id===t.$id));e=t[0]}else{const t=e.filter(e=>!this.selectedList.some(t=>t.$id===e.$id));e=t[0]}e.$name||e.name||e[this.nameField]?this.setSelectedList(e):(this.showPrimaryAttributeToast(),this.$nextTick(()=>{const t=this.getCurrentVlistcoreTable();t.toggleRowSelection&&t.toggleRowSelection(e,!1),t.selection=this.selectedList}))},showPrimaryAttributeToast(){let e=["name","$name",this.nameField];const t=this.$refs["vlistcore"+this.currentEntity.entity]&&this.$refs["vlistcore"+this.currentEntity.entity][0].lookupTableCellFields;let r=e.some(e=>t&&t.hasOwnProperty(e));const i=this.$refs["vlistcore"+this.entity][0].queryLogicalName;r?rt.showErrorToast(this.$_t("platform.primaryAttributeIsNotEmpty","所选择的数据主字段不能为空。")):rt.showErrorToast(this.$_t("platform.configureEntity","请配置0视图的实体主字段!",{0:i}))},drawerDel(e){const t=this.getCurrentVlistcoreTable()||this.getCurrentTable(),r=this.selectedList.findIndex(t=>(t.id||t.$id)==(e.id||e.$id));if(-1!=r){this.selectedList.splice(r,1),0===this.selectedList.length&&t.clearSelection();let i=t.dataList.find(t=>(t.id||t.$id)==(e.id||e.$id));i&&t&&this.$nextTick(()=>{t.toggleRowSelection(i,!1),t.selection=this.selectedList}),this.$nextTick(()=>{t.selection=this.selectedList})}},toCloseDrawer(){this.drawerVisible=!1},toShowDrawer(){this.drawerVisible=!0},handleTabClick(){this.currentEntityIndex=Number(this.activeName),this.getHeight()},isNull(e){return!(["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length)||!0!==this.IsNullValueDisplay&&"true"!==this.IsNullValueDisplay?e:this.NullValueDisplay?this.NullValueDisplay:"--"},first(e){e.forEach(e=>{this.getCurrentTable()&&this.getCurrentTable().toggleRowSelection&&this.getCurrentTable()&&this.getCurrentTable().toggleRowSelection(e,!0)})},getHeight(){this.dialogVisible&&setTimeout(()=>{const e=this.$el.querySelector(".rtxpc-dialog__body")&&this.$el.querySelector(".rtxpc-dialog__body").getBoundingClientRect();let t=this.$el.querySelector(".rtxpc-dialog .rt-tabs__content");e&&e.height?(this.tableHeight=e&&e.height-160,t.style.height=this.tableHeight+120+"px"):(this.tableHeight=336,t.style.height=this.tableHeight+120+"px")},500)},getCurrentVlistcoreTable(){const e=this.currentEntity;return this.$refs["vlistcore"+e.entity]&&this.$refs["vlistcore"+e.entity][0]&&this.$refs["vlistcore"+e.entity][0].$refs.table},getCurrentTable(){const e=this.currentEntity;return this.$refs["lookupTable"+e.entity]&&this.$refs["lookupTable"+e.entity][0]},show(){this.dialogVisible=!0,this.filterValue="",this.pageIndex=1,this.selectedList=JSON.parse(JSON.stringify(this.items)),this.freshKey++;const e=this.getCurrentVlistcoreTable()||this.getCurrentTable();e&&e.loadData()},handleSizeChange(e){this.pageIndex=1,this.pageSize=e,this.getCurrentTable().loadData()},handleIndexChange(e){this.pageIndex=e,this.getCurrentTable().loadData();const t=this.getCurrentVlistcoreTable()||this.getCurrentTable();0===[...this.selectedList].length&&t.clearSelection()},handleSearch(){this.pageIndex=1,this.getCurrentTable()&&this.getCurrentTable().loadData()},handleReset(){this.$emit("data-selected",[]),this.dialogVisible=!1,this.dialogCallback&&this.dialogCallback([])},selectAll(e){let t=JSON.parse(JSON.stringify(this.selectedList));const r=this.getCurrentVlistcoreTable()||this.getCurrentTable();let i=!0;if(r.dataList.forEach(e=>{t.some(t=>(t.id||t.$id)===(e.id||e.$id))||(i=!1)}),i)t=t.filter(e=>!r.dataList.some(t=>(t.id||t.$id)===(e.id||e.$id)));else{let e=new Set;t=[...t,...r.dataList],t=t.filter(t=>{const r=t.id||t.$id;return!e.has(r)&&(e.add(r),!0)})}e.forEach(e=>{e[this.nameField]||e.$name||e.name||this.getCurrentVlistcoreTable()&&(this.showPrimaryAttributeToast(),t=t.filter(e=>!r.dataList.some(t=>(t.id||t.$id)===(e.id||e.$id))),r.dataList.forEach(e=>{r.toggleRowSelection&&r.toggleRowSelection(e,!1),r.selection=this.selectedList}))}),r.selection=t,this.selectedList=t.map(e=>({...e,$name:e[this.nameField]||e.$name||e.name}))},changeRow(e,t){let r=e;Array.isArray(e)&&t.$id&&(r=t),this.selectedList.find(e=>(e.$id||e.id)==r.$id)?this.selectedList=this.selectedList.filter(e=>(e.$id||e.id)!=r.$id):this.selectedList[this.selectedList.length]=r,this.$nextTick(()=>{this.getCurrentTable().selection=this.selectedList})},handleConfirm(){var e=this.selectedList;if(null==e||0==e.length)return void rt.showErrorToast(this.$_t("common.pls_select_onedata","请至少选择一条数据"));let t=[];this.selectedList.forEach(e=>{let r=e.$name||e.name||e[this.nameField];r&&"object"==typeof r&&(r=r.text),t.push({id:e.$id||e.id,name:r,logicalName:e.$logicalname||e.logicalName||e.logicalname})}),this.$emit("data-selected",t),this.dialogVisible=!1,this.dialogCallback&&this.dialogCallback(e)},_fetchRecords(){if(!this.getCurrentTable())return Promise.resolve([]);if(this.loading=!0,this.currentEntity){var e=this.requestUrl+"?entityName="+this.entity+"&page="+this.pageIndex+"&count="+this.pageSize+"&select="+this.selectString+"&orderby="+this.orderbyString+"&filter="+this.filterString+"&filterValue="+encodeURIComponent(this.filterValue||"")+"&condition="+this.conditionString;return this.fetchTableData(e)}},fetchRequest:e=>rt.get(e),fetchTableData(e){return this.getTableData(e).then(e=>{let t=[];if(this.tableData=e.Data||[],this.tableData.forEach(e=>{0==this.currentEntityIndex?t.push(e.accountid):1==this.currentEntityIndex?t.push(e.contactid):t.push(e.systemuserid)}),this.items){for(let e=0;e=0&&this.first([this.tableData[t.indexOf(this.items[e].id)]]);this.getCurrentTable()&&this.getCurrentTable().selectItem(this.items)}return this.totalRecordCount=e.TotalRecordCount,e.Data}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1})}}},Qs=(r("d25d"),Object(_.a)(Ws,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{staticClass:"rtportal rt-lookup-dialog",attrs:{"append-to-body":"","close-on-click-modal":!1,title:e.title},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearch.apply(null,arguments)}},model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}},[r("rc-tabs",{attrs:{size:"small"},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.entityList,(function(t){return r("rc-tab-pane",{key:t.entity,attrs:{label:e.$t(t.entityName)}},[t.defaultViewLogicalName&&t.defaultViewLogicalId?r("vlistcore",{key:e.activeName+t.defaultViewLogicalName,ref:"vlistcore"+t.entity,refInFor:!0,attrs:{"is-dialog-mode":!0,"object-type-name":t.entity,"query-id":t.defaultViewLogicalId,"query-logical-name":t.defaultViewLogicalName,"page-source":"lookup"},on:{"cell-click":e.handleCurrentChange,select:e.handleCurrentChange,"clear-selection":e.handleClearSelection,"select-all":e.selectAll}}):r("div",[r("div",{staticClass:"rt-lookup-dialog-search"},[r("rc-list-header",{attrs:{icon:"rt-base-defaultIcon"}},[r("rc-header-title",{attrs:{title:e.$t(t.entityName)}}),r("template",{slot:"search"},[r("rt-search",{attrs:{placeholder:e.$_t("BUTTON_SEARCH_RECORD","搜索记录"),more:!1,type:"dark"},on:{"on-search":e.handleSearch},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}})],1)],2)],1),r("rc-table",{key:e.activeName,ref:"lookupTable"+t.entity,refInFor:!0,attrs:{width:"100%",height:e.tableHeight,"highlight-current-row":"",fetch:e._fetchRecords,"total-record":e.totalRecordCount,"show-border":!1,stripe:"","row-key":"$id"},on:{"cell-click":e.changeRow,select:e.changeRow,"select-all":e.selectAll,changesize:e.handleSizeChange,changeindex:e.handleIndexChange,"load-complete":e.onTableLoadComplete,"clear-selection":e.handleClearSelection}},e._l(e.currentEntity.displayFields,(function(t){return r("rc-table-column",{key:t.name,attrs:{"show-overflow-tooltip":!0,"min-width":t.width||150,prop:t.name,label:t.label?e.$t(t.label):e.$t(e.currentEntity.entity+"."+t.name)},scopedSlots:e._u([{key:"default",fn:function(r){var i=r.row;return[e._v(" "+e._s(e.isNull(i[t.name]))+" ")]}}],null,!0)})})),1)],1)],1)})),1),r("div",{staticClass:"plat-section-content"},[r("rc-button",{staticClass:"drawer-btn",attrs:{"icon-name":"rt-saas-left","icon-size":"12",type:"primary",size:"medium"},on:{click:e.toShowDrawer}},[e._v(" "+e._s(e.$_t("multilookup.selectedlabel","已选")))]),r("rc-drawer",{staticClass:"dialog-drawer plat-dialog-drawer",attrs:{modal:!1,"append-to-body":!1,"with-header":!1,visible:e.drawerVisible},on:{"update:visible":function(t){e.drawerVisible=t}}},[r("template",{slot:"default"},[r("rc-button",{staticClass:"drawer-close-left",attrs:{"icon-name":"rt-saas-close-x",type:"primary"},on:{click:e.toCloseDrawer}}),r("div",{staticClass:"drawer-content"},[r("div",{staticClass:"subtitle"},[r("div",{staticClass:"plat-choiced"},[e._v(" "+e._s(this.$_t("multilookup.drawertip","已选择"))),r("span",{staticClass:"plat-choiced-item"},[e._v(" "+e._s(this.selectedList.length)+" ")]),e._v(e._s(this.$_t("multilookup.drawertip1","项"))+" ")])]),r("div",{staticClass:"choicedTag"},e._l(e.selectedList,(function(t){return r("rc-tag",{key:t.$id,attrs:{type:"fill",closable:"","icon-direction":"right"},on:{close:function(r){return e.drawerDel(t)}}},[e._v(e._s(e.getName(t)))])})),1)])],1)],2)],1),r("template",{slot:"footer"},[r("rc-button",{attrs:{size:"medium"},on:{click:e.handleReset}},[e._v(e._s(e.$_t("lookup.remove","移除值")))]),r("rc-button",{staticClass:"confirm",attrs:{type:"primary",size:"medium"},on:{click:e.handleConfirm}},[e._v(e._s(e.$_t("BUTTON_DETERMINE","确定")))])],1)],2)}),[],!1,null,"626d7360",null).exports),Xs={account:{entity:"account",entityName:"crm.account",defaultEntityName:"客户",orderbyFields:"name asc",nameField:"name",idField:"accountid",displayFields:[{name:"name",label:""},{name:"telephone1",label:""},{name:"primarycontactid",label:""},{name:"ownerid",label:""}],filterFields:"accountid,name,telephone1"},contact:{entity:"contact",entityName:"crm.contact",defaultEntityName:"联系人",orderbyFields:"fullname asc",nameField:"fullname",idField:"contactid",displayFields:[{name:"fullname",label:"new_srv_worker.new_name",width:"160"},{name:"mobilephone",label:"",width:"160"},{name:"parentcustomerid",label:"",width:"160"},{name:"new_province_id",label:""},{name:"new_city_id",label:""},{name:"new_county_id",label:""}],filterFields:"contactid,fullname,mobilephone,telephone1"},systemuser:{entity:"systemuser",entityName:"platform.systemuser",defaultEntityName:"用户",orderbyFields:"fullname asc",nameField:"fullname",idField:"systemuserid",displayFields:[{name:"fullname",label:""},{name:"mobilephone",label:""}],filterFields:"systemuserid,fullname,mobilephone"}},Ks={name:"RtPLookup",components:{"rt-p-lookup-dialog":Qs},props:{requestUrl:{type:String,default:function(){return"../api/crmlookupview/getdata"}},placeholder:{type:String,required:!1,default:function(){return this.$_t("common.select","请选择")}},value:{type:Array,required:!1,default:null},disabled:{type:Boolean,required:!1,default:function(){return!1}},entityList:{type:Array,default:function(){return[Xs.account,Xs.contact,Xs.systemuser]}},jumpid:{type:String,default:function(){return""}},bindEntity:{type:String,default:function(){return"account"}},dialogCallback:Function,defaultViewsRelated:{type:Array,default:()=>[]}},data:()=>({alias:{name:"name",value:"id"},options:[],selectOptions:[],newSelectList:[]}),computed:{},watch:{value(e){this.options=e,this.selectOptions=e.map(e=>e.id),this.newSelectList=e},options:{deep:!0,handler:function(){this.$nextTick(()=>{this.$refs.picklist&&this.$refs.picklist.bindPicklist()})}}},mounted(){if(this.value){const e=JSON.parse(JSON.stringify(this.value));this.selectOptions=e,e&&Array.isArray(e)&&e.length>0&&(this.selectOptions=e.map(e=>e.id)),this.options=e,this.newSelectList=e}},methods:{showLookupDialog(){if(this.disabled)return!1;this.$refs.plookupDialog.show()},handleDataSelected(e){this.options=e,this.selectOptions=e.map(e=>e.id),this.newSelectList=e,this.$emit("input",this.options)},selectChange(e){let t=this.options;t.forEach(r=>{var i=!0;e.forEach(e=>{r.id==e&&(i=!1)}),i&&t.splice(t.indexOf(r),1)}),this.$emit("input",t)}}},Ys=(r("f2e6"),r("7bb0"),Object(_.a)(Ks,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"rt-p-lookup-new"},[r("rc-picklist",{ref:"picklist",staticClass:"plookup-select",attrs:{value:e.selectOptions,options:e.options,alias:e.alias,disabled:e.disabled,clearable:!1,multiple:"","collapse-tags":"",placeholder:e.placeholder},on:{change:e.selectChange}}),e.disabled?e._e():r("span",{staticClass:"muilt-span",on:{click:e.showLookupDialog}},[r("rc-icon",{attrs:{name:"rt-base-lookup",color:e.SCSS_VARIABLES.NEUTRAL_COLOR_REGULAR}})],1),r("rt-p-lookup-dialog",{ref:"plookupDialog",attrs:{items:e.newSelectList,"dialog-callback":e.dialogCallback,"entity-list":e.entityList,"bind-entity":e.bindEntity,"default-views-related":e.defaultViewsRelated},on:{"data-selected":e.handleDataSelected}})],1)}),[],!1,null,"1edb42a2",null).exports),Js=r("0092");function Zs(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}window.Vue=te.f;let el=class extends(Object(te.c)(Ls.a)){constructor(...e){super(...e),Zs(this,"label",void 0),Zs(this,"hidetext",void 0),Zs(this,"disabled",void 0),Zs(this,"appkey",void 0),Zs(this,"bizOperationName",void 0),Zs(this,"thisVue",void 0),Zs(this,"type",void 0),Zs(this,"text",void 0),Zs(this,"location",void 0),Zs(this,"iconName",void 0),Zs(this,"tagData",void 0),Zs(this,"isbatch",void 0),Zs(this,"controlId",void 0),Zs(this,"size",void 0),Zs(this,"beforeExecuteFunc",void 0),Zs(this,"tooltip",void 0),Zs(this,"loaded",!1),Zs(this,"failed",!1),Zs(this,"isLoading",!1)}get bizIcon(){return this.iconName||"rt-saas-new"}async clickHandler(e){if("gridtable"===this.location)return this.$PlatUtils.listenerHook(this,"init_web_resource_"+this.controlId,this.initWebResource),void this.$emit("click",e);try{this.beforeExecuteFunc&&await this.beforeExecuteFunc()}catch(e){return}"gridheader"===this.location&&!this.isbatch&&this.thisVue.multipleSelection.length>1?rt.showErrorToast(this.$_t("platform.bizIsBatch","当前业务操作只支持操作单条数据")):this.initWebResource()}async initWebResource(e){if(this.isLoading)return;this.$bus.$off("init_web_resource_"+this.controlId,this.initWebResource);let t=this.initContext();await this.getWebResource(t)}initContext(){let e=null;if(this.thisVue.pageType==fs.e.PCQuery&&"gridtable"==this.location)return e=new hs(this.thisVue,this.openDialogComponent,this.jumpComponentByRouter,this.goBack,this.controlId),e;switch(this.location){case"gridheader":e=new cs(this.thisVue,this.openDialogComponent,this.jumpComponentByRouter,this.goBack,this.isbatch,this.controlId);break;case"gridtable":e=new ps(this.thisVue,this.openDialogComponent,this.jumpComponentByRouter,this.goBack,this.controlId);break;case"subgrid":e=new us(this.thisVue,this.openDialogComponent,this.jumpComponentByRouter,this.goBack,this.isbatch,this.controlId,this.tagData);break;case"formheader":e=new ds(this.thisVue,this.openDialogComponent,this.jumpComponentByRouter,this.goBack,this.controlId)}return e}goBack(){this.thisVue.$router.go(-1)}openDialogComponent(e,t,r){const i=this.initContext();let a=e.options&&e.options.name||e.name;return a?(a+="_biz_pc","function"!=typeof te.f.component(a)&&window.Vue.component(a,e),new Promise((e,n)=>{const o={bizContext:i};let s=new(te.f.extend({render:e=>e(a,{ref:"bus_"+a,props:o}),store:this.$store,i18n:this.$i18n,router:this.$router}));s.$mount();const l=s.$refs["bus_"+a];s.$nextTick(()=>{t&&l[t](r)});const d=()=>{s&&(s.$destroy(),s=void 0)};l.$once("close",()=>{d(),n()}),l.$once("confirm",()=>{d(),e()}),this.$once("hook:beforeDestroy",()=>{d()})})):Promise.reject()}jumpComponentByRouter(e,t,r){const i=this.thisVue.$router,a=this.thisVue.$route,n={name:a.name,params:a.params,query:a.query},o=[{path:"/"+t,name:t,component:e}];i.addRoutes(o),sessionStorage.setItem("currentroute_"+window.rtconfig.keycloak_realm,JSON.stringify(n)),i.push({name:t,...r})}async getWebResource(e){this.isLoading=!0,this.appkey||(this.failed=!0,this.isLoading=!1),this.$PlatUtils.getCustomResource(this.appkey,"$bizComponentResource$").then(t=>{t&&(this.loaded=!0);const r=t.default.businessComponents;if(r&&r.length>0){const t=r.find(e=>e.name==this.bizOperationName);t&&t.entry(e)}this.isLoading=!1}).catch(e=>{this.isLoading=!1})}reLoad(){this.$emit("reLoad")}subGridReload(e){this.$emit("subGridReload",e)}updateEditForm(e,t){this.$emit("updateEditForm",e,t)}};Object(J.__decorate)([Object(te.d)({default:""})],el.prototype,"label",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"hidetext",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"disabled",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"appkey",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"bizOperationName",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"thisVue",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"type",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"text",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"location",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"iconName",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"tagData",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],el.prototype,"isbatch",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"controlId",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"size",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"beforeExecuteFunc",void 0),Object(J.__decorate)([Object(te.d)()],el.prototype,"tooltip",void 0),el=Object(J.__decorate)([Object(te.a)({name:"biz-button"})],el);var tl=el,rl=Object(_.a)(tl,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-button",{attrs:{type:e.type,text:e.text,"icon-name":e.bizIcon,disabled:e.disabled,size:e.size,tooltip:e.tooltip},on:{click:e.clickHandler}},[e.hidetext?e._e():[e._v(e._s(e.label))]],2)}),[],!1,null,null,null).exports,il={name:"NoFound",data:()=>({isLogin:!1,imgUrl:rt.getPublicUrl()+"imgs/404.png"}),mounted:function(){(window.rtconfig.isLocalAuthen&&this.$store.state.auth.isLoggedIn||!window.rtconfig.isLocalAuthen&&this.$keycloak&&this.$keycloak.token)&&(this.isLogin=!0)},methods:{backToHome(){window.__POWERED_BY_QIANKUN__?this.$mainBus.$emit("init_menu"):this.$bus.$emit("init_menu")}}},al=(r("716b"),Object(_.a)(il,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"div-404"},[t("div",{staticClass:"img-box"},[t("img",{attrs:{src:this.imgUrl,alt:""}}),t("br"),this._m(0),t("el-button",{directives:[{name:"show",rawName:"v-show",value:this.isLogin,expression:"isLogin"}],staticClass:"button-style",on:{click:this.backToHome}},[this._v("返回首页")])],1)])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"font-box"},[t("p",[this._v("抱歉,您访问的页面不存在...")]),t("span",[this._v("错误代码:404")])])}],!1,null,"07d6cae4",null).exports);const nl="bigint",ol="string",sl="memo",ll="integer",dl="money",cl="decimal",ul="double",pl="owner",hl="datetime",fl="date",ml="picklist",gl="bool",bl="boolean",yl="state",vl="status",xl="lookup",wl="customer",_l="uniqueidentifier",El="timestamp",Cl="entityname",Nl="worker",Sl="formstatus",Tl="filter-value-lookup",kl="filter-value-lookuparray",Ol="filter-value-number",Il="filter-value-string",Dl="filter-value-date",Al="filter-value-picklist",Ml="filter-value-picklistarray",Ll="filter-value-datetimebetween",Rl="filter-value-numberbetween",Pl=["eq-userid","eq-businessid","ne-businessid","ne-userid","under-currentuserid","eq-or-under-currentuserid","eq-outteruserid","not-null","null","today","after-now","before-now","tomorrow","yesterday","last-month","this-month","this-week","last-year","this-year","last-seven-days","next-seven-days","after-today","on-or-after-today","before-today","on-or-before-today"],$l={label:"当前用户",fetchXMLOperator:"eq-userid",conditionOperator:"EqualUserId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},Fl={label:"不是当前用户",fetchXMLOperator:"ne-userid",conditionOperator:"NeUserId",description:"不是当前用户",noValue:!0,valueCount:0},jl={label:"当前服务人员",fetchXMLOperator:"eq-outteruserid",conditionOperator:"EqualOutterUserId",description:"The value is less than the compared value.",noValue:!0,valueCount:0},Bl={label:"包含(%x%)",fetchXMLOperator:"like",conditionOperator:"Contains",description:"The string occurs at the beginning of another string.",noValue:!1,valueCount:0},Ul={label:"在两者之间",fetchXMLOperator:"between",conditionOperator:"Between",description:"The value is between two values.",noValue:!1,valueCount:2},Vl={label:"不包含",fetchXMLOperator:"not-like",conditionOperator:"DoesNotContain",description:"The string does not begin with another string.",noValue:!1,valueCount:1},ql={label:"等于",fetchXMLOperator:"eq",conditionOperator:"Equal",description:"The values are compared for equality.",noValue:!1,valueCount:1},zl={label:"不等于",fetchXMLOperator:"ne",conditionOperator:"NotEqual",description:"The two values are not equal.",noValue:!1,valueCount:1},Hl={label:"存在于",fetchXMLOperator:"in",conditionOperator:"In",description:"TheThe value exists in a list of values.",noValue:!1,valueCount:3},Gl={DateAndTimeGroup_none:[{label:"今天",fetchXMLOperator:"today",conditionOperator:"Today",description:"The value equals today’s date.",noValue:!0,valueCount:0,applyTypes:[hl,fl],editor:""},{label:"明天",fetchXMLOperator:"tomorrow",conditionOperator:"Tomorrow",description:"The value equals tomorrow’s date.",noValue:!0,valueCount:0,editor:""},{label:"昨天",fetchXMLOperator:"yesterday",conditionOperator:"Yesterday",description:"The value equals yesterday’s date.",noValue:!0,valueCount:0,editor:""},{label:"最近7天",fetchXMLOperator:"last-seven-days",conditionOperator:"Last7Days",description:"The value is within the last seven days including today.",noValue:!0,valueCount:0,editor:""},{label:"今后7天",fetchXMLOperator:"next-seven-days",conditionOperator:"Next7Days",description:"The value is within the next seven days.",noValue:!0,valueCount:0,editor:""},{label:"晚于今天",fetchXMLOperator:"after-today",conditionOperator:"AfterToday",description:"The value equals today’s date.",noValue:!0,valueCount:0,editor:""},{label:"晚于等于今天",fetchXMLOperator:"on-or-after-today",conditionOperator:"OnOrAfterToday",description:"The value equals today’s date.",noValue:!0,valueCount:0,editor:""},{label:"早于今天",fetchXMLOperator:"before-today",conditionOperator:"BeforeToday",description:"The value equals today’s date.",noValue:!0,valueCount:0,editor:""},{label:"早于等于今天",fetchXMLOperator:"on-or-before-today",conditionOperator:"OnOrBeforeToday",description:"The value equals today’s date.",noValue:!0,valueCount:0,editor:""},{label:"今年",fetchXMLOperator:"this-year",conditionOperator:"ThisYear",description:"The value is within the current year.",noValue:!0,valueCount:0,editor:""}],DateAndTimeGroup_number:[{label:"早于x天",fetchXMLOperator:"olderthan-x-days",conditionOperator:"OlderThanXDays",description:"The value olderthan x date.",noValue:!1,valueCount:1,editor:Ol},{label:"最近x天",fetchXMLOperator:"last-x-days",conditionOperator:"LastXDays",description:"The value is within last X days.",noValue:!1,valueCount:1,editor:Ol},{label:"今后x天",fetchXMLOperator:"next-x-days",conditionOperator:"NextXDays",description:"The value is within the next X (specified value) days.",noValue:!1,valueCount:1,editor:Ol},{label:"最近x周",fetchXMLOperator:"last-x-weeks",conditionOperator:"LastXWeeks",description:"The value is within the last X (specified value) weeks.",noValue:!1,valueCount:1,editor:Ol},{label:"今后x周",fetchXMLOperator:"next-x-weeks",conditionOperator:"NextXWeeks",description:"The value is within the next X weeks.",noValue:!1,valueCount:1,editor:Ol},{label:"最近x月",fetchXMLOperator:"last-x-months",conditionOperator:"LastXMonths",description:"The value is within the last X (specified value) months.",noValue:!1,valueCount:1,editor:Ol},{label:"今后x月",fetchXMLOperator:"next-x-months",conditionOperator:"NextXMonths",description:"The value is within the next X (specified value) months.",noValue:!1,valueCount:1,editor:Ol},{label:"最近x年",fetchXMLOperator:"last-x-years",conditionOperator:"LastXYears",description:"The value is within the last X years.",noValue:!1,valueCount:1,editor:Ol},{label:"今后x年",fetchXMLOperator:"next-x-years",conditionOperator:"NextXYears",description:"The value is within the next X years.",noValue:!1,valueCount:1,editor:Ol}],GreaterAndLessGroup:[{label:"大于等于",fetchXMLOperator:"ge",conditionOperator:"GreaterEqual",description:"The value is greater than or equal to the compared value.",noValue:!1,valueCount:1,editor:Ol},{label:"大于",fetchXMLOperator:"gt",conditionOperator:"GreaterThan",description:"The value is greater than the compared value.",noValue:!1,valueCount:1,editor:Ol},{label:"小于等于",fetchXMLOperator:"le",conditionOperator:"LessEqual",description:"The value is less than or equal to the compared value.",noValue:!1,valueCount:1,editor:Ol},{label:"小于",fetchXMLOperator:"lt",conditionOperator:"LessThan",description:"The value is less than the compared value.",noValue:!1,valueCount:1,editor:Ol}],NullOrNotNullGroup:[{label:"不为空",fetchXMLOperator:"not-null",conditionOperator:"NotNull",description:"The value is not null.",noValue:!0,valueCount:0,editor:""},{label:"为空",fetchXMLOperator:"null",conditionOperator:"Null",description:"The value is null.",noValue:!0,valueCount:0,editor:""}]},Wl={["int"]:[{...ql,editor:Ol},{...zl,editor:Ol},{...Ul,editor:Rl},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup],[ll]:[{...ql,editor:Ol},{...zl,editor:Ol},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup,{...Ul,editor:Rl}],[nl]:[{...ql,editor:Ol},{...zl,editor:Ol},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup,{...Ul,editor:Rl}],[dl]:[{...ql,editor:Ol},{...zl,editor:Ol},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup,{...Ul,editor:Rl}],[ul]:[{...ql,editor:Ol},{...zl,editor:Ol},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup,{...Ul,editor:Rl}],[cl]:[{...ql,editor:Ol},{...zl,editor:Ol},...Gl.GreaterAndLessGroup,...Gl.NullOrNotNullGroup,{...Ul,editor:Rl}],[ol]:[{...ql,editor:Il},{...zl,editor:Il},...Gl.NullOrNotNullGroup,{...Bl,editor:Il},{...Vl,editor:Il}],[sl]:[{...ql,editor:Il},{...zl,editor:Il},...Gl.NullOrNotNullGroup,{...Bl,editor:Il},{...Vl,editor:Il}],[pl]:[{...$l,editor:""},{...Fl,editor:""},{...ql,editor:kl},{...zl,editor:kl},...Gl.NullOrNotNullGroup,{...Hl,editor:kl}],[xl]:[{...ql,editor:kl},{...zl,editor:kl},...Gl.NullOrNotNullGroup,{...Hl,editor:kl}],[wl]:[{...ql,editor:kl},{...zl,editor:kl},...Gl.NullOrNotNullGroup,{...Hl,editor:kl}],[fl]:[{...ql,editor:Dl},{...zl,editor:Dl},...Gl.NullOrNotNullGroup,...Gl.DateAndTimeGroup_none,{...Ul,editor:Ll},...Gl.DateAndTimeGroup_number],[hl]:[...Gl.NullOrNotNullGroup,...Gl.DateAndTimeGroup_none,{...Ul,editor:Ll},...Gl.DateAndTimeGroup_number],[ml]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup,{...Hl,editor:Ml}],[Cl]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup,{...Hl,editor:Ml}],[gl]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup],[bl]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup],[yl]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup,{...Hl,editor:Ml}],[vl]:[{...ql,editor:Al},{...zl,editor:Al},...Gl.NullOrNotNullGroup,{...Hl,editor:Ml}],[xl]:[{...ql,editor:Tl},{...zl,editor:Tl},...Gl.NullOrNotNullGroup],[pl]:[{...$l,editor:""},{...Fl,editor:""},{...ql,editor:Tl},{...zl,editor:Tl},...Gl.NullOrNotNullGroup],[wl]:[{...ql,editor:Tl},{...zl,editor:Tl},...Gl.NullOrNotNullGroup],[_l]:[{...ql,editor:Il},{...zl,editor:Il},...Gl.NullOrNotNullGroup],[El]:[{...ql,editor:Il},{...zl,editor:Il},...Gl.NullOrNotNullGroup],[Nl]:[{...jl,editor:""}],[Sl]:[{...ql,editor:Al},{...zl,editor:Al},{...Hl,editor:Ml}]},Ql=function(e){const t=e.toLowerCase();return Wl[t]||[]};function Xl(e){return rt.get("api/studioone/formdesigner/getoptionsbyattributeid?attributeid="+e)}function Kl(e){return e=>{let t=[];return"formStatus"==e?(t=[{label:"新增",value:"0"},{label:"编辑",value:"1"},{label:"只读",value:"2"}],Promise.resolve(t)):Promise.resolve(t)}}async function Yl(e,t){return rt.get(`api/studioone/formdesigner/getentityandattributes?entityid=${encodeURIComponent(e)}&pagetype=1&isSumRelationShip=${!!t}`).then(e=>Promise.resolve(e)).catch(e=>Promise.resolve(e))}async function Jl(e){return rt.get("api/studioone/formdesigner/getmanytoonerelationshipmetadatas?entityid="+encodeURIComponent(e)).then(e=>Promise.resolve(e)).catch(e=>Promise.resolve(e))}var Zl={model:{prop:"condition",event:"change"},props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},computed:{bindComponent(){if(!this.condition||!this.condition.attributeType)return;let e=Ql(this.condition.attributeType).find(e=>e.fetchXMLOperator==this.condition.operator);return e?e.editor:null}}},ed=Object(_.a)(Zl,(function(){var e=this.$createElement,t=this._self._c||e;return this.bindComponent?t("div",[t(this.bindComponent,this._b({tag:"component",attrs:{"sla-disabled":this.slaDisabled}},"component",this.$props,!1))],1):this._e()}),[],!1,null,null,null).exports,td={components:{FilterValue:ed},model:{prop:"condition",event:"change"},props:{condition:{type:Object,require:!1},filterNode:{type:Object,require:!1},parentFetchEntity:{type:Object,require:!1},entityId:{type:String},index:{type:Number,require:!1},slaDisabled:{type:Boolean,default:!1},isRefreshkey:{type:Number},isDispatchAdvancedSet:{type:Boolean,default:!0},isSumRelationShip:{type:Boolean,required:!1,default:!1}},data:()=>({entity:{},refresh:!0,attributes:[],needOperatorReset:!1}),computed:{showValue(){return!!this.condition.operator&&Pl.indexOf(this.condition.operator)<0},operators(){if(!this.condition||!this.condition.attributeType)return[];let e=Ql(this.condition.attributeType);if(e=e.map(e=>(e.label="2052"===localStorage.i18nLocaleid?e.label:e.fetchXMLOperator,e)),"Lookup"==this.condition.attributeType||"Customer"==this.condition.attributeType||"Owner"==this.condition.attributeType){let t=null;t="Lookup"==this.condition.attributeType||"Owner"==this.condition.attributeType?this.entity&&this.entity.ManyToOneRelationships?this.entity.ManyToOneRelationships.find(e=>{var t;return e.ReferencingAttributeId==(null===(t=this.condition)||void 0===t?void 0:t.attributeId)}):null:this.entity&&this.entity.ManyToOneRelationships?this.entity.ManyToOneRelationships.find(e=>{var t;return e.ReferencingAttributeId==(null===(t=this.condition)||void 0===t?void 0:t.attributeId)&&"account"==e.ReferencedEntityName}):null,t&&("systemuser"==t.ReferencedEntityName&&(e=Ql("Owner")),this.$set(this.condition,"referencedEntityId",t.ReferencedEntityId),this.$set(this.condition,"referencedEntityName",t.ReferencedEntityName)),t||(e=Ql("Owner")),t&&"new_srv_worker"==t.ReferencedEntityName&&(e=[...e,...Ql("worker")])}return this.$set(this.condition,"operator",this.needOperatorReset?e[0].fetchXMLOperator:this.condition.operator),this.needOperatorReset=!1,e}},watch:{parentFetchEntity(e){},entityId:{handler:function(e,t){this.initEntity()},deep:!0},isDispatchAdvancedSet(){this.initAttributes()}},mounted(){this.initEntity()},methods:{async initEntity(){let e=await Yl(this.entityId,this.isSumRelationShip);e&&(this.entity=e,this.initProps(),this.initAttributes());let t=await Jl(this.entityId);this.entity.ManyToOneRelationships=t},clearConditionvalue(){this.$set(this.condition,"value","")},clearConditionOperator(){this.refresh=!1;let e=this;this.$nextTick((function(){this.clearConditionvalue(),e.refresh=!0})),this.needOperatorReset=!0},initAttributes(){if(!this.entity||!this.entity.Attributes)return{};this.attributes=this.entity.Attributes,this.isDispatchAdvancedSet||(this.attributes=this.attributes.filter(e=>"new_customerid"==e.LogicalName||"new_type"==e.LogicalName||"new_servicemode"==e.LogicalName||"new_source"==e.LogicalName||"new_country_id"==e.LogicalName||"new_province_id"==e.LogicalName||"new_city_id"==e.LogicalName||"new_county_id"==e.LogicalName||"new_town_id"==e.LogicalName||"new_name"==e.LogicalName||"createdby"==e.LogicalName))},initProps(){var e,t,r,i,a;if(null!==(e=this.condition)&&void 0!==e&&e.attribute){var n=null===(t=this.entity)||void 0===t||null===(r=t.Attributes)||void 0===r?void 0:r.find(e=>{var t;return e.LogicalName==(null===(t=this.condition)||void 0===t?void 0:t.attribute)});n&&(null!==(i=this.condition)&&void 0!==i&&i.attributeType||this.$set(this.condition,"attributeType",n.AttributeType),null!==(a=this.condition)&&void 0!==a&&a.attributeId||this.$set(this.condition,"attributeId",n.AttributeId))}}}},rd=(r("1ab8"),Object(_.a)(td,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.parentFetchEntity&&e.parentFetchEntity.filter&&e.parentFetchEntity.filter.children&&e.attributes&&e.condition&&e.condition.attribute?r("div",{staticClass:"fetch-condition-container",attrs:{gutter:16}},[r("el-select",{staticClass:"fetch-select",attrs:{disabled:e.slaDisabled,"value-key":"attributeId",filterable:""},on:{change:e.clearConditionOperator},model:{value:e.parentFetchEntity.filter.children[e.index].condition,callback:function(t){e.$set(e.parentFetchEntity.filter.children[e.index],"condition",t)},expression:"parentFetchEntity.filter.children[index].condition"}},e._l(e.attributes,(function(t){return r("el-option",{key:t.AttributeId,attrs:{label:t.DisplayName+"("+t.LogicalName+")",value:Object.assign({},e.condition,{attributeId:t.AttributeId,attribute:t.LogicalName,attributeType:t.AttributeType,referencedEntityLogicalName:t.ReferencedEntityLogicalName})}})})),1),r("el-select",{staticClass:"fetch-select",attrs:{disabled:e.slaDisabled},on:{change:e.clearConditionvalue},model:{value:e.condition.operator,callback:function(t){e.$set(e.condition,"operator",t)},expression:"condition.operator"}},e._l(e.operators,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.fetchXMLOperator}})})),1),e.showValue&&e.refresh?[r("filter-value",e._b({key:e.isRefreshkey,staticClass:"filter-value",attrs:{"sla-disabled":e.slaDisabled},model:{value:e.condition,callback:function(t){e.condition=t},expression:"condition"}},"filter-value",e.$props,!1))]:e._e()],2):e._e()}),[],!1,null,"4754a38c",null).exports),id={props:{filterNode:{type:Object,require:!1},entityId:{type:String},parentFetchEntity:{type:Object,require:!1},index:{type:Number,require:!1},slaDisabled:{type:Boolean,default:!1},defaultEntityName:{type:String},isDispatchAdvancedSet:{type:Boolean,default:!0},isSumRelationShip:{type:Boolean,required:!1,default:!1}},data:()=>({isRefreshkey:1}),watch:{filterNode(e){var t,r;if(null!==(t=this.filterNode)&&void 0!==t&&t.listId||this.$set(this.filterNode,"listId",null===(r=this.parentFetchEntity)||void 0===r?void 0:r.id),e&&e.filter&&e.filter.children)if(1==e.filter.children.length){var i,a,n,o,s,l,d;let t=e.filter.children[0];null===(i=this.parentFetchEntity)||void 0===i||null===(a=i.filter)||void 0===a||null===(n=a.children)||void 0===n||n.splice(this.index,1),null===(o=this.parentFetchEntity)||void 0===o||null===(s=o.filter)||void 0===s||null===(l=s.children)||void 0===l||l.splice(this.index,0,{...t,listId:null===(d=this.parentFetchEntity)||void 0===d?void 0:d.id})}else 0==e.filter.children.length&&rt.showErrorToast("异常操作,请重试。")}},mounted(){},methods:{handleCommand(e){this.defaultEntityName?"1"==e?this.$set(this.parentFetchEntity.filter.children[this.index],"selected",!0):"2"==e?this.$set(this.parentFetchEntity.filter.children[this.index],"selected",!1):"3"==e&&(this.isRefreshkey+=1,this.parentFetchEntity.filter.children.splice(this.index,1)):this.parentFetchEntity.filter.children.splice(this.index,1)}}},ad=(r("db5f"),Object(_.a)(id,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fecth-filters"},[e.filterNode&&e.filterNode.filter&&e.filterNode.filter.children&&e.filterNode.filter.children.length>0?[r("div",{staticClass:"row-group"},[r("div",{staticClass:"col-group-operator",class:{"condition-selected":e.filterNode.selected}},[r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link"},[r("span",[e._v(e._s("or"===e.filterNode.filter.type?e.$_t("notificationtype.or","或"):e.$_t("notificationtype.and","和")))]),r("rc-icon",{attrs:{name:"rt-base-dropdown",color:e.filterNode.selected?"#fff":"#4e5969"}})],1),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.filterNode.selected?e._e():r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"1"}},[e._v(e._s(e.$_t("notificationtype.selectgroup","选择组")))]),e.filterNode.selected?r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"2"}},[e._v(e._s(e.$_t("notificationtype.unselected","取消选择")))]):e._e(),r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"3"}},[e._v(e._s(e.$_t("notificationtype.deletegroup","删除组")))])],1)],1)],1),r("div",{staticClass:"row-field"},e._l(e.filterNode.filter.children,(function(t,i){return r("div",{key:i},[r("fetch-filter",e._b({},"fetch-filter",Object.assign({},e.$props,{filterNode:t,parentFetchEntity:e.filterNode,index:i}),!1))],1)})),0)])]:[e.filterNode?r("div",{staticClass:"row-attribute"},[r("div",{staticClass:"col-operator",class:{"condition-selected":e.filterNode.selected}},[r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link"},[r("span",[e._v(e._s(e.$_t("notificationtype.operation","操作")))]),r("rc-icon",{attrs:{name:"rt-base-dropdown",color:e.filterNode.selected?"#fff":"#4e5969"}})],1),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[!e.filterNode.selected&&e.defaultEntityName?r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"1"}},[e._v(e._s(e.$_t("notificationtype.selectline","选择行")))]):e._e(),e.filterNode.selected&&e.defaultEntityName?r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"2"}},[e._v(e._s(e.$_t("notificationtype.unselected","取消选择")))]):e._e(),r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"3"}},[e._v(e._s(e.$_t("notificationtype.deleteline","删除行")))])],1)],1)],1),r("div",{staticClass:"col-attribute",class:{"col-attribute-default":!!e.defaultEntityName}},["condition"==e.filterNode.nodeType?r("fetch-condition",e._b({attrs:{"is-dispatch-advanced-set":e.isDispatchAdvancedSet,"is-refreshkey":e.isRefreshkey,"sla-disabled":e.slaDisabled,isSumRelationShip:e.isSumRelationShip},model:{value:e.filterNode.condition,callback:function(t){e.$set(e.filterNode,"condition",t)},expression:"filterNode.condition"}},"fetch-condition",e.$props,!1)):e._e(),"existsSubEntity"==e.filterNode.nodeType?r("exists-sub-entity",e._b({attrs:{"default-entity-name":e.defaultEntityName,"sla-disabled":e.slaDisabled,"fetch-entity":e.filterNode.existsSubEntity}},"exists-sub-entity",e.$props,!1)):e._e()],1)]):e._e()]],2)}),[],!1,null,"72c18b1e",null).exports),nd={props:{parentFetchEntity:{type:Object},fetchEntity:{type:Object},index:{type:Number},slaDisabled:{type:Boolean,default:!1},defaultEntityName:{type:String}},data:()=>({entity:null}),computed:{linkTypeList(){return[{label:this.$_t("crm.new_srv_slaitem.in-connection","内连接"),value:"inner"},{label:this.$_t("crm.new_srv_slaitem.out-connection","外连接"),value:"outer"}]},entityId(){return this.fetchEntity.entityId}},watch:{entityId(e){this.initEntity()}},mounted(){this.initEntity()},methods:{handleCommand(e){"1"==e?this.$set(this.fetchEntity,"expand",!1):"2"==e?this.$set(this.fetchEntity,"expand",!0):"3"==e&&this.parentFetchEntity.linkEntities.splice(this.index,1)},async initEntity(){let e=await Yl(this.entityId);if(this.entity=e,null==this.fetchEntity.expand&&this.$set(this.fetchEntity,"expand",!0),null==this.fetchEntity.displayName){let e=(await Jl(this.entityId)).find(e=>this.fetchEntity.relationshipId?this.fetchEntity.relationshipId==e.RelationshipId:e.ReferencedEntityName==this.fetchEntity.name);if(e){let t=this.entity.Attributes.find(t=>t.AttributeId==e.ReferencingAttributeId);this.$set(this.fetchEntity,"displayName",t.DisplayName||"")}}}}},od=(r("8e49"),Object(_.a)(nd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"filter-linkentity"},[r("rc-row",{staticClass:"row-linkEntity",attrs:{type:"flex"}},[r("rc-col",{staticClass:"col-linkEntity",attrs:{span:24}},[r("div",{staticClass:"col-operator"},[r("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleCommand}},[r("span",{staticClass:"el-dropdown-link"},[r("rc-icon",{attrs:{name:"rt-base-dropdown",color:"#4e5969"}})],1),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e.fetchEntity.expand&&e.defaultEntityName?r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"1"}},[e._v(e._s(e.$_t("crm.new_srv_slaitem.fold","折叠")))]):e._e(),!e.fetchEntity.expand&&e.defaultEntityName?r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"2"}},[e._v(e._s(e.$_t("common.expand","展开")))]):e._e(),r("el-dropdown-item",{attrs:{disabled:e.slaDisabled,command:"3"}},[e._v(e._s(e.$_t("crm.delete","删除")))])],1)],1)],1),e.entity&&e.entity.DisplayName?r("div",{staticClass:"row-name"},[e._v(" "+e._s(e.fetchEntity.displayName)+"("+e._s(e.entity.DisplayName)+") ")]):e._e()])],1),e.fetchEntity.expand?r("fetch-entity",{class:{"list-item":e.defaultEntityName},attrs:{"fetch-entity":e.fetchEntity,"sla-disabled":e.slaDisabled}}):e._e()],1)}),[],!1,null,"7eaadeb4",null).exports),sd={props:{parentFetchEntity:{type:Object},fetchEntity:{type:Object},index:{type:Number},slaDisabled:{type:Boolean,default:!1},defaultEntityName:{type:String}},data:()=>({entity:null}),computed:{linkTypeList(){return[{label:this.$_t("crm.new_srv_slaitem.in-connection","内连接"),value:"inner"},{label:this.$_t("crm.new_srv_slaitem.out-connection","外连接"),value:"outer"}]},entityId(){return this.fetchEntity.entityId}},watch:{entityId(e){this.initEntity()}},mounted(){this.initEntity()},methods:{handleCommand(e){"1"==e?this.$set(this.fetchEntity,"expand",!1):"2"==e?this.$set(this.fetchEntity,"expand",!0):"3"==e&&this.parentFetchEntity.linkEntities.splice(this.index,1)},async initEntity(){let e=await Yl(this.entityId);if(this.entity=e,null==this.fetchEntity.expand&&this.$set(this.fetchEntity,"expand",!0),null==this.fetchEntity.displayName){let e=(await Jl(this.entityId)).find(e=>this.fetchEntity.relationshipId?this.fetchEntity.relationshipId==e.RelationshipId:e.ReferencedEntityName==this.fetchEntity.name);if(e){let t=this.entity.Attributes.find(t=>t.AttributeId==e.ReferencingAttributeId);this.$set(this.fetchEntity,"displayName",t.DisplayName||"")}}}}},ld=(r("f881"),Object(_.a)(sd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"filter-existssubentity"},[r("rc-row",{staticClass:"row-linkEntity",attrs:{type:"flex"}},[r("rc-col",{attrs:{span:24}},[e.entity&&e.entity.DisplayName?r("div",{staticClass:"col-linkEntity"},[e._v(" "+e._s(e.fetchEntity.displayName)+"("+e._s(e.entity.DisplayName)+") ")]):e._e()])],1),e.fetchEntity.expand?r("fetch-entity",{class:{"list-item":e.defaultEntityName},attrs:{"fetch-type":"subEntity","sla-disabled":e.slaDisabled,"fetch-entity":e.fetchEntity}}):e._e()],1)}),[],!1,null,"e96d50c2",null).exports);function dd(){return function(){let e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)})}()}const cd=(e,t)=>{if(e.id===t)return e;if(e.filter&&e.filter.children)for(let r of e.filter.children)if("filter"==r.nodeType&&r.filter)return cd(r,t)},ud=(e,t)=>{if(e.id===t)return e;if(e.linkEntities&&e.linkEntities.length>0)for(let r of e.linkEntities)return ud(r,t)},pd=(e,t)=>{if(t||(t=[]),e&&e.filter&&e.filter.children)for(let i=0;i0)for(let i=0;i({}),computed:{entityId(){return this.fetchEntity?this.fetchEntity.entityId:""}},methods:{handleSelect(e){var t,r,i;if(null!==(t=this.fetchEntity)&&void 0!==t&&t.filter&&null!==(r=this.fetchEntity)&&void 0!==r&&r.filter.children||this.$set(this.fetchEntity,"filter",{type:"and",children:[]}),null!==(i=this.fetchEntity)&&void 0!==i&&i.linkEntities||this.$set(this.fetchEntity,"linkEntities",[]),"SelectAttribute"==e.SelectType){var a,n;let t={id:dd(),nodeType:"condition",listId:e.listId,selected:!1,condition:{attributeId:e.AttributeId,attribute:e.LogicalName,entityId:e.EntityId,attributeType:e.AttributeType}};this.fetchEntity.filter||this.$set(this.fetchEntity,"filter",{}),this.fetchEntity.filter.children||this.$set(this.fetchEntity.filter,"children",{});let r=null===(a=this.fetchEntity)||void 0===a||null===(n=a.filter)||void 0===n?void 0:n.children;r.push(t),this.$set(this.fetchEntity.filter,"children",r)}else if("SelectRelationship"==e.SelectType){var o,s;null===(o=this.fetchEntity)||void 0===o||null===(s=o.linkEntities)||void 0===s||s.push({displayName:e.DisplayName,attributeId:e.AttributeId,entityId:e.ReferencedEntityId,name:e.ReferencedEntityName,from:e.ReferencedAttributeName,to:e.ReferencingAttributeName,linkType:"inner",filter:{},alias:("a"+dd()).replace(/-/g,""),linkEntities:[]})}else if("SelectChildRelationship"==e.SelectType){var l,d,c;null===(l=this.fetchEntity)||void 0===l||null===(d=l.filter)||void 0===d||null===(c=d.children)||void 0===c||c.push({id:dd(),listId:e.listId,nodeType:"existsSubEntity",selected:!1,existsSubEntity:{alias:("a"+dd()).replace(/-/g,""),displayName:e.DisplayName,attributeId:e.AttributeId,entityId:e.ReferencingEntityId,name:e.ReferencingEntityName,from:e.ReferencingAttributeName,to:e.ReferencedAttributeName,linkType:"inner",filter:{},linkEntities:[]}})}}}},md=(r("6ec9"),Object(_.a)(fd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fetch-entity",class:{"fetch-entity-left":!!e.defaultEntityName}},[e.fetchEntity.filter?r("div",{staticClass:"fetch-filter-wraper"},[r("div",{staticClass:"fetch-filter",class:{"fetch-filter-top":!!e.defaultEntityName}},e._l(e.fetchEntity.filter.children,(function(t,i){return r("div",{key:t.id},[r("fetch-filter",{attrs:{"filter-node":t,index:i,"parent-fetch-entity":e.fetchEntity,"entity-id":e.entityId,"sla-disabled":e.slaDisabled,"default-entity-name":e.defaultEntityName,"is-dispatch-advanced-set":e.isDispatchAdvancedSet,isSumRelationShip:e.isSumRelationShip}})],1)})),0)]):e._e(),e.fetchEntity?r("div",{staticClass:"fetch-add-wraper"},[r("fetch-add",{attrs:{"fetch-type":e.fetchType,"fetch-entity":e.fetchEntity,"entity-id":e.entityId,"sla-disabled":e.slaDisabled,"is-dispatch-advanced-set":e.isDispatchAdvancedSet,isSumRelationShip:e.isSumRelationShip},on:{change:e.handleSelect}})],1):e._e(),r("div",{staticClass:"filter-link-wraper"},[e.fetchEntity.linkEntities&&e.fetchEntity.linkEntities.length>0?e._l(e.fetchEntity.linkEntities,(function(t,i){return r("filter-link-entity",{key:i,attrs:{"fetch-entity":t,index:i,"parent-fetch-entity":e.fetchEntity,"sla-disabled":e.slaDisabled,"default-entity-name":e.defaultEntityName}})})):e._e()],2)])}),[],!1,null,"1d205968",null).exports),gd={props:{fetchEntity:{type:Object},fetchType:{type:String,default:""},entityId:{type:String,default:""},slaDisabled:{type:Boolean,default:!1},isDispatchAdvancedSet:{type:Boolean,default:!0},isSumRelationShip:{type:Boolean,required:!1,default:!1}},data:()=>({options:[],sel:null,entity:{}}),watch:{entityId(e){e&&this.initEntity()},isDispatchAdvancedSet(){this.initOption()}},mounted(){this.initEntity()},methods:{handleSelect(e){var t;this.$emit("change",{...e,listId:null===(t=this.fetchEntity)||void 0===t?void 0:t.id}),this.sel={}},async initEntity(){if(this.entityId){let e=await this.GetEntityAndAttributes(this.entityId,this.isSumRelationShip);if("subEntity"!=this.fetchType){let t=await this.getManyToOneRelationshipMetadata(this.entityId);e.ManyToOneRelationships=t;let r=await this.getOneToManyRelationshipMetadata(this.entityId);e.OneToManyRelationships=r}this.entity=e,this.initOption()}},GetEntityAndAttributes:async(e,t)=>rt.get(`api/studioone/formdesigner/getentityandattributes?entityid=${encodeURIComponent(e)}&pagetype=1&isSumRelationShip=${!!t}`).then(e=>Promise.resolve(e)).catch(e=>Promise.resolve(e)),getManyToOneRelationshipMetadata:async e=>rt.get("api/studioone/formdesigner/getmanytoonerelationshipmetadatas?entityid="+encodeURIComponent(e)).then(e=>Promise.resolve(e)).catch(e=>Promise.resolve(e)),getOneToManyRelationshipMetadata:async e=>rt.get("api/studioone/formdesigner/getonetomanyrelationshipmetadatas?entityid="+encodeURIComponent(e)).then(e=>Promise.resolve(e)).catch(e=>Promise.resolve(e)),initOption(){if(this.entity&&this.entity.Attributes){let e=this.entity.Attributes.map(e=>({...e,DisplayName:e.DisplayName||e.LogicalName,SelectType:"SelectAttribute"}));this.isDispatchAdvancedSet||(e=e.filter(e=>"new_customerid"==e.LogicalName||"new_type"==e.LogicalName||"new_servicemode"==e.LogicalName||"new_source"==e.LogicalName||"new_country_id"==e.LogicalName||"new_province_id"==e.LogicalName||"new_city_id"==e.LogicalName||"new_county_id"==e.LogicalName||"new_town_id"==e.LogicalName||"new_name"==e.LogicalName||"createdby"==e.LogicalName)),this.options=[{label:this.$_t("platformgeneration.ziduan","字段"),options:e}]}if("subEntity"!=this.fetchType){if(this.entity&&this.entity.ManyToOneRelationships&&this.entity.ManyToOneRelationships.length>0){let e=this.entity.ManyToOneRelationships.map(e=>{var t;let r=null===(t=this.entity)||void 0===t?void 0:t.Attributes.find(t=>t.LogicalName==e.ReferencingAttributeName);return r?{AttributeId:null==r?void 0:r.AttributeId,DisplayName:(null==r?void 0:r.DisplayName)||(null==r?void 0:r.LogicalName),SelectType:"SelectRelationship",...e}:{AttributeId:void 0,...e}});e=e.filter(e=>e.AttributeId),this.isDispatchAdvancedSet||(e=e.filter(e=>"createdby"==e.ReferencingAttributeName&&"systemuser"==e.ReferencedEntityName)),this.options.push({label:this.$_t("platform.parentEntity","父实体"),options:e})}if(this.entity&&this.entity.OneToManyRelationships&&this.entity.OneToManyRelationships.length>0){let e=this.entity.OneToManyRelationships.filter(e=>e.ShowAsChild).map(e=>({AttributeId:e.ReferencingAttributeId,DisplayName:e.ReferencingEntityDisplayName,SelectType:"SelectChildRelationship",...e}));this.isDispatchAdvancedSet||(e=e.filter(e=>"new_srv_productline"==e.ReferencingEntityName&&"new_srv_workorder"==e.ReferencedEntityName)),this.options.push({label:this.$_t("platform.childrenEntity","子实体"),options:e})}}}}},bd=(r("5341"),r("4bdd"),Object(_.a)(gd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fetch-add"},[r("el-select",{staticClass:"fetch-select",attrs:{"popper-class":"apaas-filter-group-select",filterable:"","value-key":"AttributeId",disabled:e.slaDisabled},on:{change:e.handleSelect},model:{value:e.sel,callback:function(t){e.sel=t},expression:"sel"}},e._l(e.options,(function(t){return r("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e,t){return r("el-option",{key:t,attrs:{label:e.LogicalName?e.DisplayName+"("+e.LogicalName+")":e.DisplayName,value:Object.assign({},e)}})})),1)})),1)],1)}),[],!1,null,"5407540e",null).exports),yd={props:{isSelectDiasbled:{type:Boolean,required:!1},fetchXml:{type:String,required:!1},defaultEntityName:{type:String,required:!1},slaDisabled:{type:Boolean,default:!1},flag:{type:Boolean,default:!1},isShowIcon:{default:!0},isDispatchAdvancedSet:{type:Boolean,default:!0},isSumRelationShip:{type:Boolean,required:!1,default:!1}},data:()=>({fetchEntity:{},selectEntityId:null,selectEntity:null,entities:null,fetchXmlObject:null,selectedEntity:"",oldSelectedEntity:"",selectEntityName:""}),computed:{selectedFilters:{get(){return pd(this.fetchEntity,[])},set(e){}}},watch:{defaultEntityName(e){e&&this.initEntities()},fetchEntity(e){this.selectedFilters=pd(this.fetchEntity,[])}},mounted(){this.initEntities()},methods:{getfetchXmlObject(){return{...this.fetchXmlObject,entity:this.fetchEntity}},getdefalutfetch(e){rt.get("/api/meta/Entities/GetDefalutMetaQuery?entityId="+e).then(e=>{this.convertxml(e.FetchXml)}).catch(e=>{})},convertxml(e){e&&rt.post("api/studioone/formdesigner/converttoxmlnode",{FetchXml:e}).then(e=>{e&&(this.fetchXmlObject=e,this.fetchEntity=e.entity||{entityId:this.selectEntityId,name:this.selectEntityName,scope:"active"},this.$set(this.fetchEntity,"entityId",this.selectEntityId),this.$set(this.fetchEntity,"name",this.selectEntityName),this.$set(this.fetchEntity,"scope","active"),this.$emit("resloadList"))}).catch(e=>{})},initEntities(){let e=this;rt.get("api/studioone/formdesigner/getallentities?pagetype=1").then(t=>{if(this.selectEntityName=this.defaultEntityName,t&&t.length>0)if(this.selectEntityName){e.entities=t;let r=t.find(t=>t.LogicalName==e.selectEntityName);if(this.flag?this.selectedEntity=r?r.DisplayName:e.selectEntityName:this.selectedEntity=r?r.DisplayName+"--"+e.selectEntityName:e.selectEntityName,!r)return;e.initFetchContent(null==r?void 0:r.EntityId,null==r?void 0:r.LogicalName,e.fetchEntity.linkEntities||[]),e.entities&&e.entities.length>0&&e.initSelect(null==r?void 0:r.EntityId)}else e.entities=[],t.map(t=>{"contact"!=t.LogicalName&&"account"!=t.LogicalName||e.entities.push(t)})}).catch(e=>{})},initSelect(e){this.entities.map(t=>{t.EntityId==e&&(this.selectEntityName=t.LogicalName)}),e&&(this.selectEntity=this.entities.find(t=>t.EntityId===e)),this.selectEntity||(this.selectEntity=this.entities[0]),this.selectEntityId=this.selectEntity.EntityId,this.initFetchContent(this.selectEntity.EntityId,this.selectEntity.LogicalName),this.fetchXml?this.convertxml(this.fetchXml):this.getdefalutfetch(this.selectEntityId)},initFetchContent(e,t,r){this.$set(this,"fetchEntity",{entityId:e,name:t,linkEntities:r})},handleChangeEntity(e){if(!this.oldSelectedEntity)return this.oldSelectedEntity=e,void this.initSelect(e);this.$confirm(this.$_t("common.changingEntity","更改实体后,已配置的数据将被清除,是否继续"),this.$_t("warning","警告")).then(()=>{this.initSelect(e)}).catch(()=>{this.selectEntityId=this.fetchEntity.entityId||""})},handleClear(e){e?this.clearXml():this.$confirm(this.$_t("platform.wantClear","是否要清除?"),this.$_t("DATEPICKER_CLEAR","清除")).then(()=>{this.clearXml()}).catch(e=>{})},clearXml(){this.fetchXml="",this.initSelect(this.entityId)},handleGroupAnd(){this.handleGroup("GroupAnd")},handleGroupOr(){this.handleGroup("GroupOr")},handleGroup(e){if(!this.selectedFilters||this.selectedFilters.length<=1)return void this.$message.warning("请选择1个以上的行进行组合");let t=this.selectedFilters.sort((e,t)=>e.index-t.index),r=t[0].listId;if(t.filter(e=>e.listId==r).length!=t.length)return void this.$message.warning("请选择同一个组进行组合");let i=t[0].index,a=((e,t)=>{let r=cd(e,t),i=ud(e,t);return r||i})(this.fetchEntity,r);if(a){a.filter.children.length==t.length&&(a.filter.type="and");var n={...hd(e),listId:a.id};for(let e=0;et.id==a.filter.children[e].id);r&&r.id&&(a.filter.children.splice(e,1),e--)}}else this.$message.warning("nothing parnet find")},getOperator:()=>Pl,lookFilter(e,t){for(let r in e)if("filter"==r&&t.concat(this.setFilterList(e[r]?e[r].children:null,t)),"linkEntities"==r&&e.linkEntities&&e.linkEntities.length)for(let i of e.linkEntities)t.concat(this.lookFilter(i,t));return t},setFilterList(e,t){if(e&&0!=e.length)for(let r of e)"condition"==r.nodeType&&t.push(r),"filter"==r.nodeType&&r&&r.filter&&r.filter.children&&r.filter.children.length&&this.setFilterList(r.filter.children,t),"existsSubEntity"==r.nodeType&&r.existsSubEntity&&t.concat(this.lookFilter(r.existsSubEntity,t));return t},isEmptyValue:(e,t)=>e instanceof Array?"between"==t?!(e&&2==e.length):!e.length:"string"==typeof e?rt.isNilOrWhiteSpace(e):!e&&0!==e}},vd=(r("22e6"),Object(_.a)(yd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fetch-wrap",class:{"fetch-default-wraper":!!e.defaultEntityName||e.flag},attrs:{id:"fetch-box"}},[r("div",{staticClass:"fetch-header-wrap"},[e.isShowIcon?r("span",{staticClass:"label-line"}):e._e(),r("div",{staticClass:"fetch-header"},[r("div",{staticClass:"fetch-header-item"},[e.isShowIcon?!e.defaultEntityName||e.flag?r("span",{staticClass:"label"},[e._v(e._s(e.$_t("new_researchproject.data_sources","数据来源")))]):e._e():r("span",{staticClass:"label"},[e._v(e._s(e.$_t("new_researchproject.data_sources","数据来源")))]),r("div",{staticClass:"fetch-header-div"},[r("el-select",{staticClass:"fetch-select",attrs:{disabled:e.isSelectDiasbled},on:{change:e.handleChangeEntity},model:{value:e.selectedEntity,callback:function(t){e.selectedEntity=t},expression:"selectedEntity"}},e._l(e.entities,(function(e){return r("el-option",{key:e.EntityId,attrs:{value:e.EntityId,label:e.DisplayName}})})),1)],1)]),e.defaultEntityName&&!e.flag?r("div",{staticClass:"fetch-btns"},[r("rc-button",{attrs:{disabled:e.slaDisabled},on:{click:function(t){return e.handleClear(!1)}}},[e._v(e._s(e.$_t("crm.new_srv_slaitem.eliminate","消除")))]),r("rc-button",{attrs:{disabled:e.slaDisabled},on:{click:e.handleGroupAnd}},[e._v("{} "+e._s(e.$_t("crm.new_srv_slaitem.groupand","组和")))]),r("rc-button",{attrs:{disabled:e.slaDisabled},on:{click:e.handleGroupOr}},[e._v("}{ "+e._s(e.$_t("crm.new_srv_slaitem.groupor","组或")))])],1):e._e()])]),e.selectedEntity?r("div",[r("fetch-entity",{attrs:{isDispatchAdvancedSet:e.isDispatchAdvancedSet,"default-entity-name":e.defaultEntityName,"fetch-entity":e.fetchEntity,"sla-disabled":e.slaDisabled,isSumRelationShip:e.isSumRelationShip}})],1):e._e()])}),[],!1,null,"2d649db5",null).exports),xd={props:{condition:{type:Object,require:!1,default:()=>({})},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data(){}},wd=(r("1447"),Object(_.a)(xd,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-date-picker",{staticClass:"date-picker fetch-select",attrs:{disabled:e.slaDisabled,"value-format":"yyyy-MM-dd",type:"date",placeholder:e.$_t("SelectDateTime","请选择时间")},model:{value:e.condition.value,callback:function(t){e.$set(e.condition,"value",t)},expression:"condition.value"}})}),[],!1,null,"1df884fa",null).exports),_d={props:{condition:{type:Object,require:!1,default:()=>({})},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({value1:null,value2:null,value:[]}),watch:{value1(e){this.value[0]=e,this.$set(this.condition,"value",this.value)},value2(e){this.value[1]=e,this.$set(this.condition,"value",this.value)}},created(){this.condition.value&&(this.value1=this.condition.value[0],this.value2=this.condition.value[1])},mounted(){},methods:{}},Ed=(r("7dbc"),Object(_.a)(_d,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"fetch-select between-number"},[r("rc-date-picker",{staticClass:"date-picker",attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:e.$_t("report.startDatePlaceholder","请选择开始时间"),disabled:e.slaDisabled},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),r("div",{staticClass:"split"},[e._v("-")]),r("rc-date-picker",{staticClass:"date-picker",attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:e.$_t("report.endDatePlaceholder","请选择结束时间"),disabled:e.slaDisabled},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],1)}),[],!1,null,"12a1a945",null).exports),Cd={props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},requestUrl:{type:String,default:"api/crmlookupview/getdata"},countType:{type:Number,default:0},filterAttributeValue:{type:[String,Object,Number],required:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({dialogDisplayFields:[],logicalname:"",lookupValueName:"",nameField:"",idField:"",lookupValue:null,datafieldname:"",filterAttributeName:"",dialogOrderbyFields:"",dialogFilterFields:""}),computed:{selectString(){return[{name:this.nameField}]},filterFiled(){return`${this.nameField},${this.idField}`},condition1(){return this.condition}},watch:{lookupValue:{handler(e){this.$set(this.condition,"value",null==e?void 0:e.id)}},"condition.referencedEntityId":{handler(e){let t=this;var r;(r=e,rt.get("api/studioone/formdesigner/getentitymetadata?entityid="+r)).then(e=>{t.idField=e.PrimaryIdAttribute,t.nameField=e.PrimaryNameAttribute,t.condition.value&&t.initData()}).catch(e=>{})},deep:!0,immediate:!0},"condition.value":{handler(e){this.condition.value&&this.idField&&this.nameField&&null!=this.lookupValue&&rt.get(`api/dynamic/${this.condition.referencedEntityName}/get?id=${this.condition.value}`).then(e=>{this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.condition.referencedEntityName}})},deep:!0,immediate:!0},nameField:{handler(e){this.condition.value&&this.idField&&this.nameField&&null!=this.lookupValue&&rt.get(`api/dynamic/${this.condition.referencedEntityName}/get?id=${this.condition.value}`).then(e=>{this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.condition.referencedEntityName}})}},idField:{handler(e){this.condition.value&&this.idField&&this.nameField&&null!=this.lookupValue&&rt.get(`api/dynamic/${this.condition.referencedEntityName}/get?id=${this.condition.value}`).then(e=>{this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.condition.referencedEntityName}})}}},mounted(){this.condition.referencedEntityId},methods:{initData(){this.condition.referencedEntityName&&this.condition.value&&rt.get(`api/dynamic/${this.condition.referencedEntityName}/get?id=${this.condition.value}`).then(e=>{this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.condition.referencedEntityName}})},dialogCallback(e){e&&(this.lookupValue={name:e[this.nameField],id:e[this.idField],logicalname:this.condition.referencedEntityName},this.lookupValueName=this.lookupValue.name,this.$set(this.condition,"value",this.lookupValue.id))}}},Nd=(r("3d9c"),Object(_.a)(Cd,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rt-lookup",{staticClass:"filterlookup",attrs:{entity:e.condition.referencedEntityName,disabled:!e.nameField||e.slaDisabled,"name-field":e.nameField,"id-field":e.idField,"dialog-callback":e.dialogCallback,"dialog-display-fields":e.selectString,"dialog-filter-fields":e.filterFiled},model:{value:e.lookupValue,callback:function(t){e.lookupValue=t},expression:"lookupValue"}})}),[],!1,null,"32872970",null).exports),Sd={},Td=(r("c44f"),Object(_.a)(Sd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-input",{staticClass:"fetch-select",model:{value:e.condition.value,callback:function(t){e.$set(e.condition,"value",t)},expression:"condition.value"}},[r("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.$message.info("暂不支持查询")}},slot:"append"})],1)}),[],!1,null,"cac8d9fe",null).exports),kd={props:{condition:{type:Object,require:!1,default:{value:"111"}},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({value:null}),watch:{value(e){this.$set(this.condition,"value",e)},"condition.value":{handler(e){this.value=e}}},mounted(){this.condition&&(this.value=this.condition.value)}},Od=(r("e2c4"),Object(_.a)(kd,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-input-number",{staticClass:"fetch-select fetch-number",attrs:{disabled:e.slaDisabled},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})}),[],!1,null,"e2926578",null).exports),Id={props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({options:[],value:null}),watch:{"condition.value":{handler(e){this.value=e}},value:{handler(e){this.$set(this.condition,"value",e)}}},mounted(){this.condition.value&&(this.value=this.condition.value),this.initOptions()},methods:{selectChange(e){this.$set(this.condition,"value",e)},initOptions(){this.condition.attributeId&&(2!=this.condition.groupType?Xl(this.condition.attributeId).then(e=>{e.map(e=>e.value=e.value+""),this.options=Object.values(e),!this.condition.value&&this.options&&this.options.length}).catch(e=>{}):Kl(this.condition.attributeId).then(e=>{e.map(e=>e.value=e.value+""),this.options=Object.values(e),!this.condition.value&&this.options&&this.options.length>0&&(this.condition.value=this.options[0].value)}).catch(e=>{}))}}},Dd=Object(_.a)(Id,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-select",{staticClass:"fetch-select",attrs:{placeholder:e.$_t("common.pleaseselect","请选择"),disabled:e.slaDisabled},on:{change:e.selectChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)}),[],!1,null,"35fb8d99",null).exports,Ad={props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({options:[],value:null}),watch:{value(e){this.$set(this.condition,"value",e)},"condition.value":{handler(e){this.value=e}}},mounted(){this.condition.value&&(this.value=this.condition.value),this.initOptions()},methods:{selectChange(e){},initOptions(){this.condition.attributeId&&(2!=this.condition.groupType?Xl(this.condition.attributeId).then(e=>{e.map(e=>e.value=e.value+""),this.options=Object.values(e),!this.condition.value&&this.options&&this.options.length>0&&(this.$set(this.condition,"value",[this.options[0].value]),this.$set(this.value,[this.options[0].value]))}).catch(e=>{}):Kl(this.condition.attributeId).then(e=>{e.map(e=>e.value=e.value+""),this.options=Object.values(e),!this.condition.value&&this.options&&this.options.length>0&&(this.condition.value=this.options[0].value)}).catch(e=>{}))}}},Md=Object(_.a)(Ad,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-select",{staticClass:"fetch-select",attrs:{placeholder:e.$_t("common.pleaseselect","请选择"),multiple:"",disabled:e.slaDisabled},on:{change:e.selectChange},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e,t){return r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)}),[],!1,null,"240e04fb",null).exports,Ld={props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({value:null}),watch:{value:{handler(e){this.$set(this.condition,"value",e)}},"condition.value":{handler(e){this.value=e}}},mounted(){this.condition&&(this.value=this.condition.value)},methods:{handleInput(){this.$set(this.condition,"value",this.value)},handleClear(){this.$set(this.condition,"value","")}}},Rd=(r("ed70"),Object(_.a)(Ld,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-input",{staticClass:"fetch-select",attrs:{"clear-icon-right":8,disabled:e.slaDisabled},on:{change:e.handleInput,clear:e.handleClear},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})}),[],!1,null,"35d9fbf1",null).exports),Pd={props:{condition:{type:Object,require:!1},entityId:{type:String,require:!1},slaDisabled:{type:Boolean,default:!1}},data:()=>({value1:null,value2:null,value:[]}),watch:{value1(e){this.value[0]=e,this.$set(this.condition,"value",this.value)},value2(e){this.value[1]=e,this.$set(this.condition,"value",this.value)}},created(){this.condition.value&&(this.value1=this.condition.value[0],this.value2=this.condition.value[1])},methods:{}},$d=(r("f9fe"),Object(_.a)(Pd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"between-number"},[r("el-input-number",{attrs:{disabled:e.slaDisabled},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}}),r("div",{staticClass:"split"},[e._v("-")]),r("el-input-number",{attrs:{disabled:e.slaDisabled},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],1)}),[],!1,null,"0c3b44b8",null).exports);N.a.component("filter-value",ed),N.a.component(Dl,wd),N.a.component(Ll,Ed),N.a.component(Tl,Nd),N.a.component(kl,Td),N.a.component(Ol,Od),N.a.component(Al,Dd),N.a.component(Ml,Md),N.a.component(Il,Rd),N.a.component(Rl,$d);var Fd={install:function(e,t){e.component("FetchCondition",rd),e.component("FetchFilter",ad),e.component("FilterLinkEntity",od),e.component("exists-sub-entity",ld),e.component("FetchEntity",md),e.component("FetchAdd",bd),e.component("fetch",vd)}},jd=r("5d12");N.a.prototype.$http=N.a.http=Ge.a;const Bd=function(){if(!window.rtconfig.isLocalAuthen)if(N.a.prototype.$store&&N.a.prototype.$store.commit("CLEAR_ALL_DATA"),N.a.prototype.$keycloak&&N.a.prototype.$keycloak.logout)N.a.prototype.$keycloak.init(),N.a.prototype.$keycloak.logout();else if(N.a.prototype.$mainkeycloak&&N.a.prototype.$mainkeycloak.logout)N.a.prototype.$mainkeycloak.init(),N.a.prototype.$mainkeycloak.logout();else{rt.hideLoadingToast();const{error:e}=console;localStorage.clear(),e("kc登录过期,无法自动退出登录,请刷新界面")}},Ud=function(e=100,t=0,r=6e4){return window.__PLAT_TOKEN_REFRESHING__?new Promise(i=>{setTimeout(async()=>{t+e{if(e.headers["api-source"])return e;e.headers["request-startTime"]=(new Date).getTime(),window.rtconfig&&!window.rtconfig.isLocalAuthen&&(localStorage.keycloak_realm&&Vd(e.headers,"keycloak_realm",localStorage.keycloak_realm),Vd(e.headers,"Recloud-AuthType",window.rtconfig.recloudAuthType||"crm")),Vd(e.headers,"X-Request-ID",rt.newGuid()),function(e){if(!window.$platformEntities$||0==window.$platformEntities$.length)return;let t=e.url,r="";const i=rt.getBaseUrl();if(t=e.url.split("?")[0]||"",t=t.replace(i,""),window.$platformCoreApiList$.includes(t))"get"==e.method?r=new URL(e.url).searchParams.get("entityName")||"":"post"==e.method&&(r=e.data&&e.data.hasOwnProperty("entityName")?e.data.entityName||"":new URL(e.url).searchParams.get("entityName")||"");else if(t.startsWith("api/dynamic/")){const e=/^\api\/dynamic\/([^\/]+)/,i=t.match(e);r=i?i[1]:""}window.$platformEntities$.includes(r)&&Vd(e.headers,"appname","systemmanage")}(e),Hd||function(e){if("post"==e.method){const t=e.url.slice(Gd.length);zd.includes(t)||(Wd.push(t),rt.showLoadingToast())}}(e);const t=N.a.prototype.$mainkeycloak||N.a.prototype.$keycloak,r=Object(jd.getTokenResponse)();if(!r)return Bd(),e;e.headers.Authorization="Bearer "+r.access_token;const i=Date.now()-(r.createdon||0),a=i/1e3>=(r.expires_in||0),n=i/1e3>=(r.refresh_expires_in||0),o=async(e=0)=>{if(++e>5)throw new Error("Refresh token failed");await Object(jd.kcRefreshToken)(t)||(await Ud(),await o())};if(n)Bd();else if(a)return new Promise(async(t,r)=>{try{window.__PLAT_TOKEN_REFRESHING__?await Ud():await o();const t=Object(jd.getTokenResponse)();if(!t)return Bd(),r(new Error);!function(e,t){qd.some(t=>e.url.startsWith(t))||(e.headers.Authorization="Bearer "+t.access_token)}(e,t)}catch(e){Bd()}t(e)});return e},e=>Promise.reject(e)),N.a.prototype.$http.interceptors.response.use(e=>{var t;return Hd||"post"!==(null===(t=e.config)||void 0===t?void 0:t.method)||0==Qd(e.config).length&&rt.hideLoadingToast(),e},e=>{let t="";if("Network Error"===e.message)t=N.a.prototype.$_t("toast_netproblem","网络遇到了一些问题,请尝试刷新页面。"),rt.hideLoadingToast(),rt.showErrorToast(t),Wd=[];else if(e.response){var r;Hd||"post"!==(null===(r=e.response.config)||void 0===r?void 0:r.method)||0==Qd(e.response.config).length&&rt.hideLoadingToast();const i=e.response.status,a=[404,500];if(i>=400&&i<600&&!a.includes(i)){switch(i){case 405:t=N.a.prototype.$_t("toast_405","错误405:禁用请求中指定的方法,请与管理员联系");break;case 504:t=N.a.prototype.$_t("toast_504","错误504:网关超时,请与管理员联系");break;default:t=N.a.prototype.$_t("toast_netproblem","网络遇到了一些问题,请尝试刷新页面。")}e.message=t}}return Promise.reject(e)});var Xd={install(e,t){Gd=rt.getBaseUrl(),Hd=!0===t.withoutLoading}},Kd={props:{duplicateRecordConfigOptions:{type:Array,required:!0},catchErrorConfigOptions:{type:Array,required:!0},mapRule:{type:Object,required:!0},disableMappingRulesTab:{type:Boolean,default:!1}},data:()=>({}),methods:{}},Yd=(r("a932"),Object(_.a)(Kd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"flex-radio-group"},[r("div",{staticClass:"flex-radio"},[r("div",{staticClass:"flex-radio-title"},[e._v(" "+e._s(e.$_t("mapRule.duplicateRecordConfig","对于已经存在的数据:(根据业务主键,以及重复性检查规则)"))+" ")]),r("rc-radio-group",{staticClass:"radioGroupNew-radioGroup",attrs:{"border-size":"small",disabled:e.disableMappingRulesTab},model:{value:e.mapRule.duplicateRecordConfig,callback:function(t){e.$set(e.mapRule,"duplicateRecordConfig",t)},expression:"mapRule.duplicateRecordConfig"}},e._l(e.duplicateRecordConfigOptions,(function(t){return r("rc-radio",{key:t.Value,attrs:{label:t.Value}},[e._v(e._s(t.Text))])})),1)],1),r("div",{staticClass:"flex-radio"},[r("div",{staticClass:"flex-radio-title"},[e._v(" "+e._s(e.$_t("mapRule.catchErrorConfig","发生错误时"))+" ")]),r("rc-radio-group",{staticClass:"radioGroupNew-radioGroup",attrs:{"border-size":"small",disabled:e.disableMappingRulesTab},model:{value:e.mapRule.catchErrorConfig,callback:function(t){e.$set(e.mapRule,"catchErrorConfig",t)},expression:"mapRule.catchErrorConfig"}},e._l(e.catchErrorConfigOptions,(function(t){return r("rc-radio",{key:t.Value,attrs:{label:t.Value}},[e._v(e._s(t.Text))])})),1)],1)])}),[],!1,null,"93ac0958",null).exports),Jd={name:"MappingExcelImportDialog",components:{ImportSchemeRadio:Yd},props:{entityName:{type:String},ImportSuccessCallback:Function},data:function(){return{extensions:".xls,.xlsx",dialogFormVisible:!1,buttonLoading:!1,buttonDisabled_Import:!1,accept:"application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",dialogLoading:!1,category:"",entity_Name:"",display_Name:"",exportSelect:"",items:[],isExportfile:!1,showLoading:!1,enableCreateTemplate:!1,enableWriteTemplate:!1,objectId:"",attribute:"",templateAction:"",configurationTemplate:[{name:this.$_t("ImportTemplate.editTemplate","编辑模板"),value:"editTemplate"},{name:this.$_t("ImportTemplate.addTemplate","直接新建"),value:"addTemplate"},{name:this.$_t("ImportTemplate.addTemplateFromExcel","从Excel新建"),value:"addTemplateFromExcel"}],duplicateRecordConfigOptions:[],catchErrorConfigOptions:[],enablePlugin:!1,isImportLog:!1,currentQueryId:"",hasTemplate:!1,entityNameImport:"",isUserQuery:!1,templateLogicalName:"",duplicateRecordConfig:{duplicateRecordConfig:1,catchErrorConfig:1},popoverVisible:!1}},computed:{dialogFooter:()=>"plat-dialog-footer-buttons has-border",picklistStyle(){return this.isExportfile||this.showLoading?"rtPicklist isNotStatus":"rtPicklist"},getConfigurationTemplate(){return this.configurationTemplate.filter(e=>"editTemplate"==e.value&&this.enableWriteTemplate||"addTemplate"==e.value&&this.enableCreateTemplate||"addTemplateFromExcel"==e.value&&this.enableCreateTemplate)}},watch:{entityNameImport(e,t){e&&e!==t?this.importFile(!0):e||(this.items=[])},entity_Name(){var e,t;null!=this.$refs.upload&&(this.$refs.upload.value=""),null===(e=this.$refs)||void 0===e||null===(t=e.templateActionPopover)||void 0===t||t.doClose()},exportSelect(e,t){e!==t&&this.queryImportMapping()},dialogFormVisible(e,t){var r,i;e&&e!==t&&(this.enablePlugin=!1,this.getOptionEnumList()),null===(r=this.$refs)||void 0===r||null===(i=r.templateActionPopover)||void 0===i||i.doClose()}},mounted(){this.isImportLog=!1,this.$PlatUtils.listenerHook(this,"importLogParam",()=>{this.isImportLog=!0})},methods:{handleEntityChange(){var e,t;null===(e=this.$refs)||void 0===e||null===(t=e.templateActionPopover)||void 0===t||t.doClose()},handlePicklistChange(){var e,t;null===(e=this.$refs)||void 0===e||null===(t=e.templateActionPopover)||void 0===t||t.doClose()},getOptionEnumList(){rt.get("api/templateimport/GetOptionEnumList").then(e=>{this.duplicateRecordConfigOptions=e.duplicateRecordConfigOptions,this.catchErrorConfigOptions=e.catchErrorConfigOptions}).catch(e=>{rt.showErrorToast(e)})},handleTemplateAction(e){const t=encodeURIComponent(this.display_Name);if("editTemplate"===e){if(!this.exportSelect)return void rt.showErrorToast(this.$_t("platform.excelExportDialogchoose","请先选择导入模板!"));this.$PlatUtils.pushLocation("",`vform3/importtemplate/default/${this.exportSelect}?fromentity=`+this.entity_Name+"&displayname="+t+"¤tQueryId="+this.currentQueryId+"&isUserQuery="+this.isUserQuery+"&importMode=editTemplate",!0)}else"addTemplate"===e?this.$PlatUtils.pushLocation("","vform3/importtemplate/default?fromentity="+this.entity_Name+"&displayname="+t+"¤tQueryId="+this.currentQueryId+"&isUserQuery="+this.isUserQuery+"&importMode=addTemplate",!0):"addTemplateFromExcel"===e&&this.$PlatUtils.pushLocation("","vform3/importtemplate/default?fromentity="+this.entity_Name+"&displayname="+t+"¤tQueryId="+this.currentQueryId+"&isUserQuery="+this.isUserQuery+"&importMode=addTemplateFromExcel",!0);this.closeDialog()},show:function(e,t,r,i,a,n,o){this.currentQueryId=a,this.dialogFormVisible=!0,this.isUserQuery=n,this.templateLogicalName=o,this.resetDialog(),e?this.entity_Name=e:this.entityName&&(this.entity_Name=this.entityName),this.checkPrivilege(),this.category=null==t?"":t,this.display_Name=r,this.objectId=null==i?void 0:i.objectId,this.attribute=null==i?void 0:i.attribute,this.isImportLog?this.$nextTick(()=>{this.dialogFormVisible=!0}):this.importFile(!0),this.$nextTick(()=>{this.$refs.upload&&this.$refs.upload.clearFiles()})},reloadTemplate(){this.importFile(!0)},importFile(e){return new Promise((t,r)=>{this.dialogLoading=!0,this.exportSelect="";let i="api/templateimport/GetImportTemplateList?entityName="+(this.isImportLog?this.entityNameImport:this.entity_Name);rt.get(i).then(r=>{this.items=r,this.dialogFormVisible=!0,this.dialogLoading=!1,e&&this.$refs.picklist.bindPicklist(),t(r)}).catch(e=>{r(e),rt.showErrorToast(e),this.dialogLoading=!1})})},Import_Loading(e){this.buttonDisabled_Import=e},closeDialog(){var e,t;null===(e=this.$refs)||void 0===e||null===(t=e.templateActionPopover)||void 0===t||t.doClose(),this.dialogFormVisible=!1,this.resetDialog()},resetDialog(){this.buttonLoading=!1,this.buttonDisabled_Import=!1,this.isExportfile=!1,this.exportSelect=""},DownLoadTemplate:function(){this.exportSelect?rt.isNullOrWhiteSpace(this.entity_Name)?rt.showErrorToast(this.$_t("NoProvidedTemplate","未提供模板信息")):rt.get("api/templateimport/GetTemplateUrl?importTemplateId="+this.exportSelect).then(e=>{e&&e.OssUrl||rt.showErrorToast(this.$_t("File_missing","文件已丢失")),rt.downloadByLink(e.OssUrl)}).catch(e=>{rt.showErrorToast(e)}):rt.showErrorToast(this.$_t("platform.excelExportDialogchoose","请先选择导入模板!"))},Import:function(){if(this.exportSelect){var e=this.$refs.upload?this.$refs.upload.uploadFiles:null;if(null==e||0==e.length)return rt.showErrorToast(this.$_t("ImportTemplate.pleaseUploadFile","请上传文件")),!1;var t=new FileReader;if(e&&e[0].raw)var r=e[0].raw;t.readAsDataURL(r),t.onload=e=>{this.Import_Loading(!0);var i={};i.FileName=r.name,"data:"!==e.target.result&&(i.FileBase64Content=e.target.result.substring(e.target.result.indexOf(",")+1)),i.MimeType=r.type,i.entityName=this.entityNameImport,this.objectId&&(i.relEntityName=this.entity_Name,i.relFilterAttribute=this.attribute,i.relFilterValue=this.objectId);var a="api/templateimport/AsyncTemplateImport?templateImportId="+this.exportSelect+"&duplicateRecordConfig="+this.duplicateRecordConfig.duplicateRecordConfig+"&catchErrorConfig="+this.duplicateRecordConfig.catchErrorConfig+"&entityName="+this.entity_Name;this.isImportLog&&(a="api/templateimport/AsyncQuickTemplateImport?templateImportId="+this.exportSelect+"&duplicateRecordConfig="+this.duplicateRecordConfig.duplicateRecordConfig+"&catchErrorConfig="+this.duplicateRecordConfig.catchErrorConfig+"&entityName="+this.entity_Name+"&enablePlugin="+this.enablePlugin),this.isImportLog=!1,rt.showLoadingToast(this.$_t("common.importing","正在导入...")),this.showLoading=!0,rt.post(a,i).then(e=>{rt.hideLoadingToast(),this.showLoading=!1,this.Import_Loading(!1),this.$refs.upload&&this.$refs.upload.clearFiles(),this.isExportfile=!0,rt.showSuccessToast(e||this.$_t("import.queue","已加入导入队列")),this.ImportSuccessCallback&&this.ImportSuccessCallback(this.entity_Name),this.$nextTick(()=>{this.dialogFormVisible=!1})}).catch(e=>{rt.hideLoadingToast(),this.showLoading=!1,rt.showErrorToast(e),this.Import_Loading(!1)}).finally(()=>{t=null})}}else rt.showErrorToast(this.$_t("platform.excelExportDialogchoose","请先选择导入模板!"))},clearUploadFile(){this.$refs.upload&&(this.$refs.upload.value="")},selectFile:function(){var e=this.$refs.upload;if(e.uploadFiles[0]&&e.uploadFiles[0].raw){e.uploadFiles[0].status="success";var t=e.uploadFiles[0].raw}this.accept.contains(t.type)||(rt.showErrorToast(this.$_t("unsupport_file","不支持的文件类型")),this.clearUploadFile())},onExceed(e,t){this.$refs.upload&&(this.$refs.upload.clearFiles(),setTimeout(()=>{this.$refs.upload.handleStart(e[0])},600))},fetchPicklist(){const e=this.items.map(e=>({Value:e.importtemplateid,Text:e.name,LogicalName:e.logicalname}));return this.$nextTick(()=>{e.length>0&&(this.exportSelect=e[0].Value),e.length>0&&(this.hasTemplate=!0,this.templateLogicalName&&(this.exportSelect=e.find(e=>e.LogicalName===this.templateLogicalName).Value))}),Promise.resolve(e)},NewTemplate(){this.$PlatUtils.pushLocation("","vform3/importtemplate/default?fromentity="+this.entity_Name+"&displayname="+this.display_Name,!0)},checkPrivilege(){rt.get("api/entityprivilege/get?entityName=importtemplate").then(e=>{this.enableCreateTemplate=e.IsCreate||!1,this.enableWriteTemplate=e.IsWrite||!1}).catch(e=>{this.enableCreateTemplate=!1,rt.showErrorToast(e)})},queryImportMapping(){this.exportSelect?rt.get("api/templateimport/GetTemplateMapUpdateRule?importTemplateId="+this.exportSelect).then(e=>{this.duplicateRecordConfig={duplicateRecordConfig:e.duplicateRecordConfig,catchErrorConfig:e.catchErrorConfig}}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)}):this.duplicateRecordConfig={duplicateRecordConfig:1,catchErrorConfig:1}}}},Zd=(r("f541"),r("bb37"),Object(_.a)(Jd,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],staticClass:"plat-excel-dialog",class:{"plat-excel-dialog-small":!e.hasTemplate&&!e.isImportLog},attrs:{title:e.$_t("BUTTON_IMPORT","导入"),"before-close":e.closeDialog,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":"",width:"50%"},on:{input:e.resetDialog},model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}},[r("rc-view",{staticClass:"excelExport-view"},[r("rc-form",[r("rc-card",{directives:[{name:"show",rawName:"v-show",value:e.hasTemplate||e.isImportLog,expression:"hasTemplate || isImportLog"}],staticClass:"excelExport-card"},[r("div",[r("rc-section",{staticClass:"excelExport-section"},[r("div",{staticClass:"excelExport-card-form steps"},[e.isImportLog?r("div",{staticClass:"excelExport-card-form-div"},[e._v(" 1."+e._s(e.$_t("ImportTemplate.selectEntityAndImport","选择实体和导入模板"))+" ")]):r("div",{staticClass:"excelExport-card-form-div"},[e._v(" 1."+e._s(e.$_t("Select.import.template","选择导入模板"))+" ")]),r("div",{staticClass:"excelExport-card-row"},[r("div",{staticClass:"select-entity-import-template"},[e.isImportLog?r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rt-saas-entities",{attrs:{"request-url":"api/meta/Entities/GetImportEntities",placeholder:e.$_t("PleaseSelect","请选择"),clearable:!0},on:{change:e.handleEntityChange},model:{value:e.entityNameImport,callback:function(t){e.entityNameImport=t},expression:"entityNameImport"}})],1):e._e(),r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-picklist",{ref:"picklist",class:e.picklistStyle,attrs:{fetch:e.fetchPicklist,clearable:!1,filterable:""},on:{change:e.handlePicklistChange},model:{value:e.exportSelect,callback:function(t){e.exportSelect=t},expression:"exportSelect"}})],1)],1),r("i",{staticClass:"el-input__icon el-icon-refresh",on:{click:e.reloadTemplate}}),r("rc-button",{staticClass:"downloadTemplate",attrs:{text:"",type:"plain"},on:{click:e.DownLoadTemplate}},[e._v(" "+e._s(e.$_t("ImportTemplate.downloadTemplate","下载模板")))]),!e.enableCreateTemplate&&!e.enableWriteTemplate||e.templateLogicalName?e._e():r("rt-popover",{ref:"templateActionPopover",attrs:{trigger:"click","popper-class":"template-action-popover"},on:{show:function(t){e.popoverVisible=!0},hide:function(t){e.popoverVisible=!1}}},[r("div",{staticClass:"template-action-btn",attrs:{slot:"reference"},slot:"reference"},[r("rc-button",{attrs:{type:"plain",text:""}},[e._v(" "+e._s(e.$_t("ImportTemplate.configureTemplate","配置模板"))+" ")]),r("rt-icon",{staticClass:"popover-icon",class:{"popover-visible":e.popoverVisible},attrs:{name:"rt-base-arrow-down-lined",color:e.SCSS_VARIABLES.COLOR_PRIMARY}})],1),e._l(e.getConfigurationTemplate,(function(t){return r("div",{key:t.value,staticClass:"template-action-item"},[r("rc-button",{attrs:{type:"plain",text:""},on:{click:function(r){return e.handleTemplateAction(t.value)}}},[e._v(e._s(t.name))])],1)}))],2)],1)]),r("div",{staticClass:"excelExport-form-four steps"},[r("div",{staticClass:"excelExport-card-form-div"},[e._v(" 2."+e._s(e.$_t("Upload.file","上传文件"))+" ")]),r("div",{staticClass:"excelExport-card-row"},[r("rc-upload",{ref:"upload",attrs:{"auto-upload":!1,disabled:e.buttonDisabled_Import,action:"",accept:e.accept,"on-change":e.selectFile,limit:1,"on-exceed":e.onExceed}},[r("rc-button",{staticClass:"excelExport-card-upload",attrs:{slot:"trigger","icon-name":"rt-base-plus"},slot:"trigger"},[e._v(" "+e._s(e.$_t("ImportTemplate.selectFile","选择文件")))])],1)],1)]),e.exportSelect?r("div",{staticClass:"excelExport-form-three steps"},[r("div",{staticClass:"excelExport-card-form-div"},[e._v(" 3."+e._s(e.$_t("Select.import.method","选择导入方式"))+" ")]),r("ImportSchemeRadio",{attrs:{"duplicate-record-config-options":e.duplicateRecordConfigOptions,"catch-error-config-options":e.catchErrorConfigOptions,"map-rule":e.duplicateRecordConfig}}),e.isImportLog?r("rc-checkbox",{staticClass:"workflow-checkbox",model:{value:e.enablePlugin,callback:function(t){e.enablePlugin=t},expression:"enablePlugin"}},[e._v(" "+e._s(e.$_t("ImportTemplate.executeWorkflowAndPlugins","是否执行工作流、插件"))+" ")]):e._e()],1):e._e()])],1),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isExportfile,expression:"isExportfile"}],staticClass:"excelExport-background-import"},[r("div",{staticClass:"excelExport-icon"},[r("rc-icon",{attrs:{name:"plat-icon-circle-check-lined",size:"80",color:"#40C8AD"}})],1),r("span",{staticClass:"excelExport-after-span"},[e._v(e._s(e.$_t("Upload.task.submitted","上传任务已提交")))])]),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showLoading,expression:"showLoading"}],staticClass:"excelExport-after"})]),r("div",{directives:[{name:"show",rawName:"v-show",value:!e.hasTemplate&&!e.isImportLog,expression:"!hasTemplate && !isImportLog"}],staticClass:"excelExport-wrapper-no-template"},[r("div",{staticClass:"excelExport-wrapper-no-template-title"},[e._v(" "+e._s(e.$_t("ImportTemplate.noImportTemplate","还没有导入模板,请先创建"))+" ")]),r("div",{staticClass:"excelExport-wrapper-no-template-button"},[r("div",{staticClass:"excelExport-wrapper-no-template-button-item",on:{click:function(t){return e.handleTemplateAction("addTemplateFromExcel")}}},[r("rc-icon",{attrs:{size:"32",name:"plat-icon-excel-lined",color:e.SCSS_VARIABLES.COLOR_NORMAL}}),r("rc-button",{attrs:{text:""}},[e._v(" "+e._s(e.$_t("ImportTemplate.addTemplateFromExcel","从Excel新建"))+" ")])],1),r("div",{staticClass:"excelExport-wrapper-no-template-button-item",on:{click:function(t){return e.handleTemplateAction("addTemplate")}}},[r("rc-icon",{attrs:{size:"32",name:"plat-icon-form-plus-lined",color:e.SCSS_VARIABLES.COLOR_NORMAL}}),r("rc-button",{attrs:{text:""}},[e._v(" "+e._s(e.$_t("ImportTemplate.addTemplate","直接新建"))+" ")])],1)])])],1)],1),r("div",{class:e.dialogFooter,attrs:{slot:"footer"},slot:"footer"},[r("div",[e.isExportfile||e.showLoading?e._e():r("rc-button",{attrs:{type:"primary"},on:{click:e.Import}},[e._v(" "+e._s(e.$_t("BUTTON_IMPORT","导入"))+" ")])],1)])],1)}),[],!1,null,"d52181d0",null).exports),ec={name:"DuplicateConfigForm",props:{mappingRule:{type:Object,required:!0},columnOptions:{type:Array,default:()=>[]},currentEntityAttrs:{type:Array,default:()=>[]},currentManyToMany:{type:Array,default:()=>[]},currentOptions:{type:Array,default:()=>[]},scope:{type:Object,default:()=>{}},isNextTick:{type:Boolean,default:!1}},data:()=>({currentRelateAttrName:"",separatorCharOptions:[{Value:",",Text:","},{Value:";",Text:";"},{Value:"|",Text:"|"},{Value:"/",Text:"/"}]}),computed:{getDisabledSwitch(){return e=>{if(e.attrLogical){const t=this.currentEntityAttrs.filter(t=>t.Value==e.attrLogical);if(t.length>0)return"SystemRequired"===t[0].RequiredLevel||"ApplicationRequired"===t[0].RequiredLevel}return!1}}},mounted(){this.isNextTick&&this.$emit("updateAttrLogicalChange")},methods:{fetchManyToManyAttrInternal:_i((async function(e){try{const t=await rt.get("api/templateimport/GetManyToManyAttrsByEntityName?entityname="+e);return null==t?void 0:t.map(e=>({Value:e.LogicalName,Text:`${e.DisplayName}--${e.LogicalName}`,IsPrimaryNameAttribute:e.IsPrimaryNameAttribute}))}catch(e){}return[]})),async fetchManyToManyAttr(e){const t=await this.fetchManyToManyAttrInternal(e);if(!this.scope.row.mappingRule.relatedAttr&&t&&t.length>0){const e=t.find(e=>!0===e.IsPrimaryNameAttribute);this.scope.row.mappingRule.relatedAttr=e?e.Value:t[0].Value}return t},getRelatedAttrName(e,t){const r=t.find(t=>t.LogicalName===e.relatedAttr);this.currentRelateAttrName=r?r.DisplayName:e.relatedAttr},lookUpEntityCallback(e,t){this.currentRelateAttrName=null==t?void 0:t.displayname,this.$emit("lookUpEntityCallback",e,t)},handleDataLoad(){this.$nextTick(()=>{this.$emit("dataLoaded")})},enableDuplicateDetectClick(e){this.$emit("enableDuplicateDetectClick",e)},selectExcelColumnName(e,t){this.$emit("selectExcelColumnName",e,t)},mapAttrCallback(e,t){this.$emit("mapAttrCallback",e,t)}}},tc=(r("687a"),{name:"MappingRulesTable",components:{DuplicateConfigForm:Object(_.a)(ec,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-form",[e.scope.row.relationshipName?[r("div",{staticClass:"many-to-many-form-group"},[r("rc-form-item",{attrs:{label:"匹配字段"}},[r("rc-picklist",{key:e.scope.row.relationshipName,attrs:{fetch:function(){return e.fetchManyToManyAttr(e.scope.row.relateEntityName)},clearable:!1,size:"mini"},model:{value:e.scope.row.mappingRule.relatedAttr,callback:function(t){e.$set(e.scope.row.mappingRule,"relatedAttr",t)},expression:"scope.row.mappingRule.relatedAttr"}})],1),r("rc-form-item",{attrs:{label:e.$_t("common.separatorChar","分隔符")}},[r("rc-picklist",{attrs:{value:e.scope.row.mappingRule.separatorChar||",",placeholder:e.$_t("common.select","请选择"),options:e.separatorCharOptions,clearable:!1,size:"mini"},on:{change:function(t){e.scope.row.mappingRule.separatorChar=t}}})],1)],1)]:[r("rc-form-item",{attrs:{label:e.$_t("mappingRule.relatedEntityMatchField","关联实体匹配字段")}},[r("rt-saas-attributes",{ref:"relatedAttrDom",attrs:{placeholder:e.$_t("notification.pleasechoosefield","请选择字段"),clearable:!0,size:"mini","attribute-filter-type":"nvarchar",entityname:e.scope.row.mappingRule.referencedEntity},on:{callback:function(t){return e.lookUpEntityCallback(e.scope.row.mappingRule,t)},selectOption:function(t){return e.getRelatedAttrName(e.scope.row.mappingRule,t)},dataLoaded:e.handleDataLoad},model:{value:e.scope.row.mappingRule.relatedAttr,callback:function(t){e.$set(e.scope.row.mappingRule,"relatedAttr",t)},expression:"scope.row.mappingRule.relatedAttr"}})],1),r("rc-checkbox",{staticClass:"toolbar-icon",on:{change:function(t){return e.enableDuplicateDetectClick(e.scope.row.mappingRule)}},model:{value:e.scope.row.mappingRule.enableDuplicateDetect,callback:function(t){e.$set(e.scope.row.mappingRule,"enableDuplicateDetect",t)},expression:"scope.row.mappingRule.enableDuplicateDetect"}},[e._v(" "+e._s(e.$_t("ImportTemplate.enableDuplicateDetect","启用辅助字段"))+" ")]),e.scope.row.mappingRule.enableDuplicateDetect?r("div",{staticClass:"toolbar-icon-text"},[e._v(" "+e._s(this.$_t("ImportTemplate.enableDuplicateDetectText",'"'+e.currentRelateAttrName+'"重复时,可用辅助字段确定唯一性',[e.currentRelateAttrName]))+" ")]):e._e(),e._l(e.scope.row.mappingRule.duplicateConfigs,(function(t,i){return r("div",{key:i,staticClass:"excelExport-flex-bottom-wrapper"},[r("div",{staticClass:"excelExport-flex-bottom"},[2==t.duplicateConfigType&&t.referencedEntityAttr?r("rc-form-item",{staticClass:"duplicate-config-form-item",attrs:{label:e.$_t("ImportTemplate.auxiliaryFieldExcelColumn","辅助字段Excel列")}},[r("rc-picklist",{attrs:{placeholder:e.$_t("duplicateConfig.pleaseChooseexcelColumn","请选择excel的列"),options:e.columnOptions,size:"mini",clearable:!0,filterable:""},on:{input:function(r){e.selectExcelColumnName(r,t)}},model:{value:t.excelColumnName,callback:function(r){e.$set(t,"excelColumnName",r)},expression:"duplicateConfig.excelColumnName"}})],1):e._e(),r("rc-form-item",{staticClass:"duplicate-config-form-item",attrs:{label:t.referencedEntityAttr?e.$_t("sheetSetting.attrLogical","实体字段"):e.$_t("ImportTemplate.selectAuxiliaryField","选择辅助字段")}},[r("rt-saas-attributes",{attrs:{placeholder:e.$_t("notification.pleasechoosefield","请选择字段"),clearable:!0,size:"mini",entityname:e.scope.row.mappingRule.referencedEntity,"is-custom-attr":"true"},on:{callback:function(r){e.mapAttrCallback(r,t)}},model:{value:t.referencedEntityAttr,callback:function(r){e.$set(t,"referencedEntityAttr",r)},expression:"duplicateConfig.referencedEntityAttr"}})],1)],1),1==t.duplicateConfigType?r("rc-form-item",{staticClass:"excelExport-flex-bottom-last",attrs:{label:e.$_t("ImportTemplate.excel","Excel列")}},[r("rc-picklist",{attrs:{placeholder:e.$_t("notification.pleasechoosefield","请选择字段"),options:e.currentOptions,clearable:!0,filterable:"",size:"mini"},model:{value:t.currentEntityAttr,callback:function(r){e.$set(t,"currentEntityAttr",r)},expression:"duplicateConfig.currentEntityAttr"}})],1):e._e(),2==t.duplicateConfigType&&"lookup"==t.referencedEntityAttrTypeName&&t.relatedEntity?r("rc-form-item",{staticClass:"excelExport-flex-bottom-last",attrs:{label:e.$_t("mappingRule.relatedEntityMatchField","关联实体匹配字段")}},["lookup"==t.referencedEntityAttrTypeName&&t.relatedEntity?r("rt-saas-attributes",{attrs:{size:"mini",placeholder:e.$_t("notification.pleasechoosefield","请选择字段"),clearable:!0,entityname:t.relatedEntity,"attribute-filter-type":"nvarchar"},model:{value:t.relatedAttr,callback:function(r){e.$set(t,"relatedAttr",r)},expression:"duplicateConfig.relatedAttr"}}):e._e()],1):e._e()],1)}))]],2)}),[],!1,null,"3b9500d2",null).exports},props:{columnOptions:{type:Array,required:!0},currentSheetInfo:{type:Object,default:()=>{}},currentEntityAttrs:{type:Array,default:()=>[]},currentManyToMany:{type:Array,default:()=>[]},currentOptions:{type:Array,default:()=>[]},customerOptions:{type:Array,default:()=>[]},isNewAddImport:{type:Boolean,default:!1},requireOnly:{type:Boolean,default:!1},tableSearchValue:{type:String,default:""},duplicateConfigType:{type:Array,default:()=>[]},mountedEntity:{type:String,default:""},disabledSameSheet:{type:Boolean,default:!1},isNextTick:{type:Boolean,default:!1},hasSaved:{type:Boolean,default:!1},disableMappingRulesTab:{type:Boolean,default:!1}},data:()=>({picklistValue:"",filteredAttrMappingRules:[],separatorCharOptions:[{Value:",",Text:","},{Value:";",Text:";"},{Value:"|",Text:"|"},{Value:"/",Text:"/"}],isSystemRequired:!0,skipDuplicateConfigFormChange:!1,columnOptionsForNewMode:[],hasHorizontalScroll:!1,checkScrollTimeout:null,hasEmittedLoaded:!1}),computed:{getColumnOptions(){return this.isNewAddImport?this.columnOptionsForNewMode:this.columnOptions},getDisabledSwitch(){return e=>{if(e.attrLogical){const t=this.currentEntityAttrs.filter(t=>t.Value==e.attrLogical);if(t.length>0){const r="SystemRequired"===t[0].RequiredLevel||"ApplicationRequired"===t[0].RequiredLevel;return r&&(e.required=!0),r}}return!1}},getEntityPrimaryNameData:()=>_i(e=>rt.get(e),"getRefEntityPrimaryName"),getCurrentOptions(){const e=[];return this.currentEntityAttrs.length&&e.push({Value:1,Text:this.$_t("ImportTemplate.addNewField","添加字段"),TextExt:this.$_t("ImportTemplate.addNewField","添加字段"),options:[{Text:this.$_t("ImportTemplate.addNewField","添加字段"),TextExt:this.$_t("ImportTemplate.addNewField","添加字段"),Value:"addNewField"},...this.currentEntityAttrs]}),this.currentManyToMany.length&&e.push({Value:2,Text:this.$_t("ImportTemplate.addNewManyToMany","N:N关系"),TextExt:this.$_t("ImportTemplate.addNewManyToMany","N:N关系"),options:this.currentManyToMany}),e}},watch:{requireOnly(){this.refreshTableData()},tableSearchValue(){this.refreshTableData()},currentEntityAttrs(){const e=this.currentSheetInfo&&this.currentSheetInfo.attrMappingRules||[];Array.isArray(e)&&e.length&&e.forEach(e=>{e&&e.attrLogical&&this.attrLogicalChange(e,!0)}),this.refreshTableData()},"currentSheetInfo.bindEntity"(){this.refreshTableData()}},mounted(){this.getExcelColumnNameForNewMode(),this.getHasHorizontalScroll(),this.$PlatUtils.eventListenerHook(this,"resize",this.getHasHorizontalScroll,window)},beforeDestroy(){window.removeEventListener("resize",this.getHasHorizontalScroll),this.checkScrollTimeout&&(clearTimeout(this.checkScrollTimeout),this.checkScrollTimeout=null)},methods:{changeInputExcelColumnName(){this.getExcelColumnNameForNewMode()},getHasHorizontalScroll(){this.checkScrollTimeout&&clearTimeout(this.checkScrollTimeout);const e=()=>{const e=this.$refs.rtTable&&this.$refs.rtTable.$el.querySelector(".rtxpc-table__body-wrapper");if(!e)return void(this.hasHorizontalScroll=!1);const t=e.offsetWidth,r=e.scrollWidth;this.hasHorizontalScroll=r>t};this.$nextTick(()=>{this.checkScrollTimeout=setTimeout(e,300)})},handleDragEnd(e,t,r,i,a){this.currentSheetInfo.attrMappingRules=i,this.refreshTableData()},refreshTableData(){this.$nextTick(()=>{this.$refs.rtTable.loadData()})},deleteRow(e){this.currentSheetInfo.attrMappingRules=this.currentSheetInfo.attrMappingRules.filter(t=>t.skippingRuleId!==e.row.skippingRuleId),this.$refs.rtTable.dataList=this.currentSheetInfo.attrMappingRules},changePicklistValue(e){!this.currentSheetInfo.attrMappingRules.find(t=>t.attrLogical===e)||this.isNextTick||this.hasSaved||rt.showErrorToast(this.$_t("ImportTemplate.duplicateFieldError","该字段已存在,请选择其他字段"));const t=this.currentEntityAttrs.find(t=>t.Value==e);let r={excelColumnName:"",attrLogical:"",name:"",required:!1,width:30,skippingRuleId:rt.newUUID(),remarks:"",mappingRule:{},relationshipName:"",relateEntityName:""};if(t)"addNewField"!=e&&(r=Object.assign(r,{excelColumnName:t&&t.Text,attrLogical:e,name:e}),"Customer"==t.AttributeType&&(r.mappingRule={customerType:1,duplicateConfigs:[]},this.customerTypeChange(r.mappingRule.customerType,r)),"PicklistArray"==t.AttributeType&&(r.mappingRule={optionType:1,separatorChar:",",isMulti:!0}),"Lookup"!=t.AttributeType&&"Owner"!=t.AttributeType||(r.mappingRule={referencedEntity:t.ReferencedEntityLogicalName,relatedAttr:"",enableDuplicateDetect:!1,duplicateConfigs:[]}),"MultipleTypeLookup"==t.AttributeType&&(r.mappingRule={referencedEntity:"",relatedAttr:"",enableDuplicateDetect:!1,duplicateConfigs:[]}));else{const t=this.currentManyToMany.find(t=>t.Value==e);t&&(r=Object.assign(r,{excelColumnName:t.Text,attrLogical:e,name:e,relationshipName:e,relateEntityName:t.entity1Name,mappingRule:{relatedAttr:"",separatorChar:","}}))}this.currentSheetInfo.attrMappingRules.push(r),this.$refs.rtTable.dataList=this.currentSheetInfo.attrMappingRules,t&&["Lookup","Owner","Customer","MultipleTypeLookup","PicklistArray","Picklist","State","Status","Boolean"].includes(t.AttributeType)&&this.attrLogicalChange(r,"canExec"),this.$nextTick(()=>{this.picklistValue=null})},_fetchRecords(e){return new Promise(e=>{this.currentSheetInfo?this.requireOnly||this.tableSearchValue?(this.getFilteredAttrMappingRules(),this.$nextTick(()=>{this.$emit("dataLoaded")}),e(this.filteredAttrMappingRules)):(this.setSystemRequired(),this.currentSheetInfo.attrMappingRules=this.currentSheetInfo.attrMappingRules.map(e=>{const t=this.currentEntityAttrs.find(t=>t.Value===e.attrLogical),r=e.mappingRule||{},i={...r,duplicateConfigs:r.duplicateConfigs||[]};return t&&"PicklistArray"===t.AttributeType&&(i.separatorChar=i.separatorChar||",",i.optionType=i.optionType||1,i.isMulti=void 0===i.isMulti||i.isMulti),e.relationshipName&&(i.separatorChar=i.separatorChar||","),{...e,skippingRuleId:rt.newUUID(),width:e.width||30,attrTypeName:t&&t.AttributeType,mappingRule:i,relationshipName:e.relationshipName||"",relateEntityName:e.relateEntityName||""}}),this.$nextTick(()=>{this.$emit("dataLoaded")}),e(this.currentSheetInfo.attrMappingRules)):(this.$nextTick(()=>{this.$emit("dataLoaded")}),e([]))})},setSystemRequired(){this.currentSheetInfo.attrMappingRules.forEach(e=>{this.currentEntityAttrs.find(t=>t.Value===e.attrLogical&&("SystemRequired"===t.RequiredLevel||"ApplicationRequired"===t.RequiredLevel))&&(e.required=!0)})},getFilteredAttrMappingRules(){this.setSystemRequired();const e=this.currentSheetInfo.attrMappingRules;this.requireOnly&&(this.filteredAttrMappingRules=e.filter(e=>e.required)),this.tableSearchValue&&(this.filteredAttrMappingRules=e.filter(e=>e.excelColumnName.includes(this.tableSearchValue)||e.attrLogical.includes(this.tableSearchValue)))},customerTypeChange(e,t){t&&t.mappingRule&&(t._suppressLoaded=!0,t.mappingRule.referencedEntity=1==e?"account":"contact",this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,t))},enableDuplicateDetectClick(e){e.enableDuplicateDetect?this.addDuplicateConfigs(e):e.duplicateConfigs=[],this.isNewAddImport&&this.getExcelColumnNameForNewMode()},getExcelColumnNameForNewMode(){const e=this.currentSheetInfo.attrMappingRules.map((e,t)=>({name:e.excelColumnName,index:t+1}));let t=[];e&&e.length>0&&e.map(e=>{t.push({Value:e.index,Text:e.name})}),this.columnOptionsForNewMode=t},addDuplicateConfigs(e){e.duplicateConfigs.push({duplicateConfigType:2,customerType:1,referencedEntityAttr:"",currentEntityAttr:"",referencedEntityAttrTypeCode:"",relatedAttr:"",excelColumnName:""})},selectExcelColumnName(e,t){const r=this.getColumnOptions.find(t=>t.Value==e);t.excelColumnName=r&&r.Text},lookUpEntityCallback(e){e.enableDuplicateDetect=!1,e.duplicateConfigs=[]},handleDataLoad(e){this.$nextTick(()=>{e&&e.attrLogical&&e.mappingRule&&!e.mappingRule.relatedAttr&&this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,e),e&&e._suppressLoaded?e._suppressLoaded=!1:this.isNextTick&&!this.hasEmittedLoaded&&(this.hasEmittedLoaded=!0,this.$emit("dataLoaded"))})},changeExcelColumnName(e,t){const r=this.getColumnOptions.find(e=>e.Value==t);e.excelColumnName=r.Text},attrLogicalChange(e,t){e&&(e._suppressLoaded=!0),this.setSystemRequired(),this.isNextTick&&(e.mappingRule={});const r=this.currentEntityAttrs.find(t=>t.Value==e.attrLogical);if(e.attrLogical&&this.currentSheetInfo.attrMappingRules.find(t=>t.attrLogical===e.attrLogical&&t!==e)&&(this.isNextTick||t||this.hasSaved||rt.showErrorToast(this.$_t("ImportTemplate.duplicateFieldError","该字段已存在,请选择其他字段"))),e.relationshipName="",e.relateEntityName="",r){if(e.attrTypeName=r.AttributeType,"Customer"==e.attrTypeName)!this.isNextTick&&Object.keys(e.mappingRule).length||(e.mappingRule={customerType:1,referencedEntity:"account",relatedAttr:"",enableDuplicateDetect:!1,duplicateConfigs:[]},this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,e)),e.mappingRule.referencedEntity=e.mappingRule.referencedEntity||"account",e.mappingRule.customerType=e.mappingRule.customerType||1,t&&this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,e);else if("Lookup"==e.attrTypeName||"Owner"==e.attrTypeName)!this.isNextTick&&Object.keys(e.mappingRule).length||(e.mappingRule={referencedEntity:r.ReferencedEntityLogicalName,relatedAttr:"",enableDuplicateDetect:!1,duplicateConfigs:[]},this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,e)),t&&(e.mappingRule.referencedEntity=e.mappingRule.referencedEntity||r.ReferencedEntityLogicalName,this.getRefEntityPrimaryName(this.currentSheetInfo.bindEntity||this.mountedEntity,e));else if("Picklist"==e.attrTypeName||"Boolean"==e.attrTypeName||"State"==e.attrTypeName||"Status"==e.attrTypeName)e.mappingRule={optionType:1};else if("PicklistArray"==e.attrTypeName){const t=e.mappingRule||{};e.mappingRule={optionType:t.optionType||1,separatorChar:t.separatorChar||",",isMulti:void 0===t.isMulti||t.isMulti}}else"MultipleTypeLookup"==e.attrTypeName&&(!this.isNextTick&&Object.keys(e.mappingRule).length||(e.mappingRule={referencedEntity:"",relatedAttr:"",enableDuplicateDetect:!1,duplicateConfigs:[]}));return}const i=this.currentManyToMany.find(t=>t.Value==e.attrLogical);if(i){e.relationshipName=e.attrLogical,e.relateEntityName=i.entity1Name;const t=e.mappingRule||{};return e.mappingRule={relatedAttr:t.relatedAttr||"",separatorChar:t.separatorChar||","},void(e.attrTypeName=null)}e.attrTypeName=null},getRefEntityPrimaryName(e,t){let r="api/templateimport/GetPrimaryNameAttr?entityName="+e+"&attrName="+t.attrLogical+"&customerType=1";return new Promise((e,i)=>this.fetchEntityPrimaryNameData(r,t,e,i))},fetchEntityPrimaryNameData(e,t,r,i){return this.getEntityPrimaryNameData(e).then(e=>{t.mappingRule.relatedAttr=e,r(e)}).catch(e=>{i(e)})},mapAttrCallback(e,t){if(e.logicalname){const r=this.currentEntityAttrs.find(t=>t.Text==e.displayname);t.currentEntityAttr=null!=r?r.Value:"",t.referencedEntityAttrTypeName=e.attributeTypeName,t.relatedEntity=e.relatedEntity,t.excelColumnName=""}else t.referencedEntityAttrTypeName="",t.relatedEntity="",t.relatedAttr="",t.currentEntityAttr=""},GetAttrLookupTargetEntities(e){return"api/templateimport/GetAttrLookupTargetEntities?entityName="+(this.currentSheetInfo.bindEntity||this.mountedEntity)+"&attributeName="+e},handleWidthInput(e,t){t.width=e<0?30:e}}}),rc=(r("da31"),{name:"ImportTemplateMapping",components:{ImportSchemeRadio:Yd,MappingRulesTable:Object(_.a)(tc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-table",{ref:"rtTable",class:{"same-all-sheet-disabled-status":e.disabledSameSheet,"disable-mapping-rules-tab":e.disableMappingRulesTab,"has-horizontal-scroll":e.hasHorizontalScroll,"mapping-rules-table":!0},attrs:{sectionable:!1,"header-weight":"medium",fetch:e._fetchRecords,draggable:e.isNewAddImport,"row-key":"skippingRuleId"},on:{dragEnd:e.handleDragEnd}},[r("rc-table-column",{attrs:{prop:"excelColumnName",label:e.$_t("sheetSetting.excelColumnName","Excel列"),"min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isNewAddImport?r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-input",{on:{change:function(t){return e.changeInputExcelColumnName()}},model:{value:t.row.excelColumnName,callback:function(r){e.$set(t.row,"excelColumnName",r)},expression:"scope.row.excelColumnName"}})],1):r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-picklist",{attrs:{placeholder:e.$_t("common.select","请选择"),options:e.columnOptions,clearable:!0,filterable:""},on:{input:function(r){e.changeExcelColumnName(t.row,r)}},model:{value:t.row.excelColumnName,callback:function(r){e.$set(t.row,"excelColumnName",r)},expression:"scope.row.excelColumnName"}})],1)]}}])}),r("rc-table-column",{attrs:{prop:"attrLogical",width:"400px",label:e.$_t("sheetSetting.attrLogical","实体字段"),"show-overflow-tooltip":!1},scopedSlots:e._u([{key:"default",fn:function(t){return[r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-picklist",{attrs:{placeholder:e.$_t("common.select","请选择"),options:e.currentOptions,alias:{value:"Value",name:"TextExt"},clearable:!0,disabled:!e.currentSheetInfo.bindEntity,"popper-class":"import-template-picklist-popper",filterable:""},on:{change:function(r){return e.attrLogicalChange(t.row,"canExec")}},model:{value:t.row.attrLogical,callback:function(r){e.$set(t.row,"attrLogical",r)},expression:"scope.row.attrLogical"}})],1),t.row.attrLogical&&(["Lookup","Owner","Customer","MultipleTypeLookup"].includes(t.row.attrTypeName)||t.row.relationshipName)?r("div",{staticClass:"mapping-rules-table-cell"},["Customer"===t.row.attrTypeName?r("rc-radio-group",{staticClass:"radioGroupNew-radioGroup",attrs:{"border-size":"small"},on:{change:function(r){return e.customerTypeChange(t.row.mappingRule.customerType,t.row)}},model:{value:t.row.mappingRule.customerType,callback:function(r){e.$set(t.row.mappingRule,"customerType",r)},expression:"scope.row.mappingRule.customerType"}},e._l(e.customerOptions,(function(t){return r("rc-radio",{key:t.Value,attrs:{label:t.Value}},[e._v(e._s(t.Text)+" ")])})),1):e._e(),"MultipleTypeLookup"===t.row.attrTypeName?r("rc-form-item",{attrs:{label:e.$_t("mappingRule.referencedEntity","关联实体")}},[r("rt-saas-entities",{attrs:{"request-url":e.GetAttrLookupTargetEntities(t.row.attrLogical),placeholder:e.$_t("PleaseSelect","请选择"),clearable:!0},model:{value:t.row.mappingRule.referencedEntity,callback:function(r){e.$set(t.row.mappingRule,"referencedEntity",r)},expression:"scope.row.mappingRule.referencedEntity"}})],1):e._e(),r("DuplicateConfigForm",{attrs:{scope:t,"mapping-rule":t.row.mappingRule,"column-options":e.getColumnOptions,"current-entity-attrs":e.currentEntityAttrs,"current-many-to-many":e.currentManyToMany,"current-options":e.currentOptions,"is-next-tick":e.isNextTick},on:{lookUpEntityCallback:e.lookUpEntityCallback,dataLoaded:function(r){return e.handleDataLoad(t.row)},enableDuplicateDetectClick:e.enableDuplicateDetectClick,selectExcelColumnName:e.selectExcelColumnName,mapAttrCallback:e.mapAttrCallback,updateAttrLogicalChange:function(r){return e.attrLogicalChange(t.row,"canExec")}}})],1):e._e(),t.row.attrLogical&&"PicklistArray"==t.row.attrTypeName?r("div",{staticClass:"mapping-rules-table-cell"},[r("rc-form-item",{attrs:{label:e.$_t("common.separatorChar","分隔符")}},[r("rc-picklist",{attrs:{value:t.row.mappingRule.separatorChar,placeholder:e.$_t("common.select","请选择"),options:e.separatorCharOptions,clearable:!0,size:"mini",filterable:""},on:{change:function(e){t.row.mappingRule.separatorChar=e}}})],1)],1):e._e()]}}])}),r("rc-table-column",{attrs:{"min-width":"80px",prop:"required",label:e.$_t("new_formworkline_stage.new_isneed","是否必填")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.getDisabledSwitch(t.row)||!t.row.attrLogical?r("rc-switch",{attrs:{disabled:!0},model:{value:t.row.required,callback:function(r){e.$set(t.row,"required",r)},expression:"scope.row.required"}}):r("rc-switch",{model:{value:t.row.required,callback:function(r){e.$set(t.row,"required",r)},expression:"scope.row.required"}})]}}])}),e.isNewAddImport?r("rc-table-column",{attrs:{"min-width":"120px",prop:"width",label:e.$_t("ImportTemplate.colWidth","Excel列宽")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-input",{attrs:{value:t.row.width,type:"number",controls:!1},on:{change:function(r){return e.handleWidthInput(r,t.row)}}})],1)]}}],null,!1,1065585238)}):e._e(),e.isNewAddImport?r("rc-table-column",{attrs:{"min-width":"200px",prop:"remark",label:e.$_t("opportunity.description","备注")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-input",{model:{value:t.row.remarks,callback:function(r){e.$set(t.row,"remarks",r)},expression:"scope.row.remarks"}})],1)]}}],null,!1,2461472209)}):e._e(),e.isNewAddImport?r("rc-table-column",{attrs:{fixed:"right","min-width":"80px",label:e.$_t("ACT","操作")},scopedSlots:e._u([{key:"default",fn:function(t){return[r("rc-button",{attrs:{slot:"reference",type:"plain",text:""},on:{click:function(r){return e.deleteRow(t)}},slot:"reference"},[e._v(e._s(e.$_t("BUTTON_DELETE","删除")))])]}}],null,!1,1762712745)}):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:e.isNewAddImport&&!e.disableMappingRulesTab&&!e.disabledSameSheet,expression:"isNewAddImport && !disableMappingRulesTab && !disabledSameSheet"}],key:e.isNewAddImport+e.disableMappingRulesTab+e.disabledSameSheet,attrs:{slot:"footer-left"},slot:"footer-left"},[r("div",{staticClass:"footer-left"},[r("rc-form-item",{staticClass:"import-template-form-item-no-label",attrs:{"hidden-label":""}},[r("rc-picklist",{attrs:{placeholder:e.$_t("common.select","请选择"),options:e.getCurrentOptions,alias:{value:"Value",name:"TextExt"},clearable:!0,"popper-class":"import-template-picklist-popper",filterable:""},on:{change:e.changePicklistValue},model:{value:e.picklistValue,callback:function(t){e.picklistValue=t},expression:"picklistValue"}})],1)],1)])],1)}),[],!1,null,"308abf7a",null).exports},props:{customerData:{type:Object,default:()=>({})}},data:function(){return{hasUpload:!1,mapRule:{sameAllSheet:!1,duplicateRecordConfig:1,catchErrorConfig:1,sheetSettings:[]},sheetInfo:[],columnOptions:[],currentSheetInfo:null,currentEntityAttrs:null,currentManyToMany:[],currentOptions:[],editForm:{name:"",logicalname:"",languageid_lookup:null,entityname:"",importtemplateid:null},duplicateRecordConfigOptions:[],catchErrorConfigOptions:[],duplicateConfigType:[],customerOptions:[],optionTypeOptions:[],mainEntitiesOptions:[],mountedEntity:"",currentIndex:0,skipmapping:!1,activeName:"0",searchValue:"",tableSearchValue:"",currentQueryId:"",importMode:"",sheetName:"",configMethod:"",requireOnly:!1,editingSheetIndex:null,editingSheetName:"",importTemplateEditForm:{},disableMappingRulesTab:!1,canInitTable:!1,isNextTick:!1,pendingAutoSave:!1,hasSaved:!1,mappingRulesTabsWidth:"width: calc(100% - 204px)",isPrimaryCollapsed:!1,isPrimaryAnimating:!1,syncLock:!1}},computed:{isMasterSheet(){const e=this.getEntityName,t=this.currentSheetInfo;return!!(t&&t.bindEntity&&e&&t.bindEntity===e)},isFormExcelImport(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return 20==this.importTemplateEditForm.configmethod||r&&"addTemplateFromExcel"===JSON.parse(r).importMode||"addTemplateFromExcel"===(null===(t=this.$route.query)||void 0===t?void 0:t.importMode)},isNewAddImport(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return 10==this.importTemplateEditForm.configmethod||r&&"addTemplate"===JSON.parse(r).importMode||"addTemplate"===(null===(t=this.$route.query)||void 0===t?void 0:t.importMode)},isEditImport(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return r&&"editTemplate"===JSON.parse(r).importMode||"editTemplate"===(null===(t=this.$route.query)||void 0===t?void 0:t.importMode)},getCurrentQueryId(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return r&&JSON.parse(r).currentQueryId||(null===(t=this.$route.query)||void 0===t?void 0:t.currentQueryId)},getEntityName(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return this.importTemplateEditForm.entityname||r&&JSON.parse(r).fromentity||(null===(t=this.$route.query)||void 0===t?void 0:t.entityName)},getDisplayName(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return r&&JSON.parse(r).displayname||(null===(t=this.$route.query)||void 0===t?void 0:t.displayname)},isUserQuery(){var e,t;const r=null===(e=this.$route.params)||void 0===e?void 0:e.extraParmas;return r&&JSON.parse(r).isUserQuery||(null===(t=this.$route.query)||void 0===t?void 0:t.isUserQuery)},showSameAllSheet(){const e=this.mapRule.sheetSettings;if(e&&e.length>0){const e=this.mapRule.sheetSettings.map(e=>e.bindEntity),t=e.some(e=>e),r=e.some(e=>!e);return!(t&&r||new Set(e.filter(Boolean)).size>1)}return!0},getMetaAttributeData:()=>_i(e=>rt.get(e),"getMetaAttribute"),canAddSubTable(){const e=this.currentSheetInfo;return(e&&e.subTables?e.subTables.length:0)<5},entityOptions(){const e=new Set;return Array.isArray(this.mainEntitiesOptions)?this.mainEntitiesOptions.filter(t=>{const r=t.LogicalName||t.logicalname;return!r||!e.has(r)&&(e.add(r),!0)}):[]},subEntitiesOptions(){const e=this.currentSheetInfo&&this.currentSheetInfo.bindEntity||this.mountedEntity;return(Array.isArray(this.mainEntitiesOptions)?this.mainEntitiesOptions.map(e=>({...e,Label_EntityName:e.Label_EntityName+(e.ReferencingAttributeDisplayName?"("+e.ReferencingAttributeDisplayName+")":""),DisplayName:e.Label_EntityName,ValueKey:e.LogicalName+"_"+e.ReferencingAttributeLogicalName})):[]).filter(t=>t.LogicalName!==e)},hasSubEntitiesOptions(){const e=this.subEntitiesOptions;return Array.isArray(e)&&e.length>0},saveMapRuleMemoized:()=>_i(e=>{const t=String(e).split("|payload="),r=t[0];let i={};try{i=JSON.parse(decodeURIComponent(t[1]||""))}catch(e){}return rt.post(r,i)},"saveMapRule",{expireTime:3e3,noCacheOnReject:!0})},watch:{},mounted(){this.$PlatUtils.listenerHook(this,"isPublishedTemplate",e=>{this.disableMappingRulesTab=e}),this.$PlatUtils.listenerHook(this,"skipmappingChange",e=>{this.skipmapping=e,this.$nextTick(()=>{this.startMapping(!0)})}),this.$PlatUtils.listenerHook(this,"importTemplateEditForm",e=>{this.importTemplateEditForm=e,this.importTemplateEditForm.skipmapping&&(this.skipmapping=!0);let t=this.$route.params.id,r=this.$route.query.fromentity||this.getEntityName||this.importTemplateEditForm.entityname;this.show(t,r)}),this.isFormExcelImport&&(this.configMethod="addTemplateFromExcel"),this.isNewAddImport&&(this.configMethod="addTemplate"),this.mountedEntity&&this.loadEntitiesOptions(),this.mapRule&&this.mapRule.sameAllSheet&&this.initSameAllSheetWatchers()},beforeDestroy(){this.mapRule=null,this.sheetInfo=null,this.columnOptions=null},methods:{handleMappingRulesLoaded(){if(this.pendingAutoSave||this.isNextTick){this.pendingAutoSave=!1;const e=setTimeout(()=>{this.saveImportTemplate(),clearTimeout(e)},300)}},getFirstMasterRulesSnapshot(){if("0"==this.activeName&&this.$refs.mappingRulesTable&&this.$refs.mappingRulesTable.$refs&&this.$refs.mappingRulesTable.$refs.rtTable&&Array.isArray(this.$refs.mappingRulesTable.$refs.rtTable.dataList))return this.$refs.mappingRulesTable.$refs.rtTable.dataList.map(e=>({...e}));const e=this.mapRule.sheetSettings[0];return Array.isArray(e.attrMappingRules)?e.attrMappingRules:[]},getFirstSubTablesSnapshot(){const e=this.mapRule.sheetSettings[0];return"0"==this.activeName&&this.$refs.subMappingRulesTables&&Array.isArray(this.$refs.subMappingRulesTables)&&e&&Array.isArray(e.subTables)?e.subTables.map((e,t)=>{const r=this.$refs.subMappingRulesTables[t],i=r&&r.$refs&&r.$refs.rtTable&&r.$refs.rtTable.dataList?r.$refs.rtTable.dataList.map(e=>({...e})):Array.isArray(e.attrMappingRules)?e.attrMappingRules:[];return{...e,attrMappingRules:i}}):Array.isArray(e&&e.subTables)?e.subTables:[]},deepCloneMappingRules:e=>(Array.isArray(e)?e:[]).map(e=>({...e,skippingRuleId:rt.newUUID(),mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}})),togglePrimaryCollapsed(){const e=this.currentSheetInfo;if(!e||!this.isMasterSheet)return;const t=!e.isPrimaryCollapsed;Object.prototype.hasOwnProperty.call(e,"isPrimaryCollapsed")?e.isPrimaryCollapsed=t:this.$set(e,"isPrimaryCollapsed",t),this.isPrimaryAnimating=!1},handleSheetNameDblClick(e,t){this.editingSheetIndex=e,this.editingSheetName=t},handleSheetNameBlur(){null!==this.editingSheetIndex&&(this.mapRule.sheetSettings[this.editingSheetIndex].sheetName=this.editingSheetName,this.editingSheetIndex=null)},handleSheetNameKeydown(e){"Enter"===e.key&&this.handleSheetNameBlur()},handleTableSearch(e){this.tableSearchValue=e},matchArrays(e,t){const r={};return t.forEach(e=>{r[e.Value]=e.Text}),e.filter(e=>void 0!==r[e.name]).map(e=>({...e,attrLogical:e.name,excelColumnName:r[e.name],index:e.index,mappingRule:{},required:!1,remarks:"",width:30,skippingRuleId:rt.newUUID(),relationshipName:e.relationshipName||"",relateEntityName:e.relateEntityName||""}))},getImportColumnInfoByEntity(e,t,r){if(!this.disableMappingRulesTab)return new Promise((t,i)=>{const a=this.getEntityName;let n={};n={entityName:this.currentSheetInfo&&this.currentSheetInfo.bindEntity||a,queryId:e,isUserQuery:this.isUserQuery,templateEntityName:a},rt.post("api/templateimport/GetImportColumnInfoByEntity",n).then(async e=>{e.columns.length?(0===this.mapRule.sheetSettings.length&&(this.mapRule.sheetSettings.push({sheetName:this.getDisplayName||e.sheetName,sheetIndex:"0",content:"",attrMappingRules:[],subTables:[],skippingRuleId:rt.newUUID(),isPrimaryCollapsed:!1}),this.currentSheetInfo=this.mapRule.sheetSettings[0]),this.currentSheetInfo.attrMappingRules=this.matchArrays(e.columns,this.currentEntityAttrs||[]),this.currentSheetInfo&&this.currentSheetInfo.bindEntity||1!==this.mapRule.sheetSettings.length||(this.currentSheetInfo.bindEntity=a)):r||await this.getNoDefaultViewColumn(a,e.sheetName),rt.hideLoadingToast(),t()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e),i(e)})})},async getNoDefaultViewColumn(e,t){await this.getMapRuleForNewAdd(!0),await this.getMetaAttribute(e),0===this.mapRule.sheetSettings.length?(this.mapRule.sheetSettings.push({sheetName:this.getDisplayName||t,sheetIndex:"0",content:"",attrMappingRules:[],subTables:[],skippingRuleId:rt.newUUID()}),this.currentSheetInfo=this.mapRule.sheetSettings[0],this.currentSheetInfo.attrMappingRules=[]):this.currentSheetInfo=this.mapRule.sheetSettings[0],this.currentSheetInfo.bindEntity=e,this.canInitTable=!0,this.getOptionEnumList()},refreshTableData(){this.$nextTick(()=>{this.$refs.mappingRulesTable&&this.$refs.mappingRulesTable.$refs&&this.$refs.mappingRulesTable.$refs.rtTable&&this.$refs.mappingRulesTable.$refs.rtTable.loadData()})},setAddSheetName(){const e=this.mapRule.sheetSettings.map(e=>e.sheetName);let t="sheet(1)",r=1,i=t;if(!e.includes("sheet(1)")){let r=0;e.forEach(e=>{const t=e.match(/sheet\((\d+)\)/);t&&(r=Math.max(r,parseInt(t[1])))}),t=`sheet(${r+1})`,i=t}e.forEach(e=>{const t=e.match(/sheet\((\d+)\)/);t&&(r=Math.max(r,parseInt(t[1])+1))}),e.includes(t)&&(i=`sheet(${r})`),this.sheetName=i},handleTabsEdit(e,t){if("add"===t){const e=this.mapRule.sheetSettings&&this.mapRule.sheetSettings[0]?this.getFirstSubTablesSnapshot():[];this.mapRule&&this.mapRule.sameAllSheet&&(this.syncLock=!0,this.destroySameAllSheetWatchers()),this.commitCurrentSheetSnapshot(),this.setAddSheetName();let t=this.mapRule.sheetSettings.length;if(this.mapRule.sheetSettings.push({sheetName:this.sheetName||"sheet(1)",sheetIndex:t+"",content:"",attrMappingRules:[],width:30,subTables:[],skippingRuleId:rt.newUUID()}),this.mapRule.sameAllSheet&&this.mapRule.sheetSettings[0]&&this.mapRule.sheetSettings[0].bindEntity){const r=this.mapRule.sheetSettings[0],i=this.mapRule.sheetSettings[t];i.bindEntity=r.bindEntity;const a=this.getFirstMasterRulesSnapshot();i.attrMappingRules=this.deepCloneMappingRules(a);const n=this.getFirstSubTablesSnapshot();i.subTables=n.map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],attrMappingRules:this.deepCloneMappingRules(e.attrMappingRules),width:e.width||30,isCollapsed:!1,requireOnly:!!e.requireOnly,searchValue:"",tableSearchValue:""})),i.childEntities=(i.subTables||[]).filter(e=>e&&e.bindEntity&&Array.isArray(e.attrMappingRules)).map(e=>({relationshipName:e.childRelationshipName||"",bindEntity:e.bindEntity,attrMappingRules:e.attrMappingRules.map(e=>({width:e.width||30,remarks:e.remarks||"",required:!!e.required,attrLogical:e.attrLogical||"",mappingRule:{...e.mappingRule||{},duplicateConfigs:e.mappingRule&&e.mappingRule.duplicateConfigs||[]},attrTypeName:e.attrTypeName||null,excelColumnName:e.excelColumnName||"",relateEntityName:e.relateEntityName||"",relationshipName:e.relationshipName||""}))}));const o=e.map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],childRelationshipName:e.childRelationshipName||"",childReferencingAttributeLogicalName:e.childReferencingAttributeLogicalName||"",attrMappingRules:this.deepCloneMappingRules(e.attrMappingRules),width:e.width||30,isCollapsed:!1,requireOnly:!!e.requireOnly,searchValue:"",tableSearchValue:""}));this.$set(this.mapRule.sheetSettings[0],"subTables",o)}this.activeName=t+"",this.sheetClick(this.mapRule.sheetSettings[t],t,!0),this.mapRule&&this.mapRule.sameAllSheet&&(this.syncLock=!1,this.initSameAllSheetWatchers())}else if("remove"===t){const t=this.activeName;if(this.mapRule.sheetSettings.length<=1)return void rt.showErrorToast(this.$_t("ImportTemplate.atLeastOneSheet","至少保留一个sheet"));let r=Math.max(0,t-1);this.mapRule.sheetSettings.splice(e,1),this.activeName=r+"",this.sheetClick(this.mapRule.sheetSettings[this.activeName],e,!0)}},addSubTable(){if(this.disableMappingRulesTab)return void rt.showErrorToast(this.$_t("ImportTemplate.tabDisabled","已发布模板不可修改映射规则"));if(!this.isNewAddImport&&!this.isFormExcelImport)return void rt.showErrorToast(this.$_t("ImportTemplate.cannotAddSheet","当前状态不可添加子表"));const e=this.currentSheetInfo;e&&(e.subTables||this.$set(e,"subTables",[]),e.subTables.length>=5?rt.showErrorToast(this.$_t("ImportTemplate.subTablesMaxLimit","最多添加五个子实体")):(e.subTables.push({skippingRuleId:rt.newUUID(),bindEntity:"",entitySelectKey:rt.newUUID(),currentEntityAttrs:[],attrMappingRules:[],width:30,isCollapsed:!1,requireOnly:!1,searchValue:"",tableSearchValue:""}),this.$set(e,"subTables",e.subTables.slice())))},toggleSubCollapsed(e){const t=this.currentSheetInfo;if(!t||!t.subTables||!t.subTables[e])return;const r=t.subTables[e];this.$set(r,"isCollapsed",!r.isCollapsed)},handleSubTableSearch(e,t){e.tableSearchValue=e.searchValue||"",this.$nextTick(()=>{const e=this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t];e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})},bindSubTableEntityCallback(e,t,r){const i=t&&t.logicalname,a=t&&t.currentOption,n=e.bindEntity;if(!i)return e.bindEntity="",e.currentEntityAttrs=[],this.$set(e,"childRelationshipName",""),this.$set(e,"childReferencingAttributeLogicalName",""),void this.subSheetDeal(e,r,{resetRules:!0});if(n===i){const r=e.childRelationshipName||"",i=e.childReferencingAttributeLogicalName||"",n=a&&a.RelationshipName||"",o=a&&a.ReferencingAttributeLogicalName||"";return n&&n!==r||o&&o!==i?(rt.showErrorToast(this.$_t("ImportTemplate.childEntityBound","{0}子实体已绑定过",{0:t.displayname})),void this.$set(e,"entitySelectKey",rt.newUUID())):void 0}const o=this.currentSheetInfo;let s=!1;if(o&&Array.isArray(o.subTables)&&(s=new Set(o.subTables.map((e,t)=>t!==r?e.bindEntity:null).filter(e=>!!e)).has(i)),s)return rt.showErrorToast(this.$_t("ImportTemplate.childEntityBound","{0}子实体已绑定过",{0:t.displayname})),void this.$set(e,"entitySelectKey",rt.newUUID());rt.showLoadingToast(),e.bindEntity=i,this.$set(e,"childRelationshipName",a&&a.RelationshipName||""),this.$set(e,"childReferencingAttributeLogicalName",a&&a.ReferencingAttributeLogicalName||"");const l="api/templateimport/GetAttrsAndShipsByEntityName?entityName="+i;this.getMetaAttributeData(l).then(t=>{var a;e.currentEntityAttrs=(null==t||null===(a=t.attributes)||void 0===a?void 0:a.map(e=>({Value:e.LogicalName,Text:e.DisplayName,TextExt:e.DisplayName+"--"+e.LogicalName,RequiredLevel:e.RequiredLevel,AttributeType:e.AttributeType,ReferencedEntityLogicalName:e.ReferencedEntityLogicalName})))||[];const o=this.subEntitiesOptions.filter(t=>t.LogicalName===e.bindEntity).map(e=>e.ReferencingAttributeLogicalName).filter(e=>!!e);o.length&&(e.currentEntityAttrs=e.currentEntityAttrs.filter(e=>!o.includes(e.Value)));const s=!!n&&n!==i;this.isNewAddImport&&!this.disableMappingRulesTab?this.getImportColumnInfoBySubEntity(e,r).then(()=>{rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)}):(this.subSheetDeal(e,r,{resetRules:s}),rt.hideLoadingToast())}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},getImportColumnInfoBySubEntity(e,t){return this.disableMappingRulesTab||this.mapRule&&this.mapRule.sameAllSheet&&"0"!=this.activeName?Promise.resolve():new Promise((r,i)=>{const a=this.getEntityName,n={entityName:e.bindEntity||a,queryId:null,isUserQuery:this.isUserQuery,templateEntityName:a};rt.post("api/templateimport/GetImportColumnInfoByEntity",n).then(i=>{const a=this.subEntitiesOptions.find(t=>t.LogicalName===e.bindEntity),n=a&&a.ReferencingAttributeLogicalName||a&&a.RelationshipName||"",o=Array.isArray(i.columns)?i.columns.filter(e=>!n||e.name!==n):[];o.length?(e.attrMappingRules=this.matchArrays(o,e.currentEntityAttrs||[]),this.$nextTick(()=>{const r=this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t];r&&((e.attrMappingRules||[]).forEach(e=>{r.attrLogicalChange(e,"canExec")}),r.$refs&&r.$refs.rtTable&&r.$refs.rtTable.loadData())})):(e.attrMappingRules=[],this.$nextTick(()=>{const e=this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t];e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})),r()}).catch(e=>{rt.showErrorToast(e),i(e)})})},subSheetDeal(e,t,r={}){if(this.skipmapping)return;if(this.mapRule&&this.mapRule.sameAllSheet&&"0"!=this.activeName)return;const i=e.attrMappingRules||[],a=e.currentEntityAttrs||[],n=r&&r.resetRules;if(a.length>0){if(n||!i.length){const t=this.columnOptions&&this.columnOptions.length?this.columnOptions.map(e=>e.Text):this.currentSheetInfo&&this.currentSheetInfo.attrMappingRules?this.currentSheetInfo.attrMappingRules.map(e=>e.excelColumnName).filter(e=>!!e):[];e.attrMappingRules=t.map(e=>({excelColumnName:e,attrLogical:"",name:"",required:!1,width:30,skippingRuleId:rt.newUUID(),remarks:"",mappingRule:{},relationshipName:"",relateEntityName:""}))}e.attrMappingRules.length&&e.attrMappingRules.forEach(e=>{const r=a.filter(t=>t.Text==e.excelColumnName);1==r.length?(e.attrLogical=r[0].Value,e.mappingRule||(e.mappingRule={}),e.mappingRule.referencedEntity=r[0].ReferencedEntityLogicalName,this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t]&&this.$refs.subMappingRulesTables[t].attrLogicalChange(e,"canExec")):(e.attrLogical="",e.mappingRule&&(e.mappingRule.referencedEntity=""),this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t]&&this.$refs.subMappingRulesTables[t].attrLogicalChange(e,"canExec"))})}else n?e.attrMappingRules=[]:e.attrMappingRules.forEach(e=>{e.attrLogical="",e.mappingRule||(e.mappingRule={}),e.mappingRule.referencedEntity="",this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t]&&this.$refs.subMappingRulesTables[t].attrLogicalChange(e,"canExec")});this.$nextTick(()=>{const e=this.$refs.subMappingRulesTables&&this.$refs.subMappingRulesTables[t];e&&"function"==typeof e.getExcelColumnNameForNewMode&&e.getExcelColumnNameForNewMode(),e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})},removeSubTable(e){const t=this.currentSheetInfo;t&&t.subTables&&t.subTables.splice(e,1)},getSubCurrentOptions(e){const t=[];return e.currentEntityAttrs&&e.currentEntityAttrs.length&&t.push({Value:1,Text:this.$_t("ImportTemplate.addNewField","添加字段"),TextExt:this.$_t("ImportTemplate.addNewField","添加字段"),options:e.currentEntityAttrs}),t},async show(e,t,r=!1){this.editForm.importtemplateid=e,this.mountedEntity=t,this.mountedEntity&&this.loadEntitiesOptions(),e&&!this.skipmapping&&(this.isNextTick=r,this.isNewAddImport&&(r?this.getMetaAttribute(this.mountedEntity).then(async e=>{await this.getImportColumnInfoByEntity(this.getCurrentQueryId),this.getOptionEnumList(),this.getMapRuleForNewAdd(),this.canInitTable=!0,this.isNextTick&&(this.pendingAutoSave=!0)}):(await this.getImportColumnInfoByEntity(this.getCurrentQueryId),this.startMapping())),this.checkHasFile().then(e=>{this.hasUpload=e.TotalRecordCount>0,this.hasUpload&&this.startMapping();const t=this.mountedEntity+"-note--afterupload";this.$PlatUtils.listenerHook(this,t,()=>{this.startMapping()})}))},async getMapRuleForNewAdd(e=!1){await rt.get("api/templateimport/GetTemplateMapRule?importTemplateId="+this.editForm.importtemplateid).then(t=>{e&&(this.mapRule=t),this.mapRule.catchErrorConfig=t.catchErrorConfig,this.mapRule.duplicateRecordConfig=t.duplicateRecordConfig;const r=Array.isArray(t.sheetSettings)?t.sheetSettings:[];if(Array.isArray(this.mapRule.sheetSettings)&&this.mapRule.sheetSettings.length){const e=e=>e.sheetName||e.sheetIndex+"",t={};r.forEach(r=>{t[e(r)]=r}),this.mapRule.sheetSettings.forEach((r,i)=>{const a=t[e(r)],n=a&&a.childEntities;if(Array.isArray(n)&&n.length){const e=n.filter(e=>e&&e.bindEntity).map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity,attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules:[],isCollapsed:!1,requireOnly:!1,searchValue:"",tableSearchValue:"",currentEntityAttrs:[]}));this.$set(this.mapRule.sheetSettings[i],"subTables",e)}})}else r.length&&(this.mapRule.sheetSettings=r,this.mapRule.sheetSettings.forEach((e,t)=>{const r=e&&e.childEntities;if(Array.isArray(r)&&r.length){const e=r.filter(e=>e&&e.bindEntity).map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity,attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules:[],isCollapsed:!1,requireOnly:!1,searchValue:"",tableSearchValue:"",currentEntityAttrs:[]}));this.$set(this.mapRule.sheetSettings[t],"subTables",e)}}))}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},startMapping(e=!1){if(this.hasUpload=!0,this.getOptionEnumList(),this.isNewAddImport)this.$nextTick(()=>{this.getMapRule(e)});else{if(!this.editForm.importtemplateid)return;this.getImportFileSheet().then(()=>{this.$nextTick(()=>{this.getMapRule(e)})}).catch(e=>{rt.showErrorToast(e)})}},checkHasFile(){var e=`api/attachment/query?moduleType=${this.mountedEntity}&objectId=${this.editForm.importtemplateid}¬ekey=&paged=false&pageSize=5&pageIndex=1`;return rt.get(e)},GetEntitiesUrl(){return"api/templateimport/GetEntities?entityName="+this.mountedEntity},loadEntitiesOptions(){const e=this.GetEntitiesUrl();return rt.get(e).then(e=>{this.mainEntitiesOptions=Array.isArray(e)?e:[]}).catch(e=>{rt.showErrorToast(e)})},getOptionEnumList(){rt.get("api/templateimport/GetOptionEnumList").then(e=>{this.duplicateRecordConfigOptions=e.duplicateRecordConfigOptions,this.catchErrorConfigOptions=e.catchErrorConfigOptions,this.duplicateConfigType=e.duplicateConfigType,this.customerOptions=e.customerOptions,this.optionTypeOptions=e.optionTypeOptions}).catch(e=>{rt.showErrorToast(e)})},getImportFileSheet(){return new Promise((e,t)=>{rt.get("api/templateimport/GetImportFileSheet?importTemplateId="+this.editForm.importtemplateid).then(t=>{this.sheetInfo=t,e()}).catch(e=>{rt.showErrorToast(e),t(e)})})},getMapRule(e=!1){return new Promise((t,r)=>{rt.get("api/templateimport/GetTemplateMapRule?importTemplateId="+this.editForm.importtemplateid).then(t=>{if(this.mapRule=t,this.mapRule&&this.mapRule.sameAllSheet?this.initSameAllSheetWatchers():this.destroySameAllSheetWatchers(),Array.isArray(this.mapRule.sheetSettings)&&this.mapRule.sheetSettings.forEach((e,t)=>{Object.prototype.hasOwnProperty.call(e,"isPrimaryCollapsed")||this.$set(this.mapRule.sheetSettings[t],"isPrimaryCollapsed",!1)}),this.mapRule.sheetSettings&&this.mapRule.sheetSettings.length>0){let t=this.mapRule.sheetSettings[0];this.sheetClick(t,0,!0);let r=t.bindEntity;1==this.mapRule.sheetSettings.length&&this.isFormExcelImport&&(r=this.mountedEntity),this.getMetaAttribute(r).then(t=>{this.mapRule&&this.mapRule.hasRule&&!e||this.sheetDeal(),(this.isNewAddImport||this.isFormExcelImport)&&1==this.mapRule.sheetSettings.length&&(this.currentSheetInfo.bindEntity=this.mountedEntity),this.canInitTable=!0,rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e.message)})}}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})})},sheetDeal(){if(this.skipmapping)return;let e=this.currentSheetInfo;this.currentEntityAttrs.length>0?e.attrMappingRules.length&&this.currentEntityAttrs.length&&e.attrMappingRules.forEach(e=>{const t=this.currentEntityAttrs.filter(t=>t.Text==e.excelColumnName);1==t.length?(e.attrLogical=t[0].Value,e.mappingRule.referencedEntity=t[0].ReferencedEntityLogicalName,this.attrLogicalChange(e,"canExec")):(e.attrLogical="",e.mappingRule&&(e.mappingRule.referencedEntity=""),this.attrLogicalChange(e,"canExec"))}):e.attrMappingRules.forEach(e=>{e.attrLogical="",e.mappingRule.referencedEntity="",this.attrLogicalChange(e,"canExec")})},attrLogicalChange(e,t){this.$refs.mappingRulesTable&&this.$refs.mappingRulesTable.attrLogicalChange(e,t)},bindEntityCallback(e){rt.showLoadingToast(),this.currentSheetInfo&&!this.mapRule.sameAllSheet&&(this.$set(this.currentSheetInfo,"subTables",[]),this.$set(this.currentSheetInfo,"childEntities",[]),this.$nextTick(()=>{this.$refs.subMappingRulesTables&&Array.isArray(this.$refs.subMappingRulesTables)&&this.$refs.subMappingRulesTables.forEach(e=>{e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})})),this.mapRule&&!this.mapRule.sameAllSheet&&this.decoupleSheetsRules(),this.getMetaAttribute(e&&e.logicalname).then(t=>{if(this.isNewAddImport&&this.mapRule&&this.mapRule.sameAllSheet&&"0"!=this.activeName&&e&&e.logicalname&&this.mapRule.sheetSettings&&this.mapRule.sheetSettings[0]&&this.mapRule.sheetSettings[0].bindEntity===e.logicalname){this.currentSheetInfo.bindEntity=e.logicalname;const t=this.mapRule.sheetSettings[0]&&this.mapRule.sheetSettings[0].attrMappingRules||[];this.currentSheetInfo.attrMappingRules=t.map(e=>({...e,skippingRuleId:rt.newUUID()}));const r=this.mapRule.sheetSettings[0]&&this.mapRule.sheetSettings[0].subTables||[];Array.isArray(this.currentSheetInfo.subTables)||this.$set(this.currentSheetInfo,"subTables",[]),this.currentSheetInfo.subTables=r.map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules.map(e=>({...e,skippingRuleId:rt.newUUID(),mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}})):[],width:e.width||30,isCollapsed:!1,requireOnly:!!e.requireOnly,searchValue:"",tableSearchValue:""})),this.currentSheetInfo.childEntities=(this.currentSheetInfo.subTables||[]).filter(e=>e&&e.bindEntity&&Array.isArray(e.attrMappingRules)).map(e=>({relationshipName:e.childRelationshipName||"",bindEntity:e.bindEntity,attrMappingRules:e.attrMappingRules.map(e=>({width:e.width||30,remarks:e.remarks||"",required:!!e.required,attrLogical:e.attrLogical||"",mappingRule:{...e.mappingRule||{},duplicateConfigs:e.mappingRule&&e.mappingRule.duplicateConfigs||[]},attrTypeName:e.attrTypeName||null,excelColumnName:e.excelColumnName||"",relateEntityName:e.relateEntityName||"",relationshipName:e.relationshipName||""}))})),this.sheetDeal();const i=setTimeout(()=>{this.refreshTableData(),clearTimeout(i)},300);return this.$nextTick(()=>{this.$refs.subMappingRulesTables&&Array.isArray(this.$refs.subMappingRulesTables)&&this.$refs.subMappingRulesTables.forEach(e=>{e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})}),this.currentSheetInfo&&(Object.prototype.hasOwnProperty.call(this.currentSheetInfo,"isPrimaryCollapsed")?this.currentSheetInfo.isPrimaryCollapsed=!1:this.$set(this.currentSheetInfo,"isPrimaryCollapsed",!1)),void rt.hideLoadingToast()}this.isNewAddImport?this.getImportColumnInfoByEntity(null,e.logicalname,"isBindEntity").then(()=>{this.sheetDeal();const e=setTimeout(()=>{this.refreshTableData(),clearTimeout(e)},300);this.currentSheetInfo&&(Object.prototype.hasOwnProperty.call(this.currentSheetInfo,"isPrimaryCollapsed")?this.currentSheetInfo.isPrimaryCollapsed=!1:this.$set(this.currentSheetInfo,"isPrimaryCollapsed",!1))}):(this.sheetDeal(),this.currentSheetInfo&&(Object.prototype.hasOwnProperty.call(this.currentSheetInfo,"isPrimaryCollapsed")?this.currentSheetInfo.isPrimaryCollapsed=!1:this.$set(this.currentSheetInfo,"isPrimaryCollapsed",!1))),rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},decoupleSheetsRules(){if(this.mapRule&&Array.isArray(this.mapRule.sheetSettings))for(let e=0;e({...e,mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}})):[];this.$set(this.mapRule.sheetSettings[e],"attrMappingRules",r);const i=Array.isArray(t.subTables)?t.subTables.map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],childRelationshipName:e.childRelationshipName||"",childReferencingAttributeLogicalName:e.childReferencingAttributeLogicalName||"",attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules.map(e=>({...e,mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}})):[],width:e.width||30,isCollapsed:!!e.isCollapsed,requireOnly:!!e.requireOnly,searchValue:e.searchValue||"",tableSearchValue:e.tableSearchValue||""})):[];this.$set(this.mapRule.sheetSettings[e],"subTables",i)}},handleTabClick(e){e.$parent.value!=this.activeName&&(this.sheetClick(this.mapRule.sheetSettings[this.activeName],this.activeName,!1),this.$nextTick(()=>{this.commitCurrentSheetSnapshot(),this.handleSheetNameBlur()}))},commitCurrentSheetSnapshot(){const e=this.activeName,t=this.mapRule.sheetSettings&&this.mapRule.sheetSettings[e];if(t&&this.$refs.mappingRulesTable&&this.$refs.mappingRulesTable.$refs&&this.$refs.mappingRulesTable.$refs.rtTable&&Array.isArray(this.$refs.mappingRulesTable.$refs.rtTable.dataList)&&this.$refs.mappingRulesTable.$refs.rtTable.dataList.length>0){const e=this.$refs.mappingRulesTable.$refs.rtTable.dataList;t.attrMappingRules=e.map(e=>({...e,mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}}))}},async sheetClick(e,t,r){var i;if(this.mapRule.sameAllSheet&&!r)return;this.canInitTable=!1,this.currentIndex=t,this.currentSheetInfo=e;const a=null===(i=this.sheetInfo)||void 0===i?void 0:i.filter(t=>t.sheetName==e.sheetName);let n=[];if(a&&a.length>0&&a[0].columns.length>0&&a[0].columns.map(e=>{n.push({Value:e.index,Text:e.name})}),this.columnOptions=n,await this.getMetaAttribute(this.currentSheetInfo&&this.currentSheetInfo.bindEntity),this.canInitTable=!0,this.mapRule&&this.mapRule.sameAllSheet&&"0"!=t&&this.mapRule.sheetSettings&&this.mapRule.sheetSettings[0]&&this.currentSheetInfo&&this.currentSheetInfo.bindEntity===this.mapRule.sheetSettings[0].bindEntity){const e=this.mapRule.sheetSettings[0],t=Array.isArray(e.attrMappingRules)?e.attrMappingRules:[];this.currentSheetInfo.attrMappingRules=t.map(e=>({...e,skippingRuleId:rt.newUUID()}));const r=Array.isArray(e.subTables)?e.subTables:[];this.currentSheetInfo.subTables=r.map(e=>({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules.map(e=>({...e,skippingRuleId:rt.newUUID(),mappingRule:{...e.mappingRule||{},duplicateConfigs:Array.isArray(e.mappingRule&&e.mappingRule.duplicateConfigs)?e.mappingRule.duplicateConfigs.map(e=>({...e})):[]}})):[],width:e.width||30,isCollapsed:!1,requireOnly:!!e.requireOnly,searchValue:"",tableSearchValue:""})),this.currentSheetInfo.childEntities=(this.currentSheetInfo.subTables||[]).filter(e=>e&&e.bindEntity&&Array.isArray(e.attrMappingRules)).map(e=>({relationshipName:e.childRelationshipName||"",bindEntity:e.bindEntity,attrMappingRules:e.attrMappingRules.map(e=>({width:e.width||30,remarks:e.remarks||"",required:!!e.required,attrLogical:e.attrLogical||"",mappingRule:{...e.mappingRule||{},duplicateConfigs:e.mappingRule&&e.mappingRule.duplicateConfigs||[]},attrTypeName:e.attrTypeName||null,excelColumnName:e.excelColumnName||"",relateEntityName:e.relateEntityName||"",relationshipName:e.relationshipName||""}))})),this.$nextTick(()=>{this.$refs.mappingRulesTable&&this.$refs.mappingRulesTable.$refs&&this.$refs.mappingRulesTable.$refs.rtTable&&this.$refs.mappingRulesTable.$refs.rtTable.loadData(),this.$refs.subMappingRulesTables&&Array.isArray(this.$refs.subMappingRulesTables)&&this.$refs.subMappingRulesTables.forEach(e=>{e&&e.$refs&&e.$refs.rtTable&&e.$refs.rtTable.loadData()})})}this.ensureSubTablesFromChildEntities(this.currentSheetInfo),this.$nextTick(()=>{if(this.showSameAllSheet&&0==this.activeName){const e=document.querySelector(".mapping-rules-extraContent");document.querySelector(".rt-tabs")&&(document.querySelector(".rt-tabs").style.width=`calc(100% - ${e&&e.offsetWidth+24}px)`)}else document.querySelector(".rt-tabs")&&(document.querySelector(".rt-tabs").style.width="100%")})},ensureSubTablesFromChildEntities(e){if(!e)return Promise.resolve();const t=e.childEntities;if((!e.subTables||0===e.subTables.length)&&Array.isArray(t)&&t.length){const r=t.filter(e=>e&&e.bindEntity).map(e=>{var t;return{skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity,childRelationshipName:e.relationshipName||"",childReferencingAttributeLogicalName:(null===(t=this.subEntitiesOptions.find(t=>t.LogicalName===e.bindEntity&&(t.RelationshipName===e.relationshipName||t.ReferencingAttributeLogicalName===e.relationshipName)))||void 0===t?void 0:t.ReferencingAttributeLogicalName)||"",attrMappingRules:Array.isArray(e.attrMappingRules)?e.attrMappingRules:[],isCollapsed:!1,requireOnly:!1,searchValue:"",tableSearchValue:"",currentEntityAttrs:[]}});this.$set(e,"subTables",r)}if(Array.isArray(e.subTables)&&e.subTables.length){const t=e.subTables.map(async(t,r)=>{if(t&&t.bindEntity&&(!Array.isArray(t.currentEntityAttrs)||0===t.currentEntityAttrs.length)){const i=await this.fetchSubEntityAttrs(t.bindEntity);this.$set(e.subTables[r],"currentEntityAttrs",i)}});return Promise.all(t)}return Promise.resolve()},fetchSubEntityAttrs(e){const t="api/templateimport/GetAttrsAndShipsByEntityName?entityName="+e;return this.getMetaAttributeData(t).then(t=>{var r;const i=(null==t||null===(r=t.attributes)||void 0===r?void 0:r.map(e=>({Value:e.LogicalName,Text:e.DisplayName,TextExt:e.DisplayName+"--"+e.LogicalName,RequiredLevel:e.RequiredLevel,AttributeType:e.AttributeType,ReferencedEntityLogicalName:e.ReferencedEntityLogicalName})))||[],a=this.subEntitiesOptions.filter(t=>t.LogicalName===e).map(e=>e.ReferencingAttributeLogicalName).filter(e=>!!e);return a.length?i.filter(e=>!a.includes(e.Value)):i}).catch(()=>[])},getMetaAttribute(e){if(this.currentEntityAttrs=[],e){let t="api/templateimport/GetAttrsAndShipsByEntityName?entityName="+e;return new Promise((e,r)=>this.fetchMetaAttributeData(t,e,r))}return new Promise(e=>{this.sheetDeal(),e()})},fetchMetaAttributeData(e,t,r){return this.getMetaAttributeData(e).then(e=>{var r,i;this.currentEntityAttrs=(null==e||null===(r=e.attributes)||void 0===r?void 0:r.map(e=>({Value:e.LogicalName,Text:e.DisplayName,TextExt:e.DisplayName+"--"+e.LogicalName,RequiredLevel:e.RequiredLevel,AttributeType:e.AttributeType,ReferencedEntityLogicalName:e.ReferencedEntityLogicalName})))||[],this.currentManyToMany=(null==e||null===(i=e.manyToManyModels)||void 0===i?void 0:i.map(e=>({Value:e.relationshipName,Text:e.entity1DisplayName,TextExt:e.entity1DisplayName+"--"+e.entity1Name,entity1Name:e.entity1Name})))||[];const a=[];this.currentEntityAttrs.length&&a.push({Value:1,Text:this.$_t("ImportTemplate.addNewField","添加字段"),TextExt:this.$_t("ImportTemplate.addNewField","添加字段"),options:this.currentEntityAttrs}),this.currentManyToMany.length&&a.push({Value:2,Text:this.$_t("ImportTemplate.addNewManyToMany","N:N关系"),TextExt:this.$_t("ImportTemplate.addNewManyToMany","N:N关系"),options:this.currentManyToMany}),this.currentOptions=a,t()}).catch(e=>{rt.showErrorToast(e),r(e)})},saveImportTemplate(e){return new Promise((t,r)=>{if(this.isFormExcelImport&&this.importTemplateEditForm.skipmapping)return void t();const i=Array.isArray(this.mapRule.sheetSettings)?this.mapRule.sheetSettings:[],a=this.mountedEntity||this.getEntityName;if((this.isNewAddImport||this.isFormExcelImport)&&1===i.length){const e=i[0];a&&e&&!e.bindEntity&&this.$set(e,"bindEntity",a),this.currentSheetInfo&&!this.currentSheetInfo.bindEntity&&this.$set(this.currentSheetInfo,"bindEntity",a)}const n=i[Number(this.activeName)];a&&n&&!n.bindEntity&&this.$set(n,"bindEntity",a),a&&this.currentSheetInfo&&!this.currentSheetInfo.bindEntity&&this.$set(this.currentSheetInfo,"bindEntity",a),this.$refs.mappingRulesForm?this.$refs.mappingRulesForm.validate(i=>{if(!i){const e=Number(this.activeName),t=Array.isArray(this.mapRule.sheetSettings)&&this.mapRule.sheetSettings[e]?[this.mapRule.sheetSettings[e]]:[],i=this.isNextTick?t:this.mapRule.sheetSettings,a=Array.isArray(i)?i.filter(e=>e&&!e.bindEntity).map(e=>e.sheetName):[];return rt.showErrorToast(a.join("、")+this.$_t("ImportTemplate.SheetBindEntityRequired","未绑定实体,请检查")),r()}{this.mapRule&&this.mapRule.sameAllSheet&&(this.commitCurrentSheetSnapshot(),this.syncAllSheetsFromFirst());const i=this.checkDuplicate();if(i){const e=this.$_t("ImportTemplate.NodeSeparator","、"),t=[];if(i.duplicateExcelColumns&&i.duplicateExcelColumns.length){const r=this.mapRule.sheetSettings[i.sheetIndex],a=r&&r.bindEntity,n=this.mainEntitiesOptions.find(e=>e.LogicalName===a),o=n&&n.Label_EntityName||a,s=i.duplicateExcelColumns.join(e);t.push(this.$_t("ImportTemplate.duplicateFieldInSheetError",`【${o}】 中实体字段重复,重复的Excel列:${s}`,[o,s]))}return Array.isArray(i.subDuplicates)&&i.subDuplicates.length&&i.subDuplicates.forEach(r=>{const i=r.bindEntity,a=this.mainEntitiesOptions.find(e=>e.LogicalName===i||e.logicalname===i),n=a&&a.Label_EntityName||i||this.$_t("platform.childrenEntity","子实体"),o=r.duplicateExcelColumns.join(e);t.push(this.$_t("ImportTemplate.duplicateFieldInSheetError",`【${n}】 中实体字段重复,重复的Excel列:${o}`,[n,o]))}),rt.showErrorToast(t.join("\n")),r()}this.saveImportAndPublish(e,t,r)}}):this.saveImportAndPublish(e,t,r)})},syncAllSheetsFromFirst(){if(!this.mapRule||!this.mapRule.sameAllSheet)return;if(this.syncLock)return;const e=Array.isArray(this.mapRule.sheetSettings)?this.mapRule.sheetSettings:[];if(!e.length)return;const t=e[0],r=this.getFirstMasterRulesSnapshot(),i=this.getFirstSubTablesSnapshot();for(let a=1;a({skippingRuleId:rt.newUUID(),bindEntity:e.bindEntity||"",entitySelectKey:rt.newUUID(),currentEntityAttrs:Array.isArray(e.currentEntityAttrs)?e.currentEntityAttrs.slice():[],attrMappingRules:this.deepCloneMappingRules(e.attrMappingRules),width:e.width||30,isCollapsed:!1,requireOnly:!!e.requireOnly,searchValue:"",tableSearchValue:""}))))}},initSameAllSheetWatchers(){try{if(!this.mapRule||!Array.isArray(this.mapRule.sheetSettings))return;if(this._firstRulesUnwatch){try{this._firstRulesUnwatch()}catch(e){}this._firstRulesUnwatch=null}if(this._firstSubsUnwatch){try{this._firstSubsUnwatch()}catch(e){}this._firstSubsUnwatch=null}const t=this.mapRule.sheetSettings[0];if(!t)return;this._firstSubsUnwatch=this.$watch(()=>t.subTables,()=>{this.syncLock||this.mapRule&&this.mapRule.sameAllSheet&&this.syncAllSheetsFromFirst()},{deep:!0})}catch(e){}},destroySameAllSheetWatchers(){try{this._firstRulesUnwatch&&(this._firstRulesUnwatch(),this._firstRulesUnwatch=null),this._firstSubsUnwatch&&(this._firstSubsUnwatch(),this._firstSubsUnwatch=null)}catch(e){}},saveImportAndPublish(e,t,r){const i=JSON.parse(JSON.stringify(this.mapRule||{}));if(e){var a=i.sheetSettings.filter(e=>!rt.isNullOrWhiteSpace(e.bindEntity));if(this.isNewAddImport&&0==a.length)return rt.showErrorToast(this.$tx("请至少给一个sheet设置映射规则","TemplateImport.atleast")),r()}const n=Number(this.activeName);(Array.isArray(i.sheetSettings)?i.sheetSettings:[]).forEach((e,t)=>{const r=!(!this.mapRule||!this.mapRule.sameAllSheet),i=t===n;if((r||i)&&(e.attrMappingRules=(Array.isArray(e.attrMappingRules)?e.attrMappingRules:[]).filter(e=>null!=e.attrLogical&&""!==e.attrLogical||null!=e.attrTypeName&&""!==e.attrTypeName||null!=e.excelColumnName&&""!==e.excelColumnName)),Array.isArray(e.subTables)&&e.subTables.length){const t=[];for(const r of e.subTables){var a;if(!r||!r.bindEntity)continue;const e=r.childRelationshipName||r.childReferencingAttributeLogicalName||(null===(a=(this.mainEntitiesOptions||[]).find(e=>e.LogicalName===r.bindEntity))||void 0===a?void 0:a.RelationshipName)||"",i=(Array.isArray(r.attrMappingRules)?r.attrMappingRules:[]).filter(e=>null!=e.attrLogical&&""!==e.attrLogical||null!=e.attrTypeName&&""!==e.attrTypeName||null!=e.excelColumnName&&""!==e.excelColumnName).map(e=>({width:e.width||30,remarks:e.remarks||"",required:!!e.required,attrLogical:e.attrLogical||"",mappingRule:{...e.mappingRule||{},duplicateConfigs:e.mappingRule&&e.mappingRule.duplicateConfigs||[]},attrTypeName:e.attrTypeName||null,excelColumnName:e.excelColumnName||"",relateEntityName:e.relateEntityName||"",relationshipName:e.relationshipName||""}));e&&t.push({relationshipName:e,bindEntity:r.bindEntity,attrMappingRules:i})}r||i?t.length?e.childEntities=t:e.childEntities&&delete e.childEntities:t.length&&(e.childEntities=t)}else(r||i)&&e.childEntities&&delete e.childEntities}),rt.showLoadingToast(this.$_t("SUBMIT_LOADING","提交中..."));const o="api/templateimport/SaveMapRule?importTemplateId="+this.editForm.importtemplateid+"|payload="+encodeURIComponent(JSON.stringify(i));this.saveMapRuleMemoized(o).then(r=>{rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功")),this.hasSaved=!0,this.$bus.$emit("reloadFile"),e&&this.PublishImportTemplate(),t()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e),r(e)})},PublishImportTemplate(){rt.post("api/templateimport/Publish?importTemplateId="+this.editForm.importtemplateid).then(e=>{rt.showSuccessToast(this.$tx("发布成功","common.publishSucccess")),this.$bus.$emit("reloadForm"),this.activeName="0",this.disableMappingRulesTab=!0,this.sheetClick(this.mapRule.sheetSettings[0],0,!0)}).catch(e=>{rt.showErrorToast(e)})},handleDeleteAttrMappingRule(e){this.currentSheetInfo.attrMappingRules=[...this.currentSheetInfo.attrMappingRules.slice(0,e),...this.currentSheetInfo.attrMappingRules.slice(e+1)],this.refreshTableData()},_findDuplicateInRules(e){if(!Array.isArray(e))return null;const t=new Map;for(const r of e)if(r&&r.attrLogical){if(t.has(r.attrLogical)){const e=[...t.get(r.attrLogical),r.excelColumnName];return{attrLogical:r.attrLogical,duplicateExcelColumns:e}}t.set(r.attrLogical,[r.excelColumnName])}return null},checkDuplicate(){for(let e=0;e({isHovered:!1}),methods:{__deleteCondition(){this.$emit("input",this.conditionKey)}}},nc=Object(_.a)(ac,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("rc-icon",{staticClass:"plat-filter-clear-btn",attrs:{name:"rt-base-circle-minus-filled",size:e.SCSS_VARIABLES.FONT_SIZE_BASE,color:e.isHovered?e.SCSS_VARIABLES.COLOR_DANGER_HOVER:e.SCSS_VARIABLES.COLOR_I2},on:{click:e.__deleteCondition},nativeOn:{mouseover:function(t){e.isHovered=!0},mouseout:function(t){e.isHovered=!1}}})}),[],!1,null,null,null).exports,oc={props:{ispreview:!1,chartId:"",queryType:0,queryId:"",currentStatus:0,currentName:"",type:0,entityName:"",showEchart:"",echartConditon:{},currentType:null,refreshEchartKey:0,newNum:{type:String},queryList:{type:Array}},data:()=>({showDialog:!1,isAdd:!0}),computed:{titleLegend(){return(this.isAdd?this.$_t("platform.addChart","新增图表"):this.$_t("platform.editChart","编辑图表"))+`(${this.$_t("Preview_mode","预览模式仅展示近半年数据,保存后将展示全部数据")})`},showHelpCenter(){return this.$store.state.systemparameter.showHelpCenter?this.$store.state.systemparameter.showHelpCenter:"false"}},watch:{showDialog(e,t){0==e&&this.$emit("goBack")}},methods:{goToHelpDocument(){rt.get("/api/common/GetHelpDocumentMappings?knowledgeCode=document&bizOpts=aPaaS.Chart").then(e=>{e&&e.length&&e[0].docUrl?window.open(e[0].docUrl,"_blank"):rt.showErrorToast("未找到对应的帮助文档")}).catch(e=>{rt.showErrorToast(e)})},show(e){this.isAdd=e,this.showDialog=!0},save(){const e=this.$refs.echartDesinger.layoutItem.props.title;if(!e||rt.isNullOrWhiteSpace(e))return void rt.showErrorToast(this.$_t("platform.chartName","请输入图表名称"));if(rt.validateDisplayName){const t=rt.validateDisplayName(e,{name:this.$_t("echart.echartTitle","图表"),allowSpace:!0,allowSpecialChars:!0});if(!t.valid)return void rt.showErrorToast(t.message)}else if(this.getStringDisplayLength(e)>30){let e=this.$_t("echart.echartTitle","图表"),t=30,r=15;return void rt.showErrorToast(this.$_t("validateDisplayName.length",`${e}显示名称不能超过${t}个字符,中文${r}个字`,[e,t,r]))}let t={userdefinedchartid:this.chartId||"",primaryentityname:this.entityName,name:e};const r=this.queryList.find(e=>e.queryId===this.queryId);r&&(t.indicatrixQueryLogicalName=r.IsUserQuery?r.queryId:r.LogicalName),this.$refs.echartDesinger&&this.$refs.echartDesinger.saveUserDefinedChart(t).then(e=>{e&&this.$emit("save",e)})},getStringDisplayLength:e=>e.split("").reduce((e,t)=>e+(/[\u4e00-\u9fa5]/.test(t)?2:1),0),cancel(){this.showDialog=!1}}},sc=(r("9be8"),r("189b"),Object(_.a)(oc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat_echart",attrs:{size:"large"}},[r("rc-dialog",{staticClass:"plat_echart_dialog",attrs:{width:"80%","close-on-click-modal":!1},scopedSlots:e._u([{key:"title",fn:function(){return[r("div",{staticClass:"plat-chart-dialog-title"},[r("div",[e._v(" "+e._s(e.isAdd?e.$_t("platform.addChart","新增图表"):e.$_t("platform.editChart","编辑图表"))+" ")]),e.isAdd&&"true"==e.showHelpCenter?r("rc-button",{staticClass:"jump-to-help-document",attrs:{text:"",type:"plain"},on:{click:e.goToHelpDocument}},[e._v(e._s(e.$_t("platform.jumpToHelpDocument","查看帮助文档")))]):e._e(),r("div",{staticClass:"plat-chart-dialog-title-sub"},[e._v(" "+e._s(e.$_t("Preview_mode","预览模式仅展示近半年数据,保存后将展示全部数据"))+" ")])],1),r("div",{staticClass:"plat-chart-dialog-title-right"},[r("rt-icon",{staticClass:"icon-close",attrs:{name:"rt-base-close-x-lined"},on:{click:e.cancel}})],1)]},proxy:!0},{key:"footer",fn:function(){return[r("div",{staticClass:"rt-dialog-footer-buttons"},[r("rc-button",{on:{click:e.cancel}},[e._v(" "+e._s(e.$_t("BUTTON_CANCEL","取消"))+" ")]),r("rc-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v(e._s(e.$_t("BUTTON_SAVE","保存")))])],1)]},proxy:!0}]),model:{value:e.showDialog,callback:function(t){e.showDialog=t},expression:"showDialog"}},[e.showDialog?r("chart-add",{key:e.chartId,ref:"echartDesinger",attrs:{"current-type":e.currentType,ispreview:!0,"chart-id":e.chartId,"query-type":e.queryType,"metaquery-id":e.queryId,"current-status":e.currentStatus,"current-name":e.currentName,type:e.chartId?e.type:0,"entity-name":e.entityName,"is-can-deep":!1,"new-num":e.newNum,"vlist-echart-conditon":e.echartConditon,"just-window":!0}}):e._e()],1)],1)}),[],!1,null,"7e477608",null).exports),lc=r("e926"),dc={name:"EchartDrawer",components:{"echart-dialog":sc},inject:["getChangeIndex"],props:{echartConditon:{type:Array,default:()=>[]},queryId:String,entityName:String,currentViewType:Object,echartQueryOptions:Object,filterFormList:{type:Array,default:()=>[]},globalConditions:{type:String,default:""},queryList:{type:Array}},data(){return{showEchart:!1,queryType:0,metaqueryId:this.queryId,refreshEchartKey:0,currentStatus:0,currentName:"",chartId:"",goDeep:!1,chartType:1,echartList:{},showNameInput:!1,newChartName:"",type:0,notNeedShow:!1,showEditDialog:!0,isLarge:!1,imgUrl:rt.getPublicUrl()+"imgs/chart-empty.png",echartContainerHeight:"",echartContainerRight:0,echartContainerTop:0}},computed:{getEchartStyle(){return this.isLarge?{height:"100%"}:{height:this.echartContainerHeight+"px",right:this.echartContainerRight+"px",top:this.echartContainerTop+"px",bottom:"0"}},hasBoard(){return this.echartList.personal&&this.echartList.personal.length>0?"echart-system-hasBoard":""},largeSize(){return this.isLarge?"100%":"400px"},language:()=>localStorage.getItem("i18nLocaleid"),ispreview(){return 0!==this.currentStatus},echartQueryOptionsFilterechartSelf(){let e;this.filterFormList&&Array.isArray(this.filterFormList)&&this.filterFormList.length>0&&(e=this.filterFormList.map(e=>{let t=e.val;return lc.d.includes(e.op)&&!t&&(t=""),{name:e.name,val:t,op:e.op}}));let{AdditionalCondtions:t,Search:r}={...this.echartQueryOptions};return{AdditionalCondtions:t,Search:r,globalConditions:this.globalConditions,ExtendConditions:e?JSON.stringify(e):""}},chartAddProps(){return{ispreview:this.ispreview,chartId:this.chartId,queryType:this.queryType,metaqueryId:this.queryId,queryId:this.queryId,currentStatus:this.currentStatus,currentName:this.currentName,currentType:this.chartType,type:this.type,entityName:this.entityName,echartQueryOptions:this.echartQueryOptionsFilterechartSelf,isCanDeep:!0,newNum:this.showEchart?this.queryId:null,echartConditon:this.echartConditon,refreshEchartKey:this.refreshEchartKey,queryList:this.queryList}}},watch:{language:{handler(e){if(e){const t=localStorage.getItem("chartInfo");if(t){const r=JSON.parse(t);r.langid&&e!=r.langid&&localStorage.removeItem("chartInfo")}}},immediate:!0},echartConditon(e){(!e||Array.isArray(e)&&0==e.length)&&this.goDeepSeFalse()},showEchart(e){e&&(this.updateColumnHeight(),this.isLarge=!1),this.$bus.$emit("showEchart",e)},echartQueryOptions:{handler(e,t){e&&Object.values(e).some(e=>e)?(!e.ExtendConditions||e.ExtendConditions&&0==JSON.parse(e.ExtendConditions).length)&&(JSON.stringify(e.AdditionalCondtions)===JSON.stringify(t.AdditionalCondtions)&&JSON.stringify(e.Search)===JSON.stringify(t.Search)||(this.$emit("propCondition",[]),this.refreshEchartKey++)):(e.ExtendConditions||e.ExtendConditions&&0==JSON.parse(e.ExtendConditions).length)&&(this.$emit("propCondition",[]),this.refreshEchartKey++)}},queryId:{handler(e){let t=this.getChartInfo();if(t){if(0!=Object.values(t).length){const r=t.queryId;r&&e&&r!=e&&localStorage.removeItem("chartInfo")}}else this.refreshEchartKey++;this.initChartProps(),this.goDeepSeFalse()},immediate:!0},currentName:{handler(e){e&&(this.goDeepSeFalse(),this.$emit("changeChart",[]))}}},mounted(){this.$PlatUtils.eventListenerHook(this,"resize",this.updateColumnHeight,window),this.$PlatUtils.listenerHook(this,"closeChartDrawerColumn",this.toCloseDrawer);let e=0;this.$PlatUtils.listenerHook(this,"tableIsLoadComplete",t=>{const r=Date.now();var i;t&&r-e>500&&(e=r,null===(i=this.$refs.echartDesigner)||void 0===i||i.getChartDetail(),this.updateColumnHeight())})},methods:{updateColumnHeight(){const e=document.querySelector(".containerStyle"),t=e&&e.clientHeight,r=e&&e.scrollHeight,i=document.querySelector(".rt-header")&&document.querySelector(".rt-header").clientHeight;this.echartContainerRight=r-t>1?8:0,this.echartContainerHeight=t-i,this.echartContainerTop=i+48},toScale(){this.isLarge=!1,this.$nextTick(()=>{this.$refs.echartDesigner&&(this.toggleFunnel("small"),this.$refs.echartDesigner.$refs.echartControl.myChart.resize())})},toggleFunnel(e){if(this.$refs.echartDesigner&&this.$refs.echartDesigner.$refs.echartControl&&this.$refs.echartDesigner.$refs.echartControl.testJson&&"funnel"==this.$refs.echartDesigner.$refs.echartControl.testJson.type){const t=this.$refs.echartDesigner.$refs.echartControl.testJson.series;t&&t.length&&(t[0].maxSize="large"==e?"60%":"80%",this.$refs.echartDesigner.$refs.echartControl.myChart.setOption(this.$refs.echartDesigner.$refs.echartControl.testJson,!0))}},toLarge(){this.isLarge=!0,this.$nextTick(()=>{this.$refs.echartDesigner&&(this.toggleFunnel("large"),this.$refs.echartDesigner.$refs.echartControl.myChart.resize())})},filterClearBrand(){this.$refs.echartDesigner&&"indicator"!==this.$refs.echartDesigner.isIndicators&&this.$refs.echartDesigner.clearBrand()},save(e){this.getChartList().then(t=>{this.chartType=1,t.personal.forEach(t=>{t.chartId===e&&(this.chartId=e,this.currentName=t.chartName)})}).catch(e=>{}).finally(()=>{this.$refs.echartDialog&&this.$refs.echartDialog.cancel(),this.refreshEchartKey++})},openEchartDialog(e){this.showEditDialog=!1,this.$refs.echartDialog&&this.$refs.echartDialog.show(e)},goDeepSeFalse(){if(this.getChangeIndex&&"function"==typeof this.getChangeIndex){let e=this.getChangeIndex();if(Array.isArray(e)&&e.length>0)return void(this.goDeep=!0)}this.goDeep=!1},goBack(){this.$nextTick(()=>{this.showEditDialog=!0}),this.currentStatus=0,this.refreshEchartKey++,!this.chartId&&Object.keys(this.echartList).length>0&&this.initChartProps()},getChartInfo(){let e=localStorage.getItem("chartInfo");return!(!e||"undefined"===e)&&JSON.parse(e)},initChartProps(e){this.getChartList().then(t=>{e||(e=this.getChartInfo()),e?0!=Object.values(e).length&&(this.currentName=e.currentName,this.newChartName=e.newChartName,this.chartId=e.chartId,this.chartType=e.chartType,this.type=e.type):t.personal&&t.personal[0]?(this.currentName=t.personal[0].chartName,this.chartId=t.personal[0].chartId,this.chartType=1,this.type=t.personal[0].type):t.system&&t.system[0]?(this.currentName=t.system[0].chartName,this.chartId=t.system[0].chartId,this.chartType=0,this.type=t.system[0].type):(this.refreshEchartKey++,this.currentName="",this.chartId="",this.type="")}),this.currentViewType&&(this.currentViewType.isusermetaquery?this.queryType=1:this.currentViewType.IsUserQuery?this.queryType=2:this.queryType=0)},onConfirm(){this.goDeep=!0},toSaveEchart(){if(this.newChartName=this.$refs.echartDesigner.layoutItem.props.title,!this.newChartName||rt.isNullOrWhiteSpace(this.newChartName))return void rt.showErrorToast(this.$_t("platform.chartName","请输入图表名称"));if(this.newChartName.length>15&&"zh-CN"==localStorage.i18nLocale)return void rt.showErrorToast(this.$_t("platform.chartNameNotExceed","图表名称不超过十五个字"));if(this.newChartName.length>30&&"en-US"==localStorage.i18nLocale)return void rt.showErrorToast(this.$_t("platform.chartNameNotExceed","图表名称不超过十五个字"));let e={userdefinedchartid:this.chartId||"",primaryentityname:this.entityName,name:this.newChartName};this.$refs.echartDesigner&&this.$refs.echartDesigner.saveUserDefinedChart(e).then(e=>{e&&(this.currentStatus=0,this.getChartList().then(t=>{this.chartType=1,t.personal.forEach(t=>{t.chartId===e&&(this.chartId=e,this.currentName=t.chartName)})}).then(()=>{this.refreshEchartKey++}))})},drillChange(e,t,r){e.length>0||t.length>1?this.goDeep=!0:this.goDeep=!1,this.$emit("propCondition",e,r,t)},toEditEchartName(){this.showNameInput=!0},toEditEchart(){this.currentStatus=1,this.newChartName=this.currentName,this.refreshEchartKey++,this.openEchartDialog(!1)},toAddEchart(){this.currentStatus=1,this.chartId="",this.newChartName="",this.chartType=1,this.openEchartDialog(!0)},clearBrand(){this.$emit("changeChart",[]),this.goDeepSeFalse()},toDeleteEchart(){this.$confirm(this.$_t("ThisActionDeleteEchart","此操作将永久删除记录,是否继续?"),this.$_t("Tip","步骤"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(async()=>{let e={id:this.chartId};try{await rt.post("api/Chart/DeleteUserDefinedChart",e),rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功!")),localStorage.removeItem("chartInfo"),this.initChartProps()}catch(e){rt.showErrorToast(e)}})},show(){this.$PlatUtils.installChart().then(()=>{this.notNeedShow=!1,this.showEchart=!this.showEchart}).catch(e=>{rt.showErrorToast(e)})},toCloseDrawer(){this.notNeedShow=!0,this.showEchart=!1},async getChartList(){let e=await rt.get("api/Chart/GetChartList?entityName="+this.entityName+"&queryId="+this.queryId);return this.echartList=e,e},getEchart(e,t){this.currentName=e.chartName,this.newChartName=e.chartName,this.chartId=e.chartId,this.chartType=t,this.refreshEchartKey++,this.type=e.type;const r={currentName:this.currentName,newChartName:this.newChartName,chartId:this.chartId,chartType:this.chartType,type:this.type,queryId:this.queryId,langid:localStorage.getItem("i18nLocaleid")};localStorage.setItem("chartInfo",JSON.stringify(r))}}},cc=(r("83af"),r("68c8"),Object(_.a)(dc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("rc-drawer",{class:0===e.currentStatus?"echart-dialog-drawer":"echart-dialog-drawer edit",style:e.getEchartStyle,attrs:{modal:!1,"show-shadow":"",size:e.largeSize,"with-header":!1,"append-to-body":!0,visible:e.showEchart,"show-close":!1},on:{"update:visible":function(t){e.showEchart=t}}},[r("template",{slot:"default"},[r("div",{staticClass:"plat-echart"},[0===e.currentStatus?r("div",{key:e.refreshEchartKey,staticClass:"plat-echart-view"},[r("rc-popover",{staticClass:"plat-echart-left",attrs:{"popper-class":"plat-echart-left",placement:"bottom",disabled:e.notNeedShow,trigger:"hover"}},[e.currentName?r("div",{staticClass:"plat-echart-header",attrs:{slot:"reference"},slot:"reference"},[r("div",{staticClass:"plat-echart-left"},[r("div",{staticClass:"title",attrs:{title:e.currentName}},[e._v(" "+e._s(e.currentName)+" ")]),r("rc-icon",{attrs:{name:"rt-base-triangle-filled",color:"#98a6b3"}})],1)]):e._e(),e.echartList.personal&&e.echartList.personal.length>0?r("div",{staticClass:"echart-personal"},[r("div",{staticClass:"classify-name"},[e._v(" "+e._s(e.$_t("platform.customChart","我的图表"))+" ")]),e._l(e.echartList.personal,(function(t){return r("div",{key:t.chartId,staticClass:"echart-list"},[r("div",{staticClass:"echart-item",on:{click:function(r){return e.getEchart(t,1)}}},[e._v(" "+e._s(t.chartName)+" ")])])}))],2):e._e(),e.echartList.system&&e.echartList.system.length>0?r("div",{staticClass:"echart-system",class:e.hasBoard},[r("div",{staticClass:"classify-name"},[e._v(" "+e._s(e.$_t("platform.systemChart","系统图表"))+" ")]),e._l(e.echartList.system,(function(t){return r("div",{key:t.chartId,staticClass:"echart-list"},[r("div",{staticClass:"echart-item",on:{click:function(r){return e.getEchart(t,0)}}},[e._v(" "+e._s(t.chartName)+" ")])])}))],2):e._e()]),r("div",{staticClass:"plat-echart-right"},[e.goDeep?e._e():r("div",{staticClass:"plat-echart-flex"},[e.currentName?r("rc-button",{attrs:{"icon-name":"rt-saas-add",type:"default",size:"small"},on:{click:e.toAddEchart}},[e._v(" "+e._s(e.$_t("BUTTON_ADD","新增"))+" ")]):e._e(),1===e.chartType&&e.currentName?r("rc-popover",{attrs:{width:"72px","popper-class":"chart-more-btn"}},[r("div",{attrs:{slot:"reference"},slot:"reference"},[r("rc-button",{staticClass:"more-add-btn",attrs:{"icon-name":"rt-base-dot-three-lined",type:"default",size:"small"}})],1),r("div",{staticClass:"chart-more-list"},[r("div",{staticClass:"chart-more-single",on:{click:e.toEditEchart}},[e._v(" "+e._s(e.$_t("common.edit","编辑"))+" ")]),r("div",{staticClass:"chart-more-single-delete",on:{click:e.toDeleteEchart}},[e._v(" "+e._s(e.$_t("BUTTON_DELETE","删除"))+" ")])])]):e._e()],1),e.isLarge?r("rc-tooltip",{staticClass:"drawer-large-icon",attrs:{slot:"title",content:e.$_t("chart.reduce","缩小"),effect:"dark",placement:"bottom"},slot:"title"},[r("rc-icon",{attrs:{name:"rt-base-double-arrow-center-lined",size:"16",type:"iconFont",color:"#788796"},on:{click:e.toScale}})],1):r("rc-tooltip",{staticClass:"drawer-large-icon",attrs:{slot:"title",content:e.$_t("common.zoomin","放大"),effect:"dark",placement:"bottom"},slot:"title"},[r("rc-icon",{attrs:{name:"rt-base-double-arrow-around-lined",size:"16",type:"iconFont",color:"#788796"},on:{click:e.toLarge}})],1),r("rc-icon",{staticClass:"drawer-close-icon",attrs:{name:"rt-base-close-x-lined",size:"16",type:"iconFont",color:"#788796"},on:{click:e.toCloseDrawer}})],1)],1):e._e()]),e.currentName&&e.showEditDialog?r("chart-add",{key:e.chartId+e.refreshEchartKey,ref:"echartDesigner",attrs:{ispreview:e.ispreview,"chart-id":e.chartId,"query-type":e.queryType,"metaquery-id":e.queryId,"current-status":0,"current-name":e.currentName,"current-type":e.chartType,type:e.chartId?e.type:0,"entity-name":e.entityName,"echart-query-options":e.echartQueryOptionsFilterechartSelf,"is-can-deep":!0,"new-num":e.showEchart?e.queryId:null,"vlist-echart-conditon":e.echartConditon,"is-magnify":e.isLarge},on:{drillChange:e.drillChange,confirm:e.onConfirm,clearBrand:e.clearBrand}}):e.showEditDialog?r("div",{staticClass:"no-echart"},[r("rc-default-image",{staticClass:"default-image",attrs:{size:"medium"}},[r("img",{attrs:{src:e.imgUrl}}),r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(" "+e._s(e.$_t("echart.noChart","暂无图表,"))+" "),r("rc-button",{attrs:{text:"",type:"plain"},on:{click:e.toAddEchart}},[e._v(e._s(e.$_t("echart.create","创建一个"))+" ")]),r("div",{staticClass:"create-icon"})],1)])],1):e._e()],1)],2),r("echart-dialog",e._b({ref:"echartDialog",on:{goBack:e.goBack,save:e.save}},"echart-dialog",e.chartAddProps,!1))],1)}),[],!1,null,null,null).exports),uc={name:"PlatDialogFooter",props:{maxBtns:{type:Number,default:3}},data:()=>({}),computed:{actualMaxBtns(){return this.maxBtns>4?4:this.maxBtns}},methods:{},render(e){const t=e("rc-button",{class:"rt-button-more",slot:"reference",props:{"icon-name":"rt-base-more",size:"large"}}),r=this.$slots.default?this.$slots.default.filter(e=>e.tag):[],i=r.reduce((e,t)=>(t.data&&t.data.directives&&t.data.directives.some(e=>"show"===e.name&&!1===e.value)||e++,e),0)>this.actualMaxBtns;let a,n;if(i){let e=0;const t=r.reduce((t,r)=>(r.tag&&e[]},encrypted:Boolean,platFilterOperator:{type:Object,default:()=>({})},datafieldname:String,titleWidth:{type:Number,default:72},iconSize:{type:Number,default:14},fontSize:{type:Number,default:12},isDrawer:{type:Boolean,default:!1},isCustomApi:{type:Boolean,default:!1}},data(){return{val:this.value,showMore:!1}},computed:{isEncryptedOptions(){let e=[];return this.encrypted?(e=this.operateOptions.filter(e=>["eq","ne","null","not-null"].includes(e.op)),e):this.operateOptions},computedTitleStyle(){var e;const t={fontSize:this.fontSize+"px"},r=(null===(e=this.$parent)||void 0===e?void 0:e.operateRealWidth)||0;return r&&(this.isDrawer?t.width=r-this.iconSize+"px":t.maxWidth=r-this.iconSize+"px"),t},computedSelectedName(){let e=this.computedPlaceholder;if(null!==this.val){const t=this.isEncryptedOptions.find(e=>e.value===this.val);e=t?t.name:""}return e},computedPlaceholder(){return this.$_t("xpc.common.pleaseSelect","请选择")}},watch:{value(e){this.val=e}},mounted(){},methods:{setTypeHandler(e){const t=this.operateOptions.find(t=>t.value===e),r=t&&t.op;this.$bus.$emit("refreshFilterItem_"+this.conditionKey,r),this.$emit("setType",this.conditionKey,this.datafieldname,r),this.$emit("filterChange")},showMoreHandler(e){this.showMore=e},getTitleStyle(e={}){return{fontSize:this.fontSize+"px",...e}}}},fc=(r("ebc7"),Object(_.a)(hc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.isCustomApi?r("div",{class:[e.isDrawer?"operate-span-disabled-drawer":"","operate-span-disabled"],attrs:{"has-tip":""}},[e._v(" "+e._s(e.computedSelectedName)+" ")]):r("rc-list-dropdown",{staticClass:"operate-span",attrs:{"custom-drop-class":"operate-span","title-font-size":this.fontSize+"px","menu-list":e.isEncryptedOptions},on:{input:e.setTypeHandler,showMore:e.showMoreHandler},scopedSlots:e._u([{key:"dropTitle",fn:function(){return[r("p",{staticClass:"rt-list-dropdown-title operate-dropdown-title",style:e.computedTitleStyle},[r("line-over-tip",{staticClass:"line-tip",style:Object.assign({},e.computedTitleStyle,{color:"inherit"}),attrs:{content:e.computedSelectedName}})],1),r("rc-icon",{class:e.showMore?"rt-icon-expand":"rt-icon-fold",attrs:{name:"rt-base-arrow-down-lined",size:e.iconSize,color:e.SCSS_VARIABLES.NEUTRAL_COLOR_PLACEHOLDER}})]},proxy:!0}]),model:{value:e.val,callback:function(t){e.val=t},expression:"val"}})}),[],!1,null,"f29a9c98",null).exports);const mc="Value";var gc={name:"PlatFilterComponent",mixins:[Xi.a],props:{displayValue:{type:Array,default:()=>[]},displayValueExpression:{type:String,default:""},options:{type:Array,default:function(){return[]}},alias:{type:Object,default:()=>({})},placeholder:{type:String,required:!1},entity:{type:String},datafieldname:{type:String},readonly:{type:Boolean,required:!1,default:!1},filterable:{type:Boolean,required:!1},referencedNameField:{type:String,required:!1},referencedIdField:{type:String,required:!1},dialogDisplayFields:{type:Array,default:null},dependentAttributeName:{type:String,default:null},dependentAttributeDisplayName:{type:String,default:null},filterAttributeName:{type:String,default:null},dialogConditionFields:{type:String,default:null},dialogOrderbyFields:{type:String,default:null},filterAttributeValue:{type:[String,Object,Number,Array],required:!1},requestUrl:{type:String,required:!1},entityList:{type:Array,default:function(){return[]}},queryId:{type:String,required:!1,default:""},conditionKey:String,value:{type:[String,Number,Object,Array,Date]},dataType:{type:String,required:!0},dateTimeFormat:{type:String},operatorType:{type:String,required:!0,default:"eq"},displayname:String,isCascader:{type:Boolean,required:!1},cascaderEntity:{type:String,required:!1},cascaderField:{type:String,required:!1},platFilterOperator:{type:Object,default:()=>({})},gridConditionIsChanged:{type:Boolean,default:!1},relationshipId:{type:String},relationshipName:{type:String},bindEntity:{type:String,default:function(){return""}},defaultViewsRelated:{type:Array,default:()=>[]}},data(){return{integerTypes:["int","bigint"],numericTypes:["float","money","decimal"],operatorVal:this.operatorType,focusVal:{isFocused:!1,value:null},picklistOptionsLocal:[],picklistOptionsFetched:!1}},computed:{valueKey(){return this.alias.value||mc},pickPropFun(){return{value:this.value,entity:this.entity,attribute:this.datafieldname,disabled:this.readonly,filterable:this.filterable,placeholder:this.placeholder}},LookPropFun(){return{value:this.value,entity:this.entity,dialogDisplayFields:this.dialogDisplayFields,nameField:this.referencedNameField,idField:this.referencedIdField,dialogFilterFields:"",dialogOrderbyFields:this.dialogOrderbyFields,dialogConditionFields:this.dialogConditionFields,dependentAttributeDisplayName:this.dependentAttributeDisplayName,dependentAttributeName:this.dependentAttributeName,filterAttributeName:this.filterAttributeName,filterAttributeValue:this.filterAttributeValue,placeholder:this.placeholder,disabled:this.readonly,readonly:this.readonly,bindEntity:this.bindEntity,defaultViewsRelated:this.defaultViewsRelated}},datePickerOptions:()=>({firstDayOfWeek:1,shortcuts:["today","yesterday","currentWeek","lastWeek","currentMonth","lastMonth","currentQuarter","lastQuarter","firstHalfYear","secondHalfYear","currentYear","lastYear"]}),handleFilterChange(){return this.$xpc.debounce(this._handleFilterChange,0)}},watch:{value(e){e||"between"!=this.operatorVal||"datetime"==this.dataType||this.$emit("input",null)},operatorType(e){this.operatorVal=e}},mounted(){this.$PlatUtils.listenerHook(this,"refreshFilterItem_"+this.conditionKey,e=>{this.operatorVal=e})},methods:{createSingleEntityCascadeLookup(e){return e("rt-single-entity-cascader",{props:{value:this.value,entityName:this.cascaderEntity,cascaderField:this.cascaderField,disabled:this.readonly,placeholder:this.placeholder},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}}})},createLookup(e){const t=[];let r={props:{...this.LookPropFun,readonly:!!t.includes(this.operatorVal),disabled:!!t.includes(this.operatorVal)},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal};return this.requestUrl&&(r.props.requestUrl=this.requestUrl),e("rt-lookup",r)},createMultipleLookup(e){let t={props:{...this.LookPropFun},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal};return this.requestUrl&&(t.props.requestUrl=this.requestUrl),e("rt-multi-lookup",t)},createRLookup(e){let t={props:{...this.LookPropFun,entityList:this.entityList},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal};return this.requestUrl&&(t.props.requestUrl=this.requestUrl),e("rt-r-lookup",t)},createCustomerLookup(e){return this.requestUrl||"contact"==this.LookPropFun.entity?this.createLookup(e):e("rt-m-lookup",{props:{value:this.value,disabled:this.readonly,readonly:this.readonly,placeholder:this.placeholder},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal})},createRtSaasEntities(e){let t=[];this.displayValueExpression&&Array.isArray(this.displayValue)&&(t=[...this.displayValue]);let r=[];this.options&&this.options.length>0&&(r=this.options,null!=t&&t.length>0&&(r=this.options.filter(e=>t.indexOf(e[this.valueKey])>=0)));let i={props:{...this.pickPropFun,multiple:!0,displayValue:t,isConditionFilter:!0},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal};return r.length>0&&(i.props.fetch=()=>Promise.resolve(r)),e("rt-saas-entities",i)},createPickList(e){let t=!1;(["in","not-in"].includes(this.operatorVal)||"picklistarray"==this.dataType.toLowerCase())&&(t=!0);let r=[];this.displayValueExpression&&Array.isArray(this.displayValue)&&(r=[...this.displayValue]),this.options&&0!==this.options.length||this.picklistOptionsFetched||this._ensurePicklistOptions();let i=this.options&&this.options.length>0?this.options:this.picklistOptionsLocal;null!=r&&r.length>0&&(i=i.filter(e=>r.indexOf(e[this.valueKey])>=0));let a={props:{...this.pickPropFun,multiple:t,displayValue:r,wordBreak:"break-word",filterable:!0,reserveKeyword:!0},on:{input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal};if(i.length>0){const e=this.$children&&this.$children[0]&&this.$children[0].queryString;e&&(i=i.filter(t=>String(t.Text||"").includes(e))),a.props.options=i}return e("rc-picklist",a)},async _ensurePicklistOptions(){try{this.picklistOptionsFetched=!0;const e=`api/crmpicklist/options/${this.entity}/${this.datafieldname}`;let t=await rt.get(e);Array.isArray(t)||(t=[]);const r=(this.dataType||"").toLowerCase();["bit","boolean"].includes(r)&&(t=t.map(e=>({...e,Value:1===e.Value||"1"===e.Value||!0===e.Value}))),this.picklistOptionsLocal=t}catch(e){rt.showErrorToast(e)}},createDatePicker(e){let t,r=this.value;"dateonly"===this.dateTimeFormat?t="date":"dateandtime"===this.dateTimeFormat&&(t="datetime"),"dateonly"===this.dateTimeFormat&&["ge","gt","le","lt"].includes(this.operatorVal)&&(t="date");const i="datetime"==t?this.getDateTimeFormat():this.getDateFormat();return e("rc-date-picker",{props:{value:r,type:t,format:i,disabled:this.readonly,readonly:this.readonly},attrs:{format:i,valueFormat:"date"===t?i:""},on:{change:this.handleInput,input:e=>{this.handleInput(e),this.handleFilterChange(e)}},key:this.operatorVal})},createDateRangePicker(e){let t;"dateonly"===this.dateTimeFormat?t="date":"dateandtime"===this.dateTimeFormat&&(t="datetime");const r="datetime"==t?this.getDateTimeFormat():this.getDateFormat();return e("rc-date-range-picker",{props:{value:this.value||[],type:t,format:r,disabled:this.readonly,pickerOptions:this.datePickerOptions,startPlaceholder:this.$_t("platform.startDate","开始日期"),endPlaceholder:this.$_t("platform.endDate","结束日期")},class:{"plat-date-range-picker":!0},on:{input:this.handleDateRangeInput,clickoutside:()=>this.handleFilterChange(this.value)}})},handleDateRangeInput(e){Array.isArray(e)&&2==e.length&&(""==e[0]&&""==e[1]&&(e=null),null==e[0]&&null==e[1]&&(e=[])),this.$emit("input",e),this.handleFilterChangeDateRangeInput(e)},handleFilterChangeDateRangeInput(e){var t;let r=null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0;2==r&&(r=(e[0]?1:0)+(e[1]?1:0)),1!=r&&this.handleFilterChange(e)},createReadOnlyInput(e){return e("rc-input",{props:{value:this.platFilterOperator[this.operatorVal],readonly:!0,disabled:!0,placeholder:this.placeholder},class:{"hide-value":!0},on:{input:this.handleInput},key:this.operatorVal})},createDefaultInput(e){return e("rc-input",{props:{value:this.value,placeholder:this.placeholder,readonly:this.readonly,disabled:this.readonly},on:{input:this.handleInput,change:this.checkNumber,focus:this.handleFilterFocus,blur:this.handleFilterBlur,clear:()=>this.handleFilterChange(this.value)},nativeOn:{keyup:e=>{13!==e.keyCode&&"Enter"!==e.key||this.handleFilterChange(this.value)}},key:this.operatorVal})},createDefaultInputNumber(e){return e("rc-input-number",{props:{value:this.value,placeholder:this.placeholder,readonly:this.readonly,disabled:this.readonly,step:.25,precision:2,min:0},on:{input:this.handleInput,change:this.checkNumber,focus:this.handleFilterFocus,blur:this.handleFilterBlur,clear:()=>this.handleFilterChange(this.value)},nativeOn:{keyup:e=>{13!==e.keyCode&&"Enter"!==e.key||this.handleFilterChange(this.value)}},key:this.operatorVal})},createLargeInput(e){return e("rc-xpc-input",{props:{value:this.value,placeholder:this.placeholder,readonly:this.readonly,disabled:this.readonly,maxLength:6e3},on:{input:this.handleInput,change:this.checkNumber,focus:this.handleFilterFocus,blur:this.handleFilterBlur,clear:()=>this.handleFilterChange(this.value)},nativeOn:{keyup:e=>{13!==e.keyCode&&"Enter"!==e.key||this.handleFilterChange(this.value)}},key:this.operatorVal})},handleInput:function(e){Array.isArray(e)&&2==e.length&&""==e[0]&&""==e[1]&&(e=null),this.$emit("input",e)},handleFilterFocus(){this.focusVal.isFocused=!0,this.focusVal.value=this.value},handleFilterBlur(){this.focusVal.isFocused?this.focusVal.value!==this.value&&this.handleFilterChange(this.value):this.handleFilterChange(this.value),this.focusVal.isFocused=!1,this.focusVal.value=null},_handleFilterChange(e){var t;"true"===(""+(null===(t=this.$store.state.systemparameter)||void 0===t?void 0:t.IsDataNotLarge)).toLocaleLowerCase()&&this.$emit("filterChange",e)},createRangInputs(e){const t={clearable:!0,type:this.dataType,readonly:this.readonly,disabled:this.readonly};return e("rt-range-input",{props:{value:this.value,...t},on:{input:this.handleInput,clickoutside:()=>this.handleFilterChange(this.value),enter:()=>this.handleFilterChange(this.value),clear:()=>this.handleFilterChange(this.value)}})},checkNumber(e){if(e){let t=this.dataType?this.dataType.toLowerCase():"";this.integerTypes.includes(t)&&!rt.isInteger(e)&&rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数")),this.numericTypes.includes(t)&&!rt.isNumeric(e)&&rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionNumber","数据不正确,请输入数字")),"datetime"!=t||rt.isNumeric(e)||rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数"))}},checkValue(){const e=lc.b.slice(0,8);if("between"==this.operatorVal&&"datetime"!=this.dataType){if(!this.value||!this.value[0]&&!this.value[1])return this.$emit("input",null),!0;if(!(!this.integerTypes.includes(this.dataType)||rt.isInteger(this.value[0])&&rt.isInteger(this.value[1])))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionInteger","数据不正确,请输入整数")),!1;if(!(!this.numericTypes.includes(this.dataType)||rt.isNumeric(this.value[0])&&rt.isNumeric(this.value[1])))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionNumber","数据不正确,请输入数字")),!1;if(Number(this.value[0])>Number(this.value[1]))return rt.showErrorToast(this.$_t("platform.gridconditionEqualEndValue","区间起始值要小于或等于结束值")),!1}else if(e.indexOf(this.operatorVal)>-1){if(!this.value)return;if(!rt.isInteger(this.value))return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionIntegerBetween","数据不正确,请输入1-100范围内的整数")),!1;let e=parseInt(this.value);if(e>100||e<1)return rt.showErrorToast(this.displayname+this.$_t("platform.gridconditionIntegerBetween","数据不正确,请输入1-100范围内的整数")),!1}return!0}},render:function(e){if(Object.keys(this.platFilterOperator).indexOf(this.operatorVal)>-1)return this.createReadOnlyInput(e);if(this.isCascader)return this.createSingleEntityCascadeLookup(e);if(this.dataType&&["lookup","owner"].includes(this.dataType.toLowerCase())&&["in","not-in"].includes(this.operatorVal))return this.createMultipleLookup(e);if(lc.b.indexOf(this.operatorVal)>-1)return lc.c.indexOf(this.operatorVal)>-1?this.createDefaultInputNumber(e):this.createDefaultInput(e);switch(this.dataType?this.dataType.toLowerCase():""){case"customer":return this.createCustomerLookup(e);case"owner":case"lookup":return this.createLookup(e);case"multipletypelookup":return this.createRLookup(e);case"datetime":return"between"===this.operatorVal?this.createDateRangePicker(e):this.createDatePicker(e);case"status":case"picklist":case"state":case"boolean":case"bit":case"picklistarray":return this.createPickList(e);case"entitylogicalname":return this.createRtSaasEntities(e);default:return"between"==this.operatorVal?this.createRangInputs(e):["in","not-in"].includes(this.operatorVal)?this.createLargeInput(e):this.createDefaultInput(e)}}},bc=(r("a581"),Object(_.a)(gc,void 0,void 0,!1,null,"1bb135ca",null).exports),yc={name:"platFilterAction",inject:["rtFormItem"],props:{label:{type:String,default:""},labelWidth:{type:Number,default:0},operateWidth:{type:Number,default:0},inputWidth:{type:Number,default:0}},computed:{isRequired(){return!!this.rtFormItem&&(this.rtFormItem.isRequired||this.rtFormItem.$attrs.required)&&!this.rtFormItem.disabled},labelClass(){return{"filter-action_label--no-slot":!this.$slots.default,"filter-action_label--with-slot":this.$slots.default}},labelStyle(){const e={};if(this.labelWidth){const t=4,r=8,i=2;e.width=this.labelWidth-t-r-i+"px",e.maxWidth=this.labelWidth+this.operateWidth-t+"px"}return e},actionStyle(){const e={};return this.labelWidth&&(e.width=this.labelWidth+this.operateWidth+"px",e.minWidth=this.labelWidth+this.operateWidth+"px"),e},operateRealWidth(){return this.operateWidth-12}},data:()=>({})},vc=(r("7789"),Object(_.a)(yc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"plat-filter-action",style:e.actionStyle},[r("div",{staticClass:"filter-action_label",class:e.labelClass,style:e.labelStyle},[e.isRequired?r("rt-icon",{staticClass:"rt-icon-required filter-action_required",attrs:{name:"rt-base-required-lined",size:"10"}}):e._e(),r("line-over-tip",{staticClass:"filter-action_content",attrs:{content:e.label}})],1),e._t("default",null,{width:e.operateRealWidth})],2)}),[],!1,null,"30baf765",null).exports),xc={name:"LineOverTip",props:{content:{type:String,default:""}},data:()=>({isShowTooltip:!0}),methods:{onMouseOver(){const e=this.$refs.span,t=e.parentNode.offsetWidth,r=e.offsetWidth,i=e.parentNode.offsetHeight,a=e.offsetHeight;this.isShowTooltip=r>t||a>i}}},wc=(r("ebd4"),Object(_.a)(xc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-tooltip",{attrs:{content:e.content,disabled:!e.isShowTooltip,effect:"dark",placement:"top"}},[r("div",{staticClass:"line-content",on:{mouseover:function(t){return e.onMouseOver(e.content)}}},[r("span",{ref:"span"},[e._v(e._s(""+e.content))])])])}),[],!1,null,"a3764814",null).exports);function _c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Ec=class extends N.a{constructor(...e){super(...e),_c(this,"isCollapsed",!1),_c(this,"title",void 0),_c(this,"icon",void 0),_c(this,"showMore",void 0),_c(this,"isOpenCollapse",void 0),_c(this,"isExpand",void 0),_c(this,"hidebar",void 0),_c(this,"isShowNoData",void 0)}onIsExpandChange(e){this.isCollapsed=!e}changeCollapse(e){this.isCollapsed=e}created(){this.isCollapsed=!this.isExpand}};Object(J.__decorate)([Object(te.d)({type:String,default:""})],Ec.prototype,"title",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Ec.prototype,"icon",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Ec.prototype,"showMore",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Ec.prototype,"isOpenCollapse",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],Ec.prototype,"isExpand",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Ec.prototype,"hidebar",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Ec.prototype,"isShowNoData",void 0),Object(J.__decorate)([Object(te.g)("isExpand")],Ec.prototype,"onIsExpandChange",null),Ec=Object(J.__decorate)([Object(te.a)({name:"apaas-card",provide(){return{apaasCard:this}}})],Ec);var Cc=Ec,Nc=(r("bcce"),Object(_.a)(Cc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"apaas-card"},[e._t("header",(function(){return[r("apaas-header",{attrs:{title:e.title,icon:e.icon,"show-more":e.showMore,hidebar:e.hidebar}},[e.showMore?r("template",{slot:"more"},[e._t("more")],2):e._e(),r("template",{slot:"btn"},[e._t("right"),e._t("btn")],2)],2)]})),e.isOpenCollapse?[r("el-collapse-transition",[r("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapsed,expression:"!isCollapsed"}],staticClass:"collapse-container"},[e._t("content",(function(){return[r("apaas-content",[e._t("default"),e.isShowNoData?r("div",{staticClass:"apaas-card-empty"},[e._v(" "+e._s(e.$_t("common.noFill","暂无数据"))+" ")]):e._e()],2)]}))],2)])]:[e._t("content",(function(){return[r("apaas-content",[e._t("default"),e.isShowNoData?r("div",{staticClass:"apaas-card-empty"},[e._v(" "+e._s(e.$_t("common.noFill","暂无数据"))+" ")]):e._e()],2)]}))]],2)}),[],!1,null,"39a4b596",null).exports);function Sc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Tc=class extends N.a{constructor(...e){super(...e),Sc(this,"apaasCard",void 0),Sc(this,"title",void 0),Sc(this,"icon",void 0),Sc(this,"showMore",void 0),Sc(this,"hidebar",void 0),Sc(this,"foldHideOps",void 0),Sc(this,"hovering",!1)}get iconClass(){return"plat-icon-double-right-lined"}get hasTitle(){return!this.hidebar&&(this.title||!!this.$slots.title)}get hasIcon(){return!_e.a.getBasicCompConfig().hideHeaderIcon&&(!!this.icon||!!this.$slots.icon)}get ifShowBlueLine(){return!this.hasIcon&&!this.get_isOpenCollapse}get get_isOpenCollapse(){var e;return(null===(e=this.apaasCard)||void 0===e?void 0:e.isOpenCollapse)||!1}get isCollapsed(){var e;return(null===(e=this.apaasCard)||void 0===e?void 0:e.isCollapsed)||!1}handleCollapse(e){var t,r;if(!this.get_isOpenCollapse)return;const i=!this.isCollapsed;null===(t=this.apaasCard)||void 0===t||null===(r=t.changeCollapse)||void 0===r||r.call(t,i)}moreClick(){this.$emit("more-click")}};Object(J.__decorate)([Object(te.b)()],Tc.prototype,"apaasCard",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Tc.prototype,"title",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Tc.prototype,"icon",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Tc.prototype,"showMore",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Tc.prototype,"hidebar",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],Tc.prototype,"foldHideOps",void 0),Tc=Object(J.__decorate)([Object(te.a)({name:"apaas-header"})],Tc);var kc=Tc,Oc=(r("8e34"),Object(_.a)(kc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.hasTitle||e.get_isOpenCollapse?r("div",{staticClass:"apaas-header-wrapper"},[r("div",{staticClass:"apaas-header",class:{"open-collapse":e.get_isOpenCollapse,"blue-line":e.ifShowBlueLine,"btns-hovering":e.hovering}},[r("div",{staticClass:"apaas-header-content"},[e.hasIcon?r("div",{staticClass:"header-icon"},[e._t("icon",(function(){return[r("rc-icon",{attrs:{name:e.icon,size:18,color:"#fff"}})]}))],2):e._e(),e.hasTitle?r("span",{staticClass:"apaas-header-title",on:{click:e.handleCollapse,mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},[e._t("title",(function(){return[e._v(e._s(e.title))]}))],2):e._e(),e.showMore?r("span",{staticClass:"apaas-header-more",on:{click:e.moreClick}},[e._t("more",(function(){return[e._v(e._s(e.$_t("xpc.header.more","更多")))]}))],2):e._e(),e.get_isOpenCollapse?r("rc-icon",{staticClass:"collapsed-icon",class:{collapsed:e.isCollapsed},attrs:{slot:"suffix",color:e.SCSS_VARIABLES.COLOR_INFO,name:e.iconClass,size:"12"},on:{click:e.handleCollapse},nativeOn:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}},slot:"suffix"}):e._e()],1),e.$slots.default||e.$slots.btn?r("div",{directives:[{name:"show",rawName:"v-show",value:!e.foldHideOps||!e.isCollapsed,expression:"!foldHideOps || !isCollapsed"}],staticClass:"apaas-header-btns",on:{click:function(e){return e.stopPropagation(),function(){return null}.apply(null,arguments)}}},[e._t("default"),e._t("btn")],2):e._e()])]):e._e()}),[],!1,null,"c90c72c6",null).exports);let Ic=class extends N.a{};Ic=Object(J.__decorate)([Object(te.a)({name:"apaas-content"})],Ic);var Dc=Ic,Ac=(r("feaf"),Object(_.a)(Dc,(function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"apaas-content"},[this._t("default")],2)}),[],!1,null,"407f1df6",null).exports),Mc=r("b03b");function Lc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Rc=class{constructor(e,t,r={}){Lc(this,"rangeNodeX",[]),Lc(this,"rangeNodeY",[]),Lc(this,"floatNode",void 0),Lc(this,"rangeNode",void 0),Lc(this,"moveX",0),Lc(this,"moveY",0),Lc(this,"isMove",!1),Lc(this,"isClick",!1),Lc(this,"provisionalX",0),Lc(this,"provisionalY",0),Lc(this,"floatNodeWidth",0),Lc(this,"floatNodeHeight",0),Lc(this,"margin",0),Lc(this,"initPosition",""),Lc(this,"initCoord",null),Lc(this,"startX",0),Lc(this,"startY",0),Lc(this,"marginLeft",0),Lc(this,"marginTop",0),Lc(this,"handleNodeMouseDownBound",()=>{}),Lc(this,"handleMouseMoveBound",()=>{}),Lc(this,"handleMouseUpBound",()=>{}),Lc(this,"handleResizeBound",()=>{}),Lc(this,"clickCallback",void 0),Lc(this,"dragStartCallback",void 0),Lc(this,"dragEndCallback",void 0),Lc(this,"timeout",void 0),this.rangeNode=e,this.floatNode=t,this.margin=r.margin||0,Array.isArray(r.position)?this.initCoord=r.position:this.initPosition=r.position||"",this.clickCallback=r.clickCallback||(()=>{}),this.dragStartCallback=r.dragStartCallback||(()=>{}),this.dragEndCallback=r.dragEndCallback||(()=>{}),this.handleResizeBound=this.handleResize.bind(this),window.addEventListener("resize",this.handleResizeBound),this.initDom(),this.initBehavior()}handleResize(){this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.resize()},300)}resize(){const e=this.rangeNode.getBoundingClientRect();this.rangeNodeX=[e.left+this.margin,e.left+e.width-this.margin],this.rangeNodeY=[e.top+this.margin,e.top+e.height-this.margin],this.floatNodeWidth=this.floatNode.getBoundingClientRect().width,this.floatNodeHeight=this.floatNode.getBoundingClientRect().width,this.moveX=this.clamp(this.moveX,this.rangeNodeX[0],this.rangeNodeX[1]-this.floatNodeWidth),this.moveY=this.clamp(this.moveY,this.rangeNodeY[0],this.rangeNodeY[1]-this.floatNodeHeight),this.floatNode.style.left=this.moveX+"px",this.floatNode.style.top=this.moveY+"px"}initDom(){const e=this.rangeNode.getBoundingClientRect();if(this.moveX=0,this.moveY=0,this.rangeNodeX=[0+this.margin,0+e.width-this.margin],this.rangeNodeY=[0+this.margin,0+e.height-this.margin],this.floatNode.style.position="absolute",this.floatNodeWidth=this.floatNode.getBoundingClientRect().width,this.floatNodeHeight=this.floatNode.getBoundingClientRect().width,this.initCoord){let[e,t]=this.initCoord;const r=/^\d+(\.\d+)?%$/;"string"==typeof e&&r.test(e)?this.moveX=0+Math.floor(parseFloat(e)/100*(this.rangeNodeX[1]-this.floatNodeWidth-this.rangeNodeX[0])):(e=this.clamp(e,this.rangeNodeX[0],this.rangeNodeX[1]-this.floatNodeWidth),this.moveX=e+0+this.margin),"string"==typeof t&&r.test(t)?this.moveY=0+Math.floor(parseFloat(t)/100*(this.rangeNodeY[1]-this.floatNodeHeight-this.rangeNodeY[0])):(t=this.clamp(t,this.rangeNodeY[0],this.rangeNodeY[1]-this.floatNodeHeight),this.moveY=t+0+this.margin)}else"tl"===this.initPosition?(this.moveX=this.rangeNodeX[0],this.moveY=this.rangeNodeY[0]):"tr"===this.initPosition?(this.moveX=this.rangeNodeX[1]-this.floatNodeWidth,this.moveY=this.rangeNodeY[0]):"bl"===this.initPosition?(this.moveX=this.rangeNodeX[0],this.moveY=this.rangeNodeY[1]-this.floatNodeHeight):(this.moveX=this.rangeNodeX[1]-this.floatNodeWidth,this.moveY=this.rangeNodeY[1]-this.floatNodeHeight);this.floatNode.style.left=this.moveX+"px",this.floatNode.style.top=this.moveY+"px"}initBehavior(){this.startX=0,this.startY=0,this.marginLeft=0,this.marginTop=0,this.handleNodeMouseDownBound=this.handleNodeMouseDown.bind(this),this.handleMouseMoveBound=this.handleMouseMove.bind(this),this.handleMouseUpBound=this.handleMouseUp.bind(this),this.floatNode.addEventListener("mousedown",this.handleNodeMouseDownBound),document.addEventListener("mousemove",this.handleMouseMoveBound),document.addEventListener("mouseup",this.handleMouseUpBound)}handleNodeMouseDown(e){this.isMove=!1,this.isClick=!0,this.startX=e.clientX,this.startY=e.clientY,this.provisionalX=0,this.provisionalY=0}handleMouseMove(e){this.isClick&&(this.isMove||this.dragStartCallback&&this.dragStartCallback(),this.isMove=!0,setTimeout(()=>{this.provisionalX=e.clientX-this.startX,this.provisionalY=e.clientY-this.startY,this.marginLeft=this.moveX+this.provisionalX,this.marginTop=this.moveY+this.provisionalY,this.marginLeft>this.rangeNodeX[1]-this.floatNodeWidth&&(this.marginLeft=this.rangeNodeX[1]-this.floatNodeWidth),this.marginLeftthis.rangeNodeY[1]-this.floatNodeHeight&&(this.marginTop=this.rangeNodeY[1]-this.floatNodeHeight),this.marginTop{this.moveX+=this.provisionalX,this.moveY+=this.provisionalY,this.floatNode.style.left=this.moveX+"px",this.floatNode.style.top=this.moveY+"px",this.dragEndCallback&&this.dragEndCallback()},0)):this.isClick&&(this.isClick=!1,this.isMove=!1,this.clickCallback&&this.clickCallback())}destroy(){var e;null===(e=this.floatNode)||void 0===e||e.removeEventListener("mousedown",this.handleNodeMouseDownBound),window.removeEventListener("resize",this.handleResizeBound),document.removeEventListener("mousemove",this.handleMouseMoveBound),document.removeEventListener("mouseup",this.handleMouseUpBound)}clamp(e,t,r){return Math.min(Math.max(e,t),r)}},Pc={name:"floating",bind(e,t,r){const i=r.context;i.$nextTick(()=>{const r={margin:0,position:"br",rangeNode:document.body,dragStartCallback:()=>{i.$emit("onDragStart")},dragEndCallback:()=>{i.$emit("onDragEnd")},...t.value},a=new Rc(r.rangeNode,e,r);i.floatInstance=a})},unbind(e,t,r){const i=r.context;i.floatInstance.destroy(),i.floatInstance=null}},$c={name:"RtRemark",props:{content:{type:String,default:""},fontSize:{type:String,default:""},fontWeight:{type:String,default:""},color:{type:String,default:""},lineHeight:{type:String,default:""}},data:()=>({}),computed:{contentStyle(){const e={};var t;return this.color&&(null!==(t=this.SCSS_VARIABLES)&&void 0!==t&&t[this.color]?e.color=this.SCSS_VARIABLES[this.color]:e.color=this.color),this.fontSize&&(e["font-size"]=this.fontSize),this.fontWeight&&(e["font-weight"]=this.fontWeight),this.lineHeight&&(e["line-height"]=this.lineHeight),e}},watch:{},created(){},mounted(){},methods:{}},Fc=(r("8a7f"),Object(_.a)($c,(function(){var e=this.$createElement,t=this._self._c||e;return t("apaas-card",{staticClass:"plat-remark"},[t("div",{staticClass:"remark-content",style:this.contentStyle},[this._v(this._s(this.content))])])}),[],!1,null,"ec78b7ac",null).exports),jc={name:"PlatListEmpty",props:{searchString:{type:String,default:""},isFirstHidden:{type:Boolean,default:!1}},data(){return{tableIsLoaded:!1,searchIsChange:!1,emptyDescribe:this.$_t("platform.noData","暂无数据"),imgSrc:rt.getPublicUrl()+"imgs/web/nodata@3x.png"}},mounted(){this.setEmptyDescribe(),this.setImgSrc(),this.$PlatUtils.listenerHook(this,"tableIsLoadComplete",e=>{this.tableIsLoaded=e,this.setEmptyDescribe(),this.setImgSrc()})},methods:{setEmptyDescribe(){this.isFirstHidden?this.emptyDescribe=this.$_t("data.hidden","数据已隐藏,请输入筛选条件进行查询"):this.searchString?this.emptyDescribe=this.$_t("common.SearchNotFound","没有找到你搜索的内容哦"):this.emptyDescribe=this.$_t("platform.noData","暂无数据")},setImgSrc(){this.searchString?this.imgSrc=rt.getPublicUrl()+"imgs/web/seachempty@3x.png":this.imgSrc=rt.getPublicUrl()+"imgs/web/nodata.svg"}}},Bc=(r("3868"),Object(_.a)(jc,(function(){var e=this.$createElement,t=this._self._c||e;return t("rc-default-image",{staticClass:"plat-list-empty"},[this.imgSrc?t("img",{staticClass:"list-empty_img",attrs:{src:this.imgSrc,alt:""}}):this._e(),t("div",{staticClass:"list-empty_describe",attrs:{slot:"describe"},slot:"describe"},[this._v(this._s(this.emptyDescribe))])])}),[],!1,null,"3064fba8",null).exports),Uc=r("8eee");const Vc=[Ys,E,U,q,H,W,X,Y,oe,le,fe,ge,Ce,ke,xe,Se,Le,Ae,Ie,Fe,j,Ke,tt,at,ot,lt,ct,pt,gt,ft,wt,It,At,Nt,Lt,Pt,di,ze,Ve,Be,Oi,Li,hi,bi,wi,Ti,Pi,Bi,Hi,Qi,Zi,ta,ia,na,sa,da,ha,ma,wa,ba,Ea,Ta,Ia,Aa,as,os,Na,vs,_s,Cs,Ss,Is,ua,As,Ms.a,Ps,Fs,Bs,Vs,zs,Gs,Js.a,rl,xs.a,al,Zd,ic,nc,cc,pc,rl,fc,bc,vc,wc,Nc,Oc,Ac,Fc,Bc,Uc.a],qc=[Pc];function zc(e){const t=ee.a.config.get("dateFormat");if(e.dateFormat&&t){const r=e.dateFormat,i=function(e){let t=e.replace(/d{1,2}|D{1,2}/g,"").replace(/^[\W_]+|[\W_]+$/g,"").replace(/[\W_]{2,}/g,e=>e[0]);return t=t.replace(/^[\W_]+|[\W_]+$/g,""),t}(r),a="HH:mm:ss",n=`${r} ${a}`;ee.a.config.set("dateFormat",{...t,date:r,month:i,time:a,datetime:n,timerange:a,daterange:r,monthrange:i,datetimerange:n})}}var Hc,Gc={install:function(e,t){Vc.forEach((function(t){let r=t.name;"function"==typeof t&&(r=t.options.name),e.component(r,t)})),e.component("rc-section",pe),e.component("apaas-relation-drawer",Mc.a),qc.forEach(t=>{e.directive(t.name,t)}),e.use(Fd);let r=t.overrides||[];r=[...es,...r],e.use(rs.a,t),t.rtXpcQiankun&&ee.a.use(t.rtXpcQiankun),t.rtXpcElementOrigin&&ee.a.use(t.rtXpcElementOrigin),ee.a.use(Bo);const i={},a=_e.a.getBasicCompConfig();i.hideBtnIcon=a.hideBtnIcon||!1,i.hideHeaderIcon=a.hideHeaderIcon||!1,t.iconWhiteList&&t.iconWhiteList.length>0&&(i.iconWhiteList=t.iconWhiteList),t.iconBlacklist&&t.iconBlacklist.length>0&&(i.iconBlacklist=t.iconBlacklist),e.use(ee.a,{config:{overrides:{components:r},componentPrefix:"Rc",address:{provinceUrl:"api/ProvinceCityCounty/GetProvinceList",cityUrl:"api/ProvinceCityCounty/GetCityList",countyUrl:"api/ProvinceCityCounty/GetCountyList",alias:{id:"id",name:"name"},autoLoad:!1},defaultLocale:localStorage.i18nLocale,defaultLocaleId:localStorage.i18nLocaleid,localesUrl:rt.getBaseUrl()+"api/PortalLanguage/GetLanguageList",localesMessageUrl:rt.getBaseUrl()+"api/PortalLanguage/GetLanguageConfigs?langId=",addressCascader:{url:"api/ProvinceCityCounty/RetrieveProvinceJoinCityJoinCountry"},loading:{showMask:"none"},form:{labelPosition:window.rtconfig.formLabelPosition||"top",inputNeedTips:!0},dialog:{size:{height:{large:"",normal:"",small:""}}},...i},i18n:t.i18n});const n=ts.layoutUtils.getTenantCode();n&&rt.setDefaultTimeZoneSuffix&&rt.setDefaultTimeZoneSuffix(n),e.use(Xd,t),e.prototype.$bus.$on("USER_INFO_UPDATED",zc)},components:Vc};!function(e){e[e.Form=0]="Form",e[e.Subgrid=1]="Subgrid"}(Hc||(Hc={}));var Wc={props:{title:{type:String,default:""},isPrint:{type:Boolean,default:!1,required:!1},enableSearch:{type:Boolean,default:!0},targetEntityType:{type:String,default:""},hasEntityImage:{type:Boolean,default:!1},searchPlaceholder:{type:String,default:""}},data:()=>({queryValue:"",iconUrlNew:""}),methods:{getSearchString(){return this.queryValue},search(){this.$emit("search",this.queryValue)},setSearchString(e){this.queryValue=e}}},Qc=(r("80f8"),Object(_.a)(Wc,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-header",{staticClass:"plat-list-header",attrs:{title:e.title}},[r("div",{staticClass:"node-icon",attrs:{slot:"icon"},slot:"icon"},[e._t("headericon")],2),r("div",{staticClass:"plat-slot-right",attrs:{slot:"btn"},slot:"btn"},[r("div",{staticClass:"section-btns"},[e._t("btn")],2),e.enableSearch&&!e.isPrint?r("div",{staticClass:"header-search"},[r("rc-search",{staticClass:"rc-search-input",attrs:{size:"small",type:"dark","has-tip":!e.queryValue,"tip-text":e.searchPlaceholder,more:!1,placeholder:e.searchPlaceholder},on:{"on-search":e.search},model:{value:e.queryValue,callback:function(t){e.queryValue=t},expression:"queryValue"}})],1):e._e()])])}),[],!1,null,"007c33e2",null).exports),Xc=r("6f9c");function Kc(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Yc=class extends Xc.a{constructor(...e){super(...e),Kc(this,"newTabObject",void 0),Kc(this,"isSubgrid",!1),Kc(this,"EntityDisplayName",""),Kc(this,"queryAttributes",{}),Kc(this,"filterFormList",[]),Kc(this,"disableFetch",!1),Kc(this,"pageInfo",{}),Kc(this,"dataTotalCount",0),Kc(this,"PaginationType",0),Kc(this,"searchString",""),Kc(this,"changeIndex",[]),Kc(this,"tableData",[]),Kc(this,"multipleSelection",[]),Kc(this,"currentRow",{})}quickfind(e){this.searchString=e,this.checkSearchStrLength(!0)&&(this.pageInfo={},this.disableFetch=!1,this.reLoad("globalGetBadge"))}reLoad(e){this.$refs.table.handleIndexChange(1),this.$refs.table.fetchData(!0),"isCurrent"==e?this.reloadCurrentBadges():this.reloadBadges()}reloadCurrentBadges(e){this.$refs.headerTab&&this.$refs.headerTab.reLoadCurrentBadge(e)}reloadBadges(){this.$refs.headerTab&&!this.newTabObject&&this.$refs.headerTab.loadHeaderTabDataWidthBadge(this.searchString)}checkSearchStrLength(e){const t=this.queryAttributes.quickfindcount;return!(this.searchString&&this.searchString.trim().length{if(this.checkIsPreview())return a();if(!this.checkIsCreated())return a();try{rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));const a="api/dynamic/"+e+"/BatchDeleteByRelationship?entityName="+r,n=await rt.post(a,t);rt.hideLoadingToast(),rt.showSuccessToast(n),i()}catch(e){rt.hideLoadingToast(),rt.showErrorToast(e),a()}})}};Object(J.__decorate)([Object(te.d)()],Yc.prototype,"newTabObject",void 0),Yc=Object(J.__decorate)([Object(te.a)({name:"VListCommon"})],Yc);var Jc=Yc,Zc=r("a829"),eu=r("d747");function tu(e,t){if(!e)return;if(!e.LayoutJson)return;!e.queries||!e.queries.length||e.queries.length;const r=JSON.parse(e.LayoutJson);t.$set(r,"subgridTag",!0);const i=function(e){const t=[],r=[];let i=0;for(e.parentIndex=-1,e.nodeIndex=i,t.push(e);t.length>0;){const e=t.pop(),a=eu.a.translateToRuntimeControl(e);r[a.nodeIndex]=a,e.children&&e.children.forEach(e=>{i+=1,e.parentIndex=a.nodeIndex,e.nodeIndex=i,t.push(e)})}return r.forEach(e=>{e.nodeIndex>0&&(e.parent=r[e.parentIndex])}),r.forEach(e=>{e.parent&&e.parent.children.push(e)}),r}(r)[0],a={thisVue:t,dependAttributes:[]};i.collectDependAttributes(a),i.VueTag="rc-view";const n={thisVue:t,dependAttributes:a.dependAttributes};i.prepare(n);const o={grid:i,queryAttributes:i.BindAttributes(),ModifiedOnTicks:e.ModifiedOn&&e.ModifiedOn.valueOf()||0,LayoutXmlMd5:e.LayoutXmlMd5,ViewVisible:!0};return t.pageSchema=o,t.schemaLoaded=!0,o}function ru(e,t){return t.schemaLoaded?function e(t,r){const i=new Array;if(r.children&&r.children.length>0){const a=["gridheader","headericon","queryselector","filterdrawer","userviewdialog","excelexportnewdialog","excelexportdialog"];r.children.forEach(r=>{if(a.includes(r.nodeType))return;const n=e(t,r);i.push(n)})}else if(r.vtext&&r.vtext.length>0)return t(r.tag,r.data,[r.vtext]);return t(r.tag,r.data,i)}(e,function(e){const t=e.pageSchema;if(!t)return new Zc.e("div","no schema.");const r=e.allSchema,i=t.grid,a=new Zc.c(fs.e.PCSubGrid,r.PrimaryEntityName,r.SavedQueryId,fs.d.edit,e,i),n=i.buildVNodeTree(a);return n.stackVisit(a),n}(t)):e("div",{},[])}var iu={name:"CustomTableColumn",props:{dataProp:String,customProps:{type:Object,required:!0},customerData:{type:Object,default:()=>({})},objectTypeName:{type:String,default:""}},computed:{componentName(){return this.customProps.appkey?"custom-component":this.customProps.componentName},componenetRef(){return this.customProps.customComponentRef||this.customProps.componentName},datafieldname(){return this.customProps.datafieldname}}},au=Object(_.a)(iu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-table-column",e._b({attrs:{prop:e.dataProp},scopedSlots:e._u([{key:"default",fn:function(t){return[e.customProps.appkey?r("customer-component",{attrs:{appkey:e.customProps.appkey,"component-name":e.componentName,"custom-component-ref":e.componenetRef,"edit-form":t.row,"customer-data":e.customerData,"object-type-name":e.objectTypeName,datafieldname:e.datafieldname}}):r(e.customProps.componentName,{ref:e.componenetRef,tag:"component",attrs:{"edit-form":t.row,"customer-data":e.customerData,"object-type-name":e.objectTypeName,datafieldname:e.datafieldname}})]}}])},"rc-table-column",e.$attrs,!1))}),[],!1,null,null,null).exports;function nu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let ou=class extends(Object(te.c)(Jc)){constructor(...e){super(...e),nu(this,"viewId",void 0),nu(this,"parentId",void 0),nu(this,"parentPrimaryAttribute",void 0),nu(this,"fromEntityisMounted",void 0),nu(this,"targetEntityType",void 0),nu(this,"relationFilterAttribute",void 0),nu(this,"relationFilterValue",void 0),nu(this,"showPagination",void 0),nu(this,"enableSelect",void 0),nu(this,"recordsPerPage",void 0),nu(this,"needjump",void 0),nu(this,"listTableSearchString",void 0),nu(this,"isPrint",void 0),nu(this,"fromEntity",void 0),nu(this,"fromEntityName",void 0),nu(this,"subGridRefAttribute",void 0),nu(this,"relationshipType",void 0),nu(this,"relationshipName",void 0),nu(this,"subgridIsReadonly",void 0),nu(this,"formStatus",void 0),nu(this,"subgridkey",void 0),nu(this,"fromEntityCustomerData",void 0),nu(this,"fieldWithHandler",void 0),nu(this,"objectId",void 0),nu(this,"refProvide",this),nu(this,"getEntityDisplayName",null),nu(this,"subgridFormData",void 0),nu(this,"pageType",fs.e.PCSubGrid),nu(this,"PrimaryEntityName",""),nu(this,"subgridHasEditableField",[]),nu(this,"subGridChangedProps",[]),nu(this,"subgridDataInCreateForm",[]),nu(this,"jumpInfo",{}),nu(this,"dependentRelationshipMapping",{}),nu(this,"category",""),nu(this,"isMounted",!1),nu(this,"orderby",""),nu(this,"currentQueryId",this.viewId),nu(this,"subgridValidateResult",!0),nu(this,"cellFieldInfo",{}),nu(this,"openNextFields",[]),nu(this,"currentEditRow",null),nu(this,"ifKeepSelection",!1),nu(this,"subgridRules",{}),nu(this,"subgridCellFields",{}),nu(this,"isSubgrid",!0),nu(this,"attributeMappings",{}),nu(this,"mappingResult",{}),nu(this,"privileges",null)}get allSubgridData(){return[...this.subgridDataInCreateForm,...this.tableData]}fromEntityisMountedHandler(){this.initCustomerData()}mounted(){this.$PlatUtils.listenerHook(this,"fromEntityisMounted",this.initCustomerData),this.$PlatUtils.listenerHook(this,"operate-cell-update"+this.targetEntityType,this.setCurrentRow),this.$PlatUtils.listenerHook(this,"subgridDeleteRow_"+this.subgridkey,this.subgridDeleteRowHandler),this.$PlatUtils.listenerHook(this,"clearSelection"+this.subgridkey,this.clearSelectionEmit),this.$PlatUtils.listenerHook(this,"subgridEditProps_"+this.subgridkey,this.subgridEditPropsHandler),this.$PlatUtils.listenerHook(this,"markCurrentEditRow_"+this.subgridkey,this.markCurrentEditRow)}beforeDestroy(){this.clearEventInCell()}loadComplete(){this.$bus.$emit("tableIsLoadComplete_"+this.targetEntityType,!0)}clearEventInCell(){const e=Object.keys(this.fieldWithHandler);e.length&&e.forEach(e=>{this.$bus.$off("setGridCell_"+e)})}setCurrentRow(e){this.$set(this,"currentRow",e)}changeTableSize(e){this.ifKeepSelection=!0}showFormDialogByRow(e){const t=e.dialogFormLogicalName,r=e.label;this.$emit("showFormDialog",this.currentRow.$id,r,t,this.targetEntityType,this.load,e.dialogFormSize)}load(e){const t=this.$refs.table;t&&(e&&(t.pageIndex=1),t.fetchData())}beforeLoad(e){const t=this.$refs.table;t&&(this.tableData.length==e&&t.pageIndex>1&&(t.pageIndex=t.pageIndex-1),t.fetchData(),this.$emit("subGridReload"))}assignCallback(){this.load()}fetch(e){return this.pageInfo=e,this._fetchRecords()}_fetchRecords(){return new Promise(e=>{if(!(this.viewId&&this.pageInfo&&this.parentId&&this.relationFilterAttribute))return e([]);{let t,r;this.queryAttributes.requestApi?t=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this):(t="api/vlist/ExecuteQuery",r=this.getQueryParams()),rt.get(t,r).then(t=>{this.ifKeepSelection||this.clearSelection();const r=this.tableData.length;-1==t.TotalRecordCount?(this.PaginationType=1,0==r||r0?this.dataTotalCount=t.Entities.length:this.dataTotalCount=t.TotalRecordCount):(this.PaginationType=0,this.dataTotalCount=t.TotalRecordCount),this.tableData=t.Entities;const i=[...this.subgridDataInCreateForm,...this.tableData];let a=this.dataTotalCount;return this.showPagination||(a=i.length),this.$emit("dataLoaded",a),e(i)}).catch(t=>(rt.showErrorToast(t),e([]))).finally(()=>{this.ifKeepSelection=!1})}})}__loadSchemas(){let e={entityName:this.targetEntityType,category:this.category,queryId:this.viewId||this.targetEntityType,platformType:1};return this.isPrint&&(e.isPrint=this.isPrint),this.parentId&&0!==this.formStatus&&(e.objectId=this.parentId),this.relationFilterAttribute&&(e.filterAttribute=this.relationFilterAttribute),this.LayoutXmlMd5&&(e.LayoutXmlMd5=this.LayoutXmlMd5),rt.get("api/vlist/GetSubgridListPage",e).then(e=>{this.LayoutXmlMd5!==e.LayoutXmlMd5||e.LayoutJson||(e.LayoutJson=this.allSchema.LayoutJson),this.isPreview||this.$apaasStorage.openDB(1,(t,r)=>{this.$apaasStorage.add(t,r,this.__getIndexDBKey(),JSON.stringify(e))}),this.__loadSchemasDetail(e)}).catch(e=>{rt.showErrorToast(e)}).finally()}__getIndexDBKey(){let e=this.targetEntityType;return this.viewId&&(e+="/"+this.viewId),e+="/subgrid",e}__loadSchemasForIndexedDB(){return new Promise(e=>{let t=this.__getIndexDBKey();this.$apaasStorage.openDB(1,(r,i)=>{this.$apaasStorage.find(r,i,t,t=>{try{if(r.close(),t&&t.data){let e=JSON.parse(t.data);this.__loadSchemasDetail(e)}}catch(e){}return e()},()=>e(),!0)})})}__loadSchemasDetail(e){if(!e)return e;const t=tu(e,this);this.EntityDisplayName=e.EntityDisplayName,this.PrimaryEntityName=e.PrimaryEntityName,this.queryAttributes=t.queryAttributes,this.LayoutXmlMd5=e.LayoutXmlMd5,this.allSchema=e;let r=[];try{var i;const t=JSON.parse(e.LayoutJson||"{}");r=(null==t||null===(i=t.props)||void 0===i?void 0:i.searchableFields)||[]}catch(e){r=[]}this.$emit("updateSearchableFields",r),e.Category&&(this.category=e.Category),this.attributeMappings=e.attributemappings||{},this.queryAttributes.jumpFormId&&!this.queryAttributes.jump&&(this.jumpInfo.formid=this.queryAttributes.jumpFormId),this.$emit("setQueryAttributes",this.queryAttributes),this.$emit("updateDisplayName",this.EntityDisplayName),e.privileges&&(this.privileges=e.privileges,this.$emit("updatePrivileges",e.privileges)),this.events=e.events,this.schemaLoaded=!0,this.isMounted||(this.__execMounted(),this.isMounted=!0)}editByRow(){this.rowDblclick(this.currentRow)}getReduceDependentFields(){const e=Object.keys(this.dependentRelationshipMapping).concat(Object.values(this.dependentRelationshipMapping));return[...new Set(e)]}applyMappingResults(e){const t=e.$id,r=this.mappingResult[t];r&&(Object.keys(r).forEach(t=>{this.updateTableDataByRow(e,t,r[t])}),delete this.mappingResult[t])}updateRowData(e,t,r){this.$refs.table&&this.$refs.table.changeTableData(e,t,r),e[t]=r,this.currentEditRow&&(this.currentEditRow[t]=r)}editUpdate(e,t,r,i={}){const{isTab:a,isClickOutside:n}=i;if(!a&&!n)return;const{row:o,prop:s,value:l}=e,d=o[s],c=l;let u=!0,p=!1;if(this.applyMappingResults(o),"object"!=typeof c||null==c||Array.isArray(c)||d&&d.id===c.id&&(p=!0),(c==d||""===c&&!o.hasOwnProperty(s))&&(p=!0),c instanceof Date&&(p=!1),p){if(a){this.initSubgridEditableFields();const e=this.openNextFields.indexOf(s),r=this.openNextFields[e+1];t(r)}else t();return}this.updateRowData(o,s,c);const h=`${this.subgridkey}_${s}`;if(-1!==Object.keys(this.fieldWithHandler).indexOf(h)){const e=this.targetEntityType+"_cancelSaveSubGrid";this.$off(e),this.$PlatUtils.listenerHook(this,e,()=>{this.subGridChangedProps.length&&(this.$refs.table.changeTableData(o,s,d),t())},!1);const r=this.targetEntityType+"_saveSubGrid";this.$off(r);const i=()=>{if(this.subGridChangedProps.length)for(const e in o)this.$refs.table&&this.$refs.table.changeTableData(o,e,o[e]);if(this.clearDependField(s,o),this.validateCurrentRow(o,(e,t)=>{!e&&t[0]&&(u=!1)}),this.subgridValidateResult=u,a){this.initSubgridEditableFields();const e=this.openNextFields.indexOf(s),r=this.openNextFields[e+1];t(r)}else t();if(this.$off(this.targetEntityType+"_saveSubGrid"),o.isCreating&&this.$bus.$emit("subgridDataHandler",this.subgridBlurSaveHandler()),u&&!o.isCreating){const e={subgirdEntityName:this.targetEntityType,row:o};this.subgridBlurSave(e)}};this.$PlatUtils.listenerHook(this,r,i,!1);const n=`${this.subgridkey}_${s}`;return void this.$bus.$emit("setGridCell_"+n,{row:o,parentkey:this.targetEntityType+"_"})}this.clearDependField(s,o);const f=this.getReduceDependentFields();if(this.validateCurrentRow(o,(e,t)=>{!e&&t[0]&&(u=!1)}),a){this.initSubgridEditableFields();const e=this.openNextFields.indexOf(s),r=this.openNextFields[e+1];t(r)}else t();if(this.subgridValidateResult=u,!u)return;if(o.isCreating){const e=this.$refs.table;return e&&(e.dataList=[...e.dataList]),void this.$bus.$emit("subgridDataHandler",this.subgridBlurSaveHandler())}const m={subgirdEntityName:this.targetEntityType,row:o,subGridChangedProps:f};this.subgridBlurSave(m)}clearDependField(e,t){const r=this.dependentRelationshipMapping[e];this.$refs.table&&this.$refs.table.changeTableData(t,r,null),this.$set(t,r,null),this.dependentRelationshipMapping[r]&&this.clearDependField(r,t)}vformcoreBtnSave(e){const t=e.data.row;let r=!0;try{t.forEach(e=>{this.validateCurrentRow(e,(t,i)=>{if(!t&&i[0])throw this.currentEditRow=e,this.$nextTick(()=>{this.$refs.table&&this.$refs.table.openEditCell(e,i[0],!0)}),r=!1,new Error;this.getTableErrorValidEditor()&&(r=!1)})})}catch(e){}this.subgridValidateResult=r,r&&this.subgridBlurSave(e)}subgridBlurSave(e){this.$emit("blurAndSave",e)}hideEditCellHandler(){this.$refs.table&&this.$refs.table.hideEditCell()}getTableEditor(){const e=this.$refs.table;if(e&&e.$refs&&e.$refs.tableRef)return e.$refs.tableRef.querySelector(".rt-table-cell-editor")}getTableErrorValidEditor(){const e=this.$refs.table;if(e&&e.$refs&&e.$refs.tableRef)return e.$refs.tableRef.querySelector(".rt-table-cell-editor .rt-form .el-form-item.is-error")}markCurrentEditRow(e){this.currentEditRow=e}rowDblclick(e){if(this.jumpInfo&&this.jumpInfo.needjump&&"form"!=this.jumpInfo.formtype)return this.$refs.jumpAttribute.gotoEditPage(e);this.$emit("gotoEditPage",e)}selectionChange(e){this.multipleSelection=e,this.$emit("setSelections",e)}handleSortChange(e){if(e&&e.prop){this.orderby=e.prop+" "+e.order;const t=!0;this.load(t)}}getQueryParams(){let e={};return e.entityName=this.targetEntityType,e.queryid=this.viewId,e.$pageIndex=this.pageInfo.pageIndex,e.$pageSize=this.pageInfo.pageSize,this.showPagination?null!=this.queryAttributes.paging&&(e.$paging=this.queryAttributes.paging):e.$paging=!1,this.orderby&&(e.$orderby=this.orderby),e.$search=this.listTableSearchString,e.relationFilterAttribute=this.relationFilterAttribute,e.relationFilterValue=this.parentId,e.isLookup=!0,(this.$route.params.stepid||this.$route.params.taskid)&&(e.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(e.toDoTaskId=this.$route.params.todotaskid),this.relationshipType&&(e.relationshipType=this.relationshipType),this.relationshipName&&(e.relationshipName=this.relationshipName),e}delByRow(){let e=this.currentRow.$id;if(0==this.formStatus)return void this.newSubgridDeleteRowHandler(e);window.event&&window.event.stopPropagation();let t=this.targetEntityType;if(1==this.relationshipType&&(e=this.currentRow[this.relationshipName+"_id"],t=this.relationshipName),!e||!t)return void rt.showErrorToast(this.$_t("common.pls_save_info","请先保存数据"));let r=[];r.push(e),1==this.relationshipType?this.deleteByRelationship(t,r,this.fromEntityName).then(()=>{this.beforeLoad(1)}):this.deleteByRowId(t,r).then(()=>{this.multipleSelection=[],this.beforeLoad(1)})}grantAccessByRow(){this.checkIsPreview()||this.$refs.GrantAccessDialog.show([this.currentRow.$id])}assignByRow(e){this.checkIsPreview()||(e&&e.defaultViewId?this.$refs.AssignDialog.show([this.currentRow.$id],e.defaultViewId):this.$refs.AssignDialog.show([this.currentRow.$id]))}async addSubgridRowHandler(e){if(!Object.keys(this.subgridHasEditableField).length)return void rt.showErrorToast(this.$_t("platform.subgridHasNoEditableField","当前子网格未设置可行内编辑的字段"));let t={};const r=await rt.post(`api/dynamic/${this.targetEntityType}/GetDefaultValue`);t[e.subGridRefAttribute]={id:e.fromEntity.$id,$id:e.fromEntity.$id,logicalname:e.fromEntity.$logicalname,$logicalname:e.fromEntity.$logicalname,name:e.fromEntity[this.parentPrimaryAttribute]},t={...t,...r},t.isAdd=!0,t.query=e,t.isCreating=!0,t.$id=rt.newUUID(),this.parentId&&this.formStatus&&await this.attributeMappingCallback(t,t[e.subGridRefAttribute],e.subGridRefAttribute,e.fromEntityName);for(const i in r)"number"==typeof r[i]&&(t[i]=r[i]);this.initSubgridEditableFields(),t.FormattedValues=r.FormattedValues,t.FormattedColors=r.FormattedColors,this.$refs.table.appendTableData(t),this.subgridDataInCreateForm.push(t),this.currentEditRow=this.subgridDataInCreateForm[0],this.parentId&&this.formStatus&&(this.applyMappingResults(t),this.updateRowData(t,e.subGridRefAttribute,t[e.subGridRefAttribute])),setTimeout(()=>{this.$refs.table.openEditCell(t,this.subgridHasEditableField[0])},200)}async addSubgridRowWithData(e,t){let r={...t,isAdd:!0,query:e,isCreating:!0};this.currentEditRow=this.subgridDataInCreateForm[0],this.subgridDataInCreateForm.push(r),this.$refs.table.appendTableData(r);for(let i in t)t[i]&&!this.isEmptyArrayOrEmptyObject(t)&&this.subGridChangedProps.push(i);rt.showSuccessToast(this.$_t("Successfullyadded","添加成功"))}isEmptyArrayOrEmptyObject(e){return"object"==typeof e&&null!==e?0===Object.keys(e).length:!!Array.isArray(e)&&0===e.length}clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.$emit("setSelections",[])}getSubgridChangedProps(e,t){const r=["$id",...t];return e.map(e=>{const t={};return r.forEach(r=>{e.hasOwnProperty(r)&&(t[r]=e[r])}),t})}subgridBlurSaveHandler(){let e=JSON.parse(JSON.stringify(this.subgridDataInCreateForm));return e=this.getSubgridChangedProps(e,this.subGridChangedProps),e=e.map(e=>(e.tagId=e.$id,delete e.$id,e)),{[this.relationshipName]:e}}subgridDeleteRowHandler(e){e.length&&e.forEach(e=>{this.newSubgridDeleteRowHandler(e)}),this.hideEditCellHandler(),this.clearSelection()}newSubgridDeleteRowHandler(e){const t=this.$refs.table;if(t&&e){let r=-1;for(let i=0;it.$id!==e),this.$bus.$emit("removeData",e)}}clearSelectionEmit(e){e&&(this.clearSelection(),this._fetchRecords())}subgridEditPropsHandler(e){this.subGridChangedProps[this.subGridChangedProps.length]=e}initCustomerData(){Object.keys(this.fromEntityCustomerData).length>0&&(this.customerData={...this.fromEntityCustomerData})}getSubgridEditableFields(e,t,r){let i=!1;if(this.cellFieldInfo[t]){if(this.cellFieldInfo[t].isMask||[fs.g.ReadOnly,fs.g.CalculateFields].includes(this.cellFieldInfo[t].requiredLevel))return i=!1,void r.push(t);if(i=this.cellFieldInfo[t].ifEditable,!rt.isNullOrWhiteSpace(this.cellFieldInfo[t].ifEditableExpression))try{const r=Object.assign({},this.$data,this.$props);this.$options&&this.$options.computed&&Object.keys(this.$options.computed).forEach(e=>{const t=this[e];r[e]=t}),r.row=e,r.customerData=this.customerData,i=this.getFunctionByExpression(this.cellFieldInfo[t].ifEditableExpression,[]).call(r)}catch(e){i=!1}i||r.push(t)}else i=!1}validateCurrentRow(e,t){let r=[];for(const s in this.subgridCellFields)this.getSubgridEditableFields(e,s,r);let i,a={...this.subgridRules};r.length&&r.forEach(e=>delete a[e]),"function"!=typeof t&&window.Promise&&(i=new Promise((e,r)=>{t=t=>{t?e(t):r(t)}}));let n=!0;0===Object.keys(a).length&&t&&t(!0);let o=[];for(const s in a){const r=e[s],i=a[s].trigger;a[s].validator(i,r,e=>{e&&(n=!1),n||o.push(s),"function"==typeof t&&t(n,o)},null,{row:e})}if(i)return i}initSubgridEditableFields(){this.openNextFields.length&&(this.openNextFields=[...new Set(this.openNextFields)])}resetSubgridInCreateFormData(){this.subgridDataInCreateForm=[],this.$bus.$emit("subgridDataHandler",this.subgridBlurSaveHandler())}_reloadFromEntityHandle(){this.$emit("reloadFromEntity")}async attributeMappingCallback(e,t,r,i){if(null==this.attributeMappings||0==Object.keys(this.attributeMappings).length)return;if(null==this.attributeMappings[r])return;let a=this.attributeMappings[r];if(null!=i&&(a=a.filter(e=>e.refentityname==i)),0!=a.length)if(null==t)e.isAdd&&a.forEach(t=>{this.setMappingResult(e,t.attributename,null)});else{let i=`api/common/${this.targetEntityType}/GetDefaultValueByAttributeMapping`,n={};n[r]={id:t.$id,logicalName:t.$logicalName},await rt.post(i,n).then(t=>{a.forEach(r=>{const i=t[r.attributename];if("nvarchar"!=r.attributetypename&&"ntext"!=r.attributetypename&&"text"!=r.attributetypename||"lookup"!=r.refattributetypename){let t=i||null;[0,"0",!1].includes(i)&&(t=i),this.setMappingResult(e,r.attributename,t)}else this.setMappingResult(e,r.attributename,i?i.name:null)})})}}setMappingResult(e,t,r){const i=this.mappingResult[e.$id]||{};i[t]=r,this.mappingResult[e.$id]=i}updateTableDataByRow(e,t,r){if(e[t]=r,e.isAdd){const i=this.subgridDataInCreateForm.find(t=>t.$id===e.$id);i&&(i[t]=r)}this.subGridChangedProps.push(t)}render(e){return ru(e,this)}};Object(J.__decorate)([Object(te.d)({type:String,required:!0})],ou.prototype,"viewId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],ou.prototype,"parentId",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"parentPrimaryAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],ou.prototype,"fromEntityisMounted",void 0),Object(J.__decorate)([Object(te.d)({type:String})],ou.prototype,"targetEntityType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],ou.prototype,"relationFilterAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:String})],ou.prototype,"relationFilterValue",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],ou.prototype,"showPagination",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],ou.prototype,"enableSelect",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:5})],ou.prototype,"recordsPerPage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],ou.prototype,"needjump",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"listTableSearchString",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1,required:!0})],ou.prototype,"isPrint",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],ou.prototype,"fromEntity",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"fromEntityName",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"subGridRefAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:0})],ou.prototype,"relationshipType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],ou.prototype,"relationshipName",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],ou.prototype,"subgridIsReadonly",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],ou.prototype,"formStatus",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"subgridkey",void 0),Object(J.__decorate)([Object(te.d)({type:Object,default:()=>({})})],ou.prototype,"fromEntityCustomerData",void 0),Object(J.__decorate)([Object(te.d)({type:Object,default:()=>({})})],ou.prototype,"fieldWithHandler",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],ou.prototype,"objectId",void 0),Object(J.__decorate)([Object(te.e)("refProvide")],ou.prototype,"refProvide",void 0),Object(J.__decorate)([Object(te.e)("getEntityDisplayName")],ou.prototype,"getEntityDisplayName",void 0),Object(J.__decorate)([Object(te.b)("subgridFormData")],ou.prototype,"subgridFormData",void 0),Object(J.__decorate)([Object(te.g)("fromEntityisMounted",{immediate:!0})],ou.prototype,"fromEntityisMountedHandler",null),ou=Object(J.__decorate)([Object(te.a)({name:"ListTable",components:{CustomTableColumn:au}})],ou);var su=ou,lu=(r("1d8f"),Object(_.a)(su,void 0,void 0,!1,null,"2aad5020",null).exports);function du(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let cu=class extends(Object(te.c)(Ls.a,ye.a)){constructor(...e){super(...e),du(this,"showStyle",void 0),du(this,"title",void 0),du(this,"viewId",void 0),du(this,"parentId",void 0),du(this,"targetEntityType",void 0),du(this,"relationFilterAttribute",void 0),du(this,"relationFilterValue",void 0),du(this,"hasEntityImage",void 0),du(this,"enableSelect",void 0),du(this,"recordsPerPage",void 0),du(this,"needjump",void 0),du(this,"listTableSearchString",void 0),du(this,"isPreview",void 0),du(this,"isPrint",void 0),du(this,"fromEntity",void 0),du(this,"relationshipType",void 0),du(this,"relationshipName",void 0),du(this,"formStatus",void 0),du(this,"subgridkey",void 0),du(this,"hiddenDefaultDiagram",void 0),du(this,"objectIdForTiledTable",void 0),du(this,"columns",void 0),du(this,"datetimeformat",void 0),du(this,"isCustomHeight",void 0),du(this,"isAllData",!1),du(this,"loading",!1),du(this,"loading_schemas",!1),du(this,"isShow",!1),du(this,"pageSize",this.recordsPerPage),du(this,"dataTotalCount",0),du(this,"PaginationType",0),du(this,"pageIndex",1),du(this,"primaryAttribute",null),du(this,"statusAttribute",null),du(this,"selectedValues",[]),du(this,"timelineViewList",[]),du(this,"statuslineViewList",[]),du(this,"tableData",[]),du(this,"tableRows",[]),du(this,"queryAttributes",{}),du(this,"ifKeepSelection",!1),du(this,"category",""),du(this,"isLoading",!1),du(this,"currentQueryId",this.viewId),du(this,"viewprimaryfield",!1),du(this,"inlineButtons",[]),du(this,"isSubgrid",!0),du(this,"privileges",null),du(this,"LayoutXmlMd5","-1"),du(this,"allSchema",{})}get styleStr(){switch(Number(this.showStyle)){case 1:return"list";case 2:return"flat";case 3:return"timeline";case 5:return"statusline";case 10:return"card";default:return""}}get iconUrl(){return rt.getBaseUrl()+"api/meta/"+this.targetEntityType+"/image"}get scrollerHeight(){if(!this.isShow){let e=0;return(this.primaryAttribute||this.statusAttribute)&&(e+=1),this.tableRows&&(e+=this.tableRows.length),23*e+"px"}return""}get advanceCardId(){return 1==this.relationshipType?this.relationshipName+"_id":"$id"}get timeLineList(){let e=[];return 0==this.tableData.length||(0==this.timelineViewList.length?this.tableData.forEach(t=>{const r={};this.tableRows.forEach(e=>{e.forEach(e=>{r.content=this.getValueByAttribute(e,t),r.timestamp=this.getValueByAttribute(this.primaryAttribute,t)})}),e.push(r)}):this.tableData.forEach(t=>{let r={};for(let e of this.timelineViewList)"viewprimaryfield"==e.$nodetype&&e.children&&e.children.length>0&&(r.content=this.getValueByAttribute(e.children[0].props,t),r.format=e.children[0].props.datetimeformat,this.viewprimaryfield=!0),this.isLoading=!1,"viewcontentfield"==e.$nodetype&&e.children&&e.children.length>0&&(r.timestamp=this.getValueByAttribute(e.children[0].props,t));e.push(r)})),e}get statusLineList(){let e=[];return 0==this.tableData.length||(this.tableData=this.dedupTable(),this.tableData.forEach(t=>{let r={};for(let e of this.statuslineViewList)"viewprimaryfield"==e.$nodetype&&e.children&&e.children.length>0&&(r.primaryField=this.getValueByAttribute(e.children[0].props,t)),"viewsecondfield"==e.$nodetype&&e.children&&e.children.length>0&&(r.secondField=this.getValueByAttribute(e.children[0].props,t)),"viewcontentfield"==e.$nodetype&&e.children&&e.children.length>0&&(r.contentField=this.getValueByAttribute(e.children[0].props,t));e.push(r)})),e}get IsNullValueDisplay(){return this.$store.state.systemparameter.IsNullValueDisplay}get NullValueDisplay(){return this.$store.state.systemparameter.NullValueDisplay}get isLookupCell(){return e=>{if(!e)return!1;const t=e.toLowerCase();return["owner","lookup","multipletypelookup","customer"].includes(t)}}get subGridData(){return this.$_t("platform.noData","暂无数据")}get objectId(){return this.objectIdForTiledTable}objectIdHandler(e){e&&this.viewId&&(this.isCustomHeight?this._fetchRecords(-2):this._fetchRecords())}isCustomHeightHandler(e){e&&this._fetchRecords(-2)}mounted(){this.pageSize="flat"!==this.styleStr||this.isCustomHeight?1e4:this.recordsPerPage,this.isLoading=!0,this.tableData=[],this.viewId&&this._loadPage(),this.$PlatUtils.listenerHook(this,"loadCardTable",()=>{this.viewId&&(this.isPrint?this._fetchRecords(-2):this._fetchRecords())}),this.$PlatUtils.listenerHook(this,"clearSelection"+this.subgridkey,e=>{e&&this._fetchRecords(-1)})}isQyWxTenantField(e,t){return!!e&&("owner"==e.attributeType||"lookup"==e.attributeType&&("new_srv_worker"==e.referencedEntity||"systemuser"==e.referencedEntity)||"new_name"==e.datafieldname&&"new_srv_worker"==t.$logicalname||"fullname"==e.datafieldname&&"systemuser"==t.$logicalname)}getNullDisplay(e,t=1){return!(["",null,void 0].includes(e)||Array.isArray(e)&&0==e.length)||!0!==this.IsNullValueDisplay&&"true"!==this.IsNullValueDisplay?1==t?"":e:this.NullValueDisplay?this.NullValueDisplay:"--"}dedupTable(){let e=[];return this.tableData.forEach(t=>{const r=e.findIndex(e=>e.$id==t.$id);-1===r?e.push(t):e.splice(r,1,t)}),e}checkAllData(e){this.$emit("setSelections",e)}changeTableSize(e){this.ifKeepSelection=!0}__getIndexDBKey(){let e=this.targetEntityType;return this.viewId&&(e+="/"+this.viewId),e+="/subgrid",e}_loadPage(){this.__loadSchemasForIndexedDB().finally(()=>{this.$nextTick(()=>{this.__loadSchemas().then(()=>{this.objectId&&(this.isPrint?this._fetchRecords(-2):(this.queryAttributes.requestApi&&(this.isAllData=!1,this.tableData=[]),this._fetchRecords()))})})})}__loadSchemasForIndexedDB(){return new Promise(e=>{let t=this.__getIndexDBKey();this.$apaasStorage.openDB(1,(r,i)=>{this.$apaasStorage.find(r,i,t,t=>{try{if(r.close(),t&&t.data){let e=JSON.parse(t.data);this.__loadSchemasDetail(e)}}catch(e){}return e()},()=>e(),!0)})})}__loadSchemas(){return new Promise(e=>{const t={entityName:this.targetEntityType,category:this.category,queryId:this.viewId||this.targetEntityType,platformType:1};return this.isPrint&&(t.isPrint=this.isPrint),this.parentId&&0!==this.formStatus&&(t.objectId=this.parentId),this.relationFilterAttribute&&(t.filterAttribute=this.relationFilterAttribute),this.LayoutXmlMd5&&(t.LayoutXmlMd5=this.LayoutXmlMd5),this.loading_schemas=!0,rt.get("api/vlist/GetSubgridListPage",t).then(t=>{this.LayoutXmlMd5!==t.LayoutXmlMd5||t.LayoutJson||(t.LayoutJson=this.allSchema.LayoutJson),this.isPreview||this.$apaasStorage.openDB(1,(e,r)=>{this.$apaasStorage.add(e,r,this.__getIndexDBKey(),JSON.stringify(t))}),this.__loadSchemasDetail(t),e(t)}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading_schemas=!1})})}__loadSchemasDetail(e){if(!e||!e.LayoutJson)return void rt.showErrorToast("card's LayoutJson is null");const t=JSON.parse(e.LayoutJson);if("grid"!==t.$nodetype)return;let r,i,a,n;e.Category&&(this.category=e.Category),this.LayoutXmlMd5=e.LayoutXmlMd5,this.allSchema=e,this.queryAttributes.pagingCount=t.props.pagingCount,this.queryAttributes.paging=t.props.paging,this.queryAttributes.jump=t.props.jump,this.queryAttributes.jumpFormId=t.props.jumpFormId,this.queryAttributes.jumpAddFormId=t.props.jumpAddFormId,this.queryAttributes.jumpUrlExpression=t.props.jumpUrlExpression,this.queryAttributes.disableJump=t.props.disableJump,this.queryAttributes.requestApi=t.props.requestApi,this.$emit("setQueryAttributes",this.queryAttributes),this.$emit("updateDisplayName",e.EntityDisplayName),e.privileges&&(this.privileges=e.privileges,this.$emit("updatePrivileges",e.privileges)),t.children.forEach(e=>{switch(e.$nodetype){case"gridtable":r=e;break;case"mobilelistitem":i=e;break;case"timeline-view":a=e;break;case"statusline-view":n=e}}),r?this.buildAttributesByGridTable(r):i&&this.buildAttributesByMobileList(i),"timeline"===this.styleStr?this.buildTimeLineList(a):"statusline"===this.styleStr&&this.buildStatusLineList(n)}beforeLoad(){this.load(),this.$emit("subGridReload")}load(){this.isAllData=!1,this.objectId&&(this.isShow?this._fetchRecords(-2):this._fetchRecords(-1))}assignCallback(){this.load()}_fetchRecords(e){if(!this.relationFilterAttribute)return void rt.showErrorToast("relationFilterAttribute is null");if(!this.parentId)return;if(this.isAllData)return;let t,r;this.loading=!0,this.queryAttributes.requestApi&&this.getFunctionByExpression?r=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this):(r="api/vlist/ExecuteQuery",t=-2==e?this.getQueryParams():this.getQueryParams(1)),rt.get(r,t).then(t=>{this.ifKeepSelection||this.clearSelection(),t.Entities&&t.Entities.length>0&&(-1==t.TotalRecordCount?this.PaginationType=1:t.CountType&&0!=t.CountType?(this.PaginationType=2,t.Entities.length>0?this.dataTotalCount=t.Entities.length:this.dataTotalCount=t.TotalRecordCount):(this.PaginationType=0,this.dataTotalCount=t.TotalRecordCount),-1==e?this.tableData=t.Entities:-2==e?(this.tableData=t.Entities,this.dataTotalCount=t.Entities.length):this.tableData.push(...t.Entities),this.tableData=this.dedupTable()),t.Entities&&0==t.Entities.length&&(this.tableData=[],this.dataTotalCount=0),this.tableData.length==this.dataTotalCount?this.isAllData=!0:this.isAllData=!1;const r=0==this.PaginationType?"":this.$_t("common.about","大约");this.$emit("updateCount",r+this.dataTotalCount),this.$emit("dataLoaded",this.dataTotalCount)}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1,this.ifKeepSelection=!1})}buildAttributesByMobileList(e){e.children.forEach(e=>{switch(e.$nodetype){case"mobilelistitemprimary":e.children&&e.children.length>0&&(this.primaryAttribute=e.children[0].props);break;case"mobilelistitemstatus":e.children&&e.children.length>0&&(this.statusAttribute=e.children[0].props);break;case"section":e.children&&e.children.length>0&&e.children.filter(e=>"row"==e.$nodetype).forEach(e=>{let t=[];e.children.filter(e=>"cell"==e.$nodetype).forEach(e=>{e.children&&e.children.length>0&&t.push(e.children[0].props)}),t&&this.tableRows.push(t)})}})}buildAttributesByGridTable(e){const t=e.children.filter(e=>"gridcell"==e.$nodetype),r=e.children.find(e=>"toolbar"==e.$nodetype);r&&(this.inlineButtons=r.children||[]);const i=[];t.forEach((e,t)=>{if(e.datafieldname==this.queryAttributes.jump&&!e.props.relationshipName){const t={};t.formtype=e.props.formtype,t.formid=e.props.formid,t.url=e.props.url,t.needjump=!0,this.$emit("setJumpInfo",t)}if(0==t)this.primaryAttribute=e.props;else{const t=[];t.push(e.props),i.push(t)}}),this.tableRows=i}buildTimeLineList(e){e&&e.children&&e.children.length>0&&("viewprimaryfield"===e.children[0].$nodetype&&e.children[0].children&&e.children[0].children.length>0&&(this.viewprimaryfield=!0),this.timelineViewList=e.children),this.isLoading=!1}buildStatusLineList(e){e&&e.children&&e.children.length>0&&("viewprimaryfield"===e.children[0].$nodetype&&e.children[0].children&&e.children[0].children.length>0&&(this.viewprimaryfield=!0),this.statuslineViewList=e.children)}getValueByAttribute(e,t){const r=this.getFieldName(e),i={isMillimeter:null==e?void 0:e.isMillimeter,options:null==e?void 0:e.options,dataType:null==e?void 0:e.attributeType,precision:null==e?void 0:e.precision,dateTimeFormat:null==e?void 0:e.dateTimeFormat,displayNumbersByPrecision:this.displayNumbersByPrecision,preserveNewLines:!0};return this.getText(r,t,i)}showMore(){this.isShow=!this.isShow,this._fetchRecords(-2)}gotoEditPage(e,t){this.$emit("gotoEditPage",e),t.preventDefault()}getQueryParams(e){const t={};return t.entityName=this.targetEntityType,t.platformType=1,t.queryid=this.viewId,t.$pageIndex=this.pageIndex,t.$pageSize=e?this.pageSize:e,t.relationFilterAttribute=this.relationFilterAttribute,t.relationFilterValue=this.parentId,t.isLookup=!0,(this.$route.params.stepid||this.$route.params.taskid)&&(t.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(t.toDoTaskId=this.$route.params.todotaskid),this.relationshipType&&(t.relationshipType=this.relationshipType),this.relationshipName&&(t.relationshipName=this.relationshipName),t}clearSelection(){this.selectedValues=[],this.$refs.table&&this.$refs.table.clearSelection(),this.$emit("setSelections",[])}};Object(J.__decorate)([Object(te.d)({type:Number,default:2})],cu.prototype,"showStyle",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],cu.prototype,"title",void 0),Object(J.__decorate)([Object(te.d)({type:String,required:!0})],cu.prototype,"viewId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"parentId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"targetEntityType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"relationFilterAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"relationFilterValue",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"hasEntityImage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"enableSelect",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:5})],cu.prototype,"recordsPerPage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"needjump",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],cu.prototype,"listTableSearchString",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"isPreview",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1,required:!0})],cu.prototype,"isPrint",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],cu.prototype,"fromEntity",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:0})],cu.prototype,"relationshipType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"relationshipName",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],cu.prototype,"formStatus",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],cu.prototype,"subgridkey",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"hiddenDefaultDiagram",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],cu.prototype,"objectIdForTiledTable",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:1})],cu.prototype,"columns",void 0),Object(J.__decorate)([Object(te.d)({type:String})],cu.prototype,"datetimeformat",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],cu.prototype,"isCustomHeight",void 0),Object(J.__decorate)([Object(te.g)("objectId")],cu.prototype,"objectIdHandler",null),Object(J.__decorate)([Object(te.g)("isCustomHeight")],cu.prototype,"isCustomHeightHandler",null),cu=Object(J.__decorate)([Object(te.a)({name:"TiledTable"})],cu);var uu=cu,pu=(r("d55d"),Object(_.a)(uu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return"flat"===e.styleStr?r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading||e.loading_schemas,expression:"loading || loading_schemas"}],staticClass:"plat-section-table"},["flat"===e.styleStr?[r("rc-advance-table-group",{directives:[{name:"show",rawName:"v-show",value:e.dataTotalCount>0,expression:"dataTotalCount > 0"}],ref:"_queryList",attrs:{"show-check-all":e.enableSelect,"check-all-visible":!1,col:1,"default-rows":e.isPrint?e.dataTotalCount:2,"show-collapse":!e.isPrint&&e.tableData.length>2,"label-list":e.tableData,alias:{valueKey:e.advanceCardId},"default-expand":e.isCustomHeight},on:{"roll-up":e.showMore,input:e.checkAllData},scopedSlots:e._u([{key:"collapse",fn:function(t){var i=t.item;return r("rc-advance-table-item",{key:i.$id,class:e.isPrint?"hiddenName":"",attrs:{"show-check":e.enableSelect,label:1==e.relationshipType?i[e.relationshipName+"_id"]:i.$id}},[r("rc-descriptions",{staticClass:"flat-list-descriptions",attrs:{column:e.columns}},[r("div",{staticClass:"advance-table-item-title",attrs:{slot:"title"},slot:"title"},[r("div",{staticClass:"title-text"},[e.statusAttribute?[e.isQyWxTenant&&e.isQyWxTenantField(e.statusAttribute,i)?[r("rt-ww-open-data",{attrs:{type:"userName",openid:e.getValueByAttribute(e.statusAttribute,i)}})]:[e._v(" "+e._s(e.getNullDisplay(e.getValueByAttribute(e.statusAttribute,i),2))+" ")]]:e._e(),e.primaryAttribute?[e.isQyWxTenant&&e.isQyWxTenantField(e.primaryAttribute,i)?[r("rt-ww-open-data",{attrs:{type:"userName",openid:e.getValueByAttribute(e.primaryAttribute,i)}})]:[e._v(" "+e._s(e.getNullDisplay(e.getValueByAttribute(e.primaryAttribute,i),2))+" ")]]:e._e()],2),e.isPrint?e._e():r("rc-button",{staticClass:"advance-details",attrs:{"color-type":"neutral-tertiary",text:"",size:"small"},on:{click:function(t){return e.gotoEditPage(i,t)}}},[e._v(e._s(e.$_t("common.Details","详情"))+" ")])],1),e._l(e.tableRows,(function(t,a){return e._l(t,(function(t,n){return r("rt-descriptions-item",{key:a+"_"+n,attrs:{label:e.$_t(t.langkey,t.label||t.displayName)}},[e.isQyWxTenant&&e.isQyWxTenantField(t,i)?[r("rt-ww-open-data",{attrs:{type:"userName",openid:e.getValueByAttribute(t,i)}})]:[e._v(e._s(e.getValueByAttribute(t,i)||e.getNullDisplay(e.getValueByAttribute(t,i))))]],2)}))}))],2)],1)}}],null,!1,2691878064),model:{value:e.selectedValues,callback:function(t){e.selectedValues=t},expression:"selectedValues"}}),0==e.dataTotalCount?r("div",{staticClass:"rt-saas-nodata"},[r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.subGridData))])])],1):e._e()]:e._e()],2):"timeline"===e.styleStr?r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.isLoading,expression:"isLoading"}]},[r("rt-timeline",{attrs:{viewprimaryfield:e.viewprimaryfield,title:e.title,"default-expand":e.isCustomHeight,"data-list":e.timeLineList,"is-sub-grid":!0,"hidden-default-diagram":e.hiddenDefaultDiagram}})],1):"statusline"===e.styleStr?r("div",{staticClass:"plat-section-statusline"},[r("rt-statusline",{attrs:{title:e.title,"default-expand":e.isCustomHeight,viewprimaryfield:e.viewprimaryfield,"data-list":e.statusLineList,"is-sub-grid":!0,"hidden-default-diagram":e.hiddenDefaultDiagram}})],1):e._e()}),[],!1,null,"3f867f48",null).exports),hu=r("b330");function fu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let mu=class extends(Object(te.c)(Jc)){constructor(...e){super(...e),fu(this,"viewId",void 0),fu(this,"parentId",void 0),fu(this,"parentPrimaryAttribute",void 0),fu(this,"fromEntityisMounted",void 0),fu(this,"targetEntityType",void 0),fu(this,"relationFilterAttribute",void 0),fu(this,"relationFilterValue",void 0),fu(this,"showPagination",void 0),fu(this,"enableSelect",void 0),fu(this,"recordsPerPage",void 0),fu(this,"needjump",void 0),fu(this,"listTableSearchString",void 0),fu(this,"isPrint",void 0),fu(this,"fromEntity",void 0),fu(this,"fromEntityName",void 0),fu(this,"subGridRefAttribute",void 0),fu(this,"relationshipType",void 0),fu(this,"relationshipName",void 0),fu(this,"formStatus",void 0),fu(this,"hiddenDefaultDiagram",void 0),fu(this,"cardTableCol",void 0),fu(this,"cardTableRowTitle",void 0),fu(this,"subgridkey",void 0),fu(this,"fromEntityCustomerData",void 0),fu(this,"subgridIsReadonly",void 0),fu(this,"objectId",void 0),fu(this,"cardTableContext",this),fu(this,"pageType",fs.e.PCSubGrid),fu(this,"isCardTable",!0),fu(this,"PrimaryEntityName",""),fu(this,"pageSchema",void 0),fu(this,"subgridHasEditableField",[]),fu(this,"subGridChangedProps",[]),fu(this,"subgridDataInCreateForm",[]),fu(this,"jumpInfo",{}),fu(this,"subgridForm",{subgridData:[]}),fu(this,"dependentRelationshipMapping",{}),fu(this,"category",""),fu(this,"isMounted",!1),fu(this,"currentQueryId",this.viewId),fu(this,"subgridValidateResult",!0),fu(this,"cellFieldInfo",{}),fu(this,"isSubgrid",!0),fu(this,"attributeMappings",{}),fu(this,"privileges",null),fu(this,"queryAttributes",{})}get allSubgridData(){return[...this.tableData]}fromEntityisMountedHandler(){this.initCustomerData()}mounted(){this.$PlatUtils.listenerHook(this,"fromEntityisMounted",this.initCustomerData),this.$PlatUtils.listenerHook(this,"operate-cell-update-card"+this.targetEntityType,this.setCurrentRow),this.$PlatUtils.listenerHook(this,"subgridEditProps_"+this.subgridkey,this.subgridEditPropsHandler),this.$PlatUtils.listenerHook(this,"updateSubgrid_"+this.subgridkey,this.updateSubgridData),this.fetch(),this.initCellChangeHandle()}initRowInCreate(){const e={fromEntity:this.fromEntity,subGridRefAttribute:this.subGridRefAttribute,fromEntityName:this.fromEntityName,parentPrimaryAttribute:this.parentPrimaryAttribute,relationshipName:this.relationshipName,formStatus:this.formStatus};this.addSubgridRowHandler(e)}gotoCardTableEditPage(e){this.$emit("gotoEditPage",e)}initCellChangeHandle(){const e=this.targetEntityType+"_saveSubGrid";this.$off(e),this.$PlatUtils.listenerHook(this,e,()=>{this.updateSubgridData(this.currentRow)},!1)}setCurrentRow(e){this.currentRow=e}showFormDialogByRow(e){const t=e.dialogFormLogicalName,r=e.label;this.$emit("showFormDialog",this.currentRow.$id,r,t,this.targetEntityType,this.load,e.dialogFormSize)}defaultFunc(){this.$message(this.$_t("platform.vlistcoreButtonType","不适用的按钮操作类型"))}load(){this.fetch()}assignCallback(){this.load()}fetch(){return this.pageInfo={pageIndex:1,pageSize:20},this._fetchRecords()}_fetchRecords(){return new Promise(e=>{if(!(this.viewId&&this.pageInfo&&this.parentId&&this.relationFilterAttribute))return e([]);{let t,r;this.queryAttributes.requestApi?t=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this):(t="api/vlist/ExecuteQuery",r=this.getQueryParams()),rt.get(t,r).then(t=>{const r=this.tableData.length;-1==t.TotalRecordCount?(this.PaginationType=1,0==r||r0?this.dataTotalCount=t.Entities.length:this.dataTotalCount=t.TotalRecordCount):(this.PaginationType=0,this.dataTotalCount=t.TotalRecordCount),this.$set(this.subgridForm,"subgridData",[...this.subgridDataInCreateForm,...t.Entities]);const i=[...t.Entities],a=new Map;i.forEach((e,t)=>{a.set(e.$id,t)});const n=[];for(const e of this.subgridDataInCreateForm)!0===e.isAdd?i.push(e):a.has(e.$id)?i[a.get(e.$id)]=e:n.push(e);n.length>0&&(this.subgridDataInCreateForm=this.subgridDataInCreateForm.filter(e=>!n.includes(e)));const o=i;return this.tableData=o,this.$emit("dataLoaded",this.dataTotalCount),e(o)}).catch(t=>(rt.showErrorToast(t),e([])))}})}__loadSchemas(){let e={entityName:this.targetEntityType,category:this.category,queryId:this.viewId||this.targetEntityType,platformType:1};return this.isPrint&&(e.isPrint=this.isPrint),this.parentId&&0!==this.formStatus&&(e.objectId=this.parentId),this.relationFilterAttribute&&(e.filterAttribute=this.relationFilterAttribute),this.LayoutXmlMd5&&(e.LayoutXmlMd5=this.LayoutXmlMd5),rt.get("api/vlist/GetSubgridListPage",e).then(e=>{this.LayoutXmlMd5!==e.LayoutXmlMd5||e.LayoutJson||(e.LayoutJson=this.allSchema.LayoutJson),this.isPreview||this.$apaasStorage.openDB(1,(t,r)=>{this.$apaasStorage.add(t,r,this.__getIndexDBKey(),JSON.stringify(e))}),this.__loadSchemasDetail(e)}).catch(e=>{rt.showErrorToast(e)}).finally()}__getIndexDBKey(){let e=this.targetEntityType;return this.viewId&&(e+="/"+this.viewId),e+="/subgrid",e}__loadSchemasForIndexedDB(){return new Promise(e=>{let t=this.__getIndexDBKey();this.$apaasStorage.openDB(1,(r,i)=>{this.$apaasStorage.find(r,i,t,t=>{try{if(r.close(),t&&t.data){let e=JSON.parse(t.data);this.__loadSchemasDetail(e)}}catch(e){}return e()},()=>e(),!0)})})}__loadSchemasDetail(e){if(!e)return e;const t=Object(hu.a)(e,this);this.EntityDisplayName=e.EntityDisplayName,this.PrimaryEntityName=e.PrimaryEntityName,this.LayoutXmlMd5=e.LayoutXmlMd5,this.allSchema=e;let r=[];try{var i;const t=JSON.parse(e.LayoutJson||"{}");r=(null==t||null===(i=t.props)||void 0===i?void 0:i.searchableFields)||[]}catch(e){r=[]}this.$emit("updateSearchableFields",r),t&&(this.queryAttributes=t.queryAttributes||{}),e.Category&&(this.category=e.Category),this.attributeMappings=e.attributemappings||{},this.queryAttributes.jumpFormId&&!this.queryAttributes.jump&&(this.jumpInfo.formid=this.queryAttributes.jumpFormId),this.$emit("setQueryAttributes",this.queryAttributes),this.$emit("updateDisplayName",this.EntityDisplayName),e.privileges&&(this.privileges=e.privileges,this.$emit("updatePrivileges",e.privileges)),this.schemaLoaded=!0,this.isMounted||(this.__execMounted(),this.isMounted=!0,0===this.formStatus&&this.$nextTick(()=>{Object.keys(this.subgridHasEditableField).length>0&&this.initRowInCreate()}))}editByRow(){this.rowDblclick(this.currentRow)}vformcoreBtnSave(){0!==this.allSubgridData.length?this.$PlatUtils.validateFormByRc(this.$refs.cardTableForm,async(e,t)=>{try{this.subgridValidateResult=e,e||rt.showErrorToast(t)}catch(e){rt.showErrorToast(e)}}):this.subgridValidateResult=!0}subgridBlurSave(e){this.$emit("blurAndSave",e)}rowDblclick(e){if(this.jumpInfo&&this.jumpInfo.needjump&&"form"!=this.jumpInfo.formtype)return this.$refs.jumpAttribute.gotoEditPage(e);this.$emit("gotoEditPage",e)}selectionChange(e){this.multipleSelection=e,this.$emit("setSelections",e)}handleSortChange(){}getQueryParams(){const e={};return e.entityName=this.targetEntityType,e.queryid=this.viewId,e.$pageIndex=this.pageInfo.pageIndex,e.$pageSize=this.pageInfo.pageSize,this.showPagination?null!=this.queryAttributes.paging&&(e.$paging=this.queryAttributes.paging):e.$paging=!1,e.$search=this.listTableSearchString,e.relationFilterAttribute=this.relationFilterAttribute,e.relationFilterValue=this.parentId,e.isLookup=!0,(this.$route.params.stepid||this.$route.params.taskid)&&(e.ApproveStepId=this.$route.params.stepid||this.$route.params.taskid),this.$route.params.todotaskid&&(e.toDoTaskId=this.$route.params.todotaskid),this.relationshipType&&(e.relationshipType=this.relationshipType),this.relationshipName&&(e.relationshipName=this.relationshipName),e}delByRow(){let e=this.currentRow.$id;if(0==this.formStatus||this.currentRow.isAdd)return void this.newSubgridDeleteRowHandler(e);window.event&&window.event.stopPropagation();let t=this.targetEntityType;if(1==this.relationshipType&&(e=this.currentRow[this.relationshipName+"_id"],t=this.relationshipName),!e||!t)return void rt.showErrorToast(this.$_t("common.pls_save_info","请先保存数据"));let r=[];r.push(e),1==this.relationshipType?this.deleteByRelationship(t,r,this.fromEntityName).then(()=>{this.load()}):this.deleteByIds(t,r).then(()=>{this.multipleSelection=[],this.load()})}grantAccessByRow(){this.checkIsPreview()||this.$refs.GrantAccessDialog.show([this.currentRow.$id])}cardTableShowDrawer(e,t,r,i,a){this.showDrawer(e,t,r,i,a)}assignByRow(e){this.checkIsPreview()||(e&&e.defaultViewId?this.$refs.AssignDialog.show([this.currentRow.$id],e.defaultViewId):this.$refs.AssignDialog.show([this.currentRow.$id]))}async addSubgridRowHandler(e){if(this.tableData.length>=5)return void rt.showErrorToast(this.$_t("five_entries","卡片风格下,子网格数据不能超过五条"));if(!Object.keys(this.subgridHasEditableField).length)return void rt.showErrorToast(this.$_t("platform.subgridHasNoEditableField","当前子网格未设置可行内编辑的字段"));let t={};const r=await rt.post(`api/dynamic/${this.targetEntityType}/GetDefaultValue`);t[e.subGridRefAttribute]={id:e.fromEntity.$id,$id:e.fromEntity.$id,logicalname:e.fromEntity.$logicalname,$logicalname:e.fromEntity.$logicalname,name:e.fromEntity[this.parentPrimaryAttribute]},t={...t,...r},t.isAdd=!0,t.query=e,t.isCreating=!0,t.$id=rt.newUUID();for(const i in r)"number"==typeof r[i]&&(t[i]=r[i]);this.parentId&&this.formStatus&&await this.attributeMappingCallback(t,t[e.subGridRefAttribute],e.subGridRefAttribute,e.fromEntityName),t.FormattedValues=r.FormattedValues,t.FormattedColors=r.FormattedColors,this.appendDataToCreateForm(t)}async addSubgridRowWithData(e,t){if(this.tableData.length>=5)return void rt.showErrorToast(this.$_t("five_entries","卡片风格下,子网格数据不能超过五条"));let r={...t,isAdd:!0,query:e,isCreating:!0};this.appendDataToCreateForm(r);for(let i in t)t[i]&&!this.isEmptyArrayOrEmptyObject(t)&&this.subGridChangedProps.push(i);rt.showSuccessToast(this.$_t("Successfullyadded","添加成功"))}isEmptyArrayOrEmptyObject(e){return"object"==typeof e&&null!==e?0===Object.keys(e).length:!!Array.isArray(e)&&0===e.length}updateSubgridData(e){this.setCurrentRow(e);const t=this.subgridDataInCreateForm.findIndex(t=>t.$id==e.$id);-1===t?this.subgridDataInCreateForm.push(e):this.subgridDataInCreateForm.splice(t,1,e);const r=this.tableData.findIndex(t=>t.$id==e.$id);-1!==r&&this.$set(this.tableData,r,e),this.$set(this.subgridForm,"subgridData",[...this.tableData])}appendDataToCreateForm(e){this.tableData.unshift(e),this.subgridDataInCreateForm.unshift(e);const t=this.subgridForm.subgridData;t.unshift(e),this.$set(this.subgridForm,"subgridData",t)}getSubgridChangedProps(e,t){const r=["$id","isCreating",...t];return e.map(e=>{const t={};return r.forEach(r=>{e.hasOwnProperty(r)&&(t[r]=e[r])}),t})}subgridBlurSaveHandler(){let e=_e.a.toReversed(this.subgridDataInCreateForm);e=this.getSubgridChangedProps(e,this.subGridChangedProps);let t=[];return e.forEach((e,r)=>{e.tagId=e.$id;for(const i in e)(this.subGridChangedProps.indexOf(i)>-1||e.isCreating)&&(t[r]={...t[r],[i]:e[i],$id:e.$id},e.isCreating&&delete e.$id)}),{[this.relationshipName]:t}}newSubgridDeleteRowHandler(e){if(!e)return;const t=this.tableData.findIndex(t=>t.$id===e);-1!=t&&this.tableData.splice(t,1),this.subgridDataInCreateForm=this.subgridDataInCreateForm.filter(t=>t.$id!==e);const r=this.subgridForm.subgridData.filter(t=>t.$id!==e);this.$set(this.subgridForm,"subgridData",r),this.$bus.$emit("removeData",e)}subgridEditPropsHandler(e){-1===this.subGridChangedProps.indexOf(e)&&(this.subGridChangedProps[this.subGridChangedProps.length]=e)}initCustomerData(){Object.keys(this.fromEntityCustomerData).length>0&&(this.customerData={...this.fromEntityCustomerData})}resetSubgridInCreateFormData(){this.subgridDataInCreateForm=[],this.subGridChangedProps=[],this.$bus.$emit("subgridDataHandler",this.subgridBlurSaveHandler())}async attributeMappingCallback(e,t,r,i){if(null==this.attributeMappings||0==Object.keys(this.attributeMappings).length)return;if(null==this.attributeMappings[r])return;let a=this.attributeMappings[r];if(null!=i&&(a=a.filter(e=>e.refentityname==i)),0!=a.length)if(null==t)e.isAdd&&a.forEach(t=>{this.updateTableDataByRow(e,t.attributename,null)});else{let i=`api/common/${this.targetEntityType}/GetDefaultValueByAttributeMapping`,n={};n[r]={id:t.$id,logicalName:t.$logicalName},await rt.post(i,n).then(t=>{a.forEach(r=>{const i=t[r.attributename];if("nvarchar"!=r.attributetypename&&"ntext"!=r.attributetypename&&"text"!=r.attributetypename||"lookup"!=r.refattributetypename){let t=i||null;[0,"0",!1].includes(i)&&(t=i),this.updateTableDataByRow(e,r.attributename,t)}else this.updateTableDataByRow(e,r.attributename,i?i.name:null)})})}}updateTableDataByRow(e,t,r){this.$set(e,t,r),this.tableData.find(t=>t.$id===e.$id)&&this.subGridChangedProps.push(t),this.$forceUpdate()}render(e){return Object(hu.b)(e,this)}};Object(J.__decorate)([Object(te.d)({type:String,required:!0})],mu.prototype,"viewId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"parentId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"parentPrimaryAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],mu.prototype,"fromEntityisMounted",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"targetEntityType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"relationFilterAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"relationFilterValue",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],mu.prototype,"showPagination",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],mu.prototype,"enableSelect",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:5})],mu.prototype,"recordsPerPage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],mu.prototype,"needjump",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"listTableSearchString",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1,required:!0})],mu.prototype,"isPrint",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],mu.prototype,"fromEntity",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"fromEntityName",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"subGridRefAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:0})],mu.prototype,"relationshipType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],mu.prototype,"relationshipName",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],mu.prototype,"formStatus",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],mu.prototype,"hiddenDefaultDiagram",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:3})],mu.prototype,"cardTableCol",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"cardTableRowTitle",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"subgridkey",void 0),Object(J.__decorate)([Object(te.d)({type:Object,default:()=>({})})],mu.prototype,"fromEntityCustomerData",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],mu.prototype,"subgridIsReadonly",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],mu.prototype,"objectId",void 0),Object(J.__decorate)([Object(te.e)("cardTableContext")],mu.prototype,"cardTableContext",void 0),Object(J.__decorate)([Object(te.g)("fromEntityisMounted",{immediate:!0})],mu.prototype,"fromEntityisMountedHandler",null),mu=Object(J.__decorate)([Object(te.a)({name:"CardTable"})],mu);var gu=mu,bu=(r("bbed"),Object(_.a)(gu,void 0,void 0,!1,null,"e9b696e4",null).exports),yu=r("b914");function vu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let xu=class extends(Object(te.c)(Ls.a)){constructor(...e){super(...e),vu(this,"id",void 0),vu(this,"label",void 0),vu(this,"viewId",void 0),vu(this,"parentId",void 0),vu(this,"parentEntityName",void 0),vu(this,"parentPrimaryAttribute",void 0),vu(this,"fromEntityisMounted",void 0),vu(this,"targetEntityType",void 0),vu(this,"relationFilterAttribute",void 0),vu(this,"showStyle",void 0),vu(this,"showPagination",void 0),vu(this,"enableSelect",void 0),vu(this,"recordsPerPage",void 0),vu(this,"needjump",void 0),vu(this,"isPreview",void 0),vu(this,"isPrint",void 0),vu(this,"enableSearch",void 0),vu(this,"fromEntity",void 0),vu(this,"objectIdForTiledTable",void 0),vu(this,"subGridRefAttribute",void 0),vu(this,"customerData",void 0),vu(this,"fromEntityName",void 0),vu(this,"isCustomHeight",void 0),vu(this,"height",void 0),vu(this,"relationshipType",void 0),vu(this,"relationshipName",void 0),vu(this,"manytomanylookupkey",void 0),vu(this,"hasEntityImage",void 0),vu(this,"subgridIsReadonly",void 0),vu(this,"formStatus",void 0),vu(this,"hiddenDefaultDiagram",void 0),vu(this,"subgridIsRequired",void 0),vu(this,"imgPermission",void 0),vu(this,"cardTableCol",void 0),vu(this,"columns",void 0),vu(this,"cardTableRowTitle",void 0),vu(this,"approveStepId",void 0),vu(this,"toDoTaskId",void 0),vu(this,"isOpenCollapse",void 0),vu(this,"isExpand",void 0),vu(this,"searchPlaceholder",void 0),vu(this,"subgridFormData",{}),vu(this,"entityName",void 0),vu(this,"entityDisplayName",""),vu(this,"searchString",""),vu(this,"queryAttributes",{}),vu(this,"jumpInfo",{}),vu(this,"multipleSelection",[]),vu(this,"subgridForm",{subgridData:[]}),vu(this,"tableColumnProps",null),vu(this,"fieldWithHandler",{}),vu(this,"flatTableTotalCountStr","0"),vu(this,"privileges",null),vu(this,"Current_Project",void 0),vu(this,"localSearchableFields",[])}get getCustomStyle(){return{height:this.isCustomHeight&&"card"!==this.styleStr?this.height+"px":"auto"}}get getCustomClass(){return this.isCustomHeight?"apaas-card-custom-height":""}get subGridData(){return"zh-CN"===rt.getDefaultLocal()?this.$_t("platform.noSubGrid","暂无"+this.label,{subGridData:this.label}):this.$_t("platform.noData","暂无数据")}get styleStr(){switch(Number(this.showStyle)){case 1:return"list";case 2:return"flat";case 3:return"timeline";case 5:return"statusline";case 10:return"card";default:return""}}get headerSearchPlaceholder(){if(this.searchPlaceholder)return this.searchPlaceholder;const e=this.localSearchableFields.length>0?this.localSearchableFields:this.searchableFields||[];if(e.length>0){var t;const r="en-US"===rt.getDefaultLocal()||"1033"===(null===(t=this.$store.state)||void 0===t?void 0:t.languageId)?"/ ":"/";return e.map(e=>e.displayName).join(r)}return this.$_t("Please_searchable","请联系管理员配置可搜索字段")}mounted(){this.entityName=this.targetEntityType,this.Current_Project=this.$store.state.currentProject,this.$PlatUtils.listenerHook(this,"getTableColumnProps_"+this.id,this.getTableColumnPropsHandler)}reloadFromEntity(){this.$emit("subGridChange")}handleUpdateSearchableFields(e){this.localSearchableFields=e}getDataInCreate(){if(["list","card"].includes(this.styleStr)){const e=this.$refs.table||this.$refs.cardTable;return e&&e.subgridBlurSaveHandler?e.subgridBlurSaveHandler():{}}return{}}subgridNeedAddFirst(){const e=this.$refs.table||this.$refs.cardTable;if(!e)return-1;if(["list","flat","card"].includes(this.styleStr)){const t=e.$refs.table&&e.$refs.table.dataList||[];return e.tableData&&e.tableData.length||t.length}return-1}getTableData(){const e=this.$refs.table||this.$refs.cardTable;return e&&e.tableData||[]}getDataInCreateForm(){const e=this.$refs.table||this.$refs.cardTable;return e&&e.subgridDataInCreateForm||[]}setTableDataHandler(e){this.$set(this.subgridForm,"subgridData",e)}checkIsPreview(){return!!this.isPreview&&(rt.showErrorToast(this.$_t("platform.imagefield_not_button","当前预览模式,不支持按钮操作 .")),!0)}search(e){this.searchString=e,this.$nextTick(()=>{if("list"===this.styleStr){const e=this.$refs.table;if(e&&e.load){const t=!0;e.load(t)}}else if("card"===this.styleStr){const e=this.$refs.cardTable;e&&e.load&&e.load()}})}deleteData(){const e=this.multipleSelection;null==e||0==e.length?rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录")):this.$confirm(this.$_t("ThisActionDeletePerpetually","此操作将永久删除记录,是否继续?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{if(e.some(e=>e.isAdd)){const t=e.filter(e=>e.isAdd).map(e=>e.$id);if(this.$refs.table&&this.$refs.table.subgridDeleteRowHandler(t),t.length===e.length)return this.clearSelection(),void rt.showSuccessToast(this.$_t("common.deleteSuccess","删除成功!"))}rt.showLoadingToast(this.$_t("common.deleting","正在删除..."));let t=this.entityName,r="$id";1==this.relationshipType&&(r=this.relationshipName+"_id",t=this.relationshipName);const i=e.filter(e=>!e.isAdd).map(e=>e instanceof Object?e[r]:e).filter(e=>e&&e.trim());let a;a=1==this.relationshipType?"api/dynamic/"+t+"/BatchDeleteByRelationship?entityName="+this.entityName:"api/dynamic/"+t+"/BatchDelete";let n="list"==this.styleStr?i:e;rt.post(a,n).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(e),this.$emit("subGridChange"),this._fetchRecords("afterDel",!0),this.$bus.$emit("clearSelection"+this.id,!0)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}).catch()}gotoEditPage(e){var t;if(this.queryAttributes.disableJump)return;if(e.isAdd)return;if(this.checkIsPreview())return;let r=this.entityName;const i={fromEntity:this.fromEntity,subGridRefAttribute:this.subGridRefAttribute,fromEntityName:this.fromEntityName,fromEntityId:null===(t=this.fromEntity)||void 0===t?void 0:t.$id,parentPrimaryAttribute:this.parentPrimaryAttribute};if("new_srv_secondclaim"==r&&3==e.new_approvalstatus)this.$router.push({name:r+"Detail",params:{id:e.$id},query:i});else if("new_srv_filterorder"==r)return;let a=null,n=!1;if(this.queryAttributes.jump){if(null!=this.jumpInfo&&this.jumpInfo.needjump)if("form"==this.jumpInfo.formtype){if(a=this.jumpInfo.formid,this.jumpInfo.referencedEntity!=r&&this.jumpInfo.referencedEntity&&(n=!0,r=this.jumpInfo.referencedEntity),!a)return void rt.showErrorToast(this.$_t("platform.subgridJumpField","跳转字段未配置跳转表单"))}else if(this.jumpInfo.url&&e)return void this.$router.push({path:this.getFunctionByExpression(this.jumpInfo.url,["row"]).call(this,e),query:i})}else if(this.queryAttributes.jumpFormId)a=this.queryAttributes.jumpFormId;else if(this.queryAttributes.jumpUrlExpression){if(this.subgridIsReadonly)return void rt.showErrorToast(this.$_t("platform.subgridIsDisabled","当前子网格明细已禁用,请联系管理员"));if(e){const t=this.getFunctionByExpression(this.queryAttributes.jumpUrlExpression,["row"]).call(this,e);return void("string"==typeof t?this.$router.push({path:t,query:i}):t&&"object"==typeof t&&this.$router.push(t))}}let o=e.$id;if(n&&(o=e[this.queryAttributes.jump].id),this.subgridIsReadonly&&(i.subGridReadonly=!0),a)if(this.needjump){let e={formId:a,entityName:r,id:o};this.$router.push({name:"VForm2",params:e,query:i})}else this.$emit("rowDBClick",o,a,{showStyle:this.showStyle});else if(this.needjump){let e={entityName:r,id:o};this.$router.push({name:"VForm",params:e,query:i})}else this.$emit("rowDBClick",o,null,{showStyle:this.showStyle})}gotoAddPage(){var e;if(this.queryAttributes.disableJump)return;const t=!this.approveStepId&&1!==this.relationshipType,r=this.privileges&&!this.privileges.IsCreate;if(t&&r){const e=`${this.$store.state.user.UserName}${this.$_t("NoCreatePermission","没有新增权限")}-${this.entityDisplayName}-${this.entityName}`;return void rt.showErrorToast(e)}if(1==this.relationshipType)return void this.$emit("showRef","manytomanylookup_"+this.manytomanylookupkey);const i={fromEntity:this.fromEntity,subGridRefAttribute:this.subGridRefAttribute,fromEntityName:this.fromEntityName,fromEntityId:null===(e=this.fromEntity)||void 0===e?void 0:e.$id,parentPrimaryAttribute:this.parentPrimaryAttribute},a=(this.$dynamicpagecommon||yu.a).getEntityCreatePage(this.entityName,this.$router,this.Current_Project);if(a&&"VForm"!=a.name)return a.params||(a.params={}),a.params.parentid=this.parentId,void this.$router.push({name:a.name,params:a.params,query:i});let n=null;if(this.queryAttributes.jump)null!=this.jumpInfo&&this.jumpInfo.needjump&&"form"==this.jumpInfo.formtype&&(n=this.jumpInfo.formid);else if(this.queryAttributes.jumpFormId)n=this.queryAttributes.jumpFormId;else if(this.queryAttributes.jumpUrlExpression)return void this.$emit("rowDBClick",null,n,{showStyle:this.showStyle});if(this.needjump){let e={entityName:this.entityName};n?(e.formId=n,this.$router.push({name:"VForm2",params:e,query:i})):this.$router.push({name:"VForm",params:e,query:i})}else this.$emit("rowDBClick",null,n,{showStyle:this.showStyle})}load(){this._fetchRecords("load",!0)}_fetchRecords(e,t){const r=this.$refs.table||this.$refs.cardTable;"afterDel"==e?r&&r.beforeLoad(this.multipleSelection.length):(r&&r.load(t),-1==e&&this.$emit("subGridReload"))}exportAll(e){this.exportPageData(e)}exportPageData(e){const t=this.$refs.table||this.$refs.cardTable;if(t&&this.viewId&&this.parentId&&this.relationFilterAttribute){const r="api/vlist/ExportSubgridAllData",i=t.getQueryParams();i.$_title=this.label,i.needAttachment=e,rt.showLoadingToast(this.$_t("common.exporting","正在导出...")),rt.get(r,i).then(e=>{let t="";e.downloadurl&&(t=e.downloadurl.startWith("api")?rt.getBaseUrl()+e.downloadurl:e.downloadurl,this.downloadFile({url:t,name:e.name}),rt.showSuccessToast(this.$_t("platform.exportSuccess","导出成功")))}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{rt.hideLoadingToast()})}}setSelections(e){this.multipleSelection=e}setJumpInfo(e){this.jumpInfo=e}setQueryAttributes(e){this.queryAttributes=e,this.queryAttributes.jumpFormId&&(this.jumpInfo.formid=this.queryAttributes.jumpFormId)}saveManyToManyData(e){rt.showLoadingToast(this.$_t("common.loading","正在加载数据..."));const t=`api/dynamic/${this.relationshipName}/SaveManyToMany`;rt.post(t,{entity1Name:this.parentEntityName,entity1Id:this.parentId,entity2Ids:e.map(e=>e.$id),ApproveStepId:this.approveStepId,toDoTaskId:this.toDoTaskId}).then(()=>{rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功")),this._fetchRecords("SaveManyToMany",!0)}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.$emit("subGridReload"),rt.hideLoadingToast()})}showFormDialog(e,t,r,i,a,n){this.$emit("showFormDialog",e,t,r,i,a,n)}showDrawer(e,t,r,i,a){this.$emit("showDrawer",e,t,r,i,a)}parentReload(){this.$emit("parentReload")}getSelectedVal(){return this.multipleSelection}batchPrintSubgridWordTemplate(e,t,r,i,a=!0){if(this.checkIsPreview())return;rt.showLoadingToast();let n=[],o=this.multipleSelection.map(e=>e.$id?e.$id:e);const s=n=>new Promise((o,s)=>{var l;rt.post("api/WordTemplate/BatchDownTemplateFile",{entityName:this.entityName,templateId:e,mainId:null===(l=this.fromEntity)||void 0===l?void 0:l.$id,objectIds:n,isAllSubgrid:t,relationFilterAttribute:this.subGridRefAttribute,isMergePrint:r,fileName:i,isMask:a}).then(e=>{this.downloadFile({url:e.fileUrl,name:e.fileName}),rt.hideLoadingToast(),o(e)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})});if(r){for(let e in o)o[e]&&n.push(o[e]);s(n)}else{let e=(t=0)=>{o[t]&&s([o[t]]).then(()=>{te.$id?e.$id:e);for(let l in s)o.push(s[l]);rt.showLoadingToast(),rt.post("api/WordTemplate/BatchPreviewPdf",{entityName:this.entityName,templateId:e,mainId:null===(n=this.fromEntity)||void 0===n?void 0:n.$id,objectIds:o,isAllSubgrid:t,relationFilterAttribute:this.subGridRefAttribute,isMask:a}).then(e=>{if(rt.hideLoadingToast(),!e.startsWith("http")){const t=e.replace("download","inlinedownload");e=rt.getBaseUrl()+t}window.open(e)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}async addRow(e){if(["list","card"].includes(this.styleStr)){const t={fromEntity:this.fromEntity,subGridRefAttribute:this.subGridRefAttribute,fromEntityName:this.fromEntityName,parentPrimaryAttribute:this.parentPrimaryAttribute,relationshipName:this.relationshipName,formStatus:this.formStatus},r=this.$refs.table||this.$refs.cardTable;e?(await r.addSubgridRowWithData(t,e),this.tableColumnProps={$index:this.getTableData().length,row:e},this.saveSubgrid({params:e,subgirdEntityName:this.targetEntityType,isSubgridEdit:!1,relationshipName:this.relationshipName})):r.addSubgridRowHandler(t)}}clearSelection(){this.$refs.table&&this.$refs.table.clearSelection()}subgridBlurSaveHandler({subgirdEntityName:e,subGridChangedProps:t,isSubgridEdit:r,relationshipName:i,row:a,isFromEntitySaveBtn:n}){this.saveEditableSubgrid({subgirdEntityName:e,subGridChangedProps:t,isSubgridEdit:r,relationshipName:i,row:a,isFromEntitySaveBtn:n})}saveEditableSubgrid({subgirdEntityName:e,subGridChangedProps:t,isSubgridEdit:r=!0,relationshipName:i,row:a,isFromEntitySaveBtn:n}){r&&this.tableColumnProps&&this.saveSubgrid({subgirdEntityName:e,subGridChangedProps:t,isSubgridEdit:r,relationshipName:i,row:a,isFromEntitySaveBtn:n})}saveSubgrid({params:e={},subgirdEntityName:t,subGridChangedProps:r=[],isSubgridEdit:i,relationshipName:a,row:n=(()=>{var e;return null===(e=this.tableColumnProps)||void 0===e?void 0:e.row})(),isFromEntitySaveBtn:o}){r=[...r,...this.$refs.table.subGridChangedProps],r=[...new Set(r)];for(let l in n)r.includes(l)&&this.$set(e,l,n[l]);if(n.isAdd?delete e.$id:this.$set(e,"$id",n.$id),0==this.formStatus||o)return void this.storeSubgridData(i,a);for(let l in e)null==e[l]&&(e[l]=null);let s="api/dynamic/"+t+"/SaveAndFetch";this.approveStepId&&(s+="/"+this.approveStepId),this.toDoTaskId&&(s+="?toDoTaskId="+this.toDoTaskId),rt.post(s,e).then(()=>{this.tableColumnProps=null,i?this._fetchRecords(-1):this._fetchRecords(""),this.$refs.table.subGridChangedProps=[]}).catch(e=>{this._fetchRecords(-1,!0),rt.showErrorToast(e)})}storeSubgridData(e,t){t&&(this.tableColumnProps=null)}getTableColumnPropsHandler(e){this.tableColumnProps=e}handleTiledTableUpdateCount(e){this.flatTableTotalCountStr=e}handleUpdatePrivileges(e){this.privileges=e}handleUpdateDisplayName(e){this.entityDisplayName=e}handleDataLoaded(e){this.$bus.$emit("subgridDataLoaded_"+this.id,e)}};Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"id",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"label",void 0),Object(J.__decorate)([Object(te.d)({type:String,required:!0})],xu.prototype,"viewId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"parentId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"parentEntityName",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"parentPrimaryAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],xu.prototype,"fromEntityisMounted",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"targetEntityType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"relationFilterAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:1})],xu.prototype,"showStyle",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],xu.prototype,"showPagination",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"enableSelect",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:5})],xu.prototype,"recordsPerPage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"needjump",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"isPreview",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1,required:!0})],xu.prototype,"isPrint",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],xu.prototype,"enableSearch",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],xu.prototype,"fromEntity",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"objectIdForTiledTable",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"subGridRefAttribute",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],xu.prototype,"customerData",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"fromEntityName",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"isCustomHeight",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:250})],xu.prototype,"height",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:0})],xu.prototype,"relationshipType",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"relationshipName",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"manytomanylookupkey",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"hasEntityImage",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean})],xu.prototype,"subgridIsReadonly",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],xu.prototype,"formStatus",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"hiddenDefaultDiagram",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"subgridIsRequired",void 0),Object(J.__decorate)([Object(te.d)({type:String})],xu.prototype,"imgPermission",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:3})],xu.prototype,"cardTableCol",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],xu.prototype,"columns",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"cardTableRowTitle",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"approveStepId",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"toDoTaskId",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],xu.prototype,"isOpenCollapse",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!0})],xu.prototype,"isExpand",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],xu.prototype,"searchPlaceholder",void 0),Object(J.__decorate)([Object(te.e)("subgridFormData")],xu.prototype,"subgridFormData",void 0),xu=Object(J.__decorate)([Object(te.a)({name:"Subgrid",components:{"list-table":lu,"list-header":Qc,"tiled-table":pu,"card-table":bu}})],xu);var wu=xu,_u=(r("63a7"),Object(_.a)(wu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{staticClass:"innerbox",class:e.getCustomClass,style:e.getCustomStyle,attrs:{"is-open-collapse":e.isOpenCollapse,"is-expand":e.isExpand}},[e.targetEntityType?[r("template",{slot:"header"},[["list","card"].includes(e.styleStr)?r("list-header",{ref:"gridHeader",attrs:{"target-entity-type":e.targetEntityType,title:e.label,"enable-search":e.enableSearch,"search-placeholder":e.headerSearchPlaceholder,"is-print":e.isPrint,"has-entity-image":e.hasEntityImage},on:{search:e.search}},[r("div",{attrs:{slot:"btn"},slot:"btn"},[e._t("toolbar")],2),r("div",{attrs:{slot:"headericon"},slot:"headericon"},[e.imgPermission&&e.imgPermission.startsWith("plat")?r("rc-icon",{attrs:{size:18,name:e.imgPermission,"loading-permission":e.imgPermission}}):r("rt-icon",{attrs:{size:18,"loading-permission":e.imgPermission,"img-src":e.imgPermission}})],1)]):"flat"===e.styleStr?r("apaas-header",[r("span",{staticClass:"flat-list-header",attrs:{slot:"title"},slot:"title"},[e._v(e._s(e.label)+" "),r("span",{staticClass:"total-count"},[e._v("("+e._s(e.flatTableTotalCountStr)+")")])]),e.isPrint?e._e():[r("template",{slot:"btn"},[e._t("toolbar")],2),r("div",{attrs:{slot:"icon"},slot:"icon"},[e.imgPermission&&e.imgPermission.startsWith("plat")?r("rc-icon",{attrs:{size:18,name:e.imgPermission,"loading-permission":e.imgPermission}}):r("rt-icon",{attrs:{size:18,"loading-permission":e.imgPermission,"img-src":e.imgPermission}})],1)]],2):r("apaas-header",{attrs:{title:e.label}},[e.isPrint?e._e():[r("div",{attrs:{slot:"icon"},slot:"icon"},[e.imgPermission&&e.imgPermission.startsWith("plat")?r("rc-icon",{attrs:{size:18,name:e.imgPermission,"loading-permission":e.imgPermission}}):r("rt-icon",{attrs:{size:18,"loading-permission":e.imgPermission,"img-src":e.imgPermission}})],1)]],2)],1),["list"===e.styleStr?r("div",{staticClass:"list-table plat-list-table"},[e.targetEntityType&&e.viewId?r("list-table",e._g(e._b({ref:"table",attrs:{"get-function-by-expression":e.getFunctionByExpression,"relationship-type":e.relationshipType,subgridkey:e.id,"from-entity":e.fromEntity,"field-with-handler":e.fieldWithHandler,"sub-grid-ref-attribute":e.subGridRefAttribute,"parent-primary-attribute":e.parentPrimaryAttribute,"from-entity-name":e.fromEntityName,"from-entity-customer-data":e.customerData,"from-entityis-mounted":e.fromEntityisMounted,"list-table-search-string":e.searchString,"subgrid-is-readonly":e.subgridIsReadonly},on:{setQueryAttributes:e.setQueryAttributes,setJumpInfo:e.setJumpInfo,gotoEditPage:e.gotoEditPage,setSelections:e.setSelections,showFormDialog:e.showFormDialog,reloadFromEntity:e.reloadFromEntity,setTableData:e.setTableDataHandler,blurAndSave:e.subgridBlurSaveHandler,updateDisplayName:e.handleUpdateDisplayName,updatePrivileges:e.handleUpdatePrivileges,dataLoaded:e.handleDataLoaded,updateSearchableFields:e.handleUpdateSearchableFields}},"list-table",e.$props,!1),e.$listeners)):r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.subGridData))])])],1):"card"===e.styleStr?r("div",{staticClass:"card-table",attrs:{slot:"content"},slot:"content"},[e.targetEntityType&&e.viewId?r("card-table",e._g(e._b({ref:"cardTable",attrs:{"get-function-by-expression":e.getFunctionByExpression,"relationship-type":e.relationshipType,subgridkey:e.id,"from-entity":e.fromEntity,"field-with-handler":e.fieldWithHandler,"sub-grid-ref-attribute":e.subGridRefAttribute,"parent-primary-attribute":e.parentPrimaryAttribute,"from-entity-name":e.fromEntityName,"from-entity-customer-data":e.customerData,"from-entityis-mounted":e.fromEntityisMounted,"list-table-search-string":e.searchString,"hidden-default-diagram":e.hiddenDefaultDiagram,"subgrid-is-readonly":e.subgridIsReadonly},on:{setQueryAttributes:e.setQueryAttributes,setJumpInfo:e.setJumpInfo,gotoEditPage:e.gotoEditPage,setSelections:e.setSelections,showFormDialog:e.showFormDialog,setTableData:e.setTableDataHandler,blurAndSave:e.subgridBlurSaveHandler,updateDisplayName:e.handleUpdateDisplayName,updatePrivileges:e.handleUpdatePrivileges,dataLoaded:e.handleDataLoaded,updateSearchableFields:e.handleUpdateSearchableFields}},"card-table",e.$props,!1),e.$listeners)):e._e()],1):r("apaas-content",{staticClass:"flat-list-wrapper",attrs:{slot:"content"},slot:"content"},[r("tiled-table",e._g(e._b({ref:"table",attrs:{"get-function-by-expression":e.getFunctionByExpression,title:e.label,"from-entity":e.fromEntity,"object-id-for-tiled-table":e.objectIdForTiledTable,subgridkey:e.id,"has-entity-image":e.hasEntityImage,"hidden-default-diagram":e.hiddenDefaultDiagram,columns:e.columns,"is-custom-height":e.isCustomHeight},on:{setQueryAttributes:e.setQueryAttributes,setSelections:e.setSelections,gotoEditPage:e.gotoEditPage,setJumpInfo:e.setJumpInfo,updateCount:e.handleTiledTableUpdateCount,updateDisplayName:e.handleUpdateDisplayName,updatePrivileges:e.handleUpdatePrivileges,dataLoaded:e.handleDataLoaded}},"tiled-table",e.$props,!1),e.$listeners))],1)]]:r("rc-default-image",{attrs:{slot:"empty",size:"small",text:e.hiddenDefaultDiagram},slot:"empty"},[r("div",{attrs:{slot:"describe"},slot:"describe"},[e._v(e._s(e.subGridData))])])],2)}),[],!1,null,"cbbc5ff8",null).exports),Eu={data:()=>({showDialogVisible:!1,queryValue:"",dataTotalCount:0,selectedList:[],formInfo:{},dialogForm:{}}),watch:{showDialogVisible(e){e||this.$refs.rcTable&&this.$refs.rcTable.clearSelection()}},methods:{showDialog(e){this.selectedList=[],this.queryValue="",this.formInfo=e,this.showDialogVisible=!0},handleSearch(){this.$refs.rcTable&&this.$refs.rcTable.loadData()},_fetchRecords(e){var t="api/TeamMember/GetUserData?page="+e.pageIndex+"&count="+e.pageSize+"&filterValues="+this.queryValue+"&mainEntityId="+this.formInfo.entityId;return rt.get(t).then(e=>(this.dataTotalCount=e.TotalRecordCount,e.Entities)).catch(e=>{rt.showErrorToast(e)})},selectItem(e){this.selectedList=e},handleConfirm(){if(!(this.selectedList&&this.selectedList.length>0))return void rt.showErrorToast(this.$_t("common.pls_select_onedata","请至少选择一条数据"));const e=[];this.selectedList.forEach(t=>{e.push(t.$id)});const t={MainEntityName:this.formInfo.entityName,MainEntityId:this.formInfo.entityId,UserIds:e};rt.showLoadingToast(),rt.post("api/TeamMember/SaveTeamMember",t).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("Successfullyadded","添加成功!")),this.handleCancel(),this.$emit("reloadData")}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})},handleCancel(){this.showDialogVisible=!1}}},Cu=(r("9999"),{name:"RtTeamMembers",components:{"add-team":Object(_.a)(Eu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("rc-dialog",{attrs:{"close-on-click-modal":!1,"close-on-press-escape":!1,title:e.$_t("crm.addteammember","添加团队成员"),size:"large",validate:!0},on:{confirm:e.handleConfirm,cancel:e.handleCancel},model:{value:e.showDialogVisible,callback:function(t){e.showDialogVisible=t},expression:"showDialogVisible"}},[r("rc-view",[r("rc-card",{attrs:{shadow:!1}},[r("rc-form",{ref:"dialogForm",attrs:{model:e.dialogForm,border:!0}},[r("rc-section",[r("rc-search",{attrs:{more:!1,clearable:""},on:{"on-search":e.handleSearch},model:{value:e.queryValue,callback:function(t){e.queryValue=t},expression:"queryValue"}}),r("div",{staticClass:"team-line"}),r("rc-table",{ref:"rcTable",attrs:{"page-size":10,"show-border":!0,"highlight-current-row":"",fetch:e._fetchRecords,"total-record":e.dataTotalCount,"row-key":"$id","keep-selected":!0},on:{"selection-change":e.selectItem}},[r("rc-table-column",{attrs:{prop:"domainname",label:e.$_t("systemuser.domainname","账号")}}),r("rc-table-column",{attrs:{prop:"fullname",label:e.$_t("systemuser.userName","用户姓名")}}),r("rc-table-column",{attrs:{prop:"businessunitid.name",label:e.$_t("systemuser.businessunitid","业务部门")}})],1)],1)],1)],1)],1)],1)}),[],!1,null,"b154a502",null).exports},props:{entityId:{type:String,default:""},entityName:{type:String,default:""},label:{type:String,default:""},langkey:{type:String,default:""},readonly:{type:Boolean,default:!1},hiddenDefaultDiagram:{type:Boolean,default:!1}},data:()=>({tableData:[],HashPermission:!1,roleList:[]}),computed:{title(){return this.langkey?this.$_t(this.langkey,this.label||"协同成员"):this.$_t("crm.teammembers",this.label||"协同成员")}},mounted(){this.getTeamData(),this.getOptions()},methods:{getOptions(){rt.get("api/crmpicklist/options/new_team/new_role").then(e=>{this.roleList=e}).catch(e=>{rt.showErrorToast(e)})},addTeam(){var e={entityName:this.entityName,entityId:this.entityId};this.$refs.addTeam.showDialog(e)},getTeamData(e){if(!e&&!this.entityId||!this.entityName)return;let t="api/TeamMember/GetTeamMembersData?mainEntityId="+(e||this.entityId)+"&mainEntityName="+this.entityName;rt.get(t).then(e=>{this.HashPermission=e.HashPermission,e.teamMembers&&e.teamMembers.length>0&&e.teamMembers.map(e=>{e.visible=!1,e.selectVisible=!1,e.firstName="",e.UserName&&(e.firstName=e.UserName.substr(0,1))}),this.tableData=e.teamMembers}).catch(e=>{rt.showErrorToast(e)})},handleEdit(e){var t={TeamId:e.item.new_teamid,EnableEditor:!e.item.new_edit,Role:e.item.new_role};rt.post("api/TeamMember/UpdatePermissions",t).then(()=>{e.item.new_edit&&rt.showSuccessToast(this.$_t("Permission-Removed","权限移除成功")),e.item.new_edit||rt.showSuccessToast(this.$_t("Permission-Successfully","权限分配成功")),e.item.visible=!e.item.visible,this.$set(this.tableData,e.item,e.index),this.getTeamData()}).catch(e=>{rt.showErrorToast(e)})},handleDelete(e){this.$confirm("是否确认移除?",this.$_t("Tip","提示"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{var t="api/TeamMember/RemoveTeamMember?teamId="+e.item.new_teamid;rt.get(t).then(e=>{rt.showSuccessToast("移除成功"),this.getTeamData()}).catch(e=>{rt.showErrorToast(e)})})},delConfirm(e){var t="api/TeamMember/RemoveTeamMember?teamId="+e.item.new_teamid;rt.get(t).then(e=>{rt.showSuccessToast(this.$_t("remove_success","移除成功")),this.getTeamData()}).catch(e=>{rt.showErrorToast(e)})},handleRoles(e,t){e.item.new_role=t.Value,e.item.new_roleName=t.Text,e.item.selectVisible=!1;var r={TeamId:e.item.new_teamid,EnableEditor:e.item.new_edit,Role:e.item.new_role};rt.post("api/TeamMember/UpdatePermissions",r).then(t=>{rt.showSuccessToast(this.$_t("crm.rolesetSuccessfully","角色设置成功")),this.$set(this.tableData,e.item,e.index),this.getTeamData()}).catch(e=>{rt.showErrorToast(e)})}}}),Nu=(r("dff8"),r("4917"),Object(_.a)(Cu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("apaas-card",{staticClass:"team-card-wrap",attrs:{title:e.title,icon:"plat-icon-user-two-lined"}},[r("apaas-header",{attrs:{slot:"header",title:e.title,icon:"plat-icon-user-two-lined"},slot:"header"},[e.HashPermission?r("rc-button",{attrs:{disabled:e.readonly,size:"small","icon-name":"rt-base-plus"},on:{click:e.addTeam}}):e._e()],1),r("div",{staticClass:"team-advance-group",class:{readonly:e.readonly}},[e.tableData.length>0?r("rc-advance-table-group",{attrs:{"label-list":e.tableData,"default-rows":5},scopedSlots:e._u([{key:"collapse",fn:function(t){return[r("rc-advance-table-item",{attrs:{"show-check":!1}},[r("div",{staticClass:"team-advance-wraper"},[r("div",{staticClass:"team-advance-info"},[t.item.PhotoUrl?r("rc-avatar",{staticStyle:{"border-color":"#ced5ef"},attrs:{"background-color":"#f0f2f4",border:!0,src:t.item.PhotoUrl,size:"small"}}):r("rc-avatar",{attrs:{"background-color":"#f0f2f4","text-color":"#0072E6",size:"small"}},[e._v(e._s(t.item.firstName))]),r("div",{staticClass:"team-name-wrap"},[r("span",{staticClass:"team-name"},[e._v(e._s(t.item.UserName))]),e.roleList&&e.roleList.length>0?r("div",{staticClass:"team-role-wrap"},[r("div",{staticClass:"team-role"},[r("rc-popover",{attrs:{placement:"bottom","popper-class":"team-popper",disabled:!e.HashPermission},model:{value:t.item.selectVisible,callback:function(r){e.$set(t.item,"selectVisible",r)},expression:"row.item.selectVisible"}},[e._l(e.roleList,(function(i){return r("span",{key:i.Value,staticClass:"editBtn",on:{click:function(r){return e.handleRoles(t,i)}}},[e._v(e._s(i.Text))])})),r("div",{staticClass:"roles-select",class:{"roles-select-active":t.item.selectVisible},attrs:{slot:"reference"},slot:"reference"},[r("span",[e._v(e._s(t.item.new_roleName))]),r("rc-icon",{attrs:{name:"rt-saas-angle-down-filled",size:"10",color:"#0072E6"}})],1)],2)],1),t.item.new_edit?r("div",{staticClass:"team-tag"},[e._v(" "+e._s(e.$_t("crm.rolesEditable","可编辑"))+" ")]):e._e()]):e._e()])],1),e.HashPermission?r("rc-popover",{attrs:{placement:"bottom","popper-class":"team-popper"},model:{value:t.item.visible,callback:function(r){e.$set(t.item,"visible",r)},expression:"row.item.visible"}},[r("span",{staticClass:"editBtn",on:{click:function(r){return e.handleEdit(t)}}},[e._v(e._s(t.item.new_edit?e.$_t("crm.deleteeditpermission","移除编辑权限"):e.$_t("crm.assigneditpermissions","分配编辑权限")))]),r("rc-popconfirm",{attrs:{"poper-class":"popconfirm",title:e.$_t("crm.confirmdelteam","是否确定移除此成员")},on:{confirm:function(r){return e.delConfirm(t)}}},[r("span",{staticClass:"editBtn",attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$_t("crm.deleteteammember","移除成员")))])]),r("div",{staticClass:"team-advance-btn",attrs:{slot:"reference"},slot:"reference"},[r("rc-icon",{attrs:{color:"#4E5969",name:"rt-saas-more"}})],1)],1):e._e()],1)])]}}],null,!1,2980631221)}):r("rc-default-image",{attrs:{text:e.hiddenDefaultDiagram}},[r("template",{slot:"describe"},[r("span",[e._v(e._s(e.$_t("platform.noTeammembers","暂无协同成员")))])])],2)],1),r("add-team",{ref:"addTeam",on:{reloadData:e.getTeamData}})],1)}),[],!1,null,"365ff0ef",null).exports),Su=r("f6dc");function Tu(e,t){if(!e)return;if(!e.LayoutJson)return;const r=JSON.parse(e.LayoutJson);r.$nodetype=fs.b.Form;const i=function(e){const t=[],r=[];let i=0;for(e.parentIndex=-1,e.nodeIndex=i,t.push(e);t.length>0;){const e=t.pop(),a=eu.a.translateToRuntimeControl(e);r[a.nodeIndex]=a,e.children&&e.children.forEach(e=>{i+=1,e.parentIndex=a.nodeIndex,e.nodeIndex=i,t.push(e)})}return r.forEach(e=>{e.nodeIndex>0&&(e.parent=r[e.parentIndex])}),r.forEach(e=>{e.parent&&e.parent.children.push(e)}),r}(r)[0],a={thisVue:t,dependAttributes:[]};i.collectDependAttributes(a);const n={thisVue:t,pageTypes:fs.e.PCForm,dependAttributes:a.dependAttributes};i.prepare(n),t.editForm={...t.editForm};const o={form:i,ModifiedOnTicks:e.ModifiedOn&&e.ModifiedOn.valueOf()||0,LayoutXmlMd5:e.LayoutXmlMd5,ViewVisible:!0};return t.pageSchema=o,o}function ku(e,t){try{return t.schemaLoaded&&function e(t,r){if(r.isChildrenEmpty)return null;r.addParams("readonly",r.props.readonly);const i=new Array;if(r.children&&r.children.length>0)r.children.forEach(r=>{const a=e(t,r);a&&i.push(a)});else if(r.vtext&&r.vtext.length>0)return t(r.tag,r.data,[r.vtext]);return t(r.tag,r.data,i)}(e,function(e){const t=e.pageSchema;if(!t){const t=new Zc.e("div",e.$_t("platform.noschema","页面加载失败,请联系管理员."));return t.addClass("plat-no-page-schema"),t}const r=e.allSchema,i=t.form,a=e.ruleOperation(e.brules,e),n=new Zc.b(fs.e.PCForm,r.PrimaryEntityName,r.SavedQueryId,e.isPrint?fs.d.print:fs.d.edit,e,i,a),o=i.buildVNodeTree(n);try{o.stackVisit(n)}catch(e){}return o}(t))||e("div",{},[])}catch(e){throw e}}function Ou(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}te.a.registerHooks(["beforeRouteEnter","beforeRouteLeave","beforeRouteUpdate"]);let Iu=class extends N.a{constructor(...e){super(...e),Ou(this,"objectId",void 0),Ou(this,"cachePageIndex",null),Ou(this,"cachePagePath",null),Ou(this,"isGoBack",!1),Ou(this,"needSave",!0)}get disableHistoryCache(){return!(!this.isDialogMode&&!this.isDrawerMode)}created(){if(this.disableHistoryCache)return;const e=this;if(e.hasOwnProperty("resetCachedDataForGoback")){if(["userQueryDialog","lookup"].includes(this.pageSource))return;const t=this.$route.fullPath;if(window.history.state&&window.history.state.pageIndex){let r=window.history.state.pageIndex;const i="/dashboardview"===t?"getDashboard":"get";"/dashboardview"===t&&(r=this.$historyStorage.getDashIndex());const a=this.$historyStorage[i](r,t);this.cachePageIndex=r,this.isGoBack=!0,this.isDashboard?e.resetCachedDataForGoback(a[this.objectTypeName+"_"+this.queryLogicalName]):e.resetCachedDataForGoback(a)}else{let e=this.$historyStorage.getPageIndex();"/dashboardview"===t&&(e=this.$historyStorage.getDashIndex()),window.history.replaceState({pageIndex:e,pagePath:t},document.title,null),this.cachePageIndex=e}this.cachePagePath=t,this.$bus.$off("needClear").$on("needClear",()=>{this.$historyStorage.needClear(),this.needSave=!1})}else if(e.hasOwnProperty("setFormCachedDataByRelation")){const t=sessionStorage["relate_tab_"+this.objectId];t&&"back"==window.routerDirection&&e.setFormCachedDataByRelation(JSON.parse(t)),sessionStorage.hasOwnProperty("relate_tab_"+this.objectId)&&sessionStorage.removeItem("relate_tab_"+this.objectId)}}beforeDestroy(){if(this.disableHistoryCache)return;const e=this;if(e.hasOwnProperty("getCachingDataForPush")&&null!=this.cachePageIndex&&this.needSave){const t=this.cachePagePath,r=this.cachePageIndex;sessionStorage["lasted-pageIndex"]=r,this.$historyStorage["/dashboardview"===t?"saveDashboard":"save"](r,t,e.getCachingDataForPush())}else e.hasOwnProperty("getFormCacheByRelation")&&(sessionStorage["relate_tab_"+this.objectId]=JSON.stringify(e.getFormCacheByRelation()))}};Object(J.__decorate)([Object(te.d)({default:""})],Iu.prototype,"objectId",void 0),Iu=Object(J.__decorate)([Object(te.a)({})],Iu);var Du=Iu;function Au(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Mu=class extends(Object(te.c)(Du,Xc.a,Su.b)){constructor(...e){super(...e),Au(this,"formId",void 0),Au(this,"formLogicalName",void 0),Au(this,"formType",void 0),Au(this,"fromEntity",void 0),Au(this,"fromEntityId",void 0),Au(this,"fromEntityName",void 0),Au(this,"toEntity",void 0),Au(this,"subGridRefAttribute",void 0),Au(this,"parentPrimaryAttribute",void 0),Au(this,"isPrint",void 0),Au(this,"subGridQuery",void 0),Au(this,"customerProps",void 0),Au(this,"isLookupAdd",void 0),Au(this,"isDialogMode",void 0),Au(this,"isDrawerMode",void 0),Au(this,"readonly",void 0),Au(this,"stepId",void 0),Au(this,"taskId",void 0),Au(this,"toDoId",void 0),Au(this,"processConfig",void 0),Au(this,"fromQueryId",void 0),Au(this,"pageType",fs.e.PCForm),Au(this,"FormId",this.formId),Au(this,"loading",!1),Au(this,"changedProps",[]),Au(this,"formrules",{}),Au(this,"attributemappings",{}),Au(this,"iconUrlNew",""),Au(this,"relatedForm",{}),Au(this,"relationDialog",{visible:!1,formId:"",objectTypeName:"",objectId:""}),Au(this,"lookupDialogState",{visible:!1,objectId:"",entityName:"",formLogicalName:""}),Au(this,"workflowLogicalName",""),Au(this,"workflowParameters",[]),Au(this,"dialogTimes",0),Au(this,"datafirstRender",!1),Au(this,"subGridJumpParams",{}),Au(this,"primaryAttribute",""),Au(this,"fieldpermissions",[]),Au(this,"customerComponentLoad",{}),Au(this,"relationTab",{rcTabPaneNode:null,currentName:""}),Au(this,"__isMounted",!1),Au(this,"telInput",""),Au(this,"maskFields",{}),Au(this,"beforeSaveFunc",null),Au(this,"afterSaveFunc",null),Au(this,"attributemappingsMasked",[]),Au(this,"subgridData",{}),Au(this,"allSubgridKey",[]),Au(this,"showApprovalBtn",!1),Au(this,"isFlow",!1),Au(this,"showFlowApprovalBtn",!1),Au(this,"__isCheckApprovalLoading",!1),Au(this,"btnLoading",!1),Au(this,"pageSchema",void 0),Au(this,"_formRulesExtra",[]),Au(this,"_tabsTabSubgridRels",{}),Au(this,"tabBadgeMap",{}),Au(this,"EntityDisplayName",""),Au(this,"_relationFields",{})}get formStatus(){return null!=this.objectId&&this.objectId.length>0?1:0}get storeCall(){return this.$store.state.call}get storeCallCenter(){return this.$store.state.callCenter}get jumpFromEntity(){return this.fromEntity}get jumpFromEntityName(){return this.fromEntityName}get jumpRefAttribute(){return this.subGridRefAttribute}get jumpParentPrimaryAttribute(){return this.parentPrimaryAttribute}get approveStepId(){return void 0!==this.stepId||void 0!==this.taskId?this.stepId||this.taskId:this.$route.params.stepid||this.$route.params.taskid}get toDoTaskId(){return void 0!==this.toDoId?this.toDoId:this.$route.params.todotaskid}get isOpenSign(){var e;return!0===(null===(e=this.entityPrivilege)||void 0===e?void 0:e.EnableApproveFlow)}get execMountCondition(){return{schemaLoaded:this.schemaLoaded,dataLoaded:this.dataLoaded}}mounted(){this.load(!1),this.$PlatUtils.listenerHook(this,"subgridDataHandler",this.subgridDataInCreateFormHandler),this.$PlatUtils.listenerHook(this,"removeData",this.removeDataInSubgrid)}render(e){return ku(e,this)}execMountConditionHandler(e){e.dataLoaded&&e.schemaLoaded&&!this.__isMounted&&(this.__execMounted(),this.__isMounted=!0,this.$bus.$emit("fromEntityisMounted"))}objectIdHandler(e,t){e!=t&&(this.$nextTick(()=>this.load()),this.$bus.$emit("loadCardTable"))}async getEntityPrivilege(){return 0!=this.formStatus?this._getEntityPrivilege():Promise.resolve({})}get _getEntityPrivilege(){return this._memoize(this._fetchEntityPrivilege,"getEntityPrivilege")}async _fetchEntityPrivilege(){try{let e={entityName:this.objectTypeName,id:this.objectId};this.approveStepId&&(e.ApproveStepId=this.approveStepId),this.toDoTaskId&&(e.toDoTaskId=this.toDoTaskId);const t=await rt.get("api/entityprivilege/get",e);return this.entityPrivilege=t||{},t||{}}catch(e){}return{}}async checkApprovalUser(e){if(await this.getEntityPrivilege(),this.isOpenSign&&!this.__isCheckApprovalLoading){this.__isCheckApprovalLoading=!0;try{if(await this._checkIsJApproval(this.objectTypeName,this.objectId)){const e=await rt.post("api/workflow/task/user",{dataId:this.objectId,params:["taskid"]});this.showApprovalBtn=!rt.isNullOrWhiteSpace(null==e?void 0:e.taskid)}}catch(e){this.showApprovalBtn=!1}finally{this.__isCheckApprovalLoading=!1}this.$bus.$emit("refresh-platform-approval-stateLine")}}async CheckIsMyApprove(e){if(await this.getEntityPrivilege(),this.isOpenSign&&!this.__isCheckApprovalLoading){this.__isCheckApprovalLoading=!0;try{if(!await this._checkIsJApproval(this.objectTypeName,this.objectId)){let e=await rt.get(`api/CrmFlow/IsMyApproveStep?formId=${this.objectId}&entityName=${this.objectTypeName}`);this.showFlowApprovalBtn=e}}catch(e){this.showFlowApprovalBtn=!1}finally{this.__isCheckApprovalLoading=!1}}}async initFromEntityData(){if(this.jumpRefAttribute)if(this.jumpFromEntity){if(!this.editForm.hasOwnProperty(this.jumpRefAttribute)){let e={id:this.jumpFromEntity.$id,name:this.jumpFromEntity[this.jumpParentPrimaryAttribute||"$name"],logicalName:this.jumpFromEntityName};this.updateEditForm(this.jumpRefAttribute,e)}await this.attributeLookupMappingChage(this.jumpFromEntity.$id,this.jumpFromEntityName,this.jumpRefAttribute||"")}else this.fromEntityId&&await this.attributeLookupMappingChage(this.fromEntityId,this.jumpFromEntityName,this.jumpRefAttribute||"",!0);return Promise.resolve()}attributeMappingCallback(e,t,r,i){let a=t&&t.id||"";this.attributeLookupMappingChage(a,i,r)}attributeLookupMappingChage(e,t,r,i=!1){let a=this.attributemappings&&this.attributemappings[r]||[];if(this.attributemappingsMasked=[],null!=t&&(a=a.filter(e=>e.refentityname==t)),0==a.length&&!i)return Promise.resolve();if(e){let n=`api/common/${this.objectTypeName}/GetDefaultValueByAttributeMapping`,o={};return o[r]={id:e,logicalName:t},rt.post(n,o).then(e=>(a.forEach(t=>{const r=e[t.attributename];if("nvarchar"!=t.attributetypename&&"ntext"!=t.attributetypename&&"text"!=t.attributetypename||"lookup"!=t.refattributetypename){let e=r||null;[0,"0",!1].includes(r)&&(e=r),this.attributemappingsMasked.push({fieldName:t.attributename,originValue:e,from:"lookup",refentityname:t.refentityname,value:e}),null!=this.maskFields[t.attributename]&&(this.maskFields[t.attributename]=!1),this.maskFields={...this.maskFields},this.updateEditForm(t.attributename,e)}else this.attributemappingsMasked.push({fieldName:t.attributename,originValue:r?r.name:null,from:"lookup",refentityname:t.refentityname,value:r?r.name:null}),null!=this.maskFields[t.attributename]&&(this.maskFields[t.attributename]=!1),this.maskFields={...this.maskFields},this.updateEditForm(t.attributename,r?r.name:null)}),i&&this.updateEditForm(r,e[r]),Promise.resolve())).catch(e=>Promise.reject(e))}return 0==this.formStatus&&a.forEach(e=>{this.updateEditForm(e.attributename,null)}),Promise.resolve()}_handleLookupJump(e){this.lookupDialogState={visible:!0,entityName:e.entityName,formLogicalName:e.formLogicalName,objectId:e.objectId}}_lookupDialogUpdateHandler(e){this.lookupDialogState&&(this.lookupDialogState.visible=e)}updateEditForm(e,t){if(this.$set(this.editForm,e,t),this.setChangedProps(e),this.dataLoaded&&this._relationFields&&this._relationFields.hasOwnProperty(e)){let r=this._relationFields[e];t?this._memoize(rt.getDynamicData,"getDynamicData",{expireTime:10})(r.entityName,t.id,r.fields.join(",")).then(t=>{this.$set(this.relatedForm,e,t)}):this.$set(this.relatedForm,e,{})}}splicingEditForm(e,t){let r=this.editForm[e];r?this.updateEditForm(e,r+t):this.updateEditForm(e,t)}updateMultipleFields(e,t){e.forEach(e=>{let r=null;t[e]&&(r=t[e]),this.updateEditForm(e,r)})}buildEditForm(e){let t={};this.customdisplayfields.forEach(e=>{this.$set(t,e,this.editForm[e])});const{RelatedEntities:r,...i}=e;this.relatedForm=r||{},this.editForm={...i,...t}}getMultipleLookupValue(){for(let e in this.$refs)0==e.indexOf("multiplelookup_")&&this.$refs[e]&&this.$refs[e]._fetchRecords()}customValidata(e,t,r){if(e&&this.$refs[e]){let i=this.$refs[e].$el;this.$nextTick(()=>{r?(i.classList.add("is-success"),i.classList.remove("is-error"),this.$set(this.editForm,t,!0)):(i.classList.remove("is-success"),this.$set(this.editForm,t,null))})}}getAttributeDisplayText(e,t,r){t&&(t=t.toLowerCase());let i=null;return this.editForm&&e&&this.editForm.FormattedValues&&(i=this.editForm.FormattedValues[e],!i)&&("lookup"==t||"owner"==t||"multipletypelookup"==t||"customer"==t?this.editForm[e]&&(i=this.editForm[e].name):i="picklist"==t||"picklistarray"==t?"":"partylist"==t?(this.editForm[e]||[]).map(e=>e.name).join(";"):"state"==t?r&&r[this.editForm.statecode]||this.editForm.statecode:this.editForm[e]),"number"==typeof i&&(i=""+i),i}__getIndexDBKey(){let e="vform/"+this.objectTypeName;return this.formId?e+="/"+this.formId:this.formLogicalName&&(e+="/"+this.formLogicalName),e}__loadSchemasForIndexedDB(){return new Promise(e=>{const t=this.__getIndexDBKey();this.$apaasStorage.openDB(2,(r,i)=>{this.$apaasStorage.find(r,i,t,t=>{try{if(r.close(),t&&t.data){let e=JSON.parse(t.data);this.__loadSchemasDetail(e)}}catch(e){}return e()},()=>e(),!0)},()=>e())})}__loadSchemas(){var e;let t={entityName:this.objectTypeName},r="api/vform/GetDefaultFormPage";return this.isPreview&&(t.isPreview=this.isPreview),this.isPrint&&(t.isPrint=this.isPrint),this.LayoutXmlMd5&&(t.LayoutXmlMd5=this.LayoutXmlMd5),this.formId?(r="api/vform/GetFormPage",t.formId=this.formId):this.formLogicalName&&(r="api/vform/GetFormPage",t.formId=this.formLogicalName),null!==(e=this.processConfig)&&void 0!==e&&e.hasRule?t.ruleLogicalName=this.processConfig.ruleLogicalName||"":this.sourceFlowId&&(t.sourceFlowId=this.sourceFlowId,t.activityId=this.activityId),t.optimize=!0,rt.get(r,t).then(e=>{if(!this.isPreview){const t=this.__getIndexDBKey();this.LayoutXmlMd5!==e.LayoutXmlMd5||e.LayoutJson||(e.LayoutJson=this.allSchema.LayoutJson),this.$apaasStorage.openDB(2,(r,i)=>{this.$apaasStorage.add(r,i,t,JSON.stringify(e))})}this.LayoutXmlMd5!=e.LayoutXmlMd5&&this.__loadSchemasDetail(e)}).catch(e=>{this.dispatch("needSchemaLoaded","schemaLoaded"),rt.showErrorToast(e)}).finally(()=>{this.resetFormChangeStatus()})}__loadSchemasDetail(e){if(!e)return e;this.allSchema=e;let t=!1,r=[],i=!1,a={};if(e.metaformrules&&e.metaformrules.length>0)for(let n of e.metaformrules){if(n.SourceFlowId&&(t=!0),n.EnableIncrementalRule&&(i=!0),n.Layout){let e=JSON.parse(n.Layout);for(let t of e.children){let e=this.restructRule(t);r.push(e)}}if(n.SystemParamList&&n.SystemParamList.length&&n.SystemParamList.forEach(e=>{this.systemParams[e.new_name]=e.new_value}),n.relationFields){let e=JSON.parse(n.relationFields);for(let t in e)a.hasOwnProperty(t)?(a[t].fields=a[t].fields.concat(e[t].fields),a[t].fields=Array.from(new Set(a[t].fields))):a[t]=e[t]}this._relationFields=a}this.brules=r,this.isFlow=!i&&t,Tu(this.allSchema,this),this.fieldpermissions=e.fieldpermissions||[],this.schemas=e.vnodes,this.events=e.events,this.formrules=e.formrules,this.attributemappings=e.attributemappings,this.hooks=e.hooks,this.LayoutXmlMd5=e.LayoutXmlMd5,this.FormId=e.FormId,this.primaryAttribute=e.primaryAttribute,this.EntityDisplayName=e.EntityDisplayName||"",0==this.formStatus?this.initFromEntityData().then(()=>{this.schemaLoaded=!0,this.$nextTick(()=>{this.$emit("schemaLoaded",!0),this.dispatch("needSchemaLoaded","schemaLoaded"),this.resetFormChangeStatus()})}):(this.schemaLoaded=!0,this.$nextTick(()=>{this.$emit("schemaLoaded",!0),this.dispatch("needSchemaLoaded","schemaLoaded"),this.resetFormChangeStatus()}))}async load(e=!1){if(this.objectTypeName&&this.objectId&&0!=this.formStatus){const e="api/dynamic/"+encodeURIComponent(this.objectTypeName)+"/get";let t={id:this.objectId};this.formId||this.formLogicalName?t.formId=this.formId||this.formLogicalName:t.defaultFormType=1,this.isPreview&&(t.isPreview=this.isPreview),this.sourceFlowId&&(t.sourceFlowId=this.sourceFlowId,t.activityId=this.activityId),this.approveStepId&&(t.ApproveStepId=this.approveStepId),this.toDoTaskId&&(t.toDoTaskId=this.toDoTaskId),this.loading=!0;const r=await rt.get(e,t).catch(e=>{rt.showErrorToast(e)}).finally(()=>{this.loading=!1,this.datafirstRender=!0,this.resetFormChangeStatus()});this.buildEditForm(r),this.changedProps=[],this.$nextTick(()=>{this.$refs.audits&&this.$refs.audits.reload()}),this.getMultipleLookupValue(),this.dataLoaded=!0}else{this.dataLoaded=!0,e||this.buildEditForm({}),this.changedProps=[];const{attr:t,value:r}=this.$route.params;void 0!==t&&this.updateEditForm(t,r)}this.checkApprovalUser(!0),this.CheckIsMyApprove(!0),this.resetFormChangeStatus()}setFieldpermissions(e){if(this.schemaLoaded)return;let t=e.length-1;for(;t>=0;){var r=e[t],i={props:r.props||{},class:r.class,key:r.Name};let a=r.field;this.fieldpermissions&&this.fieldpermissions.length>0&&this.fieldpermissions.forEach(e=>{e.logicalname==a&&(e.canread||(i.props.placeholder="********"),0!=this.formStatus||e.cancreate||(i.props.disabled=!0,i.props.readonly=!0),1!=this.formStatus||e.canupdate||(i.props.disabled=!0,i.props.readonly=!0))}),t--}}relationImportExcel(e,t){if(this.checkIsPreview())return;let r=null,i=this.$refs[this.getSubgridRefKey(t)];i&&i.$refs&&(r=(i.$refs.table||i.$refs.cardTable).category),this.$refs.relationImportExcelDialog.show(t.objectTypeName,r)}relationImportTemplate(e,t){if(this.checkIsPreview()||!this.objectId)return;let r=null,i=this.$refs[this.getSubgridRefKey(t)];i&&i.$refs&&(r=(i.$refs.table||i.$refs.cardTable).category),this.$refs.MappingExcelImportDialog.show(t.objectTypeName,r,t.targetEntityDisplayName,{objectId:this.objectId,attribute:t.filterAttribute},i.viewId,!1)}__relationImportCallBack(e){this.subGridReload(e,"",!0)}__relationDialogUpdateHandler(e){this.relationDialog&&(this.relationDialog.visible=e)}subgridEditHandler({id:e,tagData:t,formId:r,showStyle:i}){if(!this.checkIsPreview()&&this.checkIsCreated())if(t){t.formId=r;let a=null;t.parentDisplayAttribute&&(a=this.editForm[t.parentDisplayAttribute]);const n={visible:!0,formId:t.formId,objectTypeName:t.objectTypeName,targetEntityDisplayName:t.targetEntityDisplayName,objectId:e,filterAttribute:t.filterAttribute,relationshipName:t.relationshipName,subgridIsReadonly:t.subgridIsReadonly,filterValue:{logicalname:this.objectTypeName,name:a,id:this.objectId},parentPrimaryAttribute:t.parentPrimaryAttribute,subgridkey:t.subgridkey,showStyle:i};this.relationDialog=n,this.dialogTimes+=1}else rt.showErrorToast(this.$_t("platform.InvalidTagData","无效的tagData, 请采用有效的控件."))}relationExportImg(e,t){this.relationExportAll(e,t,!0)}showFormDialog_Header(e,t){if(this.checkIsPreview())return;let r={formLogicalName:t.dialogFormLogicalName,objectTypeName:this.objectTypeName,objectId:this.objectId,fromEntity:this.editForm,fromEntityName:this.objectTypeName,customerProps:{fromEntity:this.editForm}};r.formLogicalName?this.showDialog("vformcore",t.label,r,this.load,t.dialogFormSize||"large"):rt.showErrorToast(this.$_t("platform.notSetPopForm","未设置弹出窗体,请联系管理员配置"))}showFormDialog_SubGridRow(e,t,r,i,a,n){if(this.checkIsPreview())return;let o={formLogicalName:r,objectTypeName:i,objectId:e,customerProps:{fromEntity:this.editForm},fromEntity:this.editForm};o.formLogicalName?this.showDialog("vformcore",t,o,a,n):rt.showErrorToast(this.$_t("platform.notSetPopForm","未设置弹出窗体,请联系管理员配置"))}showFormDialog_SubGrid(e,t){rt.showErrorToast(this.$_t("platform.vformcore_not_support","暂不支持"))}relationExportAll(e,t,r){if(this.checkIsPreview())return;if(!this.checkIsCreated())return;let i=this.getSubgridRefKey(t);this.$refs[i].exportAll(r)}relationAdd(e,t){if(this.checkIsPreview())return;if(!this.checkIsCreated())return;let r=this.getSubgridRefKey(t);10==this.$refs[r].showStyle&&this.$refs[r].getTableData().length>=5?rt.showErrorToast(this.$_t("five_entries","卡片风格下,子网格数据不能超过五条")):this.$refs[r].gotoAddPage()}relationDesign(e,t){this.checkIsCreated()&&this.designViewCommon(t.viewId,1)}_getListTable(e){for(const t of e){if(t.subgridkey)return t;if(t.$children&&t.$children.length>0){const e=this._getListTable(t.$children);if(e)return e}}return null}resetSubgrid(){let e="",t="";for(let r in this.$refs){const i=this.allSubgridKey.filter(e=>e.subgridKey==r);if(i[0]&&this.$refs[i[0].subgridKey]){e=i[0].subgridEntityName,t=i[0].subgridId;const r=`subgrid_${e}_${t}`,a=this.$refs[r],n=this._getListTable(a.$children);n&&n.resetSubgridInCreateFormData&&n.resetSubgridInCreateFormData(),this.subgridData={}}}}executeSubgridSaveHandler(e){let t="",r="",i=[];for(let a in this.$refs){const n=this.allSubgridKey.filter(e=>e.subgridKey==a);if(n[0]&&this.$refs[n[0].subgridKey]){t=n[0].subgridEntityName,r=n[0].subgridId;const a=`subgrid_${t}_${r}`,o=this.$refs[a],s=this._getListTable(o.$children);let l=!0;s&&(l=!s.subgridIsReadonly&&!![...new Set(s.subgridHasEditableField)].length),s&&l&&s.vformcoreBtnSave&&(this.subgridDataInCreateFormHandler(o.getDataInCreate()),s.vformcoreBtnSave({subgirdEntityName:o.targetEntityType,isSubgridEdit:!1,relationshipName:o.relationshipName,data:{row:s.allSubgridData}})),s&&l&&null!=s.subgridValidateResult&&i.push(s.subgridValidateResult);const d=o&&o.showStyle&&[1,10].includes(o.showStyle);e&&d&&(o._fetchRecords(-1),s&&s.resetSubgridInCreateFormData&&s.resetSubgridInCreateFormData(),this.subgridData={})}}return-1===i.indexOf(!1)}validSubgrid(){if(0==this.allSubgridKey.length)return!0;let e=!0;return this.allSubgridKey.forEach(t=>{let r=this.$refs[t.subgridKey];r&&r.subgridIsRequired&&!r.subgridIsReadonly&&(0==this.formStatus?t.required&&0==r.subgridNeedAddFirst()&&(rt.showErrorToast(this.$_t("grid.details","请输入{0}子档信息",{0:r.label})),e=!1):0==r.subgridNeedAddFirst()&&(rt.showErrorToast(this.$_t("grid.details","请输入{0}子档信息",{0:r.label})),e=!1))}),e}__saveForm(e,t,r,i,a,n={}){if(this.loading)return a();this.loading=!0,rt.showLoadingToast(this.$_t("common.loading","正在加载数据..."));let o={};for(const s in this.$refs)0===s.indexOf("notes_")&&this.$refs[s]&&this.$refs[s].getNotesData&&(o[s]=this.$refs[s].getNotesData());return rt.post(e,t).then(async e=>{const t=0==this.formStatus,a=r&&e?e.$id:e;try{this.afterSaveFunc&&await this.afterSaveFunc(a)}catch(e){throw e}if(this.resetSubgrid(),this.resetFormChangeStatus(),rt.hideLoadingToast(),this.loading=!1,this.isLookupAdd)return this.$emit("callback",e),void i(e);if(t&&0==this.formType){var s;let t=this.$route.params;e&&(t.id=a),null!==(s=this.customerData)&&void 0!==s&&s.mergeQueryToExtraParams&&(t.extraParmas=JSON.stringify(this.$route.query||{})),this.$router.replace({name:this.$route.name,params:t})}return r?(this.buildEditForm(e),e&&(this.objectId=e.$id)):this.objectId=e,this.changedProps=[],this.$refs.audits&&this.$refs.audits.reload(),this.$refs["team-members"]&&this.$refs["team-members"].getTeamData(this.objectId),this.datafirstRender=!0,this.resetMaskFieldStatus(),await new Promise(e=>{this.$nextTick(async()=>{await this.saveNotesMasterSub(o),0!=this.formType&&this.$emit("subGridReload"),this.$emit("saved-callback",{objectId:a}),n&&n.noToast||rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功")),e(!0)})}),e}).then(e=>{!this.isDialogMode&&!this.isDrawerMode||n&&n.notCloseDialog||this.$emit("dialog-close"),this.executeSubgridSaveHandler(!0),i(e)}).catch(e=>{this.loading=!1,rt.hideLoadingToast(),rt.showErrorToast(e),a()}).finally(()=>{this.getMultipleLookupValue(),this.loading=!1})}__savePure(e,t,r,i,a,n={}){return this.loading?a():(this.loading=!0,rt.showLoadingToast(this.$_t("common.loading","正在加载数据...")),rt.post(e,t).then(async e=>{const t=r&&e?e.$id:e;try{this.afterSaveFunc&&await this.afterSaveFunc(t)}catch(e){throw e}if(this.resetFormChangeStatus(),rt.hideLoadingToast(),this.loading=!1,this.isLookupAdd)return this.$emit("callback",e),void i();r?(this.buildEditForm(e),e&&(this.objectId=e.$id)):this.objectId=e,this.changedProps=[],this.datafirstRender=!0,this.resetMaskFieldStatus(),this.$emit("saved-callback",{objectId:t}),n&&n.noToast||rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功")),i(e)}).then(()=>{i()}).catch(e=>{this.loading=!1,rt.hideLoadingToast(),rt.showErrorToast(e),a()}).finally(()=>{this.loading=!1}))}prepareParamsBeforeSave(e=!1){let t="api/dynamic/"+this.objectTypeName;t+=e?"/SaveAndFetch":"/save",this.approveStepId&&(t+="/"+this.approveStepId);let r,i="";if(this.toDoTaskId&&(i+="?toDoTaskId="+this.toDoTaskId),this.FormId&&(i+=i?"&formId="+this.FormId:"?formId="+this.FormId),t+=i,this.formStatus>0){if(r={},this.changedProps&&this.changedProps.length&&this.changedProps.length>0)for(let a=0;a0)for(let a in this.subgridData){const e=this.subgridData[a];if(!e.length)continue;const t=e.map(e=>{const t={...e};return delete t.tagId,t});r[a]=t}return{apiUrl:t,savingAttrs:r}}_beforeSaveExec(){return new Promise(async(e,t)=>{if(this.beforeSaveFunc)try{await this.beforeSaveFunc()}catch(e){return t(e)}return this.validSubgrid()&&this.executeSubgridSaveHandler()?void e():t()})}__save(e=!1){return this.checkBeforeSave(),this.objectTypeName?new Promise((t,r)=>{this.$PlatUtils.validateFormByRc(this.$refs.editForm,async(i,a,n)=>{try{if(i){await this._beforeSaveExec();const{apiUrl:i,savingAttrs:a}=this.prepareParamsBeforeSave(e);return this.__saveForm(i,a,e,t,r)}this.validFailedHandler(a,n,r)}catch(e){rt.showErrorToast(e),r(e)}})}):Promise.reject()}saveNotesMasterSub(e){return new Promise((t,r)=>{let i=[];this.$nextTick(async()=>{for(let t in this.$refs)0==t.indexOf("notes_")&&this.$refs[t]&&this.$refs[t].saveMasterFile&&i.push(this.$refs[t].saveMasterFile(e[t]));let r=await Promise.all(i);return t(r),r})})}save(){return this.__save(!0)}__saveAndCatchError(){return this.__save(!0).then(()=>{}).catch(()=>{})}async saveAndClose(){await this.__save(!1).then(e=>{0==this.formType&&this.$router.go(-1)}).catch(()=>{})}saveAndNew(){this.__save().then(()=>{if(this.$route.name){let e=this.$route.params||{};e.id&&delete e.id,this.$router.replace({name:this.$route.name,params:e}),location.reload()}else this.$router.replace("/vform/"+this.objectTypeName),location.reload()})}saveWithoutToast(e=!1){return this.checkBeforeSave(),this.objectTypeName?this.validEditForm(e):Promise.reject()}async savePromise(e=!1,t={}){return this.checkBeforeSave(),this.objectTypeName?new Promise((r,i)=>{this.$PlatUtils.validateFormByRc(this.$refs.editForm,async(a,n,o)=>{try{if(a){await this._beforeSaveExec();const{apiUrl:a,savingAttrs:n}=this.prepareParamsBeforeSave(e);this.__savePure(a,n,e,r,i,t)}else this.validFailedHandler(n,o,i)}catch(e){rt.showErrorToast(e),i(e)}})}):Promise.reject()}validEditForm(e=!1){return new Promise((t,r)=>{this.$PlatUtils.validateFormByRc(this.$refs.editForm,(i,a,n)=>{try{i?this.validSuccessHandler().then(()=>{const{apiUrl:i,savingAttrs:a}=this.prepareParamsBeforeSave(e);this.__saveForm(i,a,e,t,r,{noToast:!0,notCloseDialog:!0})}):this.validFailedHandler(a,n,r)}catch(e){rt.showErrorToast(e),r(e)}})})}validFailedHandler(e,t,r){if(e.contains("is required")){let e=this.schemas.find(e=>"formitem"==e.nodeType&&e.props.prop==t);e?rt.showErrorToast(this.$_t("platform.enterString","请输入")+e.props.label):rt.showErrorToast(this.$_t("PleaseInputRequiredFields","请输入必填项"))}else rt.showErrorToast(e);r()}validSuccessHandler(){return this._beforeSaveExec()}checkBeforeSave(){if(this.checkIsPreview())return Promise.resolve();if(!this.objectTypeName)return Promise.resolve();if(this.formStatus>0)for(var e in this.$refs){if(0==e.indexOf("notes_")&&this.$refs[e]&&this.$refs[e].checkCount&&!this.$refs[e].checkCount())return Promise.resolve();if(0==e.indexOf("imagefield_")){var t=this.$refs[e];t&&t.required&&null==this.editForm[t.attributename]?t.checkRequired(!0):t&&t.checkRequired(!1)}}}saveAndsubmitapprove(){this.btnLoading||(this.btnLoading=!0,this.save().then(()=>{this.btnLoading=!1,this.submitapprove()}).catch(()=>{this.btnLoading=!1}))}close(){this.changedProps&&this.changedProps.length&&this.changedProps.length>0&&this.$confirm(this.$_t("platform.vformcore_not _save","当前有变更未保存,是否放弃?"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning"}).then(()=>{rt.showErrorToast(this.$_t("platform.vformcoreAbandoned","已放弃.")),this.$router.push("/vlist/"+this.objectTypeName)}).catch(e=>{rt.showErrorToast(e)})}delete(){this.objectTypeName&&this.deleteByIds(this.objectTypeName,[this.objectId]).then(()=>{this.isDialogMode||this.isDrawerMode?this.$emit("dialog-close"):this.$router.go(-1)})}enableInSubgrid(e,t){if(!this.objectTypeName)return;if(this.checkIsPreview())return;const r=this.getSubgridRefKey(t),i=this.$refs[r].multipleSelection;if(!i||!i.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));let a=i.filter(e=>e.$id).map(e=>e.$id);this.enableByIds(t.objectTypeName,a).then(()=>{this.subGridReload(t.objectTypeName,t.subgridkey,!0)}).catch(e=>{})}disableInSubgrid(e,t){if(!this.objectTypeName)return;if(this.checkIsPreview())return;const r=this.getSubgridRefKey(t),i=this.$refs[r].multipleSelection;if(!i||!i.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));let a=i.filter(e=>e.$id).map(e=>e.$id);this.disableByIds(t.objectTypeName,a).then(()=>{this.subGridReload(t.objectTypeName,t.subgridkey,!0)}).catch(e=>{})}disable(){this.objectTypeName&&this.disableById(this.objectTypeName,this.objectId).then(()=>{"businessunit"==this.objectTypeName?this.editForm.isdisabled=!0:this.editForm.statecode=1}).catch(e=>{}).finally(()=>{this.load()})}enable(){this.objectTypeName&&this.enableById(this.objectTypeName,this.objectId).then(()=>{"businessunit"==this.objectTypeName?this.editForm.isdisabled=!1:this.editForm.statecode=0}).catch(e=>{}).finally(()=>{this.load()})}disableOrEnable(){this.checkIsPreview()||this.checkIsCreated()&&(0==this.editForm.statecode||0==this.editForm.isdisabled?this.disable():this.enable())}reload(e=!1){this.dataLoaded=!1,this.__isMounted=!1,this.load(e),this._fetchEntityPrivilege()}getSubgridRefKey(e){return`subgrid_${e.objectTypeName}_${e.subgridkey}`}relationDelete(e,t){if(!this.checkIsPreview()&&this.checkIsCreated())if(t){let e=this.getSubgridRefKey(t);e&&this.$refs[e]&&this.$refs[e].deleteData()}else rt.showErrorToast(this.$_t("platform.InvalidTagData","无效的tagData, 请采用有效的控件."))}subGridChange(){this.load()}subGridReload(e,t,r){if(t){let i=`subgrid_${e}_${t}`;i&&this.$refs[i]&&this.$refs[i]._fetchRecords(-1,r)}else{let t="subgrid_"+e;for(let e in this.$refs)0==e.indexOf(t)&&this.$refs[e]&&this.$refs[e].hasOwnProperty("_fetchRecords")&&this.$refs[e]._fetchRecords(-1,r)}}jumpPageWithPathByRelation(e,t){this.$router.push({path:e,query:t})}jumpPageWithNameByRelation(e,t){this.$router.push({name:e,query:t})}flowapprove(){this.$refs.flowapprove.show()}submitapprove(){this.btnLoading||(this.btnLoading=!0,this._checkIsJApproval(this.objectTypeName,this.objectId).then(e=>{this.btnLoading=!1,e?this.newsubmitapprove():!this.checkIsPreview()&&this.checkIsCreated()&&this.$refs.flowsubmit&&this.objectId&&this.$refs.flowsubmit.show()}).catch(()=>{this.btnLoading=!1}))}async handleBizButtonClick(e,t,r){let i;i=r||this,gs({thisVue:i,resourceKey:e,bizOperationName:t,location:"formheader"})}async _newsubmitapprove(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfSubmitExecute",location:"formheader"})}get newsubmitapprove(){return this.$xpc.debounce(this._newsubmitapprove,500,{leading:!0,trailing:!1})}openDialogComponent(e,t,r="show"){return new Promise((i,a)=>{let n=new(te.f.extend({render:r=>r(e,{ref:"dialog",props:t}),store:this.$store}));n.$mount();const o=n.$refs.dialog;n.$nextTick(()=>{o[r]()}),o.$once("close",()=>{n.$destroy(),n=void 0,a()}),o.$once("confirm",()=>{n.$destroy(),n=void 0,i()})})}revoke(){this._checkIsJApproval(this.objectTypeName,this.objectId).then(e=>{if(e)this.newrevoke();else if(!this.checkIsPreview()&&this.checkIsCreated()&&this.objectId&&this.objectTypeName){let e=this.objectTypeName,t=this.objectId;rt.showLoadingToast("loading..."),rt.revoke(e,t).then(()=>{rt.hideLoadingToast(),this.load()}).catch(()=>{rt.hideLoadingToast()})}})}_newrevoke(){this.checkIsPreview()||this.checkIsCreated()&&this.objectId&&this.objectTypeName&&this.$store.state.user.userId&&gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfReCallExecute",location:"formheader"})}get newrevoke(){return this.$xpc.debounce(this._newrevoke,500,{leading:!0,trailing:!1})}showApprovelist(){this.btnLoading||(this.btnLoading=!0,this._checkIsJApproval(this.objectTypeName,this.objectId).then(e=>{this.btnLoading=!1,e?this.newshowApprovelist():!this.checkIsPreview()&&this.checkIsCreated()&&this.$refs.flowapprovallist&&this.objectId&&this.$refs.flowapprovallist.show()}).catch(()=>{this.btnLoading=!1}))}_newshowApprovelist(){this.checkIsPreview()||this.checkIsCreated()&&gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfStatelineExecute",location:"formheader"})}get newshowApprovelist(){return this.$xpc.debounce(this._newshowApprovelist,500,{leading:!0,trailing:!1})}async _showApprovalAgree(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfAgreeExecute",location:"formheader"})}get showApprovalAgree(){return this.$xpc.debounce(this._showApprovalAgree,500,{leading:!0,trailing:!1})}async _showApprovalCountersign(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfAddSignExecute",location:"formheader"})}get showApprovalCountersign(){return this.$xpc.debounce(this._showApprovalCountersign,500,{leading:!0,trailing:!1})}async _showApprovalTransfer(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfTransferExecute",location:"formheader"})}get showApprovalTransfer(){return this.$xpc.debounce(this._showApprovalTransfer,500,{leading:!0,trailing:!1})}async _showApprovalOverrule(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfOverruleExecute",location:"formheader"})}get showApprovalOverrule(){return this.$xpc.debounce(this._showApprovalOverrule,500,{leading:!0,trailing:!1})}async _showApprovalReject(){gs({thisVue:this,resourceKey:"signflowcomponents",bizOperationName:"wfRejectExecute",location:"formheader"})}get showApprovalReject(){return this.$xpc.debounce(this._showApprovalReject,500,{leading:!0,trailing:!1})}grantAccess(){this.checkIsPreview()||this.checkIsCreated()&&this.$refs.GrantAccessDialog.show([this.objectId])}assign(e){this.checkIsPreview()||this.checkIsCreated()&&(e&&e.defaultViewId?this.$refs.AssignDialog.show([this.objectId],e.defaultViewId,"form"):this.$refs.AssignDialog.show([this.objectId],"","form"))}print(e){if(!this.checkIsPreview())if(e)if(window.__POWERED_BY_QIANKUN__){let t=sessionStorage.subappKey||"mainweb";window.open(`${window.location.protocol}//${window.location.host}/s/${localStorage.keycloak_realm}/${t}/#/vformprint/${this.objectTypeName}/${e}/${this.objectId}`)}else{let t=this.$router.resolve({name:"VFormPrint",params:{entityName:this.objectTypeName,formLogicalName:e,id:this.objectId}});window.open(t.href,this.objectTypeName+e+this.objectId)}else rt.showErrorToast(this.$_t("platform.notSetPrintForm","未设置打印窗体,请联系管理员配置"))}registerStep(e){rt.showLoadingToast(),rt.get("api/plugin/ManualRegisterPluginStep?entityName="+this.objectTypeName+"&bindEntityName="+e).then(()=>{rt.hideLoadingToast(),rt.showSuccessToast(this.$_t("new_iotdevice.registerSuccess","注册成功"))}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}defaultFunc(){this.$message(this.$_t("platform.vlistcoreButtonType","不适用的按钮操作类型"))}iconPick(e){if(e){if(0==/^((0\d{2,3}(-?)\d{7,8})|((00|\+)[1-9]{1}([0-9][\s]*){9,16})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/.test(e))rt.showErrorToast("请输入正确的电话号码!");else if(this.storeCallCenter&&Object.keys(this.storeCallCenter).length>0){let r=this.storeCallCenter.CALL_INFO,i={sessionId:r.sessionId,editForm:this.editForm};if(this.storeCallCenter.CALL_TYPE){if(10==this.storeCallCenter.CALL_TYPE){if(r.currentStatus&&"offline"==r.currentStatus.status)return void rt.showErrorToast("您的账号已在其他设备登录,请重新登录!");if(r.tokenExpired)return void rt.showErrorToast("您的账号信息已过期,请重新登录!");if(r.isMicrophoneDisabled)return void rt.showErrorToast("请打开设备的麦克风权限!");r.Call.startOutboundCall({phoneNumber:e})}if(20==this.storeCallCenter.CALL_TYPE&&r.call(e),30==this.storeCallCenter.CALL_TYPE){var t={tel:e};r.previewOutcall(t)}window.__POWERED_BY_QIANKUN__?this.$mainBus.$emit("start-call",i):this.$bus.$emit("start-call",i)}}else if(this.storeCall&&Object.keys(this.storeCall).length>0){if(this.storeCall.currentStatus&&"offline"==this.storeCall.currentStatus.status)return void rt.showErrorToast("您的账号已在其他设备登录,请重新登录!");if(this.storeCall.tokenExpired)return void rt.showErrorToast("您的账号信息已过期,请重新登录!");if(this.storeCall.isMicrophoneDisabled)return void rt.showErrorToast("请打开设备的麦克风权限!");this.storeCall.Call.startOutboundCall({phoneNumber:e});let t={sessionId:this.storeCall.sessionId,editForm:JSON.parse(JSON.stringify(this.editForm))};window.__POWERED_BY_QIANKUN__?this.$mainBus.$emit("start-call",t):this.$bus.$emit("start-call",t)}}else rt.showErrorToast("请输入电话号码!")}assignCallback(){let e="api/vform/GetAssignEntities?entityLogicalName="+this.objectTypeName;rt.get(e).then(e=>{e&&e.length>0&&e.forEach(e=>{this.subGridReload(e,"",!0)})}).catch(e=>{rt.showErrorToast(e)}),this.reload()}getFormCacheByRelation(){return{relationTab:this.relationTab||{}}}setFormCachedDataByRelation(e){e&&Object.keys(e).length>0&&(this.relationTab=e.relationTab)}relationBatchPreviewWordTemplate(e,t,r){if(r){let t=this.getSubgridRefKey(r);if(t&&this.$refs[t]){let i=this.$refs[t].getSelectedVal();0==i.length?rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录")):this.wordTemplateDialog(i,!0,r,!1,{printTemplateId:e,selectionLength:i.length})}}else rt.showErrorToast(this.$_t("platform.InvalidTagData","无效的tagData, 请采用有效的控件."))}wordTemplateDialog(e,t,r,i,a){let n=this.$store.state.systemparameter&&this.$store.state.systemparameter.LimitPrintFileDownloadQuantity,o=!n||n<=0,s=e.length;o&&(n=5),n>30&&(n=30),n{this.downloadFile({url:e.fileUrl,name:e.fileName}),rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}previewWordTemplate(e,t=!0,r,i){this.previewWordTemplateCommon(this.editForm.$id,this.objectTypeName,e,t,r,i)}hideAllMaskData(){let e=`api/dynamic/${this.objectTypeName}/getmaskdata?id=${this.objectId}`;rt.post(e,Object.keys(this.maskFields)).then(e=>{Object.keys(this.maskFields).forEach(t=>{this.$set(this.editForm,t,e[t])}),this.$set(this.editForm,"globalHideMask",!1);for(let t in this.maskFields)this.maskFields[t]=!1;this.maskFields={...this.maskFields}}).catch(e=>{rt.showErrorToast(e)})}showAllMaskData(){let e=`api/dynamic/${this.objectTypeName}/getunmaskdata?id=${this.objectId}`;rt.post(e,Object.keys(this.maskFields)).then(e=>{Object.keys(this.maskFields).forEach(t=>{this.$set(this.editForm,t,e[t])}),this.$set(this.editForm,"globalHideMask",!0);for(let t in this.maskFields)this.maskFields[t]=!0;this.maskFields={...this.maskFields}}).catch(e=>{rt.showErrorToast(e)})}resetMaskFieldStatus(){for(let e in this.maskFields)this.maskFields[e]=!1;this.maskFields={...this.maskFields}}__addSubgridRow(e,t){if(t){let e=this.getSubgridRefKey(t);e&&this.$refs[e]&&this.$refs[e].addRow()}}appendSubgridRowData(e,t,r){if(!t)return;if(!(r&&r instanceof Object))return;let i=this.getSubgridRefKey(t);i&&this.$refs[i]&&this.$refs[i].addRow(r)}getSubgridDataInCreateForm(e){if(!e)return[];let t=this.getSubgridRefKey(e);return t&&this.$refs[t]&&this.$refs[t].getDataInCreateForm()||[]}checkIsCreated(){return this.pageType!=fs.e.PCForm||0!=this.formStatus||(rt.showErrorToast(this.$_t("common.pls_save_info","请先保存数据")),!1)}designFormCommon(){let e=this.$PlatUtils.getStudioOneUrl()||this.$getStudioOneUrl();if(""==e)return rt.showErrorToast("studioOneUrl is null..."),!1;let t=e;t+="#/layout/external?";let r="";this.FormId?r=this.FormId:this.formId&&(r=this.formId),t+="pageid="+encodeURIComponent(r),t+="&pagetype=2",window.open(t)}subgridDataInCreateFormHandler(e){for(let t in e)e[t].length>0&&(this.subgridData={...this.subgridData,...e})}removeDataInSubgrid(e){if("{}"!==JSON.stringify(this.subgridData))for(let t in this.subgridData){if(!this.subgridData[t].length)return;this.subgridData[t]=this.subgridData[t].filter(t=>t.tagId!==e)}}setTabsActivePane(e,t){const r=this.$refs[e];if(!r||!r.$children)return;let i="0";r.$children[0].panes.forEach(e=>{e&&t===e.$attrs.activeCode&&(i=e.$props.name)}),this.$refs[e].$attrs&&(this.$set(this.tabIndexs,this.$refs[e].$attrs.vnodeCid,i+""),this.relationTab&&(this.relationTab.currentName=""),this.$forceUpdate())}resetFormChangeStatus(){this.dialogFormId?this.$bus.$emit("dialogFormDataClose-"+this.dialogFormId):window.formDataChanged=!1}};Object(J.__decorate)([Object(te.d)({default:""})],Mu.prototype,"formId",void 0),Object(J.__decorate)([Object(te.d)({default:""})],Mu.prototype,"formLogicalName",void 0),Object(J.__decorate)([Object(te.d)({default:Hc.Subgrid})],Mu.prototype,"formType",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"fromEntity",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"fromEntityId",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"fromEntityName",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"toEntity",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"subGridRefAttribute",void 0),Object(J.__decorate)([Object(te.d)()],Mu.prototype,"parentPrimaryAttribute",void 0),Object(J.__decorate)([Object(te.d)({default:!1,required:!1})],Mu.prototype,"isPrint",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1,required:!1})],Mu.prototype,"subGridQuery",void 0),Object(J.__decorate)([Object(te.d)({required:!1})],Mu.prototype,"customerProps",void 0),Object(J.__decorate)([Object(te.d)({default:!1,required:!1})],Mu.prototype,"isLookupAdd",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Mu.prototype,"isDialogMode",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Mu.prototype,"isDrawerMode",void 0),Object(J.__decorate)([Object(te.d)({default:!1})],Mu.prototype,"readonly",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Mu.prototype,"stepId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Mu.prototype,"taskId",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Mu.prototype,"toDoId",void 0),Object(J.__decorate)([Object(te.d)({type:Object,default:()=>({})})],Mu.prototype,"processConfig",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Mu.prototype,"fromQueryId",void 0),Object(J.__decorate)([Object(te.g)("execMountCondition")],Mu.prototype,"execMountConditionHandler",null),Object(J.__decorate)([Object(te.g)("objectId")],Mu.prototype,"objectIdHandler",null),Mu=Object(J.__decorate)([Object(te.a)({name:"vformcore",components:{"rt-subgrid":_u,"rt-team-members":Nu}})],Mu);var Lu=Mu,Ru=(r("4775"),r("c895"),Object(_.a)(Lu,void 0,void 0,!1,null,"b985075c",null).exports);function Pu(e,t){if(!e)return;if(!e.LayoutJson)return;t.clearDependVisitContent();const r=JSON.parse(e.LayoutJson);t.isDashboard&&r.children&&(r.children=r.children.filter(e=>"gridtable"===e.$nodetype));const i=function(e){const t=[],r=[];let i=0;for(e.parentIndex=-1,e.nodeIndex=i,t.push(e);t.length>0;){const e=t.pop(),a=eu.a.translateToRuntimeControl(e);r[a.nodeIndex]=a,e.children&&e.children.forEach(e=>{i+=1,e.parentIndex=a.nodeIndex,e.nodeIndex=i,t.push(e)})}return r.forEach(e=>{e.nodeIndex>0&&(e.parent=r[e.parentIndex])}),r.forEach(e=>{e.parent&&e.parent.children.push(e)}),r}(r)[0],a={thisVue:t,dependAttributes:[],pageTypes:fs.e.PCQuery};i.collectDependAttributes(a);const n={thisVue:t,dependAttributes:a.dependAttributes};i.prepare(n);const o={grid:i,queryAttributes:i.BindAttributes(),ModifiedOnTicks:e.ModifiedOn&&e.ModifiedOn.valueOf()||0,LayoutXmlMd5:e.LayoutXmlMd5,ViewVisible:!0};return t.pageSchema=o,t.schemaLoaded=!0,o}function $u(e,t){try{return t.schemaLoaded?function e(t,r){const i=new Array;if(r.children&&r.children.length>0)r.children.forEach(r=>{const a=e(t,r);i.push(a)});else if(r.vtext&&r.vtext.length>0)return t(r.tag,r.data,[r.vtext]);return t(r.tag,r.data,i)}(e,function(e){const t=e.pageSchema;if(!t)return new Zc.e("div","no schema.");const r=e.allSchema,i=t.grid,a=new Zc.c(fs.e.PCQuery,r.PrimaryEntityName,r.SavedQueryId,fs.d.edit,e,i),n=i.buildVNodeTree(a);return n.stackVisit(a),n.addClass("content-vlistView").addClass("apaas-sub-content"),n}(t)):e("div",{},[])}catch(e){throw e}}var Fu=r("6f75");function ju(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let Bu=class extends(Object(te.c)(Du,Jc)){constructor(...e){super(...e),ju(this,"queryId",void 0),ju(this,"category",void 0),ju(this,"queryLogicalName",void 0),ju(this,"fromEntityName",void 0),ju(this,"queryType",void 0),ju(this,"customerProps",void 0),ju(this,"pageSource",void 0),ju(this,"pageCondition",void 0),ju(this,"enableUserQuery",void 0),ju(this,"isSingleSelect",void 0),ju(this,"isDialogMode",void 0),ju(this,"isSingle",void 0),ju(this,"height",void 0),ju(this,"dashHeight",void 0),ju(this,"dashboardSubAppName",void 0),ju(this,"toEntity",void 0),ju(this,"isDashboard",void 0),ju(this,"dashBoardglobalConditions",void 0),ju(this,"subgridFormData",{}),ju(this,"refProvide",this),ju(this,"showEchartColumn",!1),ju(this,"pageType",fs.e.PCQuery),ju(this,"rules",null),ju(this,"editFormDefault",{}),ju(this,"currentQueryId",this.queryId||""),ju(this,"isGoBack",!1),ju(this,"userDbVersion",0),ju(this,"version",null),ju(this,"queries",[]),ju(this,"EntityDisplayName",""),ju(this,"name",""),ju(this,"module",""),ju(this,"primaryAttribute",""),ju(this,"historyRow",null),ju(this,"orderby",""),ju(this,"userqueryDialog",{visible:!1,title:"",objectTypeName:"",fromEntityName:""}),ju(this,"firstLoad",!0),ju(this,"filterFormList",[]),ju(this,"filterDrawerParams",{additionalConditions:"",extendConditions:""}),ju(this,"filterFormListDefault",[]),ju(this,"isLoadedAllBadge",!1),ju(this,"currentFilterNum",0),ju(this,"currentConditionId","default"),ju(this,"savedComponent",{}),ju(this,"defaultSavedComponent",{}),ju(this,"gridConditionIsChanged",!1),ju(this,"LayoutObject",{}),ju(this,"showSaveTableWidthIcon",!1),ju(this,"currentViewType",{}),ju(this,"echartQueryOptions",{}),ju(this,"ifKeepSelection",!1),ju(this,"disablePersonalView",!1),ju(this,"changeIndex",[]),ju(this,"brandSaveList",[]),ju(this,"matchNoQueries",!1),ju(this,"echartConditon",[]),ju(this,"chartInfo",void 0),ju(this,"_globalConditions",""),ju(this,"__extendConditionsFromEchart",{}),ju(this,"columnWidths",null),ju(this,"_defaultQueryId",""),ju(this,"lookupTableCellFields",{}),ju(this,"realCategory",""),ju(this,"searchPlaceholder",""),ju(this,"__isMounted",!1)}getEntityDisplayName(){return this.EntityDisplayName}getChangeIndex(){return this.changeIndex}getBrandSaveList(){return this.brandSaveList}get languageId(){return localStorage.getItem("i18nLocaleid")}get isLookUp(){return"lookup"==this.pageSource}get platFilterOperator(){return{"not-null":this.$_t("bi.notempty","不为空"),null:this.$_t("bi.empty","为空"),"next-seven-days":this.$_t("bi.sdays","今后7天"),"last-seven-days":this.$_t("bi.lsdays","最近7天"),"on-or-before-today":this.$_t("bi.tabtoady","早于等于今天"),"before-today":this.$_t("bi.btoday","早于今天"),"on-or-after-today":this.$_t("bi.taatodat","晚于等于今天"),"after-today":this.$_t("bi.atoday","晚于今天"),yesterday:this.$_t("bi.yesterday","昨天"),tomorrow:this.$_t("bi.tomorrow","明天"),today:this.$_t("bi.today","今天"),"under-currentuserid":this.$_t("bi.subordinate","下属"),"eq-or-under-currentuserid":this.$_t("bi.sathemselves","下属及自己"),"under-or-equal-currentbusinessid":this.$_t("bi.currentAndSubordinateDepts","当前部门以及下级部门"),"ne-userid":this.$_t("bi.ntcuser","不是当前用户"),"eq-userid":this.$_t("bi.cusers","当前用户"),"ne-businessid":this.$_t("bi.NCdept","不是当前部门"),"eq-businessid":this.$_t("bi.Cdept","当前部门"),"before-now":this.$_t("bi.bctime","早于当前时间"),"after-now":this.$_t("bi.actime","晚于当前时间"),"this-week":this.$_t("bi.week","本周"),"this-month":this.$_t("bi.month","当月"),"last-month":this.$_t("Operator.LastMonth","上月"),"this-year":this.$_t("bi.year","今年"),"last-year":this.$_t("Operator.LastYear","去年")}}get dashboardConditionName(){var e;let t=null;const r=null===(e=this.$route)||void 0===e?void 0:e.name;if(sessionStorage&&r&&"VList2"==r){const e=this.queryLogicalName||this.queryId,r=Object.keys(sessionStorage);for(let i of r)if(i.includes("globalConditionSession")){const r=i.split("/");r&&r[0]==this.$PlatUtils.getTenantCode()&&r[1]==this.objectTypeName&&e==r[2]&&(t=i)}}return t}get hasSubEntityCol(){try{return this.LayoutObject.children.filter(e=>e.VueTag==Fu.a.GridTable)[0].children.some(e=>!0===e.props.IsSubEntity)}catch(e){return!1}}get isManyToManyRelationship(){return!!this.newTabObject&&this.newTabObject.isManyToManyRelationship}get isUserDefinedQuery(){return"userdefinedquery"===this.objectTypeName}get approveStepId(){return this.$route.params.stepid||this.$route.params.taskid}get toDoTaskId(){return this.$route.params.todotaskid}get userCode(){return this.$store.state.user&&this.$store.state.user.UserCode||""}queryIdHandler(e){this.currentQueryId=e||""}isLoadedAllBadgeHandler(e){e&&this.currentFilterNum>0&&this.reloadCurrentBadges("getBadge")}currentQueryIdHandler(){this.$refs.echartDrawer&&this.$refs.echartDrawer.goBack()}queriesHandler(e){e.length&&this.matchNoQueries&&this.$refs.table&&this.$refs.table.fetchData(!0)}created(){this.realCategory=this.category||""}mounted(){if(this.dashboardConditionName&&!this.isDashboard){const t=rt.getSessionStorage(this.dashboardConditionName);if(t){t.echartCondition&&(this.echartConditon=t.echartCondition),t.data&&(this.changeIndex=t.data),t.globalConditions&&(this._globalConditions=t.globalConditions);try{localStorage.removeItem("chartInfo")}catch(e){}t&&t.chartInfo?(this.chartInfo=t.chartInfo,localStorage.setItem("chartInfo",JSON.stringify(this.chartInfo))):this.chartInfo=void 0}}this.isGoBack&&this.__loadSchemasFromHistory(),this.$PlatUtils.listenerHook(this,"reloadList",()=>{this.reload()}),this.$PlatUtils.listenerHook(this,"showEchart",e=>{this.showEchartColumn=e}),this.$PlatUtils.eventListenerHook(this,"beforeunload",this.clearTableSize)}render(e){return $u(e,this)}_loadPage(){const e=this.newTabObject&&this.newTabObject.isRelatedView;this.isGoBack&&!e||(["userQueryDialog","lookup"].includes(this.pageSource||"")?this.__loadSchemas(this.queryId):this.__loadSchemasForIndexedDB().then(()=>{this.$nextTick(()=>{this.__loadSchemas()})}).catch(()=>{this.__loadSchemas()}))}__loadSchemas(e,t){const r={entityName:this.objectTypeName,category:this.category};let i=e||"",a="";return r.platformType=1,r.optimize=!0,a=this.isLookUp?this.getLookupView(r,i):this.newTabObject&&this.newTabObject.isRelatedView?this.getRelatedView(r,i):this.getDefaultView(r,i),this.queryType&&(r.queryType=this.queryType),this.isPreview&&(r.isPreview=this.isPreview),this.LayoutXmlMd5&&(r.LayoutXmlMd5=this.LayoutXmlMd5),rt.get(a,r).then(e=>{if("api/vlist/GetDefaultListPage"==a||"api/vlist/GetListPage"==a){const t=e&&e.Category;var r;if(!this.category&&t&&t!==this.realCategory&&(this.realCategory=t),e.originalView)this.version=e.originalView.Version,(null===(r=this.queryAttributes)||void 0===r||!r.requestApi)&&e.isusermetaquery&&e.Version!=e.originalView.Version&&this.$confirm(this.$_t("Designer.modification","管理员对当前页面重新进行了配置,你是否同意此更新?更新后页面依然支持个性化调整。"),this.$_t("addresslocation.Tipconfirm","确认提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),type:"warning",closeOnClickModal:!1,closeOnPressEscape:!1}).then(()=>{rt.get("api/vlist/DeleteUserMetaQuery?queryid="+this.currentQueryId).then(()=>{this.refreshtable()})}).catch(()=>{rt.post("api/vlist/UpdateUserQueryVersion?queryid="+e.SavedQueryId).then(()=>{this.refreshtable()}).catch()})}if(this.LayoutXmlMd5!==e.LayoutXmlMd5||e.LayoutJson||(e.LayoutJson=this.allSchema.LayoutJson),this.firstLoad){this.firstLoad=!1;const t=!0;this.__loadSchemasDetail(e,!0,t)}else{const r=1!==t;this.__loadSchemasDetail(e,r)}if(!this.isPreview){const r=this.__getIndexDBKey();0===t&&(this.queries=e.queries);const i=JSON.stringify(e);if(this.newTabObject&&this.newTabObject.isRelatedView)return;this.$apaasStorage.openDB(this.__getIndexDBType(),(t,n)=>{this.$apaasStorage.add(t,n,r,i),(a.indexOf("api/vlist/GetDefaultListPage")>-1||this._defaultQueryId===this.currentQueryId)&&(this._defaultQueryId=e.queryId,this.$apaasStorage.add(t,n,this.__getIndexDBKey(!0),i))})}}).catch(e=>{this.$bus.$emit("tableIsLoadComplete",!0),rt.showErrorToast(e)}).finally(()=>{this.$nextTick(()=>{this.dispatch("needSchemaLoaded","schemaLoaded")})})}__loadSchemasForIndexedDB(e=!0,t=this.currentQueryId){return new Promise((r,i)=>{const a=this.newTabObject&&this.newTabObject.isRelatedView;if(this.isPreview||a)return r();const n=this.__getIndexDBKey(!1,t);this.$apaasStorage.openDB(this.__getIndexDBType(),(t,a)=>{const o=new Promise((e,r)=>{this.$apaasStorage.find(t,a,n,t=>{e(t)},()=>r(new Error),!0)}),s=new Promise((e,r)=>{this.$apaasStorage.find(t,a,n+"/columnWidth",t=>{e(t)},()=>r(new Error),!0)});Promise.allSettled([o,s]).then(([a,n])=>{if(t.close(),"fulfilled"===a.status){const t=a.value;try{if(t&&t.data){const r=JSON.parse(t.data),i=r&&r.Category;!this.category&&i&&i!==this.realCategory&&(this.realCategory=i),this.__loadSchemasDetail(r,e)}else i(new Error)}catch(e){i(new Error)}}else i(new Error(a.reason));if("fulfilled"===n.status){const t=n.value;try{if(t&&t.data){const e=JSON.parse(t.data);this.columnWidths=e}else this.columnWidths={}}catch(e){i(new Error)}}else i(new Error(n.reason));r()})})})}__loadSchemasFromHistory(){const e=this.currentViewType&&this.currentViewType.IsUserQuery;this.isLookUp||e?this.__loadSchemas(this.currentQueryId):this.allSchema&&Object.keys(this.allSchema).length>0&&this.__loadSchemasDetail(this.allSchema,!1)}__loadSchemasDetail(e,t,r){if(!e)return e;this.isDashboard&&this.$emit("sendTitleNameFunction",{title:e.name,entityInfo:e.PrimaryEntityName+"_"+e.LogicalName}),this.allSchema=e,this.allSchema.queryId&&(this.currentQueryId=this.allSchema.queryId),this.currentViewType={isusermetaquery:this.allSchema.isusermetaquery,IsUserQuery:this.allSchema.IsUserQuery},this.allSchema.queries&&(this.queries=this.allSchema.queries);let i=!1;this.queries&&(i=this.queries.some((function(e){if(-1==e.QueryType)return!0})));let a=!1;if(this.queries&&(a=this.queries.some((function(e){if(-2==e.QueryType)return!0}))),!this.isUserDefinedQuery&&e.ViewVisible){if(!a){const e={IsDefault:!1,IsUserQuery:!1,PrimaryEntityName:"",QueryType:-2,SavedQueryId:"",name:this.$_t("BUTTON_SIMPLEQUERY","快速创建视图")};this.queries[this.queries.length]=e}if(!i){const e={IsDefault:!1,IsUserQuery:!1,PrimaryEntityName:"",QueryType:-1,SavedQueryId:"",name:this.$_t("BUTTON_ADDUSERQUERY","个人视图管理")};this.queries[this.queries.length]=e}}if(!0===r&&this.LayoutXmlMd5==e.LayoutXmlMd5)return;if(this.LayoutXmlMd5!=e.LayoutXmlMd5&&(this.__isMounted=!1),this.EntityDisplayName=this.allSchema.EntityDisplayName,this.name=this.allSchema.name,this.module=this.allSchema.Category,this.primaryAttribute=this.allSchema.primaryAttribute,t){this.editFormDefault={};for(const e in this.editForm)this.$set(this.editForm,e,"")}const n=Pu(this.allSchema,this);n&&n.queryAttributes&&(this.queryAttributes=n.queryAttributes,this.disableFetch=n.queryAttributes.disableFetch,n.queryAttributes.paging&&(this.pageInfo||(this.pageInfo={}),this.pageInfo.pageSize=n.queryAttributes.pagingCount));const o=sessionStorage.getItem(window.rtconfig.keycloak_realm+"/vlist/"+this.objectTypeName);o&&this.pageInfo&&(this.pageInfo.pageSize=Number(o)),this.disablePersonalView=e.DisablePersonalView||!1,this.LayoutObject=e.LayoutObject||JSON.parse(e.LayoutJson||""),this._clearDBData(),this.events=e.events,this.rules=e.rules,this.hooks=e.hooks,this.LayoutXmlMd5=e.LayoutXmlMd5,this.__isMounted||(this.__execMounted(),this.__isMounted=!0),this._syncEditFormData(),this.$nextTick(()=>{this.$refs.table&&!this.isDialogMode&&this.$refs.table.addLastVisitedRow(this.historyRow)})}getEntityPrivilege(){let e={entityName:this.objectTypeName};this.approveStepId&&(e.ApproveStepId=this.approveStepId),this.toDoTaskId&&(e.toDoTaskId=this.toDoTaskId),rt.get("api/entityprivilege/get",e).then(e=>{this.entityPrivilege=e||{}})}getLookupView(e,t){return t?e.queryId=t:this.queryLogicalName&&(e.queryId=this.queryLogicalName),"api/vlist/GetListPageForLookup"}getRelatedView(e,t){return t&&(e.queryId=t),this.newTabObject&&(this.$set(e,"referencingAttributename",this.newTabObject.relationFilterAttribute),this.$set(e,"relatedEntityName",this.newTabObject.fromEntityLogicalName),this.isManyToManyRelationship&&this.$set(e,"isManytoMany",this.newTabObject.isManyToManyRelationship)),"api/vlist/GetRelatedListPage"}getDefaultView(e,t){let r,i=null;return this.isSingle&&(e.isSingle=this.isSingle,i=t||this.queryId),t||this.isSingle&&i?(r="api/vlist/GetListPage",e.queryId=t,this.isSingle&&(e.queryId=i)):this.queryLogicalName?(r="api/vlist/GetListPage",e.queryId=this.queryLogicalName):r="api/vlist/GetDefaultListPage",r}__getIndexDBKey(e=!1,t=this.currentQueryId){let r="vlist/"+this.objectTypeName;return e?r+="/default":t?r+="/"+t:this.queryLogicalName?r+="/"+this.queryLogicalName:r+="/default",this.category&&(r+="/"+this.category),this.isSingle&&(r+="/single"),r}__getIndexDBType(){let e=d.LIST;return"userQueryDialog"===this.pageSource&&(e=d.USERVIEW),e}getCachingDataForPush(){let e=this.searchString;this.checkSearchStrLength(!1)||(e="");let t=this.changeIndex&&Array.isArray(this.changeIndex)&&this.changeIndex.length>0;return{editForm:"lookup"==this.pageSource?{}:this.editForm,pageInfo:this.pageInfo,currentQueryId:"lookup"==this.pageSource?"":this.currentQueryId,searchString:e,objectTypeName:this.objectTypeName,filterFormList:this.filterFormList,echartConditon:t?this.echartConditon:[],disableFetch:this.disableFetch,savedComponent:this.savedComponent,gridConditionIsChanged:this.gridConditionIsChanged,defaultSavedComponent:this.defaultSavedComponent,filterFormListDefault:this.filterFormListDefault,currentViewType:this.currentViewType,queryLogicalName:this.queryLogicalName,historyRow:this.historyRow,changeIndex:this.changeIndex,brandSaveList:t?this.brandSaveList:[],globalConditions:this._globalConditions,chartInfo:this.chartInfo,orderby:this.orderby,currentConditionId:this.currentConditionId,_defaultQueryId:this._defaultQueryId,realCategory:this.realCategory}}resetCachedDataForGoback(e){if(e&&Object.keys(e).length){if(this.isDashboard){if(this.objectTypeName!=e.objectTypeName&&e.queryLogicalName!=this.queryLogicalName)return void(this.isGoBack=!1)}else if(this.objectTypeName!=e.objectTypeName)return void(this.isGoBack=!1);for(const t in e)"objectTypeName"!=t&&(this[t]=e[t]);this.__loadSchemasForIndexedDB(!1).then(()=>{this.firstLoad=!1}).catch(()=>{this.__loadSchemas()}).finally(()=>{this.$historyStorage.clear()})}else this.isGoBack=!1}load(){return this.loadData()}loadData(){this.$refs.table&&this.$refs.table.fetchData(!0)}fetch(e){return new Promise(t=>{this.$nextTick(()=>{this.pageInfo=e,(()=>{this._fetchRecords().then(e=>(this.ifKeepSelection||this.$refs.table&&this.$refs.table.clearSelection(),t(e))).catch(e=>t([])).finally(()=>{this.ifKeepSelection=!1,this.$bus.$emit("updatedChartDrawerColumn")})})()})})}_fetchRecords(){return new Promise(e=>{let t=this.queries.filter(e=>e.SavedQueryId==this.currentQueryId);if(!t.length)return this.matchNoQueries=!0,e([]);if(!t)return e([]);if(!(this.objectTypeName&&this.currentQueryId&&this.pageInfo))return e([]);{let r="";if(this.queryAttributes.requestApi?r=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this):(r="api/vlist/ExecuteQuery?queryid="+this.currentQueryId,this.queries&&(t&&t.length>0&&t[0].IsUserQuery?r+="&isUserQuery="+t[0].IsUserQuery:11==this.queryType&&(r+="&isUserQuery=true")),r+="&entityName="+this.objectTypeName,this.isLookUp&&(r+="&isLookup=true"),r+="&isPreview="+this.isPreview,r=this.getQueryString(r,!0)),!this.isDialogMode&&this.disableFetch)return this.$emit("queryComplete"),this.dataTotalCount=0,this.dataLoaded=!0,e([]);this.fetchTableData(r).then(t=>{this.tableData=t.Entities;const r=this.tableData.length;if(0==this.tableData.length&&t.TotalRecordCount,-1==t.TotalRecordCount){this.PaginationType=1;const e=this.pageInfo.pageSize||0,t=this.pageInfo.pageIndex||0;this.dataTotalCount=0==r||r0?this.dataTotalCount=t.Entities.length:this.dataTotalCount=t.TotalRecordCount):(this.PaginationType=0,this.dataTotalCount=t.TotalRecordCount);return this.$refs.filterdrawer&&this.$refs.filterdrawer.showMoreFilter&&this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!1),this.$emit("queryComplete"),e(t.Entities)}).catch(t=>(void 0===t||""===t?r.includes("api/workflow")&&rt.showErrorToast(this.$_t("common.DataRequestException","数据请求异常")):rt.showErrorToast(t),this.$refs.filterdrawer&&this.filterDrawerParams.extendConditions&&0!=JSON.parse(this.filterDrawerParams.extendConditions).length&&this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!0),e([]))).finally(()=>{this.dataLoaded=!0,this.$nextTick(()=>{this.dispatch("needSchemaLoaded","schemaLoaded")})})}})}get getTableData(){return this._memoize(this.memoizeFetchRecords,"_fetchRecords",{expireTime:0})}fetchTableData(e){return this.getTableData(e)}memoizeFetchRecords(e){return rt.get(e)}getQueryString(e,t,r,i){this.echartQueryOptions={Search:"",AdditionalCondtions:"",ExtendConditions:""};let a=this.pageInfo.pageIndex,n=this.pageInfo.pageSize;if(n&&(e+="&$pageSize=",e+=n),a&&(e+="&$pageIndex="+a),r&&(e+="&$fileName="+encodeURIComponent(r)),!1===i&&(e+="&$mergeSubEntity=false"),null!=this.queryAttributes.paging&&(e+="&$paging=",e+=this.queryAttributes.paging),this.orderby&&(e+="&$orderby=",e+=this.orderby),e+="&$search=",e+=encodeURIComponent(this.searchString),this.$set(this.echartQueryOptions,"Search",this.searchString),this.isLookUp&&this.pageCondition.dependentAttributeName&&(e+="&relationFilterValue=",e+=this.pageCondition.pageConditionStr?this.pageCondition.pageConditionStr.split(" eq ")[1]:"",e+="&relationFilterAttribute=",e+=this.pageCondition.dependentAttributeName),this.isLookUp&&this.pageCondition.dependentRelationShipName&&(e+="&relationFilterName=",e+=this.pageCondition.dependentRelationShipName),"lookup"!=this.pageSource&&(this.approveStepId&&(e+="&ApproveStepId="+this.approveStepId),this.toDoTaskId&&(e+="&toDoTaskId="+this.toDoTaskId)),this.newTabObject&&this.newTabObject.relationFilterAttribute&&(e+="&relationFilterAttribute=",e+=this.newTabObject.relationFilterAttribute),this.newTabObject&&this.newTabObject.relationFilterValue&&(e+="&relationFilterValue=",e+=this.newTabObject.relationFilterValue),this.newTabObject&&this.newTabObject.relationshipName&&(e+="&relationshipName=",e+=this.newTabObject.relationshipName),this.isManyToManyRelationship&&(e+="&relationshipType=",e+="1"),this.editForm&&this.queryAttributes.customRequestApi){let t=JSON.stringify(this.editForm);t=encodeURIComponent(t),e+="&$additionalConditions=",e+=t,this.$set(this.echartQueryOptions,"AdditionalCondtions",Object.keys(this.editForm).length>0?JSON.stringify(this.editForm):"")}const o=this._globalConditions&&JSON.parse(this._globalConditions);let s=[];if(this.filterFormList.length>0||this.echartConditon.length>0||o&&o.length>0){let e=this.filterFormList.map(e=>{let t=e.val;return _e.a.isEmptyArray(e.val)&&(t=[]),lc.d.includes(e.op)&&!t&&(t=""),{name:e.name,val:t,op:e.op}});s=e,this.echartConditon&&Array.isArray(this.echartConditon)&&this.echartConditon.length>0&&(s=e.concat(this.echartConditon)),o&&Array.isArray(o)&&(s=s.concat(o)),this.__extendConditionsFromEchart=s,s||(s=[]),this.$set(this.echartQueryOptions,"ExtendConditions",JSON.stringify(e.concat(this.echartConditon)))}return this.isDashboard?(e+="&useStandby=true",this.dashBoardglobalConditions&&(e+="&$extendConditions="+encodeURIComponent(this.dashBoardglobalConditions))):Array.isArray(s)?(s=JSON.stringify(s),e+="&$extendConditions="+encodeURIComponent(s)):e+="&$extendConditions="+encodeURIComponent(s),e}invokeAllDataOperation(e){const t=this.getViewCondition();let r={queryId:this.currentQueryId,entityName:this.objectTypeName,search:t.search,orderby:t.orderby,extendConditions:"",hiddenApi:e};return t.extendConditions&&t.extendConditions.length>0&&(r.extendConditions=JSON.stringify(t.extendConditions)),rt.post("api/vlist/ExecuteQueryAndHiddenApi",r)}getViewCondition(){const e=this.filterFormList.map(e=>({name:e.name,val:e.val,op:e.op}));return{pageSize:this.pageInfo.pageSize,pageIndex:this.pageInfo.pageIndex,paging:this.queryAttributes.paging,search:this.searchString,orderby:this.orderby,extendConditions:e}}loadComplete(){this.$bus.$emit("tableIsLoadComplete",!0)}reLoad(e){this.$refs.table&&this.$refs.table.handleIndexChange(1),this.$refs.table&&this.$refs.table.fetchData(!0),"isCurrent"==e?this.reloadCurrentBadges():this.reloadBadges()}reload(e){this.reLoad(e)}clearSelection(){this.multipleSelection=[],this.$refs.table&&this.$refs.table.clearSelection()}quickfind(e){this.searchString=e,this.clearChartInfo(),this.checkSearchStrLength(!0)&&(this.pageInfo={},this.disableFetch=!1,this.reLoad("globalGetBadge"))}queryChange(e,t){this.showSaveTableWidthIcon=!1,this.dataLoaded=!1,this.pageInfo={},this.$bus.$emit("tableIsLoadComplete",!1),this.dataTotalCount=0,this.orderby="",this.multipleSelection=[],this.clearConditions(),this.gridConditionIsChanged=!1,this.currentConditionId="default",this.isGoBack=!1,this.clearChartInfo(),this.__execDestroyed(),this.__isMounted=!1,this.resetGridConditions(),this.clearTableSize(),this.__loadSchemasForIndexedDB(!0,e).then(()=>{this.$nextTick(()=>{this.__loadSchemas(e,t).then(()=>{this.newTabObject||this.reloadBadges()})})}).catch(()=>{this.__loadSchemas(e,t).then(()=>{this.newTabObject||this.reloadBadges()})})}toShowFilterDrawer(){this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!0)}showEchartHandler(){this.$refs.echartDrawer&&this.$refs.echartDrawer.show()}rowDblclick(e){const t=this.currentQueryId,r=this.newTabObject&&{attr:this.newTabObject.relationFilterAttribute,value:{id:this.newTabObject.relationFilterValue,logicalname:this.newTabObject.fromEntityLogicalName,name:this.newTabObject.fromEntityName}},i=e=>({formId:this.queryAttributes.jumpFormId,entityName:this.objectTypeName,id:null==e?void 0:e.$id}),a=e=>{this.isDashboard?this.$PlatUtils.pushLocation(this.dashboardSubAppName,e):this.$router.push(e)},n=t=>{const r=this.$dynamicpagecommon||yu.a,i=t?"getEntityCreatePage":"getEntityEditPage",a=t?[this.objectTypeName,this.$router,this.Current_Project]:[this.objectTypeName,null==e?void 0:e.$id,this.$router,this.Current_Project];return r[i](...a)};if(this.queryAttributes.disableJump)return;if(this.checkIsPreview())return;if(e&&(this.historyRow=e),this.isLookUp)return void this.$emit("callback",this.currentRow);if("userdefinedquery"===(null==e?void 0:e.logicalname)){const t=this.userviewdesigner(e.$id,e);return void this.$refs.userViewDialog.show(t)}const o=this.$refs.jumpAttribute;if(this.queryAttributes.jump&&null!=o&&o.needJump)o.gotoEditPage(e);else if(this.queryAttributes.jumpFormId){let n=i(e);if(r&&(n={...n,...r}),this.isDashboard){const e=`vform2/${this.objectTypeName}/${this.queryAttributes.jumpFormId}/${n.id}/?fromQueryId=${t}`;this.$PlatUtils.pushLocation(this.dashboardSubAppName,e)}else a({name:"VForm2",params:n,query:{fromQueryId:t}})}else if(this.queryAttributes.jumpUrlExpression&&e){const t=this.getFunctionByExpression(this.queryAttributes.jumpUrlExpression,["row"]).call(this,e);t&&a(t)}else if(e)a(this.isDashboard?`vform/${this.objectTypeName}/${e.$id}`:n(!1));else{const e=n(!0);r&&(e.params||(e.params={}),e.params.attr=r.attr,e.params.value=r.value),a(e)}}editByRow(){this.rowDblclick(this.currentRow)}_filetrprimary(){this.checkSearchStrLength(!0)&&this.filetrprimary()}filetrprimary(){for(const e in this.editForm){const t=this.$refs["gridcondition_"+e];if(t&&t.checkValue&&0==t.checkValue())return}this.$refs.editForm?this.$refs.editForm.validate().then(e=>{if(this.clearChartInfo(),!e)return this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!0),!1;this.disableFetch=!1,this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!1),this.reLoad("isCurrent"),this.$emit("filetrprimary")}).catch(()=>{this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!0),rt.showErrorToast(this.$_t("PleaseInputRequiredFields","请输入必填项"))}):this.$refs.gridConditionForm?this.$refs.gridConditionForm.validate().then(e=>{if(!e)return!1;this.disableFetch=!1,this.reLoad("isCurrent"),this.$emit("filetrprimary"),this.clearChartInfo()}).catch(()=>{rt.showErrorToast(this.$_t("PleaseInputRequiredFields","请输入必填项"))}):(this.disableFetch=!1,this.$bus.$emit("toShowDrawer_"+this.objectTypeName,!1),this.reLoad("isCurrent"),this.$emit("filetrprimary"),this.clearChartInfo())}filetrreset(){this.searchString="",this.currentConditionId="default",this.resetGridConditions(),this.gridConditionIsChanged=!1,this.reLoad("isCurrent"),this.$refs.headerTab&&!this.newTabObject&&this.$refs.headerTab.loadHeaderTabDataWidthBadge(),this.$emit("filetrreset"),this.clearChartInfo(),this.disableFetch=!1}resetGridConditions(){const e={},t=this.savedComponent||{};for(const n in t){var r,i;const a=null===(r=t[n])||void 0===r||null===(i=r.gridConditionProps)||void 0===i?void 0:i.props;a&&a.isExposed&&(e[n]=!0)}this.savedComponent={};for(const n in this.defaultSavedComponent)this.savedComponent[n]=this.$xpc.cloneDeep(this.defaultSavedComponent[n]);for(const n in this.editForm)this.editFormDefault&&void 0!==this.editFormDefault[n]?this.$set(this.editForm,n,this.editFormDefault[n]):Array.isArray(this.editForm[n])?this.$set(this.editForm,n,[]):this.$set(this.editForm,n,null);const a=[];this.filterFormListDefault=Object.keys(this.defaultSavedComponent).reduce((e,t)=>{var r,i;const n=this.defaultSavedComponent[t];if(!n||!n.gridConditionProps)return e;const o=n.gridConditionProps;if(o.$nodetype===fs.b.customerComponent)return e;const{conditionKey:s,datafieldname:l,actualDataField:d,operator:c,controlValue:u}=o.props,p=t||s||"extra_"+l;this.$set(null===(r=this.savedComponent[t].gridConditionProps)||void 0===r?void 0:r.props,"isDefaultCondition",!0),this.$set(null===(i=this.savedComponent[t].gridConditionProps)||void 0===i?void 0:i.props,"operator",c);const h={key:p,name:d||l,op:c,val:u};return a.push(h),e.push(this.$xpc.cloneDeep(h)),e},[]),this.filterFormList=a;try{Object.keys(e).forEach(e=>{var t,r,i,a;const n=null===(t=this.savedComponent)||void 0===t||null===(r=t[e])||void 0===r||null===(i=r.gridConditionProps)||void 0===i?void 0:i.props;if(!n)return;this.$set(n,"isExposed",!0);const o=this.filterFormList.findIndex(t=>t.key===e);-1!==o&&(this.filterFormList[o].isExposed=!0);const s=null===(a=this.filterFormListDefault)||void 0===a?void 0:a.findIndex(t=>t.key===e);-1!==s&&(this.filterFormListDefault[s].isExposed=!0)})}catch(e){}this.$bus.$emit("resetGridConditions"),this.$bus.$emit("refreshFilterList_"+this.objectTypeName)}setFilterFormListItem(e,t){const r=this.queryAttributes.requestApi,i=t.name;if(r)this.$set(this.editForm,i,t.val);else{for(let r=0;rt.key==e)}removeFilterFormListItem(e){this.filterFormList=this.filterFormList.filter(t=>t.key!==e)}setEditFormDefaultValue(e,t){this.isGoBack||(this.editForm[e]=t),this.editFormDefault[e]=t}_syncEditFormData(){Object.keys(this.editForm).forEach(e=>{const t=this.editForm[e],r=this.editFormDefault[e];void 0!==t&&t!==r&&this.setConditionValueByField(e,t)})}__deleteCondition(e){this.$delete(this.savedComponent,e);const t=this.filterFormList.findIndex(t=>t.key===e);-1!==t&&this.filterFormList.splice(t,1),this.gridConditionIsChanged=!0}__addConditionHandler(e,t){var r,i,a,n;const o=(null===(r=t.gridConditionProps)||void 0===r||null===(i=r.props)||void 0===i?void 0:i.datafieldname)||"",s=(null===(a=t.gridConditionProps)||void 0===a||null===(n=a.props)||void 0===n?void 0:n.operator)||"eq";this.$set(this.savedComponent,e,t);const l={key:e,name:o,op:s,val:null,isAdded:!0};this.filterFormList.push(l),this.filterFormListDefault.push({...l}),this.gridConditionIsChanged=!0}__changeOperateType(e,t,r){var i,a,n,o,s,l;let d=null;lc.e.indexOf(r)>-1&&(d=r);const c=this.filterFormList.find(t=>t.key===e);c&&(c.op=r,c.val=d),this.$set(null===(i=this.savedComponent)||void 0===i||null===(a=i[e])||void 0===a||null===(n=a.gridConditionProps)||void 0===n?void 0:n.props,"operator",r),this.$set(null===(o=this.savedComponent)||void 0===o||null===(s=o[e])||void 0===s||null===(l=s.gridConditionProps)||void 0===l?void 0:l.props,"isDefaultCondition",!1),this.gridConditionIsChanged=!0}__changeConditionHandler(e,t){const{id:r,conditionStruct:i}=e;if(this.currentConditionId=r,this.gridConditionIsChanged=!1,t)this.resetGridConditions();else{this.savedComponent={};for(const t in i)this.savedComponent[t]=i[t];this.editForm={},this.__resetProps(!1);const e=[];this.filterFormListDefault=Object.keys(i).reduce((t,r)=>{const a=i[r];if(!a||!a.gridConditionProps)return t;const n=a.gridConditionProps;if(n.$nodetype===fs.b.customerComponent)return t;const{conditionKey:o,datafieldname:s,actualDataField:l,operator:d,controlValue:c}=n.props,u=o||"extra_"+(l||s);let p=null;return this.defaultSavedComponent[u]&&(p=this.defaultSavedComponent[u].gridConditionProps.props.controlValue),e.push({key:u,name:l||s,op:d,val:c}),t.push({key:u,name:l||s,op:d,val:p}),t},[]),this.filterFormList=e}this.$bus.$emit("resetGridConditions")}__resetGridConditionChangeStatusHandler(){this.__resetProps(!1),this.gridConditionIsChanged=!1}__resetProps(e){Object.keys(this.savedComponent).length>0&&(Object.keys(this.savedComponent).forEach(t=>{"isDefaultCondition"!==t&&(this.savedComponent[t].gridConditionProps.props.isDefaultCondition=e)}),this.savedComponent={...this.savedComponent})}headerDragend(e,t,r,i){const a={...this.columnWidths||{}};this.LayoutObject.children.forEach(t=>{"gridtable"==t.$nodetype&&t.children.forEach(t=>{let i=t.id;if("gridcell"===t.$nodetype&&(i=t.props.entityAlias?`${t.props.entityAlias}.${t.datafieldname}`:t.name||""),i==r.property)t.props.width=Math.round(e-50),a[t.id]=t.props.width;else{const e=t.props.width;t.id&&!a[t.id]&&(a[t.id]=e)}})}),this.columnWidths=a;const n=this.__getIndexDBKey();this.$apaasStorage.openDB(this.__getIndexDBType(),(e,t)=>{this.$apaasStorage.add(e,t,n+"/columnWidth",JSON.stringify(a)),this._defaultQueryId===this.currentQueryId&&this.$apaasStorage.add(e,t,this.__getIndexDBKey(!0)+"/columnWidth",JSON.stringify(a))})}toCancelWidthHandler(){this.showSaveTableWidthIcon=!1}toSaveTableWidthHandler(){let e={queryId:this.currentQueryId,LayoutObject:this.LayoutObject,version:this.version};rt.post("api/vlist/SavePage",e).then(()=>{this.showSaveTableWidthIcon=!1,rt.showSuccessToast(this.$_t("common.Successfullysaved","保存成功")),this.allSchema.LayoutJson=JSON.stringify(this.LayoutObject);let e=this.cachePagePath,t=this.cachePageIndex;const r=this.__getIndexDBKey();this.$apaasStorage.openDB(this.__getIndexDBType(),(e,t)=>{this.$apaasStorage.add(e,t,r,JSON.stringify(this.LayoutObject))}),this.$historyStorage.save(t,e,this.getCachingDataForPush())}).catch(e=>{rt.showErrorToast(e)})}handleSortChange(e){e&&e.prop&&e.order?this.orderby=e.prop+" "+e.order:this.orderby="",this.reLoad()}selectionChange(e){this.multipleSelection=e,this.isSingleSelect&&(e.length>1&&(this.$refs.table.clearSelection(),this.$refs.table.toggleRowSelection(e[e.length-1])),this.multipleSelection&&this.$emit("handleCurrentChange",e[e.length-1]))}handleCellClick(e){this.$emit("cell-click",e)}handleSelect(e,t){this.$emit("select",t)}handleSelectAll(e){this.$emit("select-all",e)}handleClearSelection(){this.$emit("clear-selection")}handleCurrentChange(e){this.currentRow=e,this.$emit("handleCurrentChange",e)}setCurrentRow(e){this.$set(this,"currentRow",e)}clearTableSize(){const e=window.rtconfig.keycloak_realm+"/vlist/"+this.objectTypeName;sessionStorage.removeItem(e)}changeTableSize(e){this.ifKeepSelection=!0,sessionStorage.setItem(window.rtconfig.keycloak_realm+"/vlist/"+this.objectTypeName,JSON.stringify(e))}exportData(e,t,r,i,a){e?"exportPage"==t?this.exportPageData({is_all:!1,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportPageImg"==t?this.exportPageData({is_all:!1,needAttachment:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportAll"==t?this.exportPageData({is_all:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportAllImg"==t&&this.exportPageData({is_all:!0,needAttachment:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportPage"==t?this.asyncExportPageData({is_all:!1,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportPageImg"==t?this.asyncExportPageData({is_all:!1,needAttachment:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportAll"==t?this.asyncExportPageData({is_all:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a}):"exportAllImg"==t&&this.asyncExportPageData({is_all:!0,needAttachment:!0,fileName:r,isMergeSubEntity:i,updateLayoutObject:a})}exportPageData(e){const{is_all:t,fileName:r,needAttachment:i,isGroup:a,isMergeSubEntity:n,updateLayoutObject:o}=e;rt.showLoadingToast(this.$_t("common.exporting","正在导出..."));let s="";i?(s="api/meta/ExportPageDataAndAttachment?queryid="+this.currentQueryId,a&&(s="api/meta/ExportPageDataAndAttachment?queryid="+this.currentQueryId+"&isgroup=true"),t&&(s="api/meta/ExportAllDataAndAttachment?queryid="+this.currentQueryId,a&&(s="api/meta/ExportAllDataAndAttachment?queryid="+this.currentQueryId+"&isgroup=true"))):(s="api/meta/ExportPageData?queryid="+this.currentQueryId,t&&(s="api/meta/ExportAllData?queryid="+this.currentQueryId));const l=this.queries.filter(e=>e.SavedQueryId==this.currentQueryId);if(l&&l.length>0&&l[0].IsUserQuery?s+="&isUserQuery="+l[0].IsUserQuery:11==this.queryType&&(s+="&isUserQuery=true"),s=this.getQueryString(s,!0,r,n),this.queryAttributes.requestApi||!o){let e={};e.entityName=this.objectTypeName;let t=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this);e.customRequestApi=t,rt.get(s,e).then(e=>{let t="";e.downloadurl&&(t=e.downloadurl.startWith("api")?rt.getBaseUrl()+e.downloadurl:e.downloadurl,this.downloadFile({url:t,name:e.name}),rt.showSuccessToast(this.$_t("platform.exportSuccess","导出成功")),rt.hideLoadingToast())}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}else{let e;o&&(e=o),rt.post(s,e).then(e=>{let t="";e.downloadurl&&(t=e.downloadurl.startWith("api")?rt.getBaseUrl()+e.downloadurl:e.downloadurl,this.downloadFile({url:t,name:e.name}),rt.showSuccessToast(this.$_t("platform.exportSuccess","导出成功")),rt.hideLoadingToast())}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}}asyncExportPageData(e){const{is_all:t,needAttachment:r,isGroup:i,fileName:a,isMergeSubEntity:n,updateLayoutObject:o}=e;rt.showLoadingToast(this.$_t("common.exporting","正在导出..."));let s="";r?(s="api/meta/AsyncExcelExportPageDataAndAttachment?queryid="+this.currentQueryId,i&&(s="api/meta/AsyncExcelExportPageDataAndAttachment?queryid="+this.currentQueryId+"&isgroup=true"),t&&(s="api/meta/AsyncExcelExportAllDataAndAttachment?queryid="+this.currentQueryId,i&&(s="api/meta/AsyncExcelExportAllDataAndAttachment?queryid="+this.currentQueryId+"&isgroup=true"))):(s="api/meta/AsyncExcelExportPageData?queryid="+this.currentQueryId,t&&(s="api/meta/AsyncExcelExportAllData?queryid="+this.currentQueryId));const l=this.queries.filter(e=>e.SavedQueryId==this.currentQueryId);if(l&&l.length>0&&l[0].IsUserQuery?s+="&isUserQuery="+l[0].IsUserQuery:11==this.queryType&&(s+="&isUserQuery=true"),s=this.getQueryString(s,!0,a,n),this.queryAttributes.requestApi||!o){let e={};e.entityName=this.objectTypeName;let t=this.getFunctionByExpression(this.queryAttributes.requestApi).call(this);e.customRequestApi=t,rt.get(s,e).then(()=>{this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.showAgain(2),rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}else{let e;o&&(e=o),rt.post(s,e).then(()=>{this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.showAgain(2),rt.hideLoadingToast()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}}showErrorIfNoExportPermission(){if(!this.entityPrivilege||!this.entityPrivilege.IsExport){const e=this.ownerid.name+this.$_t("NoExportPermission","没有导出权限!")+"-"+this.objectTypeName;return rt.showErrorToast(e),!1}return!0}exportPage(){this.showErrorIfNoExportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.show("exportPage",this.module,this.objectTypeName,this.EntityDisplayName,this.name,this.hasSubEntityCol,this.LayoutObject))}exportPageImg(){this.showErrorIfNoExportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.show("exportPageImg",this.module,this.objectTypeName,this.EntityDisplayName,this.name,this.hasSubEntityCol,this.LayoutObject))}exportAll(){this.showErrorIfNoExportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.show("exportAll",this.module,this.objectTypeName,this.EntityDisplayName,this.name,this.hasSubEntityCol,this.LayoutObject))}exportAllImg(){this.showErrorIfNoExportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.ExcelExportNewDialog&&this.$refs.ExcelExportNewDialog.show("exportAllImg",this.module,this.objectTypeName,this.EntityDisplayName,this.name,this.hasSubEntityCol,this.LayoutObject))}assign(e){if(!this.checkIsPreview())if(null==this.multipleSelection||0==this.multipleSelection.length)rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));else{const t=this.multipleSelection.map(e=>e.$id),r=e&&e.defaultViewId;this.$refs.AssignDialog&&this.$refs.AssignDialog.show(t,r)}}assignByRow(e){if(this.checkIsPreview())return;const t=e&&e.defaultViewId;this.$refs.AssignDialog&&this.$refs.AssignDialog.show([this.currentRow.$id],t)}assignCallback(){this.$refs.table&&this.$refs.table.clearSelection(),this.reload()}showFormDialogByRow(e){this.checkIsPreview()||(e.dialogFormLogicalName?this.showDialog("vformcore",e.label,{formLogicalName:e.dialogFormLogicalName,objectId:this.currentRow.$id,objectTypeName:this.objectTypeName,customerProps:{multipleSelection:this.multipleSelection}},this.load,e.dialogFormSize||""):rt.showErrorToast(this.$_t("platform.notSetPopForm","未设置弹出窗体,请联系管理员配置")))}showFormDialog(e,t){if(this.checkIsPreview())return;const r={size:t.dialogFormSize||"normal",formLogicalName:t.dialogFormLogicalName,objectTypeName:this.objectTypeName,objectId:"",customerProps:{multipleSelection:this.multipleSelection}};null!=this.multipleSelection&&this.multipleSelection.length>0&&(r.objectId=this.multipleSelection[0].$id),r.formLogicalName?this.showDialog("vformcore",t.label,r,this.load,t.dialogFormSize||""):rt.showErrorToast(this.$_t("platform.notSetPopForm","未设置弹出窗体,请联系管理员配置"))}delByRow(){if(window.event&&window.event.stopPropagation(),this.checkIsPreview())return;if(!this.currentRow.$id)return;let e=[];e.push(this.currentRow.$id),this.isManyToManyRelationship?this.deleteManyToManyRelationshipByRow([this.currentRow]):this.deleteByRowId(this.objectTypeName||"",e).then(()=>{this.multipleSelection=[],this.loadData()})}delete(){if(this.checkIsPreview())return;if(null==this.multipleSelection||0==this.multipleSelection.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));const e=[],t=[];for(const r in this.multipleSelection)this.multipleSelection[r].$id&&e.push(this.multipleSelection[r].$id),t.push(this.multipleSelection[r][this.primaryAttribute]);null!=e&&0!=e.length?this.isManyToManyRelationship?this.deleteManyToManyRelationship(this.multipleSelection):this.deleteByIds(this.objectTypeName||"",e,this.EntityDisplayName,this.primaryAttribute,t).then(()=>{this.multipleSelection=[];const e=this.$refs.table;e&&e.dataList&&e.dataList.length==this.multipleSelection.length&&(1==this.pageInfo.pageIndex?(this.pageInfo.pageIndex=1,e.pageIndex=1):(this.pageInfo.pageIndex=this.pageInfo.pageIndex-1,e.pageIndex=e.pageIndex-1)),this.loadData()}):rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"))}add(){if(!this.checkIsPreview()){if(!this.isManyToManyRelationship||!this.newTabObject)return this.isUserDefinedQuery?void rt.get("/api/studioone/formdesigner/getnewid?entityName="+this.fromEntityName).then(e=>{this.viewdesigner(e)}).catch(e=>{rt.showErrorToast(e)}):this.rowDblclick(null);this.$refs["manytomanylookup_vlist_"+this.newTabObject.manytomanylookup].show(this.newTabObject.relationshipName,this.newTabObject.relationFilterAttribute,this.newTabObject.relationFilterValue)}}disable(){if(this.checkIsPreview())return;if(!this.multipleSelection||!this.multipleSelection.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));let e=this.multipleSelection.filter(e=>e.$id).map(e=>e.$id);this.disableByIds(this.objectTypeName,e).then(()=>this.loadData())}enable(){if(this.checkIsPreview())return;if(!this.multipleSelection||!this.multipleSelection.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));let e=this.multipleSelection.filter(e=>e.$id).map(e=>e.$id);this.enableByIds(this.objectTypeName,e).then(()=>this.loadData())}batchUploadattachmentPictures(){this.showDialog("batch-upload-file-image",this.$_t("BUTTON_IMPORTALLFILEIMAGE","批量上传(附件图片)"),{entityName:this.objectTypeName},this.importallimageCallback,"medium")}importallimage(){this.checkIsPreview()||this.showDialog("batch-upload-image",this.$_t("batch_upload_image","批量上传图片"),{entityName:this.objectTypeName},this.importallimageCallback,"medium")}importallimageCallback(){this.load()}executeworkflow(){this.$message("该按钮类型不在支持")}showErrorIfNoImportPermission(){if(!this.entityPrivilege||!this.entityPrivilege.IsImport){const e=this.ownerid.name+this.$_t("NoImportPermission","没有导入权限!")+"-"+this.objectTypeName;return rt.showErrorToast(e),!1}return!0}importExcel(){this.showErrorIfNoImportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.ExcelExportDialog&&this.$refs.ExcelExportDialog.show(this.objectTypeName,this.category))}importTemplate(){this.showErrorIfNoImportPermission()&&(this.checkIsPreview()||this.$refs&&this.$refs.MappingExcelImportDialog&&this.$refs.MappingExcelImportDialog.show(this.objectTypeName,this.category,this.EntityDisplayName,{},this.currentQueryId,this.currentViewType.IsUserQuery))}grantAccess(){if(!this.checkIsPreview())if(null==this.multipleSelection||0==this.multipleSelection.length)rt.showErrorToast(this.$_t("ChooseOneData","请选择一条数据"));else{const e=[];for(const t in this.multipleSelection){const r=this.multipleSelection[t].$id;e.push(r)}this.$refs.GrantAccessDialog.show(e)}}grantAccessByRow(){this.checkIsPreview()||this.$refs.GrantAccessDialog.show([this.currentRow.$id])}resetPwd(){if(!this.checkIsPreview())if(null==this.multipleSelection||0==this.multipleSelection.length)rt.showErrorToast(this.$_t("ChooseOneData","请选择一条数据"));else{let e="api/PortalUser/ResetUserPassword";0===this.multipleSelection.length?rt.showErrorToast(this.$_t("ChooseOneData","请选择一条数据")):this.$confirm(this.$_t("CONFIRM_RESETPASS","是否确定重置"),this.$_t("Tip","提示"),{confirmButtonText:this.$_t("BUTTON_DETERMINE","确定"),confirmButtonClass:"ConfirmButtonClass",cancelButtonText:this.$_t("BUTTON_CANCEL","取消"),cancelButtonClass:"CancelButtonClass",type:"warning"}).then(()=>{const t={};for(const e in this.multipleSelection)t[this.multipleSelection[e].$id]=this.multipleSelection[e].domainname;rt.post(e,t).then(e=>{e?rt.showSuccessToast(this.$_t("Successfullyresetted","重置成功")):rt.showErrorToast(this.$_t("FAIL_RESETPASS","重置密码失败"))}).catch(e=>{rt.showErrorToast(e)})})}}batchPublish(){if(this.checkIsPreview())return;if(null==this.multipleSelection||0==this.multipleSelection.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条数据"));const e=[];for(const t in this.multipleSelection){const r=this.multipleSelection[t].$id;e.push(r)}rt.post("api/custom/new_xrmcommon/product/BatchPublish",{productIds:e}).then(()=>{rt.showSuccessToast(this.$_t("common.publishSucccess","发布成功")),this.loadData()}).catch(e=>{rt.showErrorToast(e)})}mapAssign(){this.checkIsPreview()||this.$router.push({name:"mapassign"})}designCurrentView(){let e=1;const t=this.queries.filter(e=>e.SavedQueryId==this.currentQueryId);t&&t.length>0&&t[0].IsUserQuery&&(e=11),this.designViewCommon(this.currentQueryId,e)}defaultFunc(){this.$message(this.$_t("platform.vlistcoreButtonType","不适用的按钮操作类型"))}conditionProp(e,t,r){this.echartConditon=e,this.changeIndex=t,this.brandSaveList=r,this.reLoad("isCurrent")}clearChartInfo(){this.$refs.echartDrawer&&this.$refs.echartDrawer.filterClearBrand(),this.echartConditon=[],this.changeIndex=[],this.brandSaveList=[],this.chartInfo=void 0}clearDashboardSession(e){rt.clearSessionStorage(e)}loadWithGlobalCondition(e){e&&(this._globalConditions="string"!=typeof e?JSON.stringify(e):e,this.loadData())}viewdesigner(e,t){let r=this.$PlatUtils.getStudioOneUrl()||this.$getStudioOneUrl();if(""==r)return void rt.showErrorToast("studioOneUrl is null...");let i=r;i+="#/layout/external?",i+="pageid="+encodeURIComponent(e),i+="&pagetype=11",i+="&entityname="+this.fromEntityName,window.open(i)}userviewdesigner(e,t){let r=this.currentRow.entityname||t&&t.entityname||this.objectTypeName,i=this.$PlatUtils.getStudioOneUrl()||this.$getStudioOneUrl();if(""==i)return rt.showErrorToast("studioOneUrl is null..."),!1;let a=i;return a+="#/userquery?",a+="pageid="+encodeURIComponent(e),a+="&pagetype=11",a+="&entityname="+r,a}showUserViewDesigner(){rt.get("/api/studioone/formdesigner/getnewid?entityName="+this.objectTypeName).then(e=>{const t=this.userviewdesigner(e);this.$refs.userViewDialog.show(t)}).catch(e=>{rt.showErrorToast(e)})}designUserCurrentView(){let e=this.userviewdesigner(this.currentQueryId,{entityname:this.objectTypeName});window.open(e)}__userqueryButtonHandler(){this.checkIsPreview()||(this.userqueryDialog={visible:!0,title:this.$_t("BUTTON_USERQUERY","个人视图"),objectTypeName:"userdefinedquery",fromEntityName:this.objectTypeName||""})}__userqueryDialogUpdateHandler(e){this.userqueryDialog&&(this.userqueryDialog.visible=e)}_refreshTableAndConditions(){this.refreshtable(),this.currentConditionId="default"}refreshtable(e){this.initDataByConfirm(),this.showSaveTableWidthIcon=!1,this.__loadSchemas(this.currentQueryId,1).then(()=>{this.userDbVersion++,"loadView"===e&&this.$bus.$emit("loadCurrentPersonalView")})}clearConditions(){this.savedComponent={},this.defaultSavedComponent={},this.filterFormListDefault=[],this.filterFormList=[],this.editForm={},this.editFormDefault={}}handleUserQueryChanged(e){if(this.clearConditions(),this.$refs.userQueryList.fetchList(),!this.isUserDefinedQuery)if(this.currentQueryId!==e){const t=1;this.queryChange(e,t)}else this.currentConditionId="default",this.refreshtable()}previewTemplate(e){let t={entityName:e.new_refentity};e.logicalname&&(t.printTemplateLogicalName=e.logicalname),rt.get("api/WordTemplate/GetObjectIdForPreview",t).then(t=>{this.previewWordTemplateCommon(t,e.new_refentity,e.$id)}).catch(e=>{rt.showErrorToast(e)})}selectWordTemplate(e){if(null==this.multipleSelection||0==this.multipleSelection.length)return void rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"));const t=[];for(const r in this.multipleSelection)this.multipleSelection[r].$id&&t.push(this.multipleSelection[r].$id);this.wordTemplateDialog(this.multipleSelection,!1,e)}wordTemplateDialog(e,t,r){let i=this.$store.state.systemparameter&&this.$store.state.systemparameter.LimitPrintFileDownloadQuantity,a=!i||i<=0;var n=e.length;if(a&&(i=5),i>30&&(i=30),ie.$id);this.$refs.WordTemplateDialog.show("",t,null,null,{printTemplateId:r,selectionLength:n,selection:i})}}selectWordTemplateForPreview(e){null!=this.multipleSelection&&0!=this.multipleSelection.length?this.wordTemplateDialog(this.multipleSelection,!0,e):rt.showErrorToast(this.$_t("ChooseOneData","请选择一条记录"))}wordTemplateDialogCallback(e,t,r,i,a,n=!0){t?this.previewWordTemplate(e,n):this.downLoadWordTemplate(e,r,i,a,n)}downLoadWordTemplate(e,t,r,i,a=!0){rt.showLoadingToast();const n=i=>new Promise((n,o)=>{rt.post("api/WordTemplate/MergeDownTemplateFile",{objectIds:i,templateId:e,entityName:this.objectTypeName,isMergePrint:t,fileName:r,isMask:a}).then(e=>{this.downloadFile({url:e.fileUrl,name:e.fileName}),n(e)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})});if(t){let e=[];for(let t in this.multipleSelection)this.multipleSelection[t].$id&&e.push(this.multipleSelection[t].$id);n(e)}else{let e=(t=0)=>{this.multipleSelection&&this.multipleSelection[t].$id&&n([this.multipleSelection[t].$id]).then(()=>{t{if(rt.hideLoadingToast(),!e.startsWith("http")){const t=e.replace("download","inlinedownload");e=rt.getBaseUrl()+t}window.open(e)}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})}initDataByConfirm(){this.searchString="",this.resetGridConditions(),this.$emit("filetrreset")}checkIsPreview(){return!!this.isPreview&&(this.isDashboard||rt.showErrorToast(this.$_t("platform.imagefield_not_button","当前预览模式,不支持按钮操作 .")),!0)}clearDependVisitContent(){this.fieldInputHandlers={},this.changedProps=[]}GetJumpForm(){const e=this.$refs.jumpAttribute;return this.queryAttributes.jump&&e&&e.needJump?e.GetJumpForm():this.queryAttributes.jumpFormId?this.queryAttributes.jumpFormId:(this.queryAttributes.jumpUrlExpression,"")}saveManyToManyData(e){if(!this.newTabObject)return;rt.showLoadingToast(this.$_t("common.loading","正在加载数据..."));const t=`api/dynamic/${this.newTabObject.relationshipName}/SaveManyToMany`;rt.post(t,{entity1Name:this.newTabObject.fromEntityLogicalName,entity1Id:this.newTabObject.relationFilterValue,entity2Ids:e.map(e=>e.$id),ApproveStepId:this.approveStepId,toDoTaskId:this.toDoTaskId}).then(()=>{rt.showSuccessToast(this.$_t("common.saveSuccess","保存成功")),this.load()}).catch(e=>{rt.showErrorToast(e)}).finally(()=>{rt.hideLoadingToast()})}deleteManyToManyRelationship(e){this.$confirm(this.$_t("serviceBom.deletedDataToContinue","此操作将永久删除记录,是否继续?"),this.$_t("Tip","提示"),{type:"warning"}).then(()=>{this.deleteManyToManyRelationshipByRow(e)}).catch()}deleteManyToManyRelationshipByRow(e){return new Promise(t=>{const{relationshipName:r}=this.newTabObject||{},i="api/dynamic/"+r+"/BatchDeleteByRelationship?entityName="+this.objectTypeName,a=r+"_id",n=e.map(e=>e instanceof Object?e[a]:e).filter((function(e){return e&&e.trim()}));rt.post(i,n).then(e=>{rt.hideLoadingToast(),rt.showSuccessToast(e),this.load(),t()}).catch(e=>{rt.hideLoadingToast(),rt.showErrorToast(e)})})}loadedAllBadgeHandler(e){this.isLoadedAllBadge=e}setCurrnetNumHandler(e){this.currentFilterNum=e}};Object(J.__decorate)([Object(te.d)({type:String,default:""})],Bu.prototype,"queryId",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Bu.prototype,"category",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Bu.prototype,"queryLogicalName",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Bu.prototype,"fromEntityName",void 0),Object(J.__decorate)([Object(te.d)({type:[Number,String]})],Bu.prototype,"queryType",void 0),Object(J.__decorate)([Object(te.d)({type:Object})],Bu.prototype,"customerProps",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Bu.prototype,"pageSource",void 0),Object(J.__decorate)([Object(te.d)({type:Object,default:()=>({})})],Bu.prototype,"pageCondition",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Bu.prototype,"enableUserQuery",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Bu.prototype,"isSingleSelect",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Bu.prototype,"isDialogMode",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Bu.prototype,"isSingle",void 0),Object(J.__decorate)([Object(te.d)({type:Number})],Bu.prototype,"height",void 0),Object(J.__decorate)([Object(te.d)({type:Number,default:300})],Bu.prototype,"dashHeight",void 0),Object(J.__decorate)([Object(te.d)({type:String,default:""})],Bu.prototype,"dashboardSubAppName",void 0),Object(J.__decorate)([Object(te.d)({type:Object,required:!1,default:()=>({})})],Bu.prototype,"toEntity",void 0),Object(J.__decorate)([Object(te.d)({type:Boolean,default:!1})],Bu.prototype,"isDashboard",void 0),Object(J.__decorate)([Object(te.d)({type:String})],Bu.prototype,"dashBoardglobalConditions",void 0),Object(J.__decorate)([Object(te.e)("subgridFormData")],Bu.prototype,"subgridFormData",void 0),Object(J.__decorate)([Object(te.e)("refProvide")],Bu.prototype,"refProvide",void 0),Object(J.__decorate)([Object(te.e)("getEntityDisplayName")],Bu.prototype,"getEntityDisplayName",null),Object(J.__decorate)([Object(te.e)("getChangeIndex")],Bu.prototype,"getChangeIndex",null),Object(J.__decorate)([Object(te.e)("getBrandSaveList")],Bu.prototype,"getBrandSaveList",null),Object(J.__decorate)([Object(te.g)("queryId")],Bu.prototype,"queryIdHandler",null),Object(J.__decorate)([Object(te.g)("isLoadedAllBadge")],Bu.prototype,"isLoadedAllBadgeHandler",null),Object(J.__decorate)([Object(te.g)("currentQueryId")],Bu.prototype,"currentQueryIdHandler",null),Object(J.__decorate)([Object(te.g)("queries")],Bu.prototype,"queriesHandler",null),Bu=Object(J.__decorate)([Object(te.a)({name:"Vlistcore",components:{CustomTableColumn:au}})],Bu);var Uu=Bu,Vu=(r("97c4"),r("8255"),Object(_.a)(Uu,void 0,void 0,!1,null,"03a31d6f",null).exports),qu={components:{vformcore:Ru},data:function(){return{objectId:this.$route.params.id,extraKey:""}},computed:{formKey(){let e="vform_"+this.objectTypeName;return this.formId&&(e+="_"+this.formId),this.formLogicalName&&(e+="_"+this.formLogicalName),this.timeStamp&&(e+="_"+this.timeStamp),this.extraKey&&(e+="_"+this.extraKey),e},objectTypeName(){return"ApproveCenter"==this.$route.name?this.$route.params.etn:this.$route.params.entityName},formId(){return this.$route.params.formId},formLogicalName(){return this.$route.params.formLogicalName},fromEntity(){return this.$route.query&&this.$route.query.fromEntity},fromEntityId(){return this.$route.query&&this.$route.query.fromEntityId},fromEntityName(){return this.$route.query&&this.$route.query.fromEntityName},fromQueryId(){return this.$route.query&&this.$route.query.fromQueryId},subGridRefAttribute(){return this.$route.query&&(this.$route.query.subGridRefAttribute||this.$route.query.targetAttributeName)},parentPrimaryAttribute(){return this.$route.query&&this.$route.query.parentPrimaryAttribute},timeStamp(){return this.$route.query&&this.$route.query.timeStamp},stepId(){return this.$route.params.stepid},taskId(){return this.$route.params.taskid},subgridIsReadOnly(){return this.$route.query&&"true"==String(this.$route.query.subGridReadonly)||!1}},watch:{"$route.params.id":function(e,t){t&&e!=t&&(this.extraKey=t+"_to_"+e),this.objectId=e}}},zu=Object(_.a)(qu,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("vformcore",{key:e.formKey,attrs:{"form-id":e.formId,"form-logical-name":e.formLogicalName,"object-id":e.objectId,"object-type-name":e.objectTypeName,"form-type":0,readonly:e.subgridIsReadOnly,"from-entity":e.fromEntity,"from-entity-id":e.fromEntityId,"from-entity-name":e.fromEntityName,"from-query-id":e.fromQueryId,"sub-grid-ref-attribute":e.subGridRefAttribute,"parent-primary-attribute":e.parentPrimaryAttribute,"step-id":e.stepId,"task-id":e.taskId}})}),[],!1,null,null,null).exports,Hu={components:{vformcore:Ru},data:function(){let e=this.$route.params.id,t=this.$route.params.entityName;return{formId:this.$route.params.formId,objectId:e,objectTypeName:t}},watch:{"$route.params.entityName":function(e,t){this.objectTypeName=e},"$route.params.formId":function(e,t){this.formId=e},"$route.params.id":function(e,t){this.objectId=e}},mounted(){if(!this.objectId){let e={entityName:this.objectTypeName};rt.get("api/vform/GetObjectIdForPreview",e).then(e=>{this.objectId=e})}}},Gu=(r("3ae9"),Object(_.a)(Hu,(function(){var e=this.$createElement,t=this._self._c||e;return this.objectId?t("div",{staticStyle:{height:"100%"}},[t("vformcore",{key:this.objectTypeName+this.formId,staticClass:"innerbox",attrs:{"is-preview":!0,"form-id":this.formId,"object-id":this.objectId,"object-type-name":this.objectTypeName,"form-type":0}})],1):this._e()}),[],!1,null,"56890e60",null).exports),Wu={components:{vformcore:Ru},data:function(){let e=this.$route.params.id,t=this.$route.params.entityName;return{formLogicalName:this.$route.params.formLogicalName,objectId:e,objectTypeName:t,isPreview:"true"==this.$route.query.isPreview,isprinting:!1}},computed:{styleVform(){return this.isprinting?"position:absolute;":""},userName(){return this.$store.state.user.userName},nickName(){return this.$store.state.user.nickName},isOverrallWatermark(){return"true"===this.$store.state.systemparameter.OverrallWatermark}},watch:{"$route.params.entityName":function(e){this.objectTypeName=e},"$route.params.formLogicalName":function(e){this.formLogicalName=e},"$route.params.id":function(e){this.objectId=e}},mounted(){if(!this.objectId){let e={entityName:this.objectTypeName};rt.get("api/vform/GetObjectIdForPreview",e).then(e=>{this.objectId=e})}document.body.style="background: #3c3c3c;",this.createWatermark()},methods:{createWatermark(){this.isOverrallWatermark&&this.$PlatUtils.createWatermark(`${this.nickName}(${this.userName})`,"210mm",void 0,void 0,void 0,document.querySelector("#plat-print"))},doPrint(){this.isprinting=!0,setTimeout(()=>{(window.ActiveXObject||"ActiveXObject"in window)&&this.remove_ie_header_and_footer(),window.print(),this.isprinting=!1},0)},remove_ie_header_and_footer(){var e;e="HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\PageSetup\\";try{var t=window.ActiveXObject("WScript.Shell");t.RegWrite(e+"header",""),t.RegWrite(e+"footer","")}catch(e){}}}},Qu=(r("ba27"),r("4ea2"),r("af38"),Object(_.a)(Wu,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return e.objectId?r("div",{staticClass:"plat-vform-print"},[e.isprinting?e._e():r("div",{staticClass:"plat-vform-printBtn"},[r("rc-button",{attrs:{"icon-name":"rt-saas-print"},on:{click:e.doPrint}},[e._v(e._s(e.$_t("BUTTON_PRINT","打印")))])],1),r("div",{staticClass:"printing-al",style:e.styleVform,attrs:{id:"plat-print"}},[r("vformcore",{key:e.objectTypeName+e.formLogicalName,ref:"onlyprint",staticClass:"vformprint onlyprint printing-al",attrs:{id:e.objectId,"form-logical-name":e.formLogicalName,"is-preview":e.isPreview,"object-id":e.objectId,"object-type-name":e.objectTypeName,"form-type":0,"is-print":!0}})],1)]):e._e()}),[],!1,null,"1d979c8a",null).exports),Xu={components:{vlistcore:Vu},data:function(){return{}},computed:{category(){return this.$route.params.category||""},objectTypeName(){return this.$route.params.entityName||""},queryId(){return this.$route.params.queryId||""},queryLogicalName(){return this.$route.params.queryLogicalName||""},isSingle(){return!(!this.queryLogicalName&&!this.queryId)},generateKey(){let e="vList_"+this.objectTypeName;return this.category&&(e+="_"+this.category),this.queryId&&(e+="_"+this.queryId),this.queryLogicalName&&(e+="_"+this.queryLogicalName),e}},watch:{},methods:{}},Ku=(r("e5e3"),Object(_.a)(Xu,(function(){var e=this.$createElement;return(this._self._c||e)("vlistcore",{key:this.generateKey,attrs:{"query-id":this.queryId,"enable-user-query":!0,"query-logical-name":this.queryLogicalName,"object-type-name":this.objectTypeName,category:this.category,"is-single":this.isSingle}})}),[],!1,null,"81c58dd2",null).exports),Yu={components:{vlistcore:Vu},data:function(){let e=this.$route.params.entityName;return{queryId:this.$route.params.queryId,objectTypeName:e,queryType:this.$route.params.queryType}},watch:{"$route.params.entityName":function(e,t){this.objectTypeName=e},"$route.params.queryId":function(e,t){this.queryId=e}},mounted(){this.queryType=this.$route.query.queryType}},Ju=(r("4293"),Object(_.a)(Yu,(function(){var e=this.$createElement;return(this._self._c||e)("vlistcore",{key:this.objectTypeName+this.queryId,attrs:{"is-preview":!0,"query-id":this.queryId,"object-type-name":this.objectTypeName,"query-type":this.queryType,"is-single":!0}})}),[],!1,null,"17cf0e79",null).exports);function Zu(e,t,r=""){const i=window.$customRoutes$||[],a=[];return i.forEach(i=>{if(!i.routePath)return;let n={};i.vueRouteMeta&&(n=function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(i.vueRouteMeta)?JSON.parse(i.vueRouteMeta):function(e){let t=e.replace(/,(\s*[}\]])/g,"$1");t=t.replace(/([{,]\s*)(\w+)(\s*:)/g,'$1"$2"$3');try{return JSON.parse(t)}catch(e){return null}}(i.vueRouteMeta));const o={component:i.outOfMain?t:e,path:r+"/",children:[{path:i.routePath.replace(/^\/+/,""),component:()=>ts.layoutUtils.getCustomResource(i.appKey,"$customPageResource$"),name:i.routeName,meta:n}]};a.push(o)}),a}var ep={data:()=>({isLogin:!1,imgUrl:rt.getPublicUrl()+"imgs/401.png"}),methods:{}},tp=(r("b266"),Object(_.a)(ep,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"div-401"},[t("div",{staticClass:"img-box"},[t("img",{attrs:{src:this.imgUrl,alt:""}}),t("br"),this._m(0)])])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"font-box"},[t("p",[this._v("抱歉,您没有访问权限哦...")]),t("span",[this._v("错误代码:401")])])}],!1,null,"1807783c",null).exports),rp={data:()=>({isLogin:!1,imgUrl:rt.getPublicUrl()+"imgs/500.png"}),mounted:function(){(window.rtconfig.isLocalAuthen&&this.$store.state.auth.isLoggedIn||!window.rtconfig.isLocalAuthen&&this.$keycloak&&this.$keycloak.token)&&(this.isLogin=!0)},methods:{backToHome(){window.__POWERED_BY_QIANKUN__?this.$mainBus.$emit("init_menu"):this.$bus.$emit("init_menu")}}},ip=(r("7ad6"),Object(_.a)(rp,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"div-500"},[t("div",{staticClass:"img-box"},[t("img",{attrs:{src:this.imgUrl,alt:""}}),t("br"),this._m(0),t("el-button",{directives:[{name:"show",rawName:"v-show",value:this.isLogin,expression:"isLogin"}],staticClass:"button-style",on:{click:this.backToHome}},[this._v("返回首页")])],1)])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"font-box"},[t("p",[this._v("抱歉,系统发生了错误哦...")]),t("span",[this._v("错误代码:500")])])}],!1,null,"11f73976",null).exports),ap={data(){return{userId:this.$route.params.userId,targetUrl:this.$route.params.targetUrl}},mounted:function(){this.$nextTick((function(){window.rtconfig.isLocalAuthen&&this.$store.state.auth.isLoggedIn||!window.rtconfig.isLocalAuthen&&this.$keycloak&&this.$keycloak.token?this.$router.push({name:this.targetUrl}):this.getCrmToken(this.userId)}))},methods:{getCrmToken(){var e="api/PortalOAuth/GetCRMToken?userid="+this.userId;rt.get(e).then((function(e){this.login(e)}))},login(e){rt.post("../token","grant_type=mscrm&crm_token="+encodeURIComponent(e)).then((function(e){var t=e.access_token,r=e.refresh_token,i={isLoggedIn:!0};i.accessToken=t,i.refreshToken=r,this.$store.commit("UPDATE_AUTH",i),this.$router.push({name:this.targetUrl})})).catch(e=>{})}}},np=Object(_.a)(ap,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,null,null).exports,op={data:()=>({isLogin:!1,imgUrl:rt.getPublicUrl()+"imgs/401.png"}),computed:{back_version:()=>window.rtconfig.serviceVersion,front_version:()=>window.apaasutils&&window.apaasutils.default.version,xpc_version:()=>window.rtXpc&&window.rtXpc.version},methods:{}},sp=(r("0a77"),Object(_.a)(op,(function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"div-401"},[r("div",{staticClass:"img-box"},[r("img",{attrs:{src:e.imgUrl,alt:""}}),r("br"),r("div",{staticClass:"font-box"},[r("span",[e._v(e._s(e.$_t("front_back","平台前后端版本不匹配,请及时核查")))]),r("div",[e._v(' "apaas-utils":'+e._s(e.front_version)+'、"rtXpc":'+e._s(e.xpc_version)+"、"+e._s(e.$_t("serviceBom.Version","版本")+":"+e.back_version)+" ")])])])])}),[],!1,null,"b0af7416",null).exports),lp={install:function(e,t){const r=function(e,t=""){return[{path:t+"/",component:e,children:[{path:"401",name:"401",component:tp},{path:"404",name:"404",component:al},{path:"500",name:"500",component:ip},{path:"auth/:userId/:targetUrl",name:"auth",component:np},{path:"errorVersion",name:"error-version",component:sp}]},{path:"*",redirect:t+"/404"}]}(t.Main,t.prefix);t.router.addRoutes(r)}},dp={validVersion(){let e=!0;if("saascrmplatformdev"!=(localStorage.keycloak_realm||window.rtconfig.keycloak_realm)&&!rt.isDevelopment()&&window.rtconfig.isQiankun){const t=window.rtconfig.serviceVersion,r=window.apaasutils&&window.apaasutils.default.version,i=window.rtXpc&&window.rtXpc.version;t&&(!t||!i||r.startsWith(t)&&i.startsWith(t))||(e=!1)}return e}},cp={install:function(e,t){const r=function(e,t,r,i=""){return[{path:i+"/",component:t,children:[{path:"vform/:entityName/:id?/:extraParmas?",name:"VForm",component:zu},{path:"vform2/:entityName/:formId/:id?/:extraParmas?",name:"VForm2",component:zu},{path:"vform3/:entityName/:formLogicalName/:id?/:extraParmas?",name:"VForm3",component:zu},{path:"vform4/:entityName/:formLogicalName/:extraParmas?",name:"VForm4",component:zu},{path:"vlist/:entityName/:queryId?/:extraParmas?",name:"VList",component:Ku},{path:"vlist2/:entityName/:queryLogicalName?/:extraParmas?",name:"VList2",component:Ku},{path:"vmlist/:entityName/:category/:queryId?",name:"VList",component:Ku}]},{path:i+"/",component:e.prototype.$IsAPaasPro$?t:r,children:[{path:"vlistpreview/:entityName/:queryId/:queryType?",name:"VListPreview",component:Ju},{path:"vformpreview/:entityName/:formId/:id?",name:"VFormPreview",component:Gu}]},{path:i+"/vformprint/",component:r,children:[{path:":entityName/:formLogicalName/:id?",name:"VFormPrint",component:Qu}]}]}(e,t.Main,t.RootApp,t.prefix?t.prefix:"");t.router.addRoutes(r),e.use(lp,t);const i=Zu(t.Main,t.RootApp,t.prefix||"");t.router.addRoutes(i),t.router.__proto__.dynamicRoutes=r[0].children,t.router.options.routes=t.router.options.routes.concat(r,i),t.router.beforeEach((e,r,i)=>{if(!dp.validVersion())return["error-version","systemUpgrade"].includes(e.name)?i():t.router.push({name:"error-version"}),!1;if("error-version"==e.name&&t.router.push({path:"/home"}),"404"===e.name&&sessionStorage["currentroute_"+window.rtconfig.keycloak_realm]){const e=JSON.parse(sessionStorage["currentroute_"+window.rtconfig.keycloak_realm]);return t.router.push(e),i(),void sessionStorage.removeItem("currentroute_"+window.rtconfig.keycloak_realm)}i()})}};function up(){var e;const t="router_history_stack_"+((null===(e=window.rtconfig)||void 0===e?void 0:e.keycloak_realm)||"default"),r=sessionStorage.getItem(t);return r?JSON.parse(r):[]}function pp(e,t){var r;const i="router_history_stack_"+((null===(r=window.rtconfig)||void 0===r?void 0:r.keycloak_realm)||"default");let a=up();if(void 0!==t)a=a.slice(0,t+1),a[t]=e;else{const t=a.indexOf(e);-1!==t&&a.splice(t,1),a.push(e),a.length>50&&(a=a.slice(-50))}sessionStorage.setItem(i,JSON.stringify(a))}r("e88c"),r("e0ad");var hp={install:function(e,t){e.component("vformcore",Ru),e.component("vlistcore",Vu),e.use(Gc,t),e.use(g),e.use(f),e.use(c),e.use(x),e.use(cp,t),t.dynamicpagecommon&&(e.prototype.$dynamicpagecommon=t.dynamicpagecommon),e.prototype.$bus.$off("needClear").$on("needClear",()=>{e.prototype.$historyStorage.needClear()}),e.config.errorHandler=function(e,t,r){e.stack},t.router.beforeEach((t,r,i)=>{const a=function(e,t){const r=up(),i=e.fullPath,a=t.fullPath,n=r.indexOf(i),o=r.indexOf(a);return-1!==n&&-1!==o?n.9&&t<1&&i/1e3/60/60>1&&(localStorage.setItem("memory_refresh_time_"+window.rtconfig.keycloak_realm,(new Date).getTime().toString()),location.reload()),t>.9){const r=`----当前用户内存异常----;\n 当前时间:${(new Date).toLocaleString()};\n 浏览器总分配内存:${e.jsHeapSizeLimit/1024/1024+"M"};\n 用户已使用内存:${e.usedJSHeapSize/1024/1024+"M"};\n 已使用内存占比: ${(100*t).toFixed(1)+"%"};\n 上次内存异常时间为:${new Date(parseInt(localStorage["memory_refresh_time_"+window.rtconfig.keycloak_realm])).toLocaleString()}\n `;window.analysis&&window.analysis.track("当前用户内存异常",r),location.reload()}}}()})},VFormCore:Ru,VListCore:Vu,PortalUI:Gc,historyStorage:g,routers:cp,layoutUtils:ts.layoutUtils,rtUtils:ts.rtUtils,loginUtils:ts.loginUtils,chartDesigner:ts.chartDesigner,keycloak:ts.keycloak,version:"6.30.20-63",attachmentUploadMixin:bt.a,editorXss:si};t.default=hp},fcef:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return d}));var i,a,n,o=r("ef51"),s=r("a829"),l=r("e3bf");class d extends l.a{constructor(e){super(e)}createVNode(e,t,r){const i=new s.e(this.VueTag);i.nodeType=this.$nodetype,this.buildVNode(i,t),this.appendNode(e,i,t)}buildVNodeInForm(e,t){super.buildVNodeInForm(e,t);const r=this.props,i=t.targetComponent,a=r.datafieldname;e.addProp("value",i.editForm?i.editForm[a]:null),e.addProp("disabled",r.disabled),e.addProp("datafieldname",r.datafieldname),e.addEventHandler("input",e=>{i.updateEditForm(r.datafieldname,e)})}}i=d,a="$bindNodeType",n=o.b.Cron,(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(a))in i?Object.defineProperty(i,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[a]=n},fd69:function(e,t,r){(t=r("24fb")(!1)).push([e.i,'.rt-lookup-dialog[data-v-46ea2b7d] .el-form-item .el-form-item__label{width:120px}.rt-lookup-dialog.plat-base-lookup-dialog .lookup-header-search[data-v-46ea2b7d]{padding:10px;padding-bottom:0}.rt-lookup-dialog.plat-base-lookup-dialog.is-bind-view[data-v-46ea2b7d] .el-dialog__body{overflow-y:auto}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .rt-view-wrapper .el-input__suffix .el-input__validateIcon,.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .rt-view-wrapper thead .el-table-column--selection .cell{display:none}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .rt-view-wrapper .rt-list-filter .el-form-item{display:block;margin-bottom:5px}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-form-item{display:flex;align-items:center;margin:10px}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-form-item .el-form-item__label{flex:1}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-form-item .el-form-item__content{flex:8;margin-left:0}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-table{margin-top:0}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-dialog__body{padding-bottom:0;scrollbar-width:none}.rt-lookup-dialog.plat-base-lookup-dialog[data-v-46ea2b7d] .el-dialog__body::-webkit-scrollbar{display:none}.rt-lookup-dialog.plat-base-lookup-dialog .dialog-footer .rt-button[data-v-46ea2b7d]{margin-left:10px}.rt-lookup-dialog.plat-base-lookup-dialog .nocount[data-v-46ea2b7d] .el-pagination__total{display:none}.rt-lookup-dialog.plat-base-lookup-dialog .estimatecount[data-v-46ea2b7d]:before{box-sizing:border-box;display:inline-block;min-width:35.5px;height:28px;font-size:13px;line-height:28px;vertical-align:top;content:"大约"}.multilookup-dialog.plat-multilookup-dialog .plat-section-content.disabledCheckAll[data-v-46ea2b7d] .el-table__header .rt-checkbox{display:none}.multilookup-dialog.plat-multilookup-dialog .rc-section.rt-section[data-v-46ea2b7d]{padding-right:0}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .section-body.rc-section-body{position:relative}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .rt-table-content .el-table{overflow:auto}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog{height:auto}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body{padding-bottom:0;scrollbar-width:none}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body::-webkit-scrollbar{display:none}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body .el-table{margin-top:0;overflow:auto}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body .el-table .el-table__body-wrapper{height:unset}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body .nocount .el-pagination__total{display:none}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-dialog__body .estimatecount:before{box-sizing:border-box;display:inline-block;min-width:35.5px;height:28px;font-size:13px;line-height:28px;vertical-align:top;content:"大约"}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item{display:flex;align-items:center;margin:10px}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .el-form-item__label{flex:1}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .el-form-item__content{flex:8}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .rt-picklist .rt-icon,.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .rt-search .rt-icon{right:10px}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .rt-picklist input,.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .el-form-item .rt-search input{height:32px}.multilookup-dialog.plat-multilookup-dialog[data-v-46ea2b7d] .el-dialog .dialog-footer button{margin-left:12px}.multilookup-dialog.plat-multilookup-dialog .rt-section[data-v-46ea2b7d]{padding:0 24px}.multilookup-dialog.plat-multilookup-dialog .rt-section .section-search[data-v-46ea2b7d]{padding:10px 0}.multilookup-dialog.plat-multilookup-dialog .rt-section .section-body[data-v-46ea2b7d]{position:relative}.plat-multilookup-dialog .plat-section-content .drawer-btn[data-v-46ea2b7d]{position:absolute;top:160px;right:0;z-index:999;border-top-left-radius:4px;border-bottom-left-radius:4px}.dialog-drawer.plat-dialog-drawer[data-v-46ea2b7d]{position:absolute;top:0;right:0;bottom:0}.dialog-drawer.plat-dialog-drawer[data-v-46ea2b7d] .el-drawer__body{padding:15px 22px 0}.dialog-drawer.plat-dialog-drawer[data-v-46ea2b7d] .el-drawer{overflow:unset;box-shadow:0 4px 6px 2px rgb(165 172 19.7%)}.dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-46ea2b7d]{margin-bottom:12px;margin-left:0;background:unset}.dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-46ea2b7d] .rt-icon{cursor:pointer}.dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-46ea2b7d] .rt-tag-text{padding:5px;background:#eaeafa;border-radius:2px 0 0 2px}.dialog-drawer.plat-dialog-drawer .choicedTag .rt-tag[data-v-46ea2b7d] .__icon-right{display:flex;align-items:center;justify-content:center;float:right;width:16px;height:19px;padding:5px;padding-left:0;margin-left:0;background:#eaeafa;border-radius:0 2px 2px 0}.dialog-drawer.plat-dialog-drawer .drawer-content .plat-choiced[data-v-46ea2b7d]{font-weight:700}.dialog-drawer.plat-dialog-drawer .drawer-content .plat-choiced .plat-choiced-item[data-v-46ea2b7d]{color:#1890ff}.dialog-drawer.plat-dialog-drawer .drawer-content .subtitle[data-v-46ea2b7d]{margin:20px 0}.dialog-drawer.plat-dialog-drawer .drawer-content .subtitle div[data-v-46ea2b7d]:nth-child(2){margin:0 5px;color:#347efd}.dialog-drawer.plat-dialog-drawer .drawer-content .subtitle div[data-v-46ea2b7d]{display:inline-block}.dialog-drawer.plat-dialog-drawer .drawer-close-left[data-v-46ea2b7d]{position:absolute;top:160px;left:-27px;width:28px;min-width:unset;height:28px;color:#fff;background:#1890ff;border-top-left-radius:4px;border-bottom-left-radius:4px}.dialog-drawer.plat-dialog-drawer .drawer-close-left[data-v-46ea2b7d] .rt-button-content .rt-button-text{display:none}.search-wrap[data-v-46ea2b7d] .el-form-item__label{margin-right:8px}@media screen and (min-width:1366px){.multilookup-dialog[data-v-46ea2b7d] .rt-table .rt-table-content .el-table{min-height:140px;max-height:400px}}@media screen and (max-width:1366px){.multilookup-dialog[data-v-46ea2b7d] .rt-table .rt-table-content .el-table{min-height:140px;max-height:33vh}}',""]),e.exports=t},fd92:function(e,t,r){"use strict";var i={name:"RtFormItem",props:{}},a=(r("4456"),r("0c7c")),n=Object(a.a)(i,void 0,void 0,!1,null,"2f0d250e",null);t.a=n.exports},fdb6:function(e,t,r){var i=r("8a86");i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals),(0,r("09a7").default)("0ec0d85e",i,!0,{sourceMap:!1,shadowMode:!1})},fde3:function(e,t){function r(){}r.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(e,t){t&&(this.contentHandler=t);for(var r,i,a,n=!1,o=this;e.length>0;)"\x3c!--"==e.substring(0,4)?-1!=(a=e.indexOf("--\x3e"))?(this.contentHandler.comment(e.substring(4,a)),e=e.substring(a+3),n=!1):n=!0:"